栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

旋转目标检测工作 roLabelImg

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

旋转目标检测工作 roLabelImg

工具地址:https://github.com/cgvict/roLabelImg

该工具可以标注旋转目标

一、环境创建

打开anaconda prompt或者cmd 输入一下命令

1、conda create -n rolabelimg python=3.8 -y

2、conda activate rolabelimg

3、conda install pyqt=5

4、conda install lxml -y

5、cd C:UsersadminDesktoproLabelImg-master(进入到rolabelimg文件夹,改成你自己的的软件所在文件夹路径)

6、pyrcc5 -o resources.py resources.qrc

二、使用

1、conda activate rolabelimg

2、python roLabelImg.py

三、其他问题

如何支持中文标签

修改libs/pascal_voc_io.py 58行 return etree.tostring(root, pretty_print=True) -> return etree.tostring(root, encoding=“utf8”,pretty_print=True)

具体如下:

def prettify(self, elem):
“”"
Return a pretty-printed XML string for the Element.
“”"
rough_string = ElementTree.tostring(elem, ‘utf8’)
root = etree.fromstring(rough_string)
try:
return etree.tostring(root, encoding=“utf8”,pretty_print=True)
except TypeError:
return etree.tostring(root)

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/938468.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号