摘要: 1.import io img = Image.open(fh, mode='r') roiImg = img.crop(box) imgByteArr = io.BytesIO() roiImg.save(imgByteArr, format='PNG') imgByteArr = imgByteArr.getvalue() 2.from PIL import Image impo... 阅读全文
posted @ 2018-08-28 11:31 Cool· 阅读(3817) 评论(0) 推荐(0) 编辑