ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
52.43k stars 13.37k forks source link

face_distance function #1093

Open MichaelSchroter opened 4 years ago

MichaelSchroter commented 4 years ago

Hi,

Just wanted to know the face_distance function. So if the distance is low does that mean they are more similar? Furthermore, is there a range for the euclidean distance for example between 0 and 1. Where 0 means the the images are identical and 1 means they cant be more different?

Thanks for your help.

Thanks & Best Regards

Michael

ageitgey commented 4 years ago

Yes, that is correct. 0 distance means they are probably the same image.

Here's a bit more information about the range: https://github.com/ageitgey/face_recognition/wiki/Calculating-Accuracy-as-a-Percentage