A simple crop health classification app using deep learning to identify diseases from leaf images of pepper, potato, and tomato crops.

Stars

3

7-day growth

No data

Forks

1

Open issues

0

License

Apache-2.0

Last updated

2026-07-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

Combines a pre-trained model with a user-friendly Streamlit interface for quick preliminary disease assessment, aimed at farmers with limited technical experience.

Who it is for

  • Farmers and agricultural workers
  • Agricultural extension officers
  • Students learning AI in agriculture
  • Hobbyist gardeners

Use cases

  • Upload a leaf photo to get immediate disease prediction
  • Preliminary crop health screening in the field
  • Educational tool for learning about crop diseases
  • Quick reference for common diseases in three key crops

Strengths

  • Supports 15 conditions across three important crops
  • Simple image upload and clear display of prediction and confidence
  • Basic image quality checks to improve results
  • Built with accessible technology (Streamlit) for easy deployment

Considerations

  • Only supports three crop types (pepper, potato, tomato)
  • Results are preliminary and not a substitute for expert advice
  • Requires clear, well-lit leaf photos for best accuracy
  • Educational/demo license may limit commercial use

README quick start

Agri Vision

Agri Vision is a simple crop health classification application that uses a pre-trained deep learning model to identify possible diseases from crop leaf images.

The application is designed to give farmers a quick preliminary assessment of crop health and provide simple guidance based on the detected condition.

All the work was done by me and my teammate, Ajohn, we just did it on the school computer so the PR was required.

https://github.com/user-attachments/assets/d34747e4-0481-42de-b469-03e264ff1c39

Features

  • Upload a crop leaf image
  • Detect possible crop diseases using a trained deep learning model
  • Supports pepper, potato, and tomato crops
  • Displays the detected crop
  • Displays the possible disease or healthy condition
  • Shows prediction confidence
  • Provides simple guidance based on the prediction
  • Checks basic image quality before analysis
  • Simple and accessible Streamlit interface

Supported Crops

Agri Vision currently supports:

  • Pepper Bell
  • Potato
  • Tomato

The model can identify 15 different crop conditions across these crops.

How It Works

The application follows a simple process:

  1. The user uploads a photo of a crop leaf.
  2. The application checks the basic quality of the image.
  3. The image is resized to the required input size.
  4. The image is processed and passed to the trained deep learning model.
  5. The model predicts the most likely crop condition.
  6. The application displays the crop and possible disease.
  7. The user receives simple guidance based on the prediction.

Technology Used

  • Python
  • TensorFlow
  • OpenCV
  • NumPy
  • Streamlit

Model

Agri Vision uses a pre-trained TensorFlow model stored in the following file:

crop_disease_model.h5

The model expects input images with a size of:

224 x 224 pixels

The model predicts one of 15 possible crop conditions.

These include:

  • Pepper Bell Bacterial Spot
  • Pepper Bell Healthy
  • Potato Early Blight
  • Potato Late Blight
  • Potato Healthy
  • Tomato Bacterial Spot
  • Tomato Early Blight
  • Tomato Late Blight
  • Tomato Leaf Mold
  • Tomato Septoria Leaf Spot
  • Tomato Spider Mites
  • Tomato Target Spot
  • Tomato Yellow Leaf Curl Virus
  • Tomato Mosaic Virus
  • Tomato Healthy

Image Guidelines

For the best results, users should:

  • Take a clear photo of the crop leaf
  • Use good natural lighting
  • Make sure the leaf is clearly visible
  • Avoid blurry

Description

Agri Vision is a simple crop health classification application that uses a pre-trained deep learning model to identify possible diseases from crop leaf images.

Related repositories

Similar projects matched by category, topics, and programming language.

lopopolo
Featured
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI & Machine LearningAI Agents
2,390
slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
littledivy
Featured
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI & Machine Learning
1,482