Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def process_video(video_path):
|
|
| 14 |
fps = int(cap.get(cv2.CAP_PROP_FPS))
|
| 15 |
|
| 16 |
# Create a video writer to save the output
|
| 17 |
-
output_path = "output.mp4"
|
| 18 |
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
|
| 19 |
out = cv2.VideoWriter(output_path, fourcc, fps, (width, height))
|
| 20 |
|
|
|
|
| 14 |
fps = int(cap.get(cv2.CAP_PROP_FPS))
|
| 15 |
|
| 16 |
# Create a video writer to save the output
|
| 17 |
+
output_path = os.path.join(os.getcwd(),"output.mp4")
|
| 18 |
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
|
| 19 |
out = cv2.VideoWriter(output_path, fourcc, fps, (width, height))
|
| 20 |
|