serengil / deepface

A Lightweight Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion and Race) Library for Python
https://www.youtube.com/watch?v=WnUVYQP4h44&list=PLsS_1RYmYQQFdWqxQggXHynP1rqaYXv_E&index=1
MIT License
11.97k stars 2.03k forks source link

[FEATURE]: filtering based on the threshold in find() function #1240

Closed richardar closed 4 months ago

richardar commented 4 months ago

Description

instead of just giving out threshold, can we automatically filter the results based on the minimum threshold set in the deepface.find function?

Additional Info

No response

serengil commented 4 months ago

Give more details please. As I understand, currently deepface does this.

serengil commented 4 months ago

@gratusrichard: it just says it displays all the images from the database without filtering out the ones that have less distance. am i missing something here? Is this not the right way to do this?

no, find function is already showing the images having smaller threshold. as you can see from the image you shared, all distance values are less than threshold column.