🌿 Shamba AI — AI-powered crop disease detection for Kenyan farmers. Upload a photo, get instant diagnosis, treatment steps & product recommendations. Works on 2G/3G.
# 🌿 Shamba AI — Crop Disease Detection
> **Detect crop diseases instantly. Save your harvest. Save your income.**
Shamba AI is a full-stack AI-powered crop disease detection platform built for Kenyan smallholder farmers. Point your phone at a sick leaf, get a diagnosis in seconds — treatment steps, product recommendations, and prevention tips included. Works on 2G/3G. No login required.
---
## 📸 Screenshots
Home — Crop Scanner
Dark Mode
Diagnosis Result Card
AI Chat Assistant
Admin Dashboard
OVERALL step Analysis
---
## ✨ Features
| Feature | Details |
|---|---|
| 🔍 **Instant AI Diagnosis** | Upload a leaf photo → disease name, confidence score & severity in seconds |
| 🧠 **Dual Inference Engine** | Local ONNX (MobileNetV2, PlantVillage) with Gemini Vision API fallback |
| 💬 **AI Chat Assistant** | Ask follow-up questions about your diagnosis in context |
| 📄 **PDF Report Export** | Save and share your diagnosis report |
| 🌍 **Bilingual — EN / SW** | Full English & Swahili UI, switchable mid-session |
| 🌙 **Dark Mode** | Deep black-green theme, preference persisted |
| 📱 **Mobile-First** | Optimised for low-end Android devices on 2G/3G |
| 🚫 **No Login Required** | Anonymous scanning — account optional for scan history |
| 👨💼 **Admin Dashboard** | Manage users, diseases, and view scan analytics |
| 📞 **Expert Connect** | KALRO hotline modal for escalating to human agronomists |
---
## 🦠 Supported Crops & Diseases
| Crop | Diseases Detected |
|---|---|
| 🌽 **Maize** | Lethal Necrosis (MLND), Gray Leaf Spot, Rust, Fall Armyworm |
| 🍅 **Tomato** | Early Blight, Late Blight, Bacterial Spot, Yellow Leaf Curl Virus |
| 🥬 **Kale (Sukuma Wiki)** | Black Rot, Downy Mildew, Aphids, Cabbage Worm |
| 🥔 **Potato** | Late Blight |
| 🧅 **Onion** | Purple Blotch |
| 🫘 **Beans** | Gemini Vision open-ended diagnosis |
> The Gemini Vision fallback can diagnose **any** visible disease, disorder, or pest damage — including physiological diso …