Skip to content

labelImg工具的使用

doubleZ edited this page Aug 28, 2020 · 1 revision

labelImg工具的使用


https://github.com/tzutalin/labelImg

安装步骤

  1. download from github repo

  2. install dependencies

    pip3 install pyqt5 lxml
  3. build from resource

    • mac

      make qt5py3
    • win10

      pyqt5, pyrcc5 -o libs/resources.py resources.qrc
  4. 准备classes.txtimages/

  5. 运行qt工程

    python labelImg.py images/ classes.txt

使用方法

image-20200725191912189image-20200725192001578image-20200725192129566

  1. 切换存储格式为yolo
  2. 创建区块
  3. 拖拽区域进行标注并选择种类
  4. 保存label到.txt文件

标注结果

2 0.516246 0.489583 0.967508 0.353107
  • pos0: 所标目标的类别

    2对应第三个类别

  • pos1: 目标垂直方向起始位置 / 图像总高度

  • pos2: 目标水平方向起始位置 / 图像总宽度

  • pos3: 目标水平宽度 / 图像总宽度

  • pos4: 目标垂直高度 / 图像总高度

Clone this wiki locally