Cucumber appearance quality detection under complex background based on image processing

Haijian Ye, Chengqi Liu, Peiyun Niu

Abstract


Cucumber fruit appearance quality is an important basis of growth status. In order to improve the quality detection accuracy and processing efficiency of cucumber color image under complicated background, an improved GrabCut algorithm was proposed to extract the cucumber boundary. Firstly, including pixel size normalization, rectangular box set and scale image resolution, pretreatments of cucumber image were adopted to reduce the iteration times and operation time of GrabCut algorithm. Then, the Gaussian mixture model was chosen to find out the possible prospect of target region and background region in the preprocessed rectangular frame on the preliminary modeling. Meanwhile, by the optimization of K-means cluster to the initial GMM model, the effective target area was extracted. Finally, the whole image noise and serrated boundary was removed by morphological operations to segment the outline of the complete target prospects with appropriate structure size. And then the cucumber appearance quality detection instrument was designed to extract the texture and shape features exactly, so that it could obtain cucumber appearance quality and evaluate its growth effectively. With the segmentation experiments by almost 300 cucumber original images from greenhouse in Shandong Province, the results showed that the improved GrabCut algorithm could effectively extract the complete and smooth boundary of cucumber. With relatively high segmentation evaluation index, the precision was 93.88%, the recall rate was 99.35%, the F-Measure reached 96.53%, and the misclassification error was controlled at minimum 5.84%. The average running time was shortened to 1.4023 s. The comparison results showed that the improved GrabCut algorithm was the best, followed by the SLIC and traditional GrabCut method. Cucumber appearance quality detection instrument could also extract more accurate feature parameters. And it could meet the basic growth condition assessment by automatic image processing.
Keywords: cucumber, complicated background, quality detection, image processing, GrabCut
DOI: 10.25165/j.ijabe.20181104.3090

Citation: Ye H J, Liu C Q, Niu P Y. Cucumber appearance quality detection under complex background based on image processing. Int J Agric & Biol Eng, 2018; 11(4): 193-199.

Keywords


cucumber, complicated background, quality detection, image processing, GrabCut

Full Text:

PDF

References


Li Z G, Thomas C. Quantitative evaluation of mechanical damage to fresh fruits. Trends in Food Science & Technology, 2014; 35(2): 138–150.

Dafni A, Moses Y, Avidan S, Dekel T. Detecting moving regions in CrowdCam images. Computer Vision and Image Understanding, 2017; 160: 36–44.

Loutfi A, Coradeschi S, Mani G K, Shankar P, Rayappan J B B. Electronic noses for food quality: A review. Journal of Food Engineering, 2015; 144: 103–111.

Boykov Y Y, Jolly M P. Interaction graph cuts for optimal boundary & region segmentation of objects in ND images. Computer Vision, IEEE, 2001.

Rother C, Kolmogorov V, Blake A. “GrabCut” – interative foreground extraction using iterated graph cuts. ACM Trans on Graphics, 2004; 23(3): 307–312.

Jahangiri M, Heesch D. Modified GrabCut for unsupervised object segmentation. 16th International Conference on Information Processing (ICIP), 2009; pp.2389–2392. DOI: 10.1109/ICIP.2009.5414500

Kim G, Sim J Y. Depth guided selection of adaptive region of interest for GrabCut-based image segmentation. Asia-Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA), 2016.

Kang S. Object Segmentation using mean-shift with grid-mask for grab cut algorithm. International Journal of software Engineering and its Applications, 2014; pp.409–416.

Poullot S, Satoh S. VabCut: A video extension of GrabCut for unsupervised video foreground object segmentation. International Conference on Computer Vision Theory and Applications, IEEE, 2014; pp.362–371.

Xu S X, Zhu Q Y. Seabird image identification in natural scenes using Grabcut and combined features. Ecological Informatics, 2016; 33: 24–31.

Lee G S, Lee S H, Kim G O, Park J H, Park Y S. A modified Grabcut using a clustering technique to reduce image noise. Symmetry, 2016; 8(7): 64. https://doi.org/10.3390/sym8070064

Huang L L. Study on grab cut and its improved algorithm. Software Guide, 2015; 5: 65–67. (in Chinese)

Yang S B, Li L M, Huang Y Q. Adaptive background image segmentation algorithm based on GrabCut. Computer System Application, 2017; 26(2): 174–178. (in Chinese)

Hu Z L, Guo M. Fast segmentation in color image based on SLIC and GrabCut. Computer Engineering and Applications, 2016; 52(2): 186–190. (in Chinese)

Cao Y, Jiang Y, Gao H, Chen H, Fang X, Mu H, Tao F. Development of a model for quality evaluation of litchi fruit. Computers and Electronics in Agriculture, 2014; 106: 49–55.

Elortondo F J P, Ojeda M, Albisu M, Salmerón J, Etayo I, Molina M. Food quality certification: An approach for the development of accredited sensory evaluation methods. Food Quality and Preference, 2007; 18(2): 425–439.

Zhuo C, Chen D. Evaluation factors of Kumquat quality determined by the principal component analysis. Subtropical Agriculture Research, 2011; 7(2): 132–135.

Zhang B, Huang W, Li J, Zhao C, Fan S, Wu J, Liu C. Principles, developments and applications of computer vision for external quality inspection of fruits and vegetables: A review. Food Research International, 2014; 62: 326–343.

Zhang H, Yang S, Joyce D C, Jiang Y, Qu H, Duan X. Physiology and quality response of harvested banana fruit to cold shock. Postharvest Biology and Technology, 2010; 55(3): 154–159.

Zhuo C, Chen D. Evaluation factors of Kumquat quality determined by the principal component analysis. Subtropical Agriculture Research, 2011; 7(2): 132–135.

Zhang H, Han T, Wang Y, Li L. Selection of factors for evaluating peach

(Prunus persica) fruit quality. Transactions of the CSAE, 2006; 22(8): 235–239.

Chen Q, Zhang C, Zhao J, Ouyang Q. Recent advances in emerging imaging techniques for non-destructive detection of food quality and safety. TrAC Trends in Analytical Chemistry, 2013; 52: 261–274.

Abbaszadeh R, Rajabipour A, Ahmadi H, Mahjoob M J, Delshad M. Prediction of watermelon quality based on vibration spectrum. Postharvest Biology and Technology, 2013; 86: 291–293.

Cristina M, Laura F, Riccardo G, Ernestina C, Riccardo R. GLCM, an image analysis technique for early detection of biofilm. Journal of Food Engineering, 2016; 185: 48–55.

Hua S Y, Shi P. GrabCut color image segmentation based on region of interest. International Congress on Image and Signal Processing, IEEE, 2014.

Rother C, Kolmogorov V. An experimental comparison of min-cut/max-flow algorithms for energy minimization in vision. Tissue Engineering, 2005; 11(12): 1631–1639.

Kim K S, Yoon Y J, Kang M C, Sun J Y, Ko S J. An improved GrabCut using a saliency map. IEEE 3rd Global Conference on Consumer Electronics (GCCE). 2014.

Guo C X, Li Z B, Qiao X, Li C, Yue J. Image segmentation of underwater sea cucumber using GrabCut with saliency map. Transactions of the CSAM, 2015; 46(S1): 147–152. (in Chinese)

Taichi I, Shunji K. Evaluation of bending behavior of flexible pipe using digital image processing. Procedia Engineering, 2017; 171: 1272–1278.

Achanta R, Shaji A, Smith K, Lucchi A, Fua P, Süsstrunk S. SLIC superpixels compared to state-of-the-art superpixel methods. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2012; 34(11): 2274–2282. DOI: 10.1109/TPAMI.2012.120




Copyright (c) 2018



2023-2026 Copyright IJABE Editing and Publishing Office