Skip to content

Dbriane208/LeafGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

🌿 LeafGuard

LeafGuard is an AI-powered mobile application designed to help users detect apple plant diseases using image classification. By leveraging machine learning and deep learning, the app provides accurate predictions along with confidence scores and recommended measures for apple plant health management. The supported diseases trained on are Apple Scab, Apple Black rot and Apple Cedar Rust.


🚀 Features

  • 📷 Image Upload: Users can upload or capture images of plant leaves for disease detection.
  • 🤖 AI-Powered Predictions: Uses a trained deep learning model to identify plant diseases.
  • 📊 Confidence Score: Displays the accuracy level of predictions.
  • 💡 Recommended Measures: Provides actionable steps to manage and prevent plant diseases.
  • 🎮 User-Friendly UI: Designed with an intuitive and modern interface using Flutter.

🧑‍💻 Tech Stack

  • Frontend: Flutter (Dart)
  • Backend: FastAPI (Python)
  • Machine Learning: TensorFlow h5 Model
  • Artificial Intelligence: Google Gemini

📸 Screenshots

intro home diseases upload prediction

👥 Installation & Setup

Prerequisites

Clone the Repository

git clone https://github.com/Dbriane208/LeafGuard.git
cd LeafGuard/leafguard

Install Dependencies

flutter pub get

Run the App

flutter run

For backend setup: To get the backend project follow this link

cd backend
pip install -r requirements.txt
uvicorn main:app --reload

🔬 Model & API Integration

LeafGuard utilizes a deep learning model optimized for mobile using TensorFlow Lite. The backend API processes image uploads and returns predictions in JSON format:

api
{
  "predictedClass": "Apple Black Rot",
  "confidence": 0.99999,
  "symptoms": "Brown spots with yellow halos",
  "measures": "Use fungicides and remove affected leaves"
}

📝 License

This project is licensed under the MIT License.


🤝 Contributing

We welcome contributions! To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-name).
  3. Make your changes and commit (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-name).
  5. Open a Pull Request.

📩 Contact

For inquiries, reach out via email: 📧 db9755949@gmail.com

Or connect on LinkedIn: Daniel Brian Gatuhu


🌟 If you like this project, don't forget to give it a star on GitHub! 🌟

About

A user-friendly mobile app that integrates the LeafGuard CNN model for real-time plant disease classification. Capture or upload leaf images to receive immediate, actionable plant health insights.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors