Spaces:
Sleeping
Sleeping
nn
commited on
Upload app.py
Browse files
app.py
CHANGED
|
@@ -209,7 +209,7 @@ def process_video(video_path, rail_segment, frame_skip=15):
|
|
| 209 |
total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
| 210 |
threshold = 10 # Set threshold (in pixels) for obstruction detection
|
| 211 |
|
| 212 |
-
|
| 213 |
ret, frame = cap.read()
|
| 214 |
if not ret:
|
| 215 |
break
|
|
|
|
| 209 |
total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
| 210 |
threshold = 10 # Set threshold (in pixels) for obstruction detection
|
| 211 |
|
| 212 |
+
while True:
|
| 213 |
ret, frame = cap.read()
|
| 214 |
if not ret:
|
| 215 |
break
|