Abstract:A rapid separation algorithm was proposed to solve the issue of cherry overlapping on sorting lines caused by cherries??small size, which negatively impacted sorting efficiency. The algorithm aimed to improve the accuracy and speed of cherry separation, addressing the problem of different overlapping scenarios: the proposed algorithm efficiently combined centroid detection and concave point matching to separate cherries. Firstly, the foreground image was expanded by using edge tangent extension and the distance transform values of the cut fruit bodies were accurately calculated. The centroid of the cherries was then extracted by using the distance transform and neighborhood maximum methods. The thresholding and small window maximum methods were used to accelerate centroid extraction. Curvature analysis and point clustering methods were employed to accurately detect the concave points of the inner and outer contours for concave point extraction. These concave points were used to handle areas with varying overlapping situations and applied concave point matching to filter out preliminary separation lines. Finally, to enhance segmentation accuracy, the regions around the separation lines, which might affect the fruit’s shape, were sharpened by using Unsharp Mask ( USM), and refined segmentation was performed by incorporating gradient information, resulting in more accurate overlapping separation curves. Experimental results showed that the centroid detection method proposed achieved precision and recall rates of 98. 54% and 97. 93% , respectively, improving by 5. 64 and 11. 18 percentage points compared with that of the distance transform erosion method. The precision and recall rates for the concave point detection were 92. 95% and 94. 76% , respectively, showing improvements of 3. 52 and 20. 58 percentage points over that of the convex hull method. The proposed algorithm demonstrated greater precision in separating cherries under various overlapping conditions than watershed-based separation methods. On an AMD Ryzen 5 3600 6-Core Processor, the segmentation of 989 pixel × 200 pixel images took 6 ms. The proposed method achieved high detection accuracy and significantly reduced processing times, making it suitable for real-time processing in cherry sorting production lines. It effectively met the demands of both accuracy and efficiency for the industry.