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