Skip to main content

A Python module that classifies disease on plants

Project description

plant-disease-classification

https://img.shields.io/pypi/v/plant-disease-classification.svg https://img.shields.io/pypi/pyversions/plant-disease-classification.svg

A Python module that classifies disease on plants. You can classify plant images from Python or from the command line with a simple classification library.

Built using Deep Learning and Convolutional Networks models trained here.

This also provides a simple plant disease classification command line tool that lets you do face recognition on a folder of images from the command line.

Installation

You can install plant-disease-classification using:

$ pip install plant-disease-classification

Getting the code

The code is hosted at https://github.com/abdullahselek/plant-disease-classification

Check out the latest development version anonymously with:

$ git clone git://github.com/abdullahselek/plant-disease-classification.git
$ cd plant-disease-classification

To install dependencies, run either:

$ pip install -r requirements.txt

To install the minimal dependencies for production use (i.e., what is installed with pip install plant-disease-classification) run:

$ pip install -r requirements.txt

Usage

Classification using Python

from plant_disease_classification import api

# Classification with image path
result = api.classify(image_path="YOUR_IMAGE_PATH")

# Classification with image data
result = api.classify(image_data=YOUR_IMAGE_DATA)

Classification via CLI

python -m plant_disease_classification -p testdata/4507d7a208e839e34466ba7d7bdb144e.jpg

python -m plant_disease_classification -d BASE64_ENCODED_IMAGE_DATA

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page