Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ if video_file is not None or use_webcam:
|
|
34 |
if video_file is not None:
|
35 |
video = cv2.VideoCapture(video_file.name)
|
36 |
else:
|
37 |
-
video = cv2.VideoCapture(
|
38 |
|
39 |
while True:
|
40 |
ret, frame = video.read()
|
|
|
34 |
if video_file is not None:
|
35 |
video = cv2.VideoCapture(video_file.name)
|
36 |
else:
|
37 |
+
video = cv2.VideoCapture(1) # Use webcam
|
38 |
|
39 |
while True:
|
40 |
ret, frame = video.read()
|