Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not detecting humans clearly #6

Open
ganeshchandras opened this issue Feb 25, 2015 · 9 comments
Open

Not detecting humans clearly #6

ganeshchandras opened this issue Feb 25, 2015 · 9 comments
Labels

Comments

@ganeshchandras
Copy link

I have been trying to use your code to train an hog from the images from INIRIA database as you have suggested. For the training set i resized the images to 64x128 as it was required and these images were used to train the svm. i have used about 500 positive images and 700 negative images to train. But it is not identifying humans clearly. The output can be seen in the attachments. I request you to help me figure out what the problem might be. The code is exactly the same as it is in your github folder
screenshot from 2015-02-25 16 36 21

@jkutchka
Copy link

I have this problem too. I used mogrify from ImageMagick to crop the negative files from the INRIA person dataset to 64x128. The center regions were chosen using the -gravity Center option. This was done on the pos files too since they were originally 96x160. Other than that, I followed the directions in the tutorial. My output is similar to ganeshchandras's now.

@jkutchka
Copy link

I wrote a script to segment the negative image files into 64x128 images. Now there are ~8500 negative image files. I ran trainhog with this dataset and now there aren't as many green rectangles, but it fails to detect me in the picture. :(

@jkutchka
Copy link

I tried downgrading to OpenCV 2.3.1. Still not working.

@tarunkumar2012
Copy link

Is somebody find a solution for this problem as i am having the same problem with INIRIA dataset

@DaHoC DaHoC added the bug label Jul 29, 2015
@ghost
Copy link

ghost commented Nov 24, 2015

Same problem, has anybody figured it out ?

@DaHoC
Copy link
Owner

DaHoC commented Jan 13, 2016

Maybe the trainHOG code is missing a normalisation step (which I assumed the openCV HOG feature calculation already does) when calculating features, as mentioned in the original paper by Dalal and Triggs, explaining the observed results. I will look at this bug when I have some time, and will try to reconstruct the original INRIA dataset training.

@davidguld
Copy link

I have the same problem with multiple false positive. I iterate through the images in the INRIAPerson\Test\pos folder and call the detectTest function.

I have tried multiple combinations of scale or crop with the images in the train_64x128_H96 folder, but no luck.

My console output is:

Testing training phase using training set as test set (just to check if training is ok - no detection quality conclusion with this!)
Results:
True Positives: 2393
True Negatives: 1174
False Positives: 44
False Negatives: 23

Is this due to something with the dataset not being the same as the original?

Have anybody ever been able to run this code with a good result, using images not from the learning set?

@fsapiains
Copy link

I'm having the same problem, has somebody a solution for this problem? @DaHoC

@swetapanigrahi
Copy link

has anyone found the solution for this problem? facing same problem with inria dataset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants