# dheerajdamala/computer_vision architecture

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

- Interactive diagram: https://gitdiagram.com/dheerajdamala/computer_vision
- Repository: https://github.com/dheerajdamala/computer_vision

## Overview

This is a desktop CCTV intrusion-monitoring application. An operator selects a video source and surveillance settings; the application processes frames, tracks people, evaluates zone presence and posture, then presents telemetry and dispatches alerts. The README documents additional ingestion modes and threat rules not fully visible in the sampled code. The graph separates those documented stages while keeping their implementation path at app.py; unsampled details are not treated as inspected.

Main entry points: [`app.py`](https://github.com/dheerajdamala/computer_vision/blob/main/app.py) (Presence and Threat Rules), [`MOT17Labels.zip`](https://github.com/dheerajdamala/computer_vision/blob/main/MOT17Labels.zip) (MOT17 Archive), [`configs/zones.json`](https://github.com/dheerajdamala/computer_vision/blob/main/configs/zones.json) (Zone Configuration), [`yolo11n.pt`](https://github.com/dheerajdamala/computer_vision/blob/main/yolo11n.pt) (Model Weights)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["Video Ingestion"]
  node_video_source["Video Sources"]
  node_mot_archive["MOT17 Archive<br/>[MOT17Labels.zip]"]
  node_frame_ingestion["Frame Ingestion<br/>[app.py]"]
end

subgraph group_analysis["Vision and Threat Analysis"]
  node_night_vision["Night Enhancement<br/>[app.py]"]
  node_person_detection["Person Detection<br/>[app.py]"]
  node_tracking["Person Tracking<br/>[app.py]"]
  node_pose_analysis["Pose Analysis<br/>[app.py]"]
  node_zone_geometry["Zone Geometry<br/>[app.py]"]
  node_presence_rules["Presence and Threat Rules<br/>[app.py]"]
  node_zone_config["Zone Configuration<br/>[zones.json]"]
  node_model_weights["Model Weights<br/>[yolo11n.pt]"]
end

subgraph group_operator["Desktop Operations"]
  node_operator_gui["Surveillance GUI<br/>[app.py]"]
  node_telemetry["Live Telemetry<br/>[app.py]"]
end

subgraph group_response["Alerting and Research"]
  node_alert_dispatch["Alert Dispatcher<br/>[app.py]"]
  node_discord["Discord"]
  node_telegram["Telegram"]
  node_research_pipeline["Research Pipeline"]
end

node_operator_user(("Security Operator"))

node_operator_user -->|"configures"| node_operator_gui
node_video_source -->|"supplies frames"| node_frame_ingestion
node_mot_archive -->|"streams frames"| node_frame_ingestion
node_operator_gui -->|"selects source"| node_frame_ingestion
node_frame_ingestion -->|"enhances frames"| node_night_vision
node_night_vision -->|"provides frames"| node_person_detection
node_person_detection -->|"tracks detections"| node_tracking
node_tracking -->|"provides detections"| node_pose_analysis
node_tracking -->|"checks footpoints"| node_zone_geometry
node_zone_config -->|"defines zones"| node_zone_geometry
node_pose_analysis -->|"provides posture"| node_presence_rules
node_zone_geometry -->|"provides containment"| node_presence_rules
node_model_weights -->|"loads weights"| node_person_detection
node_operator_gui -->|"renders status"| node_telemetry
node_presence_rules -->|"updates incidents"| node_telemetry
node_presence_rules -->|"dispatches alerts"| node_alert_dispatch
node_alert_dispatch -->|"sends alerts"| node_discord
node_alert_dispatch -->|"sends alerts"| node_telegram

click node_mot_archive "https://github.com/dheerajdamala/computer_vision/blob/main/MOT17Labels.zip"
click node_frame_ingestion "https://github.com/dheerajdamala/computer_vision/blob/main/app.py"
click node_night_vision "https://github.com/dheerajdamala/computer_vision/blob/main/app.py"
click node_person_detection "https://github.com/dheerajdamala/computer_vision/blob/main/app.py"
click node_tracking "https://github.com/dheerajdamala/computer_vision/blob/main/app.py"
click node_pose_analysis "https://github.com/dheerajdamala/computer_vision/blob/main/app.py"
click node_zone_geometry "https://github.com/dheerajdamala/computer_vision/blob/main/app.py"
click node_presence_rules "https://github.com/dheerajdamala/computer_vision/blob/main/app.py"
click node_zone_config "https://github.com/dheerajdamala/computer_vision/blob/main/configs/zones.json"
click node_model_weights "https://github.com/dheerajdamala/computer_vision/blob/main/yolo11n.pt"
click node_operator_gui "https://github.com/dheerajdamala/computer_vision/blob/main/app.py"
click node_telemetry "https://github.com/dheerajdamala/computer_vision/blob/main/app.py"
click node_alert_dispatch "https://github.com/dheerajdamala/computer_vision/blob/main/app.py"
click node_research_pipeline "https://github.com/dheerajdamala/computer_vision/blob/main/Surveillance_System.ipynb"

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_video_source,node_mot_archive,node_frame_ingestion toneBlue
class node_night_vision,node_person_detection,node_tracking,node_pose_analysis,node_zone_geometry,node_presence_rules,node_zone_config,node_model_weights toneAmber
class node_operator_gui,node_telemetry toneMint
class node_alert_dispatch,node_discord,node_telegram,node_research_pipeline toneRose
class node_operator_user toneIndigo
```

## Components

### Video Ingestion

- **Video Sources**
- [MOT17 Archive](https://github.com/dheerajdamala/computer_vision/blob/main/MOT17Labels.zip): `MOT17Labels.zip`
- [Frame Ingestion](https://github.com/dheerajdamala/computer_vision/blob/main/app.py): `app.py`

### Vision and Threat Analysis

- [Night Enhancement](https://github.com/dheerajdamala/computer_vision/blob/main/app.py): `app.py`
- [Person Detection](https://github.com/dheerajdamala/computer_vision/blob/main/app.py): `app.py`
- [Person Tracking](https://github.com/dheerajdamala/computer_vision/blob/main/app.py): `app.py`
- [Pose Analysis](https://github.com/dheerajdamala/computer_vision/blob/main/app.py): `app.py`
- [Zone Geometry](https://github.com/dheerajdamala/computer_vision/blob/main/app.py): `app.py`
- [Presence and Threat Rules](https://github.com/dheerajdamala/computer_vision/blob/main/app.py): `app.py`
- [Zone Configuration](https://github.com/dheerajdamala/computer_vision/blob/main/configs/zones.json): `configs/zones.json`
- [Model Weights](https://github.com/dheerajdamala/computer_vision/blob/main/yolo11n.pt): `yolo11n.pt`

### Desktop Operations

- [Surveillance GUI](https://github.com/dheerajdamala/computer_vision/blob/main/app.py): `app.py`
- [Live Telemetry](https://github.com/dheerajdamala/computer_vision/blob/main/app.py): `app.py`

### Alerting and Research

- [Alert Dispatcher](https://github.com/dheerajdamala/computer_vision/blob/main/app.py): `app.py`
- **Discord**
- **Telegram**
- [Research Pipeline](https://github.com/dheerajdamala/computer_vision/blob/main/Surveillance_System.ipynb): `Surveillance_System.ipynb`

### Other components

- **Security Operator**

## Connections

- Security Operator → Surveillance GUI: configures (evidence: `README.md`)
- Video Sources → Frame Ingestion: supplies frames (evidence: `README.md`)
- MOT17 Archive → Frame Ingestion: streams frames (evidence: `README.md`)
- Surveillance GUI → Frame Ingestion: selects source (evidence: `README.md`)
- Frame Ingestion → Night Enhancement: enhances frames (evidence: `app.py`)
- Night Enhancement → Person Detection: provides frames (evidence: `app.py`)
- Person Detection → Person Tracking: tracks detections (evidence: `app.py`)
- Person Tracking → Pose Analysis: provides detections (evidence: `app.py`)
- Person Tracking → Zone Geometry: checks footpoints (evidence: `README.md`)
- Zone Configuration → Zone Geometry: defines zones (evidence: `README.md`)
- Pose Analysis → Presence and Threat Rules: provides posture (evidence: `README.md`)
- Zone Geometry → Presence and Threat Rules: provides containment (evidence: `README.md`)
- Model Weights → Person Detection: loads weights (evidence: `app.py`)
- Surveillance GUI → Live Telemetry: renders status (evidence: `app.py`)
- Presence and Threat Rules → Live Telemetry: updates incidents (evidence: `app.py`)
- Presence and Threat Rules → Alert Dispatcher: dispatches alerts (evidence: `app.py`)
- Alert Dispatcher → Discord: sends alerts (evidence: `app.py`)
- Alert Dispatcher → Telegram: sends alerts (evidence: `app.py`)
