摘要: 官方教程:https://pillow.readthedocs.io/en/stable/handbook/tutorial.html 之后再写教程 读取图片转换格式并保存 import os import shutil from PIL import Image import numpy as n 阅读全文
posted @ 2020-04-11 01:07 DuanYongchun 阅读(402) 评论(0) 推荐(0) 编辑
摘要: import os import numpy as np # # name:txt文件名 # rootdir:根路径 # metaimage:原始图像路径 # imglabel:标签图像路径 # def write_to_txt(name, root_dir, metaimage, imglabel 阅读全文
posted @ 2020-04-11 00:11 DuanYongchun 阅读(1782) 评论(0) 推荐(0) 编辑