Skip to content

About

This is a full stack web app, which Includes Frontend (HTMLCSS,JS), Backend(Flask), Machine Learning Model, Artificial Intelligence(Gemini), Firebase(Google)

Topics

Resources

Code of conduct

Stars

16 stars

Watchers

0 watching

Forks

Repository files navigation

🌱 AI Crop Doctor

Typing Animation


📖 About the Project

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.

How it works

  1. Upload an image of your plant or leaf (drag-and-drop or click to select)
  2. Answer a few simple questions about symptoms and conditions
  3. Receive a confidence-based disease diagnosis and actionable recommendations

Key Highlights

  • 📸 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

🧑‍🌾 Step-by-Step Usage Guide

Follow these simple steps to use AI Crop Doctor effectively:

  1. Open the AI Crop Doctor web application in your browser.
  2. Upload a clear image of the affected plant leaf using drag-and-drop or file selection.
  3. Ensure the image is well-lit and focused for accurate analysis.
  4. Click on the Analyze Image button to start the diagnosis.
  5. Answer the follow-up questions related to plant condition and symptoms.
  6. Wait a few seconds while the AI processes the image.
  7. View the detected disease along with confidence score and treatment recommendations.

🗂 Project Structure

📁 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

⚡ Installation & Setup

  1. Clone the repository:
git clone https://github.com/your-username/ai-crop-disease-detection-agent.git

cd ai-crop-disease-detection-agent
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
python app.py
  1. 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

Wave Animation

About

This is a full stack web app, which Includes Frontend (HTMLCSS,JS), Backend(Flask), Machine Learning Model, Artificial Intelligence(Gemini), Firebase(Google)

Topics

Resources

Code of conduct

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages