修改为自己的xml和img目录,给定新的生成目录直接运行,旋转和转置增强 # -*- coding:utf8 -*- from PIL import Image #python中的图像处理库PIL来实现不同图像格式的转换。 import numpy as np # Element类型是一种灵活的容器对象,用于在内存中存储结构化数据。 import xml.etree.ElementTree as ET # import os import shutil #该函数返回文件名字 def standardize(filenam