Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def video_vision(video_input_path, prompt, video_interval):
|
|
130 |
|
131 |
# Define the video codec and create VideoWriter object
|
132 |
fourcc = cv2.VideoWriter_fourcc(*'mp4v') # Codec for MP4
|
133 |
-
video = cv2.VideoWriter(output_video, fourcc,
|
134 |
|
135 |
# Iterate over the image paths and write to the video
|
136 |
for img_path in seg_frames:
|
|
|
130 |
|
131 |
# Define the video codec and create VideoWriter object
|
132 |
fourcc = cv2.VideoWriter_fourcc(*'mp4v') # Codec for MP4
|
133 |
+
video = cv2.VideoWriter(output_video, fourcc, new_fps, (width, height))
|
134 |
|
135 |
# Iterate over the image paths and write to the video
|
136 |
for img_path in seg_frames:
|