March 2018
Beginner to intermediate
306 pages
9h 54m
English
For this recipe, the steps are as follows:
import cv2capture = cv2.VideoCapture(0)
while True: has_frame, frame = capture.read() if not has_frame: print('Can\'t get frame') break cv2.imshow('frame', frame) key = cv2.waitKey(3) if key == 27: print('Pressed Esc') break
capture.release()cv2.destroyAllWindows()