LabelImg

github:https://github.com/tzutalin/labelImg

安装:(anaconda)

conda install pyqt=5

pip install labelme

labelme

启动后找到目标文件夹,在使用过程中发现,如果存在中文路径或中文名字的时候,会报编码相关的错,暂时还没有找到解决方法,因此文件中不要出现中文。

打开如下页面

LabelImg

使用步骤(PascalVOC)

  1.     运行主程序.
  2.     点击 'Change save dir ' ,设置图像标记文件(XML)的默认存储位置
  3.     点击 'Open Dir',打开图片所在的目录
  4.     点击 'Create RectBox' ,用鼠标创建一个矩形框,框出你需要识别的物体
  5.     松开鼠标后,在弹出框中选择或新录入物体的类别名称。
  6.     点击Next Image或Save,工具会保存该标注信息到XML文件

快捷键:

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