CN115683102A - Unmanned agricultural machinery navigation method, equipment, device and storage medium - Google Patents

Unmanned agricultural machinery navigation method, equipment, device and storage medium Download PDF

Info

Publication number
CN115683102A
CN115683102A CN202210635783.5A CN202210635783A CN115683102A CN 115683102 A CN115683102 A CN 115683102A CN 202210635783 A CN202210635783 A CN 202210635783A CN 115683102 A CN115683102 A CN 115683102A
Authority
CN
China
Prior art keywords
unmanned agricultural
coordinates
pattern
surrounding environment
agricultural machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210635783.5A
Other languages
Chinese (zh)
Inventor
刘成
张爽娜
董启甲
�田润
孙强
孙永钦
熊炜
王云飞
王小桐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Muxing Technology Co ltd
Original Assignee
Beijing Muxing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Muxing Technology Co ltd filed Critical Beijing Muxing Technology Co ltd
Priority to CN202210635783.5A priority Critical patent/CN115683102A/en
Publication of CN115683102A publication Critical patent/CN115683102A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

本发明公开了一种无人农机导航方法、设备、装置及存储介质,方法包括:确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角点的大地坐标;在无人农机行驶过程中定位得到该无人农机的大地坐标,采集周边环境图像,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓,由此识别所述周边环境图像中图案的顶点,将所述顶点作为特征角点,计算得到所述特征角点的像素坐标;利用特征角点的大地坐标和像素坐标,对无人农机的大地坐标进行修正和标定。该方法能够在不依赖车载RTK设备和技术的情况下,利用计算机视觉技术对无人农机位置坐标进行修正,实现厘米级无人农机高精度定位,降低了设备成本,提高了定位和导航精度。

Figure 202210635783

The invention discloses a navigation method, device, device and storage medium for unmanned agricultural machinery. The method includes: determining the geodetic coordinates of the characteristic corner points of the graphical signboards arranged on the driving path of the unmanned agricultural machinery or on both sides of the driving path; The geodetic coordinates of the unmanned agricultural machine are obtained by positioning during the driving process of the unmanned agricultural machine, the surrounding environment image is collected, and the edge contour of the pattern in the surrounding environment image is extracted using the image edge detection technology, thereby identifying the pattern in the surrounding environment image The apex, using the apex as a feature corner point, calculates the pixel coordinates of the feature corner point; uses the geodetic coordinates and pixel coordinates of the feature corner point to correct and calibrate the geodetic coordinates of the unmanned agricultural machine. This method can use computer vision technology to correct the position coordinates of unmanned agricultural machinery without relying on vehicle-mounted RTK equipment and technology, so as to realize high-precision positioning of centimeter-level unmanned agricultural machinery, reduce equipment costs, and improve positioning and navigation accuracy.

Figure 202210635783

Description

无人农机导航方法、设备、装置及存储介质Unmanned agricultural machinery navigation method, equipment, device and storage medium

技术领域technical field

本发明涉及计算机视觉及辅助自动驾驶领域。更具体地,涉及一种基于无人农机导航方法、设备、装置及存储介质。The invention relates to the fields of computer vision and assisted automatic driving. More specifically, it relates to a navigation method, equipment, device and storage medium based on unmanned agricultural machinery.

背景技术Background technique

我国是农耕大国,耕地面积广大,占世界耕地面积的7%。然而,相比欧美等发达国家,我们目前农业机械化程度依然相对较低,工业发展程度有待提高。同时,随着城市化进程的深入,越来越多的农村年轻劳动力离开乡土进城务工,从而导致农村年轻劳动力的不断减少,这为农业作业和农村经济带来了很大的冲击。因此,无人农机近年来已成为自动驾驶(无人驾驶)技术的重要落地场景之一。在自动驾驶技术的支持下,农机能够实现自动化翻地、整平、播种、收割等多样化作业,极大地弥补年轻劳动力和专业驾驶机手缺乏的不足,对提升农耕作业效率和自动化水平具有重要意义。my country is a large agricultural country with a vast area of cultivated land, accounting for 7% of the world's cultivated land. However, compared with developed countries such as Europe and the United States, our current level of agricultural mechanization is still relatively low, and the level of industrial development needs to be improved. At the same time, with the deepening of urbanization, more and more young rural laborers leave their rural areas to work in cities, resulting in a continuous decrease of young rural laborers, which has brought a great impact on agricultural operations and the rural economy. Therefore, unmanned agricultural machinery has become one of the important landing scenarios of autonomous driving (unmanned driving) technology in recent years. With the support of automatic driving technology, agricultural machinery can realize diversified operations such as automatic plowing, leveling, sowing, and harvesting, which can greatly make up for the lack of young labor and professional drivers, and play an important role in improving the efficiency and automation level of farming operations. significance.

出于精准作业的需求,无人农机对导航定位的精度需求很高,一般需要利用在无人农机上装载实时动态(RTK,Real-Time Kinematic)载波相位差分测量设备,通过RTK技术来获得和保持厘米级高精度定位能力,从而为农机的行驶、控制、路径规划等操作提供基础。然而,目前RTK设备在农耕中的广泛应用仍存在限制。首先,RTK的使用成本依然较高。在使用第三方商业服务时,用户需要为此支付不菲的设备费和服务费,当农机设备数量较多时,这一成本开支将更加显著。其次,在很多偏远地区,目前仍无法实现RTK服务覆盖。此时,若用户自行架设RTK基准站和通信设施,则需要自行进行建设和维护,从而带来人力和设备成本的增加。因此,如何获得精确、可靠、成本可控的高精度位置基准,已成为目前无人农机规模化应用的突出痛点之一。Due to the need for precise operations, unmanned agricultural machinery has high requirements for navigation and positioning accuracy. Generally, it is necessary to use real-time dynamic (RTK, Real-Time Kinematic) carrier phase difference measurement equipment on unmanned agricultural machinery to obtain and Maintain centimeter-level high-precision positioning capabilities, thereby providing the basis for operations such as driving, control, and path planning of agricultural machinery. However, the widespread application of RTK devices in farming is still limited. First of all, the cost of using RTK is still relatively high. When using third-party commercial services, users need to pay a lot of equipment fees and service fees. When the number of agricultural machinery and equipment is large, this cost will be more significant. Secondly, in many remote areas, RTK service coverage is still not available. At this time, if users set up RTK reference stations and communication facilities by themselves, they need to build and maintain them by themselves, which will increase the cost of manpower and equipment. Therefore, how to obtain an accurate, reliable, and cost-controllable high-precision position reference has become one of the outstanding pain points in the large-scale application of unmanned agricultural machinery.

发明内容Contents of the invention

为了解决上述技术问题或者至少部分地解决上述技术问题,本公开提供了一种无人农机导航方法、设备及存储介质,用于在不依赖车载RTK设备和技术的情况下,实现无人农机的精确、可靠的导航定位。In order to solve the above-mentioned technical problems or at least partly solve the above-mentioned technical problems, the present disclosure provides an unmanned agricultural machinery navigation method, equipment and storage medium, which are used to realize the navigation of unmanned agricultural machinery without relying on vehicle-mounted RTK equipment and technology. Accurate and reliable navigation and positioning.

本发明实施例提供一种无人农机导航方法,该方法包括:确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角点的大地坐标;在无人农机行驶过程中定位得到该无人农机的大地坐标,采集周边环境图像,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓,由此识别所述周边环境图像中图案的顶点,将所述顶点作为特征角点,并计算得到所述特征角点的像素坐标;利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定。An embodiment of the present invention provides a method for navigating an unmanned agricultural machine, the method comprising: determining the geodetic coordinates of the characteristic corner points of the graphical signboards arranged on the driving path of the unmanned agricultural machine or on both sides of the driving path; The geodetic coordinates of the unmanned agricultural machine are obtained by positioning in the center, the surrounding environment image is collected, and the edge contour of the pattern in the surrounding environment image is extracted by using the image edge detection technology, thereby identifying the vertices of the pattern in the surrounding environment image, and the The apex is used as a characteristic corner point, and the pixel coordinates of the characteristic corner point are calculated; the earth coordinates of the unmanned agricultural machine are corrected and calibrated by using the earth coordinates and pixel coordinates of the characteristic corner point.

优选的,确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角根据权利要求1所述的方法,点的大地坐标包括:利用RTK高精度接收机在一段时间内静态测量采集所述图形指示牌的坐标位置,对所述一段时间采集的所述图形指示牌的坐标位置取均值,计算得到所述图形指示牌的所述特征角点的大地坐标。Preferably, the method for determining the characteristic angles of the graphic signboards arranged on the driving path of the unmanned agricultural machinery or on both sides of the driving path according to claim 1, the geodetic coordinates of the points comprises: utilizing the RTK high-precision receiver to set The static measurement collects the coordinate positions of the graphic signage, and takes an average value of the coordinate positions of the graphic signpost collected in the period of time, and calculates the geodetic coordinates of the characteristic corner points of the graphic signboard.

优选的,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓包括计算所述周边环境图像中图案的梯度与角度;对所述梯度进行非极大值抑制;使用双阈值对图案的边缘进行连接,直至提取出图案的完整的边缘轮廓。Preferably, using image edge detection technology, extracting the edge profile of the pattern in the surrounding environment image includes calculating the gradient and angle of the pattern in the surrounding environment image; performing non-maximum suppression on the gradient; The edges are connected until the complete edge contour of the pattern is extracted.

优选的,计算所述周边环境图像中图案的梯度与角度包括:根据以下公式计算所述周边环境图像中图案的梯度与角度,

Figure BDA0003681992030000031
其中,x为所述周边环境图像中图案的像素点的横坐标,y为所述周边环境图像中图案的像素点的纵坐标,f为所述周边环境图像中图案的灰度值,
Figure BDA0003681992030000032
为所述周边环境图像中图案的所有像素点计算形成的角度矩阵。Preferably, calculating the gradient and angle of the pattern in the surrounding environment image includes: calculating the gradient and angle of the pattern in the surrounding environment image according to the following formula,
Figure BDA0003681992030000031
Wherein, x is the abscissa of the pixel of the pattern in the surrounding environment image, y is the ordinate of the pixel of the pattern in the surrounding environment image, f is the gray value of the pattern in the surrounding environment image,
Figure BDA0003681992030000032
The formed angle matrix is calculated for all pixels of the pattern in the surrounding environment image.

优选的,对所述梯度进行非极大值抑制包括:判断所述梯度中当前检测的点C的灰度值在8连通邻域内是否最大,如果是最大,则继续检查所述梯度中的梯度方向的第一交点dTmp1和第二角点dTmp2的灰度值是否大于C,如果C大于第一交点dTmp1和第二角点dTmp2的灰度值,则认定C为极大值并将C的值置为1,否则认为C为非极大值并将C的值置为0,遍历所述梯度中的所有点C,从而寻找梯度中像素点的局部最大值,完成所述梯度的非极大值抑制。Preferably, performing non-maximum value suppression on the gradient includes: judging whether the gray value of the currently detected point C in the gradient is the largest in the 8-connected neighborhood, and if it is the largest, continue to check the gradient in the gradient Whether the gray value of the first intersection point dTmp1 and the second corner point dTmp2 of the direction is greater than C, if C is greater than the gray value of the first intersection point dTmp1 and the second corner point dTmp2, then C is considered to be the maximum value and the value of C Set it to 1, otherwise it is considered that C is a non-maximum value and the value of C is set to 0, and all points C in the gradient are traversed to find the local maximum value of the pixel point in the gradient, and the non-maximum value of the gradient is completed value suppression.

优选的,使用双阈值对图案的边缘进行连接,直至提取出图案的完整的边缘轮廓包括选取两个阈值,该两个阈值包括低阈值和高阈值,将小于所述低阈值的点认为是假边缘并置为0,将大于高阈值的点认为是强边缘并置为1;根据图像中的高阈值点,首先把它们连接成轮廓,当到达轮廓的断点时,算法会在断点的8领域中寻找满足低阈值的点,再根据此点收集新的边缘,直到整个图像闭合。Preferably, using double thresholds to connect the edges of the pattern until the complete edge profile of the pattern is extracted includes selecting two thresholds, the two thresholds include a low threshold and a high threshold, and points less than the low threshold are considered false Edges are concatenated to 0, and points greater than the high threshold are considered strong edges and concatenated to 1; according to the high threshold points in the image, they are first connected into contours, and when the breakpoint of the contour is reached, the algorithm will be at the breakpoint 8 in the field to find a point that satisfies the low threshold, and then collect new edges based on this point until the entire image is closed.

优选的,利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定包括:根据以下公式,计算修正后的无人农机的坐标,

Figure BDA0003681992030000033
其中,p′j为所述特征角点的的大地坐标,pj为待优化的无人农机的修正坐标,z′ij为无人农机在位姿Ti处观察所述特征角点p′j所产生的像素测量数据,eij为误差函数,h(Ti,pj)为世界坐标到像素坐标的投影函数。Preferably, using the geodetic coordinates and pixel coordinates of the feature corner points, correcting and calibrating the geodetic coordinates of the unmanned agricultural machine includes: calculating the corrected coordinates of the unmanned agricultural machine according to the following formula,
Figure BDA0003681992030000033
Among them, p' j is the geodetic coordinate of the characteristic corner point, p j is the correction coordinate of the unmanned agricultural machine to be optimized, and z' ij is the characteristic corner point p' observed by the unmanned agricultural machine at the pose T i The pixel measurement data generated by j , e ij is an error function, and h(T i , pj) is a projection function from world coordinates to pixel coordinates.

另一方面,本发明实施例提供了一种无人农机导航设备,其中,该装置包括:特征角点大地坐标确定装置,用于确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角点的大地坐标;特征角点像素坐标计算装置,在无人农机行驶过程中定位得到该无人农机的大地坐标,采集周边环境图像,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓,由此识别所述周边环境图像中图案的顶点,将所述顶点作为特征角点,并计算得到所述特征角点的像素坐标;坐标标定装置,用于利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定。On the other hand, an embodiment of the present invention provides a navigation device for unmanned agricultural machinery, wherein the device includes: a device for determining the geodetic coordinates of characteristic corner points, which is used to determine the location on the driving path of the unmanned agricultural machinery or on both sides of the driving path. The geodetic coordinates of the characteristic corner points of the graphic signage; the pixel coordinate calculation device of the characteristic corner points obtains the geodetic coordinates of the unmanned agricultural machinery during the driving process, collects the surrounding environment images, and uses the image edge detection technology to extract the said The edge contour of the pattern in the surrounding environment image, thereby identifying the vertex of the pattern in the surrounding environment image, using the vertex as a feature corner point, and calculating the pixel coordinates of the feature corner point; the coordinate calibration device is used to use The geodetic coordinates and pixel coordinates of the feature corner points correct and calibrate the geodetic coordinates of the unmanned agricultural machine.

再一方面,本发明实施例还提供了一种无人农机导航装置,该装置包括:处理器,存储器,包括处理器可执行的程序指令,当所述程序指令由所述处理器执行时,使得所述测定室内无线信号发射锚点的位置坐标的装置执行以下的操作:确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角点的大地坐标;在无人农机行驶过程中定位得到该无人农机的大地坐标,采集周边环境图像,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓,由此识别所述周边环境图像中图案的顶点,将所述顶点作为特征角点,并计算得到所述特征角点的像素坐标;利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定。In another aspect, the embodiment of the present invention also provides a navigation device for unmanned agricultural machinery, the device includes: a processor, a memory, including program instructions executable by the processor, when the program instructions are executed by the processor, Make the device for measuring the position coordinates of the indoor wireless signal transmitting anchor point perform the following operations: determine the geodetic coordinates of the characteristic corner points of the graphic signboards arranged on the driving path of the unmanned agricultural machine or on both sides of the driving path; The geodetic coordinates of the unmanned agricultural machine are obtained by positioning during the driving of the agricultural machine, the surrounding environment image is collected, and the edge contour of the pattern in the surrounding environment image is extracted using the image edge detection technology, thereby identifying the vertices of the pattern in the surrounding environment image, The vertex is used as a feature corner point, and the pixel coordinates of the feature corner point are calculated; using the geodetic coordinates and pixel coordinates of the feature corner point, the geodetic coordinates of the unmanned agricultural machine are corrected and calibrated.

再一方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法。In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements any one of claims 1 to 7 when executed by a processor. Methods.

本公开实施例提供的技术方案与现有技术相比具有如下优点:本公开通过在无人农机的行驶路径两侧设置具有特征角点的图形指示牌,并在行驶过程中利用图像边缘检测技术,识别出图形指示牌的特征角点并计算得到特征角点的像素坐标,然后利用特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定,从而能够在不依赖车载RTK设备和技术的情况下,利用计算机视觉技术对无人农机位置坐标进行修正,实现厘米级无人农机高精度定位,满足无人农机的高精度作业需求,大大降低了设备成本,提高了定位和导航精度。Compared with the prior art, the technical solutions provided by the embodiments of the present disclosure have the following advantages: the present disclosure sets graphic signs with characteristic corners on both sides of the driving path of the unmanned agricultural machine, and uses image edge detection technology during driving , identify the characteristic corners of the graphic sign and calculate the pixel coordinates of the characteristic corners, and then use the geodetic coordinates and pixel coordinates of the characteristic corners to correct and calibrate the geodetic coordinates of the unmanned agricultural machine, so that it can be In the case of relying on vehicle-mounted RTK equipment and technology, computer vision technology is used to correct the position coordinates of unmanned agricultural machinery to achieve high-precision positioning of centimeter-level unmanned agricultural machinery, which meets the high-precision operation requirements of unmanned agricultural machinery, greatly reduces equipment costs, and improves positioning and navigation accuracy.

本发明实施例的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.

图1为本公开实施例所述一种无人农机导航方法的流程图;FIG. 1 is a flow chart of a navigation method for unmanned agricultural machinery described in an embodiment of the present disclosure;

图2为本公开实施例所述的示例性图形指示牌;Fig. 2 is an exemplary graphic sign according to an embodiment of the present disclosure;

图3为本公开实施例所述的图形指示牌设置示意图;Fig. 3 is a schematic diagram of setting up a graphic sign according to an embodiment of the present disclosure;

图4为本公开实施例所述对梯度进行非极大值抑制的示意图;FIG. 4 is a schematic diagram of non-maximum suppression of gradients according to an embodiment of the present disclosure;

图5为本公开实施例所述一种无人农机导航设备的结构框图;5 is a structural block diagram of an unmanned agricultural machinery navigation device according to an embodiment of the present disclosure;

图6为本公开实施例所述一种无人农机导航装置的示意图。Fig. 6 is a schematic diagram of a navigation device for an unmanned agricultural machine according to an embodiment of the present disclosure.

具体实施方式Detailed ways

为使本领域技术人员更好地理解本公开的技术方案,下面结合附图和具体实施方式对本公开作详细说明。下面结合附图和具体实施例对本公开的实施例作进一步详细描述,但不作为对本公开的限定。In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the present disclosure will be described in detail below in conjunction with the accompanying drawings and specific embodiments. Embodiments of the present disclosure will be described in further detail below in conjunction with the accompanying drawings and specific embodiments, but are not intended to limit the present disclosure.

随着我国自主的北斗卫星导航系统的迅速建设,北斗三号卫星导航系统已开始面向行业和大众提供公开、免费的亚米级星基增强(Satellite-Based AugmentationSystem,SBAS)服务以及分米级精密单点定位(Precise Point Positioning,PPP)服务。并且,无人农机上一般会同时装备或已经装备惯性导航(Inertial Navigation System,INS)、相机(Camera)传感器等设备。因此,发明人提出通过将北斗SBAS/PPP服务及其与惯性、视觉(Visual)等导航手段融合,有可能使得无人农机获得分米级绝对精度的连续、稳定和可靠的导航定位结果。With the rapid construction of my country's independent Beidou satellite navigation system, the Beidou-3 satellite navigation system has begun to provide open and free sub-meter-level satellite-based augmentation (Satellite-Based Augmentation System, SBAS) services and decimeter-level precision to the industry and the public. Single point positioning (Precise Point Positioning, PPP) service. In addition, unmanned agricultural machinery is generally equipped with or already equipped with inertial navigation (Inertial Navigation System, INS), camera (Camera) sensors and other equipment. Therefore, the inventor proposes that by integrating the Beidou SBAS/PPP service and its navigation methods with inertial and visual (Visual), it is possible for unmanned agricultural machinery to obtain continuous, stable and reliable navigation and positioning results with decimeter-level absolute precision.

基于此,如图1所示,本发明提供了一种无人农机导航方法,该方法包括:Based on this, as shown in Figure 1, the present invention provides a kind of unmanned agricultural machine navigation method, and this method comprises:

S101,确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角点的大地坐标;S101, determining the geodetic coordinates of the characteristic corner points of the graphical signage set on the driving path of the unmanned agricultural machine or on both sides of the driving path;

其中,在无人农机行驶路径上或行驶路径的两侧,设立具有可由计算机视觉明确识别的特征角点的图形指示牌。Among them, on the driving path of the unmanned agricultural machinery or on both sides of the driving path, set up graphic signs with characteristic corner points that can be clearly identified by computer vision.

在一些实施例中,图形指示牌可以是正方形、长方形、三角形、二维码等形式,如图2所示。In some embodiments, the graphic indicator may be in the form of a square, a rectangle, a triangle, or a two-dimensional code, as shown in FIG. 2 .

无人农机在农田中工作时,经常采用A/B点作业的方式,按照预设的行驶路径,从A点行驶运动到B点,如图3所示。因此,在一些实施例中,图形指示牌可以被布设在无人农机的行驶路径上,例如垄的尽头;也可以布设在无人农机行驶路径的两侧,例如垄的两侧。When the unmanned agricultural machine works in the farmland, it often adopts the method of A/B point operation, and moves from point A to point B according to the preset driving path, as shown in Figure 3. Therefore, in some embodiments, the graphic signage can be arranged on the driving path of the unmanned agricultural machine, such as the end of the ridge; it can also be arranged on both sides of the driving path of the unmanned agricultural machine, such as both sides of the ridge.

在一种优选实施例中,为了准确获得所述图形指示牌的大地坐标并对后续无人农机的定位结果起到修正作用,可以提前利用例如高精度卫星定位接收机在一段时间内静态测量采集所述图形指示牌的坐标位置,对所述一段时间采集的所述图形指示牌的坐标位置取均值,计算得到所述图形指示牌的所述特征角点的大地坐标。In a preferred embodiment, in order to accurately obtain the geodetic coordinates of the graphic signboard and correct the positioning results of the subsequent unmanned agricultural machinery, it is possible to use, for example, a high-precision satellite positioning receiver to collect static measurements within a period of time in advance. For the coordinate position of the graphic indicator, take the average value of the coordinate positions of the graphic indicator collected in the period of time, and calculate the geodetic coordinates of the characteristic corner points of the graphic indicator.

进一步优选的,在采集所述特征角点的坐标位置时,需要尽量使得卫星定位接收机天线的相位中心与图形指示牌的特征角点重合,从而确保精确测量得到图像指示牌特征角点的大地坐标。例如,将卫星定位接收机天线放置在正方形或长方形指示牌的顶点上。如果卫星定位接收机天线的相位中心难以做到准确与特征角点重合,也可以由测量人员手动进行标定和修正。Further preferably, when collecting the coordinate position of the characteristic corner point, it is necessary to make the phase center of the antenna of the satellite positioning receiver coincide with the characteristic corner point of the graphic signboard as much as possible, so as to ensure accurate measurement of the ground of the characteristic corner point of the image signboard coordinate. For example, place the satellite positioning receiver antenna on the vertices of a square or rectangular sign. If the phase center of the satellite positioning receiver antenna is difficult to accurately coincide with the characteristic corner point, it can also be calibrated and corrected manually by the surveyor.

S102,在无人农机行驶过程中定位得到该无人农机的大地坐标,采集周边环境图像,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓,由此识别所述周边环境图像中图案的顶点,将其作为特征角点,并计算得到所述特征角点的像素坐标;S102. Locate and obtain the geodetic coordinates of the unmanned agricultural machine during driving, collect the surrounding environment image, and use the image edge detection technology to extract the edge contour of the pattern in the surrounding environment image, thereby identifying the surrounding environment image The vertex of the pattern is used as a feature corner point, and the pixel coordinates of the feature corner point are calculated;

其中,在一些实施例中,可以通过以下方式处理得到所述特征角点的二维像素坐标:通过无人农机上装载的相机传感器采集获得周边环境图像,对每帧图像,利用图像边缘检测技术,提取图像或图案的边缘轮廓,由此识别图像或图案的顶点,并将其作为特征角点。边缘检测算子可选择采用Canny算子、Roberts算子、Sobel算子、Marr-Hildreth算子等。Wherein, in some embodiments, the two-dimensional pixel coordinates of the feature corners can be obtained by processing in the following manner: the surrounding environment image is collected by the camera sensor mounted on the unmanned agricultural machine, and for each frame of image, image edge detection technology is used , extract the edge profile of the image or pattern, thereby identify the vertices of the image or pattern, and use them as feature corners. The edge detection operator can choose Canny operator, Roberts operator, Sobel operator, Marr-Hildreth operator, etc.

为了找到一个最优的边缘,例如尽可能地多标识出图像中的实际边缘;标识出的边缘要与实际图像中的边缘尽可能地接近;图像中的边缘只能标识一次,并且其中可能存在的图像噪声不应该被标识为边缘,在一种优选实施例中,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓可以包括以下步骤:In order to find an optimal edge, for example, identify as many actual edges in the image as possible; the identified edge should be as close as possible to the edge in the actual image; the edge in the image can only be identified once, and there may be The image noise should not be identified as an edge. In a preferred embodiment, using image edge detection technology, extracting the edge profile of the pattern in the surrounding environment image may include the following steps:

S201,计算所述周边环境图像中图案的梯度与角度。S201. Calculate gradients and angles of patterns in the surrounding environment image.

S202,对所述梯度进行非极大值抑制;S202, performing non-maximum suppression on the gradient;

S203,使用双阈值对图案的边缘进行连接,直至提取出图案的完整的边缘轮廓。S203, using double thresholds to connect the edges of the pattern until a complete edge profile of the pattern is extracted.

在步骤S201中,梯度是人工智能中非常重要的一个概念,遍布机器学习、深度学习领域。一维函数的一阶微分定义为公式(1):In step S201, the gradient is a very important concept in artificial intelligence, which spreads in the fields of machine learning and deep learning. The first-order differential of a one-dimensional function is defined as formula (1):

Figure BDA0003681992030000081
Figure BDA0003681992030000081

其中,f(x)为关于未知数x的一微函数,x为未知数,ε为关于未知数的微小变量。Wherein, f(x) is a microfunction about the unknown x, x is the unknown, and ε is a tiny variable about the unknown.

图像的滤波一般是基于灰度图进行的,此时图像是二维的。因此,需要进行二维函数微分处理,即有公式(2)和公式(3):The filtering of the image is generally based on the grayscale image, and the image is two-dimensional at this time. Therefore, two-dimensional function differential processing is required, that is, formula (2) and formula (3):

Figure BDA0003681992030000082
Figure BDA0003681992030000082

Figure BDA0003681992030000083
Figure BDA0003681992030000083

其中f(x,y)为关于未知数x、y的二维函数。Where f(x, y) is a two-dimensional function about the unknowns x, y.

由上面的公式可以看出,图像梯度即当前所在像素点对于X轴、Y轴的偏导数,所以梯度在图像处理领域也可以理解为像素灰度值的变化速度。It can be seen from the above formula that the image gradient is the partial derivative of the current pixel point with respect to the X-axis and Y-axis, so the gradient can also be understood as the change speed of the pixel gray value in the field of image processing.

梯度的模表示f(x,y)在其最大变化率方向上的单位距离所增加的量,即:The modulus of the gradient represents the amount that f(x,y) increases per unit distance in the direction of its maximum rate of change, namely:

Figure BDA0003681992030000084
Figure BDA0003681992030000084

其中,G即为图像梯度的模。Among them, G is the modulus of the image gradient.

梯度的角度计算则较为简单,其作用为非极大值抑制的方向提供依据。计算公式如下:The angle calculation of the gradient is relatively simple, and its function provides a basis for the direction of non-maximum suppression. Calculated as follows:

Figure BDA0003681992030000085
Figure BDA0003681992030000085

其中,x为图像中像素点的横坐标,y为图像中像素点的纵坐标,f为图像的灰度值,

Figure BDA0003681992030000086
为所有像素点计算形成的角度矩阵。Among them, x is the abscissa of the pixel in the image, y is the ordinate of the pixel in the image, f is the gray value of the image,
Figure BDA0003681992030000086
Calculate the resulting angle matrix for all pixels.

在步骤S202中,对所述梯度进行非极大值抑制。In step S202, non-maximum suppression is performed on the gradient.

步骤S201所得到的梯度存在边缘粗宽、弱边缘干扰等问题。对此,可以使用非极大值抑制处理来寻找像素点的局部最大值,将非极大值所对应的灰度值置为0,这样可以剔除一大部分非边缘的像素点。The gradient obtained in step S201 has problems such as thick edges and weak edge interference. In this regard, the non-maximum value suppression process can be used to find the local maximum value of the pixel, and the gray value corresponding to the non-maximum value is set to 0, so that a large number of non-edge pixels can be eliminated.

如图4所示,C表示当前进行检测的点,g1-g4为它的8连通邻域点。图中,斜线表示上一步计算得到的点C的梯度方向。As shown in Figure 4, C represents the point currently being detected, and g1-g4 are its 8-connected neighbor points. In the figure, the oblique line indicates the gradient direction of point C calculated in the previous step.

判断所述梯度中当前检测的点C的灰度值在8连通邻域内是否最大,如果是最大,则继续检查所述梯度中的梯度方向的第一交点dTmp1和第二角点dTmp2的灰度值是否大于C,如果C大于第一交点dTmp1和第二角点dTmp2的灰度值,则认定C为极大值并将C的值置为1,否则认为C为非极大值并将C的值置为0,遍历所述梯度中的所有点C,从而寻找梯度中像素点的局部最大值,完成所述梯度的非极大值抑制。Judging whether the gray value of the currently detected point C in the gradient is the largest in the 8-connected neighborhood, if it is the largest, continue to check the gray values of the first intersection point dTmp1 and the second corner point dTmp2 of the gradient direction in the gradient Whether the value is greater than C, if C is greater than the gray value of the first intersection point dTmp1 and the second corner point dTmp2, then consider C to be a maximum value and set the value of C to 1, otherwise consider C to be a non-maximum value and set C The value of is set to 0, and all points C in the gradient are traversed, so as to find the local maximum of the pixel points in the gradient, and complete the non-maximum suppression of the gradient.

其中,需要注意的是,梯度方向的交点并不一定落在8邻域所在8个点的位置,因此dTmp1和dTmp2实际应用中是使用相邻两个点的双线性插值所形成的灰度值。Among them, it should be noted that the intersection point of the gradient direction does not necessarily fall at the position of the 8 points in the 8 neighborhood, so the actual application of dTmp1 and dTmp2 is to use the grayscale formed by the bilinear interpolation of two adjacent points value.

在步骤S203中,经过步骤S201和步骤S202处理后,图案的边缘质量已经很高了,但还是存在很多伪边缘,因此,为了去掉伪边缘,可以使用双阈值对图案的边缘进行连。具体包括,选取两个阈值,该两个阈值包括低阈值和高阈值,将小于所述低阈值的点认为是假边缘并置为0,将大于高阈值的点认为是强边缘并置为1,介于中间的像素点需要进行进一步的检查。In step S203, after the processing of steps S201 and S202, the edge quality of the pattern is already very high, but there are still many false edges. Therefore, in order to remove false edges, double thresholds can be used to connect the edges of the pattern. Specifically, two thresholds are selected, the two thresholds include a low threshold and a high threshold, points smaller than the low threshold are considered false edges and set to 0, and points greater than the high threshold are considered strong edges and set to 1 , pixels in between need further inspection.

根据图像中的高阈值点,首先把它们连接成轮廓,当到达轮廓的断点时,会在断点的8领域中寻找满足低阈值的点,再根据此点收集新的边缘,直到整个图像闭合。According to the high-threshold points in the image, first connect them into contours. When the breakpoint of the contour is reached, it will find a point that meets the low threshold in the 8 fields of the breakpoint, and then collect new edges based on this point until the entire image closure.

S204,在图案的边缘轮廓线上,识别和计算得到所述特征角点的像素坐标。S204, on the edge contour line of the pattern, identify and calculate the pixel coordinates of the feature corner points.

对于边缘轮廓线上的某一像素点j,其像素坐标记为(uj,vj),其左右相邻的像素点的像素坐标分别为(uj-1,vj-1)和(uj+1,vj+1)。若

Figure BDA0003681992030000101
大于某一阈值Γ,即有:
Figure BDA0003681992030000102
时,则像素点j为所述图案的所述特征角点。For a certain pixel point j on the edge contour line, its pixel coordinates are marked as (uj, vj), and the pixel coordinates of its left and right adjacent pixel points are (uj-1, vj-1) and (uj+1, vj+1). like
Figure BDA0003681992030000101
greater than a certain threshold Γ, that is:
Figure BDA0003681992030000102
, then the pixel point j is the characteristic corner point of the pattern.

其中,阈值Γ应根据所述图形指示牌的几何形状合理确定。例如,当所述图像指示牌为正方形或矩形时,阈值Γ应设置的接近于90°;当所述图像指示牌为等边三角形时,阈值Γ应设置的接近于60°。Wherein, the threshold Γ should be reasonably determined according to the geometric shape of the graphic sign. For example, when the image sign is a square or a rectangle, the threshold Γ should be set close to 90°; when the image sign is an equilateral triangle, the threshold Γ should be set close to 60°.

进一步优选的,在步骤S201之前,还可以使用高斯滤波对采集的周边环境图像进行去噪处理。高斯滤波是一种线性平滑滤波,能够用于消除高斯白噪声,广泛应用于图像处理的减噪处理中。Further preferably, before step S201, Gaussian filtering may be used to perform denoising processing on the collected surrounding environment image. Gaussian filtering is a linear smoothing filter that can be used to eliminate Gaussian white noise and is widely used in noise reduction in image processing.

S103,利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定。S103. Correct and calibrate the geodetic coordinates of the unmanned agricultural machine by using the geodetic coordinates and pixel coordinates of the feature corner points.

此时,实际上是一个带有约束的BA(Bundle Adjustment)模型建立和求解的过程。对于一个经典的即时定位与建图(Simultaneous Location and Mapping,SLAM)问题,我们从一个世界坐标系中的点p出发,把无人农机上装载的相机的内外参数和畸变都考虑进来,最后投影成像素坐标,需要如下步骤:At this point, it is actually a process of establishing and solving a BA (Bundle Adjustment) model with constraints. For a classic Simultaneous Location and Mapping (SLAM) problem, we start from a point p in a world coordinate system, take into account the internal and external parameters and distortion of the camera mounted on the unmanned agricultural machine, and finally project To generate pixel coordinates, the following steps are required:

S301,把世界坐标转换到相机坐标,这里将用到相机外参数(R,t):S301, convert the world coordinates to the camera coordinates, where the camera extrinsic parameters (R, t) will be used:

P′=Rp+t=[X′,Y′,Z′]T (6)P'=Rp+t=[X', Y', Z'] T (6)

其中,P′为世界坐标系中的点p经过小孔O投影之后落在物理成像平面O′-x′-y′上的点,[X′,Y′,Z′]T为P′的坐标,R为从世界坐标到相机坐标的旋转矩阵,t为从世界坐标到相机坐标的平移向量。Among them, P' is the point p in the world coordinate system that falls on the physical imaging plane O'-x'-y' after being projected through the small hole O, and [X', Y', Z'] T is the point of P' Coordinates, R is the rotation matrix from world coordinates to camera coordinates, t is the translation vector from world coordinates to camera coordinates.

S302,将P′投影至归一化平面,得到归一化坐标:S302, projecting P′ onto a normalized plane to obtain normalized coordinates:

Pc=[uc,vc,1]T=[X′/Z′,Y′/Z′,1]T (7)P c =[u c ,v c ,1] T =[X'/Z',Y'/Z',1] T (7)

其中,Pc为点P′投影在归一化像素平面上的点,[uc,vc,1]T为Pc的坐标。Wherein, P c is the projected point of point P′ on the normalized pixel plane, and [u c , v c , 1] T is the coordinate of P c .

S303,考虑归一化坐标的畸变情况,得到去畸变前的原始像素坐标[u′c,v′c]T这里,暂时只考虑径向畸变:S303, consider the distortion of the normalized coordinates, and obtain the original pixel coordinates [u′ c , v′ c ] T before de-distortion. Here, only the radial distortion is considered for the time being:

Figure BDA0003681992030000111
Figure BDA0003681992030000111

其中,k1,k2,rc为畸变修正多项式参数。Among them, k 1 , k 2 , and rc are distortion correction polynomial parameters.

S304,根据内参模型,计算像素坐标:S304, calculate pixel coordinates according to the internal reference model:

Figure BDA0003681992030000112
Figure BDA0003681992030000112

上述过程可以抽象地记成公式(10):The above process can be abstractly recorded as formula (10):

z=h(x,y) (10)z=h(x,y) (10)

以上给出了BA处理的详细参数化过程。具体地说,这里的x指代此时相机的位姿,即外参R、t,它对应的李群记为T。路标特征点y即这里的三维点p,而观测数据则为像素坐标

Figure BDA0003681992030000113
基于最小二乘方法原理,可以列出此次观测的误差方程:The detailed parameterization process of BA processing is given above. Specifically, x here refers to the pose of the camera at this time, that is, the external parameters R and t, and its corresponding Lie group is denoted as T. The road sign feature point y is the three-dimensional point p here, and the observation data is the pixel coordinates
Figure BDA0003681992030000113
Based on the principle of least squares method, the error equation of this observation can be listed as follows:

e=z-h(T,p) (11)e=z-h(T,p) (11)

然后,把其他时刻的关测量也考虑进来,并给误差添加一个下标。设zij为无人农机在位姿Ti处观察路标pj所产生的数据,那么整体的代价函数为Then, close measurements at other times are taken into account and a subscript is added to the error. Let z ij be the data generated by the unmanned agricultural machine observing the landmark p j at the pose T i , then the overall cost function is

Figure BDA0003681992030000121
Figure BDA0003681992030000121

对公式(12)进行求解,相当于对无人农机的位姿以及环境中的路标特征同时进行了调整,也就是所谓的BA。Solving the formula (12) is equivalent to adjusting the pose of the unmanned agricultural machine and the landmark features in the environment at the same time, which is the so-called BA.

在此基础上,对于本发明方法而言,记所述图形指示牌中的可识别特征角点为p′j,z′ij为无人农机在位姿Ti处观察特征角点p′j所产生的数据,则由于特征角点p′j的大地坐标已知、为我们提供了进行修正和约束的条件,因此我们可以在式(6)的基础上,增加关于p′j和z′ij的约束方程,并将代价函数改写为公式(13):On this basis, for the method of the present invention, record the identifiable characteristic corner point in the graphic sign as p′ j , and z′ ij is the characteristic corner point p′ j observed by the unmanned agricultural machine at the pose T i For the generated data, since the geodetic coordinates of the characteristic corner point p′ j are known, it provides us with the conditions for correction and constraints, so we can add p′ j and z′ on the basis of formula (6). The constraint equation of ij , and rewrite the cost function as formula (13):

Figure BDA0003681992030000122
Figure BDA0003681992030000122

公式(13)不是线性函数,对其进行非线性优化求解,即可最终得到基于本发明的视觉修正的无人农机高精度导航定位结果。Formula (13) is not a linear function, and it can be solved by nonlinear optimization to finally obtain the high-precision navigation and positioning results of unmanned agricultural machinery based on the vision correction of the present invention.

由此,根据公式(13)计算修正后的无人农机的坐标,Thus, the coordinates of the corrected unmanned agricultural machine are calculated according to formula (13),

Figure BDA0003681992030000131
Figure BDA0003681992030000131

其中,p′j为所述特征角点的的大地坐标,pj为待优化的无人农机的修正坐标,z′ij为无人农机在位姿Ti处观察所述特征角点p′j所产生的像素测量数据,eij为误差函数,h(Ti,pj)为世界坐标到像素坐标的投影函数。Among them, p' j is the geodetic coordinate of the characteristic corner point, p j is the correction coordinate of the unmanned agricultural machine to be optimized, and z' ij is the characteristic corner point p' observed by the unmanned agricultural machine at the pose T i The pixel measurement data generated by j , eij is an error function, and h(T i , pj) is a projection function from world coordinates to pixel coordinates.

另外值得指出的是,由于无人农机在行驶过程中,会有一段时间持续可见所述图形指示牌,因此上述修正和约束的效果在这段时间内是持续的。如果适当增加无人农机行驶道路上的图形指示牌,本发明方法能够获得更优的性能和效果。It is also worth pointing out that since the graphic signage will be continuously visible for a period of time during the driving of the unmanned agricultural machine, the effects of the above corrections and constraints are continuous during this period of time. If the graphic signs on the driving road of the unmanned agricultural machinery are appropriately increased, the method of the present invention can obtain better performance and effect.

本公开实施例提供的技术方案与现有技术相比具有如下优点:本公开通过在无人农机的行驶路径两侧设置具有特征角点的图形指示牌,并在行驶过程中利用图像边缘检测技术,识别出图形指示牌的特征角点并计算得到特征角点的像素坐标,然后利用特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定,从而能够在不依赖车载RTK设备和技术的情况下,利用计算机视觉技术对无人农机位置坐标进行修正,实现厘米级无人农机高精度定位,满足无人农机的高精度作业需求,大大降低了设备成本,提高了定位和导航精度。Compared with the prior art, the technical solutions provided by the embodiments of the present disclosure have the following advantages: the present disclosure sets graphic signs with characteristic corners on both sides of the driving path of the unmanned agricultural machine, and uses image edge detection technology during driving , identify the characteristic corners of the graphic sign and calculate the pixel coordinates of the characteristic corners, and then use the geodetic coordinates and pixel coordinates of the characteristic corners to correct and calibrate the geodetic coordinates of the unmanned agricultural machine, so that it can be In the case of relying on vehicle-mounted RTK equipment and technology, computer vision technology is used to correct the position coordinates of unmanned agricultural machinery to achieve high-precision positioning of centimeter-level unmanned agricultural machinery, which meets the high-precision operation requirements of unmanned agricultural machinery, greatly reduces equipment costs, and improves positioning and navigation accuracy.

本发明实施例还提供了一种无人农机导航设备,其中,该装置包括:The embodiment of the present invention also provides an unmanned agricultural machine navigation device, wherein the device includes:

特征角点大地坐标确定装置,用于确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角点的大地坐标;The feature corner geodetic coordinate determining device is used to determine the geodetic coordinates of the feature corner points of the graphic signage set on the driving path of the unmanned agricultural machinery or on both sides of the driving path;

特征角点像素坐标计算装置,在无人农机行驶过程中定位得到该无人农机的大地坐标,采集周边环境图像,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓,由此识别所述周边环境图像中图案的顶点,并所述顶点其作为特征角点,并计算得到所述特征角点的像素坐标;The feature corner point pixel coordinate calculation device locates the unmanned agricultural machine to obtain the geodetic coordinates of the unmanned agricultural machine during driving, collects the surrounding environment image, and uses the image edge detection technology to extract the edge contour of the pattern in the surrounding environment image, thereby Identify the vertices of the pattern in the surrounding environment image, and use the vertices as feature corner points, and calculate the pixel coordinates of the feature corner points;

坐标标定装置,用于利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定。The coordinate calibration device is used to correct and calibrate the geodetic coordinates of the unmanned agricultural machine by using the geodetic coordinates and pixel coordinates of the feature corner points.

另一方面,本发明实施例还提供了一种无人农机导航装置,如图5所示,该装置包括:On the other hand, the embodiment of the present invention also provides a navigation device for unmanned agricultural machinery, as shown in Figure 5, the device includes:

处理器601,processor 601,

存储器602,包括处理器可执行的程序指令,当所述程序指令由所述处理器执行时,使得所述测定室内无线信号发射锚点的位置坐标的装置执行以下的操作:The memory 602 includes program instructions executable by the processor. When the program instructions are executed by the processor, the device for determining the position coordinates of the indoor wireless signal transmission anchor point performs the following operations:

确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角点的大地坐标;Determine the geodetic coordinates of the characteristic corner points of the graphic signs set on the driving path of the unmanned agricultural machine or on both sides of the driving path;

在无人农机行驶过程中定位得到该无人农机的大地坐标,采集周边环境图像,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓,由此识别所述周边环境图像中图案的顶点,将所述顶点作为特征角点,并计算得到所述特征角点的像素坐标;The geodetic coordinates of the unmanned agricultural machine are located during the driving process of the unmanned agricultural machine, the surrounding environment image is collected, and the edge contour of the pattern in the surrounding environment image is extracted using the image edge detection technology, thereby identifying the pattern in the surrounding environment image vertex, using the vertex as a feature corner point, and calculating the pixel coordinates of the feature corner point;

利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定。Using the geodetic coordinates and pixel coordinates of the feature corners, the geodetic coordinates of the unmanned agricultural machine are corrected and calibrated.

本公开实施例提供一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述一种无人机定位导航方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present disclosure provides a computer-readable storage medium, which is characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, various processes of the above-mentioned drone positioning and navigation method are implemented, And can achieve the same technical effect, in order to avoid repetition, no more details here.

本公开中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的部分。“包括”或者“包含”等类似的词语意指在该词前的要素涵盖在该词后列举的要素,并不排除也涵盖其他要素的可能。“上”、“下”、“左”、“右”等仅用于表示相对位置关系,当被描述对象的绝对位置改变后,则该相对位置关系也可能相应地改变。"First", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different parts. Words like "comprising" or "comprising" mean that the elements preceding the word cover the elements listed after the word, and do not exclude the possibility of also covering other elements. "Up", "Down", "Left", "Right" and so on are only used to indicate the relative positional relationship. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

本公开使用的所有术语(包括技术术语或者科学术语)与本公开所属领域的普通技术人员理解的含义相同,除非另外特别定义。还应当理解,在诸如通用字典中定义的术语应当被解释为具有与它们在相关技术的上下文中的含义相一致的含义,而不应用理想化或极度形式化的意义来解释,除非这里明确地这样定义。All terms (including technical terms or scientific terms) used in the present disclosure have the same meaning as understood by one of ordinary skill in the art to which the present disclosure belongs, unless otherwise specifically defined. It should also be understood that terms defined in, for example, general-purpose dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in idealized or extremely formalized meanings, unless explicitly stated herein Defined like this.

对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods and devices should be considered part of the description.

Claims (10)

1.一种无人农机导航方法,该方法包括:1. A method for unmanned agricultural machinery navigation, the method comprising: 确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角点的大地坐标;Determine the geodetic coordinates of the characteristic corner points of the graphic signs set on the driving path of the unmanned agricultural machine or on both sides of the driving path; 在无人农机行驶过程中定位得到该无人农机的大地坐标,采集周边环境图像,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓,由此识别所述周边环境图像中图案的顶点,将所述顶点作为特征角点,并计算得到所述特征角点的像素坐标;The geodetic coordinates of the unmanned agricultural machine are located during the driving process of the unmanned agricultural machine, the surrounding environment image is collected, and the edge contour of the pattern in the surrounding environment image is extracted using the image edge detection technology, thereby identifying the pattern in the surrounding environment image vertex, using the vertex as a feature corner point, and calculating the pixel coordinates of the feature corner point; 利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定。Using the geodetic coordinates and pixel coordinates of the feature corners, the geodetic coordinates of the unmanned agricultural machine are corrected and calibrated. 2.根据权利要求1所述的无人农机导航方法,其中,确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角根据权利要求1所述的方法,点的大地坐标包括:2. unmanned agricultural machine navigation method according to claim 1, wherein, determine the feature angle that is arranged on the unmanned agricultural machine travel path or the both sides of travel path of the graphic indicator according to the method described in claim 1, point Geodetic coordinates include: 利用RTK高精度接收机在一段时间内静态测量采集所述图形指示牌的坐标位置,对所述一段时间采集的所述图形指示牌的坐标位置取均值,计算得到所述图形指示牌的所述特征角点的大地坐标。Utilize the RTK high-precision receiver to statically measure and collect the coordinate position of the graphic signboard within a period of time, take the average value of the coordinate positions of the graphic signboard collected during the period of time, and calculate the said graphic signpost Geodetic coordinates of feature corners. 3.根据权利要求1所述的无人农机导航方法,其中,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓包括:3. The unmanned agricultural machine navigation method according to claim 1, wherein, utilizing image edge detection technology, extracting the edge profile of the pattern in the surrounding environment image comprises: 计算所述周边环境图像中图案的梯度与角度;calculating the gradient and angle of the pattern in the surrounding environment image; 对所述梯度进行非极大值抑制;performing non-maximum suppression on the gradient; 使用双阈值对图案的边缘进行连接,直至提取出图案的完整的边缘轮廓。The edges of the pattern are connected using double thresholding until the complete edge profile of the pattern is extracted. 4.根据权利要求3所述的无人农机导航方法,其中,计算所述周边环境图像中图案的梯度与角度包括:4. The unmanned agricultural machine navigation method according to claim 3, wherein calculating the gradient and angle of the pattern in the surrounding environment image comprises: 根据以下公式计算所述周边环境图像中图案的梯度与角度,
Figure FDA0003681992020000011
Figure FDA0003681992020000012
Calculate the gradient and angle of the pattern in the surrounding environment image according to the following formula,
Figure FDA0003681992020000011
Figure FDA0003681992020000012
其中,x为所述周边环境图像中图案的像素点的横坐标,y为所述周边环境图像中图案的像素点的纵坐标,f为所述周边环境图像中图案的灰度值,
Figure FDA0003681992020000021
为所述周边环境图像中图案的所有像素点计算形成的角度矩阵。
Wherein, x is the abscissa of the pixel of the pattern in the surrounding environment image, y is the ordinate of the pixel of the pattern in the surrounding environment image, f is the gray value of the pattern in the surrounding environment image,
Figure FDA0003681992020000021
The formed angle matrix is calculated for all pixels of the pattern in the surrounding environment image.
5.根据权利要求3所述的无人农机导航方法,其中,对所述梯度进行非极大值抑制包括:5. The unmanned agricultural machinery navigation method according to claim 3, wherein, carrying out non-maximum suppression to the gradient comprises: 判断所述梯度中当前检测的点C的灰度值在8连通邻域内是否最大,如果是最大,则继续检查所述梯度中的梯度方向的第一交点dTmp1和第二角点dTmp2的灰度值是否大于C,如果C大于第一交点dTmp1和第二角点dTmp2的灰度值,则认定C为极大值并将C的值置为1,否则认为C为非极大值并将C的值置为0,遍历所述梯度中的所有点C,从而寻找梯度中像素点的局部最大值,完成所述梯度的非极大值抑制。Judging whether the gray value of the currently detected point C in the gradient is the largest in the 8-connected neighborhood, if it is the largest, continue to check the gray values of the first intersection point dTmp1 and the second corner point dTmp2 of the gradient direction in the gradient Whether the value is greater than C, if C is greater than the gray value of the first intersection point dTmp1 and the second corner point dTmp2, then consider C to be a maximum value and set the value of C to 1, otherwise consider C to be a non-maximum value and set C The value of is set to 0, and all points C in the gradient are traversed, so as to find the local maximum of the pixel points in the gradient, and complete the non-maximum suppression of the gradient. 6.根据权利要求3所述的无人农机导航方法,其中,使用双阈值对图案的边缘进行连接,直至提取出图案的完整的边缘轮廓包括:6. The unmanned agricultural machine navigation method according to claim 3, wherein, using double thresholds to connect the edges of the pattern until the complete edge profile of the pattern is extracted comprises: 选取两个阈值,该两个阈值包括低阈值和高阈值,将小于所述低阈值的点认为是假边缘并置为0,将大于高阈值的点认为是强边缘并置为1;Select two thresholds, the two thresholds include a low threshold and a high threshold, the points smaller than the low threshold are considered as false edges and set to 0, and the points greater than the high threshold are considered to be strong edges and set to 1; 根据图像中的高阈值点,首先把它们连接成轮廓,当到达轮廓的断点时,算法会在断点的8领域中寻找满足低阈值的点,再根据此点收集新的边缘,直到整个图像闭合。According to the high-threshold points in the image, they are first connected into contours. When the breakpoint of the contour is reached, the algorithm will look for points that meet the low threshold in the 8 fields of the breakpoint, and then collect new edges based on this point until the entire The image is closed. 7.根据权利要求1所述的无人农机导航方法,其中,利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定包括:7. The unmanned agricultural machinery navigation method according to claim 1, wherein, using the earth coordinates and pixel coordinates of the characteristic corner points, correcting and calibrating the earth coordinates of the unmanned agricultural machinery comprises: 根据以下公式,计算修正后的无人农机的坐标,Calculate the coordinates of the corrected unmanned agricultural machine according to the following formula,
Figure FDA0003681992020000022
Figure FDA0003681992020000022
其中,p′j为所述特征角点的的大地坐标,pj为待优化的无人农机的修正坐标,z′ij为无人农机在位姿Ti处观察所述特征角点p′j所产生的像素测量数据,eij为误差函数,h(Ti,pj)为世界坐标到像素坐标的投影函数。Among them, p' j is the geodetic coordinate of the characteristic corner point, p j is the correction coordinate of the unmanned agricultural machine to be optimized, and z' ij is the characteristic corner point p' observed by the unmanned agricultural machine at the pose T i The pixel measurement data generated by j , eij is an error function, and h(T i , pj) is a projection function from world coordinates to pixel coordinates.
8.一种无人农机导航设备,其中,该装置包括:8. A navigation device for unmanned agricultural machinery, wherein the device comprises: 特征角点大地坐标确定装置,用于确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角点的大地坐标;The feature corner geodetic coordinate determining device is used to determine the geodetic coordinates of the feature corner points of the graphic signage set on the driving path of the unmanned agricultural machinery or on both sides of the driving path; 特征角点像素坐标计算装置,在无人农机行驶过程中定位得到该无人农机的大地坐标,采集周边环境图像,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓,由此识别所述周边环境图像中图案的顶点,将所述顶点作为特征角点,并计算得到所述特征角点的像素坐标;The feature corner point pixel coordinate calculation device locates the unmanned agricultural machine to obtain the geodetic coordinates of the unmanned agricultural machine during driving, collects the surrounding environment image, and uses the image edge detection technology to extract the edge contour of the pattern in the surrounding environment image, thereby Identifying the vertices of the pattern in the surrounding environment image, using the vertices as feature corner points, and calculating the pixel coordinates of the feature corner points; 坐标标定装置,用于利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定。The coordinate calibration device is used to correct and calibrate the geodetic coordinates of the unmanned agricultural machine by using the geodetic coordinates and pixel coordinates of the feature corner points. 9.一种无人农机导航装置,该装置包括:9. A navigation device for unmanned agricultural machinery, the device comprising: 处理器,processor, 存储器,包括处理器可执行的程序指令,当所述程序指令由所述处理器执行时,使得所述测定室内无线信号发射锚点的位置坐标的装置执行以下的操作:The memory includes program instructions executable by the processor. When the program instructions are executed by the processor, the device for determining the position coordinates of the indoor wireless signal transmission anchor point performs the following operations: 确定设置在无人农机行驶路径上或行驶路径的两侧的图形指示牌的特征角点的大地坐标;Determine the geodetic coordinates of the characteristic corner points of the graphic signs set on the driving path of the unmanned agricultural machine or on both sides of the driving path; 在无人农机行驶过程中定位得到该无人农机的大地坐标,采集周边环境图像,利用图像边缘检测技术,提取所述周边环境图像中图案的边缘轮廓,由此识别所述周边环境图像中图案的顶点,将所述顶点作为特征角点,并计算得到所述特征角点的像素坐标;The geodetic coordinates of the unmanned agricultural machine are located during the driving process of the unmanned agricultural machine, the surrounding environment image is collected, and the edge contour of the pattern in the surrounding environment image is extracted using the image edge detection technology, thereby identifying the pattern in the surrounding environment image vertex, using the vertex as a feature corner point, and calculating the pixel coordinates of the feature corner point; 利用所述特征角点的大地坐标和像素坐标,对所述无人农机的大地坐标进行修正和标定。Using the geodetic coordinates and pixel coordinates of the feature corners, the geodetic coordinates of the unmanned agricultural machine are corrected and calibrated. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法。10. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
CN202210635783.5A 2022-06-07 2022-06-07 Unmanned agricultural machinery navigation method, equipment, device and storage medium Pending CN115683102A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210635783.5A CN115683102A (en) 2022-06-07 2022-06-07 Unmanned agricultural machinery navigation method, equipment, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210635783.5A CN115683102A (en) 2022-06-07 2022-06-07 Unmanned agricultural machinery navigation method, equipment, device and storage medium

Publications (1)

Publication Number Publication Date
CN115683102A true CN115683102A (en) 2023-02-03

Family

ID=85060211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210635783.5A Pending CN115683102A (en) 2022-06-07 2022-06-07 Unmanned agricultural machinery navigation method, equipment, device and storage medium

Country Status (1)

Country Link
CN (1) CN115683102A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118429497A (en) * 2024-05-11 2024-08-02 徐州徐工农业装备科技有限公司 Animation display method for agricultural machinery navigation system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005010820A2 (en) * 2003-07-29 2005-02-03 Holding Bev Sa Automated method and device for perception associated with determination and characterisation of borders and boundaries of an object of a space, contouring and applications
CN106017477A (en) * 2016-07-07 2016-10-12 西北农林科技大学 Visual navigation system of orchard robot
CN111145263A (en) * 2019-10-14 2020-05-12 广东星舆科技有限公司 Vehicle-mounted-based automatic camera calibration method
WO2020151212A1 (en) * 2019-01-24 2020-07-30 惠州市德赛西威汽车电子股份有限公司 Calibration method for extrinsic camera parameter of on-board camera system, and calibration system
WO2021141666A2 (en) * 2019-11-13 2021-07-15 Battelle Energy Alliance, Llc Unmanned vehicle navigation, and associated methods, systems, and computer-readable medium
CN113792564A (en) * 2021-09-29 2021-12-14 北京航空航天大学 Indoor positioning method based on invisible projection two-dimensional code
WO2022016838A1 (en) * 2020-07-21 2022-01-27 上海思岚科技有限公司 Positioning method and device based on visual tag

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005010820A2 (en) * 2003-07-29 2005-02-03 Holding Bev Sa Automated method and device for perception associated with determination and characterisation of borders and boundaries of an object of a space, contouring and applications
CN106017477A (en) * 2016-07-07 2016-10-12 西北农林科技大学 Visual navigation system of orchard robot
WO2020151212A1 (en) * 2019-01-24 2020-07-30 惠州市德赛西威汽车电子股份有限公司 Calibration method for extrinsic camera parameter of on-board camera system, and calibration system
CN111145263A (en) * 2019-10-14 2020-05-12 广东星舆科技有限公司 Vehicle-mounted-based automatic camera calibration method
WO2021141666A2 (en) * 2019-11-13 2021-07-15 Battelle Energy Alliance, Llc Unmanned vehicle navigation, and associated methods, systems, and computer-readable medium
WO2022016838A1 (en) * 2020-07-21 2022-01-27 上海思岚科技有限公司 Positioning method and device based on visual tag
CN113792564A (en) * 2021-09-29 2021-12-14 北京航空航天大学 Indoor positioning method based on invisible projection two-dimensional code

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈顺等: "基于多层小波阈值函数的彩色图像边缘检测", 《计算机应用与软件》, vol. 39, no. 2, 28 February 2022 (2022-02-28), pages 228 - 233 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118429497A (en) * 2024-05-11 2024-08-02 徐州徐工农业装备科技有限公司 Animation display method for agricultural machinery navigation system

Similar Documents

Publication Publication Date Title
CN108663681B (en) Mobile robot navigation method based on binocular camera and two-dimensional laser radar
WO2021139590A1 (en) Indoor localization and navigation apparatus based on bluetooth and slam, and method therefor
CN107703528B (en) Visual positioning method and system combined with low-precision GPS in automatic driving
CN110031829B (en) An accurate ranging method for targets based on monocular vision
CN106651990B (en) Indoor map construction method and indoor positioning method based on indoor map
US20210342620A1 (en) Geographic object detection apparatus and geographic object detection method
CN113657224B (en) Method, device and equipment for determining object state in vehicle-road coordination
CN108733039A (en) The method and apparatus of navigator fix in a kind of robot chamber
CN112967344B (en) Method, device, storage medium and program product for calibrating camera external parameters
CN112967345B (en) External parameter calibration method, device and system of fish-eye camera
CN106705962B (en) A method and system for obtaining navigation data
CN103065323A (en) Subsection space aligning method based on homography transformational matrix
CN106225774A (en) A kind of unmanned agriculture tractor road measurement apparatus based on computer vision and method
KR102675138B1 (en) Method for calibration of multiple lidars, and computer program recorded on record-medium for executing method therefor
CN118168545A (en) Weeding robot positioning and navigation system and method based on multi-source sensor fusion
KR102616437B1 (en) Method for calibration of lidar and IMU, and computer program recorded on record-medium for executing method therefor
Kong et al. An automatic and accurate method for marking ground control points in unmanned aerial vehicle photogrammetry
CN115077563A (en) Vehicle positioning accuracy evaluation method and device and electronic equipment
Jung et al. A novel 2.5 D pattern for extrinsic calibration of tof and camera fusion system
CN112446915A (en) Picture-establishing method and device based on image group
CN115683102A (en) Unmanned agricultural machinery navigation method, equipment, device and storage medium
CN115265493B (en) Lane-level positioning method and device based on non-calibrated camera
CN104180794B (en) The disposal route in digital orthoimage garland region
CN110044358B (en) Mobile robot localization method based on field line features
CN114719873B (en) A low-cost fine map automatic generation method, device and readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination