Thong Nguyen commited on
Commit
85bf6ab
1 Parent(s): b31fa62

change threshold

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def extract_keyframes(video_path, num_keyframes=12):
18
 
19
  os.makedirs("temp", exist_ok=True)
20
 
21
- keyframeDetection(video_path, "temp", 0.6)
22
  video_frame_list = sorted(os.listdir(os.path.join("temp", "keyFrames")), key=lambda x: int(x.split('.')[0][8:]))
23
  os.makedirs(os.path.join("video_frames", video_id), exist_ok=True)
24
  selected_frame_idx_set = set(np.linspace(1, len(video_frame_list) - 1, num_keyframes).astype(int))
 
18
 
19
  os.makedirs("temp", exist_ok=True)
20
 
21
+ keyframeDetection(video_path, "temp", 0.2)
22
  video_frame_list = sorted(os.listdir(os.path.join("temp", "keyFrames")), key=lambda x: int(x.split('.')[0][8:]))
23
  os.makedirs(os.path.join("video_frames", video_id), exist_ok=True)
24
  selected_frame_idx_set = set(np.linspace(1, len(video_frame_list) - 1, num_keyframes).astype(int))