工具地址: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:\Users\admin\Desktop\roLabelImg-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(roo