def emit_frame(self, np_array):
     filename = self.directory + '/{:05}.png'.format(self.frame_num)
     im_util.write_image(np_array.astype(np.uint8), filename)
     self.frame_num += 1
Exemplo n.º 2
0
 def emit_frame(self, np_array):
   filename = self.directory + '/{:05}.png'.format(self.frame_num)
   im_util.write_image(np_array.astype(np.uint8), filename)
   self.frame_num += 1