aidas-79 commited on
Commit
af97fb5
·
verified ·
1 Parent(s): 88085f8

Update video_detection.py

Browse files
Files changed (1) hide show
  1. 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
- #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
 
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