labelImg安装

Git 项目地址  https://github.com/tzutalin/labelImg

1.Python 3 + Qt5

    sudo apt-get install pyqt5-dev-tools

    sudo pip3 install lxml

    make qt5py3  (进入labelImg解压后的目录安装,否则报错)

    python3 labelImg.py

    python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]

 

2.Windows + Anaconda

 (1)在Anaconda Prompt中:

 conda install pyqt=5

 conda install lxml

 (2)在labelImage 的目录下 shift+右键打开cmd 运行以下命令:

    (  或者cmd进入解压目录 d:  cd D:\Program Files\labelImg-master)

    pyrcc5 -o resources.py resources.qrc

    python labelImg.py

    python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]

猜你喜欢

转载自blog.csdn.net/qq_37293427/article/details/82625499