Spaces:
Running
Running
continue, don't break
Browse files
app.py
CHANGED
|
@@ -60,10 +60,13 @@ def run_rerun(path_to_video):
|
|
| 60 |
frame_idx = -1
|
| 61 |
while True:
|
| 62 |
read, frame = video.read()
|
| 63 |
-
|
| 64 |
-
if not read or frame_idx % 10 != 0:
|
| 65 |
break
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
frame = cv2.resize(frame, (320, 240))
|
| 68 |
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
|
| 69 |
|
|
|
|
| 60 |
frame_idx = -1
|
| 61 |
while True:
|
| 62 |
read, frame = video.read()
|
| 63 |
+
if not read:
|
|
|
|
| 64 |
break
|
| 65 |
|
| 66 |
+
frame_idx += 1
|
| 67 |
+
if frame_idx % 10 != 0:
|
| 68 |
+
continue
|
| 69 |
+
|
| 70 |
frame = cv2.resize(frame, (320, 240))
|
| 71 |
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
|
| 72 |
|