FaceScan is a Python application for capturing and recognizing faces using OpenCV. It allows you to add new faces to the dataset and perform face recognition using the LBPH (Local Binary Patterns Histograms) algorithm.
- Capture and save face images to the dataset.
- Perform face recognition based on the LBPH algorithm.
- Python 3.x
- OpenCV (
pip install opencv-python) - NumPy (
pip install numpy)
- Run the
main.pyscript to start the application. - Choose an option:
- Press
1to add a new face. - Press
2to detect and recognize faces.
- Press
- If adding a new face:
- Enter the person's name.
- Follow the on-screen instructions to capture face images.
- If detecting and recognizing faces:
- The application will use the LBPH algorithm to recognize faces in real-time.
- The Haarcascades face detection model is loaded from OpenCV's data directory.
- Face images are saved to the
datadirectory under the person's name subdirectories.