Spaces:
Sleeping
Sleeping
add commented code
Browse files
app.py
CHANGED
@@ -49,6 +49,7 @@ def process_video(video_path):
|
|
49 |
fourcc = cv2.VideoWriter_fourcc(*'mp4v') # MP4 codec
|
50 |
out = cv2.VideoWriter(output_video_path, fourcc, fps, (frame_width, frame_height))
|
51 |
|
|
|
52 |
# Process each frame of the video
|
53 |
while cap.isOpened():
|
54 |
ret, frame = cap.read() # Read a frame
|
|
|
49 |
fourcc = cv2.VideoWriter_fourcc(*'mp4v') # MP4 codec
|
50 |
out = cv2.VideoWriter(output_video_path, fourcc, fps, (frame_width, frame_height))
|
51 |
|
52 |
+
|
53 |
# Process each frame of the video
|
54 |
while cap.isOpened():
|
55 |
ret, frame = cap.read() # Read a frame
|