Clear all cuts/scenes and resets the SceneManager's position. Any statistics generated are still saved in the StatsManager object passed to the SceneManager's constructor, and thus, subsequent calls to detect_scenes, using the same frame source seeked back to the original ti
(self)
| 328 | return len(self._detector_list) |
| 329 | |
| 330 | def clear(self) -> None: |
| 331 | """Clear all cuts/scenes and resets the SceneManager's position. |
| 332 | |
| 333 | Any statistics generated are still saved in the StatsManager object passed to the |
| 334 | SceneManager's constructor, and thus, subsequent calls to detect_scenes, using the same |
| 335 | frame source seeked back to the original time (or beginning of the video) will use the |
| 336 | cached frame metrics that were computed and saved in the previous call to detect_scenes. |
| 337 | """ |
| 338 | self._cutting_list.clear() |
| 339 | self._last_pos = None |
| 340 | self._start_pos = None |
| 341 | self._frame_size = None |
| 342 | self.clear_detectors() |
| 343 | |
| 344 | def clear_detectors(self) -> None: |
| 345 | """Remove all scene detectors added to the SceneManager via add_detector().""" |