Computer vision for ghanaian cedis
# Ghana Cedi Vision — Accessible Banknote Denomination Reader
Developed for the **Ghana Federation of Disability Organizations (GFD) – Accra Secretariat**.
Ghana Cedi Vision is a mobile-first, computer vision and speech-enabled assistive web application built to empower blind and visually impaired individuals in Ghana to independently recognize, verify, and count Ghana Cedi (GH₵) banknotes in daily commerce and financial transactions.
---
## 1. System Architecture
```
┌─────────────────────────────────────────────────────────────────────────────┐
│ FRONTEND (React + Vite) │
│ │
│ [Camera Stream (Rear-facing)] ───► [Canvas 768px Frame Capture] │
│ │ (Base64 JPEG) │
│ ▼ │
│ [Web Audio Earcons Synthesizer] ◄── [Backend API Proxy: /api/recognize-cedi]
│ [Web Speech SpeechSynthesis] ◄── [Parsed Structured JSON Response] │
│ [Vibration API Haptic Feedback] ◄── [High / Medium / Low Confidence] │
│ [Web Speech Voice Commands] ──► ["Scan", "Repeat", "Torch", "Total"] │
└─────────────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ BACKEND SERVER (Express.js) │
│ │
│ • Node.js / Express proxy endpoint (/api/recognize-cedi) │
│ • Secure server-side GEMINI_API_KEY handling │
│ • Google GenAI SDK (@google/genai) │
│ • Model: gemini-2.5-flash (multimodal vision + structured JSON output) │
└──────────────────────────────────────────────────────────────────────────── …