Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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/
|
| 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)
|