An enterprise-grade, real-time attendance and identity verification system combining biometric vision intelligence with RFID proximity authentication, backed by a secure PHP/MySQL API layer.
- ๐ท๏ธ Project Title
- ๐งพ Executive Summary
- ๐ Table of Contents
- ๐งฉ Project Overview
- ๐ฏ Objectives & Goals
- โ Acceptance Criteria
- ๐ป Prerequisites
- โ๏ธ Installation & Setup
- ๐ API Documentation
- ๐ฅ๏ธ UI / Frontend
- ๐ข Status Codes
- ๐ Features
- ๐งฑ Tech Stack & Architecture
- ๐ ๏ธ Workflow & Implementation
- ๐งช Testing & Validation
- ๐ Validation Summary
- ๐งฐ Verification Testing Tools
- ๐งฏ Troubleshooting & Debugging
- ๐ Security & Secrets
- โ๏ธ Deployment
- โก Quick-Start Cheat Sheet
- ๐งพ Usage Notes
- ๐ง Performance & Optimization
- ๐ Enhancements & Features
- ๐งฉ Maintenance & Future Work
- ๐ Key Achievements
- ๐งฎ High-Level Architecture
- ๐๏ธ Project Structure
- ๐งญ How to Demonstrate Live
- ๐ก Summary, Closure & Compliance
- Eliminate proxy and fraudulent attendance
- Provide real-time, automated logging
- Support enterprise-scale users and devices
- Expose API-first integration for HR/ERP
- Ensure auditability, traceability, and compliance
- Face and RFID must both validate for a successful mark
- Records persist within one second of capture
- System must recover from camera or reader disconnects
- Data must be queryable via API and UI
- Windows or Linux host with webcam
- RFID reader with USB or serial interface
- Python 3.x with OpenCV, NumPy
- PHP 8+, MySQL/MariaDB
- Local or hosted web server (XAMPP/LAMP)
- Provision web server and create MySQL schema from provided SQL in DOCUMENTS
- Configure database credentials in PHP backend
- Install Python dependencies from requirements
- Register faces using the attendance-python enrollment scripts
- Connect RFID reader and verify serial mapping
- Launch Python recognition service and PHP dashboard
| Endpoint | Method | Purpose |
|---|---|---|
| /api/attendance/mark | POST | Submit verified face+RFID event |
| /api/users | GET | List enrolled users |
| /api/reports/daily | GET | Fetch daily attendance |
- Admin Dashboard: user management, logs, exports
- Live Monitor: streaming camera preview and scan events
- Reports: date, user, and department filters
- Styles adjustable in PHP/CSS templates under AttedenceUpdate
| Code | Meaning |
|---|---|
| 200 | Success |
| 401 | Unauthorized |
| 409 | Duplicate or conflict |
| 500 | Server or AI engine error |
- Dual-factor biometric + RFID verification
- Real-time camera streaming and recognition
- Centralized MySQL ledger with audit trails
- API-driven integration layer
- Offline-tolerant buffering and resync
- PDF reporting and archival (included in DOCUMENTS)
- AI Layer: Python, OpenCV, NumPy
- Hardware: USB camera, RFID reader
- Backend: PHP, MySQL
- Frontend: PHP, HTML, CSS
Camera โโโบ Python Face Engine โโ
โโโบ Validation Orchestrator โโบ PHP API โโบ MySQL
RFID Reader โโบ RFID Listener โโโ
โ
โโโบ Web Dashboard / Reports
- User enrolls with face capture and RFID ID
- Camera detects face and computes embedding
- RFID scan triggers identity lookup
- Both factors are matched and correlated
- PHP API persists attendance record
- Dashboard updates and reports are generated
| ID | Area | Command | Expected Output | Explanation |
|---|---|---|---|---|
| T1 | Face AI | Run recognition | User detected | Validates model pipeline |
| T2 | RFID | Scan card | UID captured | Validates hardware |
| T3 | API | POST mark | 200 OK | Validates backend |
- Camera diagnostics
- RFID serial monitor
- Postman for API
- MySQL query console
- No face detected: verify lighting and camera index
- RFID not read: check COM port and baud rate
- API errors: inspect PHP logs and DB credentials
- Latency: review CPU load and camera resolution
- Database credentials isolated in config files
- API endpoints protected by session and role checks
- Biometric data stored as hashes, not raw images
- On-premise server for camera proximity
- Cloud VM for PHP/MySQL if required
- VPN or HTTPS for secure API access
- Start web server
- Launch Python face engine
- Connect RFID
- Open dashboard and monitor logs
- Face encodings cached in memory
- Frame sampling to reduce CPU load
- Asynchronous API writes
- Cloud-based multi-site federation
- Mobile admin app
- Advanced liveness detection
- Model retraining pipeline
- Hardware health monitoring
- Role-based analytics
- Fully integrated AI + RFID system
- Enterprise-ready backend
- Comprehensive documentation and reports
User โโบ Camera/RFID โโบ AI Engine โโบ API Layer โโบ Database โโบ Dashboard โโบ Reports
The Smart Attendance Automation Platform is implemented as a tightly integrated multi-layer system combining a PHP-based web application, a Python-based AI recognition engine, RFID ingestion services, and a full academic & compliance documentation repository. The following structure reflects the real production repository used for deployment and submission.
SMART-ATTENDANCE-AUTOMATION-PLATFORM โ โโโ AttedenceUpdate โ โ โ โโโ Admin โ โ โโโ add-new-class.php โ โ โโโ add-new-student.php โ โ โโโ add-new-subject.php โ โ โโโ add-new-teacher.php โ โ โโโ admin-account.php โ โ โโโ delete-class.php โ โ โโโ delete-student.php โ โ โโโ delete-subject.php โ โ โโโ delete-teacher.php โ โ โโโ get-class-for-attendence.php โ โ โโโ index.php โ โ โโโ log-out.php โ โ โโโ manage-classes.php โ โ โโโ manage-students.php โ โ โโโ manage-subjects.php โ โ โโโ manage-teachers.php โ โ โโโ show-attendence.php โ โ โโโ show-class-attendence.php โ โ โ โโโ bootstrap-3.2.0-dist โ โ โโโ css โ โ โ โโโ bootstrap-theme.css โ โ โ โโโ bootstrap-theme.css.map โ โ โ โโโ bootstrap-theme.min.css โ โ โ โโโ bootstrap.css โ โ โ โโโ bootstrap.css.map โ โ โ โโโ bootstrap.min.css โ โ โ โโโ ourstyle.css โ โ โ โ โ โโโ fonts โ โ โ โโโ glyphicons-halflings-regular.eot โ โ โ โโโ glyphicons-halflings-regular.svg โ โ โ โโโ glyphicons-halflings-regular.ttf โ โ โ โโโ glyphicons-halflings-regular.woff โ โ โ โ โ โโโ js โ โ โโโ bootstrap.js โ โ โโโ bootstrap.min.js โ โ โ โโโ database โ โ โโโ db_connection.php โ โ โ โโโ images โ โ โ โโโ attendance_by_day.sql โ โโโ Attendence.php โ โโโ create.php โ โโโ get-class-for-attendence.php โ โโโ get-class-for-attendence - Copy.php โ โโโ get-students-of-class.php โ โโโ index.php โ โโโ log-out.php โ โโโ get-students-of-class.php โโโ index.php โโโ log-out.php โโโ manage-attendence.php โโโ RfidResponse.php โโโ show-attendence.php โโโ signin.css โโโ Student.php โโโ submit-attendence-for-python.php โโโ update-attendence.php โโโ update-attendence - Copy.php โ โโโ attendence-python โ โโโ attendance_cam.py โ โโโ attendance_cam_virtual.py โ โโโ train.py โ โโโ haarcascade_frontalface_default.xml โ โโโ attendance.yml โ โโโ attendance.docx โ โโโ README.md โ โโโ DOCUMENTS โ โโโ all pdf โ โโโ diagrams โ โโโ research papers โ โโโ word โ โโโ FINAL RESEARCH PAPER.pdf โ โโโ final report merged.pdf โ โโโ final hard bound.pdf โ โโโ final patent draft.pdf โ โโโ final patent draft.docx โ โโโ final testing report.docx โ โโโ final synopsis.docx โ โโโ final srs.doc โ โโโ FIRST SECTION.pdf โ โโโ SECOND SECTION.pdf โ โโโ THIRD SECTION.pdf โ โโโ MAJOR PROJECT PRESENTATION.pdf โ โโโ 2 nd report merged.pdf โ โโโ 3rd report merged.pdf โ โโโ submission rejection mail.png โ โโโ README.md
This structure demonstrates a complete production-grade implementation:
- AttedenceUpdate โ Web application, admin panel, database, UI, and API endpoints.
- Admin โ Full CRUD lifecycle for students, teachers, subjects, classes, and attendance.
- Bootstrap Layer โ Enterprise-grade UI styling and responsive dashboard framework.
- RFID Integration โ RfidResponse.php and submit-attendence-for-python.php act as real-time hardware ingestion bridges.
- AI Engine โ Python OpenCV-based face detection, recognition, training, and attendance marking.
- DOCUMENTS โ Compliance-grade research papers, final reports, patents, SRS, testing, and submission artifacts.
- Open PHP dashboard
- Start Python recognition
- Scan RFID and appear before camera
- Observe instant attendance mark