python如何读取&生成voc xml格式标注信息
python生成voc xml文件
from lxml import etree
class GEN_Annotations:
def __init__(self, filename):
self.root = etree.Element("annotation")
child1 = etree.SubElement(self.root, "folder")
child1.text = "VOC2007"
child2 =
转载
2021-09-17 17:42:34 ·
574 阅读 ·
0 评论