Skip to content

Commit e26ec1a

Browse files
authored
use opencv generic VideoCapture only
so that it works with video file or camera easily
1 parent 15867b4 commit e26ec1a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

capture_video.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,7 @@
4747

4848
# define video capture object
4949

50-
try:
51-
# to use a non-buffered camera stream (via a separate thread)
52-
53-
import camera_stream
54-
cap = camera_stream.CameraVideoStream(use_tapi=False)
55-
56-
except BaseException:
57-
# if not then just use OpenCV default
58-
59-
print("INFO: camera_stream class not found - camera input may be buffered")
60-
cap = cv2.VideoCapture()
50+
cap = cv2.VideoCapture()
6151

6252
# define display window name
6353

0 commit comments

Comments
 (0)