A Python application for real-time facial recognition using dlib and OpenCV.
This project demonstrates real-time facial recognition using the dlib library for face detection, facial landmark detection, and face recognition. It utilizes a pre-trained deep learning model for face recognition and a shape predictor model for facial landmark detection.
- Real-time face detection and recognition from webcam feed.
- Matches detected faces with a known face for recognition.
- Adjustable threshold for recognition accuracy.
-
Install Required libraries by running this code in your Terminal.
pip install opencv-python dlib numpy -
Clone the repository:
$ git clone https://github.com/therohanrathee/FaceRecon.git $ cd FaceRecon
- Add/Replace the "known_face.jpeg" with your own image which has a face clearly distinguishable.
- Ensure to rename the image file as known_face.jpeg.
- Ensure that the Image is in the same directory as the code
- Run the Code