All Projects → johri002 → Automatic Leaf Infection Identifier

johri002 / Automatic Leaf Infection Identifier

Licence: mit
Automatic detection of plant diseases

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Automatic Leaf Infection Identifier

Grabcutweb
Full web grabcut example using opencvjs
Stars: ✭ 40 (-58.76%)
Mutual labels:  opencv, image-segmentation, image-processing
Graph Based Image Segmentation
Implementation of efficient graph-based image segmentation as proposed by Felzenswalb and Huttenlocher [1] that can be used to generate oversegmentations.
Stars: ✭ 31 (-68.04%)
Mutual labels:  opencv, image-segmentation, image-processing
Caer
High-performance Vision library in Python. Scale your research, not boilerplate.
Stars: ✭ 452 (+365.98%)
Mutual labels:  opencv, image-segmentation, image-processing
Opencv Face Filters
Snapchat-like Face Filters in OpenCV
Stars: ✭ 51 (-47.42%)
Mutual labels:  opencv, image-processing
Opencv Tutorials
Tutorials for learning OpenCV in Python from Scratch
Stars: ✭ 36 (-62.89%)
Mutual labels:  opencv, image-processing
Seeds Revised
Implementation of the superpixel algorithm called SEEDS [1].
Stars: ✭ 48 (-50.52%)
Mutual labels:  opencv, image-processing
Tensorflow object counting api
🚀 The TensorFlow Object Counting API is an open source framework built on top of TensorFlow and Keras that makes it easy to develop object counting systems!
Stars: ✭ 956 (+885.57%)
Mutual labels:  opencv, image-processing
Go Cv
Computer Vision package in pure Go taking advantage of SIMD acceleration
Stars: ✭ 66 (-31.96%)
Mutual labels:  opencv, image-processing
Catt
Detecting the temperature from an infrared image
Stars: ✭ 60 (-38.14%)
Mutual labels:  opencv, image-processing
Sky Detector
Sky area detection without deep neural networks https://maybeshewill-cv.github.io/sky-detector/
Stars: ✭ 96 (-1.03%)
Mutual labels:  opencv, image-segmentation
Pyscenedetect
🎥 Python and OpenCV-based scene cut/transition detection program & library.
Stars: ✭ 1,203 (+1140.21%)
Mutual labels:  opencv, image-processing
Albumentations
Fast image augmentation library and an easy-to-use wrapper around other libraries. Documentation: https://albumentations.ai/docs/ Paper about the library: https://www.mdpi.com/2078-2489/11/2/125
Stars: ✭ 9,353 (+9542.27%)
Mutual labels:  image-segmentation, image-processing
Qt 5 And Opencv 4 Computer Vision Projects
Qt 5 and OpenCV 4 Computer Vision Projects, published by Packt
Stars: ✭ 72 (-25.77%)
Mutual labels:  opencv, ml
Retina Features
Project for segmentation of blood vessels, microaneurysm and hardexudates in fundus images.
Stars: ✭ 95 (-2.06%)
Mutual labels:  opencv, image-processing
Facer
Simple (🤞) face averaging (🙂) in Python (🐍)
Stars: ✭ 49 (-49.48%)
Mutual labels:  opencv, image-processing
Colorfilters
Image thresholding in multiple colorspaces.
Stars: ✭ 60 (-38.14%)
Mutual labels:  opencv, image-processing
Keras Icnet
Keras implementation of Real-Time Semantic Segmentation on High-Resolution Images
Stars: ✭ 85 (-12.37%)
Mutual labels:  image-segmentation, image-processing
Detection Of Breast Cancer Using Neural Networks
This project is made in Matlab Platform and it detects whether a person has cancer or not by taking into account his/her mammogram.
Stars: ✭ 15 (-84.54%)
Mutual labels:  image-segmentation, image-processing
Pytorch Toolbelt
PyTorch extensions for fast R&D prototyping and Kaggle farming
Stars: ✭ 942 (+871.13%)
Mutual labels:  image-segmentation, image-processing
Multiclass Semantic Segmentation Camvid
Tensorflow 2 implementation of complete pipeline for multiclass image semantic segmentation using UNet, SegNet and FCN32 architectures on Cambridge-driving Labeled Video Database (CamVid) dataset.
Stars: ✭ 67 (-30.93%)
Mutual labels:  image-segmentation, image-processing

1268108 (1)

Automatic leaf infection identification

Join the chat at https://gitter.im/Automatic-leaf-infection-identification/Lobby

List of contents

Introduction


(Back to top)

Since, disease detection in plants plays an important role in the agriculture field, as having a disease in plants are quite natural. If proper care is not taken in this area then it can cause serious effects on plants and due to which respective product quality, quantity or productivity is also affected. Plant diseases cause a periodic outbreak of diseases which leads to large-scale death. These problems need to be solved at the initial stage, to save life and money of people. Automatic detection of plant diseases is an important research topic as it may prove benefits in monitoring large fields of crops, and at a very early stage itself it detects the symptoms of diseases means when they appear on plant leaves. Farm landowners and plant caretakers (say, in a nursery) could be benefited a lot with an early disease detection, in order to prevent the worse to come to their plants and let the human know what has to be done beforehand for the same to work accordingly, in order to prevent the worse to come to him too.

This enables machine vision that is to provide image-based automatic inspection, process control. Comparatively, visual identification is labor intensive less accurate and can be done only in small areas. The project involves the use of self-designed image processing algorithms and techniques designed using python to segment the disease from the leaf while using the concepts of machine learning to categorise the plant leaves as healthy or infected. By this method, the plant diseases can be identified at the initial stage itself and the pest and infection control tools can be used to solve pest problems while minimizing risks to people and the environment.

Working


(Back to top)

In the initial step, the RGB images of all the leaf samples were picked up. The step-by-step procedure of the proposed system:

  • RGB image acquisition;
  • Convert the input image from RGB to HSI format;
  • Masking the green-pixels;
  • Removal of masked green pixels;
  • Segment the components;
  • Obtain useful segments;
  • Evaluating feature parameters for classification;
  • Configuring SVM for disease detection.

Colour Transformation: HSI (hue, saturation, intensity) color model is a popular color model because it is based on human perception. After transformation, only the H (hue) component of HSI colour space is taken into account since it provides us with the required information.

Masking Green Pixels: This is performed as green colour pixel represent the healthy region of a leaf. Green pixels are masked based on the specified threshold values.

Segmentation: The infected portion of the leaf is extracted by segmenting the diseased part with other similar coloured parts (say, a brown coloured branch of a leaf that may look like the disease) which have been considered in the masked out image, are filtered here. All further image processing is done over a region of interest (ROI) defined at this stage.

Classification: From the previous results we analyze and evaluate the features like the area of the leaf, percentage(%) of the leaf infected, the perimeter of the leaf, etc., for all the leaf images, and pass it to the SVM classifier.

Installation


(Back to top)

These instructions assume you have git installed for working with Github from command window.

  1. Clone the repository, and navigate to the downloaded folder. Follow below commands.
git clone https://github.com/johri002/Automatic-leaf-infection-identifier.git
cd Automatic-leaf-infection-identifier
  1. Install few required pip packages, which are specified in the requirements.txt file .
pip3 install -r requirements.txt

or

sudo python3 setup.py install
  1. That's it. You are ready to test the application.

Dataset creation


(Back to top)

In leaf sampler directory run:

python3 leafdetectionALLsametype.py -i .

or

python3 leafdetectionALLmix.py -i .

leafdetectionALLsametype.py for running on one same category of images (say, all images are infected) and leafdetectionALLmix.py for creating dataset for both category (infected/healthy) of leaf images, in the working directory. Note: The code is set to run for all .jpg,.jpeg and .png file format images only, present in the specified directory. If you wish, you can add more file format support by intoducing it in the conditional statement of line 52 of both the files.

Running


(Back to top)

Run the following code:

python3 GUIdriver.py

where {Browse} is used to select the input image file for classifier

The code runs on two files:

  • First, main.py for image segmentatin and feature extraction.
  • Second, classifier.py is called in main.py for classifying the leaf in the input image as "infected" or "healthy".

leafdetection

Links


(Back to top)

License


(Back to top)

The code in this project is licensed under the MIT license 2018 - Shikhar Johri.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].