I'm using the default HOG Detector to detect pedestrians, such as in the code below.
HOGDescriptor hog;
hog.setSVMDetector(HOGDescriptor::getDefaultPeopleDetector());
vector<Rect> found, found_filtered;
hog.detectMultiScale(data, found, 0, Size(strideX,strideY), Size(32,32), scale, 2);
I want to retrieve the score that the classifier assigned to each sample. For instance, found[0]
has 0.9 confidence to be a pedestrian; found[1]
has 1.3
confidence score; and so on. I want them because I want to do a plot missrate vs false positives per image (FPPI).
Is there any way to retrieve the classifier responses for each sample?