YOLOv5目标检测(win下labelimg下载及使用)

一、labelimg下载:

步骤:

1.win+R

2.cmd(在打开窗口输入)

3.执行下述代码

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

二、labelimg准备:

1.数据准备

准备数据集文件夹(VOC2007)

在数据集文件夹(VOC2007)中新建文件夹1(JPEGImages——存放图片)和文件夹2(Annotations——存放标签)

在数据集文件夹(VOC2007)中新建txt文件(predefined_classes.txt——存放标注的类别名称)

VOC2007的目录结构为:

├── VOC2007
│├── JPEGImages
│├── Annotations 
│├── predefined_classes.txt 

三、labelimg使用

1.从终端进入创建的VOC2007路径(cd),此步关系到predefined_classes.txt能否正常使用

2.在终端执行下述代码,即可打开labelimg

labelimg JPEGImages predefined_classes.txt
#代码解释:打开labelimg工具;打开JPEGImage文件夹,初始化predefined_classes.txt里面定义的类。


猜你喜欢

转载自blog.csdn.net/Aaaa_ZZZ/article/details/123115015