A real-time face recognition-based attendance system built using Computer Vision to automate and improve the accuracy of attendance tracking.
This project implements an automated attendance system using face recognition with the LBPH (Local Binary Patterns Histogram) algorithm.
The system captures facial data, trains a recognition model, and records attendance in real-time using a webcam—eliminating the need for manual input and reducing human error.
- Automate attendance recording using face recognition
- Reduce fraud such as proxy attendance
- Improve efficiency and data accuracy
- Apply computer vision concepts in a real-world use case
- 🎥 Real-time face detection
- 🧠 Face recognition using LBPH algorithm
- 📸 Face dataset collection
- ⚙️ Model training pipeline
- ✅ Automated attendance recording
- 💾 Export attendance data to CSV / Excel
- 🖥️ GUI interface using Tkinter
- Input user data (Name, ID, Class)
- Capture facial dataset via webcam
- Train recognition model using LBPH
- Detect and recognize faces in real-time
- Automatically record attendance
GUI interface and attendance output generated by the system.
- Python
- OpenCV
- NumPy
- Pandas
- Tkinter (GUI)
Smart-Absensi/
├── dataset/ # Data wajah
├── trainer/ # Model hasil training
├── images/ # Screenshot / dokumentasi
├── main.py # Program utama
├── requirements.txt # Dependency
└── README.md # Dokumentasi project
git clone https://github.com/imammularif/SMART-ABSENSI-WITH-FACE-RECOGNITION-LBPH-USING-PYTHON.git cd SMART-ABSENSI-WITH-FACE RECOGNITION-LBPH-USING-PYTHON pip install -r requirements.txtpython main.pyThe system generates attendance records in:
- CSV
- Excel
- Active webcam
- Adequate lighting conditions
- Clear facial visibility during training
- Improve GUI/UX design
- Integrate database (MySQL / PostgreSQL)
- Develop web-based version (Flask / Django)
- Add dashboard for attendance monitoring
- Support multi-user system
- This project allowed me to apply computer vision concepts into a practical system. I learned how to build a pipeline from data collection to model training and real-time implementation.
- This project is open-source and intended for educational purposes.

