voc数据集的实例分割数据集格式
时间: 2023-10-15 07:04:26 浏览: 47
VOC数据集的实例分割数据集格式是以XML文件的形式存储的。每个XML文件对应一个图像,包含图像的文件名、图像的大小以及每个物体的位置、类别和分割掩码。具体格式如下:
```
<annotation>
<filename>image.jpg</filename>
<size>
<width>640</width>
<height>480</height>
</size>
<object>
<name>car</name>
<bndbox>
<xmin>100</xmin>
<ymin>200</ymin>
<xmax>300</xmax>
<ymax>400</ymax>
</bndbox>
<segmentation>
<polygon>
<pt>
<x>120</x>
<y>220</y>
</pt>
<pt>
<x>220</x>
<y>220</y>
</pt>
<pt>
<x>220</x>
<y>320</y>
</pt>
<pt>
<x>120</x>
<y>320</y>
</pt>
</polygon>
</segmentation>
</object>
<object>
<name>person</name>
<bndbox>
<xmin>400</xmin>
<ymin>100</ymin>
<xmax>500</xmax>
<ymax>200</ymax>
</bndbox>
<segmentation>
<polygon>
<pt>
<x>420</x>
<y>120</y>
</pt>
<pt>
<x>460</x>
<y>120</y>
</pt>
<pt>
<x>460</x>
<y>180</y>
</pt>
<pt>
<x>420</x>
<y>180</y>
</pt>
</polygon>
</segmentation>
</object>
</annotation>
```
其中,`filename`表示图像的文件名,`size`表示图像的大小,`object`表示每个物体,`name`表示物体的类别,`bndbox`表示物体的边界框,`segmentation`表示物体的分割掩码,`polygon`表示分割掩码的多边形顶点。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)