一. 安装
1.Python 3 + Qt5 (Recommended)
sudo apt-get install pyqt5-dev-tools
sudo pip3 install -r requirements/requirements-linux-python3.txt
make qt5py3
python3 labelImg.py
python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
2.上面是ubuntu,python3的安装命令,有其他版本如windows,mac,python2,3的安装命令可以参考:https://github.com/tzutalin/labelImg
3.使用
-
打开data/predefined_classes.txt,修改默认类别为要检测的类别
-
打开标注工具
python labelImg.py
-
[Open Dir]或Ctrl+u选择要标注的图片所在的根目录
-
[Create\nRectBox]或w开始标注,鼠标框选目标区域后选择对应的标签类别,按空格或Ctrl+s保存
-
[Next Image]或d切换到下一张图片
-
标注错误的选框可选中后按[Delete]删除
Hotkeys
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 |