ageitgey / face_recognition

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

How get one face from 5 photos? #772

Open arpsyapathy opened 5 years ago

arpsyapathy commented 5 years ago

Hello!

I have 5 photos with me and my friends. Each photo have 1-4 faces. But each photo have my face.

How get my face encoding from this 5 photos without input data?

For example: i say "Hey script, give me my face encoding". Script analyzes 5 photos. Finds the face is present on most photo and gives it to me.

This is possible? Thank you

rompic commented 5 years ago

what could work :

have a look at https://github.com/ageitgey/face_recognition/blob/master/docs/usage.rst and the examples

rompic commented 5 years ago

Or find the image with only one face and calculate the face encoding...?

maheshwarkuchana commented 5 years ago

To add to the above mentioned way, if you have the encodings of your face in your database (eg. Excel Sheet) then you could try matching the 4 faces in 1 photo against your database.

If it matches with your preprocessed encodings them you are good to go.

Just iterate over 5 images though to get all faces.