欢迎您访问《智慧农业(中英文)》官方网站! English

Smart Agriculture ›› 2023, Vol. 5 ›› Issue (2): 23-34.doi: 10.12133/j.smartag.SA202304001

• 专题--机器视觉与农业智能感知 • 上一篇    下一篇

自然环境中鲜食葡萄快速识别与采摘点自动定位方法

朱衍俊1(), 杜文圣1,2, 王春颖1, 刘平1(), 李祥3()   

  1. 1.山东农业大学 机械与电子工程学院/智能化农业机械与装备实验室/山东省园艺机械与装备重点实验室,山东 泰安 271018
    2.山东交通学院 工程机械学院,山东 济南 250357
    3.山东农业大学生命科学学院小麦育种全国重点实验室,山东 泰安 271018
  • 收稿日期:2023-04-04 出版日期:2023-06-30
  • 基金资助:
    山东省重点研发计划项目(2022TZXD0010)
  • 作者简介:朱衍俊,研究方向为农业信息化。E-mail:zhu__yanjun@163.com
  • 通信作者: 刘 平,博士研究生,教授,研究方向为农业智能控制技术、机器人控制与导航、目标检测与识别。E-mail:liupingsdau@126.com
    李 祥,博士研究生,研究方向为作物高产相关性状的发育生物学、表型组学的研究与应用。E-mail: lixiang@sdau.edu.cn

Rapid Recognition and Picking Points Automatic Positioning Method for Table Grape in Natural Environment

ZHU Yanjun1(), DU Wensheng1,2, WANG Chunying1, LIU Ping1(), LI Xiang3()   

  1. 1.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
    2.College of Construction Machinery, Shandong Jiaotong University, Jinan 250357, China
    3.National Key Laboratory of Wheat Improvement, College of Life Sciences, Shandong Agricultural University, Taian 271018, China
  • Received:2023-04-04 Online:2023-06-30

摘要:

[目的/意义] 自然环境中鲜食葡萄的快速识别与精准定位是实现鲜食葡萄机器人自动采摘的先决条件。 [方法] 本研究基于改进的K-means聚类算法和轮廓分析法提出一种鲜食葡萄采摘点自动定位的方法。首先,采用加权灰度阈值作为聚类算法相似度的判定依据,并以此为基础提出一种自适应调整K值的K-means聚类算法,实现鲜食葡萄的快速有效识别检测;然后,利用提出的轮廓分析法获得果梗轴和采摘点感兴趣区域,利用几何方法实现鲜食葡萄采摘点快速准确定位;最后,利用采集的917张鲜食葡萄图像对本研究提出的算法进行实验验证。[结果和讨论]本研究提出算法定位的鲜食葡萄采摘点与最优采摘点的误差小于12个像素的成功率为90.51%,平均定位时间为0.87 s,实现鲜食葡萄采摘点的快速准确的定位。在篱壁式种植方式与棚架式种植方式下分别进行50次模拟仿真试验,结果表明,篱壁式紫葡萄采摘点定位成功率为86.00%,棚架式紫葡萄识别定位成功率达到92.00%,篱壁式绿葡萄采摘点定位成功率为78.00%,棚架式绿葡萄识别定位成功率为80.00%,整体试验效果较好。 [结论] 本研究可为鲜食葡萄采摘机器人实现精准采摘葡萄提供技术支撑。

关键词: 鲜食葡萄, K-means聚类算法, 轮廓分析法, 果梗轴, 采摘点, 采摘机器人

Abstract:

[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 K-means 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.

Key words: table grape, K-means, contour analysis method, fruit stem axis, picking point, picking robot

中图分类号: