摘要
[目的/意义]自然环境中鲜食葡萄的快速识别与精准定位是实现鲜食葡萄机器人自动采摘的先决条件。[方法]本研究基于改进的K-means聚类算法和轮廓分析法提出一种鲜食葡萄采摘点自动定位的方法。首先,采用加权灰度阈值作为聚类算法相似度的判定依据,并以此为基础提出一种自适应调整K值的K-means聚类算法,实现鲜食葡萄的快速有效识别检测;然后,利用提出的轮廓分析法获得果梗轴和采摘点感兴趣区域,利用几何方法实现鲜食葡萄采摘点快速准确定位;最后,利用采集的917张鲜食葡萄图像对本研究提出的算法进行实验验证。[结果和讨论]本研究提出算法定位的鲜食葡萄采摘点与最优采摘点的误差小于12个像素的成功率为90.51%,平均定位时间为0.87 s,实现鲜食葡萄采摘点的快速准确的定位。在篱壁式种植方式与棚架式种植方式下分别进行50次模拟仿真试验,结果表明,篱壁式紫葡萄采摘点定位成功率为86.00%,棚架式紫葡萄识别定位成功率达到92.00%,篱壁式绿葡萄采摘点定位成功率为78.00%,棚架式绿葡萄识别定位成功率为80.00%,整体试验效果较好。[结论]本研究可为鲜食葡萄采摘机器人实现精准采摘葡萄提供技术支撑。
[Objective] Rapid recognition and automatic positioning of table grapes in the natural environment is the prerequisite for the automatic picking of table grapes by the picking robot.[Methods] An rapid recognition and automatic picking points positioning method based on improved K-means clustering algorithm and contour analysis was proposed.First,euclidean distance was replaced by a weighted gray threshold as the judgment basis of Kmeans similarity.Then the images of table grapes were rasterized according to the K value,and the initial clustering center was obtained.Next,the average gray value of each cluster and the percentage of pixel points of each cluster in the total pixel points were calculated.And the weighted gray threshold was obtained by the average gray value and percentage of adjacent clusters.Then,the clustering was considered as have ended until the weighted gray threshold remained unchanged.Therefore,the cluster image of table grape was obtained.The improved clustering algorithm not only saved the clustering time,but also ensured that the K value could change adaptively.Moreover,the adaptive Otsu algorithm was used to extract grape cluster information,so that the initial binary image of the table grape was obtained.In order to reduce the interference of redundant noise on recognition accuracy,the morphological algorithms(open operation,close operation,images filling and the maximum connected domain) were used to remove noise,so the accurate binary image of table grapes was obtained.And then,the contours of table grapes were obtained by the Sobel operator.Furthermore,table grape clusters grew perpendicular to the ground due to gravity in the natural environment.Therefore,the extreme point and center of gravity point of the grape cluster were obtained based on contour analysis.In addition,the linear bundle where the extreme point and the center of gravity point located was taken as the carrier,and the similarity of pixel points on both sides of the linear bundle were taken as the judgment basis.The line corresponding to the lowest similarity value was taken as the grape stem,so the stem axis of the grape was located.Moreover,according to the agronomic picking requirements of table grapes,and combined with contour analysis,the region of interest(ROI) in picking points could be obtained.Among them,the intersection of the grapes stem and the contour was regarded as the middle point of the bottom edge of the ROI.And the 0.8 times distance between the left and right extreme points was regarded as the length of the ROI,the 0.25 times distance between the gravity point and the intersection of the grape stem and the contour was regarded as the height of the ROI.After that,the central point of the ROI was captured.Then,the nearest point between the center point of the ROI and the grape stem was determined,and this point on the grape stem was taken as the picking point of the table grapes.Finally,917 grape images(including Summer Black,Moldova,and Youyong) taken by the rear camera of MI8 mobile phone at Jinniu Mountain Base of Shandong Fruit and Vegetable Research Institute were verified experimentally.[Results and Discussions] The results showed that the success rate was 90.51% when the error between the table grape picking points and the optimal points were less than 12 pixels,and the average positioning time was 0.87 s.The method realized the fast and accurate localization of table grape picking points.On top of that,according to the two cultivation modes(hedgerow planting and trellis planting) of table grapes,a simulation test platform based on the Dense mechanical arm and the single-chip computer was set up in the study.50 simulation tests were carried out for the four conditions respectively,among which the success rate of localization for purple grape picking point of hedgerow planting was 86.00%,and the average localization time was 0.89 s;the success rate of localization for purple grape identification and localization of trellis planting was 92.00%,and the average localization time was 0.67 s;the success rate of localization for green grape picking point of hedgerow planting was 78.00%,and the average localization time was 0.72 s;and the success rate of localization for green grape identification and localization of trellis planting was 80.00%,and the average localization time was 0.71 s.[Conclusions] The experimental results showed that the method proposed in the study can meet the requirements of table grape picking,and can provide technical supports for the development of grape picking robot.
作者
朱衍俊
杜文圣
王春颖
刘平
李祥
ZHU Yanjun;DU Wensheng;WANG Chunying;LIU Ping;LI Xiang(Shandong Agricultural Equipment Intelligent Engineering Laboratory/Shandong Provincial Key Laboratory of Horticultural/Machinery and Equipment,College of Mechanical and Electronic Engineering,Shandong Agricultural University,Taian 271018,China;College of Construction Machinery,Shandong Jiaotong University,Jinan 250357,China;National Key Laboratory of Wheat Improvement,College of Life Sciences,Shandong Agricultural University,Taian 271018,China)
出处
《智慧农业(中英文)》
CSCD
2023年第2期23-34,共12页
Smart Agriculture
基金
山东省重点研发计划项目(2022TZXD0010,2022LZGCQY002,2021TZXD001)。