Experienced OpenCV users, I'm looking for some advice.
I have an assignment for which I have to build an application that has a database with faces(let's say a family). So when the facial recognizer notices a face in my frame, it would have to give an indicator as to how much the person in the frame looks like the people in the database. If the person is not the in the database, it would give a very low indicator.
I know how to do the facial recognizer, but I'm not sure if OpenCV has a function that would work on a database of faces and return an indicator. What would you suggest? Thanks a lot.
Have you tried it? What is the result?
the predict function has an overload with a 'confidence' value (it's more the opposite, the distance to the closest item in the db, so if this gets fairly small, you probably got a hit)
Thanks, Berak. I will try that. I know the predict function, but had no idea it had an overload, lazy me. Will post feedback for those interested.
I tried it and it works, but it's hard to convert the distance into percentange. Will work on that.
you could fit a logistic regression to the distance functions like you'd to get probabilities from SVM scores