Simple face recognition program written in python, using the face_recognition library (https://github.com/ageitgey/face_recognition). Able to read faces from webcam and compare them to all faces in the images folder and identify any matches, and track attendance.
git clone https://github.com/sweetbix/facerecognition.git
cd facerecognitionpip install -r requirements.txtIf you're on Windows, you may need to install:
Make sure to check:
- ✅ "Desktop development with C++"
This is required for installing dlib, which powers face detection.
- Upload images of people you want to recognise into the images/ folder.
- Use clear front-facing images.
- File names (e.g. john.png) will be displayed
Also make sure your webcam is turned on!
python attendance.py