A production-ready Flutter mobile application that helps African farmers detect plant diseases using AI by simply taking a photo of a plant leaf.
# CropCare AI - Smart Plant Disease Detector
A production-ready Flutter mobile application that helps African farmers detect plant diseases using AI by simply taking a photo of a plant leaf.
## Features
| Feature | Description |
|---------|-------------|
| 📸 Image Capture | Take photos with camera or select from gallery |
| 🤖 AI Detection | Instant disease identification using TensorFlow Lite |
| 🌿 Treatment | Detailed causes, treatments, and prevention tips |
| 📴 Offline Mode | Works without internet using local ML model |
| 🌐 Multi-language | English and Swahili support |
| 🔊 Voice Output | Text-to-speech for results |
| 💾 History | Track your plant scans over time |
## Supported Crops & Diseases
- **Tomato**: Leaf Blight, Leaf Curl Virus, Bacterial Spot
- **Potato**: Late Blight, Blackleg
- **Maize**: Leaf Blight, Rust
- **Coffee**: Leaf Rust
- **Healthy Plant** detection
---
## Quick Start
### 1. Install Flutter
```bash
# Windows (PowerShell)
iwr
storage.googleapis.com -OutFile flutter.zip
Expand-Archive flutter.zip -DestinationPath C:\Flutter
$env:PATH += ";C:\Flutter\bin"
# macOS
brew install flutter
# Linux
git clone
github.com -b stable ~/flutter
export PATH="$PATH:$HOME/flutter/bin"
```
### 2. Run the App
```bash
# Navigate to project
cd cropcare_ai
# Get dependencies
flutter pub get
# Run debug build
flutter run
```
---
## Building APK
```bash
# Debug APK
flutter build apk --debug
# Release APK (recommended for distribution)
flutter build apk --release --obfuscate --split-per-abi
```
The APK will be at: `build/app/outputs/flutter-apk/app-release.apk`
---
## Adding TensorFlow Lite Model
The app includes a **mock prediction system** for demo purposes. To add real disease detection:
1. **Train a model** using PlantVillage dataset
2. **Convert to TFLite** format
3. **Place** `plant_disease_model.tflite` in `assets/models/` …