A Python-based face recognition system using face_recognition, dlib, and numpy to register and match faces.
- Encode faces from images and store them.
- Match live images with stored encodings.
- Uses
face_recognitionlibrary for facial recognition.
Make sure you have the following installed:
- Python 3.x
- Required dependencies:
pip install face_recognition dlib numpy Pillow
git clone https://github.com/YOUR_GITHUB_USERNAME/pythonFaceMatching-Encoding.git
cd pythonFaceMatching-Encodingpip install -r requirements.txt # If a requirements file is addedOr manually install:
pip install face_recognition dlib numpy Pillowpython encoding.pyThis will:
- Load an image.
- Encode the face.
- Save the encoding in
face_encoding.json.
python test_face.pyThis will:
- Load a test image.
- Compare it against stored encodings.
- Print the matching result.
pythonFaceMatching-Encoding/
│── encoding.py # Face registration
│── test_face.py # Face matching
│── face_encoding.json # Stored face encodings
│── README.md # Project documentation
- If
face_recognitionfails to install, ensuredlibis correctly installed. - Make sure your image path is correct and contains faces.
This project is licensed under the MIT License.