# archanahublikar/image-resize-with-hand-gestures architecture

> Architecture diagram of the GitHub repository archanahublikar/image-resize-with-hand-gestures, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/archanahublikar/image-resize-with-hand-gestures
- Repository: https://github.com/archanahublikar/image-resize-with-hand-gestures

## Overview

This is a small, single-script computer-vision application. Its principal workflow captures webcam frames, detects hands, adjusts an image’s scale from the distance between two index fingertips, overlays the resized image, and displays the result. The README also mentions saving resized images, but the supplied script does not implement saving; no save component is shown. The runtime is concentrated in main.py, so the graph avoids implying separate internal modules.

Main entry points: [`main.py`](https://github.com/archanahublikar/image-resize-with-hand-gestures/blob/main/main.py) (Gesture Resizer)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_app["Gesture Resizer<br/>[main.py]"]
node_webcam["Webcam"]
node_tracker["Hand Tracker"]
node_display["Image Display"]

node_user -->|"starts and exits"| node_app
node_app -->|"captures frames"| node_webcam
node_app -->|"detects hands"| node_tracker
node_app -->|"shows overlay"| node_display

click node_app "https://github.com/archanahublikar/image-resize-with-hand-gestures/blob/main/main.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_user toneBlue
class node_app toneTeal
class node_webcam,node_tracker,node_display toneIndigo
```

## Components

### Other components

- **User**
- [Gesture Resizer](https://github.com/archanahublikar/image-resize-with-hand-gestures/blob/main/main.py): `main.py`
- **Webcam**
- **Hand Tracker**
- **Image Display**

## Connections

- User → Gesture Resizer: starts and exits (evidence: `main.py`)
- Gesture Resizer → Webcam: captures frames (evidence: `main.py`)
- Gesture Resizer → Hand Tracker: detects hands (evidence: `main.py`)
- Gesture Resizer → Image Display: shows overlay (evidence: `main.py`)
