Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,7 +131,9 @@ def detect_image(image):
|
|
| 131 |
|
| 132 |
return results.render()[0]
|
| 133 |
|
| 134 |
-
def detect_video(
|
|
|
|
|
|
|
| 135 |
|
| 136 |
frame_count = 0
|
| 137 |
while True:
|
|
|
|
| 131 |
|
| 132 |
return results.render()[0]
|
| 133 |
|
| 134 |
+
def detect_video(video_path):
|
| 135 |
+
|
| 136 |
+
video = cv2.VideoCapture(video_path)
|
| 137 |
|
| 138 |
frame_count = 0
|
| 139 |
while True:
|