def save(self, path, src=None, # width=640, height=480 ): if src is None: src = self.render() # pychron = self.render_images(self.frames) # display = # cvConvertImage(pychron, pychron, CV_CVTIMG_SWAP_RB) # pychron = swapRB(pychron) # save_image(resize(pychron, width, height, dst=new_dst(width, height, 3)), path) # save_image(resize(pychron, width, height, # dst=(width, height, 3) # ), path) save_image(src, path)
def save(self, path, src=None): if src is None: src = self.render() save_image(src, path)