图片的几何变换《02图片剪切》 代码 import cv2 import numpy as np img =cv2.imread('1.jpg',1) cv2.imshow('OriginalPicture', img) imginfo = img.shape print(imginfo) dst=img[150:300,300:500] cv2.imshow('dst',dst) cv2.waitKey(0)