Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Arivazhagan S, Shebiah RN, Nidhyanandhan SS, Ganesan L (2010) Fruit recognition using color and texture features. J Emerg Trends Comput Inf Sci 1(2):90–94
Biswas H, Hossain F (2013) Automatic vegetable recognition system. Int J Eng Sci Invent 2(4):37–41
Capizzi G, Sciuto GL, Napoli C, Tramontana E, Woźniak M (2015) Automatic classification of fruit defects based on co-occurrence matrix and neural networks. In: 2015 federated conference on computer science and information systems (FedCSIS). IEEE, pp 861–867
Chaidee S, Sugihara K (2017) Approximation of fruit skin patterns using spherical voronoi diagrams. Pattern Anal Appl 20(3):783–795
Chowdhury MT, Alam MS, Hasan MA, Khan MI (2013) Vegetables detection from the glossary shop for the blind. IOSR J Electr Electron 8(3):43–53
Cornejo JYR, Pedrini H (2016) Automatic fruit and vegetable recognition based on centrist and color representation. In: Iberoamerican congress on pattern recognition. Springer, pp 76–83
Costa AF, Humpire-Mamani G, Traina AJM (2012) An efficient algorithm for fractal analysis of textures. In: Proceedings of the 2012 25th SIBGRAPI conference on graphics, patterns and images (SIBGRAPI). IEEE, pp 39–46
Dubey SR, Jalal A (2012) Robust approach for fruit and vegetable classification. Procedia Eng 38:3449–3453
Feng J, Lin WC, Chen CT (1996) Fractional box-counting approach to fractal dimension estimation. In: Proceedings of the 13th International Conference on Pattern Recognition, vol 2. IEEE, pp 854–858
Gambardella A, Giacinto G, Migliaccio M, Montali A (2010) One-class classification for oil spill detection. Pattern Anal Appl 13(3):349–366
Geusebroek JM, Burghouts GJ, Smeulders AW (2005) The amsterdam library of object images. Int J Comput Vis 61(1):103–112
Haidar A, Dong H, Mavridis N (2012) Image-based date fruit classification. In: Proceedings of the 2012 4th international congress on ultra modern telecommunications and control systems and workshops (ICUMT). IEEE, pp 357–363
Haralick RM, Shanmugam K et al (1973) Textural features for image classification. IEEE Trans Syst Man Cybern 6:610–621
Jana S, Parekh R (2016) Intra-class recognition of fruits using color and texture features with neural classifiers. Int J Comput Appl 148(11)
Kim Jy, Vogl M, Kim SD (2014) A code based fruit recognition method via image convertion using multiple features. In: Proceedings of the 2014 international conference on IT convergence and security (ICITCS). IEEE, pp 1–4
Kuang HL, Chan LLH, Yan H (2015) Multi-class fruit detection based on multiple color channels. In: Proceedings of the 2015 international conference on wavelet analysis and pattern recognition (ICWAPR). IEEE, pp 1–7
Liao PS, Chen TS, Chung PC et al (2001) A fast algorithm for multilevel thresholding. J Inf Sci Eng 17(5):713–727
Mandelbrot B (1967) How long is the coast of britain? Statistical self-similarity and fractional dimension. Science 156(3775):636–638
Meruliya T, Dhameliya P, Patel J, Panchal D, Kadam P, Naik S (2015) Image processing for fruit shape and texture feature extraction-review. Int J Comput Appl 129(8):30–33
Nanaa K, Rizon M, Rahman MNA, Ibrahim Y, Aziz AZA (2014) Detecting mango fruits by using randomized hough transform and backpropagation neural network. In: Proceedings of the 2014 18th international conference on information visualisation (IV). IEEE, pp 388–391
Naskar S, Bhattacharya T (2015) A fruit recognition technique using multiple features and artificial neural network. Int J Comput Appl 116(20)
Ninawe P, Pandey MS (2014) A completion on fruit recognition system using k-nearest neighbors algorithm. Int J Adv Res Comput Eng Technol (IJARCET) 3
Otsu N (1979) A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cybern 9(1):62–66
Pennington JA, Fisher RA (2009) Classification of fruits and vegetables. J Food Compos Anal 22:S23–S31
Rachmawati E, Khodra ML, Supriana I (2015) Histogram based color pattern identification of multiclass fruit using feature selection. In: Proceedings of the 2015 international conference on electrical engineering and informatics (ICEEI). IEEE, pp 43–48
Rachmawati E, Khodra ML, Supriana I (2015) Toward new fruit color descriptor based on color palette. In: Proceedings of the 2015 international conference on science in information technology (ICSITech). IEEE, pp 315–320
Rocha A, Hauagge DC, Wainer J, Goldenstein S (2010) Automatic fruit and vegetable classification from images. Comput Electron Agric 70(1):96–104
Ronald M, Evans M (2016) Classification of selected apple fruit varieties using naive bayes. Indian J Comput Sci Eng (IJCSE) 7(1):13–19
Roomi SMM, Priya RJ, Bhumesh S, Monisha P (2012) Classification of mangoes by object features and contour modeling. In: Proceedings of the 2012 international conference on machine vision and image processing (MVIP). IEEE, pp 165–168
Seng WC, Mirisaee SH (2009) A new method for fruits recognition system. In: Proceedings of the international conference on electrical engineering and informatics, 2009. ICEEI’09, vol 1. IEEE, pp 130–134
Siddiqi I, Djeddi C, Raza A, Souici-Meslati L (2015) Automatic analysis of handwriting for gender classification. Pattern Anal Appl 18(4):887–899
Vogl M, Kim JY, Kim SD (2014) A fruit recognition method via image conversion optimized through evolution strategy. In: Proceedings of the 2014 IEEE 17th international conference on computational science and engineering (CSE). IEEE, pp 1497–1502
Von Koch H (1904) Sur une courbe continue sans tangente obtenue par une construction géométrique élémentaire. Norstedt & soner
Wang X, Huang W, ** C, Hu M, Ren F (2014) Fruit recognition based on multi-feature and multi-decision. In: Proceedings of the 2014 IEEE 3rd international conference on cloud computing and intelligence systems (CCIS). IEEE, pp 113–117
Zawbaa HM, Hazman M, Abbass M, Hassanien AE (2014) Automatic fruit classification using random forest algorithm. In: Proceedings of the 2014 14th international conference on hybrid intelligent systems (HIS). IEEE, pp 164–168
Zhang Y, Wu L (2012) Classification of fruits using computer vision and a multiclass support vector machine. Sensors 12(9):12,489–12,505
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Singapore Pte Ltd.
About this chapter
Cite this chapter
Jana, S., Parekh, R., Sarkar, B. (2020). Automatic Classification of Fruits and Vegetables: A Texture-Based Approach. In: Mandal, J., Mukhopadhyay, S., Dutta, P., Dasgupta, K. (eds) Algorithms in Machine Learning Paradigms. Studies in Computational Intelligence, vol 870. Springer, Singapore. https://doi.org/10.1007/978-981-15-1041-0_5
Download citation
DOI: https://doi.org/10.1007/978-981-15-1041-0_5
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-15-1040-3
Online ISBN: 978-981-15-1041-0
eBook Packages: EngineeringEngineering (R0)