Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,9 @@ def stream_object_detection(video, conf_threshold):
|
|
| 42 |
|
| 43 |
iterating = True
|
| 44 |
batch = []
|
| 45 |
-
|
|
|
|
|
|
|
| 46 |
|
| 47 |
while iterating:
|
| 48 |
iterating, frame = cap.read()
|
|
|
|
| 42 |
|
| 43 |
iterating = True
|
| 44 |
batch = []
|
| 45 |
+
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) // 2
|
| 46 |
+
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) // 2
|
| 47 |
+
n_frames = 0
|
| 48 |
|
| 49 |
while iterating:
|
| 50 |
iterating, frame = cap.read()
|