(self, video_file=None, image_folder=None, height=None, width=None, **kwargs)
| 80 | |
| 81 | class VideoData: |
| 82 | def __init__(self, video_file=None, image_folder=None, height=None, width=None, **kwargs): |
| 83 | if video_file is not None: |
| 84 | self.data_type = "video" |
| 85 | self.data = LowMemoryVideo(video_file, **kwargs) |
| 86 | elif image_folder is not None: |
| 87 | self.data_type = "images" |
| 88 | self.data = LowMemoryImageFolder(image_folder, **kwargs) |
| 89 | else: |
| 90 | raise ValueError("Cannot open video or image folder") |
| 91 | self.length = None |
| 92 | self.set_shape(height, width) |
| 93 | |
| 94 | def raw_data(self): |
| 95 | frames = [] |
nothing calls this directly
no test coverage detected