import cv2 #read image img = cv2.imread('D:/image-1.png') #print its shape print('Image Dimensions :', img.shape)