This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
# using pure OpenCV. | |
vs = cv2.VideoCapture(0) | |
# time.sleep(2.0) | |
lastFrame = None | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from imutils.video import VideoStream | |
import cv2 | |
# using VideoStream | |
vs = VideoStream(0).start() | |
# time.sleep(2.0) | |
lastFrame = None | |