Abu1998 commited on
Commit
1d99a94
·
verified ·
1 Parent(s): fb5a6eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def extract_frames(video_path):
17
  if not success:
18
  break
19
 
20
- if frame_count % int(fps / 60) == 0: # Extract 60 frames per second
21
  image_path = os.path.join(output_folder, f"frame_{frame_count}.jpg")
22
  cv2.imwrite(image_path, frame)
23
  extracted_images.append(image_path)
 
17
  if not success:
18
  break
19
 
20
+ if frame_count % int(fps / 24) == 0: # Extract 60 frames per second
21
  image_path = os.path.join(output_folder, f"frame_{frame_count}.jpg")
22
  cv2.imwrite(image_path, frame)
23
  extracted_images.append(image_path)