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.
- 📷 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.
- Frontend: Flutter (Dart)
- Backend: FastAPI (Python)
- Machine Learning: TensorFlow h5 Model
- Artificial Intelligence: Google Gemini
- Flutter SDK installed (Download Flutter)
- Python installed (Download Python)
git clone https://github.com/Dbriane208/LeafGuard.git
cd LeafGuard/leafguardflutter pub getflutter runFor backend setup: To get the backend project follow this link
cd backend
pip install -r requirements.txt
uvicorn main:app --reloadLeafGuard utilizes a deep learning model optimized for mobile using TensorFlow Lite. The backend API processes image uploads and returns predictions in JSON format:
{
"predictedClass": "Apple Black Rot",
"confidence": 0.99999,
"symptoms": "Brown spots with yellow halos",
"measures": "Use fungicides and remove affected leaves"
}This project is licensed under the MIT License.
We welcome contributions! To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name). - Make your changes and commit (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-name). - Open a Pull Request.
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! 🌟





