How to get confidence values for detections from vision.Cas​cadeObject​Detector System object?

1 次查看(过去 30 天)
First, I run trainCascadeObjectDetector on a custom set of image data and save the result to an xml file.
Then, I create the vision.CascadeObjectDetector system object:
detector = vision.CascadeObjectDetector(xmlfile);
Finally, I want to run the detector on a test image:
bbox = step(detector,img);
Is there a way to compute confidence values for the detections returned here? For vision.PeopleDetector objects, you can run
[bbox,scores] = step(detector,img);
but you cannot do this for vision.CascadeObjectDetector objects. Is there an easy workaround?

采纳的回答

Dima Lisin
Dima Lisin 2014-9-8
Hi Matt,
Unfortunately vision.CascadeObjectDetector does not return a confidence score, and there is no workaround. The reason vision.PeopleDetector does return a score, is because it is using a SVM classifier, which provides a score. vision.CascadeObjectDetector, on the other hand, uses a cascade of boosted decision trees, which does not lend itself well to computing a confidence score.
  1 个评论
Matthew Eicholtz
Matthew Eicholtz 2014-9-8
Ah yes, this makes total sense. I had just transitioned from using SVM classifiers, so I suppose it slipped my mind that I was now using DTs instead. Thanks for the clarification.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by