March 2018
Beginner to intermediate
306 pages
9h 54m
English
The following are the steps for this recipe:
import cv2capture = cv2.VideoCapture('../data/drop.avi')
while True: has_frame, frame = capture.read() if not has_frame: print('Reached the end of the video') break cv2.imshow('frame', frame) key = cv2.waitKey(50) if key == 27: print('Pressed Esc') breakcv2.destroyAllWindows()
Read now
Unlock full access