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 42
42
ContentDetector ,
43
43
HashDetector ,
44
44
HistogramDetector ,
45
+ KoalaDetector ,
45
46
ThresholdDetector ,
46
47
)
47
48
from scenedetect .platform import get_cv2_imwrite_params , get_system_version_info
@@ -1577,3 +1578,16 @@ def save_qp_command(
1577
1578
scenedetect .add_command (list_scenes_command )
1578
1579
scenedetect .add_command (save_images_command )
1579
1580
scenedetect .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 40
40
from scenedetect .detectors .adaptive_detector import AdaptiveDetector
41
41
from scenedetect .detectors .hash_detector import HashDetector
42
42
from scenedetect .detectors .histogram_detector import HistogramDetector
43
+ from scenedetect .detectors .koala_detector import KoalaDetector
43
44
44
45
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
45
46
# #
Original file line number Diff line number Diff line change 29
29
ContentDetector ,
30
30
HashDetector ,
31
31
HistogramDetector ,
32
+ KoalaDetector ,
32
33
ThresholdDetector ,
33
34
)
34
35
37
38
ContentDetector ,
38
39
HashDetector ,
39
40
HistogramDetector ,
41
+ KoalaDetector ,
40
42
)
41
43
42
44
ALL_DETECTORS : ty .Tuple [ty .Type [SceneDetector ]] = (* FAST_CUT_DETECTORS , ThresholdDetector )
You can’t perform that action at this time.
0 commit comments