rolabelimg的安装与使用

1、下载源码并解压

github源码:https://github.com/cgvict/roLabelImg

2、安装相关的依赖库

conda create -n rolabel36 python=3.6
activate rolabel36 
pip install pyqt5-tools
pip install lxml

3、资源目录下输入

pyrcc5 -o resources.py resources.qrc 
python roLabelImg.py

在这里插入图片描述

注意:此处可能会存在一个编码错误:
(rolabel36) D:\roLabelImg-master>python roLabelImg.py
running with lxml.etree
Traceback (most recent call last):
File “roLabelImg.py”, line 1339, in
if name == ‘main’:
File “roLabelImg.py”, line 1335, in main
‘’‘construct main app and run it’‘’
File “roLabelImg.py”, line 1328, in get_main_app
win = MainWindow(argv[1] if len(argv) >= 2 else None,
File “roLabelImg.py”, line 393, in init
# Load predefined classes to the list
File “roLabelImg.py”, line 1250, in loadPredefinedClasses
if os.path.exists(predefClassesFile) is True:
NameError: name ‘codecs’ is not defined
只需将roLabelImg.py文件中的# -- coding: utf8 --改成# -- coding: utf-8 --(被这个问题折磨了好久)

4、使用方法:

点击creatRotateBBoxrolabelimg的安装与使用_第1张图片
右击矩形的顶点进行旋转
rolabelimg的安装与使用_第2张图片
快捷键:
w:Create RectBox
e:Create RotetedRBox
d:next image
ctrl+d:Duplicate RectBox
z、x:Anti-clock rotate
c、v:clock rotate

5、打包好的完整exe程序可以私信我,免费分享

链接:htt删除ps://p删除an.ba删除idu.com/s/1Ni删除S-O-DP删除R3OlZK删除LY_JM删除27Q
提取码:1234

你可能感兴趣的:(python)