Flask-based attendance tracking system with role-based access for teachers and students, plus face recognition for photo registration and attendance verification.
- authentication for
adminandstudentusers - teacher dashboard for student management, class management, attendance review, and statistics
- student dashboard for personal data, photo registration, attendance verification, and attendance history
- face recognition flow backed by images stored in
KnownFaces/
app/__init__.py: application factory and blueprint registrationapp/routes/: route modules forauth,student, andteacherapp/services/: shared database and face-recognition servicesapp/templates/: application templatesKnownFaces/: stored student photos used for face recognitionstatic/: static assetsapp.py: local development entrypoint
Create a .env file with:
DB_HOST="localhost"
DB_NAME="Dyplom"
DB_USER="postgres"
DB_PASS="your-password"
SECRET_KEY="change-me-for-production"SECRET_KEY is required for application startup.
- Create and activate a virtual environment.
- Install project dependencies.
- Configure the
.envfile. - Run the application:
python app.pyadmin: access to teacher routes and management featuresstudent: access to personal data, photo registration, and attendance history
- face encodings are currently loaded from images in
KnownFaces/ - for full local verification you need the required Python packages, camera access, and a configured PostgreSQL database