Open tetrahydra opened 6 years ago
You can do that if you find it helpful to think of things that way. But keep in mind that the scale isn't exactly linear like that.
The best way to think of it is that a smaller number is less difference and that anything under the threshold you define is a "match". A "85% match" isn't necessarily better than a "80%" match.
If I were to tell the non-techie users, that their requests were successful and the percentage matching rate is X% for each one, how do I do this?
My idea on threshold is 0.1 is strict and 1 when there is no threshold.
What is threshold in face_recognition, really? My understanding is that it is a permissible error.
The default threshold is 0.6 or lower face distance is a match. You can use a more strict (lower) threshold if you want by passing in a parameter to the compare_faces()
function call.
There's not really a concept of X% match in this algorithm. So however you want to come up with that number is up to you. Whether you call a face distance of 0.6 a 100% match or an 80% match or whatever is up to you.
I am using your code from face_distance.py
How can I calculate the matching in percentage? Can I simply re-write
(1 - face_distance)%