[go: up one dir, main page]

CN106444765B - A kind of AGV air navigation aid of view-based access control model - Google Patents

A kind of AGV air navigation aid of view-based access control model Download PDF

Info

Publication number
CN106444765B
CN106444765B CN201610918266.3A CN201610918266A CN106444765B CN 106444765 B CN106444765 B CN 106444765B CN 201610918266 A CN201610918266 A CN 201610918266A CN 106444765 B CN106444765 B CN 106444765B
Authority
CN
China
Prior art keywords
agv
horizontal line
picture
track
reference horizontal
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.)
Active
Application number
CN201610918266.3A
Other languages
Chinese (zh)
Other versions
CN106444765A (en
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.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201610918266.3A priority Critical patent/CN106444765B/en
Publication of CN106444765A publication Critical patent/CN106444765A/en
Application granted granted Critical
Publication of CN106444765B publication Critical patent/CN106444765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0246Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Electromagnetism (AREA)
  • Remote Sensing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Automation & Control Theory (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明公开了一种基于视觉的AGV导航方法,包括如下步骤:获取具有轨道标示的地面的图片;对所述图片的基准水平线进行灰度处理,得到基准水平线数组;将多个所述基准水平线数组构成轨道矩阵;对所述轨道矩阵的相邻上下两行进行异或处理,得到轨道边缘信息;对所述轨道边缘信息进行数字化处理,作为AGV的控制器输入,以实现所述AGV的运动控制。本发明还公开了一种基于视觉的AGV导航系统。本发明还公开了一种包括上述基于视觉的AGV导航系统的AGV。上述导航方法,所获得的轨道边缘信息精度较高,实现了快速导航的目的。

The invention discloses a vision-based AGV navigation method, comprising the following steps: acquiring a picture of the ground with track marks; performing grayscale processing on a reference horizontal line of the picture to obtain an array of reference horizontal lines; The array forms a track matrix; the adjacent upper and lower rows of the track matrix are XORed to obtain track edge information; the track edge information is digitally processed as the input of the AGV controller to realize the movement of the AGV control. The invention also discloses a vision-based AGV navigation system. The present invention also discloses an AGV including the above vision-based AGV navigation system. In the above-mentioned navigation method, the obtained track edge information has high precision, and the purpose of fast navigation is realized.

Description

一种基于视觉的AGV导航方法A Vision-Based AGV Navigation Method

技术领域technical field

本发明涉及自动控制技术领域,特别涉及一种基于视觉的AGV导航方法。The invention relates to the technical field of automatic control, in particular to a vision-based AGV navigation method.

背景技术Background technique

AGV(Automated Guided Vehicle),即“自动导引运输车”,是指装备有电磁或光学等自动导引装置,它能够沿规定的导引路径行驶,具有安全保护以及各种移载功能的运输车。AGV (Automated Guided Vehicle), namely "Automated Guided Vehicle", refers to the transportation equipped with electromagnetic or optical automatic guidance devices, which can travel along the specified guidance path, with safety protection and various transfer functions. car.

目前AGV有多种导引方式,包括:电磁导引,激光导引,视觉导引等。因为激光导引和电磁导引等往往成本高昂,容易受到工厂复杂环境的影响,且随着嵌入式控制器芯片的发展,AGV将更加智能化,视觉导引将会更加灵活,是AGV自动导航的发展方向。At present, AGV has a variety of guidance methods, including: electromagnetic guidance, laser guidance, visual guidance, etc. Because laser guidance and electromagnetic guidance are often expensive and easily affected by the complex environment of the factory, and with the development of embedded controller chips, AGVs will be more intelligent, and visual guidance will be more flexible. It is the automatic navigation of AGV. development direction.

现有视觉导航技术中,由于计算速度的限制,往往存在实现困难的问题。如采用嵌入式系统的视觉导引AGV系统及方法,由于采用双摄像头方案,成本高且需要具有高速的图像处理能力;而其他基于视觉的AGV导航方法,虽然也有利用了轨道矩阵的方式,但是它是通过查找图片所有相连和重合的边缘区域,算法复杂。In the existing visual navigation technology, due to the limitation of calculation speed, there is often a problem of implementation difficulty. For example, the vision-guided AGV system and method using an embedded system is costly and requires high-speed image processing capability due to the dual-camera solution; while other vision-based AGV navigation methods also use the orbit matrix method, but It is by finding all connected and coincident edge regions of the image, and the algorithm is complex.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种基于视觉的AGV导航方法,该方法可以快速导航,且精度较高,实现方法较为简单。The purpose of the present invention is to provide a vision-based AGV navigation method, which can navigate quickly, has high precision, and is simple to implement.

为实现上述目的,本发明提供一种基于视觉的AGV导航方法,包括如下步骤:To achieve the above object, the present invention provides a vision-based AGV navigation method, comprising the following steps:

获取具有轨道标示的地面的图片;Get a picture of the ground with track markings;

对所述图片的基准水平线进行灰度处理,得到基准水平线数组;Grayscale processing is performed on the reference horizontal line of the picture to obtain a reference horizontal line array;

将多个所述基准水平线数组构成轨道矩阵;forming a track matrix with a plurality of the reference horizontal line arrays;

对所述轨道矩阵的相邻上下两行进行异或处理,得到轨道边缘信息;XOR processing is performed on the adjacent upper and lower rows of the track matrix to obtain track edge information;

对所述轨道边缘信息进行数字化处理,作为AGV的控制器输入,以实现所述AGV的运动控制。The track edge information is digitally processed and used as the controller input of the AGV to realize the motion control of the AGV.

相对于上述背景技术,本发明提供的基于视觉的AGV导航方法,其核心在于,针对图片的基准水平线进行灰度处理,从而得到基准水平线数组;基准水平线往往为图片中的一根水平直线;本发明在AGV行走过程中,每间隔预设的时间间隔,便会采集一张图片,每当采集一张图片之后,对图片的基准水平线进行灰度处理;并将多个基准水平线数组构成轨道矩阵,对轨道矩阵进行异或处理,得到轨道边缘信息,从而进行数字化处理,并作为AGV的控制器输入,以实现AGV的运动控制;可以看出,本发明采用了针对图片的基准水平线进行灰度处理的方式,并对多张图片分别进行基准水平线进行灰度处理,得到多个基准水平线数组,从而构成轨道矩阵,这样极大简化了计算过程,避免现有技术中需要对环境进行持续不断的监测与图像处理;采用上述方式所获得的轨道边缘信息精度较高,实现了快速导航的目的。Compared with the above-mentioned background technology, the core of the vision-based AGV navigation method provided by the present invention is to perform grayscale processing on the reference horizontal line of the picture, thereby obtaining the reference horizontal line array; the reference horizontal line is often a horizontal straight line in the picture; this It is invented that during the walking process of the AGV, a picture will be collected at every preset time interval, and each time a picture is collected, the reference horizontal line of the picture will be gray-scaled; and a plurality of reference horizontal line arrays will be formed into a track matrix. , perform XOR processing on the track matrix to obtain the track edge information, so as to carry out digital processing and input as the controller of the AGV to realize the motion control of the AGV; it can be seen that the present invention adopts the reference horizontal line for the picture to perform grayscale The processing method is to perform grayscale processing on the reference horizontal lines of multiple pictures to obtain multiple reference horizontal line arrays, thereby forming a track matrix, which greatly simplifies the calculation process and avoids the need for continuous environmental monitoring in the prior art. Monitoring and image processing; the track edge information obtained by the above method has high precision and realizes the purpose of fast navigation.

优选地,所述获取具有轨道标示的地面图像,得到图片的步骤具体包括:Preferably, the step of obtaining a ground image with track marks, and obtaining the image specifically includes:

通过安装于所述AGV的摄像头间隔预设时间间隔对所述轨道标示进行采集,得到多组图片。The track marks are collected at preset time intervals by the cameras installed on the AGV to obtain multiple sets of pictures.

优选地,所述预设时间间隔的范围具体为0.3s~0.6s。Preferably, the range of the preset time interval is 0.3s˜0.6s.

优选地,所述对所述图片的基准水平线进行灰度处理,得到基准水平线数组的步骤具体包括:Preferably, the step of performing grayscale processing on the reference horizontal line of the picture to obtain the reference horizontal line array specifically includes:

每隔预设像素,采集所述图片的基准水平线上的像素点;Every preset pixel, collect the pixel points on the reference horizontal line of the picture;

对每一个所述像素点通过预设灰度值转换公式进行灰度值转换,得到基准水平线数组。Gray value conversion is performed on each of the pixel points through a preset gray value conversion formula to obtain a reference horizontal line array.

优选地,所述对每一个所述像素点通过预设灰度值转换公式进行灰度值转换,得到基准水平线数组的步骤具体包括:Preferably, the step of performing gray value conversion on each of the pixel points through a preset gray value conversion formula to obtain the reference horizontal line array specifically includes:

通过公式h=(R*38+G*75+B*15)>>7计算得到所述基准水平线上每一个所述像素点的灰度值h;其中,R、G和B分别代表为红色、绿色和蓝色;The grayscale value h of each of the pixel points on the reference horizontal line is calculated by the formula h=(R*38+G*75+B*15)>>7; wherein, R, G and B respectively represent red , green and blue;

将所述灰度值h与预设阈值a进行比较:Compare the gray value h with the preset threshold a:

当h≤a时,h取值为0;When h≤a, h takes the value 0;

当h>a时,h取值为1;When h>a, h takes the value 1;

得到基准水平线数组。Get an array of datum horizons.

优选地,所述对所述轨道边缘信息进行数字化处理,作为AGV的控制器输入,以实现所述AGV的运动控制的步骤具体包括:Preferably, the step of performing digital processing on the track edge information and inputting it as the controller of the AGV to realize the motion control of the AGV specifically includes:

根据所述轨道边缘信息中的轨道边缘得到轨道中线;Obtain the track center line according to the track edge in the track edge information;

将所述轨道中线作为AGV的控制器输入,以实现所述AGV的运动控制。The center line of the track is input as the controller of the AGV to realize the motion control of the AGV.

优选地,所述图片的基准水平线具体为:所述图片高度范围在1/3~3/4中的任意一条水平线。Preferably, the reference horizontal line of the picture is specifically: any horizontal line in the range of 1/3 to 3/4 of the height of the picture.

优选地,所述AGV的控制器具体为PID控制器。Preferably, the controller of the AGV is a PID controller.

本发明还提供一种基于视觉的AGV导航系统,包括:The present invention also provides a vision-based AGV navigation system, including:

摄像头,用于获取具有轨道标示的地面的图片;A camera for taking pictures of the ground with track marks;

灰度处理模块,用于对所述图片的基准水平线进行灰度处理,得到基准水平线数组;a grayscale processing module, configured to perform grayscale processing on the reference horizontal lines of the picture to obtain a reference horizontal line array;

轨道矩阵构成模块,用于将多个所述基准水平线数组构成轨道矩阵;a track matrix forming module, configured to form a track matrix with a plurality of the reference horizontal line arrays;

异或处理模块,用于对所述轨道矩阵的相邻上下两行进行异或处理,得到轨道边缘信息;an XOR processing module for performing XOR processing on the adjacent upper and lower rows of the track matrix to obtain track edge information;

数字化处理模块,用于对所述轨道边缘信息进行数字化处理,作为AGV的控制器输入,以实现所述AGV的运动控制。The digital processing module is used to perform digital processing on the track edge information as the input of the controller of the AGV, so as to realize the motion control of the AGV.

本发明还提供一种AGV,包括上述所述的基于视觉的AGV导航系统。The present invention also provides an AGV, including the above-mentioned vision-based AGV navigation system.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.

图1为本发明实施例所提供的基于视觉的AGV导航方法的流程示意图;1 is a schematic flowchart of a vision-based AGV navigation method provided by an embodiment of the present invention;

图2为图1中为得到轨道边缘信息所进行的数学变换过程;Fig. 2 is the mathematical transformation process that is carried out for obtaining track edge information in Fig. 1;

图3为图1中的PID控制框图;Fig. 3 is the PID control block diagram in Fig. 1;

图4为本发明实施例所提供的AGV的正视图;4 is a front view of an AGV provided by an embodiment of the present invention;

图5为图4的底部视图。FIG. 5 is a bottom view of FIG. 4 .

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

为了使本技术领域的技术人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

请参考图1至图5,图1为本发明实施例所提供的基于视觉的AGV导航方法的流程示意图;图2为图1中为得到轨道边缘信息所进行的数学变换过程;图3为图1中的PID控制框图;图4为本发明实施例所提供的AGV的正视图;图5为图4的底部视图。Please refer to FIGS. 1 to 5. FIG. 1 is a schematic flowchart of a vision-based AGV navigation method provided by an embodiment of the present invention; FIG. 2 is a mathematical transformation process performed to obtain track edge information in FIG. 1; The PID control block diagram in 1; FIG. 4 is the front view of the AGV provided by the embodiment of the present invention; FIG. 5 is the bottom view of FIG. 4 .

本发明提供了一种基于视觉的AGV导航方法,如说明书附图1所示,主要包括如下步骤:The present invention provides a vision-based AGV navigation method, as shown in Figure 1 of the description, which mainly includes the following steps:

S1、获取具有轨道标示的地面的图片;S1. Obtain a picture of the ground with track marks;

S2、对所述图片的基准水平线进行灰度处理,得到基准水平线数组;S2, performing grayscale processing on the reference horizontal lines of the picture to obtain a reference horizontal line array;

S3、将多个所述基准水平线数组构成轨道矩阵;S3, forming a track matrix with a plurality of the reference horizontal line arrays;

S4、对所述轨道矩阵的相邻上下两行进行异或处理,得到轨道边缘信息;S4, performing XOR processing on the adjacent upper and lower rows of the track matrix to obtain track edge information;

S5、对所述轨道边缘信息进行数字化处理,作为AGV的控制器输入,以实现所述AGV的运动控制。S5. Digitally process the track edge information as an input to the controller of the AGV, so as to realize the motion control of the AGV.

首先,在AGV行走的地面上设置轨道标示,地面与轨道标示之间具备一定的颜色反差即可,对于本领域技术人员来说,地面与轨道标示之间的颜色反差应能够理解。地面与轨道标示的颜色并无限制,并且轨道标示也无宽度的要求。First of all, a track mark is set on the ground where the AGV walks, and there is a certain color contrast between the ground and the track mark. For those skilled in the art, the color contrast between the ground and the track mark should be understandable. There are no restrictions on the color of the ground and track markings, and there is no requirement for the width of the track markings.

在步骤S1中,获取具有轨道标示的地面的图片;即,可以利用摄像头或其他图像采集装置采集地面的图片,且地面的图片中应具有轨道标示的内容。In step S1, a picture of the ground with track marks is obtained; that is, a camera or other image acquisition device can be used to collect a picture of the ground, and the picture of the ground should have the content of the track mark.

在步骤S2中,对上述具有轨道标示内容的图片中的基准水平线进行灰度处理,得到基准水平线数组;由于图片为某一时刻地面的情况,通过图片可以反映出该时刻轨道标示相对于地面的位置。将图片中的基准水平线进行灰度处理,而基准水平线可以为图片中任意一条水平线;即,对于一张图片来说,仅仅处理图片中的一条水平线,从而能够极大简化处理过程,提高处理效率。而在AGV行走过程中,摄像头或其他图像采集装置的角度相对于AGV车身来说应保持位置不变,并且对于每一张图片,均应处理位置相同的一条水平线,以确保得到的轨道位置精确。In step S2, gray-scale processing is performed on the reference horizontal line in the picture with the content of the track marking to obtain the reference horizontal line array; because the picture is the ground situation at a certain moment, the picture can reflect the track marking at this moment relative to the ground. Location. Grayscale processing is performed on the reference horizontal line in the picture, and the reference horizontal line can be any horizontal line in the picture; that is, for a picture, only one horizontal line in the picture is processed, which can greatly simplify the processing process and improve the processing efficiency. . In the process of AGV walking, the angle of the camera or other image acquisition device should remain unchanged relative to the AGV body, and for each picture, a horizontal line with the same position should be processed to ensure that the obtained track position is accurate .

而基准水平线数组的获取可以参考现有技术,灰度处理的过程可以根据实际需要采用多种不同的公式进行计算。For the acquisition of the reference horizontal line array, reference may be made to the prior art, and the grayscale processing process can be calculated by using various formulas according to actual needs.

在步骤S3中,对多个所述基准水平线数组构成轨道矩阵;显而易见地,在AGV行走过程中,间隔预设时间间隔便会采集一次地面的图片,且每一张图片中轨道标示相对于地面的位置均会发生变化,而针对每一张图片都会处理图片中的一条水平线,将多张图片所分别对应的多条基准水平线数组进行组合,得到轨道矩阵。In step S3, a track matrix is formed for a plurality of the reference horizontal line arrays; obviously, during the walking process of the AGV, a picture of the ground will be collected at a preset time interval, and the track mark in each picture is relative to the ground. The position of each image will change, and for each image, one horizontal line in the image will be processed, and multiple reference horizontal line arrays corresponding to multiple images will be combined to obtain a track matrix.

在步骤S4中,对轨道矩阵的相邻上下两行进行异或处理,得到轨道边缘信息;如说明书附图2所示。在一次采集的图片中,基准水平线数组为“0000111111110000”,以16个像素点为例,通过多次采集图片,并分别对每一张图片进行灰度处理,得到多个基准水平线数组,构成轨道矩阵;然后通过将轨道矩阵的相邻上下两行进行异或处理;轨道矩阵的上下两行依次做异或运算,即第一行与第二行异或,第二行与第三行异或,第三行与第四行异或,依次类推。由此,轨道边缘将全部变为元素1,而非边缘部分都为0,最终得到轨道边缘信息。In step S4, XOR processing is performed on the adjacent upper and lower rows of the track matrix to obtain track edge information; as shown in FIG. 2 of the specification. In the picture collected once, the reference horizontal line array is "00001111111110000", taking 16 pixels as an example, by collecting pictures multiple times, and performing grayscale processing on each picture, multiple reference horizontal line arrays are obtained to form a track matrix; then XOR the adjacent upper and lower rows of the track matrix; XOR the upper and lower rows of the track matrix in turn, that is, the first row is XORed with the second row, and the second row is XORed with the third row , the third row is XORed with the fourth row, and so on. As a result, the track edges will all become elements 1, and the non-edge parts will be 0, and finally the track edge information will be obtained.

在步骤S5中,对轨道边缘信息进行数字化处理,作为AGV的控制器输入,以实现AGV的运动控制。即,控制器的输入可以为图像中轴线数组中中间元素的下标;控制AGV的转角时,输出为异或处理后的轨道边缘信息中每行出现的两个元素1的下标平均值,可以进行PID闭环负反馈控制。如说明书附图3中的PID控制框图所示。当然,AGV的控制器还可以为其他控制器。采用PID控制器配之以本发明上述的方法,充分发挥PID控制器的特性,实现高精度且快速的导航。In step S5, digital processing is performed on the track edge information, which is input as the controller of the AGV to realize the motion control of the AGV. That is, the input of the controller can be the subscript of the middle element in the axis array in the image; when controlling the corner of the AGV, the output is the subscript average value of the two elements 1 appearing in each row in the XOR-processed track edge information, PID closed-loop negative feedback control can be performed. As shown in the PID control block diagram in Fig. 3 of the specification. Of course, the controller of the AGV can also be other controllers. The PID controller is used in conjunction with the above method of the present invention to give full play to the characteristics of the PID controller to achieve high-precision and fast navigation.

在上述步骤S1中,可以通过安装于所述AGV的摄像头间隔预设时间间隔对所述轨道标示进行采集,得到多组图片;且预设时间间隔的范围具体为0.3s~0.6s。如说明书附图4所示,摄像头1安装于AGV的前端,且摄像头1与水平面之间呈25°~35°,斜向下设置。摄像头1通过支架固定在AGV的前方顶部的中线位置(即宽度的1/2),保证采集AGV前方一定距离的轨道信息;具体可以根据AGV的车体大小,摄像头1的像素,控制精度,AGV的速度,对支架固定位置在车体中轴线上前后调试。In the above step S1, the track marks can be collected by the cameras installed on the AGV at preset time intervals to obtain multiple sets of pictures; and the range of the preset time intervals is specifically 0.3s-0.6s. As shown in FIG. 4 in the description, the camera 1 is installed at the front end of the AGV, and the distance between the camera 1 and the horizontal plane is 25° to 35°, and is set obliquely downward. The camera 1 is fixed at the centerline position of the front and top of the AGV (that is, 1/2 of the width) through the bracket to ensure the collection of track information at a certain distance in front of the AGV; the specific can be based on the body size of the AGV, the pixels of the camera 1, the control accuracy, and the AGV. The speed of the bracket is adjusted before and after the fixed position of the bracket on the center axis of the vehicle body.

在上述步骤S2中,对所述图片的基准水平线进行灰度处理,得到基准水平线数组的步骤具体包括:In the above step S2, the steps of performing grayscale processing on the reference horizontal lines of the picture to obtain an array of reference horizontal lines specifically include:

每隔预设像素,采集所述图片的基准水平线上的像素点;Every preset pixel, collect the pixel points on the reference horizontal line of the picture;

对每一个所述像素点通过预设灰度值转换公式进行灰度值转换,得到基准水平线数组。Gray value conversion is performed on each of the pixel points through a preset gray value conversion formula to obtain a reference horizontal line array.

针对每一张图片的基准水平线的处理,针对图片的基准水平线,采用等差处理的方式进行二值化处理;由于图片的基准水平线依据不同清晰度具有不同的像素点个数,但为了减少运算量与基准水平线数组的大小,采用等差取点处理的方式。例如,使用30万像素的相机,分辨率为640*480,取基准水平线将会获得640个像素点,通过等差方式每5个像素取一点,会获得128个像素点,所间隔的预设像素以精度和运算速度要求可减少或增加。For the processing of the reference horizontal line of each picture, the basic horizontal line of the picture is binarized by the method of equal difference processing; since the reference horizontal line of the picture has different numbers of pixels according to different resolutions, in order to reduce the calculation The amount and the size of the reference horizontal line array are processed by the method of arithmetic difference. For example, using a 300,000-pixel camera with a resolution of 640*480, taking the reference horizontal line will obtain 640 pixels, and taking a point every 5 pixels by the arithmetic method will obtain 128 pixels. Pixels can be reduced or increased depending on precision and operation speed requirements.

然而对于每一个所述像素点通过预设灰度值转换公式进行灰度值转换,得到基准水平线数组。而在这一过程中,本发明优选采用公式h=(R*38+G*75+B*15)>>7计算得到所述基准水平线上每一个所述像素点的灰度值h;其中,R、G和B分别代表为红色、绿色和蓝色;然后将所述灰度值h与预设阈值a进行比较:当h≤a时,h取值为0;当h>a时,h取值为1;从而得到基准水平线数组。However, for each of the pixel points, gray value conversion is performed through a preset gray value conversion formula to obtain a reference horizontal line array. In this process, the present invention preferably adopts the formula h=(R*38+G*75+B*15)>>7 to calculate the grayscale value h of each pixel point on the reference horizontal line; wherein , R, G and B represent red, green and blue respectively; then compare the gray value h with the preset threshold a: when h≤a, h takes the value 0; when h>a, The value of h is 1; thus, the array of reference horizontal lines is obtained.

关于预设阈值a的选择,可以通过试验,以轨道进行二值化后,轨道部分与地面部分能以0,1完整区分开为准。Regarding the selection of the preset threshold value a, it can be tested that after the orbit is binarized, the orbit part and the ground part can be completely distinguished by 0 and 1.

本发明优选采用的h=(R*38+G*75+B*15)>>7为7位精度的灰度值算法,而该算法具有精度高、速度快的优点;当然,根据实际需要,预设灰度值转换公式还可以采用其他精度位数的公式计算,本分将不再赘述。针对上述步骤,可以在相应的辅助软件中,对采集到的地面的图片进行灰度处理,即对RGB的图片转成灰度图,对灰度图做灰度直方图,颜色深度选择为8,根据灰度直方图的分布选择预设阈值,预设阈值的范围在71~170之间,优选为120。h=(R*38+G*75+B*15)>>7 preferably adopted in the present invention is a 7-bit precision gray value algorithm, and this algorithm has the advantages of high precision and high speed; of course, according to actual needs , the preset gray value conversion formula can also be calculated using formulas of other precision digits, which will not be repeated in this section. In view of the above steps, grayscale processing can be performed on the collected ground pictures in the corresponding auxiliary software, that is, the RGB pictures are converted into grayscale images, and the grayscale images are converted into grayscale histograms, and the color depth is selected as 8 , and select a preset threshold value according to the distribution of the grayscale histogram, and the preset threshold value ranges from 71 to 170, preferably 120.

在步骤S5中,可以根据所述轨道边缘信息中的轨道边缘得到轨道中线;并且将所述轨道中线作为AGV的控制器输入,以实现所述AGV的运动控制。In step S5, the track center line can be obtained according to the track edge in the track edge information; and the track center line is input as the controller of the AGV to realize the motion control of the AGV.

在上述步骤中,根据获得的轨道边缘信息控制AGV的运动轨迹,通过边缘所在元素的下标和的一半与最大下标值得一半进行比较,获得AGV的位置偏差,进行AGV转角控制。所选取的控制方式为PID控制。通过本发明所述的方法,可以快速获得AGV与实际轨道的中线之间的水平偏移信息,快速校正,该方法控制精度高、简单易实时,能够与自动控制系统进行信息化交流,具有良好的应用前景。In the above steps, the motion trajectory of the AGV is controlled according to the obtained track edge information, and the position deviation of the AGV is obtained by comparing the half of the subscript sum of the element where the edge is located with the half of the maximum subscript value, and the AGV angle is controlled. The selected control method is PID control. Through the method of the present invention, the horizontal offset information between the AGV and the center line of the actual track can be quickly obtained and corrected quickly. The method has high control accuracy, is simple and easy to real-time, can communicate with the automatic control system in information, and has good application prospects.

上述的图片的基准水平线可以具体为:所述图片高度范围在1/3~3/4中的任意一条水平线,本发明优选为图片的高度为1/2的水平线。对处于图片高度1/2处的水平线进行灰度处理,有助于降低计算误差,提高运行精度。The reference horizontal line of the above-mentioned picture can be specifically: any horizontal line in the range of the picture height from 1/3 to 3/4, and the present invention is preferably a horizontal line with a height of 1/2 of the picture. Grayscale processing of the horizontal line at 1/2 the height of the picture is helpful to reduce the calculation error and improve the running accuracy.

下面对本发明实施例提供的基于视觉的AGV导航系统进行介绍,下文描述的装置与上文所述的方法可以相互对照。The following describes the vision-based AGV navigation system provided by the embodiments of the present invention, and the apparatus described below can be compared with the method described above.

本发明还提供一种基于视觉的AGV导航系统,主要包括:The present invention also provides a vision-based AGV navigation system, which mainly includes:

摄像头1,用于获取具有轨道标示的地面的图片;The camera 1 is used to obtain a picture of the ground with track marks;

灰度处理模块,用于对所述图片的基准水平线进行灰度处理,得到基准水平线数组;a grayscale processing module, configured to perform grayscale processing on the reference horizontal lines of the picture to obtain a reference horizontal line array;

轨道矩阵构成模块,用于将多个所述基准水平线数组构成轨道矩阵;a track matrix forming module, configured to form a track matrix with a plurality of the reference horizontal line arrays;

异或处理模块,用于对所述轨道矩阵的相邻上下两行进行异或处理,得到轨道边缘信息;an XOR processing module for performing XOR processing on the adjacent upper and lower rows of the track matrix to obtain track edge information;

数字化处理模块,用于对所述轨道边缘信息进行数字化处理,作为AGV的控制器输入,以实现所述AGV的运动控制。The digital processing module is used to perform digital processing on the track edge information as the input of the controller of the AGV, so as to realize the motion control of the AGV.

本发明提供的一种AGV,包括如上文所述的基于视觉的AGV导航系统,如说明书附图5所示。其中,电源2、电机3、主动轮4、驱动器5、主控制器6以及万向轮7位于AGV的车体底部,而AGV的车体顶部设置摄像头1;结合说明书附图3可知,驱动器5受到PID控制器的控制后驱动电机3转动,从而带动主动轮4运行。AGV的其他部分可以参照现有技术,本文不再展开。An AGV provided by the present invention includes the vision-based AGV navigation system as described above, as shown in FIG. 5 of the description. Among them, the power supply 2, the motor 3, the driving wheel 4, the driver 5, the main controller 6 and the universal wheel 7 are located at the bottom of the body of the AGV, and the top of the body of the AGV is provided with a camera 1; it can be seen from the accompanying drawing 3 of the specification that the driver 5 After being controlled by the PID controller, the motor 3 is driven to rotate, thereby driving the driving wheel 4 to run. For other parts of the AGV, reference can be made to the prior art, which will not be expanded in this article.

说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述较为简单,相关之处参见方法部分说明即可。The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the points that are different from other embodiments, and the similar parts between the various embodiments can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the related part may refer to the description of the method.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of functionality. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods for implementing the described functionality for each particular application, but such implementations should not be considered beyond the scope of the present invention.

以上对本发明所提供的AGV、基于视觉的AGV导航方法及其系统进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The AGV, the vision-based AGV navigation method and the system thereof provided by the present invention have been introduced in detail above. The principles and implementations of the present invention are described herein by using specific examples, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can also be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (4)

1. a kind of AGV air navigation aid of view-based access control model, which comprises the steps of:
Obtain the picture with the ground of track mark;
Gray proces are carried out to the reference horizontal line of the picture, obtain reference horizontal line array;
Multiple reference horizontal line arrays are constituted into track matrix;
Exclusive or processing is carried out to adjacent two rows up and down of the track matrix, obtains rail flanges information;
Digitized processing is carried out to the rail flanges information, the controller as AGV inputs, to realize the movement of the AGV Control;
The step of reference horizontal line to the picture carries out gray proces, obtains reference horizontal line array specifically includes:
Every presetted pixel, the pixel on the reference horizontal line of the picture is acquired;
Grayvalue transition is carried out by default grayvalue transition formula each described pixel, obtains datum-plane line number Group;
It is described that grayvalue transition is carried out by default grayvalue transition formula each described pixel, obtain reference horizontal line The step of array, specifically includes:
7 each pixel on the reference horizontal line is calculated in > > by formula h=(R*38+G*75+B*15) Gray value h;Wherein, R, G and B respectively represent as red, green and blue;
The gray value h is compared with preset threshold a:
As h≤a, h value is 0;
As h > a, h value is 1;
Obtain reference horizontal line array;
Described to carry out digitized processing to the rail flanges information, the controller as AGV inputs, to realize the AGV's The step of motion control, specifically includes:
Track centre is obtained according to the rail flanges in the rail flanges information;
It is inputted the track centre as the controller of AGV, to realize the motion control of the AGV;
The reference horizontal line of the picture specifically: any one horizontal line of the picture height range in 1/3~3/4.
2. the AGV air navigation aid of view-based access control model according to claim 1, which is characterized in that described obtain has track mark The ground image shown, the step of obtaining picture, specifically include:
Camera interval prefixed time interval by being installed on the AGV is acquired track mark, obtains multiple groups Picture.
3. the AGV air navigation aid of view-based access control model according to claim 2, which is characterized in that the prefixed time interval Range is specially 0.3s~0.6s.
4. according to claim 1 to the AGV air navigation aid of view-based access control model described in 3 any one, which is characterized in that the AGV Controller be specially PID controller.
CN201610918266.3A 2016-10-21 2016-10-21 A kind of AGV air navigation aid of view-based access control model Active CN106444765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610918266.3A CN106444765B (en) 2016-10-21 2016-10-21 A kind of AGV air navigation aid of view-based access control model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610918266.3A CN106444765B (en) 2016-10-21 2016-10-21 A kind of AGV air navigation aid of view-based access control model

Publications (2)

Publication Number Publication Date
CN106444765A CN106444765A (en) 2017-02-22
CN106444765B true CN106444765B (en) 2019-07-09

Family

ID=58176453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610918266.3A Active CN106444765B (en) 2016-10-21 2016-10-21 A kind of AGV air navigation aid of view-based access control model

Country Status (1)

Country Link
CN (1) CN106444765B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108107883B (en) * 2017-11-07 2020-10-30 浙江工业大学 A multi-sensor information fusion positioning method based on tape-guided AGV
CN108845573A (en) * 2018-05-30 2018-11-20 上海懒书智能科技有限公司 A kind of laying of AGV visual track and optimization method
CN109032125B (en) * 2018-05-31 2021-09-10 上海工程技术大学 Navigation method of visual AGV
CN109032129B (en) * 2018-06-21 2021-07-27 昆山华恒工程技术中心有限公司 Path deviation rectifying method and device, path guiding method and readable medium
CN109782755B (en) * 2018-12-27 2022-05-31 广东飞库科技有限公司 Method for controlling AGV to calibrate and AGV to calibrate position, computer storage medium and AGV
CN114252013B (en) * 2021-12-22 2024-03-22 深圳市天昕朗科技有限公司 AGV visual identification accurate positioning system based on wired communication mode

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436644A (en) * 2011-11-02 2012-05-02 南京物联网研究院发展有限公司 Unstructured road detection method based on adaptive edge registration
CN103400150A (en) * 2013-08-14 2013-11-20 浙江大学 Method and device for road edge recognition based on mobile platform
CN103954275A (en) * 2014-04-01 2014-07-30 西安交通大学 Lane line detection and GIS map information development-based vision navigation method
CN105446333A (en) * 2015-11-10 2016-03-30 中辰环能技术(株洲)有限公司 Visual agv navigation system
CN105511462A (en) * 2015-11-30 2016-04-20 北京卫星制造厂 Vision-based AGV navigation method
CN105700532A (en) * 2016-04-19 2016-06-22 长沙理工大学 Vision-based transformer substation inspection robot navigation positioning control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436644A (en) * 2011-11-02 2012-05-02 南京物联网研究院发展有限公司 Unstructured road detection method based on adaptive edge registration
CN103400150A (en) * 2013-08-14 2013-11-20 浙江大学 Method and device for road edge recognition based on mobile platform
CN103954275A (en) * 2014-04-01 2014-07-30 西安交通大学 Lane line detection and GIS map information development-based vision navigation method
CN105446333A (en) * 2015-11-10 2016-03-30 中辰环能技术(株洲)有限公司 Visual agv navigation system
CN105511462A (en) * 2015-11-30 2016-04-20 北京卫星制造厂 Vision-based AGV navigation method
CN105700532A (en) * 2016-04-19 2016-06-22 长沙理工大学 Vision-based transformer substation inspection robot navigation positioning control method

Also Published As

Publication number Publication date
CN106444765A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106444765B (en) A kind of AGV air navigation aid of view-based access control model
CN106607907B (en) A kind of moving-vision robot and its investigating method
CN108571971B (en) An AGV visual positioning system and method
CN109685858B (en) Monocular camera online calibration method
CN107577996A (en) A method and system for identifying vehicle driving path deviation
CN111967360B (en) Target vehicle posture detection method based on wheels
CN112037159B (en) Cross-camera road space fusion and vehicle target detection tracking method and system
CN105511462B (en) A kind of AGV air navigation aids of view-based access control model
Ma et al. CRLF: Automatic calibration and refinement based on line feature for LiDAR and camera in road scenes
CN107133985A (en) A kind of vehicle-mounted vidicon automatic calibration method for the point that disappeared based on lane line
CN105783935A (en) Visual navigation method for agricultural machine
CN112509054B (en) Camera external parameter dynamic calibration method
CN110243380A (en) A map matching method based on multi-sensor data and angle feature recognition
CN108490931B (en) Intelligent vehicle driving control system and method based on improved Sobel operator
CN113096190B (en) Omnidirectional mobile robot navigation method based on visual mapping
CN104123535A (en) Monocular vision robot rapid tracking method based on road correction
CN106767833A (en) A kind of robot localization method of fusion RGBD depth transducers and encoder
CN112308928A (en) Camera without calibration device and laser radar automatic calibration method
CN114964236A (en) Mapping and vehicle positioning system and method for underground parking lot environment
CN101980292B (en) Regular octagonal template-based board camera intrinsic parameter calibration method
CN104268884B (en) A kind of calibration system and method for the lane departure warning based on car networking
CN113569663A (en) Method for measuring lane deviation of vehicle
CN113361292B (en) AGV driving optimization method and system based on artificial intelligence and two-dimensional code navigation
CN106413280A (en) Automatic surface mounting machine feeder element position correction device and automatic correction method based on image processing
CN114511620B (en) Structure displacement monitoring method based on Mask R-CNN

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant