神经网路学习之利用LabelImg对图像标注

对于监督学习算法而言,数据决定了任务的上限,而算法只是在不断逼近这个上限。世界上最遥远的距离就是我们用同一个模型,但是却有不同的任务。但是数据标注是个耗时耗力的工作,下面介绍一个图像标注工具LabelImg。LabelImg是一个图形图像标注工具,它是用Python编写的,并使用Qt作为其图形界面。注释以PASCAL VOC格式(ImageNet使用的格式)保存为XML文件。此外,它还支持YOLO和CreateML格式。1.准备环境,安装依赖:在ubuntu系统上,安装依赖只需要敲入几个简单的命
摘要由CSDN通过智能技术生成

对于监督学习算法而言,数据决定了任务的上限,而算法只是在不断逼近这个上限。世界上最遥远的距离就是我们用同一个模型,但是却有不同的任务。但是数据标注是个耗时耗力的工作,下面介绍一个图像标注工具LabelImg。

LabelImg是一个图形图像标注工具,它是用Python编写的,并使用Qt作为其图形界面。注释以PASCAL VOC格式(ImageNet使用的格式)保存为XML文件。此外,它还支持YOLO和CreateML格式。

这里我们转换成接近YOLO标记的 文件(之所以说接近是因为YOLO是中心坐标模式,而且会对长宽进行归一化操作).

1.准备环境,安装依赖:

在ubuntu系统上,安装依赖只需要敲入几个简单的命令即可

sudo apt-get install pyqt5-dev-tools

 2.获取代码:

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

3.安装python依赖包:

sudo pip3 install -r requirements/requirements-linux-python3.txt
czl@czl-VirtualBox:~/biaoqian/labelImg$ sudo pip3 install -r requirements/requirements-linux-python3.txt
[sudo] password for czl: 
^Csudo: 1 incorrect password attempt
czl@czl-VirtualBox:~/biaoqian/labelImg$ sudo pip3 install -r requirements/requirements-linux-python3.txt
[sudo] password for czl: 
WARNING: The directory '/home/czl/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /usr/local/lib/python3.6/dist-packages
sysconfig: /usr/lib/python3.6/site-packages
WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /usr/local/lib/python3.6/dist-packages
sysconfig: /usr/lib/python3.6/site-packages
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /usr/local/include/python3.6/UNKNOWN
sysconfig: /usr/include/python3.6m
WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /usr/local/bin
sysconfig: /usr/bin
WARNING: Value for scheme.data does not match. Please report t
  • 8
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

papaofdoudou

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值