This is a part of my graduation project where we use OpenCV library with python to recognize faces and take an action according to the face is known or not. We are running it on a Raspberry Pi 3 with a USB web cam connected.
- Python 2.7
- OpenCV 3.4
- Numpy
- Create two folders dataset and recognizer beside the source code
- Run dataset_creator.py script to take photos of the face and store it in dataset folder
- Enter the name of the user which will be stored
- Enter an id for him
- Run trainer.py script to extract data from dataset and store it in recognizer/training_data.yml
- Run face_recognition.py script that will detect the face and put the name under it