Research on Grading Method for Jin Guan Apples based on Machine Vision
DOI:
https://doi.org/10.54097/wn8s4k97Keywords:
Machine Vision, Apple Grading, BP Neural Network, Image ProcessingAbstract
As the demand for apples increases, so do the expectations for apple quality. To address the time-consuming and labor-intensive nature of apple grading, this paper focuses on the Jin-Guan apple variety and applies machine vision techniques to extract three key features: maximum transverse diameter, shape index, and surface color. A backpropagation neural network (BP neural network) is employed to achieve accurate grading of the apples. First, by analyzing the relationships between the RGB color space components in the original images, the apple images are extracted using the method of comparing the R channel value to the B channel value. Gaussian filtering is then applied to remove image noise. Second, the complete apple contour is extracted using an improved Sobel operator method. The maximum transverse diameter and shape index of the apple are calculated based on the pixel coordinates along the contour, and the apple's surface color is determined using a nearest-neighbor classifier. Finally, a BP neural network model is established and trained to perform the grading. A total of 160 apples were used for training, and 140 for testing. The results show that the grading accuracy reached 92.14%, and the grading efficiency was approximately 1.7 times that of a skilled human grader. This grading method provides a technical reference for apple grading processes.
Downloads
References
[1] Yang Q. An approach to apple surface feature detection by machine vision [J]. Computers & Electronics in Agriculture, 1994, 11(2-3): 249-264.
[2] Nakano K. Application of neural networks to the color grading of apples [J]. Computers and Electronics in Agriculture, 1997, 18(2-3): 105-116.
[3] Chen H, Fei J Y. Online apple grading based on decision fusion of image features [J]. Transactions of the Chinese Society of Agricultural Engineering, 2017, 33(01): 285-291.
[4] Li Long, Peng Yankun, Li Yongyu. Design and experiment on grading system for online non-destructive detection of internal and external quality of apple [J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2018, 34(9): 267-275.
[5] Chen Yanjun, Zhang Junxiong, Li Wei, et al. Grading method of apple by maximum cross-sectional diameter based on computer vision[J]. Transactions of the CSAE, 2012, 28(2): 284-288.
[6] Leemans V, Magein H, Destain M F. Defects segmentation on ‘Golden Delicious’ apples by using colour machine vision [J]. Computers and Electronics in Agriculture, 1998, 20(2): 117-130.
[7] Sofu M M, Er O, Kayacan M C, et al. Design of an automatic apple sorting system using machine vision [J]. Computers and Electronics in Agriculture, 2016, 127: 395-405.
[8] Bao Xiaoan, Zhang ruilin, Zhong lehai. Apple grade identification method based on artificial neural network and image processing [J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2018, 34(9): 267-275.
[9] Kavdr R, Guyer D E. Comparison of Artificial Neural Networks and Statistical Classifiers in Apple Sorting using Textural Features [J]. Biosystems Engineering, 2004, 89(3): 331-344.
[10] Mizushima A, Lu R. An image segmentation method for apple sorting and grading using support vector machine and Otsu’s method [J]. Computers & Electronics in Agriculture, 2013, 94: 29-37.
[11] Jana S, Basak S, Parekh R. Automatic fruit recognition from natural images using color and texture features [C]. Devices for Integrated Circuit. IEEE, 2017: 620-624.
[12] Yu Y, Velastin S A, Yin F. Automatic grading of apples based on multi-features and weighted K-means clustering algorithm [J]. Information Processing in Agriculture, 2019, 1-10.
[13] Huang Chen, Fei Jiyou. Online apple grading based on decision fusion of image features[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2017, 33(1): 285-291.
Downloads
Published
Issue
Section
License
Copyright (c) 2024 Frontiers in Computing and Intelligent Systems

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

