AI Crop Doctor for African Farmers
# πΎ AI Crop Doctor
AI-powered crop disease detection web application for Nigerian farmers. Detect diseases in Maize, Cassava, and Tomatoes with instant results and treatment recommendations in multiple local languages.
## β¨ Features
- π **AI-Powered Detection**: Advanced machine learning models for accurate disease identification
- πΈ **Image Upload & Camera**: Upload images or take photos directly from your device
- π **Multi-Language Support**: Available in English, Hausa, Yoruba, Igbo, and Pidgin English
- π **Treatment Recommendations**: Get expert treatment and prevention advice
- π **Detection History**: Track your past detections
- π¨ **Beautiful UI**: Modern, responsive design with smooth animations
- π± **Mobile-First**: Optimized for mobile devices
## π Quick Start
### Prerequisites
- Python 3.8+
- Node.js 18+
- npm or yarn
### Backend Setup
1. Navigate to the backend directory:
```bash
cd backend
```
2. Create a virtual environment:
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```
3. Install dependencies:
```bash
pip install -r requirements.txt
```
4. Create necessary directories:
```bash
mkdir -p models data
```
5. Run the backend server:
```bash
python main.py
```
The API will be available at `
localhost`
### Frontend Setup
1. Navigate to the frontend directory:
```bash
cd frontend
```
2. Install dependencies:
```bash
npm install
```
3. Start the development server:
```bash
npm run dev
```
The frontend will be available at `
localhost`
## π Project Structure
```
AI-Crop-Doctor/
βββ backend/
β βββ api/
β β βββ routes/ # API endpoints
β βββ models/ # ML model wrappers
β βββ services/ # Business logic
β βββ schemas/ # Pydantic models
β βββ utils/ # Utilities
β βββ main.py # FastAPI app
βββ frontend/
β βββ src/
β β βββ pages/ # React pages
β β βββ components/ # Re β¦