@@ -101,9 +101,9 @@ def on_new_scene(frame_img: numpy.ndarray, frame_num: int):
101101 SimpleTableRow ,
102102)
103103from scenedetect .common import CropRegion , CutList , SceneList
104+ from scenedetect .detector import SceneDetector , SparseSceneDetector
104105from scenedetect .frame_timecode import FrameTimecode
105106from scenedetect .platform import get_and_create_path , get_cv2_imwrite_params , tqdm
106- from scenedetect .scene_detector import SceneDetector , SparseSceneDetector
107107from scenedetect .stats_manager import StatsManager
108108from scenedetect .video_stream import VideoStream
109109
@@ -722,7 +722,6 @@ def save_images(
722722 width : ty .Optional [int ] = None ,
723723 interpolation : Interpolation = Interpolation .CUBIC ,
724724 threading : bool = True ,
725- video_manager = None ,
726725) -> ty .Dict [int , ty .List [str ]]:
727726 """Save a set number of images from each scene, given a list of scenes
728727 and the associated video/frame source.
@@ -761,7 +760,6 @@ def save_images(
761760 while preserving the aspect ratio.
762761 interpolation: Type of interpolation to use when resizing images.
763762 threading: Offload image encoding and disk IO to background threads to improve performance.
764- video_manager: [DEPRECATED] DO NOT USE. For backwards compatibility only.
765763
766764 Returns:
767765 Dictionary of the format { scene_num : [image_paths] }, where scene_num is the
@@ -772,10 +770,6 @@ def save_images(
772770 ValueError: Raised if any arguments are invalid or out of range (e.g.
773771 if num_images is negative).
774772 """
775- # TODO(v0.7): Add DeprecationWarning that `video_manager` will be removed in v0.8.
776- if video_manager is not None :
777- logger .error ("`video_manager` argument is deprecated, use `video` instead." )
778- video = video_manager
779773
780774 if not scene_list :
781775 return {}
0 commit comments