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

roLabelImg window安装

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

roLabelImg window安装

下载 

下载地址

​Windows

Download and setup Python 2.6 or later, PyQt4 and install lxml.
Open cmd and go to roLabelImg directory

pyrcc4 -o resources.py resources.qrc
python roLabelImg.py
python roLabelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
​
安装

环境

  • WIN10 64位
  • python 3.6.x

打开Anaconda

  • 解压源码

从上方github地址中将项目源码clone下来,到一个路径,如F盘

  • 安装相应环境

创建一个虚拟环境或者直接在原有环境中安装。

conda create -n roLabelImg python=3.6.5
  • 安装PyQt5

进入anaconda下的 anaconda prompt下进入命令行

pip install PyQt5
  • 安装lxml
(roLabelImg) D:roLabelImg-master>pip install lxml
  •  安装rolabelimg
pyrcc5 -o resources.py resources.qrc
打开roLabelImg
python roLabelImg.py

报错

  File "roLabelImg.py", line 1274, in loadPredefinedClasses
    if os.path.exists(predefClassesFile) is True:
NameError: name 'codecs' is not defined

 删除下面文件中的红色框内容

#!/usr/bin/env python
# -*- coding: utf8 -*-

输入后打开即可 

快捷键 

 Tip

       roLabelImg旋转角度,水平框表示0弧度。roLableImg角度是弧度,类似于π/2,π/3这样。       

 

       如果我们绘制一个蓝色旋转框,黄箭头表示框处于0弧度。当我们沿黑色顺时针旋转时候角度会从0变到π/2在到π变化,而当我们沿红色箭头逆时针旋转也是从0变到π/2在到π变化。值的处于[0,π ]之间,弧度值不会是负数。因此我们可以得出结论:

(1)roLabelImg角度变化是在[0,π ]

(2)在图中水平位置,无论是顺时针还是逆时针角弧度变化是从0变到π/2在到π
 

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

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

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