March 2018
Beginner to intermediate
306 pages
9h 54m
English
Here are the steps we need to execute in order to complete this recipe:
import cv2capture = cv2.VideoCapture(0)frame_width = int(capture.get(cv2.CAP_PROP_FRAME_WIDTH))frame_height = int(capture.get(cv2.CAP_PROP_FRAME_HEIGHT))print('Frame width:', frame_width)print('Frame height:', frame_height)
video = cv2.VideoWriter('../data/captured_video.avi', cv2.VideoWriter_fourcc(*'X264'), 25, (frame_width, frame_height))
while True: has_frame, frame = capture.read() if not has_frame: print('Can\'t get frame') ...Read now
Unlock full access