How nvaltryek-001/edulens works
EduLens manages student enrollment and classroom attendance using facial recognition, with an Android client and Flask backend. Teachers capture a classroom image, the backend recognizes enrolled students and records attendance, and administrators manage student records and review reports. The backend also provides authentication, attendance-session handling, and notification support; the Android app documents local Room storage. Android implementation excerpts were not provided, so its internal connections are shown only where documented or left unverified.
Main entry points: app.py API routes · screens App screens · notification_service.py Push notifications · AttendanceViewModel.kt Attendance state
Components 17
Android client
- App screens
app/src/main/java/com/example/ui/screens - Camera preview
app/src/main/java/com/example/ui/screens/CameraPreview.kt - Attendance state
app/src/main/java/com/example/ui/screens/AttendanceViewModel.kt - API client
app/src/main/java/com/example/api/ApiClient.kt - Flask API service
app/src/main/java/com/example/api/FlaskApiService.kt - Local repository
app/src/main/java/com/example/data/AppRepository.kt - Room database
app/src/main/java/com/example/data/AppDatabase.kt - Local entities
app/src/main/java/com/example/data/Entities.kt
Backend services
- API routes
backend/app.py - JWT authentication
backend/auth.py
Recognition and enrollment
- Face recognition core
backend/ml_core.py - Model training
backend/train_model.py
Persistence and integrations
- Student records
backend/database.py - Service configuration
backend/config/config.py - Push notifications
backend/services/notification_service.py
Other components
- Teacher or admin
- Firebase Cloud Messaging
Connections 17
- Teacher or admin → App screens: uses
README.md - App screens → Camera preview: captures with
- App screens → Attendance state: uses
- Attendance state → Flask API service: requests
- Flask API service → API client: uses
- API client → API routes: calls API
- App screens → Local repository: uses
- Local repository → Room database: reads and writes
- Room database → Local entities: stores
- Teacher or admin → API routes: administers attendance
README.md - API routes → JWT authentication: authenticates with
backend/app.py - API routes → Student records: reads and writes
backend/app.py - API routes → Face recognition core: invokes recognition
backend/app.py - Model training → Face recognition core: trains with
backend/train_model.py - API routes → Push notifications: sends through
backend/app.py - Push notifications → Service configuration: loads settings
backend/services/notification_service.py - Push notifications → Firebase Cloud Messaging: sends messages
backend/services/notification_service.py