rosebe commited on
Commit
9a56c59
·
1 Parent(s): e15c356

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -192,7 +192,7 @@ def detect_video(video_path):
192
 
193
  video_output_path = 'output_video.mp4' # Replace with your desired output video path
194
  fourcc = cv2.VideoWriter_fourcc(*'mp4v') # You can change the codec as needed
195
- video_writer = cv2.VideoWriter(video_output_path, fourcc, frame_rate/5, (width, height)) # Adjust frame rate
196
 
197
  for frame_file in frame_files:
198
  frame_path = os.path.join(results_dir, frame_file)
 
192
 
193
  video_output_path = 'output_video.mp4' # Replace with your desired output video path
194
  fourcc = cv2.VideoWriter_fourcc(*'mp4v') # You can change the codec as needed
195
+ video_writer = cv2.VideoWriter(video_output_path, fourcc, frame_rate/2, (width, height)) # Adjust frame rate
196
 
197
  for frame_file in frame_files:
198
  frame_path = os.path.join(results_dir, frame_file)