fffiloni commited on
Commit
358fc3b
·
verified ·
1 Parent(s): 7f75f49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, 24.0, (width, height))
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: