Code Monkey home page Code Monkey logo

potato-leaf-disease's Introduction

Potato-Leaf-Disease Predictor

Problem Statement:-

"Every year, farmers face substantial economic losses and crop wastage due to diseases that affect potato plants. Two of the most devastating diseases that afflict potato leaves are Early Blight and Late Blight. These diseases are responsible for significant reductions in potato yields and can lead to severe economic hardship for farmers"

Thus the images are classified into 3 classes :

  • Healthy leaves

image

  • Late Blight leaves

image

  • Early Blight leaves

image

Technology stack used:-

  • Tensorflow
  • Numpy
  • Keras
  • Matplotlib
  • Pathlib

Dataset :-

The dataset is being taken from "Kaggle".

The dataset contains 15 different directories:-

  • Potato___Early_blight

  • Potato___Late_blight

  • Potato___healthy

each containing images in .jpg format.

Workflow:-

image

Output:-

image

The model accuracy after training the image dataset is > 97%.

potato-leaf-disease's People

Contributors

sanils2002 avatar achyut132002 avatar yashojha07 avatar

Watchers

 avatar

potato-leaf-disease's Issues

Image version 2.0

import matplotlib.pyplot as plt

Create a figure to display images

plt.figure(figsize=(15, 15))

Loop through the first batch of images and labels from the dataset

for image, label in dataset.take(1):
for i in range(12):
# Create subplots in a 3x4 grid
plt.subplot(3, 4, i + 1)

    # Display the image as uint8 (integer) type
    plt.imshow(image[i].numpy().astype('uint8'))

    # Set the title of the subplot to the corresponding class name
    plt.title(class_name[label[i]])

    # Hide the axis values
    plt.axis("off")

Show the plot

plt.show()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.