opencv change resolution of image code example
Example 1: how to change opencv capture resolution
cap.set(cv2.CAP_PROP_FRAME_WIDTH,640);
cap.set(cv2.CAP_PROP_FRAME_HEIGHT,480);
Example 2: opencv resize image
cv2.resize(src, dsize[, dst[, fx[, fy[, interpolation]]]])