# karma-0125/animegestures architecture

> Architecture diagram of the GitHub repository karma-0125/animegestures, 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/karma-0125/animegestures
- Repository: https://github.com/karma-0125/animegestures

## Overview

Naruto All Effects is a single-file, real-time webcam AR filter. Its principal workflow captures frames, detects face, hand and pose landmarks, maps gestures to effect modes, renders the corresponding visual effect, and presents the augmented frame. The README documents the full set of gesture-triggered effects; the excerpt shows gesture-to-mode selection and rendering branches for Chakra Mode and Rasengan. Because most.py is only partially excerpted, links for other effect renderers follow the README’s documented workflow rather than inspected calls.

Main entry points: [`most.py`](https://github.com/karma-0125/animegestures/blob/main/most.py) (Mode Selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Frame Processing"]
  node_frame_loop["Frame Loop<br/>[most.py]"]
  node_landmark_detection["Landmark Detection<br/>[most.py]"]
end

subgraph group_gestures["Gesture Recognition"]
  node_gesture_mapping["Gesture Mapping<br/>[most.py]"]
  node_mode_selection["Mode Selection<br/>[most.py]"]
end

subgraph group_visuals["Visual Effects"]
  node_eye_effects["Sharingan / Byakugan<br/>[most.py]"]
  node_sand_effect["Gaara Sand<br/>[most.py]"]
  node_chidori_effect["Chidori Lightning<br/>[most.py]"]
  node_chakra_effect["Chakra Mode<br/>[most.py]"]
  node_rasengan_effect["Rasengan<br/>[most.py]"]
end

subgraph group_presentation["Presentation"]
  node_frame_compositing["Frame Compositing<br/>[most.py]"]
  node_status_ui["Mode UI<br/>[most.py]"]
  node_augmented_view["Augmented View<br/>[most.py]"]
end

node_user(("User"))
node_webcam(("Webcam"))

node_user -->|"starts session"| node_frame_loop
node_webcam -->|"supplies frames"| node_frame_loop
node_frame_loop -->|"analyzes frames"| node_landmark_detection
node_landmark_detection -->|"provides landmarks"| node_gesture_mapping
node_gesture_mapping -->|"maps gestures"| node_mode_selection
node_mode_selection -->|"selects eye mode"| node_eye_effects
node_mode_selection -->|"selects sand mode"| node_sand_effect
node_mode_selection -->|"selects lightning mode"| node_chidori_effect
node_mode_selection -->|"selects chakra mode"| node_chakra_effect
node_mode_selection -->|"selects Rasengan"| node_rasengan_effect
node_eye_effects -.->|"renders effect"| node_frame_compositing
node_sand_effect -.->|"renders particles"| node_frame_compositing
node_chidori_effect -.->|"renders lightning"| node_frame_compositing
node_chakra_effect -->|"draws aura"| node_frame_compositing
node_rasengan_effect -->|"draws effect"| node_frame_compositing
node_mode_selection -->|"sets mode label"| node_status_ui
node_frame_compositing -->|"outputs frame"| node_augmented_view
node_status_ui -->|"shows status"| node_augmented_view

click node_frame_loop "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_landmark_detection "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_gesture_mapping "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_mode_selection "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_eye_effects "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_sand_effect "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_chidori_effect "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_chakra_effect "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_rasengan_effect "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_frame_compositing "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_status_ui "https://github.com/karma-0125/animegestures/blob/main/most.py"
click node_augmented_view "https://github.com/karma-0125/animegestures/blob/main/most.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_frame_loop,node_landmark_detection,node_user toneBlue
class node_gesture_mapping,node_mode_selection toneAmber
class node_eye_effects,node_sand_effect,node_chidori_effect,node_chakra_effect,node_rasengan_effect toneMint
class node_frame_compositing,node_status_ui,node_augmented_view toneRose
class node_webcam toneIndigo
```

## Components

### Frame Processing

- [Frame Loop](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`
- [Landmark Detection](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`

### Gesture Recognition

- [Gesture Mapping](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`
- [Mode Selection](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`

### Visual Effects

- [Sharingan / Byakugan](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`
- [Gaara Sand](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`
- [Chidori Lightning](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`
- [Chakra Mode](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`
- [Rasengan](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`

### Presentation

- [Frame Compositing](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`
- [Mode UI](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`
- [Augmented View](https://github.com/karma-0125/animegestures/blob/main/most.py): `most.py`

### Other components

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

## Connections

- User → Frame Loop: starts session (evidence: `README.md`)
- Webcam → Frame Loop: supplies frames (evidence: `README.md`)
- Frame Loop → Landmark Detection: analyzes frames (evidence: `README.md`)
- Landmark Detection → Gesture Mapping: provides landmarks (evidence: `most.py`)
- Gesture Mapping → Mode Selection: maps gestures (evidence: `most.py`)
- Mode Selection → Sharingan / Byakugan: selects eye mode (evidence: `README.md`)
- Mode Selection → Gaara Sand: selects sand mode (evidence: `README.md`)
- Mode Selection → Chidori Lightning: selects lightning mode (evidence: `README.md`)
- Mode Selection → Chakra Mode: selects chakra mode (evidence: `README.md`)
- Mode Selection → Rasengan: selects Rasengan (evidence: `most.py`)
- Sharingan / Byakugan → Frame Compositing: renders effect (evidence: `most.py`)
- Gaara Sand → Frame Compositing: renders particles (evidence: `most.py`)
- Chidori Lightning → Frame Compositing: renders lightning (evidence: `most.py`)
- Chakra Mode → Frame Compositing: draws aura (evidence: `most.py`)
- Rasengan → Frame Compositing: draws effect (evidence: `most.py`)
- Mode Selection → Mode UI: sets mode label (evidence: `most.py`)
- Frame Compositing → Augmented View: outputs frame (evidence: `README.md`)
- Mode UI → Augmented View: shows status (evidence: `most.py`)
