design and implementation of image processing techniques ... · hardik modi, niyati trivedi, prachi...
TRANSCRIPT
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-7758
© Research India Publications. http://www.ripublication.com
7724
Design and Implementation of Image Processing Techniques for Plant
Disease Detection
Hardik Modi, Niyati Trivedi, Prachi Soni, Himanshu Patel
Department of Electronics & Communication Engineering, Chandubhai S Patel Institute of Technology,
Charotar University of Science and Technology, Changa - 388421, Gujarat, India.
ABSTRACT
The disease identification on the plant by the old method of
checking and observing diseases in plants is through only
visualization which is not so suitable in detecting the diseases
associated with plants. The leaf shows the symptoms by
changing their color, showing the spots on the leaf like yellow
spots or Black spots or chocolate brown spots. Some leaves
are having mildew such as Powdery Mildew, Downey
Mildew. This identification of the disease is done by manual
observation and pathogen detection which is more time
consuming and somehow costly with a lower accuracy. So
there is a better option which is fast and accurate detection by
using image processing techniques which can be more reliable
than some other old traditional techniques. The symptoms can
be observed on the parts of the plants in the parts like it’s fruit
or leaf or stems or lesions. The aim is to identify and classify
the disease accurately from the leaf images. The steps
required in the process are Image Pre- processing,
Segmentation, Feature Extraction and Identification. The
disease considered are bacterial, viral fungal or disease by
insects and by weather. Here, we are going to detect the
disease of plant leaf. For identification of disease features of
Leaf such as their axis including major axis, minor axis etc.
are extracted from leaf and by different classification
techniques, we can diagnosis the disease.
Keywords: MATLAB, Leaf Disease, Disease Detection,
Image processing
INTRODUCTION
In this modern age a new concept of smart farming has been
introduced where the field conditions are controlled and
monitored using the self-operating systems instead of using
the traditional methods such as different image processing
techniques. By using these techniques information about the
Disease occurrence could be quickly and accurately provided
to the farmers, researchers and experts. This in turn reduces
the monitoring of large field by human being as this may be
less accurate and more time consuming. In Disease
recognition from image the steps are to extract the
characteristic feature of the diseased region. The features may
vary according to the Disease of plant Leaf. The features that
are extracted from the image are color, shape, position, edges,
texture and the regions. Identification of the diseases is very
important in any field to preventing the losses. For sustainable
agriculture health monitoring and disease detection on plant is
very critical. The studies of the leaf diseases mean the studies
of visually observable patterns seen on the leaf. Leaf Disease
detection requires huge amount of work, knowledge in the
plant diseases, and also require the more processing time.
Now a day’s in all fields technology plays vital role but till
today we are using some old methodologies in agriculture. If
disease is wrongly detected it will leads to a loss of yield,
time, production and money. For identification of diseases we
can use Image Processing techniques for more accuracy, less
time requirement and better performance.[1-25]
LITERATURE REVIEW
Here, some papers review are describing to detecting leaf
disease using different techniques as illustrated and discussed
under. The approach discussed by authors was only for apple
fruit it cannot be extended to other fruits or plants. They
proposed approach [2-4] that is combination of three steps
such as image segmentation, feature extraction and
classification. For the image segmentation, they used K-mean
clustering technique. Authors developed [5] genetic algorithm
based on system whose disease detection efficiency is about
93%. Cotton leaves were used for experimentation. They
proposed an algorithm for Disease spot segmentation using K
mean image processing and support vector machine.
Authors [7] introduced fuzzy curves and fuzzy surfaces in the
paper. The features which are extracted from fuzzy selection
approach are used for diagnosing and identifying diseases, it
removes the dependent features of image so as to reduce the
number of features for classification.
As per authors[9] the artificial neural network (ANN)
technique is used for training the image database and
classified their performance to the respective Disease
categories, which may be viral , bacterial, fungal or other
plant Leaf Disease. The experimental results express the type
of disease can be affected in the fruit and leaf.
This paper [15] has two techniques for feature extraction and
comparison of two techniques. Otsu Threshold: Otsu-
threshold creates Binary image from Gray level by turning all
pixels below some threshold to zero and all pixels about that
threshold to one. Using K-means clustering segmented
Disease portion is obtained.
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7725
METHODOLOGY
Figure 1. Flow Diagram
Digital camera image:
In this process, we obtain the Leaf images. The RGB color
digital images are clicked by using a digital camera. The
digitized images are of equal size each. It consists of diseases.
Images are saved and stored. Here, in this algorithm we are
taking ten different leaves having different diseases.
Image Pre-Processing and Segmentation:
This is the main task in which pre-processing and
segmentation of the image is done before the image is used for
the next process. The main aim of this procedure is to obtain
the Binary image with noise free.
Image pre-processing: this method is also known as image
restoring. It enhances the feature of image. It is done to
convert the image in appropriate form for testing. This method
is also used to separate the foreground and background image.
Image pre-processing includes many processes:-
1. Filter image:
By using any filter such as high pass filter, low pass filter
and/or median filter.
2. Crop image:
This is done to make the image more clean and free from
unwanted big background.
3. Resize image:
This task is for resizing the images that it can be fit easily
100% on the screen.
Converting RGB Image to HSI:
H stands for Hue, S for Saturation and I for Intensity.
Steps to be followed:
1. Read a RGB image
2. Represent the RGB image in the range[0 1]
3. Find HSI components
𝜃 = cos−1 {1
2[(𝑅−𝐺)+(𝑅−𝐵)]
(𝑅−𝐺)2+(𝑅−𝐵)(𝐺−𝐵)1
2⁄}
𝐻(𝐻𝑢𝑒) = { 𝜃 𝑖𝑓 𝐵 <= 𝐺
360 − 𝜃 𝑖𝑓 𝐵 > 𝐺
𝑆(𝑆𝑎𝑡𝑢𝑟𝑎𝑡𝑖𝑜𝑛) = 1 −3
(𝑅+𝐺+𝐵)[𝑚𝑖𝑛(𝑅, 𝐺, 𝐵)]
𝐼(𝐼𝑛𝑡𝑒𝑛𝑠𝑖𝑡𝑦) =1
3(𝑅 + 𝐺 + 𝐵)
HSI = RGB2HSI (RGB) converts an RGB image to HSI. The
input image is assumed to be of size M-by-N-by-3, where the
third dimension accounts for three image planes: red, green,
and blue, in that order. If all RGB component images are
equal, the HSI conversion is undefined. The input image can
be of class double (with values in the range [0, 1]).
Image segmentation: segmentation is the method by which
we divide Leaf into the parts for further studies. The
subdivision can be continued until we get the desired result.
When we reassemble the segmented parts we should get the
original image. In this methodology after threshold the image,
the gray-scale image is then converted to Black and white
image. On the Binary images we perform the Morphological
operations which includes erosion (shrink the image), dilation
(expand the image), opening and closing. In this algorithm the
Morphological opening and Morphological closing operations
are done.
Morphological opening:
It is simply defined as erosion followed by dilation. It
removes some of foreground (white) pixels from the edges of
the foreground pixels.
The mathematical function of opening is
I ᴏ P = (I-P) + P
Where, I = Original Image
P = Structuring element
Number Percentage of Disease Type of Disease
1. <25% Slight Disease
2. 25.1% to 49.9% Moderate Disease
3. >50% Heavy Disease
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7726
Morphological closing:
Closing is just opposite to opening. It is simply defined as
dilation followed by the erosion. Closing enlarges the
boundaries of the foreground (white) pixels in the image and
it shrinks and fills the holes in background region.
The mathematical function of closing is
I•P = (I+P) - P
Where, I = Original Image
P = Structuring element
K mean segmentation:
Color Image Segmentation is done by using K Means
clustering for segmentation in which there are Three different
clusters appears on the screen and one has to choose the
cluster number which is having the area of Disease means to
choose the cluster having the ROI (Region Of Interest). As an
input there is a Leaf image on which threshold process is
performed to mask green pixels and to get the part which has
Disease. Using K-means clustering segmented Disease portion
is obtained. In this process first convert Image from RGB
Color Space to L*a*b* Color Space, The L*a*b* space
consists of a luminosity layer 'L*', chromaticity-layer 'a*' and
'b*'. All of the color information is in the 'a*' and 'b*' layers
then Apply the color form. Classify the colors in a*b* color
space using K means clustering. Since the image has 3 colors
create 3 clusters for K mean segmentation.
Feature extraction:
Its main purpose is to take the extracted feature, for the
meaning of image. It includes color, shape, edge, region and
texture. Texture is the most important feature as per the
researcher, targeting plant Leaf structure. Shape is the visual
feature which is classified as Boundary based or Region based
representation. Color tells us about brightness and intensity,
its degree of purity. Region is considered as which part of an
image is affected like here the ROI (Region of interest) is the
defected part of Leaf which is not containing the green pixels
and contains brown, yellow, Black or red shaded pixels. Also
the edge detection is very important in this methodology to
differentiate the Disease part and the normal part of the Leaf.
The edge detection is done by many kind of values as sobel,
canny, prewitt, Roberts and log. Here, in this algorithm we
use the sobel and done the Binary gradient mask and Dilated
gradient mask.
Disease detection:
In this process the Disease of Leaf is detected and also we can
classify Disease by it's Percentage in slight Disease, moderate
Disease and heavy Disease.
Also one can identify the Percentage of Disease area by
following equation:
𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒 𝑜𝑓 𝑑𝑖𝑠𝑒𝑎𝑠𝑒 =Area of disease detected in image
Area of the leaf image× 100
TEST RESULT AND DISCUSSION
The money-plant Leaf is taken as shown in next figure.
Figure 2. Money-plant Leaf
The Leaf is then segmented and adjusted by functions and
presented as contrast enhanced image as shown in next figure.
Figure 3. Leaf with contrast enhanced
Next we use the K mean clustering technique in this
algorithm. By this technique we get the colored segmentation
of the image in different clusters among which we have to
choose one as shown in figure.
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7727
Figure 4. Three clusters of Leaf
Then one has to choose the cluster number containing the ROI
among 1, 2, 3 as shown in figure.
Figure 5. Select cluster number containing region of interest
The Leaf image is then converted to the Gray scale image, as
shown in next figure:
Figure 6. Gray scale image
The Leaf image is then converted to the Black and white
image, as shown in next figure:
Figure 7. Black and white image
The Leaf image is then converted to feature extracted image,
as shown in next figure:
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7728
Figure 8. Disease extracted image
Then the different gradient masks first Binary gradient mask
and then the dilated gradient mask is used to study the image
more comfortably.
Here the next image represents the Binary gradient mask.
Figure 9. Binary gradient mask image
Here the next image represents the dilated gradient mask.
Figure 10. Dilated gradient mask
Then the Morphological functions are used first erosion
followed by dilation and then reverse to that dilation followed
by erosion.
The next figure shows Morphological opening performed on
the image.
Figure 11. Morphological opening
The next figure shows Morphological closing performed on
the image.
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7729
Figure 12. Morphological closing
At last the Disease is extracted and shown with the different
color as shown in below figure. The green edge shows the
boundary and the red edge shows high Disease as shown
under.
Figure 13. Disease detection shown in colored region
The Percentage area of Disease is displayed in command
window as shown in next figure.
Figure 14. Percentage of Disease
By calculating the Percentage of Disease among Three
categories slight Disease, moderate Disease and heavy
Disease the help dialog box shows as in next figure.
Figure 15. Disease detection and type of Disease (slight
Disease or moderate Disease or heavy Disease)
The Bodhi Leaf is taken as shown in next figure.
Figure 16. Bodhi Leaf
The Leaf is then segmented and adjusted by functions and
presented as contrast enhanced image as shown in next figure.
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7730
Figure 17. Leaf with contrast enhanced
Next we use the K mean clustering technique in this
algorithm. By this technique we get the colored segmentation
of the image in different clusters among which we have to
choose one as shown in figure.
Figure 18. Three clusters of Leaf
Then one has to choose the cluster number containing the ROI
among 1, 2, 3 as shown in figure.
Figure 19. Select cluster number containing region of interest
The Leaf image is then converted to the Gray scale image, as
shown in next figure:
Figure 20. Gray scale image
The Leaf image is then converted to the Black and white
image, as shown in next figure:
Figure 21. Black and white image
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7731
The Leaf image is then converted to feature extracted image,
as shown in next figure:
Figure 22. Disease extracted image
Then the different gradient masks first Binary gradient mask
and then the dilated gradient mask is used to study the image
more comfortably.
Here the next image represents the Binary gradient mask.
Figure 23. Binary gradient mask image
Here the next image represents the dilated gradient mask.
Figure 24. Dilated gradient mask
Then the Morphological functions are used first erosion
followed by dilation and then reverse to that dilation followed
by erosion.
The next figure shows Morphological opening performed on
the image.
Figure 25. Morphological opening
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7732
The next figure shows Morphological closing performed on
the image.
Figure 26. Morphological closing
At last the Disease is extracted and shown with the different
color as shown in below figure. The green edge shows the
boundary and the red edge shows high Disease as shown in
next figure
Figure 27. Disease detection shown in colored region
The Percentage area of Disease is displayed in command
window as shown in next figure.
Figure 28. Percentage of Disease
By calculating the Percentage of Disease among Three
categories slight Disease, moderate Disease and heavy
Disease the help dialog box shows as in next figure.
Figure 29. Disease detection and type of Disease (slight
Disease or moderate Disease or heavy Disease)
The frangipani Leaf is taken as shown in next figure.
Figure 30. Frangipani Leaf
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7733
The Leaf is then segmented and adjusted by functions and
presented as contrast enhanced image as shown in next figure.
Figure 31. Leaf with contrast enhanced
Next we use the K mean clustering technique in this
algorithm. By this technique we get the colored segmentation
of the image in different clusters among which we have to
choose one as shown in figure.
Figure 32. Three clusters of Leaf
Then one has to choose the cluster number containing the ROI
among 1, 2, 3 as shown in figure.
Figure 33. Select cluster number containing region of interest
The Leaf image is then converted to the Gray scale image as
shown in next figure:
Figure 34. Gray scale image
The Leaf image is then converted to the Black and white
image, as shown in next figure:
Figure 35. Black and white image
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7734
The Leaf image is then converted to feature extracted image,
as shown in next figure:
Figure 36. Disease extracted image
Then the different gradient masks first Binary gradient mask
and then the dilated gradient mask is used to study the image
more comfortably.
Here the next image represents the Binary gradient mask.
Figure 37. Binary gradient mask image
Here the next image represents the dilated gradient mask.
Figure 38. Dilated gradient mask
Then the Morphological functions are used first erosion
followed by dilation and then reverse to that dilation followed
by erosion.
The next figure shows Morphological opening performed on
the image.
Figure 39. Morphological opening
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7735
The next figure shows Morphological closing performed on
the image.
Figure 40. Morphological closing
At last the Disease is extracted and shown with the different
color as shown in below figure. The green edge shows the
boundary and the red edge shows high Disease as shown in
next figure.
Figure 41. Disease detection shown in colored region
The Percentage area of Disease is displayed in command
window as shown in next figure.
Figure 42. Percentage of Disease
By calculating the Percentage of Disease among Three
categories slight Disease, moderate Disease and heavy
Disease the help dialog box shows as in next figure.
Figure 43. Disease detection and type of Disease (slight
Disease or moderate Disease or heavy Disease)
The banyan Leaf is taken as shown in next figure.
Figure 44. Banyan Leaf
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7736
The Leaf is then segmented and adjusted by functions and
presented as contrast enhanced image as shown in next figure.
Figure 45. Leaf with contrast enhanced
Next we use the K mean clustering technique in this
algorithm. By this technique we get the colored segmentation
of the image in different clusters among which we have to
choose one as shown in figure.
Figure 46. Three clusters of Leaf
Then one has to choose the cluster number containing the ROI
among 1, 2, 3 as shown in figure.
Figure 47. Select cluster number containing region of interest
The Leaf image is then converted to the Gray scale image, as
shown in next figure:
Figure 48. Gray scale image
The Leaf image is then converted to the Black and white
image, as shown in next figure:
Figure 49. Black and white image
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7737
The Leaf image is then converted to feature extracted image,
as shown in next figure:
Figure 50. Disease extracted image
Then the different gradient masks first Binary gradient mask
and then the dilated gradient mask used to study the image
more comfortably.
Here the next image represents the Binary gradient mask.
Figure 51. Binary gradient mask image
Here the next image represents the dilated gradient mask.
Figure 52. Dilated gradient mask
Then the Morphological functions are used first erosion
followed by dilation and then reverse to that dilation followed
by erosion.
The next figure shows Morphological opening performed on
the image.
Figure 53. Morphological opening
The next figure shows Morphological closing performed on
the image.
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7738
Figure 54. Morphological closing
At last the Disease is extracted and shown with the different
color as shown in below figure. The green edge shows the
boundary and the red edge shows high Disease as shown in
next figure
Figure 55. Disease detection shown in colored region
The Percentage area of Disease is displayed in command
window as shown in next figure.
Figure 56. Percentage of Disease
By calculating the Percentage of Disease among Three
categories slight Disease, moderate Disease and heavy
Disease the help dialog box shows as in next figure.
Figure 57. Disease detection and type of Disease (slight
Disease or moderate Disease or heavy Disease)
The sun-flower Leaf is taken as shown in next figure.
Figure 58. Sun-flower Leaf
The Leaf is then segmented and adjusted by functions and
presented as contrast enhanced image as shown in next figure.
Figure 59. Leaf with contrast enhanced
Next we use the K mean clustering technique in this
algorithm. By this technique we get the colored segmentation
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7739
of the image in different clusters among which we have to
choose one as shown in figure.
Figure 60. Three clusters of Leaf
Then one has to choose the cluster number containing the ROI
among 1, 2, 3 as shown in figure.
Figure 61. Select cluster number containing region of interest
The Leaf image is then converted to the Gray scale image, as
shown in next figure:
Figure 62. Gray scale image
The Leaf image is then converted to the Black and white
image, as shown in next figure:
Figure 63. Black and white image
The Leaf image is then converted to feature extracted image,
as shown in next figure:
Figure 64. Disease extracted image
Then the different gradient masks first Binary gradient mask
and then the dilated gradient mask is used to study the image
more comfortably.
Here the next image represents the Binary gradient mask.
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7740
Figure 65. Binary gradient mask image
Here the next image represents the dilated gradient mask.
Figure 66. Dilated gradient mask
Then the Morphological functions are used first erosion
followed by dilation and then reverse to that dilation followed
by erosion.
The next figure shows Morphological opening performed on
the image.
Figure 67. Morphological opening
The next figure shows Morphological closing performed on
the image.
Figure 68. Morphological closing
At last the Disease is extracted and shown with the different
color as shown in below figure. The green edge shows the
boundary and the red edge shows high Disease as shown in
next figure
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7741
Figure 69. Disease detection shown in colored region
The Percentage area of Disease is displayed in command
window as shown in next figure.
Figure 70. Percentage of Disease
By calculating the Percentage of Disease among Three
categories slight Disease, moderate Disease and heavy
Disease the help dialog box shows as in next figure.
Figure 71. Disease detection and type of Disease
(slight Disease or moderate Disease or heavy Disease)
The pipal Leaf is taken as shown in next figure.
Figure 72. Pipal Leaf
The Leaf is then segmented and adjusted by functions and
presented as contrast enhanced image as shown in next figure.
Figure 73. Leaf with contrast enhanced
Next we use the K mean clustering technique in this
algorithm. By this technique we get the colored segmentation
of the image in different clusters among which we have to
choose one as shown in figure.
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7742
Figure 74. Three clusters of Leaf
Then one has to choose the cluster number containing the ROI
among 1, 2, 3 as shown in figure.
Figure 75. Select cluster number containing region of interest
The Leaf image is then converted to the Gray scale image, as
shown in next figure:
Figure 76. Gray scale image
The Leaf image is then converted to the Black and white
image, as shown in next figure:
Figure 77. Black and white image
The Leaf image is then converted to feature extracted image,
as shown in next figure:
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7743
Figure 78. Disease extracted image
Then the different gradient masks first Binary gradient mask
and then the dilated gradient mask is used to study the image
more comfortably.
Here the next image represents the Binary gradient mask.
Figure 79. Binary gradient mask image
Here the next image represents the dilated gradient mask.
Figure 80. Dilated gradient mask
Then the Morphological functions are used first erosion
followed by dilation and then reverse to that dilation followed
by erosion.
The next figure shows Morphological opening performed on
the image.
Figure 81. Morphological opening
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7744
The next figure shows Morphological closing performed on
the image.
Figure 82 Morphological closing
At last the Disease is extracted and shown with the different
color as shown in below figure. The green edge shows the
boundary and the red edge shows high Disease as shown in
next figure
Figure 83. Disease detection shown in colored region
The Percentage area of Disease is displayed in command
window as shown in next figure
Figure 84. Percentage of Disease
By calculating the Percentage of Disease among Three
categories slight Disease, moderate Disease and heavy
Disease the help dialog box shows as in next figure.
Figure 85. Disease detection and type of Disease (slight
Disease or moderate Disease or heavy Disease)
The bur-flower Leaf is taken as shown in next figure.
Figure 86. Bur-flower Leaf
The Leaf is then segmented and adjusted by functions and
presented as contrast enhanced image as shown in next figure.
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7745
Figure 87. Leaf with contrast enhanced
Next we use the K mean clustering technique in this
algorithm. By this technique we get the colored segmentation
of the image in different clusters among which we have to
choose one as shown in figure.
Figure 88. Three clusters of Leaf
Then one has to choose the cluster number containing the ROI
among 1, 2, 3 as shown in figure.
Figure 89. Select cluster number containing region of interest
The Leaf image is then converted to the Gray scale image, as
shown in next figure:
Figure 90. Gray scale image
The Leaf image is then converted to the Black and white
image, as shown in next figure:
Figure 91. Black and white image
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7746
The Leaf image is then converted to feature extracted image,
as shown in next figure:
Figure 92. Disease extracted image
Then the different gradient masks first Binary gradient mask
and then the dilated gradient mask is used to study the image
more comfortably.
Here the next image represents the Binary gradient mask.
Figure 93. Binary gradient mask image
Here the next image represents the dilated gradient mask.
Figure 94. Dilated gradient mask
Then the Morphological functions are used first erosion
followed by dilation and then reverse to that dilation followed
by erosion.
The next figure shows Morphological opening performed on
the image.
Figure 95. Morphological opening
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7747
The next figure shows Morphological closing performed on
the image.
Figure 96. Morphological closing
At last the Disease is extracted and shown with the different
color as shown in below figure. The green edge shows the
boundary and the red edge shows high Disease as shown in
next figure
Figure 97. Disease detection shown in colored region
The Percentage area of Disease is displayed in command
window as shown in next figure
Figure 98. Percentage of Disease
By calculating the Percentage of Disease among Three
categories slight Disease, moderate Disease and heavy
Disease the help dialog box shows as in next figure.
Figure 99. Disease detection and type of Disease (slight
Disease or moderate Disease or heavy Disease)
The Marjoram Leaf is taken as shown in next figure.
Figure 100. Marjoram Leaf
The Leaf is then segmented and adjusted by functions and
presented as contrast enhanced image as shown in next figure.
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7748
Figure 101. Leaf with contrast enhanced
Next we use the K mean clustering technique in this
algorithm. By this technique we get the colored segmentation
of the image in different clusters among which we have to
choose one as shown in figure.
Figure 102. Three clusters of Leaf
Then one has to choose the cluster number containing the ROI
among 1, 2, 3 as shown in figure.
Figure 103. Select cluster number containing region of
interest
The Leaf image is then converted to the Gray scale image, as
shown in next figure:
Figure 104. Gray scale image
The Leaf image is then converted to the Black and white
image, as shown in next figure:
Figure 105. Black and white image
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7749
The Leaf image is then converted to feature extracted image,
as shown in next figure:
Figure 106. Disease extracted image
Then the different gradient masks first Binary gradient mask
and then the dilated gradient mask is used to study the image
more comfortably.
Here the next image represents the Binary gradient mask.
Figure 107. Binary gradient mask image
Here the next image represents the dilated gradient mask.
Figure 108. Dilated gradient mask
Then the Morphological functions are used first erosion
followed by dilation and then reverse to that dilation followed
by erosion.
The next figure shows Morphological opening performed on
the image.
Figure 109. Morphological opening
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7750
The next figure shows Morphological closing performed on
the image.
Figure 110. Morphological closing
At last the Disease is extracted and shown with the different
color as shown in below figure. The green edge shows the
boundary and the red edge shows high Disease as shown in
next figure.
Figure 111. Disease detection shown in colored region
The Percentage area of Disease is displayed in command
window as shown in next figure
Figure 112. Percentage of Disease
By calculating the Percentage of Disease among Three
categories slight Disease, moderate Disease and heavy
Disease the help dialog box shows as in next figure.
Figure 113. Disease detection and type of Disease (slight
Disease or moderate Disease or heavy Disease)
The basil Leaf is taken as shown in next figure.
Figure 114.Basil Leaf
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7751
The Leaf is then segmented and adjusted by functions and
presented as contrast enhanced image as shown in next figure.
Figure 115. Leaf with contrast enhanced
Next we use the K mean clustering technique in this
algorithm. By this technique we get the colored segmentation
of the image in different clusters among which we have to
choose one as shown in figure.
Figure 116. Three clusters of Leaf
Then one has to choose the cluster number containing the ROI
among 1, 2, 3 as shown in figure.
Figure 117. Select cluster number containing region of
interest
The Leaf image is then converted to the Gray scale image, as
shown in next figure:
Figure 118. Gray scale image
The Leaf image is then converted to the Black and white
image, as shown in next figure:
Figure 119. Black and white image
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7752
The Leaf image is then converted to feature extracted image,
as shown in next figure:
Figure 120. Disease extracted image
Then the different gradient masks first Binary gradient mask
and then the dilated gradient mask is used to study the image
more comfortably.
Here the next image represents the Binary gradient mask.
Figure 121. Binary gradient mask image
Here the next image represents the dilated gradient mask.
Figure 122. Dilated gradient mask
Then the Morphological functions are used first erosion
followed by dilation and then reverse to that dilation followed
by erosion.
The next figure shows Morphological opening performed on
the image.
Figure 123. Morphological opening
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7753
The next figure shows Morphological closing performed on
the image.
Figure 124. Morphological closing
At last the Disease is extracted and shown with the different
color as shown in below figure. The green edge shows the
boundary and the red edge shows high Disease as shown in
next figure
Figure 125. Disease detection shown in colored region
The Percentage area of Disease is displayed in command
window as shown in next figure
Figure 126. Percentage of Disease
By calculating the Percentage of Disease among Three
categories slight Disease, moderate Disease and heavy
Disease the help dialog box shows as in next figure.
Figure 127. Disease detection and type of Disease (slight
Disease or moderate Disease or heavy Disease)
The periwinkle Leaf is taken as shown in next figure.
Figure 128. Periwinkle Leaf
The Leaf is then segmented and adjusted by functions and
presented as contrast enhanced image as shown in next figure
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7754
Figure 129. Leaf with contrast enhanced
Next we use the K mean clustering technique in this
algorithm. By this technique we get the colored segmentation
of the image in different clusters among which we have to
choose one as shown in figure.
Figure 130. Three clusters of Leaf
Then one has to choose the cluster number containing the ROI
among 1, 2, 3 as shown in figure.
Figure 131. Select cluster number containing region of
interest
The Leaf image is then converted to the Gray scale image, as
shown in next figure:
Figure 132. Gray scale image
The Leaf image is then converted to the Black and white
image, as shown in next figure:
Figure 133. Black and white image
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7755
The Leaf image is then converted to feature extracted image,
as shown in next figure:
Figure 134. Disease extracted image
Then the different gradient masks first Binary gradient mask
and then the dilated gradient mask is used to study the image
more comfortably.
Here the next image represents the Binary gradient mask.
Figure 135. Binary gradient mask image
Here the next image represents the dilated gradient mask.
Figure 136. Dilated gradient mask
Then the Morphological functions are used first erosion
followed by dilation and then reverse to that dilation followed
by erosion.
The next figure shows Morphological opening performed on
the image.
Figure 137. Morphological opening
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7756
The next figure shows Morphological closing performed on
the image.
Figure 138. Morphological closing
At last the Disease is extracted and shown with the different
color as shown in below figure. The green edge shows the
boundary and the red edge shows high Disease as shown in
next figure
Figure 139. Disease detection shown in colored region
The Percentage area of Disease is displayed in command
window as shown in next figure
Figure 140. Percentage of Disease
By calculating the Percentage of Disease among Three
categories slight Disease, moderate Disease and heavy
Disease the help dialog box shows as in next figure.
Figure 141. Disease detection and type of Disease (slight
Disease or moderate Disease or heavy Disease)
CONCLUSION
From design and implementation of above technique of image
processing for detecting the diseases of plant leaves we can
conclude that instead of any old method of seeing or
observing any plant Leaf which is not good because it is the
less accurate technique and very time consuming we prefer
the digital image processing technique so that we can get
comparatively very less time consuming and more accurate.
In this paper the algorithm can detect the Leaf Disease
accurately and faster by using K-nearest neighboring
segmentation method. The different neural networks like
ANN and PNN, SUPPORT VECTOR MACHINE and can be
used for detection and classification of Leaf diseases.
FUTURE SCOPE
Using new Different technologies and methods, we can make
more faster and efficient application for user. The system
presented in this project was able to perform accurately. In
order to make it more simple there should be use of the
GUI(Graphical User Interface). In future we can make android
application by using this algorithm and improve them by other
classifiers and proposed algorithm.
Limitation of existing work:
• More optimization is needed for accuracy of the result.
• We require prior information for segmentation.
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7757
•we need to have more dataset to reach the more accuracy and
to get faster result.
To overcome these limitations we have a new methodology
for automatic detection as well as classification of plant Leaf
diseases using image segmentation has been proposed.
The advantages of proposed algorithm are as described under.
In existing methods it requires user input to select the best
segmentation which includes the ROI of input image while
proposed algorithm method is fully automatic.
The accuracy of detecting the Disease is enhanced with
proposed algorithm compare to the method used in this
algorithm.
REFERENCES
[1] Singh, Vijai, and A. K. Misra. "Detection of plant
Leaf diseases using image segmentation and soft
computing techniques." Information Processing in
Agriculture 4, no. 1 (2017): 41-49.
[2] Dubey S., Dixit P., Singh h N., Gupta N, “ infected
Part Detection using K-Means Clustering
Segmentation Technique” International Journal of
Artificial Intelligence and Interactive Multimedia,
Vol. 2, No. 2. (2013): 65–72.
[3] Blasco J., Alexios N., Molto E., “Machine Vision
System for automatic quality grading of fruit
proceeding of science direct, Automation and
Emerging Technologies”, (2003): 415–423.
[4] Ravi C.Shinde, Jibu Mathew C and Prof. C. Y.
Patil”Segmentation Technique for Soybean Leaves
Disease Detection” International Journal of
Advanced Research Volume 3, Issue 5, (2015): 522-
528
[5] Rabia Masood, S.A. Khan, M.N.A. Khan , Plants
Disease Segmentation using Image Processing I.J.
Modern Education and Computer Science, no. 1,(
2016) :24-32
[6] Goodridge, Wayne, Margaret Bernard, René Jordan,
and Reanne Rampersad. "Intelligentdiagnosis of
diseases in plants using a hybrid Multi-Criteria
decision making technique." Computers and
Electronics in Agriculture 133 (2017): 80-87.
[7] S. Arivazhagan, R. NewlinShebiah*,S. Ananthi, S.
Vishnu Varthini. “Detection of unhealthy region of
plant leaves and classification of plant Leaf diseases
using texture features.” March,(2013):211-217
[8] Tomita, Satoru, Seishi Ikeda, Shogo Tsuda,
Nobutaka Someya, Kenji Asano, Jun Kikuchi, Eisuke
Chikayama, Hiroshi Ono, and Yasuyo Sekiyama. "A
survey of metabolic changes in potato leaves by
NMR‐ based metabolic profiling in relation to
resistance to late blight Disease under field
conditions." Magnetic Resonance in Chemistry 55,
no. 2 (2017): 120-127.
[9] Yasikka,Santhi E2 Assistant Professor, Department
of ECEErode, T.N, India. “Foliage Measurement
Using Image Processing Techniques” international
journal for trends in engineering &technology
volume 5 issue 2 – may (2015): 68-72.
[10] Johannes, Alexander, Artzai Picon, Aitor Alvarez-
Gila, Jone Echazarra, Sergio Rodriguez-Vaamonde,
Ana Díez Navajas, and Amaia Ortiz-Barredo.
"Automatic plant Disease diagnosis using mobile
capture devices, applied on a wheat use
case." Computers and Electronics in Agriculture 138
(2017): 200-209.
[11] Zhang, Shanwen, Xiaowei Wu, Zhuhong You, and
Liqing Zhang. "Leaf image based cucumber Disease
recognition using sparse representation
classification." Computers and electronics in
agriculture 134 (2017): 135-141.
[12] Ray, Monalisa, Asit Ray, Swagatika Dash, Abtar
Mishra, K. Gopinath Achary, Sanghamitra Nayak,
and Shikha Singh. "Fungal Disease detection in
plants: Traditional assays, novel diagnostic
techniques and biosensors." Biosensors and
Bioelectronics 87 (2017): 708-723.
[13] Chuanlei, Zhang, Zhang Shanwen, Yang Jucheng,
Shi Yancui, and Chen Jia. "Apple Leaf Disease
identification using genetic algorithm and correlation
based feature selection method." International
Journal of Agricultural and Biological
Engineering10, no. 2 (2017): 74-83.
[14] Khater, Mohga, Alfredo de la Escosura-Muñiz, and
Arben Merkoçi. "Biosensors for plant pathogen
detection." Biosensors and Bioelectronics 93 (2017):
72-86.
[15] Mrunalini R. Badnakhe, Prashant R. Deshmukh,
“Infected Leaf Analysis and Comparison by Otsu
Threshold and k-Means Clustering” IJARCSSE, vol.
2(3),( 2012): 449-452.
[16] Sushil R. Kamlapurkar Department of Electronics &
Telecommunications, Karmaveer KakasahebWagh
Institute of Engineering Education & Research,
Nashik, India “Detection of Plant Leaf Disease Using
Image Processing Approach” International Journal of
Scientific and Research Publications, Volume 6,
Issue 2,( 2016) :2250-3153
[17] Lima, Marta RM, Mafalda L. Felgueiras, Ana Cunha,
Gisela Chicau, Federico Ferreres, and Alberto CP
Dias. "Differential phenolic production in leaves of
Vitis vinifera cv. Alvarinho affected with esca
Disease." Plant Physiology and Biochemistry 112
(2017): 45-52.
[18] Baxes, Gregory A. Digital image processing:
principles and applications. New York: Wiley,
(1994).
[19] Pitas, Ioannis. Digital image processing algorithms
and applications. John Wiley & Sons, (2000).
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 10 (2018) pp. 7724-
© Research India Publications. http://www.ripublication.com
7758
[20] Gonzalez, Rafael C., and Richard E. Woods. "Digital
image processing prentice hall." Upper Saddle River,
NJ (2002).
[21] Common plant Disease of leaves available at:
https://www.proflowers.com/blog/plant-diseases
[22] Plant Disease classification available at:
https://www.planetnatural.com/pest-problem-
solver/plant-Disease
[23] Kaur, Sukhvir, Shreelekha Pandey, and Shivani
Goel. "Plants Disease Identification and
Classification through Leaf Images: A
Survey." Archives of Computational Methods in
Engineering(2018): 1-24.
[24] Akhter, Yusuf, and Jawaid Ahmad Khan. "Genome
wide identification of cotton (Gossypium hirsutum)-
encoded microRNA targets against Cotton Leaf curl
Burewala virus." Gene 638 (2018): 60-65.
[25] Haritha, D. "Performance Evaluation of Leaf Disease
Measure." In Data Engineering and Intelligent
Computing, (2018): 41-49.