小马过_河

导航

读取视频

from skimage import data_dir,io,color
class AVILoader: 
        video_file = 'myvideo.avi' 
        def __call__(self, frame): 
                return video_read(self.video_file, frame)
avi_load = AVILoader()

frames = range(0, 1000, 10) # 0, 10, 20, ...ic =io.ImageCollection(frames, load_func=avi_load)

 

  

posted on 2018-03-17 19:43  小马过_河  阅读(179)  评论(1编辑  收藏  举报