We have finally come to the most important part of the project. We are going to put together the code that we have written so far to create a real-time face recognition program. This program will use the webcam in our computer for facial recognition, and to authenticate whether the person sitting in front of the webcam is indeed you.
To do so, the program needs to do the following:
- Train a Siamese neural network for facial recognition (this has already been done in the previous section).
- Use the webcam to capture a true image of the authorized user. This is the onboarding process of the facial recognition system.
- Subsequently, when a user wants to unlock the program, use the pre-trained Siamese neural network from Step 1 and the true image from Step 2 to authenticate the user.
This part of the project requires a webcam (either the...