# Import packages import cv2 as cv import numpy as np img = cv.imread('test.jpg') print(img.shape) # Print image shape cv.imshow("original", img) # Cropping an image cropped_image = img[80:280, 150:330]