Abstract:Using CCD camera to dynamically collect real-time images of two sides of the apple, a flood filling + adaptive Ostu threshold segmentation algorithm is proposed to extract the outline of the apple. The minimum outer circle method is used to process the upper surface image of the apple to obtain the fruit diameter of the apple. Rectangular method is used to extract the apple's fruit shape features by processing the apple's side surface image; the image is converted from RGB to HSV space to extract the apple's coloring degree, fruit rust, and scar features, and the classification of the SVM decision tree based on the improved particle swarm algorithm Method for grading apples. The experimental results show that the recognition accuracy rates of extra-grade fruits, first-grade fruits, second-grade fruits and other outer fruits have reached 96%, 94%, 98% and 98%, respectively, and the classification rate has reached 4 s 1, which can satisfy the requirement for online-grading apples.