opencv change image resolution code example
Example 1: cv2 resize
resized_image = cv2.resize(image, (100, 50))
Example 2: how to change opencv capture resolution
cap.set(cv2.CAP_PROP_FRAME_WIDTH,640);
cap.set(cv2.CAP_PROP_FRAME_HEIGHT,480);
resized_image = cv2.resize(image, (100, 50))
cap.set(cv2.CAP_PROP_FRAME_WIDTH,640);
cap.set(cv2.CAP_PROP_FRAME_HEIGHT,480);