修改xml中的w和h
from xml.etree import ElementTree as ETimport os.pathimport cv2 as cvdef chang_w_h(xml_path,img_path): for filename in os.listdir(xml_path): num = filename[:5] #获取编号 img = cv.imread(img_path + num + '.jpg') h,w,d = im.





