# dheemanthgowda00/navis architecture

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

- Interactive diagram: https://gitdiagram.com/dheemanthgowda00/navis
- Repository: https://github.com/dheemanthgowda00/navis

## Overview

NAVIS is a Raspberry Pi robotics project whose sampled runtime supports web-based manual control, camera-based person following, face recognition, and pose-angle tracking. The central user-to-result path is a person-following video loop: camera frames feed pose/depth analysis, which selects a motion command and publishes it over MQTT; a browser can view the stream and adjust thresholds or speed. The repository also has distinct manual-control and movement-analysis applications. Some capabilities are documented but their runtime paths are unsampled, so those branches are shown without speculative connections.

Main entry points: [`Base/Human_Detection_Following/app.py`](https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py) (Pose and depth), [`Computer_Vision/Face_Recognition/app.py`](https://github.com/dheemanthgowda00/navis/blob/main/Computer_Vision/Face_Recognition/app.py) (Face recognition app), [`Base/Human_Detection_Following/viewer.py`](https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/viewer.py) (Pose debug viewer), [`Base/Human_Detection_Following/templates/index.html`](https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/templates/index.html) (Follow controls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_following["Person Following"]
  node_follow_web["Follow web app<br/>[app.py]"]
  node_follow_ui["Follow controls<br/>[index.html]"]
  node_pose_depth["Pose and depth<br/>[app.py]"]
  node_follow_commands["Motion decisions<br/>[app.py]"]
  node_mqtt_publish["Command publisher<br/>[app.py]"]
  node_video_feed["Annotated video feed<br/>[app.py]"]
  node_debug_viewer["Pose debug viewer<br/>[viewer.py]"]
end

subgraph group_remote["Remote Control"]
  node_remote_app["Remote-control app<br/>[app.py]"]
  node_remote_ui["Control interface<br/>[index.html]"]
  node_mqtt_broker["MQTT broker"]
  node_mqtt_monitor["Command monitor<br/>[mqtt_monitor.py]"]
end

subgraph group_vision["Vision Recognition"]
  node_face_app["Face recognition app<br/>[app.py]"]
  node_face_match["Face encoding and match<br/>[simple_facerec.py]"]
  node_face_ui["Recognition pages<br/>[live.html]"]
  node_face_images[("Known-face images")]
end

subgraph group_movement["Movement Analysis"]
  node_movement_web["Movement web app<br/>[app.py]"]
  node_pose_gui["Pose-angle desktop app"]
  node_arduino_detector["Arduino pose detector"]
  node_arduino["Arduino board"]
end

node_user(("Robot operator"))
node_person(("Person in view"))
node_camera(("Camera"))

node_person -->|"appears before"| node_camera
node_camera -->|"provides frames"| node_pose_depth
node_pose_depth -->|"supplies position and depth"| node_follow_commands
node_follow_commands -->|"selects command"| node_mqtt_publish
node_mqtt_publish -->|"publishes MQTT"| node_mqtt_broker
node_follow_web -->|"serves stream"| node_video_feed
node_pose_depth -->|"annotates frames"| node_video_feed
node_user -->|"adjusts settings"| node_follow_ui
node_follow_ui -.->|"sends controls"| node_follow_web
node_debug_viewer -->|"reads frames"| node_camera
node_debug_viewer -.->|"implements similar analysis"| node_pose_depth
node_user -.->|"submits commands"| node_remote_ui
node_remote_ui -.->|"posts command"| node_remote_app
node_remote_app -->|"publishes MQTT"| node_mqtt_broker
node_mqtt_monitor -->|"subscribes to topic"| node_mqtt_broker
node_camera -->|"provides frames"| node_face_app
node_face_app -->|"loads known encodings"| node_face_match
node_face_match -->|"reads images"| node_face_images
node_face_app -->|"renders page"| node_face_ui
node_camera -.->|"provides frames"| node_movement_web
node_camera -.->|"provides frames"| node_pose_gui
node_camera -.->|"provides frames"| node_arduino_detector
node_arduino_detector -->|"sends PWM"| node_arduino
node_user -.->|"views tracking"| node_movement_web

click node_follow_web "https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py"
click node_follow_ui "https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/templates/index.html"
click node_pose_depth "https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py"
click node_follow_commands "https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py"
click node_mqtt_publish "https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py"
click node_video_feed "https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py"
click node_debug_viewer "https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/viewer.py"
click node_remote_app "https://github.com/dheemanthgowda00/navis/blob/main/Base/Remote_Control/app.py"
click node_remote_ui "https://github.com/dheemanthgowda00/navis/blob/main/Base/Remote_Control/templates/index.html"
click node_mqtt_monitor "https://github.com/dheemanthgowda00/navis/blob/main/Base/Remote_Control/mqtt_monitor.py"
click node_face_app "https://github.com/dheemanthgowda00/navis/blob/main/Computer_Vision/Face_Recognition/app.py"
click node_face_match "https://github.com/dheemanthgowda00/navis/blob/main/Computer_Vision/Face_Recognition/simple_facerec.py"
click node_face_ui "https://github.com/dheemanthgowda00/navis/blob/main/Computer_Vision/Face_Recognition/templates/live.html"
click node_face_images "https://github.com/dheemanthgowda00/navis/tree/main/Computer_Vision/Face_Recognition"
click node_movement_web "https://github.com/dheemanthgowda00/navis/blob/main/Movement/app.py"
click node_pose_gui "https://github.com/dheemanthgowda00/navis/blob/main/Movement/pose_angle_detector.py"
click node_arduino_detector "https://github.com/dheemanthgowda00/navis/blob/main/Movement/pose_angle_detector_arduino.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_follow_web,node_follow_ui,node_pose_depth,node_follow_commands,node_mqtt_publish,node_video_feed,node_debug_viewer,node_person toneBlue
class node_remote_app,node_remote_ui,node_mqtt_broker,node_mqtt_monitor toneAmber
class node_face_app,node_face_match,node_face_ui,node_face_images toneMint
class node_movement_web,node_pose_gui,node_arduino_detector,node_arduino toneRose
class node_user,node_camera toneIndigo
```

## Components

### Person Following

- [Follow web app](https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py): `Base/Human_Detection_Following/app.py`
- [Follow controls](https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/templates/index.html): `Base/Human_Detection_Following/templates/index.html`
- [Pose and depth](https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py): `Base/Human_Detection_Following/app.py`
- [Motion decisions](https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py): `Base/Human_Detection_Following/app.py`
- [Command publisher](https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py): `Base/Human_Detection_Following/app.py`
- [Annotated video feed](https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/app.py): `Base/Human_Detection_Following/app.py`
- [Pose debug viewer](https://github.com/dheemanthgowda00/navis/blob/main/Base/Human_Detection_Following/viewer.py): `Base/Human_Detection_Following/viewer.py`

### Remote Control

- [Remote-control app](https://github.com/dheemanthgowda00/navis/blob/main/Base/Remote_Control/app.py): `Base/Remote_Control/app.py`
- [Control interface](https://github.com/dheemanthgowda00/navis/blob/main/Base/Remote_Control/templates/index.html): `Base/Remote_Control/templates/index.html`
- **MQTT broker**
- [Command monitor](https://github.com/dheemanthgowda00/navis/blob/main/Base/Remote_Control/mqtt_monitor.py): `Base/Remote_Control/mqtt_monitor.py`

### Vision Recognition

- [Face recognition app](https://github.com/dheemanthgowda00/navis/blob/main/Computer_Vision/Face_Recognition/app.py): `Computer_Vision/Face_Recognition/app.py`
- [Face encoding and match](https://github.com/dheemanthgowda00/navis/blob/main/Computer_Vision/Face_Recognition/simple_facerec.py): `Computer_Vision/Face_Recognition/simple_facerec.py`
- [Recognition pages](https://github.com/dheemanthgowda00/navis/blob/main/Computer_Vision/Face_Recognition/templates/live.html): `Computer_Vision/Face_Recognition/templates/live.html`
- [Known-face images](https://github.com/dheemanthgowda00/navis/tree/main/Computer_Vision/Face_Recognition): `Computer_Vision/Face_Recognition`

### Movement Analysis

- [Movement web app](https://github.com/dheemanthgowda00/navis/blob/main/Movement/app.py): `Movement/app.py`
- [Pose-angle desktop app](https://github.com/dheemanthgowda00/navis/blob/main/Movement/pose_angle_detector.py): `Movement/pose_angle_detector.py`
- [Arduino pose detector](https://github.com/dheemanthgowda00/navis/blob/main/Movement/pose_angle_detector_arduino.py): `Movement/pose_angle_detector_arduino.py`
- **Arduino board**

### Other components

- **Robot operator**
- **Person in view**
- **Camera**

## Connections

- Person in view → Camera: appears before (evidence: `README.md`)
- Camera → Pose and depth: provides frames (evidence: `Base/Human_Detection_Following/app.py`)
- Pose and depth → Motion decisions: supplies position and depth (evidence: `Base/Human_Detection_Following/app.py`)
- Motion decisions → Command publisher: selects command (evidence: `Base/Human_Detection_Following/app.py`)
- Command publisher → MQTT broker: publishes MQTT (evidence: `README.md`)
- Follow web app → Annotated video feed: serves stream (evidence: `Base/Human_Detection_Following/app.py`)
- Pose and depth → Annotated video feed: annotates frames (evidence: `Base/Human_Detection_Following/app.py`)
- Robot operator → Follow controls: adjusts settings (evidence: `README.md`)
- Follow controls → Follow web app: sends controls
- Pose debug viewer → Camera: reads frames (evidence: `Base/Human_Detection_Following/viewer.py`)
- Pose debug viewer → Pose and depth: implements similar analysis
- Robot operator → Control interface: submits commands
- Control interface → Remote-control app: posts command
- Remote-control app → MQTT broker: publishes MQTT (evidence: `Base/Remote_Control/app.py`)
- Command monitor → MQTT broker: subscribes to topic (evidence: `Base/Remote_Control/mqtt_monitor.py`)
- Camera → Face recognition app: provides frames (evidence: `Computer_Vision/Face_Recognition/app.py`)
- Face recognition app → Face encoding and match: loads known encodings (evidence: `Computer_Vision/Face_Recognition/app.py`)
- Face encoding and match → Known-face images: reads images (evidence: `Computer_Vision/Face_Recognition/simple_facerec.py`)
- Face recognition app → Recognition pages: renders page (evidence: `Computer_Vision/Face_Recognition/app.py`)
- Camera → Movement web app: provides frames
- Camera → Pose-angle desktop app: provides frames
- Camera → Arduino pose detector: provides frames
- Arduino pose detector → Arduino board: sends PWM (evidence: `Movement/pose_angle_detector_arduino.py`)
- Robot operator → Movement web app: views tracking
