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

Window Size Change #5

Open
bkolarov opened this issue Jan 3, 2015 · 2 comments
Open

Window Size Change #5

bkolarov opened this issue Jan 3, 2015 · 2 comments

Comments

@bkolarov
Copy link

bkolarov commented Jan 3, 2015

What should I do when my images are 64x64 instead of 64x128? Is changing this line hog.winSize = Size(64, 128); to hog.winSize = Size(64, 64); enough?

@neumann89
Copy link

That's the same question I wanted to ask.
On this page (last question at bottom) someone says that opencv implementation of hog only can detect 64x128 windows: http://answers.opencv.org/question/10374/how-to-training-hog-and-use-my-hogdescriptor/

I tried some different window sizes and came to the same results, that only with 64x128 one can get some real detections. Otherwise nothing or only the centre of an image is (wrongly) detected.

@neumann89
Copy link

Ah and see here: https://github.com/DaHoC/trainHOG/wiki/Frequently-Asked-Good-Questions-FAQ
Thanks for this library and FAQ by the way 👍

So, cropping the images to 64x128 seems to be the only possibility ;(

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

No branches or pull requests

3 participants