Automatic Classification of Fruits and Vegetables: A Texture-Based Approach

Fruits and Vegetables are very important food product for the daily life of the humans. Classification of fruits and vegetable is needed for every aspect of the agricultural industry. It is quite challenging to automatically classify fruits and vegetables from digital images. The task of automatic classification becomes more difficult when the image is captured from a different viewing angle. This paper proposes a complete texture-based approach for addressing the effect of viewing angle change to classify fruits and vegetables automatically. At first, a grayscale image is generated from the input color image. The grayscale version of the input image is used to extract multiple threshold values using the multilevel Otsu thresholding technique. Those threshold values are used to generate a set of binary images. The binary images pass through a border extraction process to generate the border image of every binary image. Finally, the border image is processed to calculate the fractal dimension. In parallel flow, the same grayscale image is processed to compute gray-level co-occurrence matrix based features. The fractal dimension and gray-level co-occurrence matrix based features are combined to make a feature vector for classifying the fruit and vegetable classes. Images are collected by covering the entire range of 0\(^\circ \)–360\(^\circ \) angle for each class in our dataset. In total, 1656 images of 23 classes of fruits and vegetables are used for experimentation. The maximum accuracy of the system is 98.33% with Naive Bayes classifier.

[1]  Kokichi Sugihara,et al.  Approximation of fruit skin patterns using spherical Voronoi diagrams , 2017, Pattern Analysis and Applications.

[2]  Labiba Souici-Meslati,et al.  Automatic analysis of handwriting for gender classification , 2014, Pattern Analysis and Applications.

[3]  Agma J. M. Traina,et al.  An Efficient Algorithm for Fractal Analysis of Textures , 2012, 2012 25th SIBGRAPI Conference on Graphics, Patterns and Images.

[4]  Giorgio Giacinto,et al.  One-class classification for oil spill detection , 2010, Pattern Analysis and Applications.

[5]  Seyed Hadi Mirisaee,et al.  A new method for fruits recognition system , 2009, 2009 International Conference on Electrical Engineering and Informatics.

[6]  Pragati Ninawe A Completion on Fruit Recognition System Using K-Nearest Neighbors Algorithm , 2014 .

[7]  R. N. Shebiah,et al.  Fruit Recognition using Color and Texture Features , 2010 .

[8]  Robert M. Haralick,et al.  Textural Features for Image Classification , 1973, IEEE Trans. Syst. Man Cybern..

[9]  N. Otsu A threshold selection method from gray level histograms , 1979 .

[10]  Chin-Tu Chen,et al.  Fractional box-counting approach to fractal dimension estimation , 1996, Proceedings of 13th International Conference on Pattern Recognition.

[11]  Ranjan Parekh,et al.  Intra-class Recognition of Fruits using Color and Texture Features with Neural Classifiers , 2016 .

[12]  Shin-Dug Kim,et al.  A Code Based Fruit Recognition Method Via Image Convertion Using Multiple Features , 2014, 2014 International Conference on IT Convergence and Security (ICITCS).

[13]  Fuji Ren,et al.  Fruit recognition based on multi-feature and multi-decision , 2014, 2014 IEEE 3rd International Conference on Cloud Computing and Intelligence Systems.

[14]  Yudong Zhang,et al.  Classification of Fruits Using Computer Vision and a Multiclass Support Vector Machine , 2012, Sensors.

[15]  Anand Singh Jalal,et al.  Robust Approach for Fruit and Vegetable Classification , 2012 .

[16]  B. Mandelbrot How Long Is the Coast of Britain? Statistical Self-Similarity and Fractional Dimension , 1967, Science.

[17]  Pau-Choo Chung,et al.  A Fast Algorithm for Multilevel Thresholding , 2001, J. Inf. Sci. Eng..

[18]  Jean A.T. Pennington,et al.  Classification of fruits and vegetables , 2009 .

[19]  Masayu Leylia Khodra,et al.  Toward new fruit color descriptor based on color palette , 2015, 2015 International Conference on Science in Information Technology (ICSITech).

[20]  Sapan Naik,et al.  Image Processing for Fruit Shape and Texture Feature Extraction - Review , 2015 .

[21]  Marcin Woźniak,et al.  Automatic classification of fruit defects based on co-occurrence matrix and neural networks , 2015, 2015 Federated Conference on Computer Science and Information Systems (FedCSIS).

[22]  Evans Miriti,et al.  Classification of selected apple fruit varieties using naive bayes , 2016 .

[23]  Arnold W. M. Smeulders,et al.  The Amsterdam Library of Object Images , 2004, International Journal of Computer Vision.

[24]  Masayu Leylia Khodra,et al.  Histogram based color pattern identification of multiclass fruit using feature selection , 2015, 2015 International Conference on Electrical Engineering and Informatics (ICEEI).

[25]  Mohamed Rizon,et al.  Detecting Mango Fruits by Using Randomized Hough Transform and Backpropagation Neural Network , 2014, 2014 18th International Conference on Information Visualisation.

[26]  S. M. M. Roomi,et al.  Classification of mangoes by object features and contour modeling , 2012, 2012 International Conference on Machine Vision and Image Processing (MVIP).

[27]  Md.Towhid Chowdhury Vegetables detection from the glossary shop for the blind. , 2013 .

[28]  Saswati Naskar,et al.  A Novel Fruit Recognition Technique using Multiple Features and Artificial Neural Network , 2015 .

[29]  Jacques Wainer,et al.  Automatic fruit and vegetable classification from images , 2010 .

[30]  Hélio Pedrini,et al.  Automatic Fruit and Vegetable Recognition Based on CENTRIST and Color Representation , 2016, CIARP.

[31]  Leanne Lai Hang Chan,et al.  Multi-class fruit detection based on multiple color channels , 2015, 2015 International Conference on Wavelet Analysis and Pattern Recognition (ICWAPR).

[32]  Aboul Ella Hassanien,et al.  Automatic fruit classification using random forest algorithm , 2014, 2014 14th International Conference on Hybrid Intelligent Systems.

[33]  Nikolaos Mavridis,et al.  Image-based date fruit classification , 2012, 2012 IV International Congress on Ultra Modern Telecommunications and Control Systems.

[34]  Shin-Dug Kim,et al.  A Fruit Recognition Method via Image Conversion Optimized through Evolution Strategy , 2014, 2014 IEEE 17th International Conference on Computational Science and Engineering.