Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -127,6 +127,8 @@ def process_video_and_save(uploaded_file):
|
|
127 |
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
128 |
out = cv2.VideoWriter(output_video_path, fourcc, fps, (width, height))
|
129 |
|
|
|
|
|
130 |
# Process frames
|
131 |
while cap.isOpened():
|
132 |
ret, frame = cap.read()
|
|
|
127 |
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
128 |
out = cv2.VideoWriter(output_video_path, fourcc, fps, (width, height))
|
129 |
|
130 |
+
margin_y = 50
|
131 |
+
|
132 |
# Process frames
|
133 |
while cap.isOpened():
|
134 |
ret, frame = cap.read()
|