2020
09-24
09-24
Python读取VOC中的xml目标框实例
代码:#!/usr/bin/python#-*-coding:UTF-8-*-#getannotationobjectbndboxlocationimportosimportcv2try:importxml.etree.cElementTreeasET#解析xml的c语言版的模块exceptImportError:importxml.etree.ElementTreeasET##getobjectannotationbndboxlocstartdefGetAnnotBoxLoc(AnotPath):#AnotPathVOC标注文件路径tree=ET.ElementTree(file=AnotPath)#打开文件,解析成一棵树型...
继续阅读 >