IJERT Classification of Fruits Based On
IJERT Classification of Fruits Based On
classification of fruits takes care of various features like two phase are Training phase and testing phase. 100 image of
area, perimeter, major axis length and minor axis length. each fruit is taken out of which 50 are used for training and
The image generally consists of pixels which includes RGB remaining 50 images are used for testing.
(Red,Green and blue) components. For calculating these
shape features RGB image is converted into gray scale Training phase: 50 images are used to train the neural
image.[4] . When the image is converted into gray scale network and it gained information about each image. During
image then it represents a different intensity value. There training phase neural network is trained to identify the fruit
is a difference in intensity value of an object to be classified on shape, color and texture bases.
and the background. A threshold value is decided to separate
Testing Phase: neural network identified the image of
an object from its background. With the help of this
unknown fruit on the bases of earlier information that it
threshold value a gray scale image is converted into gained about. Neural network analyses the various shape,
binary image in which the value greater than the threshold color and texture features for unknown image and compared
is 1 and the value lower than the threshold is 0. With the with that are store in the data base and classified the
help of this binary image different shape features are unknown imaged to desired known fruit image on the basis
calculate. The most common shape features calculated of knowledge gained by neural network during training.
from the image are area, perimeter, major axis length and
minor axis length.[11,12]
II COLOR FEATURE
An image generally consist of RGB components (red, green
and blue) which represents three planes M*N*3.[5] Fruits
classified on color bases consist of these three color space
RGB. RGB color space is converted into another color space
such as HIS, HSV etc [6].HSI stand for hue, saturation and
intensity. Pure color attribute of image is described by
hue and the amount by which pure color image is diluted
by white color is described by saturation. The RGB
components are separated from the original image, and the
Hue (H), Saturation(S) and Intensity (I) components are Fig.3 Block Diagram for Classification of Fruits on Texture basesF
occurrence matrix is used to calculate different texture Images Apple Orange Banana Mango Pomegranate
features[8].Gray level co-occurrence matrix(GLCM) is used Shape feature
to extract texture features of an image. The Grey Level Co- Area 53035 38059 60593 98729 81640
occurrence Matrix, GLCM is also called as Grey Tone Perimeter 10.2426 806.222 1403.5 1328.2 1487.68
Spatial Dependency Matrix. It represents the image in the Major-axis 5.56553 233.843 549.187 420.059 328.759
length
form of tabulation which contains different combinations Minor-axis 2.53211 208.356 160.216 304.27 320.387
of pixel brightness value (gray levels) that occurs in an lenth
image.[9] To calculate different texture feature like
Color Feature Extraction-After the images capturing and
entropy,energy,homogeneity and dissimilarity a gray level
resized the RGB image of different fruits are converted into
co-occurrence matrix is created[14,15].
different color space like HSV,HIS, L×a×b ,YCbCr etc.with
III. PROPOSED SCHEME the help of MATLAB command. After the images wear
Methodology for the fruit classification is mention as above converted in different color space mean and standard
whose operation divided into two phase .Neural network is deviation is calculated for each color space and Sixteen color
used to classify the fruit in different categories. Neural features are extracted as shown in Table 4.2[10,13]
network is consist of three layer are input layer, hidden layer
and output layer. Working of neural network is divided into
Table 4.2 Sixteen Color Feature Extracted for Five Fruit Table 4.3 22 Texture features extracted for five fruits
Pomegrana Images Pomegranat
Images Apple Orange Banana Mango Apple Orange Banana Mango
te Texture e
Color feature
0.16250 0.06653 0.0466 feature
Red mean 0.049865 0.042253 Energy 2.0900 2.4900 5.0600 3.3500 2.5300
9 5 77
Red standard 0.03662 0.02340 0.0202 Entropy 0.0128 0.0090 0.0247 0.0116 0.0116
0.01427 0.009642 Contrast 0.9900 0.9950 0.9950 0.9950 0.9920
deviation 5 3 03
0.11237 0.2091 Variance 0.9900 0.9950 0.9950 0.9950 0.9920
Blue mean 0.13995 0.188167 0.20816
6 23 192.512 293.388 815.562 233.588
Correlation 92.4434
Blue standard 0.04244 0.0898 1 6 8 7
0.03702 0.054137 0.093184
deviation 5 81 Homogeneit
19.1649 30.3257 81.2426 30.5873 14.2692
0.12793 0.01847 0.0436 y
Green mean 0.027767 0.084059
Year
4 8 64 Dissimilarit
0.0128 0.0089 0.0226 0.0116 0.0116
Green standard 0.25891 0.24488 0.2311 y
0.243238 0.215012
deviation 1 3 06 Max.
0.8095 0.8484 0.7261 0.7201 0.7095
0.11237 0.2091 probability,
Hue mean 0.13995 0.188167 0.20816
6 23 Sum of
0.5231 0.4546 0.7708 0.7213 0.7048
Hue standard 0.04244 0.0898 squares
0.03702 0.054137 0.093184
deviation 5 81 Sum
0.9936 0.9955 0.9890 0.9942 0.9942
Saturation 0.09780 0.14932 0.1432 average
0.11631 0.109527
mean 1 5 17 Sum
0.9936 0.9955 0.9889 0.9942 0.9942
Saturation variance
0.09134 0.11235 0.1198
standard 0.094047 0.108023 Sum
6 7 76 0.8983 0.9206 0.8503 0.8460 0.8383
deviation entropy
0.01397 0.02142 0.0380 DV 2.0600 2.4513 5.0223 3.3067 2.4991
Cb mean 0.036676 0.017633
4 3 23 DE 2.4300 2.4992 3.1990 2.8721 2.6741
Cb standard 0.49852 0.49464 0.4862 M CC 6.1400 7.9117 16.0193 9.8056 6.9099
0.491718 0.494115
deviation 3 7 94 IMC1 0.5140 0.4483 0.7516 0.7132 0.6968
2.12973 2.77117 0.7511 IMC2 0.0128 0.0090 0.0247 0.0116 0.0116
Cr mean 1.461737 5.904745
8 5 03 ID 0.0686 0.0512 0.1080 0.0633 0.0631
Cr standard 0.49970 0.94829 0.2054 I DN 0.8894 0.9085 0.8756 0.9199 0.9159
0.422866 2.618134
deviation 4 5 75 IDMN 0.7532 0.7290 0.8360 0.8410 0.8340
4.55713 6.81226 11.709 CS 0.9986 0.9990 0.9975 0.9987 0.9987
a* mean 10.88757 5.971108
( D)
OVERALL CONCLUDED
CLASSIFICATION
shape base
100 classification
ACCURACY PERCENTAGE
90 color base
80 classification
70
TEXTURE BASED CLASSIFICATION 60 texture base
50 classification
40
color and
30 texture based
20 classification
10
0
FRUITS
VII. ACKNOWLEDGMENT
The authors would like to acknowledgement to P.G.
Coordinator, Faculty of Engineering Mewar University
for his valuable suggestions & guides.
REFERENCES
[1] IndiaRankinAgriculturehttp://www.apeda.gov.in/apedawebsite/six_he
ad_product/FFV.htm
[2] Kyaw, M.M., Ahmed, S.K., Sharrif, Z.A.M. “Shape-based sorting of
agricultural produce using support vector machines in a
MATLAB/SIMULINK environment”IEEE: pp. 135-139, 2009
[3] Rao, P.S., Renganathan, S. “New approaches for size determination of
apple fruits for automatic sorting and grading” Iranian Journal of
Electrical and computer engineering, 1,2002.
[4] Riyadi, S., Rahni, A.A.A., Mustafa, M.M., Hussain, A.” Shape
characteristics analysis for papaya size classification” IEEE: pp. 1-5,
2007
[5] Buzera, M., Groza, V., Prostean, G., Prostean, O. “Techniques of
analysing the colour of produces for automatic classification” IEEE.
pp. 209-214, 2008.
[6] Gonzalez, R.C., Woods, R.E., Eddins, S.L. “Digital image processing
using MATLAB” Pearson Education India, 2004
[7] Feng, G., Qixin, C. “Study on color image processing based
intelligent fruit sorting system” IEEE. pp. 4802-4805, 2004.
[8] Clausi, D.A. “An analysis of co-occurrence texture statistics as a
function of grey level quantization. Canadian Journal of remote
sensing”, 28(1): pp. 45-62, 2002
[9] Mustafa, N.B.A., Arumugam, K., Ahmed, S.K., Sharrif, Z.A.M.
“Classification of fruits using Probabilistic Neural Networks-
Improvement using color feat ures” IEEE: pp. 264-269, 2011.
[10] Jitarwal,Yashpal,Khan T.A,Mangal Pawan,“An Enhanced Technique
for Classification of Fruits using Shape Color andTexture
Features”,International Journals of Advanced Research in Computer
Science and Software Engineering,ISSN: 2277-128X (Volume-7,
Issue-7),pp.408-411, 2017.
[11] Mustafa, N.B.A., Fuad, N.A., Ahmed, S.K., Abidin, A.A.Z., Ali, Z.,
Yit, W.B., Sharrif, Z.A.M. “Image processing of an agriculture
produce: Determination of size and ripeness of a banana”IEEE: pp. 1-
7,2008
[12] P.Deepa, S.N.G. “A Comparative Analysis of Feature Extraction
Methods for Fruit Grading Classifications” International Journal of
Emerging Technologies in Computational and Applied Sciences,
138(13): pp. 221-225,2013.
[13] Gatica, G., Best, S., Ceroni, J., Lefranc, G. “Olive Fruits Recognition
Using Neural Networks” Procedia Computer Science, 17,2013
[14] Sakhare, S.V., Nasre, V.G. “Design of feature extraction in content
based image retrieval (CBIR) using color and texture” International
Journal of Computer Science & Informatics, 1: pp. 57-61,2011
[15] Anami, B.S., Suvarna, S.N., Govardhan, A. “ A combined color,
texture and edge features based approach for identification and
classification of indian medicinal plants” International Journal of
Computer Applications, 6(12): pp. 45-51,2010.