in my scenario i grab the videostream from my ip-cam.
OpenCV is trained with the people who are living in this house.
When someone untrained people come into this house, opencv detects this people as unknown and creates a dataset with some facial attributes.
This dataset should be created once for each face, so i have to make sure, that opencv detects this face next time not as unknown.
thanks for the link. I downloaded the zip file with a lot of code samples inside, but i had trouble to find the right example which includes the code for chapter 3.3.
Please can you tell me where i can find the right code?
Apologies, i missed the part that it was introduction and the rest will be in followup articles.
You can try OpenCV Face Recognition - PyImageSearch . Adrians code is very clear and well explained. Again, I have not tried it myself, and the enrollment process seems to be somewhat disconnected from the flow but I hope you can gather enough from it.
I really had no opportunity to do facial recognition so can’t help you beyond things I remembered seeing…
as for performance, you need to load the images from the camera in parallel to the execution of the detector, this way you will get constant fps (more or less :) ). same site has an tutorial on this (look for FPS), unfortunately with a small bug.
as for enrolling, you just need to add the embedding to your database, that should be all…
just add the new face to the embeddings and names lists, pickle.dump your data and bob is you uncle
note: as i said, i am not in a face recognition phase now, so all this is just from reading the code.