Python3, Opencv, Image Processing, Machine Learning, Artificial Intelligence.
= 75): width = int(frame.shape[1] * percent / 100) height = int(frame.shape[0] * percent / 100) dim = (width, height) return cv2.resize(frame, dim, interpolation = cv2.INTER_AREA) while True: frame, ret = cap.read() frame75 = rescale_frame(frame, percentage = 75) cv2.imshow('frame75', frame75)