Ask Your Question

Revision history [back]

You can get the confidence level for the predicted class:

Ptr<FaceRecognizer> model = createEigenFaceRecognizer(10,2000000000);
int predictedLabel = -1;
double confidence = 0.0;
model->predict(face, predictedLabel, confidence);