# thewizardkingg/cyphervision architecture

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

- Interactive diagram: https://gitdiagram.com/thewizardkingg/cyphervision
- Repository: https://github.com/thewizardkingg/cyphervision

## Overview

CypherVision is a webcam-based computer-vision project with two runnable workflows: hand-orientation control that holds game keys, and fire detection that annotates camera frames. The gesture module also contains finger-landmark recognition and predefined sign classification, though the shown automation entry point uses orientation instead. The README describes broader detection ambitions, but the sampled implementation only establishes the fire detector. Edges reflect the shown calls; unsampled capabilities and integrations are not inferred.

Main entry points: [`GestureRecognitionAutomation.py`](https://github.com/thewizardkingg/cyphervision/blob/main/GestureRecognitionAutomation.py) (Gesture Control), [`FireDetectionAutomation.py`](https://github.com/thewizardkingg/cyphervision/blob/main/FireDetectionAutomation.py) (Fire Monitor), [`cyphervision/core/camera.py`](https://github.com/thewizardkingg/cyphervision/blob/main/cyphervision/core/camera.py) (Camera Manager), [`models/FireDetection.py`](https://github.com/thewizardkingg/cyphervision/blob/main/models/FireDetection.py) (Fire Detector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Camera Capture"]
  node_camera["Camera Manager<br/>[camera.py]"]
end

subgraph group_vision["Vision Processing"]
  node_orientation["Hand Orientation"]
  node_gesture_recognizer["Finger Recognition"]
  node_gesture_classifier["Sign Classifier"]
  node_fire_detector["Fire Detector<br/>[FireDetection.py]"]
  node_fire_weights["Trained Weights<br/>[Trained-model.pt]"]
end

subgraph group_automation["Automation"]
  node_gesture_app["Gesture Control"]
  node_fire_app["Fire Monitor"]
  node_keyboard["Keyboard Automation"]
end

node_user(("User"))
node_webcam["Webcam"]
node_game["Game / App"]

node_gesture_app -->|"reads frames"| node_camera
node_fire_app -->|"reads frames"| node_camera
node_webcam -->|"provides video"| node_camera
node_gesture_app -->|"processes frames"| node_orientation
node_gesture_app -->|"dispatches actions"| node_keyboard
node_fire_app -->|"detects fire"| node_fire_detector
node_fire_detector -->|"loads weights"| node_fire_weights
node_gesture_app -->|"displays video"| node_user
node_fire_app -->|"displays results"| node_user
node_keyboard -->|"sends key input"| node_game

click node_gesture_app "https://github.com/thewizardkingg/cyphervision/blob/main/GestureRecognitionAutomation.py"
click node_fire_app "https://github.com/thewizardkingg/cyphervision/blob/main/FireDetectionAutomation.py"
click node_camera "https://github.com/thewizardkingg/cyphervision/blob/main/cyphervision/core/camera.py"
click node_orientation "https://github.com/thewizardkingg/cyphervision/blob/main/models/gestureRecognition.py"
click node_gesture_recognizer "https://github.com/thewizardkingg/cyphervision/blob/main/models/gestureRecognition.py"
click node_gesture_classifier "https://github.com/thewizardkingg/cyphervision/blob/main/models/gestureRecognition.py"
click node_fire_detector "https://github.com/thewizardkingg/cyphervision/blob/main/models/FireDetection.py"
click node_fire_weights "https://github.com/thewizardkingg/cyphervision/blob/main/models/Trained-model.pt"
click node_keyboard "https://github.com/thewizardkingg/cyphervision/blob/main/models/keyboardAutomation.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_camera,node_user toneBlue
class node_orientation,node_gesture_recognizer,node_gesture_classifier,node_fire_detector,node_fire_weights toneAmber
class node_gesture_app,node_fire_app,node_keyboard toneMint
class node_webcam,node_game toneIndigo
```

## Components

### Camera Capture

- [Camera Manager](https://github.com/thewizardkingg/cyphervision/blob/main/cyphervision/core/camera.py): `cyphervision/core/camera.py`

### Vision Processing

- [Hand Orientation](https://github.com/thewizardkingg/cyphervision/blob/main/models/gestureRecognition.py): `models/gestureRecognition.py`
- [Finger Recognition](https://github.com/thewizardkingg/cyphervision/blob/main/models/gestureRecognition.py): `models/gestureRecognition.py`
- [Sign Classifier](https://github.com/thewizardkingg/cyphervision/blob/main/models/gestureRecognition.py): `models/gestureRecognition.py`
- [Fire Detector](https://github.com/thewizardkingg/cyphervision/blob/main/models/FireDetection.py): `models/FireDetection.py`
- [Trained Weights](https://github.com/thewizardkingg/cyphervision/blob/main/models/Trained-model.pt): `models/Trained-model.pt`

### Automation

- [Gesture Control](https://github.com/thewizardkingg/cyphervision/blob/main/GestureRecognitionAutomation.py): `GestureRecognitionAutomation.py`
- [Fire Monitor](https://github.com/thewizardkingg/cyphervision/blob/main/FireDetectionAutomation.py): `FireDetectionAutomation.py`
- [Keyboard Automation](https://github.com/thewizardkingg/cyphervision/blob/main/models/keyboardAutomation.py): `models/keyboardAutomation.py`

### Other components

- **User**
- **Webcam**
- **Game / App**

## Connections

- Gesture Control → Camera Manager: reads frames (evidence: `GestureRecognitionAutomation.py`)
- Fire Monitor → Camera Manager: reads frames (evidence: `FireDetectionAutomation.py`)
- Webcam → Camera Manager: provides video (evidence: `cyphervision/core/camera.py`)
- Gesture Control → Hand Orientation: processes frames (evidence: `GestureRecognitionAutomation.py`)
- Gesture Control → Keyboard Automation: dispatches actions (evidence: `GestureRecognitionAutomation.py`)
- Fire Monitor → Fire Detector: detects fire (evidence: `FireDetectionAutomation.py`)
- Fire Detector → Trained Weights: loads weights (evidence: `models/FireDetection.py`)
- Gesture Control → User: displays video (evidence: `GestureRecognitionAutomation.py`)
- Fire Monitor → User: displays results (evidence: `FireDetectionAutomation.py`)
- Keyboard Automation → Game / App: sends key input (evidence: `models/keyboardAutomation.py`)
