How to get confidence values for detections from vision.CascadeObjectDetector System object?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Matthew Eicholtz
am 8 Sep. 2014
Kommentiert: Matthew Eicholtz
am 8 Sep. 2014
First, I run trainCascadeObjectDetector on a custom set of image data and save the result to an xml file.
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?
0 Kommentare
Akzeptierte Antwort
Dima Lisin
am 8 Sep. 2014
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Computer Vision with Simulink finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!