Simple Face Recognition algorithm using Python and OpenCV
- Python 3.7.3
- OpenCV 4.1.0
- Numpy
This project consist of 3 parts, which are:
- Creating datasets (face_datasets.py)
- Train the model (training.py)
- Face Recognition (face_recognition.py)
- Please make sure that you have folders called 'datasets' and 'trainer' in the same directory
- Run in the command line the face_datasets.py for taking your face image as datasets. Don't forget to set each person's face to unique ID (You need to edit the code everytime, or maybe just change the id variable to raw_input[OPTIONAL])
- If you have more face to be include, change the ID and run the program again
- Train your datasets by running training.py
- Lastly, run face_recognition.py