How akash-xcoder/iris works
yooolo is a browser-based vision and accessibility app: camera or image frames are analyzed locally for objects and walls, then surfaced as overlays and readouts. The source also contains indoor room guidance, route teaching/following, outdoor turn-by-turn navigation, and fall alerts. The graph preserves those distinct user-facing stages alongside the documented YOLO inference engine. Some connections rely on README statements or module references because the relevant source was not excerpted; uncertain links are omitted.
Main entry points: App.tsx App shell · HomeGuide.tsx Home guide · Viewport.tsx Camera viewport · FallAlert.tsx Fall alert
Components 26
App and vision
- App shell
src/App.tsx - Camera viewport
src/Viewport.tsx - Auto torch
src/camera/torch.ts
YOLO inference
- Detection overlays
src/yolo/draw.ts - Model runner
src/yolo/model.ts - Inference worker
src/yolo/worker.ts - Model fetch
src/yolo/fetchModel.ts - Output decoding
src/yolo/postprocess.ts - Model manifest
public/models/manifest.json - ONNX weights
public/models/yolo26n.onnx - Wall model
public/models/yolo26n-sem-ade20k.onnx
Indoor guidance
- Home guide
src/home/HomeGuide.tsx - Room recognition
src/home/rooms.ts - Step tracking
src/home/pdr.ts - Saved home routes
src/home/routes.ts
Navigation
- Trip navigation
src/navigation/Navigation.tsx - Route planning
src/navigation/route.ts - Hazard detection
src/navigation/hazards.ts - Speech interface
src/navigation/voice.ts - Voice reply hook
src/navigation/useVoiceReply.ts
Fall safety
- Fall monitoring
src/safety/fall.ts - Fall alert
src/safety/FallAlert.tsx - Family settings
src/safety/FamilySettings.tsx - Emergency contacts
src/safety/contacts.ts
Other components
- User
- Google Routes API
Connections 29
- User → App shell: uses
README.md - App shell → Camera viewport: renders
src/App.tsx - Camera viewport → Model runner: runs frames
README.md - Camera viewport → Auto torch: starts
src/Viewport.tsx - Camera viewport → Detection overlays: draws results
src/Viewport.tsx - App shell → Detection overlays: reads coverage
src/App.tsx - App shell → Model manifest: loads models
README.md - Model manifest → ONNX weights: lists model
- Model manifest → Wall model: lists model
- Model runner → Inference worker: runs in
README.md - Inference worker → Model fetch: fetches weights
src/yolo/worker.ts - Inference worker → Output decoding: decodes output
src/yolo/worker.ts - App shell → Home guide: renders
src/App.tsx - Home guide → Room recognition: recognizes rooms
src/home/HomeGuide.tsx - Home guide → Step tracking: tracks walking
src/home/HomeGuide.tsx - Home guide → Saved home routes: loads and saves
src/home/HomeGuide.tsx - Home guide → Hazard detection: announces hazards
src/home/HomeGuide.tsx - Home guide → Voice reply hook: listens for replies
src/home/HomeGuide.tsx - Voice reply hook → Speech interface: listens through
src/navigation/useVoiceReply.ts - App shell → Trip navigation: renders
src/App.tsx - Trip navigation → Route planning: plans trips
src/navigation/Navigation.tsx - Route planning → Google Routes API: requests route
src/navigation/route.ts - App shell → Fall monitoring: starts monitoring
src/App.tsx - App shell → Fall alert: shows alert
src/App.tsx - App shell → Family settings: renders
src/App.tsx - Fall alert → Voice reply hook: listens for response
src/safety/FallAlert.tsx - Fall alert → Speech interface: speaks prompts
src/safety/FallAlert.tsx - Fall alert → Emergency contacts: loads recipients
src/safety/FallAlert.tsx - Family settings → Emergency contacts: manages contacts
src/safety/FamilySettings.tsx