# uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app architecture

> Architecture diagram of the GitHub repository uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app, 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/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app
- Repository: https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app

## Overview

VisionMate is an accessibility-focused mobile app with two primary user workflows: spoken commands routed to assistant actions, and camera-based obstacle detection with audio feedback. The voice screen parses recognized speech and dispatches intents to service modules; the detector screen uses a custom native NCNN module. The supplied excerpts establish the voice dispatch and some service calls, but do not expose detector internals or most integrations, so those connections are omitted or marked unverified.

Main entry points: [`app/index.tsx`](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/app/index.tsx) (Voice command screen), [`app/obstacle-detector.tsx`](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/app/obstacle-detector.tsx) (Detector screen), [`modules/ncnn-detector/index.ts`](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/index.ts) (NCNN detector module), [`services/speechService.ts`](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/speechService.ts) (Speech feedback)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_assistant["Voice assistant"]
  node_voice_screen["Voice command screen<br/>[index.tsx]"]
  node_nlp["Intent parsing<br/>[nlp.ts]"]
  node_speech["Speech feedback<br/>[speechService.ts]"]
end

subgraph group_actions["Assistant actions"]
  node_calls["Contact calls<br/>[callService.ts]"]
  node_whatsapp["WhatsApp messages<br/>[whatsappService.ts]"]
  node_location["Location lookup<br/>[locationService.ts]"]
  node_navigation["Navigation"]
  node_battery["Battery status<br/>[batteryService.ts]"]
  node_launcher["App launching<br/>[appLauncher.ts]"]
  node_location_share["Location sharing<br/>[locationShare.ts]"]
  node_music["Music controls<br/>[musicService.ts]"]
  node_websearch["Web search<br/>[websearch.ts]"]
  node_intent["Intent service<br/>[intentService.ts]"]
end

subgraph group_detector["Obstacle detection"]
  node_detector_screen["Detector screen"]
  node_detector_module["NCNN detector module<br/>[index.ts]"]
  node_camera_view["Native camera view<br/>[NcnnCameraView.kt]"]
  node_native_detector["NCNN inference bridge"]
  node_ios_module["iOS detector module"]
  node_web_module["Web detector module"]
end

subgraph group_presentation["App presentation"]
  node_theme["Theme colors<br/>[theme.ts]"]
  node_theme_hook["Theme hook<br/>[use-theme-color.ts]"]
  node_color_scheme["Color scheme"]
end

node_user(("User"))
node_speech_recognition["Speech recognition"]
node_camera["Device camera"]
node_ncnn["NCNN runtime"]
node_device_actions["Phone capabilities"]

node_user -->|"speaks commands"| node_voice_screen
node_voice_screen -->|"recognizes speech"| node_speech_recognition
node_voice_screen -->|"parses commands"| node_nlp
node_voice_screen -->|"speaks responses"| node_speech
node_voice_screen -->|"dispatches calls"| node_calls
node_voice_screen -->|"dispatches messages"| node_whatsapp
node_voice_screen -->|"requests location"| node_location
node_voice_screen -->|"starts navigation"| node_navigation
node_voice_screen -->|"requests status"| node_battery
node_voice_screen -->|"dispatches launch"| node_launcher
node_voice_screen -->|"dispatches sharing"| node_location_share
node_voice_screen -->|"dispatches controls"| node_music
node_voice_screen -->|"dispatches search"| node_websearch
node_voice_screen -.->|"dispatches intents"| node_intent
node_user -.->|"opens detector"| node_detector_screen
node_detector_screen -->|"uses module"| node_detector_module
node_detector_screen -->|"speaks alerts"| node_speech
node_detector_screen -.->|"scans camera feed"| node_camera
node_detector_module -.->|"registers native view"| node_camera_view
node_camera_view -.->|"passes frames"| node_native_detector
node_native_detector -.->|"runs inference"| node_ncnn
node_detector_module -.->|"selects platform module"| node_ios_module
node_detector_module -.->|"selects platform module"| node_web_module
node_voice_screen -.->|"performs phone tasks"| node_device_actions
node_whatsapp -->|"speaks status"| node_speech
node_whatsapp -.->|"opens WhatsApp"| node_device_actions
node_calls -->|"speaks status"| node_speech
node_location -.->|"reads location"| node_device_actions
node_navigation -.->|"opens navigation"| node_device_actions
node_theme_hook -->|"reads colors"| node_theme
node_theme_hook -->|"reads scheme"| node_color_scheme

click node_voice_screen "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/app/index.tsx"
click node_nlp "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/utils/nlp.ts"
click node_speech "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/speechService.ts"
click node_calls "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/callService.ts"
click node_whatsapp "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/whatsappService.ts"
click node_location "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/locationService.ts"
click node_navigation "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/navigationService.ts"
click node_battery "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/batteryService.ts"
click node_launcher "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/appLauncher.ts"
click node_location_share "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/locationShare.ts"
click node_music "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/musicService.ts"
click node_websearch "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/websearch.ts"
click node_intent "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/intentService.ts"
click node_detector_screen "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/app/obstacle-detector.tsx"
click node_detector_module "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/index.ts"
click node_camera_view "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/android/src/main/java/expo/modules/ncnndetector/NcnnCameraView.kt"
click node_native_detector "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/android/src/main/cpp/ncnn_detector_jni.cpp"
click node_ios_module "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/ios/NcnnDetectorModule.swift"
click node_web_module "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/src/NcnnDetectorModule.web.ts"
click node_theme "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/constants/theme.ts"
click node_theme_hook "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/hooks/use-theme-color.ts"
click node_color_scheme "https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/hooks/use-color-scheme.ts"

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_voice_screen,node_nlp,node_speech,node_user toneBlue
class node_calls,node_whatsapp,node_location,node_navigation,node_battery,node_launcher,node_location_share,node_music,node_websearch,node_intent toneAmber
class node_detector_screen,node_detector_module,node_camera_view,node_native_detector,node_ios_module,node_web_module toneMint
class node_theme,node_theme_hook,node_color_scheme toneRose
class node_speech_recognition,node_camera,node_ncnn,node_device_actions toneIndigo
```

## Components

### Voice assistant

- [Voice command screen](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/app/index.tsx): `app/index.tsx`
- [Intent parsing](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/utils/nlp.ts): `utils/nlp.ts`
- [Speech feedback](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/speechService.ts): `services/speechService.ts`

### Assistant actions

- [Contact calls](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/callService.ts): `services/callService.ts`
- [WhatsApp messages](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/whatsappService.ts): `services/whatsappService.ts`
- [Location lookup](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/locationService.ts): `services/locationService.ts`
- [Navigation](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/navigationService.ts): `services/navigationService.ts`
- [Battery status](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/batteryService.ts): `services/batteryService.ts`
- [App launching](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/appLauncher.ts): `services/appLauncher.ts`
- [Location sharing](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/locationShare.ts): `services/locationShare.ts`
- [Music controls](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/musicService.ts): `services/musicService.ts`
- [Web search](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/websearch.ts): `services/websearch.ts`
- [Intent service](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/services/intentService.ts): `services/intentService.ts`

### Obstacle detection

- [Detector screen](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/app/obstacle-detector.tsx): `app/obstacle-detector.tsx`
- [NCNN detector module](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/index.ts): `modules/ncnn-detector/index.ts`
- [Native camera view](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/android/src/main/java/expo/modules/ncnndetector/NcnnCameraView.kt): `modules/ncnn-detector/android/src/main/java/expo/modules/ncnndetector/NcnnCameraView.kt`
- [NCNN inference bridge](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/android/src/main/cpp/ncnn_detector_jni.cpp): `modules/ncnn-detector/android/src/main/cpp/ncnn_detector_jni.cpp`
- [iOS detector module](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/ios/NcnnDetectorModule.swift): `modules/ncnn-detector/ios/NcnnDetectorModule.swift`
- [Web detector module](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/modules/ncnn-detector/src/NcnnDetectorModule.web.ts): `modules/ncnn-detector/src/NcnnDetectorModule.web.ts`

### App presentation

- [Theme colors](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/constants/theme.ts): `constants/theme.ts`
- [Theme hook](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/hooks/use-theme-color.ts): `hooks/use-theme-color.ts`
- [Color scheme](https://github.com/uday-kiran-tippani/smart_blind_assistance_system_visionmate_mobile_app/blob/main/hooks/use-color-scheme.ts): `hooks/use-color-scheme.ts`

### Other components

- **User**
- **Speech recognition**
- **Device camera**
- **NCNN runtime**
- **Phone capabilities**

## Connections

- User → Voice command screen: speaks commands (evidence: `app/index.tsx`)
- Voice command screen → Speech recognition: recognizes speech (evidence: `app/index.tsx`)
- Voice command screen → Intent parsing: parses commands (evidence: `app/index.tsx`)
- Voice command screen → Speech feedback: speaks responses (evidence: `app/index.tsx`)
- Voice command screen → Contact calls: dispatches calls (evidence: `app/index.tsx`)
- Voice command screen → WhatsApp messages: dispatches messages (evidence: `app/index.tsx`)
- Voice command screen → Location lookup: requests location (evidence: `app/index.tsx`)
- Voice command screen → Navigation: starts navigation (evidence: `app/index.tsx`)
- Voice command screen → Battery status: requests status (evidence: `app/index.tsx`)
- Voice command screen → App launching: dispatches launch (evidence: `app/index.tsx`)
- Voice command screen → Location sharing: dispatches sharing (evidence: `app/index.tsx`)
- Voice command screen → Music controls: dispatches controls (evidence: `app/index.tsx`)
- Voice command screen → Web search: dispatches search (evidence: `app/index.tsx`)
- Voice command screen → Intent service: dispatches intents
- User → Detector screen: opens detector
- Detector screen → NCNN detector module: uses module (evidence: `app/obstacle-detector.tsx`)
- Detector screen → Speech feedback: speaks alerts (evidence: `app/obstacle-detector.tsx`)
- Detector screen → Device camera: scans camera feed (evidence: `README.md`)
- NCNN detector module → Native camera view: registers native view
- Native camera view → NCNN inference bridge: passes frames
- NCNN inference bridge → NCNN runtime: runs inference
- NCNN detector module → iOS detector module: selects platform module
- NCNN detector module → Web detector module: selects platform module
- Voice command screen → Phone capabilities: performs phone tasks (evidence: `README.md`)
- WhatsApp messages → Speech feedback: speaks status (evidence: `services/whatsappService.ts`)
- WhatsApp messages → Phone capabilities: opens WhatsApp
- Contact calls → Speech feedback: speaks status (evidence: `services/callService.ts`)
- Location lookup → Phone capabilities: reads location
- Navigation → Phone capabilities: opens navigation
- Theme hook → Theme colors: reads colors (evidence: `hooks/use-theme-color.ts`)
- Theme hook → Color scheme: reads scheme (evidence: `hooks/use-theme-color.ts`)
