您好 小白一枚 我想吧VOC数据按照GT的大中小进行标签的修改 ,大概就是根据判断面积修改标签 我只知道加两个判断条件但不知道改如何加循环,大佬请求支援 万分感谢!
我的xml文件格式:
<?xml version="1.0"?>
-<annotation>
<folder>JPEGImages</folder>
<filename>00003.jpg</filename>
<path>/home/wu/PycharmProjects/hat/Hat/JPEGImages/00003.jpg</path>
-<source>
<database>Unknown</database>
</source>
-<size>
<width>640</width>
<height>960</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
-<object>
<name>rider</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
-<bndbox>
<xmin>428</xmin>
<ymin>553</ymin>
<xmax>481</xmax>
<ymax>625</ymax>
</bndbox>
</object>
-<object>
<name>rider</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
-<bndbox>
<xmin>250</xmin>
<ymin>575</ymin>
<xmax>259</xmax>
<ymax>586</ymax>
</bndbox>
</object>
</annotation>