框选图中位置 代码 from PIL import Image,ImageDraw,ImageFont,ImageFilter import random #------------------------------------- #filepath,[837,103][942,208] #图片处理,框选 def pic_rectangle(filepath,bound): image = Image.open(filepath) draw = ImageDraw.Draw(image) #…