您好,欢迎来到99网。
搜索
您的当前位置:首页[软件工具]精灵标注助手目标检测数据集格式转VOC或者yolo

[软件工具]精灵标注助手目标检测数据集格式转VOC或者yolo

来源:99网

有时候我们拿到一个数据集发现是xml文件格式如下:

<?xml version="1.0" ?>
<doc>
	<path>C:\Users\Administrator\Desktop\test\000000000074.jpg</path>
	<outputs>
		<object>
			<item>
				<name>dog</name>
				<bndbox>
					<xmin></xmin>
					<ymin>271</ymin>
					<xmax>361</xmax>
					<ymax>385</ymax>
				</bndbox>
			</item>
		</object>
	</outputs>
	<time_labeled>1692452783787</time_labeled>
	<labeled>true</labeled>
	<size>
		<width>0</width>
		<height>426</height>
		<depth>3</depth>
	</size>
</doc>

或者是下面json格式

{"path":"C:\\Users\\Administrator\\Desktop\\test\\000000000042.jpg","outputs":{"object":[{"name":"dog","bndbox":{"xmin":228,"ymin":32,"xmax":576,"ymax":286}}]},"time_labeled":1692452770011,"labeled":true,"size":{"width":0,"height":478,"depth":3}}

很显然xml文件格式不是VOC格式,真正VOC格式类似下面

<annotation>
    <folder>VOC</folder>
    <filename>000000000074.jpg</filename>
    <path>C:\Users\Administrator\Desktop\test\000000000074.jpg</path>
    <source>
        <database>FIRC</database>
    </source>
    <size>
        <width>0</width>
        <height>426</height>
        <depth>3</depth>
    </size>
    <segmented>0</segmented>
        <object>
            <name>dog</name>
            <pose>Unspecified</pose>
            <truncated>0</truncated>
            <difficult>0</difficult>
            <bndbox>
                <xmin></xmin>
                <ymin>271</ymin>
                <xmax>361</xmax>
                <ymax>385</ymax>
            </bndbox>
        </object>
</annotation>

大家都知道VOC或者yolo格式是目标检测最常用数据集格式,标注精灵助手格式显然不能直接用于训练,必须转换到VOC格式或者yolo格式才行。因为开发了一个小工具支持到VOC或者yolo格式转换,首先我们打开软件

将标注xml文件或者json文件拖拽到列表点击开始即可自动转换。详情参考视频教程讲解:

 

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- 99spj.com 版权所有 湘ICP备2022005869号-5

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务