# abhin-c/face-detection-dashboard architecture

> Architecture diagram of the GitHub repository abhin-c/face-detection-dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abhin-c/face-detection-dashboard
- Repository: https://github.com/abhin-c/face-detection-dashboard

## Overview

This is a small Streamlit webcam face-detection dashboard. The user selects a display mode and starts or stops processing; the UI delegates camera lifecycle and frame processing to VideoControls, while showing live statistics or stopped-state information. The UI source confirms those calls, but video_processing.py was not sampled, so its internal stages and camera implementation cannot be verified. The webcam connection is therefore shown as unverified.

Main entry points: [`video_processing_ui.py`](https://github.com/abhin-c/face-detection-dashboard/blob/main/video_processing_ui.py) (Dashboard UI), [`video_processing.py`](https://github.com/abhin-c/face-detection-dashboard/blob/main/video_processing.py) (VideoControls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Dashboard interface"]
  node_dashboard["Dashboard UI"]
end

subgraph group_processing["Video processing"]
  node_video_controls["VideoControls"]
end

node_user(("User"))
node_webcam["Webcam"]

node_user -->|"selects mode"| node_dashboard
node_user -->|"starts or stops"| node_dashboard
node_dashboard -->|"runs processing"| node_video_controls
node_dashboard -->|"stops camera"| node_video_controls
node_video_controls -.->|"captures frames"| node_webcam

click node_dashboard "https://github.com/abhin-c/face-detection-dashboard/blob/main/video_processing_ui.py"
click node_video_controls "https://github.com/abhin-c/face-detection-dashboard/blob/main/video_processing.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_user toneBlue
class node_video_controls toneAmber
class node_webcam toneIndigo
```

## Components

### Dashboard interface

- [Dashboard UI](https://github.com/abhin-c/face-detection-dashboard/blob/main/video_processing_ui.py): `video_processing_ui.py`

### Video processing

- [VideoControls](https://github.com/abhin-c/face-detection-dashboard/blob/main/video_processing.py): `video_processing.py`

### Other components

- **User**
- **Webcam**

## Connections

- User → Dashboard UI: selects mode (evidence: `video_processing_ui.py`)
- User → Dashboard UI: starts or stops (evidence: `video_processing_ui.py`)
- Dashboard UI → VideoControls: runs processing (evidence: `video_processing_ui.py`)
- Dashboard UI → VideoControls: stops camera (evidence: `video_processing_ui.py`)
- VideoControls → Webcam: captures frames
