This system drastically reduces proxy attendance and manual entry errors by utilizing advanced face verification, strict campus geofencing, and real-time session tracking. It features a modern, premium Glassmorphism UI that provides a beautiful, animated, and intuitive experience for students, teachers, and administrators.
New in Latest Version:
- π§ Smart Attendance Predictions - AI tells students exactly how many classes they need to attend to reach 75%
- π₯ Streak Tracking - Gamified attendance streaks to motivate students
- β‘ Real-Time Updates - All dashboards auto-refresh with live data (no page reload needed)
- π Enhanced Analytics - Comprehensive insights for students, teachers, and admins
- π― Status Indicators - Color-coded attendance status (Good/Warning/Critical)
- π Automated Sessions - Auto-generate class sessions from timetable entries
|
|
|
|
| Feature | Description |
|---|---|
| Liveness Detection | Advanced anti-spoofing with blink detection, head movement tracking, and texture analysis to prevent photo/video attacks. |
| Strict Geofencing | Users can only mark attendance if their GPS coordinates fall strictly within the configurable campus radius (e.g., 100 meters). |
| Edge Biometrics | The system runs purely on edge devices for privacy. Facial descriptors cannot be reverse-engineered into photographs. |
| Single-Face Checks | Advanced AI ensures only one face is in the camera frame during attendance. |
| Audit Logging | Every attendance attempt is logged securely with IP, user-agent, and device hashes. |
| API Defense | Protected via scrypt password hashing, CSRF tokens, and strict Rate Limiting. |
- Predictive Analytics: Students see exactly how many classes they need to attend to reach 75% attendance
- Attendance Forecasting: Real-time calculations based on current attendance trends
- Course-wise Breakdown: Detailed attendance percentage for each enrolled course
- Status Indicators: Visual color-coded status (Good β₯75%, Warning β₯65%, Critical <65%)
- Streak Tracking: Consecutive days attendance counter with fire emoji
- Motivational Messages: Encouraging feedback based on attendance performance
- Progress Bars: Visual representation of attendance progress
- Auto-Refresh: Student dashboard updates every 30 seconds
- Teacher Dashboard: Live session stats refresh every 30 seconds
- Admin Dashboard: System-wide stats update every 60 seconds
- No Page Reload: Seamless updates using AJAX calls
- Live Session Monitoring: Real-time attendance counts during active sessions
- Session Cards: Enhanced UI showing marked, failed, and pending students
- Kiosk Mode: Hands-free attendance marking for classroom deployment
- Bulk Operations: Mark multiple students present/absent at once
- Automated Timetable: Auto-generate sessions from timetable entries
- Comprehensive Stats: Total students, teachers, courses, active sessions, low attendance alerts
- Department Analytics: Registration statistics by department with progress tracking
- 7-Day Heat Grid: Visual attendance patterns across the week
- Bulk Import: CSV upload for students, sections, and enrollments
- Real-Time Monitoring: Live system health and usage statistics
git clone https://github.com/rajpratham1/Face-Recognition-Attendance-System.git
cd Face-Recognition-Attendance-SystemEnsure you have Python 3.9 or higher installed.
pip install -r requirements.txtCopy the example environment file and configure it:
cp .env.example .envOpen .env and fill in the required variables. Crucial variables include:
SECRET_KEY: Set to a long, random string.INVERTIS_LAT&INVERTIS_LNG: Your campus coordinates.ALLOWED_RADIUS_METERS: Maximum distance (in meters) for marking attendance.GEOFENCE_ENFORCED: Set to1for production,0to disable location blocking during local testing.
python app.pyThe server will start on http://127.0.0.1:5000.
- Database Path: The primary SQLite database is stored at
instance/attendance.db. - Firebase Deployment: The
deployment/folder contains configuration rules (firebase.json,firestore.rules, etc.) if you wish to adapt this project for Firebase hosting or backend synchronization.
The system provides RESTful API endpoints for real-time data access:
GET /api/student/attendance_stats- Comprehensive attendance statisticsGET /api/student/attendance_insights- Smart predictions and required classesGET /api/student/attendance_alert- Low attendance warningsGET /api/student/active_sessions- Real-time active sessions list
GET /api/teacher/dashboard_stats- Dashboard overview metricsGET /api/teacher/session/<id>/stats- Real-time session statistics
GET /api/admin/dashboard_stats- System-wide statisticsGET /api/admin/courses- All courses listGET /api/admin/course_sections/<id>- Available sections for a coursePOST /api/admin/generate_sessions- Auto-generate sessions from timetable
GET /api/session_counts- Session counts by statusGET /api/my_course_attendance- User's course attendance dataGET /api/my_attendance_calendar- Calendar view data
An Advance AI Group Project developed with β€οΈ by Team AstraTech
Β© 2026 Team AstraTech - Invertis University