开发者

How to train/use the HOGDescriptor class in OpenCV

开发者 https://www.devze.com 2023-02-07 03:43 出处:网络
I have been looki开发者_开发知识库ng 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 getDefaultPeopleDetec

I have been looki开发者_开发知识库ng 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消