jschwab21 commited on
Commit
19000d4
·
verified ·
1 Parent(s): 918bcce

Update video_processing.py

Browse files
Files changed (1) hide show
  1. video_processing.py +1 -1
video_processing.py CHANGED
@@ -33,7 +33,7 @@ def sanitize_filename(filename):
33
  def find_scenes(video_path):
34
  video_manager = VideoManager([video_path])
35
  scene_manager = SceneManager()
36
- scene_manager.add_detector(ContentDetector(threshold=20)) # Adjusted threshold for finer segmentation
37
  video_manager.set_downscale_factor()
38
  video_manager.start()
39
  scene_manager.detect_scenes(frame_source=video_manager)
 
33
  def find_scenes(video_path):
34
  video_manager = VideoManager([video_path])
35
  scene_manager = SceneManager()
36
+ scene_manager.add_detector(ContentDetector(threshold=33)) # Adjusted threshold for finer segmentation
37
  video_manager.set_downscale_factor()
38
  video_manager.start()
39
  scene_manager.detect_scenes(frame_source=video_manager)