Skip to content

Commit 89c0435

Browse files
committed
Merge pull request #78 from avdmitry/datasetstools
datasets loading module
2 parents d099fbc + ee684c8 commit 89c0435

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+10056
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set(the_description "datasets tools")
2+
ocv_define_module(datasetstools opencv_core)
3+
Lines changed: 331 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,331 @@
1+
*********************************************************
2+
datasetstools. Tools for working with different datasets.
3+
*********************************************************
4+
5+
.. highlight:: cpp
6+
7+
The datasetstools module includes classes for working with different datasets.
8+
9+
First version of this module was implemented for **Fall2014 OpenCV Challenge**.
10+
11+
Action Recognition
12+
------------------
13+
14+
AR_hmdb
15+
=======
16+
.. ocv:class:: AR_hmdb
17+
18+
Implements loading dataset:
19+
20+
_`"HMDB: A Large Human Motion Database"`: http://serre-lab.clps.brown.edu/resource/hmdb-a-large-human-motion-database/
21+
22+
.. note:: Usage
23+
24+
1. From link above download dataset files: hmdb51_org.rar & test_train_splits.rar.
25+
26+
2. Unpack them.
27+
28+
3. To load data run: ./opencv/build/bin/example_datasetstools_ar_hmdb -p=/home/user/path_to_unpacked_folders/
29+
30+
AR_sports
31+
=========
32+
.. ocv:class:: AR_sports
33+
34+
Implements loading dataset:
35+
36+
_`"Sports-1M Dataset"`: http://cs.stanford.edu/people/karpathy/deepvideo/
37+
38+
.. note:: Usage
39+
40+
1. From link above download dataset files (git clone https://code.google.com/p/sports-1m-dataset/).
41+
42+
2. To load data run: ./opencv/build/bin/example_datasetstools_ar_sports -p=/home/user/path_to_downloaded_folders/
43+
44+
Face Recognition
45+
----------------
46+
47+
FR_lfw
48+
======
49+
.. ocv:class:: FR_lfw
50+
51+
Implements loading dataset:
52+
53+
_`"Labeled Faces in the Wild-a"`: http://www.openu.ac.il/home/hassner/data/lfwa/
54+
55+
.. note:: Usage
56+
57+
1. From link above download dataset file: lfwa.tar.gz.
58+
59+
2. Unpack it.
60+
61+
3. To load data run: ./opencv/build/bin/example_datasetstools_fr_lfw -p=/home/user/path_to_unpacked_folder/lfw2/
62+
63+
Gesture Recognition
64+
-------------------
65+
66+
GR_chalearn
67+
===========
68+
.. ocv:class:: GR_chalearn
69+
70+
Implements loading dataset:
71+
72+
_`"ChaLearn Looking at People"`: http://gesture.chalearn.org/
73+
74+
.. note:: Usage
75+
76+
1. Follow instruction from site above, download files for dataset "Track 3: Gesture Recognition": Train1.zip-Train5.zip, Validation1.zip-Validation3.zip (Register on site: www.codalab.org and accept the terms and conditions of competition: https://www.codalab.org/competitions/991#learn_the_details There are three mirrors for downloading dataset files. When I downloaded data only mirror: "Universitat Oberta de Catalunya" works).
77+
78+
2. Unpack train archives Train1.zip-Train5.zip to one folder (currently loading validation files wasn't implemented)
79+
80+
3. To load data run: ./opencv/build/bin/example_datasetstools_gr_chalearn -p=/home/user/path_to_unpacked_folder/
81+
82+
GR_skig
83+
=======
84+
.. ocv:class:: GR_skig
85+
86+
Implements loading dataset:
87+
88+
_`"Sheffield Kinect Gesture Dataset"`: http://lshao.staff.shef.ac.uk/data/SheffieldKinectGesture.htm
89+
90+
.. note:: Usage
91+
92+
1. From link above download dataset files: subject1_dep.7z-subject6_dep.7z, subject1_rgb.7z-subject6_rgb.7z.
93+
94+
2. Unpack them.
95+
96+
3. To load data run: ./opencv/build/bin/example_datasetstools_gr_skig -p=/home/user/path_to_unpacked_folders/
97+
98+
Human Pose Estimation
99+
---------------------
100+
101+
HPE_parse
102+
=========
103+
.. ocv:class:: HPE_parse
104+
105+
Implements loading dataset:
106+
107+
_`"PARSE Dataset"`: http://www.ics.uci.edu/~dramanan/papers/parse/
108+
109+
.. note:: Usage
110+
111+
1. From link above download dataset file: people.zip.
112+
113+
2. Unpack it.
114+
115+
3. To load data run: ./opencv/build/bin/example_datasetstools_hpe_parse -p=/home/user/path_to_unpacked_folder/people_all/
116+
117+
Image Registration
118+
------------------
119+
120+
IR_affine
121+
=========
122+
.. ocv:class:: IR_affine
123+
124+
Implements loading dataset:
125+
126+
_`"Affine Covariant Regions Datasets"`: http://www.robots.ox.ac.uk/~vgg/data/data-aff.html
127+
128+
.. note:: Usage
129+
130+
1. From link above download dataset files: bark\\bikes\\boat\\graf\\leuven\\trees\\ubc\\wall.tar.gz.
131+
132+
2. Unpack them.
133+
134+
3. To load data, for example, for "bark", run: ./opencv/build/bin/example_datasetstools_ir_affine -p=/home/user/path_to_unpacked_folder/bark/
135+
136+
IR_robot
137+
========
138+
.. ocv:class:: IR_robot
139+
140+
Implements loading dataset:
141+
142+
_`"Robot Data Set"`: http://roboimagedata.compute.dtu.dk/?page_id=24
143+
144+
.. note:: Usage
145+
146+
1. From link above download files for dataset "Point Feature Data Set – 2010": SET001_6.tar.gz-SET055_60.tar.gz (there are two data sets: - Full resolution images (1200×1600), ~500 Gb and - Half size image (600×800), ~115 Gb.)
147+
2. Unpack them to one folder.
148+
149+
3. To load data run: ./opencv/build/bin/example_datasetstools_ir_robot -p=/home/user/path_to_unpacked_folder/
150+
151+
Image Segmentation
152+
------------------
153+
154+
IS_bsds
155+
=======
156+
.. ocv:class:: IS_bsds
157+
158+
Implements loading dataset:
159+
160+
_`"The Berkeley Segmentation Dataset and Benchmark"`: https://www.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/
161+
162+
.. note:: Usage
163+
164+
1. From link above download dataset files: BSDS300-human.tgz & BSDS300-images.tgz.
165+
166+
2. Unpack them.
167+
168+
3. To load data run: ./opencv/build/bin/example_datasetstools_is_bsds -p=/home/user/path_to_unpacked_folder/BSDS300/
169+
170+
IS_weizmann
171+
===========
172+
.. ocv:class:: IS_weizmann
173+
174+
Implements loading dataset:
175+
176+
_`"Weizmann Segmentation Evaluation Database"`: http://www.wisdom.weizmann.ac.il/~vision/Seg_Evaluation_DB/
177+
178+
.. note:: Usage
179+
180+
1. From link above download dataset files: Weizmann_Seg_DB_1obj.ZIP & Weizmann_Seg_DB_2obj.ZIP.
181+
182+
2. Unpack them.
183+
184+
3. To load data, for example, for 1 object dataset, run: ./opencv/build/bin/example_datasetstools_is_weizmann -p=/home/user/path_to_unpacked_folder/1obj/
185+
186+
Multiview Stereo Matching
187+
-------------------------
188+
189+
MSM_epfl
190+
========
191+
.. ocv:class:: MSM_epfl
192+
193+
Implements loading dataset:
194+
195+
_`"EPFL Multi-View Stereo"`: http://cvlabwww.epfl.ch/~strecha/multiview/denseMVS.html
196+
197+
.. note:: Usage
198+
199+
1. From link above download dataset files: castle_dense\\castle_dense_large\\castle_entry\\fountain\\herzjesu_dense\\herzjesu_dense_large_bounding\\cameras\\images\\p.tar.gz.
200+
201+
2. Unpack them in separate folder for each object. For example, for "fountain", in folder fountain/ : fountain_dense_bounding.tar.gz -> bounding/, fountain_dense_cameras.tar.gz -> camera/, fountain_dense_images.tar.gz -> png/, fountain_dense_p.tar.gz -> P/
202+
203+
3. To load data, for example, for "fountain", run: ./opencv/build/bin/example_datasetstools_msm_epfl -p=/home/user/path_to_unpacked_folder/fountain/
204+
205+
MSM_middlebury
206+
==============
207+
.. ocv:class:: MSM_middlebury
208+
209+
Implements loading dataset:
210+
211+
_`"Stereo – Middlebury Computer Vision"`: http://vision.middlebury.edu/mview/
212+
213+
.. note:: Usage
214+
215+
1. From link above download dataset files: dino\\dinoRing\\dinoSparseRing\\temple\\templeRing\\templeSparseRing.zip
216+
217+
2. Unpack them.
218+
219+
3. To load data, for example "temple" dataset, run: ./opencv/build/bin/example_datasetstools_msm_middlebury -p=/home/user/path_to_unpacked_folder/temple/
220+
221+
Object Recognition
222+
------------------
223+
224+
OR_imagenet
225+
===========
226+
.. ocv:class:: OR_imagenet
227+
228+
Implements loading dataset:
229+
230+
_`"ImageNet"`: http://www.image-net.org/
231+
232+
Currently implemented loading full list with urls. Planned to implement dataset from ILSVRC challenge.
233+
234+
.. note:: Usage
235+
236+
1. From link above download dataset file: imagenet_fall11_urls.tgz
237+
238+
2. Unpack it.
239+
240+
3. To load data run: ./opencv/build/bin/example_datasetstools_or_imagenet -p=/home/user/path_to_unpacked_file/
241+
242+
OR_sun
243+
======
244+
.. ocv:class:: OR_sun
245+
246+
Implements loading dataset:
247+
248+
_`"SUN Database"`: http://sun.cs.princeton.edu/
249+
250+
Currently implemented loading "Scene Recognition Benchmark. SUN397". Planned to implement also "Object Detection Benchmark. SUN2012".
251+
252+
.. note:: Usage
253+
254+
1. From link above download dataset file: SUN397.tar
255+
256+
2. Unpack it.
257+
258+
3. To load data run: ./opencv/build/bin/example_datasetstools_or_sun -p=/home/user/path_to_unpacked_folder/SUN397/
259+
260+
SLAM
261+
----
262+
263+
SLAM_kitti
264+
==========
265+
.. ocv:class:: SLAM_kitti
266+
267+
Implements loading dataset:
268+
269+
_`"KITTI Vision Benchmark"`: http://www.cvlibs.net/datasets/kitti/eval_odometry.php
270+
271+
.. note:: Usage
272+
273+
1. From link above download "Odometry" dataset files: data_odometry_gray\\data_odometry_color\\data_odometry_velodyne\\data_odometry_poses\\data_odometry_calib.zip.
274+
275+
2. Unpack data_odometry_poses.zip, it creates folder dataset/poses/. After that unpack data_odometry_gray.zip, data_odometry_color.zip, data_odometry_velodyne.zip. Folder dataset/sequences/ will be created with folders 00/..21/. Each of these folders will contain: image_0/, image_1/, image_2/, image_3/, velodyne/ and files calib.txt & times.txt. These two last files will be replaced after unpacking data_odometry_calib.zip at the end.
276+
277+
3. To load data run: ./opencv/build/bin/example_datasetstools_slam_kitti -p=/home/user/path_to_unpacked_folder/dataset/
278+
279+
SLAM_tumindoor
280+
==============
281+
.. ocv:class:: SLAM_tumindoor
282+
283+
Implements loading dataset:
284+
285+
_`"TUMindoor Dataset"`: http://www.navvis.lmt.ei.tum.de/dataset/
286+
287+
.. note:: Usage
288+
289+
1. From link above download dataset files: dslr\\info\\ladybug\\pointcloud.tar.bz2 for each dataset: 11-11-28 (1st floor)\\11-12-13 (1st floor N1)\\11-12-17a (4th floor)\\11-12-17b (3rd floor)\\11-12-17c (Ground I)\\11-12-18a (Ground II)\\11-12-18b (2nd floor)
290+
291+
2. Unpack them in separate folder for each dataset. dslr.tar.bz2 -> dslr/, info.tar.bz2 -> info/, ladybug.tar.bz2 -> ladybug/, pointcloud.tar.bz2 -> pointcloud/.
292+
293+
3. To load each dataset run: ./opencv/build/bin/example_datasetstools_slam_tumindoor -p=/home/user/path_to_unpacked_folders/
294+
295+
Text Recognition
296+
----------------
297+
298+
TR_chars
299+
========
300+
.. ocv:class:: TR_chars
301+
302+
Implements loading dataset:
303+
304+
_`"The Chars74K Dataset"`: http://www.ee.surrey.ac.uk/CVSSP/demos/chars74k/
305+
306+
.. note:: Usage
307+
308+
1. From link above download dataset files: EnglishFnt\\EnglishHnd\\EnglishImg\\KannadaHnd\\KannadaImg.tgz, ListsTXT.tgz.
309+
310+
2. Unpack them.
311+
312+
3. Move .m files from folder ListsTXT/ to appropriate folder. For example, English/list_English_Img.m for EnglishImg.tgz.
313+
314+
4. To load data, for example "EnglishImg", run: ./opencv/build/bin/example_datasetstools_tr_chars -p=/home/user/path_to_unpacked_folder/English/
315+
316+
TR_svt
317+
======
318+
.. ocv:class:: TR_svt
319+
320+
Implements loading dataset:
321+
322+
_`"The Street View Text Dataset"`: http://vision.ucsd.edu/~kai/svt/
323+
324+
.. note:: Usage
325+
326+
1. From link above download dataset file: svt.zip.
327+
328+
2. Unpack it.
329+
330+
3. To load data run: ./opencv/build/bin/example_datasetstools_tr_svt -p=/home/user/path_to_unpacked_folder/svt/svt1/
331+

0 commit comments

Comments
 (0)