Spaces:
Runtime error
Runtime error
Update video_detection.py
Browse files- video_detection.py +2 -2
video_detection.py
CHANGED
@@ -32,8 +32,8 @@ def draw_boxes(frame, results):
|
|
32 |
return frame
|
33 |
|
34 |
def video_detection(cap):
|
35 |
-
|
36 |
-
video_codec = cv2.VideoWriter_fourcc(*'h264')
|
37 |
fps = int(cap.get(cv2.CAP_PROP_FPS))
|
38 |
|
39 |
#desired_fps = fps // SUBSAMPLE
|
|
|
32 |
return frame
|
33 |
|
34 |
def video_detection(cap):
|
35 |
+
video_codec = cv2.VideoWriter_fourcc(*"mp4v") # type: ignore
|
36 |
+
#video_codec = cv2.VideoWriter_fourcc(*'h264')
|
37 |
fps = int(cap.get(cv2.CAP_PROP_FPS))
|
38 |
|
39 |
#desired_fps = fps // SUBSAMPLE
|