CN117445941A - Track deviation early warning method, terminal and storage medium - Google Patents
Track deviation early warning method, terminal and storage medium Download PDFInfo
- Publication number
- CN117445941A CN117445941A CN202210842624.2A CN202210842624A CN117445941A CN 117445941 A CN117445941 A CN 117445941A CN 202210842624 A CN202210842624 A CN 202210842624A CN 117445941 A CN117445941 A CN 117445941A
- Authority
- CN
- China
- Prior art keywords
- information
- lane line
- vector
- lane
- real
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 103
- 238000001514 detection method Methods 0.000 claims abstract description 115
- 238000012545 processing Methods 0.000 claims abstract description 104
- 238000004458 analytical method Methods 0.000 claims abstract description 30
- 239000013598 vector Substances 0.000 claims description 125
- 230000006399 behavior Effects 0.000 claims description 42
- 230000015654 memory Effects 0.000 claims description 27
- 108010076504 Protein Sorting Signals Proteins 0.000 claims description 24
- 238000012549 training Methods 0.000 claims description 21
- 238000000354 decomposition reaction Methods 0.000 claims description 19
- 238000001914 filtration Methods 0.000 claims description 17
- 238000010586 diagram Methods 0.000 description 37
- 238000004364 calculation method Methods 0.000 description 19
- 230000006870 function Effects 0.000 description 13
- 230000000694 effects Effects 0.000 description 11
- 208000003443 Unconsciousness Diseases 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 238000006243 chemical reaction Methods 0.000 description 5
- 206010039203 Road traffic accident Diseases 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000009825 accumulation Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 238000002372 labelling Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000003542 behavioural effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000011022 operating instruction Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W30/00—Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
- B60W30/10—Path keeping
- B60W30/12—Lane keeping
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W40/00—Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
- B60W40/02—Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to ambient conditions
- B60W40/06—Road conditions
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W40/00—Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
- B60W40/10—Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to vehicle motion
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
- B60W50/08—Interaction between the driver and the control system
- B60W50/14—Means for informing the driver, warning the driver or prompting a driver intervention
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
- B60W50/08—Interaction between the driver and the control system
- B60W50/14—Means for informing the driver, warning the driver or prompting a driver intervention
- B60W2050/143—Alarm means
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W2540/00—Input parameters relating to occupants
- B60W2540/18—Steering angle
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W2552/00—Input parameters relating to infrastructure
- B60W2552/53—Road markings, e.g. lane marker or crosswalk
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Human Computer Interaction (AREA)
- Traffic Control Systems (AREA)
Abstract
Description
技术领域Technical field
本申请涉及计算机视觉技术领域,尤其涉及一种轨迹偏离预警方法,终端及存储介质。This application relates to the field of computer vision technology, and in particular to a trajectory deviation early warning method, terminal and storage medium.
背景技术Background technique
在高速公路驾驶中,车辆无意识地偏离车道是发生交通事故的一个重要原因;这种无意识的偏离可能是由于驾驶员注意力不集中、疲劳驾驶等原因,造成车辆偏离原有车道;对这种无意识偏离情况做出预警,避免潜在交通事故的发生,是辅助驾驶系统的功能之一。In highway driving, the vehicle's unconscious deviation from the lane is an important cause of traffic accidents; this unconscious deviation may be due to the driver's inattention, fatigue driving, etc., causing the vehicle to deviate from the original lane; for this kind of unconscious deviation, One of the functions of the assisted driving system is to provide early warning of unintentional deviations and avoid potential traffic accidents.
目前的偏离预警技术还无法对未来一段时间的车辆位置进行预估,前瞻性较差,且对于车道线检测的精确度较低,从而影响偏离预警效果。The current departure warning technology cannot predict the vehicle position in the future, has poor foresight, and has low accuracy in lane line detection, which affects the effect of departure warning.
发明内容Contents of the invention
本申请实施例提供了一种轨迹偏离预警方法,终端及存储介质,能够有效提升偏离预警效果。The embodiments of this application provide a trajectory deviation early warning method, terminal and storage medium, which can effectively improve the deviation early warning effect.
本申请实施例的技术方案是这样实现的:The technical solution of the embodiment of this application is implemented as follows:
第一方面,本申请实施例提供了一种轨迹偏离预警方法,所述轨迹偏离预警方法应用于终端,所述终端安装在目标车辆中,所述方法包括:In a first aspect, embodiments of the present application provide a trajectory deviation early warning method. The trajectory deviation early warning method is applied to a terminal, and the terminal is installed in a target vehicle. The method includes:
当所述目标车辆行驶时,获取所述目标车辆的实时转角信息和道路前方实时图像信息;When the target vehicle is driving, obtain the real-time corner information of the target vehicle and the real-time image information ahead of the road;
基于小波分析方法和所述实时转角信息进行行车轨迹预测处理,获得预测轨迹信息;Perform driving trajectory prediction processing based on the wavelet analysis method and the real-time corner information to obtain predicted trajectory information;
基于目标检测模型和所述道路前方实时图像信息进行车道线检测处理,获得车道线信息;Perform lane line detection processing based on the target detection model and the real-time image information ahead of the road to obtain lane line information;
若根据所述预测轨迹信息和所述车道线信息确定存在偏离行为,则进行预警处理。If it is determined that there is deviation behavior based on the predicted trajectory information and the lane line information, early warning processing is performed.
第二方面,本申请实施例提供了一种终端,所述终端安装在目标车辆中,所述终端包括获取单元、预测单元、检测单元以及预警单元,In the second aspect, embodiments of the present application provide a terminal, which is installed in a target vehicle. The terminal includes an acquisition unit, a prediction unit, a detection unit and an early warning unit,
所述获取单元,用于当所述目标车辆行驶时,获取所述目标车辆的实时转角信息和道路前方实时图像信息;The acquisition unit is configured to acquire the real-time corner information of the target vehicle and the real-time image information ahead of the road when the target vehicle is driving;
所述预测单元,用于基于小波分析方法和所述实时转角信息进行行车轨迹预测处理,获得预测轨迹信息;The prediction unit is used to perform driving trajectory prediction processing based on the wavelet analysis method and the real-time corner information to obtain predicted trajectory information;
所述检测单元,用于基于目标检测模型和所述道路前方实时图像信息进行车道线检测处理,获得车道线信息;The detection unit is used to perform lane line detection processing based on the target detection model and the real-time image information ahead of the road to obtain lane line information;
所述预警单元,用于若根据所述预测轨迹信息和所述车道线信息确定存在偏离行为,则进行预警处理。The early warning unit is configured to perform early warning processing if it is determined that there is a deviation behavior based on the predicted trajectory information and the lane line information.
第三方面,本申请实施例提供了一种终端,所述终端还包括处理器、存储有所述处理器可执行指令的存储器,当所述指令被所述处理器执行时,实现如上所述的轨迹偏离预警方法。In a third aspect, embodiments of the present application provide a terminal. The terminal further includes a processor and a memory storing instructions executable by the processor. When the instructions are executed by the processor, the above-mentioned steps are implemented. Trajectory deviation early warning method.
第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有程序,应用于终端中,所述程序被处理器执行时,实现如上的轨迹偏离预警方法。In the fourth aspect, embodiments of the present application provide a computer-readable storage medium on which a program is stored, which is used in a terminal. When the program is executed by a processor, the above trajectory deviation warning method is implemented.
本申请实施例提供了一种轨迹偏离预警方法,终端及存储介质,终端安装在目标车辆中,当目标车辆行驶时,获取目标车辆的实时转角信息和道路前方实时图像信息;基于小波分析方法和实时转角信息进行行车轨迹预测处理,获得预测轨迹信息;基于目标检测模型和道路前方实时图像信息进行车道线检测处理,获得车道线信息;若根据预测轨迹信息和车道线信息确定存在偏离行为,则进行预警处理。由此可见,在本申请中,终端安装在目标车辆中,在目标车辆的行驶过程中,终端可以基于小波分析方法对实时转角信息进行行车轨迹预测处理,获得未来一段时间内的预测轨迹信息,从而能够对未来一段时间的车辆位置进行预估,具有很好的前瞻性;同时利用目标检测模型对道路前方实时图像信息进行车道线检测处理,能够提升车道线检测的精确度;由此可以根据预测轨迹信息和车道线信息预判目标车辆是否会发生偏离,在判断存在偏离行为时进行预警处理,有效提升偏离预警效果。The embodiment of the present application provides a trajectory deviation early warning method, terminal and storage medium. The terminal is installed in the target vehicle. When the target vehicle is driving, the real-time corner information of the target vehicle and the real-time image information ahead of the road are obtained; based on the wavelet analysis method and Real-time corner information is used for driving trajectory prediction processing to obtain predicted trajectory information; lane line detection processing is performed based on the target detection model and real-time image information ahead of the road to obtain lane line information; if it is determined that there is deviation based on the predicted trajectory information and lane line information, then Perform early warning processing. It can be seen that in this application, the terminal is installed in the target vehicle. During the driving process of the target vehicle, the terminal can perform driving trajectory prediction processing on the real-time corner information based on the wavelet analysis method to obtain the predicted trajectory information for a period of time in the future. This enables the vehicle position to be estimated for a period of time in the future, which is very forward-looking; at the same time, the target detection model is used to perform lane line detection processing on the real-time image information in front of the road, which can improve the accuracy of lane line detection; thus, it can be based on The predicted trajectory information and lane line information predict whether the target vehicle will deviate, and provide early warning processing when it is judged that there is a deviation, effectively improving the effect of deviation warning.
附图说明Description of the drawings
图1为本申请实施例提出的轨迹偏离预警方法的实现流程示意图一;Figure 1 is a schematic flow chart of the implementation of the trajectory deviation early warning method proposed in the embodiment of the present application;
图2为本申请实施例提出的终端的组成结构示意图一;Figure 2 is a schematic structural diagram 1 of the terminal proposed by the embodiment of the present application;
图3为本申请实施例提出的预测轨迹信息的示意图一;Figure 3 is a schematic diagram 1 of the predicted trajectory information proposed by the embodiment of the present application;
图4为本申请实施例提出的预测轨迹信息的示意图二;Figure 4 is a schematic diagram 2 of the predicted trajectory information proposed by the embodiment of the present application;
图5为本申请实施例提出的车道线信息的示意图;Figure 5 is a schematic diagram of the lane line information proposed in the embodiment of the present application;
图6为本申请实施例提出的轨迹偏离预警方法的实现流程示意图二;Figure 6 is a schematic diagram 2 of the implementation flow of the trajectory deviation early warning method proposed in the embodiment of the present application;
图7为本申请实施例提出的小波分解处理的实现示意图一;Figure 7 is a schematic diagram 1 of the implementation of the wavelet decomposition process proposed in the embodiment of the present application;
图8为本申请实施例提出的小波分解处理的实现示意图二;Figure 8 is a schematic diagram 2 of the implementation of the wavelet decomposition process proposed by the embodiment of the present application;
图9为本申请实施例提出的小波分解处理的实现示意图三;Figure 9 is a schematic diagram 3 of the implementation of the wavelet decomposition process proposed in the embodiment of this application;
图10为本申请实施例提出的目标信号的示意图;Figure 10 is a schematic diagram of the target signal proposed by the embodiment of the present application;
图11为本申请实施例提出的轨迹偏离预警方法的实现流程示意图三;Figure 11 is a schematic diagram 3 of the implementation flow of the trajectory deviation early warning method proposed in the embodiment of this application;
图12为本申请实施例提出的预测轨迹信息的示意图三;Figure 12 is a schematic diagram three of the predicted trajectory information proposed by the embodiment of the present application;
图13为本申请实施例提出的轨迹偏离预警方法的实现流程示意图四;Figure 13 is a schematic flow chart 4 of the implementation of the trajectory deviation early warning method proposed by the embodiment of the present application;
图14为本申请实施例提出的终端的组成结构示意图二;Figure 14 is a schematic diagram 2 of the composition structure of the terminal proposed by the embodiment of the present application;
图15为本申请实施例提出的终端的组成结构示意图三。Figure 15 is a schematic diagram 3 of the composition and structure of the terminal proposed by the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。可以理解的是,此处所描述的具体实施例仅用于解释相关申请,而非对该申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关申请相关的部分。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It can be understood that the specific embodiments described here are only used to explain the relevant application, but not to limit the application. It should also be noted that, for convenience of description, only parts relevant to the relevant application are shown in the drawings.
在高速公路驾驶中,车辆无意识地偏离车道是发生交通事故的一个重要原因;这种无意识的偏离可能是由于驾驶员注意力不集中、疲劳驾驶等原因,造成车辆偏离原有车道;对这种无意识偏离情况做出预警,避免潜在交通事故的发生,是辅助驾驶系统的功能之一。In highway driving, the vehicle's unconscious deviation from the lane is an important cause of traffic accidents; this unconscious deviation may be due to the driver's inattention, fatigue driving, etc., causing the vehicle to deviate from the original lane; for this kind of unconscious deviation, One of the functions of the assisted driving system is to provide early warning of unintentional deviations and avoid potential traffic accidents.
常见的偏离预警方法通常需要在车身或者道路上安装额外的硬件设备来辅助车道线检测,例如雷达或红外设备等,不仅价格昂贵,实施起来会耗费很多人力物力,实施难度较大,适应的场景较为限制。并且,由于无法准确地区分驾驶员是主动变道还是非主观意识地偏离车道,可能会在车辆主动变道过程中也不停发出预警,对驾驶员造成一定的干扰;另外,目前的偏离预警技术还无法对未来一段时间的车辆位置进行预估,前瞻性较差。Common deviation warning methods usually require the installation of additional hardware equipment on the vehicle body or on the road to assist lane line detection, such as radar or infrared equipment. They are not only expensive, but also consume a lot of manpower and material resources to implement. They are difficult to implement and cannot be adapted to various scenarios. More restrictive. Moreover, since it is impossible to accurately distinguish whether the driver actively changes lanes or deviates from the lane unintentionally, warnings may be issued continuously during the vehicle's active lane change process, causing certain interference to the driver; in addition, the current deviation warning Technology is still unable to predict the vehicle's position in the future, and its forward-looking nature is poor.
同时,在进行车道线检测时,现有方法只适用于直线车道线,而现实生活中,道路上的车道线是多种多样的,有直线有曲线,有实线有虚线,有白色的也有黄色的,所以传统的形态学和图像处理算法很难把以上各种不同形态的车道线都准确地检测出来,天气、光照、遮挡等因素对检测效果的影响也很大。At the same time, when detecting lane lines, existing methods are only suitable for straight lane lines. In real life, lane lines on the road are diverse, including straight lines, curves, solid lines, dotted lines, white lines, and others. Yellow, so it is difficult for traditional morphology and image processing algorithms to accurately detect all the above lane lines of different shapes. Factors such as weather, lighting, occlusion, etc. also have a great impact on the detection effect.
另外,针对已有的目标检测网络,在计算误差进行训练的过程中,一般是通过匈牙利匹配,然后把匹配中每一个配对的检测目标和真实目标之间的参数进行误差的计算,其原理可以表示为以下公式:In addition, for existing target detection networks, in the process of calculating errors for training, Hungarian matching is generally used, and then the parameters between each paired detection target and the real target in the matching are calculated. The principle can be Expressed as the following formula:
其中,d()为微元符号;∑为累加符号。Among them, d() is the micro-element symbol; Σ is the accumulation symbol.
而在车道线的检测中,每一条车道线可以用几个参数进行曲线拟合,这些参数包括:三次曲线方程参数(k1,k2,k3,b),摄像头内外参((f,R),垂直起止量(α,β);那么上式中的d(li,gtz(i))就可以用检测目标和真实目标之间的这些参数组成误差计算分量,可以表示为以下公式:In lane line detection, each lane line can be curve-fitted with several parameters. These parameters include: cubic curve equation parameters (k 1 , k 2 , k 3 , b), camera internal and external parameters ((f, R), vertical starting and ending amounts (α, β); then d(l i ,gt z(i) ) in the above formula can use these parameters between the detection target and the real target to form the error calculation component, which can be expressed as follows formula:
以上是现有的目标检测中构建误差模型的普遍思想;但是结合车道线标注的具体方法和数据特性来看,它有一个明显的缺陷:车道线标注方法是使用labelme等软件在图像上打点进行标注,当标注完成之后,我们得到的数据是每条车道线上的一系列离散点,每个点的数据是(x,y,n),其中x表示点的横坐标,y表示点的纵坐标,n表示此点属于哪一条车道线;因此,上式中需要用到的参数,包括三次曲线方程参数等,都需要用离散点坐标数据去进行拟合计算得到。现实世界中的车道线并不一定完全符合三次曲线特征,拟合过程中多少会有误差;拍摄过程中的图像畸变、投影误差等,也会对拟合过程的精度造成影响;从散点拟合成参数,参与误差计算,然后再把参数反向换算成散点,这两重换算中的误差累计起来,会对误差模型的准确度造成一定的影响;也就是说,现有的误差模型在训练过程中误差的计算并不精确,从而会影响目标检测的精度,以至于无法很好的检测车道线。The above is the common idea of constructing error models in existing target detection; however, combined with the specific method and data characteristics of lane line annotation, it has an obvious flaw: the lane line annotation method is to use software such as labelme to mark points on the image. Labeling. When the labeling is completed, the data we get is a series of discrete points on each lane line. The data of each point is (x, y, n), where x represents the abscissa of the point and y represents the vertical coordinate of the point. Coordinates, n represents which lane line this point belongs to; therefore, the parameters needed in the above formula, including cubic curve equation parameters, etc., need to be calculated using discrete point coordinate data for fitting calculations. Lane lines in the real world do not necessarily conform to the characteristics of cubic curves, and there will be errors to some extent during the fitting process; image distortion, projection errors, etc. during the shooting process will also affect the accuracy of the fitting process; from scatter point fitting Synthesize parameters, participate in error calculation, and then reversely convert the parameters into scatter points. The accumulation of errors in these two conversions will have a certain impact on the accuracy of the error model; that is to say, the existing error model The calculation of the error during the training process is not accurate, which will affect the accuracy of target detection, making it impossible to detect lane lines well.
由此可见,现有的偏离预警方法普遍存在检测车辆偏离情况的精确性较低,预警效果较差的问题。It can be seen that existing deviation warning methods generally have low accuracy in detecting vehicle deviation and poor early warning effects.
为了解决现有技术中轨迹偏离预警方法所存在的问题,本申请实施例提供了一种轨迹偏离预警方法,终端及存储介质,终端安装在目标车辆中,当目标车辆行驶时,终端获取目标车辆的实时转角信息和道路前方实时图像信息;基于小波分析方法和实时转角信息进行行车轨迹预测处理,获得预测轨迹信息;基于目标检测模型和道路前方实时图像信息进行车道线检测处理,获得车道线信息;若根据预测轨迹信息和车道线信息确定存在偏离行为,则进行预警处理;具有很好的前瞻性,同时还能够提升车道线的检测精度,最终有效提升偏离预警效果。In order to solve the problems existing in the trajectory deviation early warning method in the prior art, embodiments of the present application provide a trajectory deviation early warning method, a terminal and a storage medium. The terminal is installed in the target vehicle. When the target vehicle is driving, the terminal obtains the target vehicle real-time corner information and real-time image information in front of the road; based on wavelet analysis method and real-time corner information, driving trajectory prediction processing is performed to obtain predicted trajectory information; based on the target detection model and real-time image information in front of the road, lane line detection processing is performed to obtain lane line information ; If it is determined that there is a deviation based on the predicted trajectory information and lane line information, early warning processing will be carried out; it is very forward-looking and can also improve the lane line detection accuracy, ultimately effectively improving the deviation warning effect.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
本申请实施例提供了一种轨迹偏离预警方法,轨迹偏离预警方法应用于终端,终端安装在目标车辆中,图1为本申请实施例提出的轨迹偏离预警方法的实现流程示意图一,如图1所示,轨迹偏离预警方法可以包括以下步骤:The embodiment of the present application provides a trajectory deviation early warning method. The trajectory deviation early warning method is applied to a terminal, and the terminal is installed in the target vehicle. Figure 1 is a schematic flow chart of the implementation of the trajectory departure early warning method proposed by the embodiment of the present application. As shown in Figure 1 As shown, the trajectory deviation early warning method can include the following steps:
步骤101、当目标车辆行驶时,获取目标车辆的实时转角信息和道路前方实时图像信息。Step 101: When the target vehicle is driving, obtain the real-time corner information of the target vehicle and the real-time image information of the road ahead.
在本申请的实施例中,目标车辆行驶时,终端可以获取目标车辆的实时转角信息和道路前方实时图像信息。In the embodiment of the present application, when the target vehicle is driving, the terminal can obtain the real-time corner information of the target vehicle and the real-time image information ahead of the road.
需要说明的是,在本申请的实施例中,实时转角信息可以决定目标车辆的转向角度,从而决定目标车辆的前进轨迹;示例性的,实时转角信息可以基于目标车辆的方向盘获取的方向盘的实时转角信息。It should be noted that in the embodiment of the present application, the real-time turning angle information can determine the steering angle of the target vehicle, thereby determining the forward trajectory of the target vehicle; for example, the real-time turning angle information can be based on the real-time steering angle of the steering wheel obtained from the steering wheel of the target vehicle. Corner information.
需要说明的是,在本申请的实施例中,在目标车辆行驶的过程中,方向盘的瞬时转向角度可以决定目标车辆前轮的偏向角度,从而短期内的前进轨迹可以由方向盘的转角决定;例如,方向盘角度为0时,车前轮的偏向角度为0,目标车辆行驶轨迹为两条向前的直线;方向盘角度不为0时,目标车辆转弯,前轮的轨迹是一对同心圆弧,圆弧的半径和弧度长短由目标车辆的车轮偏角和车身参数共同决定;因此,通过获取目标车辆的方向盘的转角能够得到目标车辆的行驶轨迹的相关信息。It should be noted that in the embodiment of the present application, during the driving process of the target vehicle, the instantaneous steering angle of the steering wheel can determine the deflection angle of the front wheel of the target vehicle, so that the short-term forward trajectory can be determined by the turning angle of the steering wheel; for example , when the steering wheel angle is 0, the deflection angle of the front wheels is 0, and the target vehicle's driving trajectory is two forward straight lines; when the steering wheel angle is not 0, the target vehicle turns, and the trajectory of the front wheels is a pair of concentric arcs. The radius and arc length of the arc are determined by the wheel deflection angle and body parameters of the target vehicle; therefore, relevant information about the target vehicle's driving trajectory can be obtained by obtaining the steering wheel angle of the target vehicle.
示例性的,在本申请的实施例中,图2为本申请实施例提出的终端的组成结构示意图一,如图2所示,终端安装10在目标车辆20中,目标车辆20中还可以配置有摄像头30;通过摄像头可以实时采集目标车辆在行驶时,道路前方实时图像信息;终端可以获取摄像头采集的道路前方实时图像信息。Exemplarily, in the embodiment of the present application, Figure 2 is a schematic structural diagram of the terminal proposed by the embodiment of the present application. As shown in Figure 2, the terminal 10 is installed in the target vehicle 20, and the target vehicle 20 can also be configured There is a camera 30; through the camera, the real-time image information of the road ahead can be collected in real time when the target vehicle is driving; the terminal can obtain the real-time image information of the road front collected by the camera.
进一步地,在本申请的实施例中,目标车辆中的摄像头是预先经过标定的;标定的目的在于求取摄像头的内方位元素、畸变参数以及外方位元素,从而有了这些参数,就可以建立起空间中的一个三维点和其在二维图像中的投影点之间的转换关系。Further, in the embodiment of the present application, the camera in the target vehicle is calibrated in advance; the purpose of calibration is to obtain the inner orientation elements, distortion parameters and outer orientation elements of the camera, so that with these parameters, it is possible to establish The conversion relationship between a three-dimensional point in space and its projection point in a two-dimensional image.
示例性的,在本申请的实施例中,首先,建立一个自定义的空间直角坐标系,作为之后所有空间转换关系和空间绝对距离度量的基准;该自定义的空间直角坐标系可以是以目标车辆前轴的中心点在地面的铅垂投影点为原点,X轴朝向目标车辆的车身右方,Y轴朝向目标车辆前进方向的反方向,Z轴朝向正上方;接着,在这个自定义空间直角坐标系中,根据张正友标定法,首先用移动的棋盘格拍摄多张照片计算出摄像头的内方位元素,然后进行畸变参数优化,最后拍摄平铺在地面上的标定板计算摄像头在此空间直角坐标系中的外方位元素。For example, in the embodiment of this application, first, a customized spatial rectangular coordinate system is established as the basis for all subsequent spatial transformation relationships and spatial absolute distance measurements; the customized spatial rectangular coordinate system can be based on the target The vertical projection point of the center point of the vehicle's front axle on the ground is the origin. The X-axis faces the right side of the target vehicle's body, the Y-axis faces the opposite direction of the target vehicle's forward direction, and the Z-axis faces directly above; then, in this custom space In the rectangular coordinate system, according to Zhang Zhengyou's calibration method, first use a moving checkerboard to take multiple photos to calculate the internal orientation elements of the camera, then optimize the distortion parameters, and finally take a calibration plate tiled on the ground to calculate the camera's right angle in this space The exterior orientation element in the coordinate system.
其中,内方位元素记为:焦距f,摄像头在x和y方向的像元尺寸dx和dy以及像主点的像素坐标(u0,v0);外方位元素记为:平移矩阵T和旋转矩阵R;由此,空间中的一个点(x,y,z)与其在目标车辆中的摄像头拍摄的影像中的位置(u,v)之间的转换关系可以表示为以下公式:Among them, the inner orientation elements are recorded as: focal length f, the pixel dimensions dx and dy of the camera in the x and y directions, and the pixel coordinates of the main image point (u0, v0); the outer orientation elements are recorded as: translation matrix T and rotation matrix R ;Thus, the conversion relationship between a point (x, y, z) in space and its position (u, v) in the image captured by the camera in the target vehicle can be expressed as the following formula:
式中的zc表示一种常量参数。z c in the formula represents a constant parameter.
需要说明的是,在本申请的实施例中,对于任意一个目标车辆来说,摄像头在安装好以后,只需执行一次摄像头标定即可,标定后获得的参数可以作为摄像头中固定的系统参数使用。It should be noted that in the embodiment of the present application, for any target vehicle, after the camera is installed, the camera calibration only needs to be performed once, and the parameters obtained after calibration can be used as fixed system parameters in the camera. .
步骤102、基于小波分析方法和实时转角信息进行行车轨迹预测处理,获得预测轨迹信息。Step 102: Perform driving trajectory prediction processing based on the wavelet analysis method and real-time corner information to obtain predicted trajectory information.
在本申请的实施例中,终端在获取目标车辆的实时转角信息和道路前方实时图像信息之后,可以基于小波分析方法和实时转角信息进行行车轨迹预测处理,获得预测轨迹信息。In the embodiment of the present application, after the terminal obtains the real-time corner information of the target vehicle and the real-time image information ahead of the road, it can perform driving trajectory prediction processing based on the wavelet analysis method and the real-time corner information to obtain the predicted trajectory information.
需要说明的是,在本申请的实施例中,预测轨迹信息是指目标车辆在未来一段时间内的行驶轨迹的预测信息。It should be noted that in the embodiment of the present application, the predicted trajectory information refers to the predicted information of the target vehicle's driving trajectory in a future period of time.
进一步地,在本申请的一些实施例中,终端可以先基于实时转角信息确定信号序列;然后对信号序列进行小波分解处理,获得信号组合;按照预设噪声滤除区间对信号组合进行噪声滤除处理,获得目标信号;接着基于时间信息对目标信号进行处理,获得时间信息对应的预测信号;最后对预测信号进行重构处理,获得预测轨迹信息。Further, in some embodiments of the present application, the terminal can first determine the signal sequence based on real-time corner information; then perform wavelet decomposition processing on the signal sequence to obtain a signal combination; and perform noise filtering on the signal combination according to the preset noise filtering interval. Process to obtain the target signal; then process the target signal based on time information to obtain the prediction signal corresponding to the time information; finally reconstruct the prediction signal to obtain the predicted trajectory information.
需要说明的是,在本申请的实施例中,利用小波分析方法能够预测目标车辆在未来一段时间内的行驶轨迹,具有良好的前瞻性,从而能够在判断出现偏离时,提前发出预警,以规避事故的发生。It should be noted that in the embodiments of the present application, the wavelet analysis method can be used to predict the driving trajectory of the target vehicle in a period of time in the future, which has good foresight, so that when it is judged that there is a deviation, an early warning can be issued in advance to avoid Accidents happen.
示例性的,图3为本申请实施例提出的预测轨迹信息的示意图一,如图3所示为将预测轨迹信息经过投影转换显示到摄像头拍摄的道路前方实时图像信息中,经过投影之后可以看出,预测轨迹信息为直行的轨迹;图4为本申请实施例提出的预测轨迹信息的示意图二,如图4所示,预测轨迹信息为转弯的轨迹。Exemplarily, Figure 3 is a schematic diagram 1 of the predicted trajectory information proposed by the embodiment of the present application. As shown in Figure 3, the predicted trajectory information is converted and displayed into the real-time image information of the road ahead captured by the camera. After projection, you can see It is shown that the predicted trajectory information is a straight trajectory; Figure 4 is a schematic diagram 2 of the predicted trajectory information proposed by the embodiment of the present application. As shown in Figure 4, the predicted trajectory information is a turning trajectory.
步骤103、基于目标检测模型和道路前方实时图像信息进行车道线检测处理,获得车道线信息。Step 103: Perform lane line detection processing based on the target detection model and real-time image information ahead of the road to obtain lane line information.
在本申请的实施例中,终端在获取目标车辆的实时转角信息和路前方实时图像信息之后,可以基于目标检测模型和道路前方实时图像信息进行车道线检测处理,获得车道线信息。In embodiments of the present application, after acquiring the real-time corner information of the target vehicle and the real-time image information ahead of the road, the terminal can perform lane line detection processing based on the target detection model and the real-time image information ahead of the road to obtain the lane line information.
需要说明的是,在本申请的实施例中,目标检测模型是基于预设误差计算模型对初始检测模型进行训练后获得的;本申请提出的预设误差计算模型能够提升对初始检测模型的训练效果,从而提升目标检测模型的检测精度,以实现更精确的车道线检测。It should be noted that in the embodiments of this application, the target detection model is obtained after training the initial detection model based on the preset error calculation model; the preset error calculation model proposed in this application can improve the training of the initial detection model. The effect is to improve the detection accuracy of the target detection model to achieve more accurate lane line detection.
可以理解的是,在本申请的实施例中,目标检测模型可以根据道路前方实时图像信息进行车道线检测处理,获得的车道线信息即为检测到的车道线;示例性的,图5为本申请实施例提出的车道线信息的示意图,如图5所示,在道路前方实时图像信息中,目标检测模型可以检测到前方的车道线并进行标注。It can be understood that in the embodiment of the present application, the target detection model can perform lane line detection processing based on the real-time image information in front of the road, and the lane line information obtained is the detected lane line; for example, Figure 5 is this The schematic diagram of the lane line information proposed in the application embodiment is shown in Figure 5. In the real-time image information ahead of the road, the target detection model can detect the lane line ahead and mark it.
需要说明的是,在本申请的实施例中,利用目标检测模型对道路前方实时图像信息进行车道线检测时,不仅可以检测出目标车辆本身所在的当前车道的车道线,如果当前车道左右两侧还存在同向车道,则还可以检测出同向车道的车道线;即车道线信息中可以包括目标车辆当前所处车道的车道线,以及若当前所处车道左右两侧存在同向车道时,还包括与当前所处车道同向的车道线。It should be noted that in the embodiments of the present application, when using the target detection model to detect lane lines on real-time image information ahead of the road, not only can the lane lines of the current lane where the target vehicle itself is located be detected, if the left and right sides of the current lane are If there are same-direction lanes, the lane lines of the same-direction lane can also be detected; that is, the lane line information can include the lane lines of the lane where the target vehicle is currently located, and if there are same-direction lanes on the left and right sides of the current lane, Also includes lane markings in the same direction as the current lane.
进一步地,终端在获得了车道线信息以后,可以直接根据车道线信息确定目标车辆当前所处的当前车道,以及是否存在同向车道。Further, after obtaining the lane line information, the terminal can directly determine the current lane in which the target vehicle is currently located and whether there is a lane in the same direction based on the lane line information.
步骤104、若根据预测轨迹信息和车道线信息确定存在偏离行为,则进行预警处理。Step 104: If it is determined that there is deviation behavior based on the predicted trajectory information and lane line information, perform early warning processing.
在本申请的实施例中,终端在基于小波分析方法和实时转角信息进行行车轨迹预测处理,获得预测轨迹信息,以及基于目标检测模型和道路前方实时图像信息进行车道线检测处理,获得车道线信息之后,若根据预测轨迹信息和车道线信息确定存在偏离行为,则进行预警处理。In the embodiment of the present application, the terminal performs driving trajectory prediction processing based on the wavelet analysis method and real-time corner information to obtain predicted trajectory information, and performs lane line detection processing based on the target detection model and real-time image information in front of the road to obtain lane line information. Afterwards, if it is determined that there is deviation based on the predicted trajectory information and lane line information, early warning processing will be performed.
需要说明的是,在本申请的一些实施例中,终端可以先计算预测轨迹信息和车道线信息之间的距离信息;若距离信息小于预设阈值,则根据预测轨迹信息确定预测行驶方向,根据车道线信息确定目标车辆的当前车道;若根据车道线信息判定当前车道在预测行驶方向不存在同向车道,则确定存在偏离行为。It should be noted that in some embodiments of the present application, the terminal can first calculate the distance information between the predicted trajectory information and the lane line information; if the distance information is less than the preset threshold, the predicted driving direction is determined based on the predicted trajectory information. The lane line information determines the current lane of the target vehicle; if it is determined based on the lane line information that the current lane does not have a lane in the same direction in the predicted driving direction, it is determined that there is a deviation behavior.
进一步地,在本申请的实施例中,若距离信息小于预设阈值,则根据预测轨迹信息确定预测行驶方向,根据车道线信息确定目标车辆的当前车道;进而,若当前车道在预测行驶方向存在同向车道,则获取第一历史时间区间对应的方向盘的第一历史转角信息,和第一历史时间区间对应的第一历史车道线信息;根据第一历史转角信息和第一历史车道线信息确定差值曲线,并根据差值曲线确定转折点信息;其中,转折点信息表征行车角度偏离车道线的起始信息;基于转折点信息和预测轨迹信息确定第一向量、第二向量以及第三向量;若第一向量和第二向量的向量积大于或者等于第二向量和第三向量的向量积,则确定存在偏离行为;而若第一向量和第二向量的向量积小于第二向量和第三向量的向量积,则获取第二历史时间区间对应的方向盘的第二历史转角信息,和第二历史时间区间对应的第二历史车道线信息;基于预设时间间隔计算第二历史转角信息和第二历史车道线信息之间的至少一个差值积分信息;根据至少一个差值积分信息确定第二历史时间区间对应的差值积分变化趋势;若差值积分变化趋势为增大的趋势,则确定不存在偏离行为。Further, in the embodiment of the present application, if the distance information is less than the preset threshold, the predicted driving direction is determined based on the predicted trajectory information, and the current lane of the target vehicle is determined based on the lane line information; further, if the current lane exists in the predicted driving direction If the lane is in the same direction, the first historical corner information of the steering wheel corresponding to the first historical time interval and the first historical lane line information corresponding to the first historical time interval are obtained; determined based on the first historical corner information and the first historical lane line information. difference curve, and determine the turning point information based on the difference curve; where the turning point information represents the starting information of the driving angle deviating from the lane line; the first vector, the second vector and the third vector are determined based on the turning point information and the predicted trajectory information; if If the vector product of a first vector and a second vector is greater than or equal to the vector product of a second vector and a third vector, it is determined that there is a deviation; and if the vector product of the first vector and the second vector is less than the vector product of the second vector and the third vector vector product, the second historical turning angle information of the steering wheel corresponding to the second historical time interval and the second historical lane line information corresponding to the second historical time interval are obtained; the second historical turning angle information and the second historical turning angle information are calculated based on the preset time interval. At least one difference integral information between lane line information; determine the difference integral change trend corresponding to the second historical time interval based on at least one difference integral information; if the difference integral change trend is an increasing trend, it is determined that it does not exist Deviating behavior.
需要说明的是,在本申请的实施例中,偏离行为是指目标车辆发生无意识偏离,而不是主动偏离;也就是说,目标车辆可以主动偏离,例如主动变道,在这种主动偏离的情况下,不进行预警处理,只有在目标车辆发生无意识偏离时才会进行预警处理。It should be noted that in the embodiment of this application, the deviation behavior refers to the target vehicle's unconscious deviation, rather than the active deviation; that is to say, the target vehicle can actively deviate, such as actively changing lanes. In the case of such active deviation, Under this condition, no pre-warning processing is performed, and pre-warning processing will only be performed when the target vehicle deviates unintentionally.
可以理解的是,在本申请的实施例中,若根据预测轨迹信息和车道线信息确定不存在偏离行为,则不进行预警处理。It can be understood that in the embodiment of the present application, if it is determined that there is no deviation behavior based on the predicted trajectory information and lane line information, no early warning processing will be performed.
进一步地,在本申请的实施例中,可以采用声音预警,预警信息显示等方式进行预警处理。Further, in the embodiment of the present application, early warning processing can be performed by means of sound warning, warning information display, etc.
进一步地,在本申请的实施例中,终端基于目标检测模型和道路前方实时图像信息进行车道线检测处理,获得车道线信息之前,即步骤103之前,还可以包括以下步骤:Further, in the embodiment of the present application, the terminal performs lane line detection processing based on the target detection model and the real-time image information ahead of the road. Before obtaining the lane line information, that is, before step 103, the following steps may also be included:
步骤105、获取训练数据集;其中,训练数据集中包括车道线标注点信息。Step 105: Obtain a training data set; the training data set includes lane marking point information.
在本申请的实施例中,终端基于目标检测模型和道路前方实时图像信息进行车道线检测处理,获得车道线信息之前,可以先获取训练数据集;其中,训练数据集中包括车道线标注点信息。In the embodiment of the present application, the terminal performs lane line detection processing based on the target detection model and real-time image information ahead of the road. Before obtaining the lane line information, a training data set may be obtained first; the training data set includes lane line mark point information.
需要说明的是,在本申请的实施例中,车道线标注点信息即为基于真实的车道线进行标注,获得的标注点的相关数据。It should be noted that in the embodiment of the present application, the lane marking point information is the relevant data of the marking points obtained by marking based on the real lane lines.
步骤106、利用初始检测模型对训练数据集进行目标检测处理,获得车道线标注点信息对应的车道线标注点检测结果。Step 106: Use the initial detection model to perform target detection processing on the training data set, and obtain lane marking point detection results corresponding to the lane marking point information.
在本申请的实施例中,终端在获取训练数据集之后,可以利用初始检测模型对训练数据集进行目标检测处理,获得车道线标注点信息对应的车道线标注点检测结果。In the embodiment of the present application, after acquiring the training data set, the terminal can use the initial detection model to perform target detection processing on the training data set, and obtain the lane marking point detection results corresponding to the lane marking point information.
可以理解的是,在本申请的实施例中,由于训练数据集中包含车道线标注点信息,初始检测模型可以对这些车道线标注点信息进行目标检测处理,从而获得关于这些车道线标注点信息的车道线标注点检测结果;车道线标注点检测结果与车道线标注点信息之间存在误差,从而基于本申请提出的预设误差计算模型计算这些误差,来实现对初始检测模型的更新和优化。It can be understood that in the embodiment of the present application, since the training data set contains lane line marking point information, the initial detection model can perform target detection processing on these lane line marking point information, thereby obtaining information about these lane line marking point information. Lane marking point detection results; there are errors between the lane marking point detection results and the lane marking point information, so these errors are calculated based on the preset error calculation model proposed in this application to update and optimize the initial detection model.
需要说明的是,在本申请的实施例中,初始检测模型可以为基于transformer的深度学习网络;其结构中可以包括卷积层、编码器(Encoder)、解码器(Decoder)、参数前馈层等。It should be noted that in the embodiment of the present application, the initial detection model may be a transformer-based deep learning network; its structure may include a convolutional layer, an encoder (Encoder), a decoder (Decoder), and a parameter feedforward layer. wait.
步骤107、计算车道线标注点检测结果和车道线标注点信息之间的误差信息,并根据误差信息对初始检测模型进行更新,获得目标检测模型。Step 107: Calculate the error information between the lane marking point detection result and the lane marking point information, and update the initial detection model based on the error information to obtain the target detection model.
在本申请的实施例中,终端在利用初始检测模型对训练数据集进行目标检测处理,获得车道线标注点信息对应的车道线标注点检测结果之后,可以计算车道线标注点检测结果和车道线标注点信息之间的误差信息,并根据误差信息对初始检测模型进行更新,获得目标检测模型。In the embodiment of the present application, after the terminal uses the initial detection model to perform target detection processing on the training data set and obtains the lane marking point detection results corresponding to the lane marking point information, the terminal can calculate the lane marking point detection results and the lane markings. Mark the error information between point information, and update the initial detection model based on the error information to obtain the target detection model.
需要说明的是,在本申请的实施例中,可以利用预设误差计算模型计算车道线标注点信息(标注点坐标)与车道线标注点检测结果(检测的点坐标)之间的误差,其中,预设误差计算模型可以表示为以下公式:It should be noted that in the embodiment of the present application, a preset error calculation model can be used to calculate the error between the lane marking point information (marking point coordinates) and the lane marking point detection result (detected point coordinates), where , the preset error calculation model can be expressed as the following formula:
其中,cost表示误差信息;pl,x表示车道线标注点检测结果中的x轴坐标,pgt,x表示车道线标注点信息中的x轴坐标;pl,y表示车道线标注点检测结果中的y轴坐标,pgt,y表示车道线标注点信息中的y轴坐标。Among them, cost represents the error information; p l,x represents the x-axis coordinate in the lane mark point detection result, p gt,x represents the x-axis coordinate in the lane mark point information; p l,y represents the lane mark point detection The y-axis coordinate in the result, p gt,y, represents the y-axis coordinate in the lane mark point information.
由此,本申请提出的预设误差计算模型是以车道线上的点误差序列作为误差计算的分量,属于一种离散化的误差求取方式,这样就可以避免现有的误差计算方法在拟合和转换的过程中造成的误差累积,也避免了图像畸变或投影带来的误差的影响,能够提升训练效果,提高目标检测模型检测的精度。Therefore, the preset error calculation model proposed in this application uses the point error sequence on the lane line as a component of error calculation, which is a discretized error calculation method. This can avoid the existing error calculation method in the simulation. The accumulation of errors caused during the process of combination and conversion also avoids the impact of errors caused by image distortion or projection, which can improve the training effect and improve the detection accuracy of the target detection model.
图6为本申请实施例提出的轨迹偏离预警方法的实现流程示意图二,如图6所示,终端基于小波分析方法和实时转角信息进行行车轨迹预测处理,获得预测轨迹信息的方法,即步骤102提出的方法可以包括以下步骤:Figure 6 is a schematic diagram 2 of the implementation process of the trajectory deviation early warning method proposed by the embodiment of the present application. As shown in Figure 6, the terminal performs driving trajectory prediction processing based on the wavelet analysis method and real-time corner information, and obtains the method of predicting trajectory information, that is, step 102 The proposed method can include the following steps:
步骤102a、基于实时转角信息确定信号序列。Step 102a: Determine a signal sequence based on real-time corner information.
在本申请的实施例中,终端基于小波分析方法和实时转角信息进行行车轨迹预测处理,获得预测轨迹信息;在本申请的一些实施例中,终端可以先基于实时转角信息确定信号序列。In the embodiments of the present application, the terminal performs driving trajectory prediction processing based on the wavelet analysis method and real-time corner information to obtain the predicted trajectory information; in some embodiments of the present application, the terminal may first determine the signal sequence based on the real-time corner information.
示例性的,在本申请的实施例中,本申请可以采集一段时间内的实时转角信息,将这一段时间内的实时转角信息整理成一个一维的随时间变化的信号序列,该信号序列可以表示为:A=f(t);其中,t=t0,t1,t2,...tk。For example, in the embodiment of the present application, the present application can collect real-time corner information within a period of time, and organize the real-time corner information within this period of time into a one-dimensional signal sequence that changes with time, and the signal sequence can Expressed as: A=f(t); where, t=t 0 , t 1 , t 2 ,...t k .
也就是说,终端可以获取并保存一段时间内的实时转角信息,从而在将这一段时间内的实时转角信息转化成信号序列以后,行车轨迹预测即转换为一种信号的趋势预测的问题。That is to say, the terminal can obtain and save the real-time corner information within a period of time, so that after converting the real-time corner information within this period of time into a signal sequence, the driving trajectory prediction is converted into a signal trend prediction problem.
步骤102b、基于小波分析方法对信号序列进行小波分解处理,获得信号组合。Step 102b: Perform wavelet decomposition processing on the signal sequence based on the wavelet analysis method to obtain a signal combination.
在本申请的实施例中,终端在基于实时转角信息确定信号序列之后,可以基于小波分析方法对信号序列进行小波分解处理,获得信号组合。In the embodiment of the present application, after the terminal determines the signal sequence based on real-time corner information, the terminal can perform wavelet decomposition processing on the signal sequence based on the wavelet analysis method to obtain a signal combination.
需要说明的是,在本申请的实施例中,由于目标车辆中传感器的采集误差、传输误差以及车辆驾驶员操作方向盘时偶尔出现的转向波动等情况,终端获取的实时转角信息是具有一些噪声的,因此,需要在信号序列中去除这些噪声;通过实验发现,信号序列中真实的信息集中在较低频的分量上,而采集、传输、操作误差这些因素对信号造成的扰动,也就是噪声,则表现为高频、偶发性的特性;因此,本申请采取的方式是对信号序列进行小波分解处理,可以将信号序列分解为近似部分和细节部分,由此获得信号组合;其中,近似部分为真实信号的体现,细节部分为噪声的体现。It should be noted that in the embodiment of the present application, due to the collection error, transmission error of the sensor in the target vehicle, and the occasional steering fluctuation when the vehicle driver operates the steering wheel, the real-time corner information obtained by the terminal has some noise. , therefore, it is necessary to remove these noises in the signal sequence; through experiments, it is found that the real information in the signal sequence is concentrated in the lower frequency components, and the disturbance caused by factors such as acquisition, transmission, and operation errors to the signal is noise. It shows high-frequency and sporadic characteristics; therefore, the method adopted by this application is to perform wavelet decomposition processing on the signal sequence, which can decompose the signal sequence into an approximate part and a detailed part, thereby obtaining a signal combination; where the approximate part is The real signal is reflected, and the details are the reflection of noise.
示例性的,在本申请的实施例中,构建一个类三角函数小波作为小波分解处理的小波基,从而通过两层分解的方式对信号序列进行小波分解处理;小波基可以表示为以下公式:Illustratively, in the embodiment of the present application, a quasi-trigonometric function wavelet is constructed as the wavelet base for wavelet decomposition processing, so that the signal sequence is decomposed by two-layer decomposition; the wavelet base can be expressed as the following formula:
其中,C为一种常量参数,e为自然常数,t表示时间,cos(t)表示余弦函数。Among them, C is a constant parameter, e is a natural constant, t represents time, and cos(t) represents the cosine function.
图7为本申请实施例提出的小波分解处理的实现示意图一,如图7所示为在进行小波分解处理之前的信号序列;进而,图8为本申请实施例提出的小波分解处理的实现示意图二,如图8所示为通过上述小波基对图7中的信号序列进行二层小波分解处理,获得的信号组合中的近似部分(Approximation A1);图9为本申请实施例提出的小波分解处理的实现示意图三,如图9所示为通过上述小波基对图3中的信号序列进行二层小波分解处理,获得的信号组合中的细节部分(Detail D1)。Figure 7 is a schematic diagram 1 of the implementation of the wavelet decomposition process proposed by the embodiment of the present application. Figure 7 shows the signal sequence before the wavelet decomposition process is performed; furthermore, Figure 8 is a schematic diagram of the implementation of the wavelet decomposition process proposed by the embodiment of the present application. Second, as shown in Figure 8, the approximate part of the signal combination (Approximation A1) obtained by performing two-layer wavelet decomposition processing on the signal sequence in Figure 7 through the above wavelet basis; Figure 9 shows the wavelet decomposition proposed by the embodiment of the present application. Schematic diagram 3 of the processing implementation. Figure 9 shows the details of the signal combination (Detail D1) obtained by performing two-layer wavelet decomposition processing on the signal sequence in Figure 3 using the above-mentioned wavelet basis.
进一步地,经过小波分解处理以后,信号序列被转化为一组多分辨率信号的线性组合,相当于不同尺度与时间的小波函数拟合,由此获得信号组合;信号组合可以表示为以下公式:Further, after wavelet decomposition processing, the signal sequence is converted into a linear combination of a set of multi-resolution signals, which is equivalent to wavelet function fitting at different scales and times, thus obtaining the signal combination; the signal combination can be expressed as the following formula:
f(t)=∑k∑jαj,kψj,k(t) (6)f(t)=∑ k ∑ j α j,k ψ j,k (t) (6)
其中,αj,k为调和参数,ψj,k(t)为小波函数族,j和k为小波系数。Among them, α j,k are harmonic parameters, ψ j,k (t) is the wavelet function family, and j and k are wavelet coefficients.
步骤102c、按照预设噪声滤除区间对信号组合进行噪声滤除处理,获得目标信号。Step 102c: Perform noise filtering processing on the signal combination according to the preset noise filtering interval to obtain the target signal.
在本申请的实施例中,终端在对信号序列进行小波分解处理,获得信号组合之后,可以按照预设噪声滤除区间对信号组合进行噪声滤除处理,获得目标信号。In the embodiment of the present application, after the terminal performs wavelet decomposition processing on the signal sequence and obtains the signal combination, it can perform noise filtering processing on the signal combination according to the preset noise filtering interval to obtain the target signal.
需要说明的是,在本申请的实施例中,由于在小波域,真实的信息集中在低频的分量上,其小波系数一般较大,而噪声一般集中在较高频的分量上,其小波系数一般比较小,因此,本申请通过收集一些典型的噪声分量,对其小波系数进行统计,将其小波系数均值记为σ,并根据小波系数均值获得预设噪声滤除区间。It should be noted that in the embodiments of the present application, since in the wavelet domain, real information is concentrated on low-frequency components, their wavelet coefficients are generally larger, while noise is generally concentrated on higher-frequency components, and their wavelet coefficients are Generally, it is relatively small. Therefore, this application collects some typical noise components, performs statistics on their wavelet coefficients, records their average wavelet coefficients as σ, and obtains the preset noise filtering interval based on the average wavelet coefficients.
示例性的,在本申请的实施例中,预设噪声滤除区间为[-3×σ,3×σ];从而,将信号组合中,小波系数落于此预设噪声滤除区间的信号滤除掉,来完成噪声滤除处理,获得的目标信号可以表示为以下公式:Illustratively, in the embodiment of the present application, the preset noise filtering interval is [-3×σ, 3×σ]; thus, in the signal combination, the wavelet coefficient falls within the signal of this preset noise filtering interval. Filter out to complete the noise filtering process. The obtained target signal can be expressed as the following formula:
f′(t)=∑k∑jαj,kψj,k(t) (7)f′(t)=∑ k ∑ j α j,k ψ j,k (t) (7)
其中,α>3σ或α<3σ。Among them, α>3σ or α<3σ.
示例性的,在本申请的实施例中,图10为本申请实施例提出的目标信号的示意图,如图10所示为经过噪声滤除处理后获得的目标信号。Exemplarily, in the embodiment of the present application, Figure 10 is a schematic diagram of the target signal proposed in the embodiment of the present application. Figure 10 shows the target signal obtained after noise filtering processing.
步骤102d、基于目标信号确定预测轨迹信息。Step 102d: Determine predicted trajectory information based on the target signal.
在本申请的实施例中,终端在按照预设噪声滤除区间对信号组合进行噪声滤除处理,获得目标信号之后,可以基于目标信号确定预测轨迹信息。In the embodiment of the present application, after the terminal performs noise filtering processing on the signal combination according to the preset noise filtering interval and obtains the target signal, the terminal can determine the predicted trajectory information based on the target signal.
在本申请的一些实施例中,终端可以基于时间信息对目标信号进行处理,获得时间信息对应的预测信号;然后对预测信号进行重构处理,获得预测轨迹信息。In some embodiments of the present application, the terminal can process the target signal based on time information to obtain a prediction signal corresponding to the time information; and then reconstruct the prediction signal to obtain predicted trajectory information.
图11为本申请实施例提出的轨迹偏离预警方法的实现流程示意图三,如图11所示,终端基于目标信号确定预测轨迹信息的方法,即步骤102d提出的方法可以包括以下步骤:Figure 11 is a schematic diagram 3 of the implementation process of the trajectory deviation early warning method proposed by the embodiment of the present application. As shown in Figure 11, the method for the terminal to determine the predicted trajectory information based on the target signal, that is, the method proposed in step 102d may include the following steps:
步骤102d1、基于时间信息对目标信号进行处理,获得时间信息对应的预测信号。Step 102d1: Process the target signal based on the time information to obtain a prediction signal corresponding to the time information.
在本申请的实施例中,终端基于目标信号确定预测轨迹信息;在本申请的一些实施例中,终端可以先基于时间信息对目标信号进行处理,获得时间信息对应的预测信号。In the embodiments of this application, the terminal determines the predicted trajectory information based on the target signal; in some embodiments of this application, the terminal may first process the target signal based on the time information to obtain the prediction signal corresponding to the time information.
需要说明的是,在本申请的实施例中,时间信息是指未来一段时间,要获得的预测信号即为未来一段时间对应的信号。It should be noted that in the embodiment of the present application, the time information refers to a period of time in the future, and the prediction signal to be obtained is a signal corresponding to a period of time in the future.
示例性的,在本申请的实施例中,基于时间信息t+△t,对目标信号进行处理,获得t+△t对应的预测信号可以表示为以下公式:Exemplarily, in the embodiment of the present application, the target signal is processed based on the time information t+Δt, and the predicted signal corresponding to t+Δt is obtained, which can be expressed as the following formula:
f′(t+△t)=∑k∑jαj,kψj,k(t+△t) (8)f′(t+△t)=∑ k ∑ j α j,k ψ j,k (t+△t) (8)
也就是说,将时间信息t+△t代入目标信号,就可以得到时间信息对应的预测信号。In other words, by substituting the time information t+Δt into the target signal, the predicted signal corresponding to the time information can be obtained.
步骤102d2、对预测信号进行重构处理,获得预测轨迹信息。Step 102d2: Perform reconstruction processing on the predicted signal to obtain predicted trajectory information.
在本申请的实施例中,终端在基于时间信息对目标信号进行处理,获得时间信息对应的预测信号之后,可以对预测信号进行重构处理,获得预测轨迹信息。In the embodiment of the present application, after the terminal processes the target signal based on the time information and obtains the prediction signal corresponding to the time information, the terminal can reconstruct the prediction signal to obtain the predicted trajectory information.
需要说明的是,在本申请的实施例中,重构处理是指对预测信号进行分解的逆变换。It should be noted that in the embodiment of the present application, the reconstruction process refers to the inverse transformation of decomposing the prediction signal.
进一步地,图12为本申请实施例提出的预测轨迹信息的示意图三,如图12所示为经过上述一系列小波分析方法的处理以后,获得的预测轨迹信息的示意图。Further, Figure 12 is a schematic diagram three of the predicted trajectory information proposed by the embodiment of the present application. Figure 12 shows a schematic diagram of the predicted trajectory information obtained after processing by the above series of wavelet analysis methods.
进一步地,在本申请的实施例中,若终端根据预测轨迹信息和车道线信息确定存在偏离行为,则进行预警处理之前,即步骤104之前,还可以包括以下步骤:Further, in the embodiment of the present application, if the terminal determines that there is a deviation behavior based on the predicted trajectory information and lane line information, the following steps may be included before performing the early warning process, that is, before step 104:
步骤108、计算预测轨迹信息和车道线信息之间的距离信息。Step 108: Calculate the distance information between the predicted trajectory information and the lane line information.
在本申请的实施例中,若终端根据预测轨迹信息和车道线信息确定存在偏离行为,则进行预警处理之前,计算预测轨迹信息和车道线信息之间的距离信息。In the embodiment of the present application, if the terminal determines that there is a deviation behavior based on the predicted trajectory information and the lane line information, the distance information between the predicted trajectory information and the lane line information is calculated before performing the early warning process.
需要说明的是,在本申请的实施例中,距离信息的计算可以采取计算图像上的距离之后再投影转换的方式。It should be noted that, in the embodiment of the present application, distance information may be calculated by calculating the distance on the image and then performing projection conversion.
步骤109、若距离信息小于预设阈值,则根据预测轨迹信息确定预测行驶方向,根据车道线信息确定目标车辆的当前车道。Step 109: If the distance information is less than the preset threshold, determine the predicted driving direction based on the predicted trajectory information, and determine the current lane of the target vehicle based on the lane line information.
在本申请的实施例中,终端在计算预测轨迹信息和车道线信息之间的距离信息之后,若距离信息小于预设阈值,则根据预测轨迹信息确定预测行驶方向,根据车道线信息确定目标车辆的当前车道。In the embodiment of the present application, after the terminal calculates the distance information between the predicted trajectory information and the lane line information, if the distance information is less than the preset threshold, the terminal determines the predicted driving direction based on the predicted trajectory information, and determines the target vehicle based on the lane line information. of the current lane.
需要说明的是,在本申请的实施例中,如果仅仅把预测轨迹信息与车道线信息之间的距离信息作为偏离的判断依据,那么车辆主动变道的时候也会被判断为偏离,不断地发出预警,这显然是不合适的,因此,本申请采取一系列行为分析方式来对目标车辆主动变道的情况和偏离的情况区分开,当偏离的时候发出偏离预警,当主动变道的时候可以发出变道提示。It should be noted that in the embodiment of the present application, if only the distance information between the predicted trajectory information and the lane line information is used as the basis for judging deviation, then when the vehicle actively changes lanes, it will also be judged as deviation, and continuously It is obviously inappropriate to issue an early warning. Therefore, this application adopts a series of behavioral analysis methods to distinguish the situation where the target vehicle actively changes lanes and the situation where it deviates. When the target vehicle deviates, a deviation warning is issued. When it actively changes lanes, Can issue lane change prompts.
因此,本申请在确定距离信息小于预设阈值时,先根据预测轨迹信息确定预测行驶方向,以及根据车道线信息确定目标车辆的当前车道;由此来判断目标车辆在按照预测形式方向行驶时,即将压线的那一侧是否存在同向车道。Therefore, when this application determines that the distance information is less than the preset threshold, it first determines the predicted driving direction based on the predicted trajectory information, and determines the current lane of the target vehicle based on the lane line information; thus, it is judged that the target vehicle is driving in the predicted direction. Whether there is a lane in the same direction on the side where the line is about to be pressed.
示例性的,在本申请的实施例中,在目标车辆行驶的过程中,某一时刻获得的距离信息为19cm,而预设阈值为20cm,则此时需要根据预测轨迹信息确定预测行驶方向,根据车道线信息确定目标车辆的当前车道。For example, in the embodiment of the present application, while the target vehicle is driving, the distance information obtained at a certain moment is 19cm, and the preset threshold is 20cm. At this time, the predicted driving direction needs to be determined based on the predicted trajectory information, Determine the current lane of the target vehicle based on the lane line information.
可以理解的是,在本申请的实施例中,终端可以直接根据车道线信息确定目标车辆的当前车道。It can be understood that, in the embodiment of the present application, the terminal can directly determine the current lane of the target vehicle based on the lane line information.
步骤110、若根据车道线信息判定当前车道在预测行驶方向不存在同向车道,则确定存在偏离行为。Step 110: If it is determined based on the lane line information that the current lane does not have a lane in the same direction in the predicted driving direction, it is determined that there is a deviation behavior.
在本申请的实施例中,终端在计算预测轨迹信息和车道线信息之间的距离信息之后,若根据车道线信息判定当前车道在预测行驶方向不存在同向车道,则确定存在偏离行为。In the embodiment of the present application, after calculating the distance information between the predicted trajectory information and the lane line information, if the terminal determines based on the lane line information that there is no same direction lane in the current lane in the predicted driving direction, it determines that there is a deviation behavior.
可以理解的是,在本申请的实施例中,若根据车道线信息判定当前车道在预测行驶方向不存在同向车道,则目标车辆必然不是主动变道,判断存在偏离行为。It can be understood that in the embodiment of the present application, if it is determined based on the lane line information that the current lane does not have a lane in the same direction in the predicted driving direction, the target vehicle must not actively change lanes, and it is determined that there is a deviation behavior.
进一步地,在本申请的实施例中,若距离信息小于预设阈值,则根据预测轨迹信息确定预测行驶方向,根据车道线信息确定目标车辆的当前车道之后,即步骤109之后,可以包括以下步骤:Further, in the embodiment of the present application, if the distance information is less than the preset threshold, the predicted driving direction is determined based on the predicted trajectory information. After determining the current lane of the target vehicle based on the lane line information, that is, after step 109, the following steps may be included: :
步骤110、若当前车道在预测行驶方向存在同向车道,则获取第一历史时间区间对应的方向盘的第一历史转角信息,和第一历史时间区间对应的第一历史车道线信息。Step 110: If the current lane has a same-direction lane in the predicted driving direction, obtain the first historical turning angle information of the steering wheel corresponding to the first historical time interval and the first historical lane line information corresponding to the first historical time interval.
在本申请的实施例中,若距离信息小于预设阈值,则终端根据预测轨迹信息确定预测行驶方向,根据车道线信息确定目标车辆的当前车道之后,若当前车道在预测行驶方向存在同向车道,则获取第一历史时间区间对应的方向盘的第一历史转角信息,和第一历史时间区间对应的第一历史车道线信息。In the embodiment of the present application, if the distance information is less than the preset threshold, the terminal determines the predicted driving direction based on the predicted trajectory information. After determining the current lane of the target vehicle based on the lane line information, if the current lane has a same-direction lane in the predicted driving direction , then the first historical turning angle information of the steering wheel corresponding to the first historical time interval and the first historical lane line information corresponding to the first historical time interval are obtained.
可以理解的是,在本申请的实施例中,若当前车道在预测行驶方向存在同向车道,则有变道可能,需要结合其他信息进一步判断是否存在偏离。It can be understood that in the embodiment of the present application, if the current lane has a lane in the same direction in the predicted driving direction, lane change is possible, and other information needs to be combined to further determine whether there is a deviation.
需要说明的是,在本申请的实施例中,第一历史时间区间是指目标车辆在当前时刻之前的一段时间,第一历史转角信息即为第一历史时间区间对应的方向盘的转角信息,第一历史车道线信息即为第一历史时间区间对应的车道线信息。It should be noted that in the embodiment of the present application, the first historical time interval refers to a period of time before the current time of the target vehicle, and the first historical turning angle information is the steering wheel angle information corresponding to the first historical time interval. A piece of historical lane marking information is the lane marking information corresponding to the first historical time interval.
其中,第一历史车道线信息是基于第一历史时间区间对应的道路前方实时图像信息获得的。The first historical lane line information is obtained based on the real-time image information of the road ahead corresponding to the first historical time interval.
步骤111、根据第一历史转角信息和第一历史车道线信息确定差值曲线,并根据差值曲线确定转折点信息;其中,转折点信息表征行车角度偏离车道线的起始信息。Step 111: Determine the difference curve according to the first historical turning angle information and the first historical lane line information, and determine the turning point information according to the difference curve; wherein the turning point information represents the starting information of the driving angle deviating from the lane line.
在本申请的实施例中,若当前车道在预测行驶方向存在同向车道,则终端获取第一历史时间区间对应的方向盘的第一历史转角信息,和第一历史时间区间对应的第一历史车道线信息之后,可以根据第一历史转角信息和第一历史车道线信息确定差值曲线,并根据差值曲线确定转折点信息;其中,转折点信息表征行车角度偏离车道线的起始信息。In the embodiment of the present application, if the current lane has a lane in the same direction in the predicted driving direction, the terminal obtains the first historical turning angle information of the steering wheel corresponding to the first historical time interval, and the first historical lane corresponding to the first historical time interval. After the line information is obtained, the difference curve can be determined based on the first historical corner information and the first historical lane line information, and the turning point information can be determined based on the difference curve; wherein the turning point information represents the starting information of the driving angle deviating from the lane line.
需要说明的是,在本申请的实施例中,转折点信息表征行车角度偏离车道线的起始信息。It should be noted that, in the embodiment of the present application, the turning point information represents the starting information of the driving angle deviating from the lane line.
可以理解的是,当目标车辆正常行驶时,方向盘的转角信息和车道线的角度应该是“一致”的,而从目标车辆开始偏离的时刻起,转角信息和车道线的角度则表现为“不一致”;本申请根据第一历史转角信息和第一历史车道线信息确定差值曲线,进而对该差值曲线做极值分析,能够在差值曲线中得到这个从“一致”到“不一致”的转折点,即转折点信息。It can be understood that when the target vehicle is driving normally, the steering wheel angle information and the angle of the lane line should be "consistent", but from the moment the target vehicle starts to deviate, the steering angle information and the angle of the lane line are "inconsistent" "; This application determines the difference curve based on the first historical corner information and the first historical lane line information, and then performs extreme value analysis on the difference curve, and can obtain this difference from "consistent" to "inconsistent" in the difference curve Turning point, that is, turning point information.
步骤112、基于转折点信息判断是否存在偏离行为。Step 112: Determine whether there is deviation based on the turning point information.
在本申请的实施例中,终端根据第一历史转角信息和第一历史车道线信息确定差值曲线,并根据差值曲线确定转折点信息之后,可以基于转折点信息判断是否存在偏离行为。In the embodiment of the present application, the terminal determines the difference curve based on the first historical corner information and the first historical lane line information, and after determining the turning point information based on the difference curve, it can determine whether there is a deviation behavior based on the turning point information.
在本申请的一些实施例中,终端可以基于转折点信息和预测轨迹信息确定第一向量、第二向量以及第三向量;进而若第一向量和第二向量的向量积大于或者等于第二向量和第三向量的向量积,则确定存在偏离行为。In some embodiments of the present application, the terminal can determine the first vector, the second vector and the third vector based on the turning point information and the predicted trajectory information; further, if the vector product of the first vector and the second vector is greater than or equal to the sum of the second vector The vector product of the third vector determines the existence of deviation behavior.
需要说明的是,在本申请的实施例中,转折点信息中包括转折点的时间信息和转折点的位置信息;可以理解的是,转折点的时间信息即为转折点发生的时刻,转折点的位置信息即为转折点发生的位置。It should be noted that in the embodiment of the present application, the turning point information includes the time information of the turning point and the position information of the turning point; it can be understood that the time information of the turning point is the moment when the turning point occurs, and the position information of the turning point is the turning point. location of occurrence.
进一步地,在本申请的实施例中,终端基于转折点信息判断是否存在偏离行为的方法,即步骤112提出的方法可以包括以下步骤:Further, in the embodiment of the present application, the method for the terminal to determine whether there is a deviation behavior based on the turning point information, that is, the method proposed in step 112 may include the following steps:
步骤112a、基于转折点信息和预测轨迹信息确定第一向量、第二向量以及第三向量。Step 112a: Determine the first vector, the second vector and the third vector based on the turning point information and the predicted trajectory information.
在本申请的实施例中,终端基于转折点信息判断是否存在偏离行为;在本申请的一些实施例中,终端可以先基于转折点信息和预测轨迹信息确定第一向量、第二向量以及第三向量。In the embodiment of the present application, the terminal determines whether there is a deviation behavior based on the turning point information; in some embodiments of the present application, the terminal may first determine the first vector, the second vector and the third vector based on the turning point information and the predicted trajectory information.
需要说明的是,在本申请的实施例中,第一向量是以转折点的位置信息为起始点,以预测轨迹信息中,转折点的时间信息的下一时刻,所对应的位置信息为终点,构成的向量。It should be noted that in the embodiment of the present application, the first vector takes the position information of the turning point as the starting point and the position information corresponding to the next moment of the time information of the turning point in the predicted trajectory information as the end point, forming vector.
需要说明的是,在本申请的实施例中,过转折点的位置信息作与车道线平行的线,取此线上单位长度的向量构成第二向量。It should be noted that in the embodiment of the present application, the position information passing through the turning point is drawn as a line parallel to the lane line, and a vector of unit length on this line is taken to form the second vector.
需要说明的是,在本申请的实施例中,第三向量是以转折点的位置信息为起始点,以预测轨迹信息中,转折点的时间信息的上一时刻,所对应的位置信息为终点,构成的向量。It should be noted that in the embodiment of the present application, the third vector takes the position information of the turning point as the starting point and the position information corresponding to the last moment of the time information of the turning point in the predicted trajectory information as the end point. vector.
步骤112b、若第一向量和第二向量的向量积大于或者等于第二向量和第三向量的向量积,则确定存在偏离行为。Step 112b: If the vector product of the first vector and the second vector is greater than or equal to the vector product of the second vector and the third vector, it is determined that there is a deviation behavior.
在本申请的实施例中,终端在基于转折点信息和预测轨迹信息确定第一向量、第二向量以及第三向量之后,若第一向量和第二向量的向量积大于或者等于第二向量和第三向量的向量积,则确定存在偏离行为。In the embodiment of the present application, after the terminal determines the first vector, the second vector and the third vector based on the turning point information and the predicted trajectory information, if the vector product of the first vector and the second vector is greater than or equal to the second vector and the third vector, The vector product of three vectors indicates the existence of deviation behavior.
示例性的,在本申请的实施例中,第一向量表示为第二向量表示为/>第三向量表示为/>计算向量积:Illustratively, in the embodiment of this application, the first vector is expressed as The second vector is expressed as/> The third vector is expressed as/> Compute the vector product:
如果L1>L2或者L1=L2,则确定存在偏离行为,需要进行预警处理。If L1>L2 or L1=L2, it is determined that there is deviation behavior and early warning processing is required.
进一步地,在本申请的实施例中,终端基于转折点信息和预测轨迹信息确定第一向量、第二向量以及第三向量之后,即步骤112a之后,还可以包括以下步骤:Further, in the embodiment of the present application, after the terminal determines the first vector, the second vector and the third vector based on the turning point information and the predicted trajectory information, that is, after step 112a, the following steps may also be included:
步骤112c、若第一向量和第二向量的向量积小于第二向量和第三向量的向量积,则获取第二历史时间区间对应的方向盘的第二历史转角信息,和第二历史时间区间对应的第二历史车道线信息。Step 112c. If the vector product of the first vector and the second vector is less than the vector product of the second vector and the third vector, obtain the second historical angle information of the steering wheel corresponding to the second historical time interval, corresponding to the second historical time interval. The second historical lane line information.
在本申请的实施例中,终端基于转折点信息和预测轨迹信息确定第一向量、第二向量以及第三向量之后,若第一向量和第二向量的向量积小于第二向量和第三向量的向量积,则获取第二历史时间区间对应的方向盘的第二历史转角信息,和第二历史时间区间对应的第二历史车道线信息。In the embodiment of the present application, after the terminal determines the first vector, the second vector and the third vector based on the turning point information and the predicted trajectory information, if the vector product of the first vector and the second vector is less than the vector product of the second vector and the third vector By vector product, the second historical turning angle information of the steering wheel corresponding to the second historical time interval and the second historical lane line information corresponding to the second historical time interval are obtained.
需要说明的是,在本申请的实施例中,若第一向量和第二向量的向量积小于第二向量和第三向量的向量积,则可以判断目标车辆很可能是由驾驶者操纵方向盘向偏离车道方向发生了转动;进一步获取第二历史时间区间对应的方向盘的第二历史转角信息,和第二历史时间区间对应的第二历史车道线信息,以确定是否是主动变道行为,如果不是主动变道行为,则进行预警处理。It should be noted that in the embodiment of the present application, if the vector product of the first vector and the second vector is less than the vector product of the second vector and the third vector, it can be determined that the target vehicle is likely to be steered by the driver steering the steering wheel. The steering wheel deviated from the lane and turned; further obtain the second historical turning angle information of the steering wheel corresponding to the second historical time interval, and the second historical lane line information corresponding to the second historical time interval to determine whether it is an active lane change behavior. If not, If the vehicle actively changes lanes, an early warning will be issued.
进一步地,在本申请的实施例中,第二历史时间区间是指转折点的时间信息至当前时刻的这段时间;第二历史转角信息即为第二历史时间区间对应的方向盘的转角信息,第二历史车道线信息即为第二历史时间区间对应的车道线信息。Further, in the embodiment of the present application, the second historical time interval refers to the period from the time information of the turning point to the current moment; the second historical corner information is the steering wheel angle information corresponding to the second historical time interval. The second historical lane marking information is the lane marking information corresponding to the second historical time interval.
可以理解的是,在本申请的实施例中,第二历史车道线信息是基于第二历史时间区间对应的道路前方实时图像信息获得的。It can be understood that, in the embodiment of the present application, the second historical lane line information is obtained based on the real-time image information of the road ahead corresponding to the second historical time interval.
步骤112d、基于预设时间间隔计算第二历史转角信息和第二历史车道线信息之间的至少一个差值积分信息。Step 112d: Calculate at least one difference integral information between the second historical corner information and the second historical lane line information based on the preset time interval.
在本申请的实施例中,若第一向量和第二向量的向量积小于第二向量和第三向量的向量积,则终端获取第二历史时间区间对应的方向盘的第二历史转角信息,和第二历史时间区间对应的第二历史车道线信息之后,可以基于预设时间间隔计算第二历史转角信息和第二历史车道线信息之间的至少一个差值积分信息。In the embodiment of the present application, if the vector product of the first vector and the second vector is less than the vector product of the second vector and the third vector, the terminal obtains the second historical angle information of the steering wheel corresponding to the second historical time interval, and After the second historical lane marking information corresponding to the second historical time interval, at least one difference integral information between the second historical corner information and the second historical lane marking information may be calculated based on the preset time interval.
需要说明的是,在本申请的实施例中,可以基于第二历史转角信息确定对应的行车轨迹信息,然后基于预设时间间隔计算第二历史转角信息对应的行车轨迹信息和第二历史车道线信息之间的至少一个差值积分信息。It should be noted that in the embodiment of the present application, the corresponding driving trajectory information can be determined based on the second historical corner information, and then the driving trajectory information and the second historical lane line corresponding to the second historical corner information can be calculated based on the preset time interval. At least one difference between the messages integrates the messages.
也就是说,每隔预设时间间隔计算第二历史转角信息对应的行车轨迹信息和第二历史车道线信息之间的差值积分,从而可以获得至少一个差值积分信息。That is to say, the difference integral between the driving trajectory information corresponding to the second historical corner information and the second historical lane line information is calculated every preset time interval, so that at least one difference integral information can be obtained.
示例性的,在本申请的实施例中,差值积分信息的计算方法可以表示为以下公式:For example, in the embodiment of the present application, the calculation method of the difference integral information can be expressed as the following formula:
其中,fcar(t)表示第二历史转角信息,flane(t)表示第二历史车道线信息。Among them, f car (t) represents the second historical corner information, and f lane (t) represents the second historical lane line information.
步骤112e、根据至少一个差值积分信息确定第二历史时间区间对应的差值积分变化趋势。Step 112e: Determine the difference integral change trend corresponding to the second historical time interval based on at least one difference integral information.
在本申请的实施例中,终端基于预设时间间隔计算第二历史转角信息和第二历史车道线信息之间的至少一个差值积分信息之后,可以根据至少一个差值积分信息确定第二历史时间区间对应的差值积分变化趋势。In an embodiment of the present application, after the terminal calculates at least one difference integral information between the second historical corner information and the second historical lane line information based on the preset time interval, the terminal can determine the second historical value based on the at least one difference integral information. The change trend of the difference integral corresponding to the time interval.
需要说明的是,在本申请的实施例中,差值积分变化趋势是指从第二历史时间区间中的转折点的时间信息至当前时刻,得到的至少一个差值积分信息呈现出的变化趋势。It should be noted that, in the embodiment of the present application, the difference integral change trend refers to the change trend presented by at least one difference integral information obtained from the time information of the turning point in the second historical time interval to the current time.
步骤112f、若差值积分变化趋势为增大的趋势,则确定不存在偏离行为。Step 112f: If the change trend of the difference integral is an increasing trend, it is determined that there is no deviation behavior.
在本申请的实施例中,终端根据至少一个差值积分信息确定第二历史时间区间对应的差值积分变化趋势之后,若差值积分变化趋势为增大的趋势,则确定不存在偏离行为。In the embodiment of the present application, after the terminal determines the difference integral change trend corresponding to the second historical time interval based on at least one difference integral information, if the difference integral change trend is an increasing trend, it is determined that there is no deviation behavior.
需要说明的是,在本申请的实施例中,若差值积分变化趋势为增大的趋势,则说明目标车辆是由驾驶者主动操纵方向盘产生的主动变道行为,并不是偏离行为,此时可以生成变道提示信息。It should be noted that in the embodiment of the present application, if the change trend of the difference integral is an increasing trend, it means that the target vehicle is an active lane change behavior caused by the driver actively operating the steering wheel, and is not a deviation behavior. At this time, Lane change prompt information can be generated.
需要说明的是,在本申请的实施例中,若差值积分变化趋势不为增大的趋势,例如减小或者不变,则确定存在偏离行为,需要进行预警处理。It should be noted that, in the embodiment of the present application, if the change trend of the difference integral is not an increasing trend, for example, decreases or remains unchanged, it is determined that there is a deviation behavior, and early warning processing needs to be performed.
综上所述,图13为本申请实施例提出的轨迹偏离预警方法的实现流程示意图四,如图13所示,判断预测轨迹信息和车道线信息之间的距离信息是否小于预设阈值(步骤201),如果是,则继续判断即将压线那一侧是否存在同向车道(步骤202),如果存在同向车道,则先确定转折点信息(步骤203),然后基于转折点信息进行向量积L1与L2的计算(步骤204),进而判断L1是否小于L2(步骤205);而如果不存在同向车道,则进行偏离预警(步骤206);接着,如果基于步骤205确定L1<L2,则计算至少一个差值积分信息(步骤207),然后判断至少一个差值积分信息的变化趋势是否为增大的趋势(步骤208),如果变化趋势为增大的趋势,则确定不存在偏离行为,便可以生成变道提示信息(步骤209),而如果变化趋势不为增大的趋势,则确定存在偏离行为,进行偏离预警(步骤206);而如果基于步骤201判断没有小于预设阈值,则确定不存在偏离(步骤210),无需进行偏离预警。To sum up, Figure 13 is a schematic diagram 4 of the implementation process of the trajectory deviation warning method proposed by the embodiment of the present application. As shown in Figure 13, it is judged whether the distance information between the predicted trajectory information and the lane line information is less than the preset threshold (step 201), if so, continue to determine whether there is a same-direction lane on the side about to cross the line (step 202). If there is a same-direction lane, first determine the turning point information (step 203), and then perform the vector product L1 and Calculate L2 (step 204), and then determine whether L1 is less than L2 (step 205); and if there is no same-direction lane, perform a departure warning (step 206); then, if it is determined based on step 205 that L1 < L2, calculate at least A difference integral information (step 207), and then determine whether the change trend of at least one difference integral information is an increasing trend (step 208). If the change trend is an increasing trend, it is determined that there is no deviation behavior, and then Generate lane change prompt information (step 209), and if the change trend is not an increasing trend, it is determined that there is a deviation behavior, and a deviation warning is performed (step 206); and if it is judged based on step 201 that it is not less than the preset threshold, then it is determined that it is not smaller than the preset threshold. There is a deviation (step 210), and no deviation warning is required.
由此可见,在本申请的轨迹偏离预警方法中,基于小波分析方法进行行车轨迹预测;对于传统的目标检测深度学习网络进行了误差模型上的改进,使得训练效果更好,更适用于车道线的检测;同时还能够根据预测轨迹信息和车道线信息区分是主动变道还是无意识偏离;本申请中的轨迹偏离预警方法能够应用于自动智能车路协同项目,搭载了此项技术的自动驾驶卡车在实地测试时对于各种形态、各种道路场景的车道线都能够很好地检测出来,预测的行车轨迹也与实际行车轨迹相符合,总体呈现出较高的精度。在无意识偏离或驾驶异常导致车辆有偏离车道的可能性时,均能够及时检测到危险并发出预警,有助于车辆的车道保持和驾驶安全保障;同时,在主动操纵方向盘进行变道时,可以正确地识别变道意图,不会触发偏离预警,而是显示变道提示,使得自动驾驶功能更显智能化,解决了以前一直存在的变道误预警问题,提升了自动智能车路协同项目搭载的远程驾驶控制台的工作效率,实现了智能化轨迹偏离预警。It can be seen that in the trajectory deviation early warning method of this application, the driving trajectory prediction is based on the wavelet analysis method; the traditional target detection deep learning network is improved on the error model, making the training effect better and more suitable for lane lines. detection; at the same time, it can also distinguish active lane changes or unconscious deviations based on predicted trajectory information and lane line information; the trajectory deviation early warning method in this application can be applied to automatic intelligent vehicle-road collaboration projects, and self-driving trucks equipped with this technology During field testing, lane lines of various shapes and road scenes can be well detected, and the predicted driving trajectory is also consistent with the actual driving trajectory, showing a high overall accuracy. When the vehicle is likely to deviate from the lane due to unintentional deviation or abnormal driving, it can detect the danger in time and issue an early warning, which helps to maintain the vehicle's lane and ensure driving safety; at the same time, when actively manipulating the steering wheel to change lanes, it can Correctly identifying the lane change intention will not trigger a deviation warning, but will display a lane change prompt, making the autonomous driving function more intelligent, solving the problem of false lane change warnings that has existed before, and improving the automatic intelligent vehicle-road collaboration project. The working efficiency of the remote driving console realizes intelligent trajectory deviation warning.
本申请实施例提供了一种轨迹偏离预警方法,终端及存储介质,终端安装在目标车辆中,当目标车辆行驶时,获取目标车辆的实时转角信息和道路前方实时图像信息;基于小波分析方法和实时转角信息进行行车轨迹预测处理,获得预测轨迹信息;基于目标检测模型和道路前方实时图像信息进行车道线检测处理,获得车道线信息;若根据预测轨迹信息和车道线信息确定存在偏离行为,则进行预警处理。由此可见,在本申请中,终端安装在目标车辆中,在目标车辆的行驶过程中,终端可以基于小波分析方法对实时转角信息进行行车轨迹预测处理,获得未来一段时间内的预测轨迹信息,从而能够对未来一段时间的车辆位置进行预估,具有很好的前瞻性;同时利用目标检测模型对道路前方实时图像信息进行车道线检测处理,能够提升车道线检测的精确度;由此可以根据预测轨迹信息和车道线信息预判目标车辆是否会发生偏离,在判断存在偏离行为时进行预警处理,有效提升偏离预警效果。The embodiment of the present application provides a trajectory deviation early warning method, terminal and storage medium. The terminal is installed in the target vehicle. When the target vehicle is driving, the real-time corner information of the target vehicle and the real-time image information ahead of the road are obtained; based on the wavelet analysis method and Real-time corner information is used for driving trajectory prediction processing to obtain predicted trajectory information; lane line detection processing is performed based on the target detection model and real-time image information ahead of the road to obtain lane line information; if it is determined that there is deviation based on the predicted trajectory information and lane line information, then Perform early warning processing. It can be seen that in this application, the terminal is installed in the target vehicle. During the driving process of the target vehicle, the terminal can perform driving trajectory prediction processing on the real-time corner information based on the wavelet analysis method to obtain the predicted trajectory information for a period of time in the future. This enables the vehicle position to be estimated for a period of time in the future, which is very forward-looking; at the same time, the target detection model is used to perform lane line detection processing on the real-time image information in front of the road, which can improve the accuracy of lane line detection; thus, it can be based on The predicted trajectory information and lane line information predict whether the target vehicle will deviate, and provide early warning processing when it is judged that there is a deviation, effectively improving the effect of deviation warning.
在本申请的另一实施例中,图14为本申请实施例提出的终端的组成结构示意图二,如图14所示,本申请实施例提出的终端10可以包括获取单元11、预测单元12、检测单元13、预警单元14以及计算单元15。In another embodiment of the present application, Figure 14 is a schematic diagram 2 of the composition structure of the terminal proposed by the embodiment of the present application. As shown in Figure 14, the terminal 10 proposed by the embodiment of the present application may include an acquisition unit 11, a prediction unit 12, Detection unit 13, early warning unit 14 and calculation unit 15.
所述获取单元11,用于当所述目标车辆行驶时,获取所述目标车辆的实时转角信息和道路前方实时图像信息。The acquisition unit 11 is configured to acquire the real-time corner information of the target vehicle and the real-time image information ahead of the road when the target vehicle is traveling.
所述预测单元12,用于基于小波分析方法和所述实时转角信息进行行车轨迹预测处理,获得预测轨迹信息。The prediction unit 12 is configured to perform driving trajectory prediction processing based on the wavelet analysis method and the real-time corner information to obtain predicted trajectory information.
所述检测单元13,用于基于目标检测模型和所述道路前方实时图像信息进行车道线检测处理,获得车道线信息;The detection unit 13 is configured to perform lane line detection processing based on the target detection model and the real-time image information ahead of the road to obtain lane line information;
所述预警单元14,用于若根据所述预测轨迹信息和所述车道线信息确定存在偏离行为,则进行预警处理。The early warning unit 14 is configured to perform early warning processing if it is determined that there is a deviation behavior based on the predicted trajectory information and the lane line information.
进一步地,所述获取单元11,还用于在基于目标检测模型和所述道路前方实时图像信息进行车道线检测处理,获得车道线信息之前,获取训练数据集;其中,所述训练数据集中包括车道线标注点信息。Further, the acquisition unit 11 is also configured to obtain a training data set before performing lane line detection processing based on the target detection model and the real-time image information of the road ahead to obtain the lane line information; wherein the training data set includes Lane marking point information.
进一步地,所述检测单元13,还用于利用初始检测模型对所述训练数据集进行目标检测处理,获得所述车道线标注点信息对应的车道线标注点检测结果;以及计算所述车道线标注点检测结果和所述车道线标注点信息之间的误差信息,并根据所述误差信息对所述初始检测模型进行更新,获得所述目标检测模型。Further, the detection unit 13 is also used to perform target detection processing on the training data set using an initial detection model to obtain the lane marking point detection results corresponding to the lane marking point information; and calculate the lane marking point detection result. The error information between the marked point detection result and the lane marking point information is updated, and the initial detection model is updated according to the error information to obtain the target detection model.
进一步地,所述获取单元11,还用于基于所述实时转角信息确定信号序列;以及对所述信号序列进行小波分解处理,获得信号组合;以及按照预设噪声滤除区间对所述信号组合进行噪声滤除处理,获得目标信号;以及基于所述目标信号确定所述预测轨迹信息。Further, the acquisition unit 11 is also used to determine a signal sequence based on the real-time corner information; and perform wavelet decomposition processing on the signal sequence to obtain a signal combination; and combine the signals according to a preset noise filtering interval. Perform noise filtering processing to obtain a target signal; and determine the predicted trajectory information based on the target signal.
进一步地,所述获取单元11,还用于基于时间信息对所述目标信号进行处理,获得所述时间信息对应的预测信号;以及对所述预测信号进行重构处理,获得所述预测轨迹信息。Further, the acquisition unit 11 is further configured to process the target signal based on time information to obtain a prediction signal corresponding to the time information; and perform reconstruction processing on the prediction signal to obtain the prediction trajectory information. .
所述计算单元15,用于在所述预警单元14若根据所述预测轨迹信息和所述车道线信息确定存在偏离行为,则进行预警处理之前,计算所述预测轨迹信息和所述车道线信息之间的距离信息;若所述距离信息小于预设阈值,则根据所述预测轨迹信息确定预测行驶方向,根据所述车道线信息确定所述目标车辆的当前车道;若根据所述车道线信息判定所述当前车道在所述预测行驶方向不存在同向车道,则确定存在所述偏离行为。The calculation unit 15 is configured to calculate the predicted trajectory information and the lane line information before performing early warning processing if the warning unit 14 determines that there is a deviation behavior based on the predicted trajectory information and the lane line information. distance information between them; if the distance information is less than the preset threshold, determine the predicted driving direction based on the predicted trajectory information, and determine the current lane of the target vehicle based on the lane line information; if based on the lane line information If it is determined that the current lane does not have a same-directional lane in the predicted driving direction, it is determined that the deviation behavior exists.
进一步地,所述获取单元11,还用于在若所述距离信息小于预设阈值,则所述计算单元15根据所述预测轨迹信息确定预测行驶方向,根据所述车道线信息确定所述目标车辆的当前车道之后,若所述当前车道在所述预测行驶方向存在同向车道,则获取第一历史时间区间对应的所述方向盘的第一历史转角信息,和所述第一历史时间区间对应的第一历史车道线信息。Further, the acquisition unit 11 is also configured to determine the predicted driving direction according to the predicted trajectory information and determine the target according to the lane line information if the distance information is less than a preset threshold. After the current lane of the vehicle, if there is a same-direction lane in the predicted driving direction of the current lane, the first historical turning angle information of the steering wheel corresponding to the first historical time interval is obtained, corresponding to the first historical time interval. The first historical lane line information.
进一步地,所述计算单元15,还用于根据所述第一历史转角信息和所述第一历史车道线信息确定差值曲线,并根据所述差值曲线确定转折点信息;其中,所述转折点信息表征行车角度偏离车道线的起始信息;以及基于所述转折点信息判断是否存在所述偏离行为。Further, the calculation unit 15 is further configured to determine a difference curve based on the first historical corner information and the first historical lane line information, and determine turning point information based on the difference curve; wherein, the turning point The information represents the starting information of the driving angle deviating from the lane line; and based on the turning point information, it is determined whether the deviation behavior exists.
进一步地,所述计算单元15,还用于基于所述转折点信息和所述预测轨迹信息确定第一向量、第二向量以及第三向量;以及若所述第一向量和所述第二向量的向量积大于或者等于所述第二向量和所述第三向量的向量积,则确定存在所述偏离行为。Further, the calculation unit 15 is further configured to determine the first vector, the second vector and the third vector based on the turning point information and the predicted trajectory information; and if the first vector and the second vector If the vector product is greater than or equal to the vector product of the second vector and the third vector, it is determined that the deviation behavior exists.
进一步地,所述计算单元15,还用于基于所述转折点和所述预测轨迹信息确定第一向量、第二向量以及第三向量之后,若所述第一向量和所述第二向量的向量积小于所述第二向量和所述第三向量的向量积,则获取第二历史时间区间对应的所述方向盘的第二历史转角信息,和所述第二历史时间区间对应的第二历史车道线信息;以及基于预设时间间隔计算所述第二历史转角信息和所述第二历史车道线信息之间的至少一个差值积分信息;以及根据所述至少一个差值积分信息确定所述第二历史时间区间对应的差值积分变化趋势;若所述差值积分变化趋势为增大的趋势,则确定不存在所述偏离行为。Further, the calculation unit 15 is further configured to determine the first vector, the second vector and the third vector based on the turning point and the predicted trajectory information, if the vector of the first vector and the second vector If the product is less than the vector product of the second vector and the third vector, then the second historical angle information of the steering wheel corresponding to the second historical time interval and the second historical lane corresponding to the second historical time interval are obtained line information; and calculating at least one difference integral information between the second historical corner information and the second historical lane line information based on a preset time interval; and determining the first difference integral information based on the at least one difference integral information. The difference integral change trend corresponding to the two historical time intervals; if the difference integral change trend is an increasing trend, it is determined that the deviation behavior does not exist.
图15为本申请实施例提出的终端的组成结构示意图三,如图15所示,本申请实施例提出的终端10还可以包括处理器16、存储有处理器16可执行指令的存储器17,进一步地,终端10还可以包括通信接口18,和用于连接处理器16、存储器17以及通信接口18的总线19。Figure 15 is a schematic diagram 3 of the composition structure of the terminal proposed by the embodiment of the present application. As shown in Figure 15, the terminal 10 proposed by the embodiment of the present application may also include a processor 16 and a memory 17 that stores instructions executable by the processor 16. Further The terminal 10 may also include a communication interface 18, and a bus 19 for connecting the processor 16, the memory 17 and the communication interface 18.
在本申请的实施例中,上述处理器16可以为特定用途集成电路(ApplicationSpecific Integrated Circuit,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字终端(Digital Signal Processing Device,DSPD)、可编程逻辑装置(Programmable Logic Device,PLD)、现场可编程门阵列(Field Programmable GateArray,FPGA)、中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器中的至少一种。可以理解地,对于不同的设备,用于实现上述处理器功能的电子器件还可以为其它,本申请实施例不作具体限定。处理器16还可以包括存储器17,该存储器17可以与处理器16连接,其中,存储器17用于存储可执行程序代码,该程序代码包括计算机操作指令,存储器17可能包含高速RAM存储器,也可能还包括非易失性存储器,例如,至少两个磁盘存储器。In the embodiment of the present application, the above-mentioned processor 16 can be an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital terminal (Digital Signal Processing Device, DSPD), or At least one of Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), controller, microcontroller, and microprocessor . It can be understood that for different devices, the electronic device used to implement the above processor function may also be other, which is not specifically limited in the embodiment of the present application. The processor 16 may also include a memory 17, which may be connected to the processor 16, where the memory 17 is used to store executable program codes, which include computer operating instructions. The memory 17 may include high-speed RAM memory, or may also Includes non-volatile memory, such as at least two disk memories.
在本申请的实施例中,总线19用于连接通信接口18、处理器16以及存储器17以及这些器件之间的相互通信。In the embodiment of the present application, the bus 19 is used to connect the communication interface 18, the processor 16 and the memory 17 as well as the mutual communication between these devices.
在本申请的实施例中,存储器17,用于存储指令和数据。In the embodiment of the present application, the memory 17 is used to store instructions and data.
进一步地,在本申请的实施例中,上述处理器16,用于当所述目标车辆行驶时,获取所述目标车辆的实时转角信息和道路前方实时图像信息;基于小波分析方法和所述实时转角信息进行行车轨迹预测处理,获得预测轨迹信息;基于目标检测模型和所述道路前方实时图像信息进行车道线检测处理,获得车道线信息;若根据所述预测轨迹信息和所述车道线信息确定存在偏离行为,则进行预警处理。Further, in the embodiment of the present application, the above-mentioned processor 16 is used to obtain the real-time corner information of the target vehicle and the real-time image information ahead of the road when the target vehicle is driving; based on the wavelet analysis method and the real-time Perform driving trajectory prediction processing on the corner information to obtain predicted trajectory information; perform lane line detection processing based on the target detection model and the real-time image information ahead of the road to obtain lane line information; if determined based on the predicted trajectory information and the lane line information If there is deviation, early warning processing will be carried out.
在实际应用中,上述存储器17可以是易失性存储器(volatile memory),例如随机存取存储器(Random-Access Memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(Read-Only Memory,ROM),快闪存储器(flash memory),硬盘(Hard DiskDrive,HDD)或固态硬盘(Solid-State Drive,SSD);或者上述种类的存储器的组合,并向处理器16提供指令和数据。In practical applications, the above-mentioned memory 17 can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory. (Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard DiskDrive, HDD) or solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memories, and is provided to the processor 16 instructions and data.
另外,在本实施例中的各功能模块可以集成在一个分析单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in this embodiment can be integrated into one analysis unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software function modules.
集成的单元如果以软件功能模块的形式实现并非作为独立的产品进行销售或使用时,可以存储在一个计算机可读取存储介质中,基于这样的理解,本实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或processor(处理器)执行本实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially The contribution made to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions to enable a computer device (which can be a personal computer). A computer, server, or network device, etc.) or processor executes all or part of the steps of the method in this embodiment. The aforementioned storage media include: U disk, mobile hard disk, read only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes.
本申请实施例提供了一种轨迹偏离预警方法,终端及存储介质,终端安装在目标车辆中,当目标车辆行驶时,获取目标车辆的实时转角信息和道路前方实时图像信息;基于小波分析方法和实时转角信息进行行车轨迹预测处理,获得预测轨迹信息;基于目标检测模型和道路前方实时图像信息进行车道线检测处理,获得车道线信息;若根据预测轨迹信息和车道线信息确定存在偏离行为,则进行预警处理。由此可见,在本申请中,终端安装在目标车辆中,在目标车辆的行驶过程中,终端可以基于小波分析方法对实时转角信息进行行车轨迹预测处理,获得未来一段时间内的预测轨迹信息,从而能够对未来一段时间的车辆位置进行预估,具有很好的前瞻性;同时利用目标检测模型对道路前方实时图像信息进行车道线检测处理,能够提升车道线检测的精确度;由此可以根据预测轨迹信息和车道线信息预判目标车辆是否会发生偏离,在判断存在偏离行为时进行预警处理,有效提升偏离预警效果。The embodiment of the present application provides a trajectory deviation early warning method, terminal and storage medium. The terminal is installed in the target vehicle. When the target vehicle is driving, the real-time corner information of the target vehicle and the real-time image information ahead of the road are obtained; based on the wavelet analysis method and Real-time corner information is used for driving trajectory prediction processing to obtain predicted trajectory information; lane line detection processing is performed based on the target detection model and real-time image information ahead of the road to obtain lane line information; if it is determined that there is deviation based on the predicted trajectory information and lane line information, then Perform early warning processing. It can be seen that in this application, the terminal is installed in the target vehicle. During the driving process of the target vehicle, the terminal can perform driving trajectory prediction processing on the real-time corner information based on the wavelet analysis method to obtain the predicted trajectory information for a period of time in the future. This enables the vehicle position to be estimated for a period of time in the future, which is very forward-looking; at the same time, the target detection model is used to perform lane line detection processing on the real-time image information in front of the road, which can improve the accuracy of lane line detection; thus, it can be based on The predicted trajectory information and lane line information predict whether the target vehicle will deviate, and provide early warning processing when it is judged that there is a deviation, effectively improving the effect of deviation warning.
具体来讲,本实施例中的一种轨迹偏离预警方法对应的程序指令可以被存储在光盘,硬盘,U盘等存储介质上;当存储介质中的与一种轨迹偏离预警方法对应的程序指令被一电子设备读取或被执行时,包括如下步骤:Specifically, the program instructions corresponding to a trajectory deviation early warning method in this embodiment can be stored on storage media such as optical disks, hard disks, and U disks; when the program instructions corresponding to a trajectory deviation early warning method in the storage medium When read or executed by an electronic device, the following steps are included:
当所述目标车辆行驶时,获取所述目标车辆的实时转角信息和道路前方实时图像信息;When the target vehicle is driving, obtain the real-time corner information of the target vehicle and the real-time image information ahead of the road;
基于小波分析方法和所述实时转角信息进行行车轨迹预测处理,获得预测轨迹信息;Perform driving trajectory prediction processing based on the wavelet analysis method and the real-time corner information to obtain predicted trajectory information;
基于目标检测模型和所述道路前方实时图像信息进行车道线检测处理,获得车道线信息;Perform lane line detection processing based on the target detection model and the real-time image information ahead of the road to obtain lane line information;
若根据所述预测轨迹信息和所述车道线信息确定存在偏离行为,则进行预警处理。If it is determined that there is deviation behavior based on the predicted trajectory information and the lane line information, early warning processing is performed.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, magnetic disk storage and optical storage, etc.) embodying computer-usable program code therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的实现流程示意图和/或方框图来描述的。应理解可由计算机程序指令实现流程示意图和/或方框图中的每一流程和/或方框、以及实现流程示意图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to schematic flowcharts and/or block diagrams of implementations of methods, devices (systems), and computer program products according to embodiments of the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flow diagram and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in implementing one process or multiple processes in the flow diagram and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. The instructions provide steps for implementing the functions specified in implementing a process or processes of the flowchart diagram and/or a block or blocks of the block diagram.
以上所述,为本申请的较佳实施例而已,并非用于限定本申请的保护范围。The above descriptions are only preferred embodiments of the present application and are not intended to limit the scope of protection of the present application.
Claims (11)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210842624.2A CN117445941A (en) | 2022-07-18 | 2022-07-18 | Track deviation early warning method, terminal and storage medium |
PCT/CN2023/107906 WO2024017246A1 (en) | 2022-07-18 | 2023-07-18 | Trajectory deviation early warning method, terminal, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210842624.2A CN117445941A (en) | 2022-07-18 | 2022-07-18 | Track deviation early warning method, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117445941A true CN117445941A (en) | 2024-01-26 |
Family
ID=89586069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210842624.2A Pending CN117445941A (en) | 2022-07-18 | 2022-07-18 | Track deviation early warning method, terminal and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117445941A (en) |
WO (1) | WO2024017246A1 (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4706654B2 (en) * | 2007-03-27 | 2011-06-22 | トヨタ自動車株式会社 | Collision avoidance device |
KR101499956B1 (en) * | 2008-06-24 | 2015-03-06 | 현대자동차주식회사 | Warning system of traffic lane departure |
GB2552024B (en) * | 2016-07-08 | 2020-04-15 | Jaguar Land Rover Ltd | Improvements in vehicle speed control |
CN110688954A (en) * | 2019-09-27 | 2020-01-14 | 上海大学 | A Vehicle Lane Change Detection Method Based on Vector Operation |
CN111310737B (en) * | 2020-03-26 | 2023-10-13 | 山东极视角科技股份有限公司 | Lane line detection method and device |
CN112733270B (en) * | 2021-01-08 | 2022-06-24 | 浙江大学 | System and method for predicting vehicle running track and evaluating risk degree of track deviation |
CN114252277B (en) * | 2022-01-12 | 2023-11-21 | 东南大学 | Automatic parking high-precision evaluation method based on wavelet transformation denoising |
-
2022
- 2022-07-18 CN CN202210842624.2A patent/CN117445941A/en active Pending
-
2023
- 2023-07-18 WO PCT/CN2023/107906 patent/WO2024017246A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
WO2024017246A1 (en) | 2024-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11214268B2 (en) | Methods and apparatus for unsupervised multimodal anomaly detection for autonomous vehicles | |
US10853670B2 (en) | Road surface characterization using pose observations of adjacent vehicles | |
US11620837B2 (en) | Systems and methods for augmenting upright object detection | |
RU2694154C2 (en) | Generation of simulated sensor data for training and validating detection models | |
JP6942712B2 (en) | Detection of partially obstructed objects using context and depth order | |
US11726208B2 (en) | Autonomous vehicle localization using a Lidar intensity map | |
US11628857B2 (en) | Correcting a position of a vehicle with SLAM | |
US20180068459A1 (en) | Object Distance Estimation Using Data From A Single Camera | |
JP7301245B2 (en) | Systems and Methods for Tracking Expanded States of Moving Objects Using Model Geometry Learning | |
JP7297172B2 (en) | System and method for tracking the expansion state of an object | |
CN110378919B (en) | Narrow-road passing obstacle detection method based on SLAM | |
US11138452B2 (en) | Vehicle neural network training | |
US20200018825A1 (en) | Environment sensing method and apparatus using a wide-angle distance sensor | |
Suhr et al. | Dense stereo-based robust vertical road profile estimation using Hough transform and dynamic programming | |
US11720995B2 (en) | Image rectification | |
CN115731531A (en) | Object trajectory prediction | |
US11899101B2 (en) | Predicting the course of a road on the basis of radar data | |
US20200311967A1 (en) | Information processing device and computer-readable recording medium recording object information generation program | |
US11938952B2 (en) | Traveling trajectory estimation system, traveling trajectory estimation program, and traveling trajectory estimating method | |
CN113434788B (en) | Picture construction method and device, electronic equipment and vehicle | |
CN117445941A (en) | Track deviation early warning method, terminal and storage medium | |
US12217516B2 (en) | Method and device for multi-sensor data fusion for automated and autonomous vehicles | |
JP2019200049A (en) | Object recognition device and object recognition method | |
CN112896070A (en) | Parking space obstacle detection method and device and computer readable storage medium | |
US20240425056A1 (en) | Model-based road estimation |
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 |