import cv2
from PIL import Image, ImageDraw
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
Image.MAX_IMAGE_PIXELS = None
tifpath = './result/result_0.tif'
tif = './result/a.tiff'
img = cv2.imread(tifpath)
def rawimage_box(txt):
i = 0
with open(txt) as f:
for line in f
pillow读取txt文档在图片中画框写字
最新推荐文章于 2021-07-27 14:07:27 发布