AI Crop Doctor is an AI-powered web application that helps farmers, gardeners, and agricultural experts identify plant diseases from leaf images. By combining machine learning image analysis with context-based follow-up questions, it delivers accurate diagnoses and practical treatment suggestions.
- Upload an image of your plant or leaf (drag-and-drop or click to select)
- Answer a few simple questions about symptoms and conditions
- Receive a confidence-based disease diagnosis and actionable recommendations
- 📸 AI Image Recognition for plant disease detection
- 🧭 Interactive Q&A for improved accuracy
- 📊 Confidence Scores for transparency
- 📱 Fully Responsive and mobile-friendly design
- 🎯 Actionable Recommendations to help protect crops
Follow these simple steps to use AI Crop Doctor effectively:
- Open the AI Crop Doctor web application in your browser.
- Upload a clear image of the affected plant leaf using drag-and-drop or file selection.
- Ensure the image is well-lit and focused for accurate analysis.
- Click on the Analyze Image button to start the diagnosis.
- Answer the follow-up questions related to plant condition and symptoms.
- Wait a few seconds while the AI processes the image.
- View the detected disease along with confidence score and treatment recommendations.
📁 ai-crop-disease-detection-agent/
│__📄 app.py
│__📄 class_indices.json
│__📄 crop_diagnosis_best_model.tflite
│__📄 README.md
│__📄 requirements.txt
│__📄 .gitattributes
│__📄 .gitignore
│
├───📁 static/
│ ├───📁 css/
│ │ |___📄 style.css
│ ├───📁 images/
│ │ |___📄 apple_black-rot.JPG
│ │ |___📄 apple_cedar_rust.JPG
│ │ |___📄 apple_healthy.JPG
│ │ |___... 📄 (35 more sample images)
│ └───📁 js/
│ | |___📄 history.js
│ | |___📄 main.js
│ | |___📄 user_guide.js
| | |___📄 auth.js
| | |___📄 user_guide.js
| | |___📄 emergency.js
│
└───📁 templates/
| |___📄 history.html
| |___📄 index.html
| |___📄 tools.html
| |___📄 user_guide.html- Clone the repository:
git clone https://github.com/your-username/ai-crop-disease-detection-agent.git
cd ai-crop-disease-detection-agent- Install dependencies:
pip install -r requirements.txt- Run the application:
python app.py- Open your browser and go to:
http://127.0.0.1:5000🤝 Contributing
Contributions are welcome!
- Fork the repository
- Create a new branch
git checkout -b feature-name - Make your changes
- Push to your branch
git push origin feature-name - Open a Pull Request Read the CODE_OF_CONDUCT and Contribution for further details.
📄 License
This project is MIT licensed. View LICENSE