Giter Site home page Giter Site logo

adhiiisetiawan / corn-disease-recognition Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 132.12 MB

Image recognition for corn leaf disease. The model has been deployed as an android application for easy use by farmers and agricultural professionals.

License: Apache License 2.0

Java 46.78% Python 53.22%
agriculture android tensorflow tensorflow-lite convolutional-neural-network keras

corn-disease-recognition's Introduction

Corn Disease Recognition

Python TensorFlow Keras Android

Description

Corn is a major staple crop that is grown around the world. However, it is vulnerable to various diseases that can significantly impact the yield and quality of the crop. Early detection and treatment of these diseases is crucial for maintaining the health of the crop and ensuring a good harvest.

This project aims to develop a machine learning model for recognizing diseases in corn leaves. The model was trained on a dataset of images of infected and healthy corn leaves, collected and labeled by Acharya (October 2020)

The ultimate goal of this project is to provide a tool for farmers and agricultural professionals to quickly and accurately identify diseases in their corn crops, allowing them to take timely action to prevent the spread of the disease and protect their crops.

The project will include the following steps:

  1. Data collection: The dataset for this project was downloaded from Kaggle (Acharya, October 2020).
  2. Data preprocessing: Clean and prepare the data for modeling, including resizing and normalizing the images.
  3. Model training: Train a machine learning model on the prepared dataset using supervised learning techniques.
  4. Model evaluation: Evaluate the performance of the trained model on a separate test dataset to assess its accuracy and reliability.
  5. Android app development: Develop an Android app that allows users to capture and classify images of corn leaves using the trained model.

This project is suitable for individuals with an interest in agriculture and machine learning, and those looking to develop skills in image classification, Android app development, and disease detection

Prerequisites

Before training the model and deploying the app, you will need to install the following dependencies:

  1. Python 3.6 or higher
  2. TensorFlow 2.0 or higher
  3. Android Studio 4.0 or higher [OPTIONAL]

How to run

If you want to retrain, you can following this step.

Install dependencies

# clone project
git clone https://github.com/adhiiisetiawan/corn-disease-recognition
cd corn-disease-recognition

# [OPTIONAL] create python environment
python3 -m venv [your-python-venv-name]

# install requirements
pip3 install -r requirements.txt

Train model with default configuration

python3 main.py -c configs/corn_disease_config.json

Train model with chosen experiment configuration, you can copy default configuration and change any stuff there such as, learning rate, optimizer, batch size, etc. You also can change with your custom dataset by change in configuration.json file. Just change in train_dir and val_dir key. And you can train with your personal configuration.

python3 main.py -c configs/[your-personal-config].json

Android App Development

An Android app was developed to allow users to capture and classify images of corn leaves using the trained model. The app includes a user-friendly interface for capturing and uploading images, as well as displaying the results of the classification. You can download the android apps here.

Export APK Manually [OPTIONAL]

You also can export APK manually by opening CornDiseaseRecognitionApp in Android Studio and follow this step.

  1. Open the project in Android Studio.
  2. Go to "Build" > "Generate Signed APK" in the menu.
  3. Follow the prompts to create a signed APK

Reference

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.