zoukankan      html  css  js  c++  java
  • 图像标注工具labelImg安装记录

    这里仅记载下labelImg的安装过程,因为有坑。

    我的安装方式是从源码编译,环境ubuntu16.04,一开始是使用python2安装,从github上下载好源码,然后执行安装命令

    sudo apt-get install pyqt4-dev-tools
    sudo pip install lxml
    make qt4py2
    python labelImg.py

    make qt4py2的时候,会显示如下

    pyrcc4 -py2 -o resources.py resources.qrc
    Couldn't open /home/wzy/labelImg-master/icons/next.png
    Couldn't open /home/wzy/labelImg-master/icons/zoom-out.png
    Couldn't open /home/wzy/labelImg-master/icons/format_voc.png
    Couldn't open /home/wzy/labelImg-master/icons/expert2.png
    Couldn't open /home/wzy/labelImg-master/icons/copy.png
    Couldn't open /home/wzy/labelImg-master/icons/format_yolo.png
    Couldn't open /home/wzy/labelImg-master/icons/color_line.png
    Couldn't open /home/wzy/labelImg-master/icons/prev.png
    Couldn't open /home/wzy/labelImg-master/icons/cancel.png
    Couldn't open /home/wzy/labelImg-master/icons/edit.png
    Couldn't open /home/wzy/labelImg-master/icons/labels.png
    Couldn't open /home/wzy/labelImg-master/icons/color.png
    Couldn't open /home/wzy/labelImg-master/icons/close.png
    Couldn't open /home/wzy/labelImg-master/icons/quit.png
    Couldn't open /home/wzy/labelImg-master/icons/fit-window.png
    Couldn't open /home/wzy/labelImg-master/icons/fit-width.png
    Couldn't open /home/wzy/labelImg-master/icons/resetall.png
    Couldn't open /home/wzy/labelImg-master/icons/eye.png
    Couldn't open /home/wzy/labelImg-master/icons/undo.png
    Couldn't open /home/wzy/labelImg-master/icons/save-as.png
    Couldn't open /home/wzy/labelImg-master/icons/done.png
    Couldn't open /home/wzy/labelImg-master/icons/open.png
    Couldn't open /home/wzy/labelImg-master/icons/app.png
    Couldn't open /home/wzy/labelImg-master/icons/file.png
    Couldn't open /home/wzy/labelImg-master/icons/help.png
    Couldn't open /home/wzy/labelImg-master/icons/zoom.png
    Couldn't open /home/wzy/labelImg-master/icons/save.png
    Couldn't open /home/wzy/labelImg-master/icons/zoom-in.png
    Couldn't open /home/wzy/labelImg-master/icons/verify.png
    Couldn't open /home/wzy/labelImg-master/icons/objects.png

    再然后执行labelImg.py会报错

    Traceback (most recent call last):
      File "labelImg.py", line 29, in <module>
        import resources
      File "/home/wzy/文档/labelImg-master/resources.py", line 9, in <module>
        from PyQt4 import QtCore
    ImportError: No module named PyQt4

    找不到pyqt4,然额明明安装过。

    于是改用python3,OK了,命令如下,与Python2很像。

    sudo apt-get install pyqt5-dev-tools
    sudo pip3 install lxml
    make qt5py3
    python3 labelImg.py

    软件截图如下

  • 相关阅读:
    20200925--矩阵加法(奥赛一本通P93 6 多维数组)
    20200924--图像相似度(奥赛一本通P92 5多维数组)
    20200923--计算鞍点(奥赛一本通P91 4)
    20200922--计算矩阵边缘元素之和(奥赛一本通P91 3二维数组)
    20200921--同行列对角线的格(奥赛一本通P89 2 二维数组)
    磨人的.net core 3.1(二) DataReader的问题
    磨人的.net core 3.1(一) CORS的问题
    Vue SSR问题:返回的js打包文件为HTML文件
    axios与.net core API实现文件下载
    .Net Core API中基于System.Threading.Timer的定时任务
  • 原文地址:https://www.cnblogs.com/wzyuan/p/9716536.html
Copyright © 2011-2022 走看看