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