Skip to content

Err-rr/LeafGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌿 LeafGuard β€” AI-Based Plant Disease Detection

LeafGuard is a powerful, browser-based web application that uses a Teachable Machine image model (TensorFlow.js) to detect plant leaf diseases in real time. Users can analyze leaves using either a webcam or by uploading images. The interface is clean, responsive, and fully functional without any backend.


https://leafguard.netlify.app/


πŸš€ Features

  • πŸ“· Detect diseases via webcam or image upload
  • πŸ€– Built using TensorFlow.js and Teachable Machine
  • 🌱 Identifies conditions like:
    • Healthy
    • Powdery Mildew
    • Rust
  • πŸ“Š Visual result cards with icons and probability
  • πŸ’» Responsive UI with drag & drop support

πŸ› οΈ Technologies Used

  • HTML5, CSS3, JavaScript
  • TensorFlow.js (via CDN)
  • Teachable Machine Image Model
  • Responsive design with flexbox and media queries

πŸ“Έ How It Works

  1. Click Camera to activate webcam or Upload to select a leaf image.
  2. The model runs the prediction in-browser.
  3. Get real-time results with class labels and probability.

πŸ”— Live Demo

You can run the app by opening index.html in a browser.
Optional: Host it via GitHub Pages for public access.


πŸ“ Folder Structure

LeafGuard/
β”‚
β”œβ”€β”€ index.html         # Main application page
β”œβ”€β”€ style.css          # All UI and layout styles
└── script.js          # JavaScript logic with TensorFlow integration

🧠 Model Info

Model URL:
https://teachablemachine.withgoogle.com/models/UAIniK_gb/

Classes:

  • Healthy
  • Powdery
  • Rust

πŸ§ͺ Future Enhancements

  • 🌍 Add support for more plant types and diseases
  • πŸ“± Progressive Web App (PWA) support
  • 🌐 Multilingual UI

πŸ™Œ Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors