ageitgey / face_recognition

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

How to get confidence score using cnn detection in batch of images? #976

Closed congphase closed 5 years ago

congphase commented 5 years ago

Hello everyone,

I'm trying to do detection using cnn for batch of images. Calling the function to do the detection with batch is okay, but it the result doesn't include confidence scores. I take a look at the api and found out that the dlib.mmod_rectangles class does not contain confidence attribute as the dlib.mmod_rectangle class. So how to get the confidence score for each detection if I have to do detections on batches only rather than single images. Sorry for my noob question, but I'm new to dlib, and really need help.

Thank you a lot!!!

congphase commented 5 years ago

I have figured it out after asking the question.

More info: here