rikai.contrib.video package¶
Submodules¶
rikai.contrib.video.functions module¶
Useful functions and features for working with video data
- rikai.contrib.video.functions.scene_detect(videos: Union[str, VideoStream, list], threshold=30.0, raise_on_error=True)¶
Use pyscenedetect to split scenes in a video.
- Parameters
videos (str, VideoStream, or list<str>) – The video to split. If a list is given, assume they are segments of a longer video
threshold (float, default 30.0) – Detection threshold (i.e., ContentDetector(threshold=threshold))
raise_on_error (bool, default True) – Set to False to suppress exceptions during the detection run (note that import errors will still be raised)