Ubuntu18.04安装labelme及使用

Ubuntu18.04安装labelme及使用_第1张图片

labelme的Github网址

安装方法

注:建议提前预先装好anaconda,使用conda安装将会非常简单快速,无报错

# python2
conda create --name=labelme python=2.7
# python3
conda create --name=labelme python=3.6

Ubuntu18.04安装labelme及使用_第2张图片

Ubuntu18.04安装labelme及使用_第3张图片

source activate labelme

如果是python2环境,下一步输入

conda install pyqt
pip install labelme

如果是python3环境,下一步输入

pip install labelme

Ubuntu18.04安装labelme及使用_第4张图片

安装成功截图如下所示

Ubuntu18.04安装labelme及使用_第5张图片

 

简单安装方法

按照Github还有网上一些安装教程指南,安装过程很复杂并且中间出了很多错误,推荐使用这个简单方法安装~

操作系统:Ubuntu18.04

运行环境:Anaconda+Python3.6↑+Cuda+Cudnn

1.安装git

sudo apt install git

2.直接安装labelme,简单!

pip install git+https://github.com/wkentaro/labelme.git

安装成功

Ubuntu18.04安装labelme及使用_第6张图片

3.使用labelme,输入指令

labelme

 

Ubuntu18.04安装labelme及使用_第7张图片

使用教程

1.Single Image Example

1)打开labelme,选择需要标注的图片

2)点击“create polygon”按钮,框中对象,并命名

3)确认标注结束后,点击“save”按钮,会生成一个json文件

文件内容如图所示

Ubuntu18.04安装labelme及使用_第8张图片

我们的目的是得到label data,需要将json文件转换为单通道的image。

在终端中输入指令

labelme_json_to_dataset filename.json

会生成一个文件夹

Ubuntu18.04安装labelme及使用_第9张图片

其中label.png即是我们所需要的label_data

 

2.Video Annotation Example

更新中

参考文章

在ubuntu18.04下安装标签软件labelme

你可能感兴趣的:(技巧)