Coder Social home page Coder Social logo

amulya444 / plant-leaf-identification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aayushg159/plant-leaf-identification

0.0 0.0 0.0 1 MB

Identification of plants through plant leaves on the basis of their shape, color and texture features using digital image processing techniques

License: MIT License

Jupyter Notebook 100.00%

plant-leaf-identification's Introduction

Plant Leaf Identification

Identification of plants through plant leaves on the basis of their shape, color and texture features using digital image processing techniques.

Overview

Plant Leaf Identification is a system which is able to classify 32 different species of plants on the basis of their leaves using digital image processing techniques. The images are first preprocessed and then their shape, color and texture based features are extracted from the processed image.

A dataset was created using the extracted features to train and test the model. The model used was Support Vector Machine Classifier and was able to classify with 90.05% accuracy.

Dataset

The dataset used is Flavia leaves dataset which also has the breakpoints and the names mentioned for the leaves dataset

Dependencies

It is recommended to use Anaconda Python 3.6 distribution and using a Jupyter Notebook

Instructions

  • Create the following folders in the project root -
    • Flavia leaves dataset : will contain Flavia dataset
    • mobile captures : will contain mobile captured leaf images for additional testing purposes

Project structure

Methodology

1. Pre-processing

The following steps were followed for pre-processing the image:

  1. Conversion of RGB to Grayscale image
  2. Smoothing image using Guassian filter
  3. Adaptive image thresholding using Otsu's thresholding method
  4. Closing of holes using Morphological Transformation
  5. Boundary extraction using contours

2. Feature extraction

Variou types of leaf features were extracted from the pre-processed image which are listed as follows:

  1. Shape based features : physiological length,physological width, area, perimeter, aspect ratio, rectangularity, circularity
  2. Color based features : mean and standard deviations of R,G and B channels
  3. Texture based features : contrast, correlation, inverse difference moments, entropy

3. Model building and testing

(a) Support Vector Machine Classifier was used as the model to classify the plant species
(b) Features were then scaled using StandardScaler
(c) Also parameter tuning was done to find the appropriate hyperparameters of the model using GridSearchCV

plant-leaf-identification's People

Contributors

aayushg159 avatar flores-o avatar

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.