ageitgey / face_recognition

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

Face Detection Score #727

Open chrisbangun opened 5 years ago

chrisbangun commented 5 years ago

Description

I am doing a face detection project and I found this lib is pretty awesome. So far, I am able to use the high level API, such as face_locations to get and detect faces in a given image. However, I am wondering if it's possible to get the detection score as well. concretely, the probability score of the detected area is a face. Is this possible?

What I Did

So far, I am trying to understand the APIs from the docs

ageitgey commented 5 years ago

Currently there is no way to get the confidence score of a face detection. If you need that information, you could do it by using dlib's python CNN face detection api directly instead of using this library.

chrisbangun commented 5 years ago

hi @ageitgey

thanks for your reply. Yeap, I figured out that dlib's detection API is used in the face_recognition code. I'll need to explore more. By any chance, is this dlib available in pypi?