CN107886036B - Vehicle control method and device and vehicle - Google Patents
Vehicle control method and device and vehicle Download PDFInfo
- Publication number
- CN107886036B CN107886036B CN201610874368.XA CN201610874368A CN107886036B CN 107886036 B CN107886036 B CN 107886036B CN 201610874368 A CN201610874368 A CN 201610874368A CN 107886036 B CN107886036 B CN 107886036B
- Authority
- CN
- China
- Prior art keywords
- image
- vehicle
- target vehicle
- lane
- recognition
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/56—Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Traffic Control Systems (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明涉及车辆技术领域,具体涉及车辆控制方法、装置及车辆。The present invention relates to the technical field of vehicles, in particular to a vehicle control method, device and vehicle.
背景技术Background technique
随着科学技术的不断发展,人们的出行也越来越便利,各种各样的汽车、电动车等已经成为人们生活中必不可少的交通工具。现有的一些车辆已经具备自适应巡航的功能。With the continuous development of science and technology, people's travel has become more and more convenient, and all kinds of cars, electric vehicles, etc. have become indispensable means of transportation in people's lives. Some existing vehicles already have adaptive cruise capabilities.
目前,车辆的自适应巡航系统可以使用毫米波雷达、激光雷达、或立体摄像机作为测距传感器,车辆通过安装这几种类型的测距传感器可以同时感测车辆前方的多个目标车辆,进而自适应地调整巡航系统的运动参数。At present, the vehicle's adaptive cruise system can use millimeter-wave radar, lidar, or stereo cameras as ranging sensors. By installing these types of ranging sensors, the vehicle can simultaneously sense multiple target vehicles in front of the vehicle, and then automatically Adaptively adjust the motion parameters of the cruise system.
然而,使用立体相机的测距算法较为复杂,这将可能导致计算机芯片功耗的增加,而使用单个普通相机配合毫米波雷达或激光雷达的方式需要较大的车内安装空间,且成本较高。However, the ranging algorithm using stereo cameras is more complicated, which may lead to an increase in the power consumption of computer chips, while using a single ordinary camera with millimeter-wave radar or lidar requires a larger installation space in the vehicle and is more expensive .
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种车辆控制方法、装置及车辆,能够降低自适应巡航系统的制造成本。The purpose of the present invention is to provide a vehicle control method, device and vehicle, which can reduce the manufacturing cost of the adaptive cruise system.
根据本发明实施例的第一方面,提供一种车辆控制方法,包括:According to a first aspect of the embodiments of the present invention, a vehicle control method is provided, including:
获取第一图像和第二图像,其中,所述第一图像为彩色图像或亮度图像,所述第二图像为深度图像;acquiring a first image and a second image, wherein the first image is a color image or a luminance image, and the second image is a depth image;
在所述第二图像中识别目标车辆,以获取所述目标车辆的距离信息;Identifying a target vehicle in the second image to obtain distance information of the target vehicle;
根据所述第一图像或所述第二图像,获取所述目标车辆的方位角;obtaining the azimuth angle of the target vehicle according to the first image or the second image;
根据所述目标车辆的方位角以及通过恒载频雷达获取的中频信号,确定所述目标车辆的相对速度;Determine the relative speed of the target vehicle according to the azimuth angle of the target vehicle and the intermediate frequency signal obtained by the constant carrier frequency radar;
根据所述距离信息和所述相对速度,对主体车辆的运动参数进行控制。According to the distance information and the relative speed, the motion parameters of the subject vehicle are controlled.
可选的,所述方法还包括:Optionally, the method further includes:
根据所述第一图像识别公路车道线;Identify highway lane lines according to the first image;
根据所述第一图像与所述第二图像之间的映射关系,将所述公路车道线映射至所述第二图像,以在所述第二图像中确定至少一个车辆识别范围,其中,每两个相邻的公路车道线创建一个车辆识别范围;According to the mapping relationship between the first image and the second image, the highway lane line is mapped to the second image, so as to determine at least one vehicle identification range in the second image, wherein each Two adjacent highway lane lines create a vehicle identification range;
在所述第二图像中识别目标车辆,包括:Identifying the target vehicle in the second image includes:
在所述至少一个车辆识别范围中识别所述目标车辆。The target vehicle is identified in the at least one vehicle identification range.
可选的,所述方法还包括:Optionally, the method further includes:
获取映射至所述第二图像中的每个公路车道线的初始直线的斜率;obtaining the slope of the initial straight line mapped to each highway lane line in the second image;
将斜率最大的两条初始直线对应的公路车道线所创建的车辆识别范围标记为本车道,以及将其余的车辆识别范围标记为非本车道;Mark the vehicle identification range created by the highway lane lines corresponding to the two initial straight lines with the largest slopes as this lane, and mark the rest of the vehicle identification ranges as non-own lanes;
在所述至少一个车辆识别范围中识别目标车辆,包括:Identifying a target vehicle in the at least one vehicle identification range includes:
在标记为本车道的车辆识别范围中识别本车道的目标车辆、在标记为非本车道的车辆识别范围中识别非本车道的目标车辆、及在相邻两个车辆识别范围组合成的车辆识别范围中识别变道的目标车辆。Recognition of the target vehicle in the own lane in the vehicle recognition range marked as the own lane, recognition of the target vehicle in the non-own lane in the vehicle recognition range marked as the non-own lane, and vehicle recognition in the combination of two adjacent vehicle recognition ranges Identify the target vehicle changing lanes in range.
可选的,所述方法还包括:Optionally, the method further includes:
通过识别所述目标车辆,在所述第二图像中确定目标车辆区域;determining a target vehicle area in the second image by identifying the target vehicle;
根据所述第一图像与所述第二图像之间的映射关系,将所述目标车辆区域映射至所述第一图像中,以在所述第一图像中生成车灯识别区域;mapping the target vehicle area to the first image according to the mapping relationship between the first image and the second image, so as to generate a vehicle lamp recognition area in the first image;
在所述车灯识别区域中识别所述目标车辆的转向灯;identifying the turn signal of the target vehicle in the vehicle lamp identification area;
根据所述距离信息和所述相对速度,对主体车辆的运动参数进行控制,包括:According to the distance information and the relative speed, the motion parameters of the subject vehicle are controlled, including:
根据所述距离信息、所述相对速度、以及识别的所述目标车辆的转向灯,对所述主体车辆的运动参数进行控制。The motion parameters of the subject vehicle are controlled according to the distance information, the relative speed, and the identified turn signals of the target vehicle.
可选的,根据所述第一图像或所述第二图像,获取所述目标车辆的方位角,包括:Optionally, acquiring the azimuth angle of the target vehicle according to the first image or the second image, including:
根据所述目标车辆区域在所述第二图像中的位置,获取所述目标车辆的方位角;或,Obtain the azimuth angle of the target vehicle according to the position of the target vehicle area in the second image; or,
根据所述车灯识别区域在所述第一图像中的位置,获取所述目标车辆的方位角。Obtain the azimuth angle of the target vehicle according to the position of the vehicle lamp identification area in the first image.
可选的,所述方法还包括:Optionally, the method further includes:
根据识别的所述目标车辆的方位角,对所述恒载频雷达进行自动校准。According to the identified azimuth angle of the target vehicle, the constant carrier frequency radar is automatically calibrated.
根据本发明实施例的第一方面,提供一种车辆控制装置,包括:According to a first aspect of the embodiments of the present invention, there is provided a vehicle control device, comprising:
图像获取模块,用于获取第一图像和第二图像,其中,所述第一图像为彩色图像或亮度图像,所述第二图像为深度图像;an image acquisition module, configured to acquire a first image and a second image, wherein the first image is a color image or a luminance image, and the second image is a depth image;
第一识别模块,用于在所述第二图像中识别目标车辆,以获取所述目标车辆的距离信息;a first identification module for identifying a target vehicle in the second image to obtain distance information of the target vehicle;
第一获取模块,用于根据所述第一图像或所述第二图像,获取所述目标车辆的方位角;a first acquisition module, configured to acquire the azimuth angle of the target vehicle according to the first image or the second image;
第一确定模块,用于根据所述目标车辆的方位角以及通过恒载频雷达获取的中频信号,确定所述目标车辆的相对速度;a first determining module, configured to determine the relative speed of the target vehicle according to the azimuth angle of the target vehicle and the intermediate frequency signal obtained by the constant carrier frequency radar;
控制模块,用于根据所述距离信息和所述相对速度,对主体车辆的运动参数进行控制。The control module is configured to control the motion parameters of the subject vehicle according to the distance information and the relative speed.
可选的,所述装置还包括:Optionally, the device further includes:
第二识别模块,用于根据所述第一图像识别公路车道线;a second identification module, configured to identify highway lane lines according to the first image;
第一映射模块,用于根据所述第一图像与所述第二图像之间的映射关系,将所述公路车道线映射至所述第二图像,以在所述第二图像中确定至少一个车辆识别范围,其中,每两个相邻的公路车道线创建一个车辆识别范围;a first mapping module, configured to map the highway lane lines to the second image according to the mapping relationship between the first image and the second image, so as to determine at least one vehicle recognition range, where every two adjacent highway lane lines create a vehicle recognition range;
所述第一识别模块用于:The first identification module is used for:
在所述至少一个车辆识别范围中识别所述目标车辆。The target vehicle is identified in the at least one vehicle identification range.
可选的,所述装置还包括:Optionally, the device further includes:
第二获取模块,用于获取映射至所述第二图像中的每个公路车道线的初始直线的斜率;a second acquiring module, configured to acquire the slope of the initial straight line mapped to each highway lane line in the second image;
创建模块,用于将斜率最大的两条初始直线对应的公路车道线所创建的车辆识别范围标记为本车道,以及将其余的车辆识别范围标记为非本车道;The creation module is used to mark the vehicle identification range created by the highway lane lines corresponding to the two initial straight lines with the largest slopes as this lane, and mark the rest of the vehicle identification ranges as non-own lanes;
所述第一识别模块用于:The first identification module is used for:
在标记为本车道的车辆识别范围中识别本车道的目标车辆、在标记为非本车道的车辆识别范围中识别非本车道的目标车辆、及在相邻两个车辆识别范围组合成的车辆识别范围中识别变道的目标车辆。Recognition of the target vehicle in the own lane in the vehicle recognition range marked as the own lane, recognition of the target vehicle in the non-own lane in the vehicle recognition range marked as the non-own lane, and vehicle recognition in the combination of two adjacent vehicle recognition ranges Identify the target vehicle changing lanes in range.
可选的,所述装置还包括:Optionally, the device further includes:
第二确定模块,用于通过识别所述目标车辆,在所述第二图像中确定目标车辆区域;a second determination module, configured to determine a target vehicle area in the second image by identifying the target vehicle;
第二映射模块,用于根据所述第一图像与所述第二图像之间的映射关系,将所述目标车辆区域映射至所述第一图像中,以在所述第一图像中生成车灯识别区域;A second mapping module, configured to map the target vehicle area to the first image according to the mapping relationship between the first image and the second image, so as to generate a vehicle in the first image Light identification area;
第三识别模块,用于在所述车灯识别区域中识别所述目标车辆的转向灯;a third identification module, configured to identify the turn signal of the target vehicle in the vehicle lamp identification area;
所述控制模块用于:The control module is used for:
根据所述距离信息、所述相对速度、以及识别的所述目标车辆的转向灯,对所述主体车辆的运动参数进行控制。The motion parameters of the subject vehicle are controlled according to the distance information, the relative speed, and the identified turn signals of the target vehicle.
可选的,所述第一获取模块用于:Optionally, the first obtaining module is used for:
根据所述目标车辆区域在所述第二图像中的位置,获取所述目标车辆的方位角;或,Obtain the azimuth angle of the target vehicle according to the position of the target vehicle area in the second image; or,
根据所述车灯识别区域在所述第一图像中的位置,获取所述目标车辆的方位角。Obtain the azimuth angle of the target vehicle according to the position of the vehicle lamp identification area in the first image.
可选的,所述装置还包括:Optionally, the device further includes:
校准模块,用于根据识别的所述目标车辆的方位角,对所述恒载频雷达进行自动校准。The calibration module is configured to automatically calibrate the constant carrier frequency radar according to the identified azimuth angle of the target vehicle.
根据本发明实施例的第一方面,提供一种车辆,包括:According to a first aspect of the embodiments of the present invention, there is provided a vehicle, comprising:
图像采集装置,用于获取第一图像和第二图像,其中,所述第一图像为彩色图像或亮度图像,所述第二图像为深度图像;以及,第二方面所述的车辆控制装置。An image acquisition device for acquiring a first image and a second image, wherein the first image is a color image or a luminance image, and the second image is a depth image; and the vehicle control device according to the second aspect.
本发明实施例中,可以通过识别图像获取目标车辆的方位角,同时通过恒载频雷达获取目标车辆的相对速度,再结合深度图像获取目标车辆的距离信息,这样,使用恒载频雷达与普通相机结合就可以较为准确地感测主体车辆附近的目标车辆,进而更好地进行自适应巡航。同时,由于恒载频雷达的发射机工作于几乎恒定的电磁波频率上,因此恒载频雷达相对于测距的调频雷达占用的电磁波带宽很小,从而恒载频雷达可以减少元器件的使用,降低了自适应巡航系统的成本。In the embodiment of the present invention, the azimuth angle of the target vehicle can be obtained by identifying the image, the relative speed of the target vehicle can be obtained through the constant carrier frequency radar, and the distance information of the target vehicle can be obtained in combination with the depth image. The combination of cameras can more accurately sense the target vehicle near the subject vehicle, and then better perform adaptive cruise. At the same time, because the transmitter of the constant carrier frequency radar works on an almost constant electromagnetic wave frequency, the electromagnetic wave bandwidth occupied by the constant carrier frequency radar is very small compared with the FM radar for ranging, so the constant carrier frequency radar can reduce the use of components. Reduced cost of adaptive cruise system.
本发明的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present invention will be described in detail in the detailed description that follows.
附图说明Description of drawings
附图是用来提供对本发明的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本发明,但并不构成对本发明的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the specification, and together with the following specific embodiments, are used to explain the present invention, but do not constitute a limitation to the present invention. In the attached image:
图1是根据一示例性实施例示出的一种车辆控制方法的流程图。FIG. 1 is a flow chart of a vehicle control method according to an exemplary embodiment.
图2是根据一示例性实施例示出的另一种车辆控制方法的流程图。FIG. 2 is a flow chart of another vehicle control method according to an exemplary embodiment.
图3是根据一示例性实施例示出的另一种车辆控制方法的流程图。FIG. 3 is a flowchart of another vehicle control method according to an exemplary embodiment.
图4是根据一示例性实施例示出的另一种车辆控制方法的流程图。FIG. 4 is a flowchart illustrating another vehicle control method according to an exemplary embodiment.
图5是根据一示例性实施例示出的目标车辆区域及车灯识别区域示意图。FIG. 5 is a schematic diagram illustrating a target vehicle area and a vehicle lamp identification area according to an exemplary embodiment.
图6是根据一示例性实施例示出的时间微分子图像示意图。FIG. 6 is a schematic diagram of a temporal micromolecule image according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种车辆控制装置的框图。FIG. 7 is a block diagram of a vehicle control device according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种车辆的框图。Fig. 8 is a block diagram of a vehicle according to an exemplary embodiment.
具体实施方式Detailed ways
以下结合附图对本发明的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本发明,并不用于限制本发明。The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present invention, but not to limit the present invention.
图1是根据一示例性实施例示出的一种车辆控制方法的流程图,如图1所示,该车辆控制方法可以应用于本体车辆中,包括以下步骤。FIG. 1 is a flowchart of a vehicle control method according to an exemplary embodiment. As shown in FIG. 1 , the vehicle control method can be applied to a body vehicle, and includes the following steps.
步骤S11:获取第一图像和第二图像,其中,第一图像为彩色图像或亮度图像,第二图像为深度图像。Step S11: Acquire a first image and a second image, wherein the first image is a color image or a luminance image, and the second image is a depth image.
步骤S12:在第二图像中识别目标车辆,以获取目标车辆的距离信息。Step S12: Identify the target vehicle in the second image to obtain distance information of the target vehicle.
步骤S13:根据第一图像或第二图像,获取目标车辆的方位角。Step S13: Acquire the azimuth angle of the target vehicle according to the first image or the second image.
步骤S14:根据目标车辆的方位角以及通过恒载频雷达获取的中频信号,确定目标车辆的相对速度。Step S14: Determine the relative speed of the target vehicle according to the azimuth angle of the target vehicle and the intermediate frequency signal obtained by the constant carrier frequency radar.
步骤S15:根据距离信息和相对速度,对主体车辆的运动参数进行控制。Step S15: Control the motion parameters of the subject vehicle according to the distance information and the relative speed.
第一图像可以是彩色图像或亮度图像,第二图像可以是深度图像,第一图像与第二图像可以是由设置在主体车辆上的同一图像采集装置获取的。例如,通过图像采集装置的图像传感器获取第一图像,通过图像采集装置的TOF(Time of flight,飞行时间)传感器获得第二图像。The first image may be a color image or a luminance image, the second image may be a depth image, and the first image and the second image may be acquired by the same image acquisition device installed on the subject vehicle. For example, the first image is acquired by an image sensor of the image acquisition device, and the second image is acquired by a TOF (Time of Flight, time of flight) sensor of the image acquisition device.
本发明实施例中,彩色或亮度图像像素和深度图像像素的可以按一定的比例进行交织排列,对于比例究竟是多少,本发明实施例不作限定。例如,图像传感器和TOF传感器都可以使用互补金属氧化物半导体(CMOS)工艺进行制作,亮度像素和TOF像素可以按比例制作在同一基板之上,例如以8:1比例进行制作的8个亮度像素和1个TOF像素组成一个大的交织像素,其中1个TOF像素的感光面积可以等于8个亮度像素的感光面积,其中8个亮度像素可以按2行及4列的阵列形式排列。比如,可以在1英寸光学靶面的基板上制作360行及480列的活跃交织像素的阵列,可获取720行及1920列的活跃亮度像素阵列、360行及480列的活跃TOF像素阵列,由此图像传感器和TOF传感器组成的同一个图像采集装置可同时获取彩色或亮度图像和深度图像。In the embodiment of the present invention, the pixels of the color or brightness image and the pixels of the depth image may be interleaved and arranged in a certain ratio, and the embodiment of the present invention does not limit the ratio. For example, both image sensors and TOF sensors can be fabricated using a complementary metal-oxide-semiconductor (CMOS) process, and luminance pixels and TOF pixels can be fabricated on the same substrate at scale, such as 8 luminance pixels fabricated at an 8:1 ratio and 1 TOF pixel to form a large interleaved pixel, wherein the photosensitive area of 1 TOF pixel can be equal to the photosensitive area of 8 luminance pixels, of which 8 luminance pixels can be arranged in an array of 2 rows and 4 columns. For example, an array of active interleaved pixels with 360 rows and 480 columns can be fabricated on a substrate with a 1-inch optical target surface, and an active luminance pixel array with 720 rows and 1920 columns, and an active TOF pixel array with 360 rows and 480 columns can be obtained. The same image acquisition device composed of this image sensor and TOF sensor can simultaneously acquire color or brightness images and depth images.
可选的,请参见图2,图2为另一种车辆控制方法的流程图。在获取第一图像和第二图像后,还可以包括步骤S16根据第一图像识别公路车道线;步骤S17根据第一图像与第二图像之间的映射关系,将公路车道线映射至第二图像,以在第二图像中确定至少一个车辆识别范围,其中,每两个相邻的公路车道线可以创建一个车辆识别范围。在这种情况下,步骤S12可以是识别至少一个车辆识别范围中的目标车辆,以获取目标车辆的距离信息。Optionally, please refer to FIG. 2 , which is a flowchart of another vehicle control method. After acquiring the first image and the second image, it may further include step S16 to identify the highway lane line according to the first image; step S17 to map the highway lane line to the second image according to the mapping relationship between the first image and the second image , to determine at least one vehicle identification range in the second image, wherein every two adjacent highway lane lines can create a vehicle identification range. In this case, step S12 may be to identify at least one target vehicle in a vehicle identification range to obtain distance information of the target vehicle.
由于第一图像为彩色或亮度图像,而识别公路车道线的位置只需要利用公路车道线与路面的亮度差异,因此获取公路车道线只需要第一图像的亮度信息即可。那么在第一图像为亮度图像时,可以直接根据第一图像的亮度信息识别公路车道线,在第一图像为彩色图像时,可以将第一图像转化成亮度图像之后再识别公路车道线。Since the first image is a color or brightness image, and identifying the position of the highway lane line only needs to use the brightness difference between the highway lane line and the road surface, only the brightness information of the first image is needed to obtain the highway lane line. Then, when the first image is a luminance image, the road lane line can be identified directly according to the luminance information of the first image. When the first image is a color image, the road lane line can be identified after the first image is converted into a luminance image.
每相邻两个公路车道线创建一个车辆识别范围,即,车辆识别范围对应于实际的车道,那么在车辆识别范围内识别目标车辆,也就是识别车道上的目标车辆。这样可以将识别目标车辆的范围确定到车道上,以确保识别的对象是车道上行驶的车辆,避免图像中的其他非车辆的对象所造成的干扰,提升识别目标车辆的准确性。Every two adjacent highway lane lines create a vehicle identification range, that is, the vehicle identification range corresponds to the actual lane, then the target vehicle is identified within the vehicle identification range, that is, the target vehicle on the lane is identified. In this way, the range of the recognized target vehicle can be determined to the lane, to ensure that the recognized object is a vehicle driving in the lane, to avoid the interference caused by other non-vehicle objects in the image, and to improve the accuracy of the recognition of the target vehicle.
可选的,由于公路车道线既有实线车道线也有虚线车道线,因此在第一图像中识别公路车道线可以是根据第一图像,获取公路车道线包括的每个实线车道线的全部边缘像素位置,以及获取公路车道线包括的每个虚线车道线的全部边缘像素位置。这样才能完整地识别实线车道线和虚线车道线,进而提升识别目标车辆的准确性。Optionally, since the highway lane lines have both solid line lane lines and dashed line lane lines, identifying the highway lane lines in the first image may be to obtain all the solid line lane lines included in the highway lane line according to the first image. Edge pixel positions, and obtain all edge pixel positions of each dashed lane line included in the highway lane line. Only in this way can the solid lane line and the dashed lane line be completely recognized, thereby improving the accuracy of identifying the target vehicle.
可选的,获取公路车道线包括的每个实线车道线的全部边缘像素位置,可以创建与第一图像对应的二值图像,然后在二值图像中检测每个实线车道线的全部边缘像素位置。Optionally, obtain all edge pixel positions of each solid lane line included in the highway lane line, create a binary image corresponding to the first image, and then detect all edges of each solid lane line in the binary image. pixel location.
对于如何创建于第一图像对应的二值图像,本发明实施例不作限定,以下对几种可能的方式进行举例说明。How to create the binary image corresponding to the first image is not limited in this embodiment of the present invention, and several possible manners are exemplified below.
例如,利用公路车道线与路面的亮度差异,可以通过查找得到某些亮度阈值,亮度阈值可以利用“直方图统计—双峰”算法来查找得到,并利用亮度阈值和亮度图像创建突出公路车道线的二值图像。For example, using the brightness difference between the road lane line and the road surface, some brightness thresholds can be obtained by searching. The brightness threshold can be found by using the "histogram statistics-double peak" algorithm, and the brightness threshold and the brightness image can be used to create prominent highway lane lines. the binary image.
或者例如,还可以将亮度图像划分为多个亮度子图像,对每个亮度子图像执行“直方图统计—双峰”算法来查找得到多个亮度阈值,利用各个亮度阈值和相应的亮度子图像创建突出公路车道线的二值子图像,并利用二值子图像创建完整的突出公路车道线的二值图像,这样可以应对路面或车道线亮度变化的情况。Or, for example, it is also possible to divide the luminance image into multiple luminance sub-images, perform the "histogram statistics-bimodal" algorithm on each luminance sub-image to find multiple luminance thresholds, and use each luminance threshold and corresponding luminance sub-images. Create a binary sub-image highlighting the highway lane lines, and use the binary sub-image to create a complete binary image highlighting the highway lane lines, which can cope with changes in the brightness of the road surface or lane lines.
在创建了与第一图像对应的二值图像之后,可以在二值图像中检测每个实线车道线的全部边缘像素位置,对于检测的方式,本发明实施例同样不作限定。After the binary image corresponding to the first image is created, all edge pixel positions of each solid line lane line may be detected in the binary image, and the detection method is also not limited in this embodiment of the present invention.
例如,由于公路车道线的曲率半径不可能太小,并且由于相机投影原理导致近处车道线相对远处车道线的成像像素更多,使得弯道的实线车道线在亮度图像中排列成直线的像素也占该实线车道线成像像素的大部分,因此可以使用类似Hough变换算法等直线检测算法在突出公路车道线的二值图像中检测出直道的实线车道线的全部边缘像素位置或检测出弯道的实线车道线的大部分初始直线边缘像素位置。For example, since the curvature radius of the highway lane line cannot be too small, and due to the camera projection principle, the near lane lines have more imaging pixels than the far lane lines, so that the solid lane lines of the curve are arranged in a straight line in the luminance image. The pixels of the solid line also account for most of the imaging pixels of the solid lane line, so straight line detection algorithms such as the Hough transform algorithm can be used to detect all the edge pixel positions of the solid line lane line of the straight road in the binary image highlighting the highway lane line or Most of the initial straight edge pixel locations for the solid lane line of the curve are detected.
直线检测可能也将隔离带、电线杆在二值图像中的大部分直线边缘像素位置检出。那么例如可以根据图像传感器的长宽比例、相机镜头焦距、道路设计规范的道路宽度范围和图像传感器在主体车辆的安装位置可以设置车道线在二值图像中的斜率范围,从而根据该斜率范围将非车道线的直线过滤排除。The line detection may also detect most of the line edge pixel positions of the isolation belt and the utility pole in the binary image. Then, for example, the slope range of the lane line in the binary image can be set according to the aspect ratio of the image sensor, the focal length of the camera lens, the road width range of the road design specification and the installation position of the image sensor in the subject vehicle, so that according to the slope range, the range of the slope of the lane line in the binary image can be set. Straight line filtering for non-lane lines is excluded.
由于弯道的实线车道线的边缘像素位置总是连续变化的,因此根据查找上述检测的初始直线两端的边缘像素位置的连通像素位置,并将该连通像素位置并入该初始直线边缘像素集合,重复上述查找和并入该连通像素位置,最后将弯道实线车道线的全部边缘像素位置唯一确定。Since the edge pixel positions of the solid lane line of the curve always change continuously, the connected pixel positions of the edge pixel positions at both ends of the initial straight line detected above are searched, and the connected pixel positions are merged into the initial straight line edge pixel set , repeat the above search and merge the connected pixel position, and finally determine all edge pixel positions of the solid line lane line of the curve uniquely.
通过以上方式可以检测实线公路车道线的全部边缘像素位置。All edge pixel positions of solid highway lane lines can be detected in the above manner.
可选的,第一虚线公路车道线可以是公路车道线包括的任一虚线公路车道线,获取第一虚线车道线的边缘像素位置,可以根据第一图像识别第一实线公路车道线,然后将第一实线公路车道线的全部边缘像素位置投影到第一虚线车道线的初始直线的边缘像素位置,以获取第一虚线车道线的全部边缘像素位置。其中,第一实线公路车道线可以是公路车道线包括的任一实线公路车道线。Optionally, the first dashed highway lane line can be any dashed highway lane line included in the highway lane line, and the edge pixel position of the first dashed line lane line can be obtained, the first solid line highway lane line can be identified according to the first image, and then All edge pixel positions of the first solid line highway lane line are projected to the edge pixel positions of the initial straight line of the first dashed line lane line to obtain all edge pixel positions of the first dashed line lane line. The first solid-line highway lane line may be any solid-line highway lane line included in the highway lane line.
本发明实施例中,可以根据实线车道线的先验知识、车道线现实中相互平行的原则、图像传感器及相机的投影参数,将第一实线车道线的全部边缘像素位置投影到第一虚线车道线的初始直线边缘像素位置以连接第一虚线车道线的初始直线边缘像素位置和属于第一虚线车道线的其他较短的车道线的边缘像素位置,从而获取虚线车道线的全部边缘像素位置。In the embodiment of the present invention, all edge pixel positions of the first solid line lane line can be projected to the first solid line lane line according to the prior knowledge of the solid line lane line, the principle that the lane lines are parallel to each other in reality, and the projection parameters of the image sensor and the camera. The initial straight line edge pixel position of the dashed lane line is to connect the initial straight line edge pixel position of the first dashed line lane line and the edge pixel positions of other shorter lane lines belonging to the first dashed line lane line, so as to obtain all the edge pixels of the dashed line lane line Location.
可选的,第一虚线公路车道线为公路车道线包括的任一虚线公路车道线,获取第一虚线车道线的边缘像素位置,可以将连续获取的多个第一图像分别对应的二值图像进行叠加,以将第一虚线车道线叠加成实线车道线,然后获取叠加成的实线车道线的全部边缘像素位置。Optionally, the first dashed highway lane line is any dashed highway lane line included in the highway lane line, and the edge pixel positions of the first dashed line lane line are obtained, and the binary images corresponding to the plurality of consecutively obtained first images can be obtained respectively. Superposition is performed to superimpose the first dashed lane line into a solid line lane line, and then all edge pixel positions of the superimposed solid line lane line are obtained.
本发明实施例中,可以无需得到直道或弯道的先验知识,由于车辆在直道巡航或恒定转向角弯道巡航的过程中,虚线车道线的横向偏移在较短的连续时间内几乎可以忽略,但纵向偏移却较大,因此虚线车道线在不同时刻的连续几幅突出公路车道线的二值图像中可以叠加成一条实线车道线,然后再通过上述实线车道线的识别方法即可获取该虚线车道线的全部边缘像素位置。In the embodiment of the present invention, it is not necessary to obtain the prior knowledge of the straight road or the curve. Since the vehicle is cruising on a straight road or cruising on a curve with a constant steering angle, the lateral offset of the dashed lane line can almost be reduced in a short continuous time. It is ignored, but the longitudinal offset is relatively large, so the dotted lane line can be superimposed into a solid lane line in several consecutive binary images of prominent highway lane lines at different times, and then use the above-mentioned solid lane line identification method All edge pixel positions of the dashed lane line can be obtained.
由于虚线车道线的纵向偏移量受到主体车辆车速的影响,因此在识别第一虚线车道线时,可以根据从轮速传感器获取的车速动态地确定不同时刻的连续的突出公路车道线的二值图像的最少幅数以将第一虚线车道线叠加成一条实线车道线,从而获取第一虚线车道线的全部边缘像素位置。Since the longitudinal offset of the dashed lane line is affected by the speed of the subject vehicle, when identifying the first dashed lane line, the binary value of the continuous protruding highway lane line at different times can be dynamically determined according to the vehicle speed obtained from the wheel speed sensor. The minimum number of images is to superimpose the first dashed lane line into a solid line lane line, so as to obtain all edge pixel positions of the first dashed line lane line.
可选的,请参见图3,图3为本发明实施例中另一种车辆控制方法的流程图,还可以包括步骤S18:获取映射至第二图像中的每个公路车道线的初始直线的斜率;步骤S19:将斜率最大的两条初始直线对应的公路车道线所创建的车辆识别范围标记为本车道,以及将其余的车辆识别范围标记为非本车道。那么步骤S12可以是在标记为本车道的车辆识别范围中识别本车道的目标车辆、在标记为非本车道的车辆识别范围中识别非本车道的目标车辆、及在相邻两个车辆识别范围组合成的车辆识别范围中识别变道的目标车辆,以获取目标车辆的距离信息。Optionally, please refer to FIG. 3 , which is a flowchart of another vehicle control method in an embodiment of the present invention, which may further include step S18 : obtaining the initial straight line mapped to each highway lane line in the second image Slope; Step S19 : mark the vehicle identification range created by the highway lane lines corresponding to the two initial straight lines with the largest slope as the current lane, and mark the remaining vehicle identification ranges as non-own lanes. Then step S12 may be to identify the target vehicle in the own lane in the vehicle identification range marked as the own lane, identify the target vehicle in the non-own lane in the vehicle identification range marked as the non-own lane, and identify the target vehicle in the two adjacent vehicle recognition ranges In the combined vehicle identification range, identify the target vehicle changing lanes to obtain the distance information of the target vehicle.
由于第一图像和第二图像之间的交织映射关系,第一图像的每个像素的行列坐标经过等比例的调整都可以在第二图像至少确定一个像素的行列坐标,因此根据第一图像获取的公路车道线的每个边缘像素位置都可以在第二图像至少确定一个像素位置,从而在第二图像中获取了等比例调整的公路车道线。在第二图像中,每相邻两个公路车道线创建一个车辆识别范围。Due to the interleaved mapping relationship between the first image and the second image, the row and column coordinates of each pixel in the first image can be adjusted in equal proportions to determine at least one pixel's row and column coordinates in the second image. At least one pixel position of each edge pixel position of the highway lane line can be determined in the second image, so that the equal-scale adjusted highway lane line is obtained in the second image. In the second image, a vehicle recognition range is created for every two adjacent highway lane lines.
根据第二图像中获取的等比例的公路车道线,取每个公路车道线的初始直线部分所占的行数和列数相比得到该公路车道线的初始直线的斜率,对根据斜率最大的两条公路车道线的初始直线所在的公路车道线创建的车辆识别范围标记为本车道,对其他创建的车辆识别范围标记为非本车道。According to the equal-scale highway lane lines obtained in the second image, compare the number of rows and columns occupied by the initial straight line part of each highway lane line to obtain the slope of the initial straight line of the highway lane line. The vehicle identification range created by the highway lane line where the initial straight line of the two highway lane lines is located is marked as the own lane, and the other created vehicle identification ranges are marked as the non-own lane.
标记车道之后,便可以在标记为本车道的车辆识别范围中识别本车道的目标车辆、在标记为非本车道的车辆识别范围中识别非本车道的目标车辆、及在相邻两个车辆识别范围组合成的车辆识别范围中识别变道的目标车辆。After marking the lane, the target vehicle in this lane can be identified in the vehicle recognition range marked as the lane, the target vehicle in the non-own lane can be identified in the vehicle recognition range marked as non-own lane, and the two adjacent vehicles can be identified. The target vehicle for lane change is identified in the vehicle recognition range formed by the range combination.
对于识别目标车辆的方式,本发明实施例不作限定,以下对几种可能的方式进行说明。The manner of identifying the target vehicle is not limited in the embodiment of the present invention, and several possible manners are described below.
第一种方式:The first way:
由于目标车辆相对于TOF传感器的距离和位置随时间总是变化的,而路面、隔离带相对于TOF传感器的距离和位置随时间近似是不变化的。因此可以利用两幅不同时刻获取的深度图像创建时间微分深度图像,进而识别第二图像中目标车辆的位置,或者目标车辆与本体车辆之间的距离,等等。Since the distance and position of the target vehicle relative to the TOF sensor always change with time, the distance and position of the road surface and the isolation belt relative to the TOF sensor are approximately unchanged with time. Therefore, a temporal differential depth image can be created by using two depth images acquired at different times, so as to identify the position of the target vehicle in the second image, or the distance between the target vehicle and the subject vehicle, and so on.
第二种方式:The second way:
在第二图像,也就是深度图像中,由同一个目标车辆的背面所反射的光,到TOF传感器所形成的深度子图像包含一致的距离信息,因此只要识别该目标车辆形成的深度子图像在深度图像中的位置即可获取该目标车辆的距离信息。In the second image, that is, the depth image, the light reflected from the back of the same target vehicle and the depth sub-image formed by the TOF sensor contain consistent distance information, so as long as the depth sub-image formed by the target vehicle is identified in The position in the depth image can obtain the distance information of the target vehicle.
同一个目标车辆的背面的光反射到TOF传感器形成深度子图像是包含一致的距离信息,而路面的光反射到TOF传感器形成深度子图像是包含连续变化的距离信息,因此包含一致的距离信息的深度子图像与包含连续变化的距离信息的深度子图像在两者的交界处必然形成突变差异,这些突变差异的交界形成了该目标车辆在深度图像中的目标边界。The light from the back of the same target vehicle is reflected to the TOF sensor to form a depth sub-image that contains consistent distance information, while the light from the road surface is reflected to the TOF sensor to form a depth sub-image that contains continuously changing distance information, so it contains consistent distance information. The junction of the depth sub-image and the depth sub-image containing continuously changing distance information must form abrupt differences, and the junction of these sudden differences forms the target boundary of the target vehicle in the depth image.
例如,可以采用图像处理算法中的检测边界的Canny、Sobel、Laplace等多种边界检测方法以检测目标车辆的目标边界。For example, various boundary detection methods such as Canny, Sobel, and Laplace for boundary detection in image processing algorithms can be used to detect the target boundary of the target vehicle.
进一步地,车辆识别范围由车道线的全部像素位置所确定,因此在车辆识别范围内检测目标车辆的目标边界将减少隔离带、路灯杆、防护桩等道路设施形成的边界干扰。Further, the vehicle recognition range is determined by all the pixel positions of the lane line, so detecting the target boundary of the target vehicle within the vehicle recognition range will reduce the boundary interference formed by road facilities such as isolation belts, street light poles, and guardrails.
在实际应用中,目标车辆可能有多个,因此,可以分别将每个车辆识别范围内检出的目标边界投影至图像的行坐标轴上,并在行坐标轴上进行一维查找,即可确定该车辆识别范围内所有目标车辆的纵向目标边界所占的行数和行坐标范围,以及确定横向目标边界的所占的列数和行坐标位置,纵向目标边界指占有像素行数多并且列数少的目标边界,横向目标边界指有占有像素行数少并且列数多的目标边界。根据该车辆识别范围内所有的横向目标边界所占的列数、行坐标位置,在该车辆识别范围内查找所有纵向目标边界的列坐标位置(也即相应横向目标边界的列坐标起始位置和终点位置),并根据目标边界包含一致的距离信息的原则区分不同目标车辆的目标边界,从而确定该车辆识别范围内所有目标车辆的位置和距离信息。In practical applications, there may be multiple target vehicles. Therefore, the target boundary detected in each vehicle identification range can be projected onto the row coordinate axis of the image, and a one-dimensional search can be performed on the row coordinate axis. Determine the row number and row coordinate range occupied by the longitudinal target boundary of all target vehicles within the vehicle identification range, and determine the column number and row coordinate position occupied by the horizontal target boundary. The target boundary with a small number, the horizontal target boundary refers to the target boundary with a small number of pixel rows and a large number of columns. According to the number of columns and row coordinate positions occupied by all the horizontal target boundaries within the vehicle identification range, find the column coordinate positions of all vertical target boundaries within the vehicle identification range (that is, the column coordinate starting positions and The target boundary of different target vehicles is distinguished according to the principle that the target boundary contains consistent distance information, so as to determine the position and distance information of all target vehicles within the vehicle identification range.
因此,检测获取目标车辆的目标边界即可唯一确定该目标车辆形成的深度子图像在深度图像中的位置,从而唯一确定该目标车辆的距离信息。Therefore, by detecting and acquiring the target boundary of the target vehicle, the position of the depth sub-image formed by the target vehicle in the depth image can be uniquely determined, thereby uniquely determining the distance information of the target vehicle.
当然,也可以通过其他的方式识别目标车辆,本发明实施例对此不作限定,只要能够识别目标车辆即可。Of course, the target vehicle may also be identified in other ways, which is not limited in the embodiment of the present invention, as long as the target vehicle can be identified.
可选的,请参见图4,图4为本发明实施例中另一种车辆控制方法的流程图,还可以包括步骤S20:通过识别目标车辆,在第二图像中确定目标车辆区域;步骤S21:根据第一图像与第二图像之间的映射关系,将目标车辆区域映射至第一图像中,以在第一图像中生成车灯识别区域;步骤S22:在车灯识别区域中识别目标车辆的转向灯。当然,图4所示意的是其中的一种执行顺序,各步骤的执行顺序也可以是其他,比如,步骤S20-步骤S22在步骤S14之后执行,等等,本发明实施例对于步骤S20-步骤S22的执行顺序不作限定。在这种情况下,步骤S15可以是根据距离信息、相对速度、以及识别的目标车辆的转向灯,对主体车辆的运动参数进行控制。Optionally, please refer to FIG. 4 , which is a flowchart of another vehicle control method in an embodiment of the present invention, which may further include step S20 : determining the target vehicle area in the second image by identifying the target vehicle; step S21 : map the target vehicle area to the first image according to the mapping relationship between the first image and the second image, so as to generate a vehicle lamp identification area in the first image; step S22 : identify the target vehicle in the vehicle lamp identification area turn signal. Of course, FIG. 4 shows one execution sequence, and the execution sequence of each step can also be other. For example, step S20-step S22 is executed after step S14, etc., the embodiment of the present invention is for step S20-step S20-step The execution order of S22 is not limited. In this case, step S15 may be to control the motion parameters of the subject vehicle according to the distance information, the relative speed, and the identified turn signals of the target vehicle.
在识别了目标车辆之后,可以在第二图像中确定目标车辆区域。目标车辆区域也就是目标车辆在第二图像所在的区域,可以是识别出的目标车辆的边界围成的闭合区域,或者也可以是识别出的目标车辆的边界的延伸的围成的闭合区域,或者还可以是目标车辆的若干像素位置连线围成的闭合区域,等等。本发明实施例对于目标车辆区域究竟是何种区域不作限定,只要是包含目标车辆的区域即可。After the target vehicle has been identified, the target vehicle area can be determined in the second image. The target vehicle area, that is, the area where the target vehicle is located in the second image, may be a closed area enclosed by the boundary of the identified target vehicle, or may also be a closed area enclosed by an extension of the identified boundary of the target vehicle, Or it can also be a closed area enclosed by several pixel positions of the target vehicle, and so on. The embodiment of the present invention does not limit what kind of area the target vehicle area is, as long as it is an area including the target vehicle.
由于第一图像和第二图像之间的交织映射关系,第二图像中目标车辆区域的每个像素的行列坐标经过等比例的调整都可以在第一图像中至少确定一个像素的行列坐标。请参见图5,将第二图像中的目标车辆区域映射至第一图像中后,可以在第一图像的相应位置上生成车灯识别区域,由于目标车辆的车灯的成像包含在目标车辆区域中,因此可以在第一图像中生成的车灯识别区域中识别目标车辆的转向灯。Due to the interlaced mapping relationship between the first image and the second image, the row and column coordinates of at least one pixel in the first image can be determined by adjusting the row and column coordinates of each pixel of the target vehicle area in the second image in equal proportions. Referring to FIG. 5 , after the target vehicle area in the second image is mapped to the first image, a vehicle lamp recognition area can be generated at the corresponding position of the first image, since the image of the vehicle lamp of the target vehicle is included in the target vehicle area , the turn signals of the target vehicle can therefore be recognized in the light recognition area generated in the first image.
可选的,对于在车灯识别区域中识别目标车辆的转向灯的方式,本发明实施例不作限定,可以对连续获取的多个第一图像中的车灯识别区域进行时间微分处理,以创建对应于目标车辆的时间微分子图像,然后根据时间微分子图像,识别目标车辆的转向灯。Optionally, the manner of identifying the turn signal of the target vehicle in the headlight recognition area is not limited in this embodiment of the present invention, and time differential processing may be performed on the headlight recognition areas in the plurality of first images obtained continuously to create a Corresponding to the temporal micro-molecular image of the target vehicle, and then identifying the turn signal of the target vehicle according to the temporal micro-molecular image.
例如,可以根据车灯识别区域中车尾灯的颜色、闪烁频率或闪烁序列以识别车尾转向灯。For example, rear turn signals can be identified based on the color, flashing frequency or flashing sequence of the taillights in the light identification area.
目标车辆变道的初期其纵向位移和横向位移都较小,意味着该目标车辆的车灯识别区域大小变化也较小,只有车尾转向灯处成像的亮度因闪烁而变化较大。因此,通过连续获取多幅不同时刻的第一图像,也就是彩色或亮度图像并对其中该目标车辆的车灯识别区域进行时间微分处理以创建该目标车辆的时间微分子图像。时间微分子图像将突出该目标车辆的的连续闪烁的车尾灯子图像。然后可以将时间微子图像投影到列坐标轴,进行一维查找获取该目标车辆的车尾灯子图像的起始和终点列坐标位置,将这些起始和终点列坐标位置投影至时间微分子图像并查找车尾灯子图像的起始和终点行坐标位置,将车尾灯子图像的起始和终点的行、列坐标位置投影至上述多幅不同时刻的彩色或亮度图像中以确认该目标车辆的车尾灯的颜色、闪烁频率或闪烁序列,从而确定了闪烁的车尾灯子图像的行、列坐标位置。The longitudinal and lateral displacements of the target vehicle at the initial stage of lane change are small, which means that the size of the recognition area of the target vehicle's headlights changes little, and only the brightness of the image at the rear turn signal changes greatly due to flickering. Therefore, a temporal micromolecular image of the target vehicle is created by continuously acquiring a plurality of first images at different times, that is, color or luminance images, and performing temporal differentiation processing on the headlight identification area of the target vehicle. The temporal micromolecular image will highlight the continuous flashing taillight sub-image of the target vehicle. Then, the temporal microscopic image can be projected onto the column coordinate axis, and a one-dimensional search can be performed to obtain the starting and ending column coordinate positions of the taillight sub-image of the target vehicle, and these starting and ending column coordinate positions can be projected to the temporal micromolecule image. And find the row coordinate positions of the start and end points of the taillight sub-image, and project the row and column coordinates of the start and end points of the taillight sub-image into the above-mentioned multiple color or brightness images at different times to confirm the target vehicle. The color, flashing frequency, or flashing sequence of the taillights determines the row and column coordinate positions of the flashing taillight sub-images.
进一步地,闪烁的车尾灯子图像的行、列坐标位置只在该目标车辆的车灯识别区域左侧时可以确定该目标车辆在打左转向灯,闪烁的车尾灯子图像的行、列坐标位置只在该目标车辆的车灯识别区域右侧时可以确定该目标车辆在打右转向灯,闪烁的车尾灯子图像的行、列坐标位置在该目标车辆的车灯识别区域两侧时可以确定该目标车辆在打双闪警示灯。Further, when the row and column coordinates of the flashing taillight sub-image are only on the left side of the headlight recognition area of the target vehicle, it can be determined that the target vehicle is turning on the left turn signal, and the row and column coordinates of the flashing taillight sub-image can be determined. Only when the position is on the right side of the light recognition area of the target vehicle, it can be determined that the target vehicle is turning on the right turn signal, and the row and column coordinates of the flashing rear light sub-image are on both sides of the light recognition area of the target vehicle. Make sure that the target vehicle is flashing double flashing warning lights.
另外,当目标车辆变道的过程中其纵向位移或横向位移较大导致该目标车辆的车灯识别区域大小变化也较大,这时可以对连续获取的多幅不同时刻的目标车辆的车灯识别区域进行纵向位移或横向位移补偿并缩放成大小一致的车灯识别区域,再对调整后的该目标车辆的车灯识别区域进行时间微分处理以创建该目标车辆的时间微分子图像,将时间微分子图像投影到列坐标轴,进行一维查找获取目标车辆的车尾灯子图像的起始和终点列坐标位置,将这些起始和终点列坐标位置投影至时间微分车灯识别区域子图像并查找车尾灯子图像的起始和终点行坐标位置,将车尾灯子图像的起始和终点的行、列坐标位置投影至上述多幅不同时刻的彩色或亮度图像中以确认该目标车辆的车尾灯的颜色、闪烁频率或闪烁序列,从而确定了闪烁的车尾灯子图像的行、列坐标位置,最后完成左转向灯、右转向灯或双闪警示灯的识别。In addition, when the target vehicle changes lanes in the process of its large longitudinal displacement or lateral displacement, the size of the light recognition area of the target vehicle changes greatly. The recognition area is compensated for longitudinal displacement or lateral displacement and scaled into a light recognition area of the same size, and then time differential processing is performed on the adjusted light recognition area of the target vehicle to create a time micro-molecular image of the target vehicle. The micro-molecule image is projected to the column coordinate axis, and a one-dimensional search is performed to obtain the starting and ending column coordinate positions of the taillight sub-image of the target vehicle, and these starting and ending column coordinate positions are projected to the time-differentiated headlight recognition area sub-image and then obtained. Find the starting and ending row coordinate positions of the taillight sub-image, and project the row and column coordinate positions of the starting and ending point of the taillight sub-image into the above-mentioned multiple color or brightness images at different times to confirm the target vehicle The color, flashing frequency or flashing sequence of the taillights determines the row and column coordinate positions of the flashing taillight sub-images, and finally completes the identification of the left turn signal, right turn signal or double flashing warning light.
例如,如图6所示的对应于车灯识别区域的时间微分子图像,在该时间微分子图像中突出有连续闪烁的车尾灯子图像,通过识别坐标,确定车尾灯子图像位于车灯识别区域左方,闪烁频率为1次/秒,那么比如可以确定目标车辆当前在打左转向灯。For example, as shown in Figure 6, the temporal micro-molecular image corresponding to the recognition area of the headlight, in this temporal micro-molecular image, there are continuously flashing rear light sub-images, and by identifying the coordinates, it is determined that the rear light sub-image is located in the headlight recognition area. To the left of the area, the flashing frequency is 1 time per second, so for example, it can be determined that the target vehicle is currently turning on the left turn signal.
通过以上方式,可以较好地识别目标车辆的转向灯,以便提前获知目标车辆是否要转向以及如何转向,进而能够更好地、更安全地进行自适应巡航。In the above manner, the turn signal of the target vehicle can be better identified, so as to know in advance whether the target vehicle is going to turn and how to turn, so that adaptive cruise can be performed better and more safely.
可选的,对于如何根据第一图像或第二图像获取目标车辆的方位角,本发明实施例对此不作限定,例如,可以根据目标车辆区域在第二图像中的位置,获取目标车辆的方位角;或,根据车灯识别区域在第一图像中的位置,获取目标车辆的方位角。Optionally, how to obtain the azimuth of the target vehicle according to the first image or the second image is not limited in this embodiment of the present invention. For example, the azimuth of the target vehicle may be obtained according to the position of the target vehicle area in the second image. or, obtaining the azimuth angle of the target vehicle according to the position of the identification area of the headlight in the first image.
由于获取第一图像或第二图像的摄像机的镜头参数和安装位置可通过事先的摄像机标定技术获取,因此可以建立以摄像机为原点的道路景物坐标与第一图像或第二图像的像素坐标的关系查找表。Since the lens parameters and installation position of the camera that obtains the first image or the second image can be obtained through the camera calibration technology in advance, the relationship between the coordinates of the road scene with the camera as the origin and the pixel coordinates of the first image or the second image can be established lookup table.
通过上述关系查找表可将目标车辆范围或车灯识别区域包含的像素坐标转换为以摄像机为原点的目标车辆坐标,从而根据转换的以摄像机为原点的目标车辆坐标计算以摄像机为原点的目标车辆方位角。Through the above relationship lookup table, the pixel coordinates contained in the target vehicle range or the headlight recognition area can be converted into the target vehicle coordinates with the camera as the origin, so as to calculate the target vehicle with the camera as the origin according to the converted coordinates of the target vehicle with the camera as the origin Azimuth.
当目标车辆与主体车辆存在相对速度时,恒载频雷达接收到的该目标车辆的反射信号可以经过移相器产生正交反射信号,该正交反射信号与该恒载频雷达的发射信号经过混频器产生正交中频信号,该正交中频信号包含关于上述相对速度的多普勒频率,该多普勒频率的大小与该相对速度的大小成正比,该多普勒频率的正负号与与该相对速度的正负号相同。When there is a relative speed between the target vehicle and the main vehicle, the reflected signal of the target vehicle received by the constant carrier frequency radar can pass through the phase shifter to generate a quadrature reflected signal, and the quadrature reflected signal and the transmitted signal of the constant carrier frequency radar pass through The mixer generates a quadrature intermediate frequency signal, the quadrature intermediate frequency signal contains the Doppler frequency about the relative velocity, the magnitude of the Doppler frequency is proportional to the magnitude of the relative velocity, the sign of the Doppler frequency Identical to the sign of the relative velocity.
利用模数转换器和复数快速傅里叶算法即可创建突出该多普勒频率的该正交中频信号的频谱;利用峰值检测算法即可获取该正交中频信号的频谱的该多普勒频率的大小和正负号;根据获取的该多普勒频率的大小和正负号即可利用多普勒测速公式确定相对速度的大小和正负号。The spectrum of the quadrature intermediate frequency signal highlighting the Doppler frequency can be created by using an analog-to-digital converter and a complex fast Fourier algorithm; the Doppler frequency of the spectrum of the quadrature intermediate frequency signal can be obtained by using a peak detection algorithm The size and sign; according to the obtained size and sign of the Doppler frequency, the size and sign of the relative velocity can be determined by using the Doppler velocity measurement formula.
恒载频雷达可以包含两个以上的接收机用以获取雷达目标的方位角。恒载频雷达的各个接收机相互的位置差异导致各个接收机获取的正交中频信号在同一多普勒频率处的相位存在相位差。The constant carrier frequency radar can contain more than two receivers to obtain the azimuth angle of the radar target. The mutual position difference of each receiver of the constant carrier frequency radar causes the phase difference of the quadrature intermediate frequency signal acquired by each receiver at the same Doppler frequency.
根据正交中频信号的频谱获取的各个接收机在同一多普勒频率处的相位差和各个接收机相互的位置关系即可利用相位法测角公式获取雷达目标的方位角。即,通过恒载频雷达获取的中频信号可以获知恒载频雷达所感测到的目标的相对速度和方位角。According to the phase difference of each receiver at the same Doppler frequency and the mutual position relationship of each receiver obtained from the spectrum of the quadrature intermediate frequency signal, the azimuth angle of the radar target can be obtained by using the phase method angle measurement formula. That is, the relative speed and azimuth angle of the target sensed by the constant carrier frequency radar can be known by the intermediate frequency signal obtained by the constant carrier frequency radar.
当存在多个目标车辆时,通过步骤S13可以获取多个目标车辆的方位角,根据恒载频雷达的中频信号可以获得多个雷达目标的相对速度和方位角,利用单个目标车辆的方位角与某一雷达目标的方位角近似相等的原则可以将该雷达目标的相对速度确定为该目标车辆的相对速度。When there are multiple target vehicles, the azimuth angles of the multiple target vehicles can be obtained through step S13, and the relative speeds and azimuth angles of the multiple radar targets can be obtained according to the intermediate frequency signal of the constant carrier frequency radar. Using the azimuth angle of a single target vehicle and the The principle that the azimuth angles of a certain radar target are approximately equal can determine the relative speed of the radar target as the relative speed of the target vehicle.
当摄像机和恒载频雷达的安装位置相差较远时,上述方位角近似相等的原则可能导致误差,只要根据摄像机和恒载频雷达的安装位置关系将两者的不同原点的方位角坐标校准为同一原点的的方位角坐标即可消除上述误差。When the installation positions of the camera and the constant carrier frequency radar are far apart, the above principle of approximately equal azimuth angle may lead to errors, as long as the azimuth angle coordinates of the different origins of the two are calibrated according to the installation position relationship between the camera and the constant carrier frequency radar. The azimuth coordinates of the same origin can eliminate the above errors.
在获取了目标车辆的距离信息和相对速度后,在自适应巡航过程中,可以根据获取的信息对主体车辆的运动参数进行控制,对于究竟如何进行控制,本发明实施例不作限定。例如,识别到目标车辆在主体车辆正前方100米的位置上以相对于主体车辆-10米/秒的速度行驶,那么为了防止追尾事故,可以控制主体车辆减速,等等,After obtaining the distance information and relative speed of the target vehicle, during the adaptive cruise process, the motion parameters of the subject vehicle can be controlled according to the obtained information. The embodiment of the present invention does not limit how to control. For example, it is recognized that the target vehicle is driving at a speed of -10 m/s relative to the subject vehicle at a position 100 meters in front of the subject vehicle, then in order to prevent a rear-end collision, the subject vehicle can be controlled to slow down, etc.,
当然,如果还识别了目标车辆的转向灯,那么在自适应巡航过程中,还可以根据目标车辆的距离信息、相对速度、以及转向灯,对主体车辆的运动参数进行控制。例如,识别到目标车辆位于主体车辆左边的车道上,以相对于主体车辆-10米/秒的速度行驶,同时亮起右转向灯,那么可以认为该目标车辆可能向主体车辆本车道变道,因此可以控制主体车辆减速,等等。Of course, if the turn signal of the target vehicle is also identified, during the adaptive cruise process, the motion parameters of the subject vehicle can also be controlled according to the distance information, relative speed, and turn signal of the target vehicle. For example, if it is recognized that the target vehicle is located in the lane to the left of the subject vehicle, driving at a speed of -10 m/s relative to the subject vehicle, and the right turn signal is turned on at the same time, it can be considered that the target vehicle may change to the lane of the subject vehicle, Therefore, the subject vehicle can be controlled to decelerate, and so on.
可选的,还可以根据识别的目标车辆的方位角,对恒载频雷达进行自动校准。Optionally, the constant carrier frequency radar can also be automatically calibrated according to the azimuth of the identified target vehicle.
由于恒载频雷达的安装位置处于驾驶室以外时,其方位角的测量结果可能受到振动、温度变化、雨雪泥污覆盖物的影响,需要进行自动校准。例如,当根据本发明识别到主体车辆前方有多个不同方位角的目标车辆,即可对比识别的多个目标车辆的方位角与雷达目标的方位角是否有一致的偏差,若有一致的偏差,将该偏差记录至恒载频雷达的储存器中,恒载频雷达在后续的方位角测量时读出该偏差进行自动校准和补偿。当然,若有不一致的偏差,可以对主体车辆驾驶员发出恒载频雷达不可用的警示,提醒主体车辆驾驶员对恒载频雷达进行检查或清洁。Since the installation position of the constant carrier frequency radar is outside the cab, the measurement results of its azimuth angle may be affected by vibration, temperature changes, rain, snow, mud and dirt coverage, and automatic calibration is required. For example, when multiple target vehicles with different azimuth angles are identified in front of the subject vehicle according to the present invention, it is possible to compare whether the azimuth angles of the identified multiple target vehicles and the azimuth angle of the radar target have consistent deviations, and if there is a consistent deviation , record the deviation into the storage of the constant carrier frequency radar, and the constant carrier frequency radar reads out the deviation in the subsequent azimuth measurement for automatic calibration and compensation. Of course, if there are inconsistent deviations, a warning that the constant carrier frequency radar is unavailable can be issued to the driver of the main vehicle, and the driver of the main vehicle can be reminded to check or clean the constant carrier frequency radar.
请参见图7,基于同一发明构思,本发明实施例提供一种车辆识别装置100,装置100可以包括:Referring to FIG. 7, based on the same inventive concept, an embodiment of the present invention provides a vehicle identification device 100. The device 100 may include:
图像获取模块101,用于获取第一图像和第二图像,其中,第一图像为彩色图像或亮度图像,第二图像为深度图像;an image acquisition module 101, configured to acquire a first image and a second image, wherein the first image is a color image or a luminance image, and the second image is a depth image;
第一识别模块102,用于在第二图像中识别目标车辆,以获取目标车辆的距离信息;a first identification module 102, configured to identify the target vehicle in the second image to obtain distance information of the target vehicle;
第一获取模块103,用于根据第一图像或第二图像,获取目标车辆的方位角;a first acquisition module 103, configured to acquire the azimuth angle of the target vehicle according to the first image or the second image;
第一确定模块104,用于根据目标车辆的方位角以及通过恒载频雷达获取的中频信号,确定目标车辆的相对速度;The first determination module 104 is configured to determine the relative speed of the target vehicle according to the azimuth angle of the target vehicle and the intermediate frequency signal obtained by the constant carrier frequency radar;
控制模块105,用于根据距离信息和相对速度,对主体车辆的运动参数进行控制。The control module 105 is configured to control the motion parameters of the subject vehicle according to the distance information and the relative speed.
可选的,装置100还包括:Optionally, the apparatus 100 further includes:
第二识别模块,用于根据第一图像识别公路车道线;a second identification module, configured to identify highway lane lines according to the first image;
第一映射模块,用于根据第一图像与第二图像之间的映射关系,将公路车道线映射至第二图像,以在第二图像中确定至少一个车辆识别范围,其中,每两个相邻的公路车道线创建一个车辆识别范围;The first mapping module is configured to map the road lane line to the second image according to the mapping relationship between the first image and the second image, so as to determine at least one vehicle identification range in the second image, wherein every two phases are Adjacent highway lane lines create a vehicle identification range;
第一识别模块102用于:The first identification module 102 is used for:
在至少一个车辆识别范围中识别目标车辆。A target vehicle is identified in at least one vehicle identification range.
可选的,装置100还包括:Optionally, the apparatus 100 further includes:
第二获取模块,用于获取映射至第二图像中的每个公路车道线的初始直线的斜率;a second acquiring module, configured to acquire the slope of the initial straight line mapped to each highway lane line in the second image;
创建模块,用于将斜率最大的两条初始直线对应的公路车道线所创建的车辆识别范围标记为本车道,以及将其余的车辆识别范围标记为非本车道;The creation module is used to mark the vehicle identification range created by the highway lane lines corresponding to the two initial straight lines with the largest slopes as this lane, and mark the rest of the vehicle identification ranges as non-own lanes;
第一识别模块102用于:The first identification module 102 is used for:
在标记为本车道的车辆识别范围中识别本车道的目标车辆、在标记为非本车道的车辆识别范围中识别非本车道的目标车辆、及在相邻两个车辆识别范围组合成的车辆识别范围中识别变道的目标车辆。Recognition of the target vehicle in the own lane in the vehicle recognition range marked as the own lane, recognition of the target vehicle in the non-own lane in the vehicle recognition range marked as the non-own lane, and vehicle recognition in the combination of two adjacent vehicle recognition ranges Identify the target vehicle changing lanes in range.
可选的,装置100还包括:Optionally, the apparatus 100 further includes:
第二确定模块,用于通过识别目标车辆,在第二图像中确定目标车辆区域;a second determining module, configured to determine the target vehicle area in the second image by identifying the target vehicle;
第二映射模块,用于根据第一图像与第二图像之间的映射关系,将目标车辆区域映射至第一图像中,以在第一图像中生成车灯识别区域;a second mapping module, configured to map the target vehicle area to the first image according to the mapping relationship between the first image and the second image, so as to generate a vehicle lamp recognition area in the first image;
第三识别模块,用于在车灯识别区域中识别目标车辆的转向灯;The third identification module is used to identify the turn signal of the target vehicle in the headlight identification area;
控制模块105用于:The control module 105 is used to:
根据距离信息、相对速度、以及识别的目标车辆的转向灯,对主体车辆的运动参数进行控制。The motion parameters of the subject vehicle are controlled according to the distance information, relative speed, and turn signals of the identified target vehicle.
可选的,第一获取模块103用于:Optionally, the first obtaining module 103 is used for:
根据目标车辆区域在第二图像中的位置,获取目标车辆的方位角;或,Obtain the azimuth angle of the target vehicle according to the position of the target vehicle area in the second image; or,
根据车灯识别区域在第一图像中的位置,获取目标车辆的方位角。The azimuth angle of the target vehicle is obtained according to the position of the identification area of the headlight in the first image.
可选的,装置100还包括:Optionally, the apparatus 100 further includes:
校准模块,用于根据识别的目标车辆的方位角,对恒载频雷达进行自动校准。The calibration module is used to automatically calibrate the constant carrier frequency radar according to the azimuth angle of the identified target vehicle.
请参见图8,基于同一发明构思,本发明实施例提供一种车辆200,车辆200可以包括图像采集装置,用于获取第一图像和第二图像,其中,第一图像为彩色图像或亮度图像,第二图像为深度图像;以及,图7的车辆识别装置100。Referring to FIG. 8, based on the same inventive concept, an embodiment of the present invention provides a vehicle 200. The vehicle 200 may include an image acquisition device for acquiring a first image and a second image, wherein the first image is a color image or a luminance image , the second image is a depth image; and, the vehicle identification device 100 of FIG. 7 .
在本发明所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented.
在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional module in each embodiment of the present application may be integrated in one processing unit, or each module may exist physically alone, or two or more modules may be integrated in one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random access memory), magnetic disk or optical disk and other media that can store program codes .
以上所述,以上实施例仅用以对本发明的技术方案进行了详细介绍,但以上实施例的说明只是用于帮助理解本发明的方法及其核心思想,不应理解为对本发明的限制。本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。As mentioned above, the above embodiments are only used to describe the technical solutions of the present invention in detail, but the descriptions of the above embodiments are only used to help understand the method and the core idea of the present invention, and should not be construed as a limitation of the present invention. Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should all be included within the protection scope of the present invention.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610874368.XA CN107886036B (en) | 2016-09-30 | 2016-09-30 | Vehicle control method and device and vehicle |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610874368.XA CN107886036B (en) | 2016-09-30 | 2016-09-30 | Vehicle control method and device and vehicle |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107886036A CN107886036A (en) | 2018-04-06 |
| CN107886036B true CN107886036B (en) | 2020-11-06 |
Family
ID=61770063
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610874368.XA Active CN107886036B (en) | 2016-09-30 | 2016-09-30 | Vehicle control method and device and vehicle |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107886036B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102627453B1 (en) * | 2018-10-17 | 2024-01-19 | 삼성전자주식회사 | Method and device to estimate position |
| CN110281923A (en) * | 2019-06-28 | 2019-09-27 | 信利光电股份有限公司 | A kind of vehicle auxiliary lane change method, apparatus and system |
| CN110596656B (en) * | 2019-08-09 | 2021-11-16 | 山西省煤炭地质物探测绘院 | Intelligent street lamp feedback compensation system based on big data |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104952254B (en) * | 2014-03-31 | 2018-01-23 | 比亚迪股份有限公司 | Vehicle identification method, device and vehicle |
| CN104112118B (en) * | 2014-06-26 | 2017-09-05 | 大连民族学院 | Method for detecting lane lines for Lane Departure Warning System |
-
2016
- 2016-09-30 CN CN201610874368.XA patent/CN107886036B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN107886036A (en) | 2018-04-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108528431B (en) | Vehicle driving automatic control method and device | |
| EP3470789B1 (en) | Autonomous driving support apparatus and method | |
| US10935643B2 (en) | Sensor calibration method and sensor calibration apparatus | |
| KR102772870B1 (en) | Electronic device and control method | |
| CN102016921B (en) | image processing device | |
| CN108528448B (en) | Vehicle driving automatic control method and device | |
| CN106203272B (en) | The method and apparatus for determining the movement of movable objects | |
| US20090122136A1 (en) | Object detection device | |
| JP2021117048A (en) | Change point detection device and map information distribution system | |
| US9123251B2 (en) | Image system for automotive safety applications | |
| US11351997B2 (en) | Collision prediction apparatus and collision prediction method | |
| CN112149460A (en) | An obstacle detection method and device | |
| WO2018059585A1 (en) | Vehicle identification method and device, and vehicle | |
| JP2017005678A (en) | In-vehicle camera system and image processing device | |
| JP2009071836A (en) | A device having a system capable of capturing a stereoscopic image to assist driving of an automobile | |
| JP6209825B2 (en) | Parallax detection device and parallax detection method | |
| EP2347931B1 (en) | Headlamp controller | |
| CN107886030A (en) | Vehicle identification method, device and vehicle | |
| JP2020047210A (en) | Object detection device | |
| CN108536134B (en) | Automatic control method and device for vehicle running | |
| CN107886729B (en) | Vehicle identification method, device and vehicle | |
| CN107886036B (en) | Vehicle control method and device and vehicle | |
| JP7241839B1 (en) | Self-localization device | |
| KR102003387B1 (en) | Method for detecting and locating traffic participants using bird's-eye view image, computer-readerble recording medium storing traffic participants detecting and locating program | |
| JP2014130429A (en) | Photographing device and three-dimensional object area detection program |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |