学习DL过程中,各位同学一定会经历数据的标定工作,本篇按照Pascal VOC数据集格式,通过python实现Annotation文件的批量修改. 举个例子
<?xml version="1.0" ?><annotation>
<folder>HK</folder>
<filename>101.jpg</filename>
<path>/home/li//home/li/101.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>1280</width>
<height>720</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>Person</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>46</xmin>
<ymin>220</ymin>
<xmax>109</xmax>
<ymax>402</ymax>
</bndbox>
</object>
<object>
<name>Person</name>
<pose>Unspecified</pose>
<truncated>