def __init__(self, path_to_file, **kwargs):
self.debug = kwargs['debug'] if 'debug' in kwargs else False
self.paths = {'input': path_to_file,
'output': self._get_output_directory(path_to_file)}
self.options = self._get_options(kwargs)
self.tracker = FrameTracker(self.options['blocksize'], self.options['grid'])
try:
self.video = imageio.get_reader(self.paths['input'])
except IOError:
self.exit('video not found')
self.frame_maps = []
self.consecutive = 0
评论列表
文章目录