# chittaranjanp51/neural-networks-project---gesture-recognition architecture

> Architecture diagram of the GitHub repository chittaranjanp51/neural-networks-project---gesture-recognition, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chittaranjanp51/neural-networks-project---gesture-recognition
- Repository: https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition

## Overview

This repository is a hand-gesture recognition project for touch-free smart-TV control. Its documented workflow uses video sequences, prepares batches with cropping, resizing, and normalization, and trains a recognition model for five gestures whose classes correspond to TV commands. The notebook is the project’s sole source artifact, and the H5 file is the saved model. No notebook source was available to confirm internal calls or inference details, so the graph shows only documented relationships; the write-up is documentation, not a runtime component.

Main entry points: [`Gesture_recognition.ipynb`](https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition/blob/main/Gesture_recognition.ipynb) (Gesture Model), [`model-00049-0.06883-0.96726-0.13135-0.93750.h5`](https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition/blob/main/model-00049-0.06883-0.96726-0.13135-0.93750.h5) (Saved Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["Video Input"]
  node_webcam["TV Webcam"]
  node_video_sequences["Video Sequences"]
end

subgraph group_recognition["Model Workflow"]
  node_generator["Video Generator"]
  node_preprocessing["Frame Preprocessing"]
  node_gesture_model["Gesture Model"]
  node_saved_model["Saved Model"]
end

subgraph group_control["TV Control"]
  node_gesture_classes["Five Gesture Classes"]
  node_tv_commands["TV Commands"]
end

node_viewer(("TV Viewer"))

node_viewer -->|"performs gestures"| node_webcam
node_webcam -->|"records videos"| node_video_sequences
node_video_sequences -->|"provides batches"| node_generator
node_generator -->|"prepares frames"| node_preprocessing
node_preprocessing -->|"feeds training"| node_gesture_model
node_gesture_model -.->|"produces model"| node_saved_model
node_gesture_model -->|"recognizes"| node_gesture_classes
node_gesture_classes -->|"map to"| node_tv_commands
node_tv_commands -->|"controls TV"| node_viewer

click node_generator "https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition/blob/main/Gesture_recognition.ipynb"
click node_preprocessing "https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition/blob/main/Gesture_recognition.ipynb"
click node_gesture_model "https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition/blob/main/Gesture_recognition.ipynb"
click node_saved_model "https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition/blob/main/model-00049-0.06883-0.96726-0.13135-0.93750.h5"

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_webcam,node_video_sequences,node_viewer toneBlue
class node_generator,node_preprocessing,node_gesture_model,node_saved_model toneAmber
class node_gesture_classes,node_tv_commands toneMint
```

## Components

### Video Input

- **TV Webcam**
- **Video Sequences**

### Model Workflow

- [Video Generator](https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition/blob/main/Gesture_recognition.ipynb): `Gesture_recognition.ipynb`
- [Frame Preprocessing](https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition/blob/main/Gesture_recognition.ipynb): `Gesture_recognition.ipynb`
- [Gesture Model](https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition/blob/main/Gesture_recognition.ipynb): `Gesture_recognition.ipynb`
- [Saved Model](https://github.com/chittaranjanp51/neural-networks-project---gesture-recognition/blob/main/model-00049-0.06883-0.96726-0.13135-0.93750.h5): `model-00049-0.06883-0.96726-0.13135-0.93750.h5`

### TV Control

- **Five Gesture Classes**
- **TV Commands**

### Other components

- **TV Viewer**

## Connections

- TV Viewer → TV Webcam: performs gestures
- TV Webcam → Video Sequences: records videos
- Video Sequences → Video Generator: provides batches
- Video Generator → Frame Preprocessing: prepares frames
- Frame Preprocessing → Gesture Model: feeds training
- Gesture Model → Saved Model: produces model
- Gesture Model → Five Gesture Classes: recognizes
- Five Gesture Classes → TV Commands: map to
- TV Commands → TV Viewer: controls TV
