Download MATLAB Toolbox for the LabelMe Image Database

利用Matlab Toolbox工具箱下载图像库

一、下载Matlab Toolbox工具箱

1. Github repository

We maintain the latest version of the toolbox on github. To pull the latest version, make sure that "git" is installed on your machine and then run "git clone https://github.com/CSAILVision/LabelMeToolbox.git" on the command line. You can refresh your copy to the latest version by running "git pull" from inside the project directory.

2. Zip file

The zip file is a snapshot of the latest source code on github.

二、下载图像库

Download the Dataset

There are two ways to work with the dataset: (1) downloading all the images via the LabelMe Matlab toolbox. The toolbox will allow you to customize the portion of the database that you want to download, (2) Using the images online via the LabelMe Matlab toolbox. This option is less preferred as it will be slower, but it will allow you to explore the dataset before downloading it. Once you have installed the database, you can use the LabelMe Matlab toolbox to read the annotation files and query the images to extract specific objects.

Option 1: Customizable download using the LabelMe Matlab toolbox

Before downloading the dataset, we only ask you to label some images using the annotation tool online. Any new labels that you will add, will be inmediately ready for download.

Step 1: Download the LabelMe Matlab toolbox and add the toolbox to the Matlab path.

Step 2: The function LMinstall will download the database. There are three ways to use this function:

  • To download the entire dataset, type the following into Matlab:
 1 HOMEIMAGES = '/desired/path/to/Images';
 2 HOMEANNOTATIONS = '/desired/path/to/Annotations';
 3 LMinstall (HOMEIMAGES, HOMEANNOTATIONS);
 4
 5 where "/desired/path/to/" is the desired location where the annotations and images will be stored.
 6  This process will create the following directory structure under "/desired/path/to/":
 7 ./Annotations
 8 ./Annotations/folder1
 9 ...
10 ./Annotations/folderN
11
12 ./Images
13 ./Images/folder1
14 ...
15 ./Images/folderN
16
17 where folder1 through folderN are directories containing the images and annotations.

  • If you only want to download a list of specific folders, then run:
1 HOMEIMAGES = '/desired/path/to/Images';
2 HOMEANNOTATIONS = '/desired/path/to/Annotations';
3 folderlist = {'05june05_static_street_porter'};
4 LMinstall (folderlist, HOMEIMAGES, HOMEANNOTATIONS);

This will download only one folder from the collection. You can see the complete list of folders here.

  • If you already have the dataset but want to update the annotations, then use LMinstall with four arguments:
1 LMinstall (folders, images, HOMEIMAGES, HOMEANNOTATIONS);

Option 2: Access the online database directly with the LabelMe Matlab toolbox

Before downloading the dataset, we only ask you to label some images using the annotation tool online. Any new labels that you will add, will be inmediately ready for download. If you use the LabelMe Matlab toolbox, it is not necesary to download the database. You can use the online images and annotations in the same way as if they were on your local hard drive. This might be slow, but it will let you explore the database before downloading it. If you plan to use the database extensively, it is better to download a local copy for yourself. Here are a few Matlab commands that show how to use the online database:

 1 HOMEIMAGES = 'http://people.csail.mit.edu/brussell/research/LabelMe/Images';
 2 HOMEANNOTATIONS = 'http://people.csail.mit.edu/brussell/research/LabelMe/Annotations';
 3
 4 D = LMdatabase(HOMEANNOTATIONS); % This will build an index, which will take few minutes.
 5
 6 % Now you can visualize the images
 7 LMplot(D, 1, HOMEIMAGES);
 8
 9 % Or read an image
10 [annotation, img] = LMread(D, 1, HOMEIMAGES);

You can query the database to select the images you want and install only those ones. For instance, if you are interested only in images containing cars, you can run the following:

 1 % First create the list of images that you want:
 2 [Q,j] = LMquery(D, 'object.name', 'car');
 3 clear folderlist filelist
 4 for i = 1:length(Q);
 5       folderlist{i} = Q(i).annotation.folder;
 6       filelist{i} = Q(i).annotation.filename;
 7 end
 8
 9 % Install the selected images:
10 HOMEIMAGES = '/desired/path/to/Images';
11 HOMEANNOTATIONS = '/desired/path/to/Annotations';
12 LMinstall (folderlist, filelist, HOMEIMAGES, HOMEANNOTATIONS);


参考:

[1] http://labelme.csail.mit.edu/Release3.0/browserTools/php/matlab_toolbox.php

[2] http://labelme.csail.mit.edu/Release3.0/browserTools/php/dataset.php

转载于:https://www.cnblogs.com/GarfieldEr007/p/5338708.html

LabelMe图像数据集下载相关推荐

  1. SUN dataset图像数据集下载

    SUN dataset数据集,有两个不错的网址: http://vision.princeton.edu/projects/2010/SUN/ (普林斯顿大学) http://groups.csail ...

  2. Oxford Buildings Dataset 图像数据集 下载地址| 牛津建筑物 |

    ❤️[专栏:数据集整理]❤️ 之[有效拒绝假数据]

  3. DeepLearning | Zero shot learning 零样本学习AWA2 图像数据集预处理

    因为有打算想要写一组关于零样本学习算法的博客,需要用到AWA2数据集作为demo演示 之前想只展示算法部分的代码就好了,但是如果只展示算法部分的代码可能不方便初学者复现,所以这里把我数据预处理的方法也 ...

  4. 腾讯AI Lab开源业内最大规模多标签图像数据集(附下载地址)

    今日(10 月 18 日),腾讯AI Lab宣布正式开源"Tencent ML-Images"项目.该项目由多标签图像数据集 ML-Images,以及业内目前同类深度学习模型中精度 ...

  5. Flickr30k图像标注数据集下载及使用方法(转载的,备忘)

    Flickr30k图像标注数据集下载及使用方法 这是该博主贴的链接:Flickr30k图像标注数据集下载及使用方法 直接从百度云盘中下载 链接:https://pan.baidu.com/s/1r0R ...

  6. 常用眼底图像数据集简介及下载--糖尿病视网膜病变(Eyepacs,APTOS2019,Messdior,Messdior-2,STARE数据集)

    一.糖尿病视网膜病变图像介绍 1.微动脉瘤通常出现在病变早期,它是由于眼部毛细血管缺氧导致血管壁变薄,从而在视网膜上呈现出深红色的点状物 2.出血点一般出现在血管附近,它是由于血管阻塞导致血液渗出形成 ...

  7. 电气仪表、电表检测、表计检测图像数据集(含VOC标签,3000多张图像,网盘下载链接)

    数据集图像示例: 下载地址:电气仪表.电表检测.表计检测图像数据集(含VOC标签,3000多张图像)

  8. DOTA航拍图像数据集,免费资源下载35G遥感数据集

    DOTA Dataset遥感数据集下载(挂VPN会进的更快哦,下载链接最底下) DOTA Dataset : A Large-scale Dataset for Object DeTection in ...

  9. 全景(360 度相机)图像数据集 3D60 Dataset 下载步骤 (详细)

    3D60 Dataset 下载步骤 (详细) 3D60 Dataset 是研究全景相机.360度相机必不可少的数据集. 目录 3D60 Dataset 下载步骤 (详细) 数据集简介 数据集下载方法 ...

最新文章

  1. ethereumjs/ethereumjs-util
  2. 一款jQuery实现重力弹动模拟效果特效,弹弹弹,弹走IE6
  3. 在Python-dataframe中如何把出生日期转化为年龄?
  4. 【Paper】2019_Distributed Optimal Control of Energy Storages in a DC Microgrid with Communication Dela
  5. 互联网时代的春节注意事项 PMcaff | 趣事
  6. Centos设置程序开机自启的方法
  7. 不同路径Python解法
  8. Windows 8.1 新增控件之 Hyperlink
  9. 排序算法理解总结篇——冒泡排序、选择排序、插入排序、希尔排序、归并排序、堆排序、计数排序、基数排序、桶排序
  10. springcloud 服务调用的两种方式
  11. dubbo暴露出HTTP服务
  12. oracle SQL语句练习
  13. 如何区分正反馈,负反馈放大电路?【模电02课】
  14. Vue小demo—美团注册页面
  15. Ubuntu20.04修改root用户密码
  16. 网络发现自动关闭不能启用、无法启用文件和打印共享的解决办法
  17. WEB基础与前端开发--课程表页面的设计
  18. iOS中UIControl的介绍
  19. Error response from daemon: conflict: unable to delete image has dependent child images
  20. RadioButton的排版,图标样式修改和图标文字间距修改

热门文章

  1. 对于数据库进行设计在PHP,关于数据库表的设计
  2. php的运算符实践输入年份,[php第四课]运算符
  3. java lambda 变量_java8新特性-lambda(变量捕获)
  4. pg数据库json数据类型_PG数据类型
  5. springboot @cacheable不起作用_Springboot学习记录13 使用缓存:整合redis
  6. 计算机显示器黑屏首先检查,蓝快干货 | 电脑黑屏的解决办法
  7. android手机内存这么大,专业解读:为什么安卓手机的内存越来越大?
  8. date数据类型的正确格式_说说数据类型 上篇日期
  9. 浅谈Chatbot的架构模型和响应机制
  10. Linux那些事儿 之 戏说USB(2)漫漫辛酸路