Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LabelTransform

该项目用于将图片标签的不同形式(xml与json)进行互相转换

文件介绍

<xml_json.py>和<json_xml.py>:分别为“将xml格式标注转换为json格式标注”和“将json格式标注转换为xml格式标注”的程序

:用于存储被标签的图片

和:用于存储“需要被转换的xml标签”与“需要被转换的json标签”

<xml_to_json>和<json_to_xml>:用于存储“转换过后得到的json标签”与“转换过后得到的xml标签”

安装指南

需要用到的module xmltodict已经安装在的虚拟运行环境中了

如果不能运行可以用pip安装

在cmd界面cd到venv/Scripts文件夹中然后输入指令

pip install xmltodict

标注指南

所有xml的标注文件由labelImg制作

所有json的标准文件由LabelImage制作

使用方法

xml转json: 文件放入中运行<xml_json.py> 在<xml_to_json>中得到同名json文件

json转xml: 文件放入中运行<json_xml.py> 在<json_to_xml>中得到同名xml文件

code by Malus

About

Python program to transform label's format (.json and .xml)

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages