face_recognition icon indicating copy to clipboard operation
face_recognition copied to clipboard

Can I have the result in percentage instead true or false?

Open gustavomr opened this issue 9 years ago • 3 comments

Can I have the result in percentage instead true or false? I'm looking to a feature that returns the percentage similarity of two faces.

If no, where (in code) can I adjust to have this done?

Thanks!

gustavomr avatar Jun 27 '17 16:06 gustavomr

Sure. I just added a code example here that I'll merge into the main codebase soon.

Face distance isn't exactly the same thing as percentage match, but it serves the same purpose and is the closest thing you can do.

ageitgey avatar Jun 27 '17 17:06 ageitgey

Thanks. You can close this thread.

gustavomr avatar Jun 27 '17 18:06 gustavomr

Hello @ageitgey,

What is the range of face distance? I read in another article that scores range from 0 (the same picture) to 4.0 completely different. Its true, for face recognition too?

I'm asking that because we want to calculate the percentage of face match based on this range.

Thanks.

benitofe avatar Jul 14 '17 11:07 benitofe