follow my instagram @ridwaanhall
This project uses OpenCV to detect and recognize faces in an image with Haar Cascade Classifiers and LBPH Face Recognizer.
1. Install OpenCV (See Installation for details)
pip install opencv-python opencv-contrib-python
2. Install PIL (See Installation for details)
pip install pillow
3. Install numpy (See Installation for details)
pip install numpy
pip install opencv-python opencv-contrib-python pillow numpy
git clone https://github.com/ridwaanhall/face-recognition-with-OpenCV.git
cd face-recognition
run 01_recording.py
to get 30 photo of your face and insert ID (1, 2, 3, etc.)
run 02_training.py
to train the model with your photos using LBPH and Haar Cascade Classifiers
run 03_scanning.py
to scan your face and show the result.