A Python-based face recognition program using OpenCV and the face_recognition library for real-time face detection and recognition with a webcam.
This project aims to provide a simple and extensible face recognition solution. It utilizes the OpenCV library for webcam integration and the face_recognition library for face detection and recognition.
- Real-time face detection and recognition.
- Simple setup and integration with a webcam.
- Easily customizable for multiple known faces.
- Python
- OpenCV
- face_recognition library
-
Install Python: Python Official Website
-
Install required libraries:
pip install opencv-python
pip install face_recognition
- Clone the repository:
git clone https://github.com/niladrridas/facerecognition.git
- Navigate to the project directory:
cd facerecognition
- Run the script:
python face_recognition_webcam.py
- Look into the webcam, and the program will detect and recognize faces in real-time.
Customize the known faces by replacing the image file in the script. Explore additional features and configurations in the script for advanced usage.
Contributions are welcome! If you have ideas for improvements or encounter issues, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.