|
视频讲解:
sudo apt-get install pyqt5-dev-tools
pip3 install lxml
git clone javascript:;.git
cd labelImg
开始编译
make all
报错如下
pyrcc5 -o libs/resources.py resources.qrc
python3 -m unittest discover tests
....Remove setting pkl file $/home/ps/.labelImgSettings.pkl
...E..
======================================================================
ERROR: test_setInvaleLocaleToEnv_printErrorMsg (test_stringBundle.TestStringBundle)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ps/dev/yolo/label/labelImg/tests/test_stringBundle.py", line 18, in test_setInvaleLocaleToEnv_printErrorMsg
prev_lc = os.environ['LC_ALL']
File "/usr/lib/python3.10/os.py", line 680, in __getitem__
raise KeyError(key) from None
KeyError: 'LC_ALL'
----------------------------------------------------------------------
Ran 10 tests in 0.105s
FAILED (errors=1)
make: *** [Makefile:11: testpy3] Error 1
设置环境变量export LC_ALL=en_US.UTF-8
EEWORLDIMGTK1
使用指令如下
python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
直接python3 labelImg.py的话默认如下
默认的label列表是在data/predefined_classes.txt
python3 labelImg.py ../../dataset/test/images/ ../../dataset/test/classes.txt
然后最好把auto save勾上
常用的快捷键:
w 创建矩形框
d 切换到下一张图
a 切换到上一张图
del 删除选中的标注矩形框
标注第一个图片看下
看下保存的标注文件