Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
| 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)
|