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:
 HOMEIMAGES = '/desired/path/to/Images';
HOMEANNOTATIONS = '/desired/path/to/Annotations';
LMinstall (HOMEIMAGES, HOMEANNOTATIONS); where "/desired/path/to/" is the desired location where the annotations and images will be stored.
This process will create the following directory structure under "/desired/path/to/":
./Annotations
./Annotations/folder1
...
./Annotations/folderN ./Images
./Images/folder1
...
./Images/folderN where folder1 through folderN are directories containing the images and annotations.
  • If you only want to download a list of specific folders, then run:
 HOMEIMAGES = '/desired/path/to/Images';
HOMEANNOTATIONS = '/desired/path/to/Annotations';
folderlist = {'05june05_static_street_porter'};
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:
 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:

 HOMEIMAGES = 'http://people.csail.mit.edu/brussell/research/LabelMe/Images';
HOMEANNOTATIONS = 'http://people.csail.mit.edu/brussell/research/LabelMe/Annotations'; D = LMdatabase(HOMEANNOTATIONS); % This will build an index, which will take few minutes. % Now you can visualize the images
LMplot(D, , HOMEIMAGES); % Or read an image
[annotation, img] = LMread(D, , 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:

 % First create the list of images that you want:
[Q,j] = LMquery(D, 'object.name', 'car');
clear folderlist filelist
for i = :length(Q);
folderlist{i} = Q(i).annotation.folder;
filelist{i} = Q(i).annotation.filename;
end % Install the selected images:
HOMEIMAGES = '/desired/path/to/Images';
HOMEANNOTATIONS = '/desired/path/to/Annotations';
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

LabelMe图像数据集下载的更多相关文章

  1. SUN dataset图像数据集下载

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

  2. 人工智能大数据,公开的海量数据集下载,ImageNet数据集下载,数据挖掘机器学习数据集下载

    人工智能大数据,公开的海量数据集下载,ImageNet数据集下载,数据挖掘机器学习数据集下载 ImageNet挑战赛中超越人类的计算机视觉系统微软亚洲研究院视觉计算组基于深度卷积神经网络(CNN)的计 ...

  3. 医学图像数据(二)——TCIA完整数据集下载方式

    1. 构建下载环境 l  TCIA数据集下载文件为.jnlp格式(JNLP(Java Network Launching Protocol )是java提供的一种可以通过浏览器直接执行java应用程序 ...

  4. scikit-learn数据集下载太慢的问题

    有时候用scikit-learn在线下载数据时太慢,因为网络或者其他原因,这时候我们可以先把数据集下载到本地,然后再把这个数据集放到scikit-learn的data中,首先我们需要找到 scikit ...

  5. MS coco数据集下载

    2017年12月02日 23:12:11 阅读数:10411 登录ms-co-co数据集官网,一直不能进入,FQ之后开看到下载链接.有了下载链接下载还是很快的,在我这儿晚上下载,速度能达到7M/s,所 ...

  6. Kaggle数据集下载

    Kaggle数据集下载步骤: 安装Kaggle库: 注册Kaggle账户: 找到数据集,接受rules: 在My Account>>API中,点击Create New API Token, ...

  7. MIR Flickr 1M 图像数据集(点击即可下载)

    Index of /mirflickr/mirflickr1m Name Last modified Size Description Parent Directory   -   exif.zip ...

  8. zhuan 常用图像数据集:标注、检索

      目录(?)[+]   1.搜狗实验室数据集: http://www.sogou.com/labs/dl/p.html 互联网图片库来自sogou图片搜索所索引的部分数据.其中收集了包括人物.动物. ...

  9. 【机器学习】【计算机视觉】非常全面的图像数据集《Actions》

    目录(?)[+]   1.搜狗实验室数据集: http://www.sogou.com/labs/dl/p.html 互联网图片库来自sogou图片搜索所索引的部分数据.其中收集了包括人物.动物.建筑 ...

随机推荐

  1. 我教女朋友学编程html系列(7)—Html无序列表、自定义列表、有序列表及常用例子

    昨天写的那篇文章<我教女朋友学编程Html系列(6)—Html常用表单控件>,基本上有1000人左右看了,那边文章是我站在前人的肩膀上修改来的,添加了截图和说明,合并了例子,使之更容易被初 ...

  2. android开发 自定义图文混排控件

    功能:图文混排,可自动缩放字体,如图: 单点触控使用的代码来自:http://blog.csdn.net/xiaanming/article/details/42833893  谢谢博主! 在该dem ...

  3. PHP数组的定义和遍历

    //常用函数//生成随机数//echo rand(3,33); //两个参数来确定随机数的范围为3-33 //日期时间函数echo time(); //取当前时间的UNIX时间戳//date_defa ...

  4. UVA 10078 The Art Gallery

    Problem: Century Arts has hundreds of art galleries scattered all around the country and you are hir ...

  5. Poj2420 A Star not a Tree? 模拟退火算法

    题目链接:http://poj.org/problem?id=2420 题目大意:每组数据中给n个点(n<=100),求平面中一个点使得这个点到n个点的距离之和最小. 分析:一开始看到这个题想必 ...

  6. 【BZOJ】【3205】【APIO2013】机器人robot

    斯坦纳树 好神啊……Orz zyf && PoPoQQQ 为啥跟斯坦纳树扯上关系了?我想是因为每个点(robot)都沿着树边汇到根的时候就全部合起来了吧= =这个好像和裸的斯坦纳树不太 ...

  7. NGP处理包

    NGP处理部分(主要就是这个RunOnce函数,客户单肯定是开个线程取调用这个RunOnce的) void NGP::RunOnce() { m_spTimerFac->driveTimer() ...

  8. 在C#中调用VBScript和JavaScript等脚本的实现

    在C#中调用VBScript.JavaScript等脚本的实现 作者:郑佐 2004-04-26 以前在做工作流(workflow)项目的时候,里面有一项就是在用户制定流程定义时可以编写脚本来控制活动 ...

  9. 两种高性能I/O设计模式(Reactor/Proactor)的比较

    原文出处: Alex Libman   译文出处:潘孙友   欢迎分享原创到伯乐头条 综述 这篇文章探讨并比较两种用于TCP服务器的高性能设计模式. 除了介绍现有的解决方案,还提出了一种更具伸缩性,只 ...

  10. 利用PE数据目录的导入表获取函数名及其地址

    PE文件是以64字节的DOS文件头开始的(IMAGE_DOS_HEADER),接着是一段小DOS程序,然后是248字节的 NT文件头(IMAGE_NT_HEADERS),NT的文件头位置由IMAGE_ ...