Advance ai technology to detect plant Disease in early stage and offer treatment advice in both English and Kinyarwanda
# AI Crop Doctor - Web Application
A powerful **web-only** plant disease detection system using AI and computer vision. Upload crop images to get instant disease diagnosis and treatment recommendations.
**π 100% Browser-Based** - No React Native dependencies, fully optimized for web browsers with TensorFlow.js client-side AI.
## π Features
- **πΈ Image Upload & Camera Capture** - Upload crop images or use device camera
- **π€ AI Disease Detection** - Powered by TensorFlow.js for client-side inference
- **π Treatment Recommendations** - Detailed advice for detected diseases
- **π Confidence Scoring** - AI prediction confidence levels
- **π± Mobile-Friendly** - Responsive design for all devices
- **π Analysis History** - Local storage of previous predictions
- **π¨ Modern UI/UX** - Clean, nature-inspired design with smooth animations
## π Quick Start
### Prerequisites
- **Node.js 16+** - Download here
- **npm** - Comes automatically with Node.js
### Installation Steps
1. **Get the project files:**
```bash
# Option A: Download and extract the project files
# Option B: Clone from Git repository
git clone [your-repository-url]
cd ai-crop-doctor
```
2. **Install all dependencies:**
```bash
npm install
```
If you encounter any errors:
```bash
# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install
```
3. **Start the development server:**
```bash
npm run dev
```
4. **Open in your browser:**
- Navigate to `
localhost`
- The app should load immediately!
### β
Verify Everything Works
- You should see the AI Crop Doctor interface
- Try uploading a test image
- The AI analysis should work (demo mode)
## π§ Configuration & Customization
### Adding New Plant Disease Classes
To add new plant disease classes, edit the disease labels and advice:
1. **Update Disease Labels** (`src/utils/diseaseModel.ts`):
```typescript
// To add new plant classes, edit this array...
export const DISEASE_LABELS = [
'Healthy',
'Early Blight',
'Late Blight', β¦