How sahak30/knu-face-recognition-system works
KNU Face Recognition System is a bilingual desktop administration app with Firebase-backed administrator sign-in and user records, plus local face enrollment and recognition components. The main workflow is sign-in, dashboard access, user registration, face-sample capture, and local embedding generation; recognition is also represented in the codebase. Firebase can remain disconnected at startup. Several dashboard and enrollment links are based on partial excerpts, so uncertain runtime connections are omitted or marked unverified.
Main entry points: main_window.py Dashboard · firebase_auth_service.py Admin authentication · firebase_service.py User records and logs · app.py App launcher
Components 15
Desktop app
- App launcher
app.py - Login and setup
ui/login_window.py - Dashboard
ui/main_window.py - Interface styles
ui/styles.py
Identity and users
- User registration
ui/registration_form.py - Admin authentication
ui/firebase_auth_service.py - User records and logs
firebase_service.py
Face processing
- Face enrollment
ui/face_enrollment.py - Face detection and embeddings
recognition/face_engine.py - Embedding trainer
recognition/face_trainer.py - Face recognition
recognition/face_recognizer.py
Configuration and services
- Runtime configuration
config.py
Other components
- Administrator
- Firebase Realtime Database
- Firebase Authentication
Connections 17
- Administrator → App launcher: launches
app.py - App launcher → Login and setup: opens
app.py - App launcher → Dashboard: opens after sign-in
app.py - Login and setup → Admin authentication: authenticates
ui/login_window.py - Login and setup → User records and logs: initializes
ui/login_window.py - Admin authentication → Runtime configuration: reads API key
ui/firebase_auth_service.py - Admin authentication → Firebase Authentication: signs in
ui/firebase_auth_service.py - Admin authentication → Firebase Realtime Database: checks admin profiles
ui/firebase_auth_service.py - User records and logs → Runtime configuration: reads connection settings
firebase_service.py - User records and logs → Firebase Realtime Database: reads and writes
firebase_service.py - Dashboard → User registration: embeds form
ui/main_window.py - Dashboard → User records and logs: uses service
ui/main_window.py - Dashboard → Face enrollment: opens enrollment
ui/main_window.py - Dashboard → Interface styles: applies styles
ui/main_window.py - Face enrollment → Face detection and embeddings: detects faces
ui/face_enrollment.py - Embedding trainer → Face detection and embeddings: initializes engine
recognition/face_trainer.py - Dashboard → Embedding trainer: uses trainer
ui/main_window.py