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/
- π· 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
- HTML5, CSS3, JavaScript
- TensorFlow.js (via CDN)
- Teachable Machine Image Model
- Responsive design with flexbox and media queries
- Click Camera to activate webcam or Upload to select a leaf image.
- The model runs the prediction in-browser.
- Get real-time results with class labels and probability.
You can run the app by opening index.html in a browser.
Optional: Host it via GitHub Pages for public access.
LeafGuard/
β
βββ index.html # Main application page
βββ style.css # All UI and layout styles
βββ script.js # JavaScript logic with TensorFlow integration
Model URL:
https://teachablemachine.withgoogle.com/models/UAIniK_gb/
Classes:
- Healthy
- Powdery
- Rust
- π Add support for more plant types and diseases
- π± Progressive Web App (PWA) support
- π Multilingual UI
- Teachable Machine by Google
- TensorFlow.js
- Unsplash for background images