对应的xml文件:
<?xml version="1.0"?>
-<annotation>
<folder>sc</folder>
<filename>scratches_1.jpg</filename>
-<source>
<database>NEU-DET</database>
</source>
-<size>
<width>200</width>
<height>200</height>
<depth>1</depth>
</size>
<segmented>0</segmented>
-<object>
<name>scratches</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
-<bndbox>
<xmin>26</xmin>
<ymin>12</ymin>
<xmax>43</xmax>
<ymax>171</ymax>
</bndbox>
</object>
</annotation>
基于matlab的XML文件批量处理程序
该程序有详细的注解,希望对你有帮助
**程序连接:**https://download.youkuaiyun.com/download/weixin_43812135/11199274