# manojmanu916/smart-class-room-attendance-system architecture

> Architecture diagram of the GitHub repository manojmanu916/smart-class-room-attendance-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/manojmanu916/smart-class-room-attendance-system
- Repository: https://github.com/manojmanu916/smart-class-room-attendance-system

## Overview

This is a desktop attendance application with a separate student-enrollment workflow. The primary path is camera input, face detection and tracking, liveness checks, identity verification, then attendance display. Enrollment captures pose-specific face images into student folders. The README documents the broader capabilities; several implementation details, including recognition internals and attendance persistence, were not excerpted, so those relationships are not expanded beyond supported references.

Main entry points: [`Main/app_ui.py`](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/app_ui.py) (Attendance dashboard), [`student_enrollment/ui/layout.py`](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/ui/layout.py) (Enrollment interface), [`Main/liveness.py`](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/liveness.py) (Liveness checks), [`Main/detector.py`](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/detector.py) (Face detection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_attendance["Attendance runtime"]
  node_dashboard["Attendance dashboard<br/>[app_ui.py]"]
  node_camera_reader["Camera capture<br/>[camera_manager.py]"]
  node_attendance_log["Attendance log and stats<br/>[app_ui.py]"]
end

subgraph group_vision["Face analysis"]
  node_face_detector["Face detection<br/>[detector.py]"]
  node_face_tracker["Face tracking<br/>[tracker.py]"]
  node_identity["Face recognition<br/>[recognition.py]"]
  node_liveness["Liveness checks<br/>[liveness.py]"]
  node_antispoof_model["MiniFASNet model<br/>[minifasnet.py]"]
  node_image_preprocessing["Image preprocessing<br/>[preprocess.py]"]
end

subgraph group_enrollment["Student enrollment"]
  node_enrollment_ui["Enrollment interface<br/>[layout.py]"]
  node_enrollment_widgets["Enrollment widgets<br/>[widgets.py]"]
  node_enrollment_camera["Enrollment camera<br/>[camera_manager.py]"]
  node_enrollment_detector["Enrollment face detector<br/>[detector.py]"]
  node_enrollment_capture["Image capture<br/>[capture.py]"]
  node_enrollment_config["Pose settings<br/>[config.py]"]
  node_folder_setup["Student folders<br/>[create_folders.py]"]
  node_enrollment_images[("Enrollment image folders<br/>[create_folders.py]")]
end

node_operator(("Operator"))
node_camera["Camera devices"]

node_operator -->|"starts and controls"| node_dashboard
node_dashboard -->|"starts capture"| node_camera_reader
node_camera -->|"provides frames"| node_camera_reader
node_dashboard -->|"requests detections"| node_face_detector
node_dashboard -->|"updates tracks"| node_face_tracker
node_dashboard -->|"checks identities"| node_identity
node_dashboard -->|"checks liveness"| node_liveness
node_liveness -->|"loads model"| node_antispoof_model
node_liveness -->|"uses preprocessing"| node_image_preprocessing
node_face_detector -->|"uses preprocessing"| node_image_preprocessing
node_dashboard -->|"updates log and stats"| node_attendance_log
node_operator -->|"opens enrollment"| node_enrollment_ui
node_dashboard -->|"loads enrollment"| node_enrollment_ui
node_enrollment_ui -->|"creates controls"| node_enrollment_widgets
node_enrollment_ui -->|"reads camera frames"| node_enrollment_camera
node_enrollment_camera -->|"detects faces"| node_enrollment_detector
node_enrollment_ui -->|"saves captured images"| node_enrollment_capture
node_enrollment_ui -->|"uses pose settings"| node_enrollment_config
node_enrollment_ui -->|"creates student folders"| node_folder_setup
node_folder_setup -->|"creates pose directories"| node_enrollment_images
node_enrollment_ui -->|"writes pose images"| node_enrollment_images

click node_dashboard "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/app_ui.py"
click node_camera_reader "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/camera_manager.py"
click node_face_detector "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/detector.py"
click node_face_tracker "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/tracker.py"
click node_identity "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/recognition.py"
click node_liveness "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/liveness.py"
click node_antispoof_model "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/minifasnet.py"
click node_image_preprocessing "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/utils/preprocess.py"
click node_attendance_log "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/app_ui.py"
click node_enrollment_ui "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/ui/layout.py"
click node_enrollment_widgets "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/ui/widgets.py"
click node_enrollment_camera "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/camera/camera_manager.py"
click node_enrollment_detector "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/enrollment_utils/detector.py"
click node_enrollment_capture "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/camera/capture.py"
click node_enrollment_config "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/enrollment_utils/config.py"
click node_folder_setup "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/enrollment_utils/create_folders.py"
click node_enrollment_images "https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/enrollment_utils/create_folders.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard,node_camera_reader,node_attendance_log toneBlue
class node_face_detector,node_face_tracker,node_identity,node_liveness,node_antispoof_model,node_image_preprocessing toneAmber
class node_enrollment_ui,node_enrollment_widgets,node_enrollment_camera,node_enrollment_detector,node_enrollment_capture,node_enrollment_config,node_folder_setup,node_enrollment_images toneMint
class node_operator,node_camera toneIndigo
```

## Components

### Attendance runtime

- [Attendance dashboard](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/app_ui.py): `Main/app_ui.py`
- [Camera capture](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/camera_manager.py): `Main/camera_manager.py`
- [Attendance log and stats](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/app_ui.py): `Main/app_ui.py`

### Face analysis

- [Face detection](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/detector.py): `Main/detector.py`
- [Face tracking](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/tracker.py): `Main/tracker.py`
- [Face recognition](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/recognition.py): `Main/recognition.py`
- [Liveness checks](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/liveness.py): `Main/liveness.py`
- [MiniFASNet model](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/minifasnet.py): `Main/minifasnet.py`
- [Image preprocessing](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/Main/utils/preprocess.py): `Main/utils/preprocess.py`

### Student enrollment

- [Enrollment interface](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/ui/layout.py): `student_enrollment/ui/layout.py`
- [Enrollment widgets](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/ui/widgets.py): `student_enrollment/ui/widgets.py`
- [Enrollment camera](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/camera/camera_manager.py): `student_enrollment/camera/camera_manager.py`
- [Enrollment face detector](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/enrollment_utils/detector.py): `student_enrollment/enrollment_utils/detector.py`
- [Image capture](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/camera/capture.py): `student_enrollment/camera/capture.py`
- [Pose settings](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/enrollment_utils/config.py): `student_enrollment/enrollment_utils/config.py`
- [Student folders](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/enrollment_utils/create_folders.py): `student_enrollment/enrollment_utils/create_folders.py`
- [Enrollment image folders](https://github.com/manojmanu916/smart-class-room-attendance-system/blob/main/student_enrollment/enrollment_utils/create_folders.py): `student_enrollment/enrollment_utils/create_folders.py`

### Other components

- **Operator**
- **Camera devices**

## Connections

- Operator → Attendance dashboard: starts and controls (evidence: `README.md`)
- Attendance dashboard → Camera capture: starts capture (evidence: `Main/app_ui.py`)
- Camera devices → Camera capture: provides frames (evidence: `Main/camera_manager.py`)
- Attendance dashboard → Face detection: requests detections (evidence: `Main/app_ui.py`)
- Attendance dashboard → Face tracking: updates tracks (evidence: `Main/app_ui.py`)
- Attendance dashboard → Face recognition: checks identities (evidence: `Main/app_ui.py`)
- Attendance dashboard → Liveness checks: checks liveness (evidence: `Main/app_ui.py`)
- Liveness checks → MiniFASNet model: loads model (evidence: `Main/liveness.py`)
- Liveness checks → Image preprocessing: uses preprocessing (evidence: `Main/liveness.py`)
- Face detection → Image preprocessing: uses preprocessing (evidence: `Main/detector.py`)
- Attendance dashboard → Attendance log and stats: updates log and stats (evidence: `README.md`)
- Operator → Enrollment interface: opens enrollment (evidence: `README.md`)
- Attendance dashboard → Enrollment interface: loads enrollment (evidence: `Main/app_ui.py`)
- Enrollment interface → Enrollment widgets: creates controls (evidence: `student_enrollment/ui/layout.py`)
- Enrollment interface → Enrollment camera: reads camera frames (evidence: `student_enrollment/ui/layout.py`)
- Enrollment camera → Enrollment face detector: detects faces (evidence: `student_enrollment/camera/camera_manager.py`)
- Enrollment interface → Image capture: saves captured images (evidence: `student_enrollment/ui/layout.py`)
- Enrollment interface → Pose settings: uses pose settings (evidence: `student_enrollment/ui/layout.py`)
- Enrollment interface → Student folders: creates student folders (evidence: `student_enrollment/ui/layout.py`)
- Student folders → Enrollment image folders: creates pose directories (evidence: `student_enrollment/enrollment_utils/create_folders.py`)
- Enrollment interface → Enrollment image folders: writes pose images (evidence: `student_enrollment/ui/layout.py`)
