opencv get image width and height python code example Example: opencv get image size img = cv2.imread('myImage.jpg') height, width, channels = img.shape