Abstract:Abstract:In order to solve the problem that it is difficult to identify and segment the overlapping grape clusters in the natural conditions, this paper selected Xiahei grape as the experimental sample to carry out relevant research. Firstly, the RGB color channel was transformed into HSV color channel and YCbCr color channel. Through histogram analysis and comparison of each component of HSV color channel and YCbCr color channel, H component in HSV space was determined as the experimental object of image preprocessing. Then, K-means clustering algorithm was used to extract the H component in HSV color space. To obtain the region of overlapping grape clusters, Sobel operator was used to extract the contour of the overlapping grape clusters. Then the contour analysis method was used to analyze the contour of the overlapping grape clusters, and the contour extreme points and the central point of the overlapping grape clusters were obtained. By analyzing the aspect ratio of grape cluster region, we could judge the overlapping type of grape clusters. If it was a single grape cluster, it would be identified directly. If it was a veritcally overlapping grape cluster, rotated the image 90° anticlockwise, and then used the same processing method as the left and right overlapping grape clusters proposed in this paper. The general target grape cluster area was obtained by contour analysis. After that, we could solve the quasi-central point by the central point between the midpoint and the right extreme point, and the intersection point of the two lines between up and lower extreme points and left and right extreme points in the target grape cluster region. The improved Chan-Vese model limited the iteration times of the Chan-Vese model by using the distance between the center point and the quasi-central point. After that, based on the ChanVese model and the quasi-central point as the origin, the iterative identification of target grape cluster was carried out. The binary image processing was carried out for the grape cluster area obtained by Chan-Vese, and the contour information of the overlapping boundary was obtained. Finally, image fusion was used to fuse the grape cluster contour obtained by Chan-Vese model with the original contour. The test results show that the average recognition accuracy of the target grape cluster on the left of the overlapping grape cluster was 92.19%, and the average false positive rate was 2.82%. The average recognition accuracy of the target grape cluster on the right of the overlapping grape cluster was 87.22%, and the average false positive rate was 6.03%. The average recognition accuracy of all the target grape cluster was 89.71%, and the average false positive rate was 4.24%. Compared with the existing segmentation method which only based on contour analysis, the method proposed in this paper could recognize and segment the whole target grape cluster, and greatly improve the accuracy of recognition and segmentation. This method is more conducive to acquisition the information of the target grape cluster picking point,the study provide an efficient and stable recognition and segmentation algorithm for the grape picking robot to successfully pick overlapping grape clusters.