# crop(box=None) # box(左上x,左上y,右下x,右下y)
im = Image.open('2023.png')
im_box = im.crop((100, 100, 300, 300))
im_box.show()
原点坐标计算:
摘要: Pillow图像裁剪crop()和裁剪区域讲解
# crop(box=None) # box(左上x,左上y,右下x,右下y)
im = Image.open('2023.png')
im_box = im.crop((100, 100, 300, 300))
im_box.show()
原点坐标计算: