I can get size of image, like this:
import cv2 img = cv2.imread(\'my_image.jpg\',0) height, width = img.shape[:2]
How about video?
You can use the vcap.get(i) method, where i can be between 0 and 21, according to the OpenCV docs.