📦 https://github.com/tzutalin/labelImg
安装步骤
- download from github repo
- install dependencies
pip3 install pyqt5 lxml
- build from resource
- mac
make qt5py3
- win10
pyqt5, pyrcc5 -o libs/resources.py resources.qrc
- 准备
classes.txt
和images/
- 运行qt工程
python labelImg.py images/ classes.txt
使用方法
- 切换存储格式为yolo
- 创建区块
- 拖拽区域进行标注并选择种类
- 保存label到
.txt
文件
标注结果
2 0.516246 0.489583 0.967508 0.353107
- pos0: 所标目标的类别
2对应第三个类别
- pos1: 目标垂直方向起始位置 / 图像总高度
- pos2: 目标水平方向起始位置 / 图像总宽度
- pos3: 目标水平宽度 / 图像总宽度
- pos4: 目标垂直高度 / 图像总高度