Garvit Chaudhary
Back to work

Crop Disease Detection — CNN Leaf Classifier

Computer Vision

A CNN classifies plant disease from a leaf image in seconds, with three disease-specific prevention tips per prediction.

Source available · Not hosted

Python TensorFlow/Keras OpenCV Django HTML/CSS

// Problem

Diagnosing crop disease from a leaf means manual visual inspection of symptoms — slow and easy to get wrong. Upload a photo instead and get a classified disease with confidence in seconds.

// How I solved it

  • Built a Django web application around a CNN classifier: a user uploads a leaf photo and receives the predicted disease plus confidence in under two seconds — replacing manual visual inspection of symptoms.
  • Trained and evaluated the CNN on a labelled crop-image dataset; preprocessing (resize, normalisation, augmentation) to hold accuracy on unseen leaves.
  • Paired every prediction with three disease-specific prevention tips, so the output is actionable advice rather than a bare label.

// Features

  • Django web app around the CNN — upload a leaf photo, get disease class plus confidence.
  • Preprocessing pipeline — resize, normalisation, augmentation — to hold accuracy on unseen leaves.
  • Three disease-specific prevention tips attached to every prediction.
  • Browser upload form as the single input; result panel shows class, confidence and tips.

// Result

Leaf photo to predicted disease plus confidence in under two seconds — replacing manual visual inspection — with three disease-specific prevention tips attached to every prediction.

Stack
Python · TensorFlow/Keras · OpenCV · Django · HTML/CSS
Status
Source available · Not hosted
Repository
github.com/Garvit-Chaudhary/…

Notes: CNN built with TensorFlow/Keras; OpenCV used for image handling. Not hosted as a live product — clone the repository for source and setup instructions.

// Media

Crop disease detection home page with navigation and a three-step How It Works section describing upload, analysis and results.
01 · Home — three steps from leaf photo to treatment recommendation.
Poster frame: crop disease detection home page.
Screen recording · detection flow 14.1 MB · loads on demand