Welcome to Smart Agriculture

Smart Agriculture ›› 2021, Vol. 3 ›› Issue (1): 86-95.doi: 10.12133/j.smartag.2021.3.1.202102-SA007

• Topic--Frontier Technology and Application of Agricultural Phenotype • Previous Articles     Next Articles

Detection and Grading Method of Pomelo Shape Based on Contour Coordinate Transformation and Fitting

LI Yan1(), SHEN Jie1, XIE Hang1, GAO Guangyin1, LIU Jianxiong1, LIU Jie1,2,3()   

  1. 1.College of Engineering, Huazhong Agricultural University, Wuhan 430070, China
    2.Key Laboratory of Agricultural Equipment in Mid-lower Yangtze River, Ministry of Agriculture and Rural Affairs, Wuhan 430070, China
    3.Citrus Mechanization Research Base, Ministry of Agriculture and Rural Affairs, Wuhan 430070, China
  • Received:2021-02-05 Revised:2021-03-01 Online:2021-03-30

Abstract:

Automatic grading method of pomelo fruit according to the shape and size is urgently needed in the industry since the work mainly depends on artificial judgment currently. In this research, a method, which detected the vertical and horizontal size of pomelo by using contour coordinate transformation fitting, fruit shape feature extraction and direction angle compensation algorithm, while it determined the shape defects based on fruit shape index, was proposed. The image acquisition system was self-designed and built up with a CMOS camera, a dot matrix LED light source, a plane mirror, the computer, a box and brackets. The image data containing whole surface information of Shatian pomelo samples with different sizes and shapes were collected by this system. The G-B component grayscale image was chosen for denoising and segmentation. The Laplacian edge detection algorithm was implemented to extract the edge pixels of the fruit. The polynomial fitting method was applied to converse the rectangular coordinates to polar coordinates so that the fruit shape description was simplified. The characteristic point polar angle value was used to compensate the random direction of the vertical and horizontal diameters of the sample. Then the vertical and horizontal diameters of fruit were calculated after classifying the sample shapes into the spherical and the pear-like categories. For the involved 168 pomelo samples, the average error, maximum absolute error and average relative error of the vertical diameters were 2.23 mm, 7.39 mm and 1.6% respectively, while these parameters of the horizontal diameters were 2.21 mm, 7.66 mm and 1.4% respectively. The fruit shape discriminant model was established by using BP neural network algorithm based on the seven features extracted from the fitting function and verified by independent validation set including 3 peak heights, 3 peak widths and 1 trough value difference. The total recognition rate of shape identification was 83.7%. The results illustrated that the method had the potential to measuring the pomelo size and shape for grading fast and non-destructively.

Key words: pomelo contour, fruit shape detection, back propagation neural network, coordinate system conversion, image processing, fruit shape discriminant model

CLC Number: