ageitgey / face_recognition

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

Insert new faces(enroll) while the software is running from live video webcam #822

Open alexadp1087 opened 5 years ago

alexadp1087 commented 5 years ago

Hello, i want to know if it is possibile, during a video stream with a webcam, enroll new faces inside a folder, and without stopping the live face_recognition, identify the new faces enrolled. Or it is necessary start and close the software every time for enroll new faces?

Thank you, Great Project!

ageitgey commented 5 years ago

That's totally up to how you code you program. You can definitely implement things in a way where users are enrolled in real-time. Basically you just need to keep a database or list of known user encodings and add new encodings to the database whenever you find someone that is not in the database. Then you just check each frame against whatever is currently in the database table.

I'm working on an article now that happens to contain a simple demo of on-the-fly enrollment as part of the example, so watch out for that new on my machinelearningisfun.com site or my mailing list if you are interested. But there's a million ways you could implement this depending on your needs and there is no single correct answer.

gwelinder commented 4 years ago

I'm working on an article now that happens to contain a simple demo of on-the-fly enrollment as part of the example

@ageitgey Did you publish this article yet? I can't seem to find it. Thanks!

SaddamBInSyed commented 4 years ago

@gwelinder checkout this below article, @ageitgey implemented the same in that.

https://medium.com/@ageitgey/build-a-hardware-based-face-recognition-system-for-150-with-the-nvidia-jetson-nano-and-python-a25cb8c891fd

Hope this helps.