How can I incorporate extractHOGFeatures with trainCasca​deObjectDe​tector?

조회 수: 1 (최근 30일)
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?

채택된 답변

Dima Lisin
Dima Lisin 2015년 12월 10일
Hi Leonard,
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.
  댓글 수: 2
Leonard Yeo
Leonard Yeo 2015년 12월 10일
I'm actually trying to detect wheelchairs. I'm currently using haar feature to train with trainCascadeObjectDetector however, the detection rate is about 60-65% and consist of many false detection. I've tried using HOG feature but it did not manage to detect anything as compared to haar which was quite surprising because shouldn't HOG perform better than haar. Are there any other methods to improve my detection rate? I've tried adding more images to it but the detection rate only improves a little.
Dima Lisin
Dima Lisin 2015년 12월 10일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by