# arijit2003/human-pose-estimation-using-machine-learning architecture

> Architecture diagram of the GitHub repository arijit2003/human-pose-estimation-using-machine-learning, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/arijit2003/human-pose-estimation-using-machine-learning
- Repository: https://github.com/arijit2003/human-pose-estimation-using-machine-learning

## Overview

This repository is a set of standalone OpenCV image-processing examples and human-pose demos, rather than one integrated application. The main user-facing workflow is the Streamlit image app: an image is uploaded (or a demo image is used), processed with a TensorFlow-backed OpenCV pose model, and displayed with estimated keypoints. Separate scripts demonstrate webcam pose estimation with MediaPipe and static-image landmark drawing. The README is only a title, so the smaller image-processing examples are inferred from their source; no connections between standalone scripts are assumed.

Main entry points: [`estimation_app.py`](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/estimation_app.py) (Image Pose App), [`video_pose_est.py`](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/video_pose_est.py) (Webcam Pose Demo), [`MediaPipe.py`](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/MediaPipe.py) (Static Image Demo), [`graph_opt.pb`](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/graph_opt.pb) (TensorFlow Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_image_examples["Image Processing Examples"]
  node_image_ops["Color and Channels<br/>[01.py]"]
  node_image_save["Grayscale Save<br/>[02.py]"]
  node_image_inspect["Image Dimensions<br/>[03.py]"]
  node_image_resize["Image Resize<br/>[04.py]"]
  node_image_rotate["Image Rotation<br/>[05.py]"]
  node_image_draw["Shape Drawing<br/>[06.py]"]
  node_image_text["Text Overlay<br/>[07.py]"]
end

subgraph group_pose_apps["Pose Estimation Demos"]
  node_streamlit_app["Image Pose App<br/>[estimation_app.py]"]
  node_image_input["Image Input<br/>[estimation_app.py]"]
  node_pose_inference["Pose Inference<br/>[estimation_app.py]"]
  node_pose_overlay["Keypoint Overlay<br/>[estimation_app.py]"]
  node_webcam_pose["Webcam Pose Demo<br/>[video_pose_est.py]"]
  node_static_pose["Static Image Demo<br/>[MediaPipe.py]"]
end

subgraph group_pose_runtime["Pose Runtime"]
  node_tf_model["TensorFlow Model<br/>[graph_opt.pb]"]
  node_mediapipe["MediaPipe Pose"]
end

node_user(("User"))
node_camera(("Webcam"))

node_user -->|"uploads image"| node_streamlit_app
node_streamlit_app -->|"selects image"| node_image_input
node_image_input -->|"passes image"| node_pose_inference
node_pose_inference -->|"loads model"| node_tf_model
node_pose_inference -->|"returns annotated frame"| node_pose_overlay
node_streamlit_app -->|"displays result"| node_user
node_camera -->|"provides frames"| node_webcam_pose
node_webcam_pose -->|"processes frames"| node_mediapipe
node_webcam_pose -->|"shows annotated video"| node_user
node_static_pose -->|"processes image"| node_mediapipe
node_static_pose -->|"shows landmarks"| node_user

click node_image_ops "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/01.py"
click node_image_save "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/02.py"
click node_image_inspect "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/03.py"
click node_image_resize "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/04.py"
click node_image_rotate "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/05.py"
click node_image_draw "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/06.py"
click node_image_text "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/07.py"
click node_streamlit_app "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/estimation_app.py"
click node_image_input "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/estimation_app.py"
click node_pose_inference "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/estimation_app.py"
click node_pose_overlay "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/estimation_app.py"
click node_tf_model "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/graph_opt.pb"
click node_webcam_pose "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/video_pose_est.py"
click node_static_pose "https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/MediaPipe.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_image_ops,node_image_save,node_image_inspect,node_image_resize,node_image_rotate,node_image_draw,node_image_text,node_user toneBlue
class node_streamlit_app,node_image_input,node_pose_inference,node_pose_overlay,node_webcam_pose,node_static_pose toneAmber
class node_tf_model,node_mediapipe toneMint
class node_camera toneIndigo
```

## Components

### Image Processing Examples

- [Color and Channels](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/01.py): `01.py`
- [Grayscale Save](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/02.py): `02.py`
- [Image Dimensions](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/03.py): `03.py`
- [Image Resize](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/04.py): `04.py`
- [Image Rotation](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/05.py): `05.py`
- [Shape Drawing](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/06.py): `06.py`
- [Text Overlay](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/07.py): `07.py`

### Pose Estimation Demos

- [Image Pose App](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/estimation_app.py): `estimation_app.py`
- [Image Input](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/estimation_app.py): `estimation_app.py`
- [Pose Inference](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/estimation_app.py): `estimation_app.py`
- [Keypoint Overlay](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/estimation_app.py): `estimation_app.py`
- [Webcam Pose Demo](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/video_pose_est.py): `video_pose_est.py`
- [Static Image Demo](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/MediaPipe.py): `MediaPipe.py`

### Pose Runtime

- [TensorFlow Model](https://github.com/arijit2003/human-pose-estimation-using-machine-learning/blob/main/graph_opt.pb): `graph_opt.pb`
- **MediaPipe Pose**

### Other components

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

## Connections

- User → Image Pose App: uploads image (evidence: `estimation_app.py`)
- Image Pose App → Image Input: selects image (evidence: `estimation_app.py`)
- Image Input → Pose Inference: passes image (evidence: `estimation_app.py`)
- Pose Inference → TensorFlow Model: loads model (evidence: `estimation_app.py`)
- Pose Inference → Keypoint Overlay: returns annotated frame (evidence: `estimation_app.py`)
- Image Pose App → User: displays result (evidence: `estimation_app.py`)
- Webcam → Webcam Pose Demo: provides frames (evidence: `video_pose_est.py`)
- Webcam Pose Demo → MediaPipe Pose: processes frames (evidence: `video_pose_est.py`)
- Webcam Pose Demo → User: shows annotated video (evidence: `video_pose_est.py`)
- Static Image Demo → MediaPipe Pose: processes image (evidence: `MediaPipe.py`)
- Static Image Demo → User: shows landmarks (evidence: `MediaPipe.py`)
