File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 4242 ContentDetector ,
4343 HashDetector ,
4444 HistogramDetector ,
45+ KoalaDetector ,
4546 ThresholdDetector ,
4647)
4748from scenedetect .platform import get_cv2_imwrite_params , get_system_version_info
@@ -1577,3 +1578,16 @@ def save_qp_command(
15771578scenedetect .add_command (list_scenes_command )
15781579scenedetect .add_command (save_images_command )
15791580scenedetect .add_command (split_video_command )
1581+
1582+
1583+ @click .command ("detect-koala" , cls = Command , help = """WIP""" )
1584+ @click .pass_context
1585+ def detect_koala_command (
1586+ ctx : click .Context ,
1587+ ):
1588+ ctx = ctx .obj
1589+ assert isinstance (ctx , CliContext )
1590+ ctx .add_detector (KoalaDetector , {"min_scene_len" : None })
1591+
1592+
1593+ scenedetect .add_command (detect_koala_command )
Original file line number Diff line number Diff line change 4040from scenedetect .detectors .adaptive_detector import AdaptiveDetector
4141from scenedetect .detectors .hash_detector import HashDetector
4242from scenedetect .detectors .histogram_detector import HistogramDetector
43+ from scenedetect .detectors .koala_detector import KoalaDetector
4344
4445# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
4546# #
Original file line number Diff line number Diff line change 2929 ContentDetector ,
3030 HashDetector ,
3131 HistogramDetector ,
32+ KoalaDetector ,
3233 ThresholdDetector ,
3334)
3435
3738 ContentDetector ,
3839 HashDetector ,
3940 HistogramDetector ,
41+ KoalaDetector ,
4042)
4143
4244ALL_DETECTORS : ty .Tuple [ty .Type [SceneDetector ]] = (* FAST_CUT_DETECTORS , ThresholdDetector )
You can’t perform that action at this time.
0 commit comments