コード例 #1
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
コード例 #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