feliperafael commited on
Commit
8747bd7
·
verified ·
1 Parent(s): 59f2919

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(0) # Use webcam
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()