- Python 3.8+
- Webcam
- Windows / Mac / Linux
pip install -r requirements.txt
Note:
face-recognitionrequiresdlib. On Windows you may need to install it separately:pip install cmake pip install dlib pip install face-recognitionOr use the prebuilt wheel: https://github.com/z-mahmud22/Dlib_Windows_Python3.x
python app.py
Go to: http://localhost:5000
- Click the Register tab
- Click Start Camera
- Type the person's name
- Click 📸 Capture (face clearly in frame)
- Click ✓ Register This Person
- Click the Attendance tab
- Click Start Camera
- Either:
- Click Scan Now to check once
- Toggle Auto-scan to check every 3 seconds automatically
- Names and timestamps are automatically logged
- Go to the Log tab
- Click ⬇ Export Excel
- An
.xlsxfile downloads with two sheets:- Attendance — full log with name, date, time, status
- Summary — totals per person
face_encodings.pkl— stored face data (auto-created)attendance_YYYYMMDD_HHMMSS.xlsx— exported attendance files