How to train / use the HOGDescriptor class in OpenCV

I am training / using OpenCV to try and discover human figures. I want to try to train HOG for my specific goals and not use the provided getDefaultPeopleDetector function. I could not find any useful documentation in the HOGDescriptor class.

How do I prepare my classifier for my own purposes?

+4
source share
1 answer

The HOG descriptor is very simple to implement. You can write your own code to do this. See http://smsoftdev-solutions.blogspot.com/2009/08/integral-histogram-for-fast-calculation.html . This is a quick implementation of HOG. Once you get the HOG function of all training images. You can train SVM in OpenCV. Good results were obtained with training with a Gaussian core.

+6
source

Source: https://habr.com/ru/post/1337567/


All Articles