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]