Skip to content

yuhanqing1996/label-conversion-txt-to-xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Label_Transform

该项目可实现将YOLO模型训练所需的txt标签转换成相应的xml格式

txt标签格式:

class_name x y w h
8 0.585 0.73067 0.122 0.3413
8 0.416 0.84534 0.176 0.288

代码程序

需要以下环境:

  • python

  • opencv-python

  • lxml

(直接pip install,不用指定版本)

开始

将要转换的txt标签对应的图片放入img文件夹,txt标签文件放入txt文件夹。然后运行get_list.py得到转换列表txt_to_xml_list.txt。最后运行txt_to_xml.py,可以在xml文件夹中得到转换化后的xml文件。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages