Skip to main content

Automated Leaf Area Calculator Using Tkinter and Deep Learning Image Classification Model.

Project description

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Description: # LeafAreaCalculator
ComputerVison and Machine Learning: Convolutional Neural Network to compute leaf area

This project was a free lancing project for School of Biological Science at Washington State University.
The goal of the project was to detect number of pixels that would potentially consitute a leaf. These 'green' pixels fraction as compared to a known
quantity computes the area (cm^2). This constitues to a classification problem over image object.

Steps:
1) Train CNN model to learn various levels of green, red and arbitrary pixels. [Note any other color except green and red is of no particular
interest to us, hence classified as arbitrary.
2) Break the image as list of pixels and classify them in a supervised training fashion. [Select pure green leaf images placed in 'green' folder, pure 'red' images in 'red' folder, etc]
3) Compile and save the model that tests with an acceptable accuracy. [Accuracy obtained: 95 %].
4) Knowing that the number of pixels in every image is 4 cm^2, we computed the leaf area as number of green pixels ~ number of red pixels [whose areas is known].

The project was implemeneted using Python Keras/Tensorflow libraries and OpenCV/color packages.
A substantial advantage of this program was, due to the state of the art CNN machine learning algorithm used, leaf object with varied
intensities of green were classfied with supreme accuracy. The raw images were generated through different sources, scanner and DSLR camera,
but due to the algorithm logic, these differences were incorporated and computation did not result in loss of records.

This algorithm has been successfully run on atleast 3500+ images and has helped the research lab save valuable time and energy
otherwise invested in manual efforts.

Platform: UNKNOWN

Project details


Download files

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

Source Distribution

pyleafarea-1.0.7.tar.gz (23.4 MB view hashes)

Uploaded Source

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