Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include detected face confidence #864

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

haddyadnan
Copy link
Contributor

@haddyadnan haddyadnan commented Oct 18, 2023

I need to be able to filter response of DeepFace.analyze by confidence of the detected face/faces

I have a selfie image containing one person but I got 2 responses using mtcnn as backend
[{'age': 29,
'region': {'x': 305, 'y': 457, 'w': 1036, 'h': 1378},
{'age': 32,
'region': {'x': 287, 'y': 844, 'w': 44, 'h': 52},]

It will be easier to identify false positives if the confidence of the face detected is returned as well

[{'age': 29,
'region': {'x': 305, 'y': 457, 'w': 1036, 'h': 1378},
'face_confidence': 0.9993908405303955},
{'age': 32,
'region': {'x': 287, 'y': 844, 'w': 44, 'h': 52},
'face_confidence': 0.7173819541931152}]

@serengil
Copy link
Owner

thank you for your contribution

@serengil serengil merged commit 3e1f48c into serengil:master Oct 18, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants