ageitgey / face_recognition

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

how do you train the DB or your face recognition system #397

Open djangid opened 6 years ago

djangid commented 6 years ago

how do you train the DB or your face recognition system to know the names for images as i would like to add some more myself

ageitgey commented 6 years ago

Have you looked at the docs and examples yet?

djangid commented 6 years ago

i did but its not clear how you train your database to get the name with picture like normal opencv things

ageitgey commented 6 years ago

In code, it's a simple as this: https://github.com/ageitgey/face_recognition/blob/master/examples/facerec_from_webcam_faster.py#L17-L32

If you are using the command-line tool instead of writing code, then you just pass in a folder containing one image of each known person.