Code Monkey home page Code Monkey logo

crop-disease-detection's Introduction

Crop Disease Detection using an IoT device

What is does -

An image of a leaf is captured using the PICamera of a Raspberry Pi. This image is then run through a classifier and it's disease is identified. This data is sent to your android device using a cloud service (ThingSpeak). The Android app displays the leaf, it's diagnosed disease, the preventive measure needed to be taken up by the farmer and the cure for this disease. Command to click the image can be sent to the RasPi using the Android app.

How it works -

  1. Training the classifier

The plant disease classifier was built and trained on a GPU. The dataset used was Plant Village dataset which can be found here - https://www.kaggle.com/emmarex/plantdisease. For the purpose of this project, 3 plants were chosen from the complete dataset - Tomato, Bell pepper and Potato. In all, there are 14 classes of diseases and healthy leaves. After training the classifier, the model is saved in a Hierarchical Data Format (h5 extension)

  1. Deploying the classifier

Next, this model was deployed on a Raspberry Pi device using Tensorflow Lite. The module captures an image using the PICamera and sends this image to the classifier. This classifier then predicts the class of the image and sends the image as well as it's class to the Android app using a ThingSpeak channel.

  1. Obtaining the results

On the Android app, the user can see the image, it's predicted class and related information about the disease. This app is connected to the ThingSpeak channel using an HTTP and MQTT protocol. It follows a publish-subscribe model. The app can also send a command to the IoT device to click images. This connection is a TCP connection.

crop-disease-detection's People

Contributors

aish-where-ya avatar

Watchers

 avatar  avatar

crop-disease-detection's Issues

Hi sir.....

Can you please guide me to do this project.

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.