How bayaraa07-27/diplom works
FaceAttend is a web-based student attendance system centered on webcam face recognition, with enrollment, liveness checks, schedule-aware attendance, manual corrections, and reporting. Users authenticate in the React interface; its API client sends requests to Flask routes, which apply domain logic and persist records in MongoDB. The recognition path uses ArcFace embeddings and can apply texture-based anti-spoofing. The graph preserves the README’s major capabilities, but several route implementations were not excerpted; those connections rely on documented API behavior rather than inspection of their internals.
Main entry points: api.js HTTP client · App.jsx React routes · app.py Flask app · database.py MongoDB
Components 21
Web interface
- React routes
frontend/src/App.jsx - Auth state
frontend/src/hooks/useAuth.jsx - HTTP client
frontend/src/utils/api.js - Attendance scanning
frontend/src/pages/Attendance.jsx - Attendance state
frontend/src/contexts/AttendanceContext.jsx - Face enrollment
frontend/src/pages/Enroll.jsx - Student management
frontend/src/pages/Students.jsx - Schedule management
frontend/src/pages/Schedules.jsx - Attendance reports
frontend/src/pages/Reports.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Dropdown control
frontend/src/components/Dropdown.jsx
Flask API
- Flask app
backend/app.py - Authentication
backend/routes/auth.py - Student routes
backend/routes/students.py - Attendance routes
backend/routes/attendance.py - Schedule routes
backend/routes/schedules.py - Report routes
backend/routes/reports.py
Face processing
- ArcFace recognition
backend/utils/face_utils.py - Liveness checks
backend/utils/liveness.py
Attendance data
- MongoDB
backend/database.py
Other components
- Teacher or admin
Connections 39
- Teacher or admin → React routes: uses
README.md - React routes → Attendance scanning: routes to
frontend/src/App.jsx - React routes → Face enrollment: routes to
frontend/src/App.jsx - React routes → Student management: routes to
frontend/src/App.jsx - React routes → Schedule management: routes to
frontend/src/App.jsx - React routes → Attendance reports: routes to
frontend/src/App.jsx - React routes → Dashboard: routes to
frontend/src/App.jsx - React routes → Auth state: provides auth
frontend/src/App.jsx - Auth state → HTTP client: calls
frontend/src/hooks/useAuth.jsx - Attendance scanning → HTTP client: calls
frontend/src/pages/Attendance.jsx - Attendance scanning → Attendance state: uses state
frontend/src/pages/Attendance.jsx - Attendance scanning → Dropdown control: renders
frontend/src/pages/Attendance.jsx - Face enrollment → HTTP client: calls
frontend/src/pages/Enroll.jsx - Student management → HTTP client: calls
frontend/src/pages/Students.jsx - Schedule management → HTTP client: calls
frontend/src/pages/Schedules.jsx - Schedule management → Dropdown control: renders
frontend/src/pages/Schedules.jsx - Attendance reports → HTTP client: calls
frontend/src/pages/Reports.jsx - Dashboard → HTTP client: calls
frontend/src/pages/Dashboard.jsx - Attendance state → HTTP client: calls
frontend/src/contexts/AttendanceContext.jsx - HTTP client → Authentication: HTTP requests
README.md - HTTP client → Student routes: HTTP requests
README.md - HTTP client → Attendance routes: HTTP requests
README.md - HTTP client → Schedule routes: HTTP requests
README.md - HTTP client → Report routes: HTTP requests
README.md - Flask app → Authentication: registers
backend/app.py - Flask app → Student routes: registers
backend/app.py - Flask app → Attendance routes: registers
backend/app.py - Flask app → Schedule routes: registers
backend/app.py - Flask app → Report routes: registers
backend/app.py - Authentication → MongoDB: reads and writes
backend/routes/auth.py - Attendance routes → MongoDB: reads and writes
backend/routes/attendance.py - Attendance routes → ArcFace recognition: recognizes faces
backend/routes/attendance.py - Attendance routes → Liveness checks: checks liveness
backend/routes/attendance.py - Student routes → MongoDB: reads and writes
backend/routes/students.py - Student routes → ArcFace recognition: enrolls faces
backend/routes/students.py - Schedule routes → MongoDB: reads and writes
backend/routes/schedules.py - Report routes → MongoDB: queries records
backend/routes/reports.py - ArcFace recognition → MongoDB: loads encodings
backend/utils/face_utils.py - ArcFace recognition → Liveness checks: checks liveness
backend/utils/face_utils.py