JrEasy commited on
Commit
8e1f0d8
·
verified ·
1 Parent(s): 84c8972

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -83,7 +83,7 @@ def process_video(input_video):
83
  # Define the output video path in the current directory
84
  output_video_path = os.path.join(os.getcwd(), "processed_video.mp4")
85
 
86
- writer = imageio.get_writer(output_video_path, fps=fps, codec="h264")
87
 
88
  frame_count = 0
89
  timestamps = []
@@ -133,9 +133,6 @@ def process_video(input_video):
133
 
134
 
135
 
136
-
137
-
138
-
139
  def process_image(input_image):
140
  # Convert image from RGB to BGR for OpenCV processing
141
  bgr_frame = cv2.cvtColor(input_image, cv2.COLOR_RGB2BGR)
 
83
  # Define the output video path in the current directory
84
  output_video_path = os.path.join(os.getcwd(), "processed_video.mp4")
85
 
86
+ writer = imageio.get_writer(output_video_path, fps=fps, codec="vp8")
87
 
88
  frame_count = 0
89
  timestamps = []
 
133
 
134
 
135
 
 
 
 
136
  def process_image(input_image):
137
  # Convert image from RGB to BGR for OpenCV processing
138
  bgr_frame = cv2.cvtColor(input_image, cv2.COLOR_RGB2BGR)