Nick Banks
Nick Banks

Reputation: 4408

How to train/use the HOGDescriptor class in OpenCV

I have been looking into training/using OpenCV to attempt to detect human figures. I want to try training a HOG for my specific purposes and not use the provided getDefaultPeopleDetector function. I have been unable to find any usable documentation on the HOGDescriptor class.

How do I train my own classifier for my own purposes?

Upvotes: 5

Views: 8065

Answers (1)

Krish
Krish

Reputation: 1827

HOG descriptor is very easy to implement. You can write your own code to do it. Look at http://smsoftdev-solutions.blogspot.com/2009/08/integral-histogram-for-fast-calculation.html. It is fast implementation of HOG. Once you get HOG features of all the training images.You can train an SVM in OpenCV. Training with Gaussian Kernel has produced good results.

Upvotes: 6

Related Questions