Leaf Detection System Machine Learning - Copy
Leaf Detection System Machine Learning - Copy
Detection and Recognition of various objects is one of the fascinating ability that human
possess.
Human can identify the objects by extracting its various features like: shape, color, texture,
dimension etc.
This way they can even recognize the object that possess slightly different properties than
they have ever seen.
We have used the Computer Vision in the field of Plant Leaf Recognition.
The purpose of this project is to develop a software that can identify the plant using
the captured image of its leaf.
It can detect any plant leaf for which the system is trained. After detection and
recognition, it displays the various information of the plant that is helpful for the
users.
Our system, Plant Leaf Recognizer undergoes series of steps to recognize the plant
accurately from the image of the leaf captured.
First, the image is acquired, then it is pre-processed to remove noise and extract
features more clearly.
At last we use Convolutional Neural Network ( CNN) for image classification and
the predicted result is displayed along with the details of the plant.
BLOCK DIAGRAM TRAINING
BLOCK DIAGRAM FOR TESTING
BASIC BLOCK DIAGRAM
The image of a leaf of the plant to be recognized is captured and fed to the system.
Since our system is currently a desktop app, we have to locate the image via the user interface.
Pre-processing is used to get the outer shape of the image from the colored image of the leaf
and to remove any kind of external noises present in an image.
The main idea of preprocessing is to enhance the image details so that features are clearly
found for further processing.
Python Imaging Library (PIL), numpy and scikit-image was used to perform various image
preprocessing operations.
IMAGE PRE-PROCESSING
IMAGE CLASSIFICATION
For the implementation of CNN, we have used keras library on top of tensorflow.
The range of values that can be encoded in each pixel depends upon its bit size.
Thus the possible range of values a single pixel can represent is [0, 255].
However, with coloured images, particularly RGB (Red, Green, Blue)-based images, the
presence of separate colour channels (3 in the case of RGB images) introduces an
additional ‘depth’ field to the data, making the input 3- dimensional.
IMAGE AS PIXEL MATRIX
RESULT PREDICTION
At the end of the network, probability is calculated for each class and prediction is
made on the basis of probability.
We have applied softmax function to convert the outputs to probability values for each
class.
Then the class with the highest probability is chosen as the predicted output.
The predicted result is then displayed in the Graphical User Interface (GUI) along
with the related details.
The information regarding the plants are retrieved from the database.
For the user interface, we have used a python library named Tkinter.
USECASE DIAGRAM
SCREENSHOTS