Skip to content

A machine learning application that detects diseases in cotton plants using image analysis and convolutional neural networks (CNNs). Built with Flask for a user-friendly interface and fast, accurate disease classification.

Notifications You must be signed in to change notification settings

zeeza18/Cotton-Disease-Detector

Repository files navigation

Cotton Disease Detector

The Cotton Disease Detector is a machine learning-based application that helps detect diseases in cotton plants through image analysis. This project is built using Python and Flask.

Table of Contents

Introduction

The Cotton Disease Detector leverages convolutional neural networks (CNNs) to classify and identify diseases in cotton plant leaves. This tool is designed to assist farmers and agricultural professionals in early disease detection and management.

Features

  • Image upload and disease detection.
  • User-friendly web interface.
  • Accurate and fast disease classification.

Prerequisites

Before you begin, ensure you have the following installed:

  • Python 3.7 or later
  • pip (Python package installer)

Installation

Follow these steps to set up the project on your local machine.

  1. Clone the repository:

    git clone https://github.com/zeeza18/Cotton-Disease-Detector.git
    cd Cotton-Disease-Detector
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS and Linux:
      source venv/bin/activate
  4. Install the required packages:

    pip install -r requirements.txt

Running the Application

  1. Set the Flask app environment variable:

    export FLASK_APP=app.py
  2. Run the Flask application:

    flask run

    By default, the application will run on http://127.0.0.1:5000/.

Usage

  1. Open your web browser and navigate to the application:

    http://127.0.0.1:5000/
    
  2. Upload an image of a cotton plant leaf:

    • Click on the 'Choose File' button to select an image from your local machine.
    • Click 'Submit' to upload the image for analysis.
  3. View the results:

    • The application will process the image and display the detected disease (if any).

Acknowledgements

Special thanks to Krish Naik for his tutorials and guidance in building machine learning projects.

License

MIT License

About

A machine learning application that detects diseases in cotton plants using image analysis and convolutional neural networks (CNNs). Built with Flask for a user-friendly interface and fast, accurate disease classification.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published