Ask Your Question
0

how to run humaneva dataset in Opencv

asked 2018-01-17 00:17:55 -0600

I am Dev gravatar image

updated 2018-01-17 00:47:41 -0600

I've followed the steps given in OpenCV documentation https://docs.opencv.org/3.2.0/d9/de0/... but at step 3 example_datasets_hpe_humaneva is missing from give directory. Don't know is i'm following the step correctly. Please help me. This package available in Opencv_contrib module

edit retag flag offensive close merge delete

Comments

the program is here, you can build it like any other opencv app. (assuming, you've build with the opencv_contrib repo)

berak gravatar imageberak ( 2018-01-17 03:19:50 -0600 )edit

sturkmen thanks for your suggestion but dataset-example-hpe_humaneva is not in my directory.

I am Dev gravatar imageI am Dev ( 2018-01-17 08:37:41 -0600 )edit

what is your OpenCV version? did you compile OpenCV with contrib?

sturkmen gravatar imagesturkmen ( 2018-01-17 08:44:32 -0600 )edit

thank you berak while running hpe_humaneva.cpp i got this error fatal error: opencv2/datasets/hpe_humaneva.hpp: No such file or directory #include "opencv2/datasets/hpe_humaneva.hpp"

I tried this command..

  g++ hpe_humaneva.cpp  -lopencv_dnn -lopencv_ml -lopencv_objdetect -lopencv_shape  -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_video -lopencv_photo -lopencv_imgproc -lopencv_flann -lopencv_viz -lopencv_core

l linked the libs from this command pkg-config --cflags --libs opencv

I am Dev gravatar imageI am Dev ( 2018-01-17 08:47:29 -0600 )edit

please answer: did you build with the opencv_contrib repo ? did you run a make install (which should have copied headers/libs/so's)

you will also need to link: -lopencv_datasets (obvious, if you think of it, no ?)

berak gravatar imageberak ( 2018-01-17 09:14:32 -0600 )edit

@sturkmen, just curious, -- did it get build using BUILD_EXAMPLES, or did you build it manually ?

berak gravatar imageberak ( 2018-01-17 09:16:12 -0600 )edit
1

@berak using BUILD_EXAMPLES. @I am Dev what is your expectation using this dataset?

sturkmen gravatar imagesturkmen ( 2018-01-17 09:34:13 -0600 )edit

@sturkmen I want to detect human fall. Fall detection of elderly person is my project. If you have any idea then you can share with me.

I am Dev gravatar imageI am Dev ( 2018-01-17 09:41:08 -0600 )edit

i just downloaded the dataset to investigate. i did not work about this subject before. but it seems you need to use Matlab to get all benefits of the dataset

sturkmen gravatar imagesturkmen ( 2018-01-17 09:49:17 -0600 )edit

hello @berak yes i build the opencv_contrib and also run the make install but i don't know how to link -lopencv_dataset. please help me.

I am Dev gravatar imageI am Dev ( 2018-01-18 00:24:21 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-01-17 08:11:51 -0600

updated 2018-01-18 12:50:19 -0600

as stated in the documentation

Usage:

1.From link above download dataset files for HumanEva-I (tar) & HumanEva-II.
2.Unpack them to HumanEva_1 & HumanEva_2 accordingly.
3.To load data run:
./opencv/build/bin/example_datasets_hpe_humaneva -p=/home/user/path_to_unpacked_folders/

i downloaded HumanEva-I & HumanEva-II

and extracted in D:/datasets like below

image description

here is my output when run the sample program

D:\build\opencv\bin\Release>datasets-example-hpe_humaneva -path=D:/datasets/
        HumanEva 1
train size: 284
last train video:
person: 4
action: Walking
type1: 2
type2: C3
filename: D:/datasets/HumanEva_1/S4/Image_Data/Walking_2_(C3).avi
num images: 0
ofs: 53.000000 672.000000 1.998500
        HumanEva 2
train size: 8
last train video:
person: 2
action: Combo
type1: 4
type2: C4
filename: D:/datasets/HumanEva_2/S4/Image_Data/Combo_4_(C4)
num images: 1425
ofs: 1.000000 1.000000 2.000000
edit flag offensive delete link more

Comments

No it's not working. Did you downloaded and run all the parts of Humaneva_1 dataset or any one of them.

I am Dev gravatar imageI am Dev ( 2018-01-18 12:41:02 -0600 )edit

Hi! I was able to get the tar files for the HumanEva_1, and following the instructions, I was able to "link" the tar files. However, I'm not too sure on what to do with the HumanEva_2, the zip file, when double clicked, gives an error. It also doesn't seem to work from the Terminal, as running the unzip command from there does not unpack the files properly and it only gives the S4 folder. How did you unzip the dataset for Human Eva 2?

I got it to work. If anyone's hit the same roadblock, just run "$ zip -s 0 HumanEva_II.zip --out combined.zip", make sure you have the starting zip file, as well as files .z01-.z06, then hit enter. It's gonna extract everything to combined.zip, then you can unzip that file instead.

razgriz gravatar imagerazgriz ( 2018-04-01 05:56:58 -0600 )edit

Question Tools

Stats

Asked: 2018-01-17 00:17:55 -0600

Seen: 392 times

Last updated: Jan 18 '18