VOC格式转CSV
import os
import xml.dom.minidom
path_img = "VOC2007/JPEGImages"
path_xml = "VOC2007/Annotations"
xml_list = []
for xml1 in os.listdir(path_xml):
if xml1.endswith(".xml"):
xml_list.append(xml1)
csv_labels = open("csv_labels.csv", "w")
for .
原创
2020-09-07 19:06:15 ·
436 阅读 ·
0 评论