一. 安装
apt-get install pyqt5-dev-tools
git clone https:///tzutalin/labelImg.git
cd labelImg
pip3 install -r requirements/requirements-linux-python3.txt
make qt5py3
二. 使用
1. 打开data/predefined_classes.txt,修改默认类别为要检测的类别
2. 打开标注工具
python labelImg.py
3. [Open Dir]或Ctrl+u选择要标注的图片所在的根目录
4. [Create\nRectBox]或w开始标注,鼠标框选目标区域后选择对应的标签类别,按空格或Ctrl+s保存
5. [Next Image]或d切换到下一张图片
6. 标注错误的选框可选中后按[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 |
















