赞
踩
第一,下载labelimg-master,网址https://github.com/tzutalin/labelImg,下载之后我直接放在了D:/Anaconda2/下边。
第二,下载PyQt4,网址https://sourceforge.net/projects/pyqt/files/PyQt4/,我下载的是PyQt4-4.11.3-gpl-Py2.7-Qt4.8.6-x64.exe,下下来之后安装,安装内容选的是mini那个,直接安装到了anaconde2/lib/sit-packages/PyQt4里(此PyQt4为新建文件夹),然后一直往里边点,找到该文件夹中的PyQt4文件夹,然后复制粘贴到anaconde2/lib/sit-packages,将原来的PyQt4覆盖掉,之后要把原来的PyQt5删掉,然后把PyQt4的路径添加一些吧(反正我添加了,具体不添加影不影响我没试)。
第三,sip-4.18.1.tar和lmxl都不用下载安装了,因为Anaconda2里边都集成的有,所以非常方便(这点自己走了弯路,捯饬了好久才发现)。
第四,打开cmd,cd到自己labelimg-master路径下,然后输入pyrcc5 -o resources.py resources.qrc,别的博客中用的是pyrcc4,但是我的Anaconde2里边只有pyrcc5,我用4试了好几遍都报错找不到。成功之后在你的labelimg-master文件夹下会出现一个resources.py,打开修改代码,将from PyQt5 import QtCore 改为from PyQt4 import QtCore。
第五,运行labelimg-master文件夹中的labelimg.py。
应该没有什么报错,直接弹出框图exe啦!
第六,热键:
Ctrl + u | Load all of the images from a directory |
Ctrl + r | Change the default annotation target dir |
Ctrl + s | Save |
Ctrl + d | Copy the current label and rect box |
Space | Flag the current image as verified |
w | Create a rect box |
d | Next image |
a | Previous image |
del | Delete the selected rect box |
Ctrl++ | Zoom in |
Ctrl-- | Zoom out |
↑→↓← | Keyboard arrows to move selected rect box |
有问题欢迎留言,也欢迎大神们批评指正。
菜鸟学习总结,不喜勿喷。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。