APP下载

基于计算机视觉的小麦收获边缘导航线提取方法

2024-05-22姚杰张春雨彭勇周爽

中国农机化学报 2024年2期

姚杰 张春雨 彭勇 周爽

摘要:針对小麦收割边缘受到麦茬、土壤、光照等环境因素影响导致的导航线提取精度低、运行速度慢等问题,为实现小麦精准化收获作业而提出一种基于水平投影和梯度下降的小麦收获边缘导航线提取方法。首先通过LAB阈值分割、形态学滤波等进行图像分割,然后进行水平投影以提取出小麦收获边缘伪特征点,将伪特征点进行最小二乘拟合从而获得边缘特征点所在的ROI区域,并对该区域进行Canny边缘检测来提取出边缘特征点,最后利用梯度下降算法拟合出小麦收获边缘导航线,从而解决传统算法中所遇到的导航线拟合精度低、拟合速度慢等问题。试验结果表明:在小麦已收割和未收割区域对比度很低的情况下,处理一张分辨率为640像素×360像素的图像平均耗时163 ms,生成的导航基准线成功率高达95%,为智能农业机械在麦田中的自主行走提供一种可靠的、实时的导航方法。

关键词:农业机械;视觉;导航;水平投影;梯度下降

中图分类号:S232: TP242

文献标识码:A

文章编号:20955553 (2024) 02021506

收稿日期:2023年2月23日  修回日期:2023年3月15日

基金项目:安徽高校协同创新项目(GXXT—2019—036);安徽省重点研发项目(1604a0902134)

第一作者:姚杰,男,1999年生,安徽淮南人,硕士研究生;研究方向为智能农业装备。Email: 596932942@qq.com

通讯作者:张春雨,男,1971年生,安徽阜阳人,教授,硕导;研究方向为智能农业装备。Email: 382182415@qq.com

Extraction method of wheat harvesting edge navigation line based on computer vision

Yao Jie1, 2, Zhang Chunyu1, Peng Yong1, 2, Zhou Shuang2

(1. College of Mechanical Engineering, Anhui Polytechnic University, Wuhu, 241000, China;

2. School of Mechanical Engineering, Anhui Science and Technology University, Fengyang, 233100, China)

Abstract:

Aiming at the problems of low precision and slow speed of navigation line extraction caused by environmental factors such as stubble, soil and light on wheat harvest edge, a method of wheat harvesting edge navigation line extraction based on horizontal projection and gradient descent was proposed to realize precise wheat harvesting operations. Firstly, the image was segmented by LAB threshold segmentation and morphological filtering, then the horizontal projection was performed to extract the pseudofeature points of wheat harvesting edge, the pseudofeature points were least squares fitted to obtain the ROI region where the edge feature points were located, and the edge feature points were extracted by Canny edge detection of the region, and finally the wheat harvesting edge navigation line was fitted by the gradient descent algorithm, thus it solved the problems of low accuracy and slow fitting speed of the navigation line encountered in traditional algorithms. The experimental results showed that the average time required to process an image with a resolution of 640×360 pixels was 163 ms with a low contrast between harvested and unharvested areas of wheat, and the success rate of the generated navigation baseline was as high as 95%, which provided a reliable and realtime navigation method for autonomous walking of intelligent agricultural machinery in wheat fields.

Keywords:

agricultural machinery; machine vision; navigation; horizontal projection; gradient descent

0 引言

随着我国现代智能农业机械的快速发展,农业机械自动导航技术成为了智慧农业和精准农业的关键技术之一,并已广泛应用于农田耕作、施肥以及作物收割等农业生产活动中[12]。……

登录APP查看全文