How can I incorporate extractHOGFeatures with trainCascadeObjectDetector?
2 views (last 30 days)
Show older comments
Leonard Yeo on 10 Dec 2015
Commented: Dima Lisin on 10 Dec 2015
I've managed to used trainCascadeObjectDetector to detect my object. I am planning to incorporate extractHOGFeatures together with trainCascadeObjectDetector to improve my detection accuracy. May I know does this help to improve the detection? If so, how do I do it?
You cannot use extractHOGFeatures together with trainCascadeObjectDetector. However, you can specify the feature type for trainCascadeObjectDetector to use, and one of the feature types it supports is HOG.
I cannot tell you whether using HOG will improve your accuracy. That mainly depends on the type of objects you are trying to detect. What I can tell you, is that training with HOG features is much faster and takes much less memory.
HOG is not necessarily better than Haar. For faces, Haar seems to do better, for detecting people - HOG seems to do better. What is better for wheelchairs is anyone's guess. :(
As I said in the other question, try splitting up your images into sub-categories like "front view", "side view", "back view", and try training separate detectors for each one.
By the way, 600 positive samples is actually not that many. You may need more.
More Answers (0)
Find more on Computer Vision With Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!