How yashrajsahu44/saarthi works
SAARTHI is an accessibility web application whose flagship SEE workflow helps a user inspect a view through object detection, OCR/document reading, scene description, and visual Q&A. The tree and excerpts show browser-local detector/OCR engines and backend scene/VQA services; the README documents EXPRESS AAC and SPEAK captions/sound alerts. UI-module wiring and those latter feature implementations were not sampled, so their internal links are omitted. Chotuu is documented, but no corresponding source path appears in the supplied tree.
Main entry points: App.tsx Application shell · vqa/service.py Visual Q&A · SeeView.tsx SEE workspace · scene/service.py Scene description
Components 32
Accessible client
- Application shell
frontend/src/App.tsx - SEE workspace
frontend/src/modules/see/SeeView.tsx - EXPRESS AAC
frontend/src/modules/express/ExpressView.tsx - SPEAK captions
frontend/src/modules/speak/SpeakView.tsx - Home navigation
frontend/src/modules/home/HomeView.tsx - Accessibility settings
frontend/src/modules/settings/SettingsView.tsx - Camera capture
frontend/src/core/camera/CameraManager.ts - Speech synthesis
frontend/src/core/speech/SpeechSynthesizer.ts - Microphone capture
frontend/src/core/audio/AudioManager.ts
SEE vision
- Object detection
frontend/src/core/detector/DetectorEngine.ts - COCO labels
frontend/src/core/detector/cocoClasses.ts - Detector lifecycle
frontend/src/core/detector/useDetector.ts - OCR recognition
frontend/src/core/ocr/OCREngine.ts
SEE services
- SEE API routes
backend/app/api/v1/see.py - Scene description
backend/app/services/scene/service.py - BLIP captioning
backend/app/services/scene/blip_describer.py - Cloud vision
backend/app/services/scene/cloud_vision.py - Heuristic captioning
backend/app/services/scene/heuristic_describer.py - Scene translation
backend/app/services/scene/translator.py - Scene contract
backend/app/schemas/scene.py - Visual Q&A
backend/app/services/vqa/service.py - BLIP visual Q&A
backend/app/services/vqa/blip_vqa.py - Cloud visual Q&A
backend/app/services/vqa/cloud_vqa.py - Q&A guardrails
backend/app/services/vqa/guardrails.py - Heuristic Q&A
backend/app/services/vqa/heuristic_vqa.py - Answer translation
backend/app/services/vqa/translator.py - Q&A contract
backend/app/schemas/vqa.py
Backend platform
- API router
backend/app/api/v1/router.py - FastAPI application
backend/app/main.py - Async database
backend/app/core/database.py - Runtime configuration
backend/app/core/config.py
Other components
- Accessibility user
Connections 33
- Accessibility user → Application shell: opens
- Application shell → SEE workspace: offers module
- Application shell → EXPRESS AAC: offers module
- Application shell → SPEAK captions: offers module
- Application shell → Home navigation: offers navigation
- Application shell → Accessibility settings: offers settings
- SEE workspace → Camera capture: captures view
- Object detection → COCO labels: uses labels
frontend/src/core/detector/DetectorEngine.ts - Detector lifecycle → Object detection: runs inference
frontend/src/core/detector/useDetector.ts - SEE workspace → Detector lifecycle: uses detection
- SEE workspace → OCR recognition: reads documents
- SEE workspace → SEE API routes: requests scene
- SEE API routes → Scene description: requests description
backend/app/api/v1/see.py - SEE API routes → Visual Q&A: requests answer
backend/app/api/v1/see.py - Scene description → Cloud vision: tries cloud
backend/app/services/scene/service.py - Scene description → BLIP captioning: selects provider
backend/app/services/scene/service.py - Scene description → Heuristic captioning: falls back
backend/app/services/scene/service.py - Scene description → Scene contract: returns payload
backend/app/services/scene/service.py - Visual Q&A → Q&A guardrails: checks question
backend/app/services/vqa/service.py - Visual Q&A → Cloud visual Q&A: tries cloud
backend/app/services/vqa/service.py - Visual Q&A → BLIP visual Q&A: selects provider
backend/app/services/vqa/service.py - Visual Q&A → Heuristic Q&A: falls back
backend/app/services/vqa/service.py - Visual Q&A → Q&A contract: returns payload
backend/app/services/vqa/service.py - BLIP captioning → Scene translation: translates output
backend/app/services/scene/blip_describer.py - Cloud vision → Scene translation: translates output
backend/app/services/scene/cloud_vision.py - BLIP visual Q&A → Answer translation: translates answer
backend/app/services/vqa/blip_vqa.py - Cloud visual Q&A → Answer translation: translates answer
backend/app/services/vqa/cloud_vqa.py - FastAPI application → API router: mounts routes
backend/app/main.py - API router → SEE API routes: registers routes
backend/app/api/v1/router.py - FastAPI application → Async database: initializes lifecycle
backend/app/main.py - Async database → Runtime configuration: reads settings
backend/app/core/database.py - EXPRESS AAC → Speech synthesis: speaks phrases
- SPEAK captions → Microphone capture: captures speech