标签:region time [1] save imp img home class size
from PIL import Image base_img = Image.open(‘/home/sensetime/aachen_000007_000019_leftImg8bit.png‘) box = (198, 107, 1097, 1088) tmp_img = Image.open(‘/home/sensetime/animal/turkey/turkey/Google_000.jpeg‘) region = tmp_img.crop((198, 107, 1097, 1088)) # region = region.resize((box[2] - box[0], box[3] - box[1])) base_img.paste(region, box) base_img.save(‘./out.png‘)
标签:region time [1] save imp img home class size
原文地址:https://www.cnblogs.com/ymjyqsx/p/8810892.html