Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ examples=[
|
|
42 |
]
|
43 |
|
44 |
# Helper: Downsample video to extract a fixed number of frames.
|
45 |
-
def downsample_video(video_path, num_frames=
|
46 |
cap = cv2.VideoCapture(video_path)
|
47 |
total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
48 |
fps = cap.get(cv2.CAP_PROP_FPS)
|
|
|
42 |
]
|
43 |
|
44 |
# Helper: Downsample video to extract a fixed number of frames.
|
45 |
+
def downsample_video(video_path, num_frames=22):
|
46 |
cap = cv2.VideoCapture(video_path)
|
47 |
total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
48 |
fps = cap.get(cv2.CAP_PROP_FPS)
|