LabelImg(目标检测标注工具)的安装与使用教程

🔝🔝🔝🔝🔝🔝🔝🔝🔝🔝🔝🔝
🥰 博客首页: knighthood2001
😗 欢迎点赞👍评论🗨️
❤️ 热爱python,期待与大家一同进步成长!!❤️
👀给大家推荐一款很火爆的刷题、面试求职网站 👀

目录

什么是labelimg

安装labelimg

初识labelimg

labelimg的快捷键

标注结果展示

1 VOC

2 YOLO

labelimg.exe的存放位置

写在结尾

什么是labelimg

labelimg是一款开源的图像标注工具,标签可用于分类和目标检测,它是用python写的,并使用Qt作为其图形界面,简单好用(虽然是英文版的)。其注释以PASCAL VOC 格式保存为XML文件 ,这是ImageNet使用的格式。此外,它还支持 COCO数据集格式。

安装labelimg

cmd输入以下命令

pip install labelimg -i https://pypi.tuna.tsinghua.edu.cn/simple

然后等待其 自动帮你安装labelimg以及lxml和pyqt5(下图由于笔者已经安装过了,就不重新卸载安装了)

LabelImg(目标检测标注工具)的安装与使用教程

结束后,在 cmd中输入 labelimg

labelimg

LabelImg(目标检测标注工具)的安装与使用教程

等一会会就会出现labelimg页面

初识labelimg

LabelImg(目标检测标注工具)的安装与使用教程

英文解释如下:

LabelImg(目标检测标注工具)的安装与使用教程

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:e0dd3a03-03ed-4fc8-a32c-2e785e0f50b2

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:2f1b31a2-29cd-467d-be6d-2f59df4fdb71

在View中勾选Auto Save mode

LabelImg(目标检测标注工具)的安装与使用教程

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:5d0423ba-1a23-4bdd-8199-8b2618ccc26e

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:c27deb67-b3d5-44e6-b2ae-953b11f7807d

LabelImg(目标检测标注工具)的安装与使用教程

并设置标注文件保存的目录(上图中的Change Save Dir)

接下来就开始标注,画框,标记目标的label,然后d切换到下一张继续标注,不断重复重复

LabelImg(目标检测标注工具)的安装与使用教程

labelimg的快捷键

LabelImg(目标检测标注工具)的安装与使用教程

笔者一般使用W和D ,这里大家可以去试试,用上快捷键后,标注速度肯定会得到提升。

标注结果展示

1 VOC

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:109268c5-95bd-4910-9055-f7e2c44573fb

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:260c37b5-f0c8-4d97-baa4-eefb36c56255

LabelImg(目标检测标注工具)的安装与使用教程

由于笔者是用PASCAL VOC格式,其最终保存为XML文件

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:1a164559-95d7-4046-80fe-3bf466fc9906

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:bf25aba7-0dff-4c41-b771-a676478a954d

LabelImg(目标检测标注工具)的安装与使用教程

标注完后,生成的xml文件就可以方便后续的xml_to_csv以及转换为tfrecord文件了。

2 YOLO

LabelImg(目标检测标注工具)的安装与使用教程

主要改成YOLO即可,后续操作与上述一样。

生成文件如下

LabelImg(目标检测标注工具)的安装与使用教程

一个名为”classes.txt”的文件也保存到该文件夹​​中。

①”classes.txt”定义了你的 YOLO 标签所引用的类名列表。
②具体的标注文件中每一行表示一个目标,以空格进行区分,分别表示目标的类别id,归一化处理之后的 中心点x坐标、y坐标、目标框的w和h

LabelImg(目标检测标注工具)的安装与使用教程

完成后可进行后续的yolo训练方面的操作。

labelimg.exe的存放位置

使用everything软件查找labelimg

LabelImg(目标检测标注工具)的安装与使用教程

可以发现一般其安装在你Scripts目录下,

LabelImg(目标检测标注工具)的安装与使用教程

写在结尾

本篇文章主要是方便大家安装labelimg以及使用labelimg的一些小技巧,在目标检测上面,在标注图片上面,了解一些labelimg及其使用还是很有必要的。

Original: https://blog.csdn.net/knighthood2001/article/details/125883343
Author: knighthood2001
Title: LabelImg(目标检测标注工具)的安装与使用教程

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/563318/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球