参考以下文章python - Trying to crop image and save dicom with pydicom, - Stack Overflow
python中PIL库的crop函数_小研一枚的博客-CSDN博客
from PIL import Image
import matplotlib.pyplot as plt
img = Image.open("E:/练习mtcnn/cebelA/CelebA_min/Img/000001.jpg")
plt.imshow(img)
plt.show()
print(img.size)
img_crop = img.crop([img.size[0]/5,img.size[1]/5,img.size[0]*3/5,img.size[1]*3/5])
plt.imshow(img_crop)
plt.show()