import cv2
import numpy as np
img = cv2.imread("Photos/1.bmp")
print(img.shape)
imgResize = cv2.resize(img,(1000,500)) #改变图像大小
print(imgResize.shape)
imgCrop = img[59:340,352:495] #图像剪裁
cv2.imshow("Original Image",img)
cv2.imshow("Image Resize",imgResize)
cv2.imshow("Image Crop",imgCrop)
cv2.waitKey(0)