Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def predict_drowsiness(video_path):
|
|
55 |
fps = int(cap.get(cv2.CAP_PROP_FPS))
|
56 |
total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
57 |
|
58 |
-
skip_interval = int(fps * 0.
|
59 |
|
60 |
with tempfile.NamedTemporaryFile(suffix='.mp4', delete=False) as temp_output:
|
61 |
temp_output_path = temp_output.name
|
|
|
55 |
fps = int(cap.get(cv2.CAP_PROP_FPS))
|
56 |
total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
57 |
|
58 |
+
skip_interval = int(fps * 0.2)
|
59 |
|
60 |
with tempfile.NamedTemporaryFile(suffix='.mp4', delete=False) as temp_output:
|
61 |
temp_output_path = temp_output.name
|