Translated version of. >>> print ( img.shape ) (342, 548, 3) note if. To read the contents of an image, we have a function cv2.imread ().

The shape of an image is accessed by img.shape. If the image is read, then a new window is created to display the image and the image is shown by method “imshow ()” with parameters (“windows”,img) and then returning 0. To import it use the following line:



