{"id":25227868,"url":"https://github.com/dbriane208/leafguard","last_synced_at":"2026-04-11T14:35:28.765Z","repository":{"id":276315114,"uuid":"928529244","full_name":"Dbriane208/LeafGuard","owner":"Dbriane208","description":"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.","archived":false,"fork":false,"pushed_at":"2025-02-26T10:34:12.000Z","size":6499,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T13:16:20.423Z","etag":null,"topics":["api-integration","dart","firebase","flutter","mobile-development","statemanagement","ui-design"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dbriane208.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-06T19:24:27.000Z","updated_at":"2025-02-26T10:34:15.000Z","dependencies_parsed_at":"2025-02-09T18:28:25.805Z","dependency_job_id":null,"html_url":"https://github.com/Dbriane208/LeafGuard","commit_stats":null,"previous_names":["dbriane208/flutter","dbriane208/leafguard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dbriane208%2FLeafGuard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dbriane208%2FLeafGuard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dbriane208%2FLeafGuard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dbriane208%2FLeafGuard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dbriane208","download_url":"https://codeload.github.com/Dbriane208/LeafGuard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339154,"owners_count":20923014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-integration","dart","firebase","flutter","mobile-development","statemanagement","ui-design"],"created_at":"2025-02-11T09:12:50.678Z","updated_at":"2025-12-30T23:07:05.271Z","avatar_url":"https://github.com/Dbriane208.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌿 LeafGuard\n\nLeafGuard 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.\n\n---\n\n## 🚀 Features\n\n- 📷 **Image Upload:** Users can upload or capture images of plant leaves for disease detection.\n- 🤖 **AI-Powered Predictions:** Uses a trained deep learning model to identify plant diseases.\n- 📊 **Confidence Score:** Displays the accuracy level of predictions.\n- 💡 **Recommended Measures:** Provides actionable steps to manage and prevent plant diseases.\n- 🎮 **User-Friendly UI:** Designed with an intuitive and modern interface using Flutter.\n\n---\n\n## 🧑‍💻 Tech Stack\n\n- **Frontend:** Flutter (Dart)\n- **Backend:** FastAPI (Python)\n- **Machine Learning:** TensorFlow h5 Model\n- **Artificial Intelligence:** Google Gemini\n\n---\n\n## 📸 Screenshots\n\n\u003cdiv style=\"display:flex;\"\u003e\n    \u003cimg src=\"https://github.com/Dbriane208/LeafGuard/blob/main/leafguard/assets/screenshots/intro.png\" alt=\"intro\" width=\"200\"/\u003e\n    \u003cimg src=\"https://github.com/Dbriane208/LeafGuard/blob/main/leafguard/assets/screenshots/home.png\" alt=\"home\" width=\"200\"/\u003e\n    \u003cimg src=\"https://github.com/Dbriane208/LeafGuard/blob/main/leafguard/assets/screenshots/diseases.png\" alt=\"diseases\" width=\"200\"/\u003e\n    \u003cimg src=\"https://github.com/Dbriane208/LeafGuard/blob/main/leafguard/assets/screenshots/imageupload.png\" alt=\"upload\" width=\"200\"\u003e\n    \u003cimg src=\"https://github.com/Dbriane208/LeafGuard/blob/main/leafguard/assets/screenshots/prediction.png\" alt=\"prediction\" width=\"200\"\u003e\n\u003c/div\u003e\n\n---\n\n## 👥 Installation \u0026 Setup\n\n### Prerequisites\n\n- Flutter SDK installed ([Download Flutter](https://flutter.dev/docs/get-started/install))\n- Python installed ([Download Python](https://www.python.org/downloads/))\n\n### Clone the Repository\n\n```sh\ngit clone https://github.com/Dbriane208/LeafGuard.git\ncd LeafGuard/leafguard\n```\n\n### Install Dependencies\n\n```sh\nflutter pub get\n```\n\n### Run the App\n\n```sh\nflutter run\n```\n\nFor backend setup:\nTo get the backend project follow this [link](https://github.com/Dbriane208/LeafGuard-Model.git)\n\n```sh\ncd backend\npip install -r requirements.txt\nuvicorn main:app --reload\n```\n\n---\n\n## 🔬 Model \u0026 API Integration\n\nLeafGuard utilizes a deep learning model optimized for mobile using TensorFlow Lite. The backend API processes image uploads and returns predictions in JSON format:\n\n\u003cdiv style=\"display:flex;\"\u003e\n    \u003cimg src=\"https://github.com/Dbriane208/LeafGuard/blob/main/leafguard/assets/screenshots/api.png\" alt=\"api\" /\u003e\n\u003c/div\u003e\n\n```json\n{\n  \"predictedClass\": \"Apple Black Rot\",\n  \"confidence\": 0.99999,\n  \"symptoms\": \"Brown spots with yellow halos\",\n  \"measures\": \"Use fungicides and remove affected leaves\"\n}\n```\n\n---\n\n## 📝 License\n\nThis project is licensed under the **MIT License**.\n\n---\n\n## 🤝 Contributing\n\nWe welcome contributions! To contribute:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-name`).\n3. Make your changes and commit (`git commit -m 'Add new feature'`).\n4. Push to the branch (`git push origin feature-name`).\n5. Open a Pull Request.\n\n---\n\n## 📩 Contact\n\nFor inquiries, reach out via email:\n📧 **db9755949@gmail.com**\n\nOr connect on LinkedIn: [Daniel Brian Gatuhu](https://www.linkedin.com/in/daniel-brian-gatuhu/)\n\n---\n\n🌟 If you like this project, don't forget to give it a star on GitHub! 🌟\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbriane208%2Fleafguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbriane208%2Fleafguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbriane208%2Fleafguard/lists"}