Guardrail detection method, detection device and vehicle

Through the target trajectory curve of the vehicle and the point information obtained by the millimeter-wave radar, the preset equations are divided and merged to solve the problems of unstable and poor robustness of guardrail detection in the existing technology, and realize a guardrail with high accuracy and stability. detection.

CN115236618BActive Publication Date: 2024-10-11CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210681238.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2024-10-11
Estimated Expiration
2042-06-16

Smart Images

  • Figure CN115236618B_ABST
    Figure CN115236618B_ABST
Patent Text Reader

Abstract

The present application provides a guardrail detection method, a detection device and a vehicle, the method comprising: determining a target area according to a target trajectory curve of the vehicle, and obtaining multiple target point trace information of the target area based on a millimeter wave radar; dividing the target area at least according to the target point trace information to obtain multiple target sub-areas; determining a corresponding cubic preset equation according to a predetermined set of each target sub-area, and merging the predetermined sets corresponding to any two cubic preset equations that meet a first preset condition to obtain multiple merged predetermined sets; repeating the determination step until the predetermined sets corresponding to any two cubic preset equations do not meet the first preset condition, to obtain at least one target set, and determining whether the target object is a guardrail according to the at least one target set, thereby meeting the needs of advanced autonomous driving systems for guardrail detection and solving the problem in the prior art that it is difficult to detect guardrails more accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving, and more specifically, to a guardrail detection method, detection device, and vehicle. Background Art

[0002] The autonomous driving system can be divided into three parts: perception module, decision module, and control module. With the rapid development of intelligent driving technology, high-level autonomous driving systems are gradually entering the mass production stage. High-level autonomous driving systems have higher requirements for perception modules. In addition to paying attention to conventional target objects in road scenes, perception modules are also required to detect other target objects such as the boundaries of the drivable area. In conventional road scenes, target objects such as guardrails and curbs are important factors in the boundaries of the drivable area.

[0003] At present, the detection of road boundaries can be divided into camera-based, millimeter-wave radar-based and lidar-based detection according to the different sensors used. Among them, the camera-based detection method is more easily affected by environmental factors such as weather conditions. The detection method based on lidar has increased processing difficulty due to the large amount of data, and has high requirements for hardware and algorithms. At the same time, the high cost of lidar also limits its large-scale application. The detection method based on millimeter-wave radar has strong environmental adaptability, is minimally affected by environmental factors such as weather, and has moderate cost and data processing difficulty. It is more suitable for the detection of road boundaries such as guardrails and curbs.

[0004] In the prior art, most of the guardrail detection methods based on millimeter-wave radar rely only on the point trace information detected by the millimeter-wave radar itself, or RCS (Radar Cross Section, RCS for short) and other information based on the point trace, and use various rules to screen out guardrail points. The above detection methods have the disadvantages of unstable detection effect and poor robustness.

[0005] The above information disclosed in the background technology section is only used to enhance the understanding of the background technology of the technology described in this article. Therefore, the background technology may contain certain information that does not form the prior art known in this country for those skilled in the art. Summary of the invention

[0006] The main purpose of the present application is to provide a guardrail detection method, a detection device and a vehicle to solve the problem in the prior art that it is difficult to detect the guardrail more accurately.

[0007] According to one aspect of an embodiment of the present invention, a method for detecting a guardrail is provided, comprising: an acquisition step, determining a target area according to a target trajectory curve of a vehicle, and acquiring multiple target point trace information of the target area based on a millimeter wave radar, wherein the target trajectory curve is a curve of the driving trajectory of the vehicle within a predetermined time, and the target point trace information is point trace information of each target object in the target area; a division step, dividing the target area at least according to the target point trace information to obtain multiple target sub-areas, and the multiple target point trace information of each target sub-area constitutes a predetermined set; a determination step, determining a corresponding cubic preset equation according to the predetermined set of each target sub-area, and merging the predetermined sets corresponding to any two of the cubic preset equations that meet a first preset condition to obtain multiple merged predetermined sets, wherein the first preset condition is that the difference between the parameters of the constant terms of any two of the cubic preset equations is less than the corresponding preset threshold; a repeating step, repeating the determination step until the predetermined sets corresponding to any two of the cubic preset equations do not meet the first preset condition, thereby obtaining at least one target set, and determining whether the target object is a guardrail according to at least one target set.

[0008] Optionally, when there are at least two target sets, determining whether the target object is a guardrail based on at least one of the target sets includes: determining a corresponding cubic target equation based on each target set, the cubic target equation including a first constant term parameter, a second constant term parameter, a third constant term parameter and a fourth constant term parameter; for any two of the cubic target equations, calculating the difference between the two first constant term parameters to obtain a first difference, calculating the difference between the two second constant term parameters to obtain a second difference, calculating the difference between the two third constant term parameters to obtain a third difference and calculating the difference between the two fourth constant term parameters to obtain a fourth difference; when the first difference is greater than a first predetermined value, the second difference is less than a second predetermined value, the third difference is less than a third predetermined value and the fourth difference is less than a fourth predetermined value, determining that the target objects on both sides of the road where the vehicle is located are guardrails.

[0009] Optionally, when there is one target set, determining whether the target object is a guardrail based on at least one target set includes: calculating the distance between any one of the target point trace information and the vehicle in the target set to obtain multiple target distances; determining the total number of target point trace information between the minimum target distance and the maximum target distance; and determining that the target object is the guardrail when the total number of target point trace information is greater than a fifth predetermined value.

[0010] Optionally, determining the target area according to the target trajectory curve of the vehicle includes: obtaining a preset motion point trajectory set of the vehicle within the predetermined time and in a predetermined coordinate system, the preset motion point trajectory set being a set of motion point trajectories of the vehicle at each predetermined moment, a plurality of the predetermined moments constituting the predetermined time, and the predetermined coordinate system being the coordinate system where the vehicle is located at the current moment; filtering the preset motion point trajectory set to obtain a target motion point trajectory set, and fitting the target trajectory curve at least based on the target motion point trajectory set; according to the target trajectory curve and the current position of the vehicle, determining as the target area an area in front of the vehicle and at a predetermined distance from the vehicle, and an area on the left and right sides of the vehicle and at a predetermined distance from the target trajectory curve.

[0011] Optionally, in the preset motion point trace set, each motion point trace of the vehicle corresponds to a yaw angular velocity at a current moment, and the preset motion point trace set is filtered to obtain a target motion point trace set, including: determining whether the yaw angular velocity corresponding to the motion point trace in the preset motion point trace set is greater than a yaw angular velocity threshold; if the yaw angular velocity corresponding to the motion point trace is greater than the yaw angular velocity threshold, deleting all the motion point traces before the current moment corresponding to the yaw angular velocity to obtain the target motion point trace set.

[0012] Optionally, fitting the target trajectory curve at least based on the target motion point trajectory set includes: determining a cubic trajectory equation based on a plurality of the motion point trajectories in the target motion point trajectory set; and determining the target trajectory curve based on the cubic trajectory equation.

[0013] Optionally, based on the millimeter-wave radar, multiple target point trace information of the target area is obtained, including: in the target area, preset point trace information of each target object is obtained, the preset point trace information at least includes the movement speed of the target object, and one target object corresponds to multiple preset point trace information; according to the movement speed corresponding to each preset point trace information, the preset point trace information that meets the second preset condition is determined as alternative point trace information, and the second preset condition is a condition for separating the preset point trace information in motion and in a stationary state; each alternative point trace information is projected from the coordinate system where the millimeter-wave radar is located to the coordinate system where the vehicle is located at the current moment to obtain the corresponding target point trace information.

[0014] Optionally, the target area is divided at least according to the target point trace information to obtain a plurality of target sub-areas, including: dividing the target area according to the target trajectory curve and a preset division interval to obtain a plurality of predetermined sub-areas; determining the total amount of the target point trace information in the plurality of predetermined sub-areas; deleting the predetermined sub-areas whose total amount of the target point trace information is less than a sixth predetermined value to obtain a plurality of the target sub-areas.

[0015] According to another aspect of an embodiment of the present invention, a guardrail detection device is also provided, comprising: an acquisition unit, used in an acquisition step, determining a target area according to a target trajectory curve of a vehicle, and acquiring multiple target point trace information of the target area based on a millimeter wave radar, wherein the target trajectory curve is a curve of a driving trajectory of the vehicle within a predetermined time, and the target point trace information is point trace information of each target object in the target area; a division unit, used in a division step, dividing the target area at least according to the target point trace information to obtain multiple target sub-areas, and the multiple target point trace information of each target sub-area constitutes a predetermined set; a determination unit, used A determination step, determining a corresponding cubic preset equation according to the predetermined set of each target sub-area, and merging the predetermined sets corresponding to any two of the cubic preset equations that satisfy a first preset condition to obtain a plurality of merged predetermined sets, wherein the first preset condition is that the difference between the constant term parameters of any two of the cubic preset equations is less than a corresponding preset threshold; a repeating unit, for repeating the step, repeating the determination step until the predetermined sets corresponding to any two of the cubic preset equations do not satisfy the first preset condition, thereby obtaining at least one target set, and determining whether the target object is a guardrail based on at least one of the target sets.

[0016] According to another aspect of the embodiments of the present invention, a vehicle is provided, the vehicle comprising a guardrail detection device, the guardrail detection device being used to execute any one of the guardrail detection methods.

[0017] In an embodiment of the present invention, in the guardrail detection method, first, the target area is determined according to the target trajectory curve of the vehicle, and based on the millimeter wave radar, multiple target point trace information of the target area is obtained; then, according to the target point trace information, the target area is divided to obtain multiple target sub-areas; thereafter, according to the predetermined set of each target sub-area, the corresponding cubic preset equation is determined, and the predetermined sets corresponding to any two of the cubic preset equations that meet the first preset condition are merged to obtain multiple merged predetermined sets; finally, the determination step is repeated until the predetermined sets corresponding to any two of the cubic preset equations do not meet the first preset condition, so as to obtain at least one target set, and based on at least one target set, it is determined whether the target object is a guardrail. Unlike the prior art, which determines whether the target object is a guardrail only based on the target point trace information of the target object obtained based on the millimeter wave radar, this solution determines the target area based on the target trajectory area of ​​the vehicle, and then obtains multiple target point trace information of the target object in the target area, and then divides the target area at least based on the target point trace information to obtain target sub-areas, and finally, merges the corresponding predetermined sets in the target sub-areas until the first preset condition is not met, and obtains at least one target set, and determines whether the target object is a guardrail based on at least one target set. Since the target trajectory curve of the vehicle is used as prior information in this solution, it ensures that it can be more accurately determined whether the target object is a guardrail, and the detection method of this solution has good robustness and a more stable detection effect, thereby meeting the needs of advanced autonomous driving systems for guardrail detection, and thus solving the problem of difficulty in accurately detecting guardrails in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 A flow chart of a method for detecting a guardrail according to an embodiment of the present application is shown;

[0020] Figure 2 A schematic diagram showing a projection of a moving point trace of a vehicle according to an embodiment of the present application is shown;

[0021] Figure 3 A schematic diagram showing the division of a target area according to an embodiment of the present application is shown;

[0022] Figure 4 A schematic structural diagram of a guardrail detection device according to an embodiment of the present application is shown;

[0023] Figure 5 A flow chart of a method for detecting a guardrail according to a specific embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] As mentioned in the background technology, it is difficult to detect guardrails accurately in the prior art. In order to solve the above problem, a typical embodiment of the present application provides a guardrail detection method, a detection device and a vehicle.

[0028] According to an embodiment of the present application, a method for detecting a guardrail is provided.

[0029] Figure 1 FIG. 1 is a flow chart of a method for detecting a guardrail according to an embodiment of the present application. Figure 1 As shown, the detection method comprises the following steps:

[0030] Step S101, an acquisition step, determining a target area according to a target trajectory curve of the vehicle, and acquiring a plurality of target point trace information of the target area based on a millimeter wave radar, wherein the target trajectory curve is a curve of a driving trajectory of the vehicle within a predetermined time, and the target point trace information is point trace information of each target object in the target area;

[0031] Step S102, a division step, at least according to the target point trace information, the target area is divided to obtain a plurality of target sub-areas, and the plurality of target point trace information of each target sub-area constitutes a predetermined set;

[0032] Step S103, a determination step, determining a corresponding cubic preset equation according to the predetermined set of each target sub-area, and merging the predetermined sets corresponding to any two cubic preset equations that meet a first preset condition to obtain a plurality of merged predetermined sets, wherein the first preset condition is that the difference between the constant term parameters of any two cubic preset equations is less than a corresponding preset threshold;

[0033] Step S104, repeat the steps, repeat the above determination steps until the above predetermined sets corresponding to any two of the above cubic preset equations do not satisfy the above first preset condition, obtain at least one target set, and determine whether the above target object is a guardrail based on at least one of the above target sets.

[0034] In the above-mentioned guardrail detection method, first, the target area is determined according to the target trajectory curve of the vehicle, and based on the millimeter wave radar, multiple target point trace information of the target area is obtained; then, according to the target point trace information, the above-mentioned target area is divided to obtain multiple target sub-areas; thereafter, according to the above-mentioned predetermined sets of each of the above-mentioned target sub-areas, the corresponding cubic preset equation is determined, and the above-mentioned predetermined sets corresponding to any two of the above-mentioned cubic preset equations that meet the first preset condition are merged to obtain multiple merged above-mentioned predetermined sets; finally, the above-mentioned determination steps are repeated until the above-mentioned predetermined sets corresponding to any two of the above-mentioned cubic preset equations do not meet the above-mentioned first preset condition, and at least one target set is obtained, and according to at least one of the above-mentioned target sets, it is determined whether the above-mentioned target object is a guardrail. Unlike the prior art, which determines whether the target object is a guardrail only based on the target point trace information of the target object obtained based on the millimeter wave radar, this solution determines the target area based on the target trajectory area of ​​the vehicle, and then obtains multiple target point trace information of the target object in the target area, and then divides the above target area at least based on the target point trace information to obtain target sub-areas, and finally, merges the corresponding predetermined sets in the target sub-areas until the first preset condition is not met, and obtains at least one target set, and determines whether the target object is a guardrail based on at least one target set. Since the target trajectory curve of the vehicle is used as prior information in this solution, it ensures that it can be more accurately determined whether the target object is a guardrail, and the detection method of this solution has good robustness and a more stable detection effect, thereby meeting the needs of advanced autonomous driving systems for guardrail detection, and thus solving the problem of difficulty in accurately detecting guardrails in the prior art.

[0035] Specifically, in actual application, one target object corresponds to multiple target point trace information.

[0036] Specifically, each target sub-region corresponds to a predetermined set Where n is the number of preset sets. The corresponding cubic preset equations are determined based on the multiple target point trace information in the matrix, and a cubic preset equation set B is obtained. That is to say, each predetermined set can correspond to a cubic preset equation.

[0037]

[0038] In the cubic preset equation set B, the predetermined sets corresponding to any two cubic preset equations of the first preset condition are merged,

[0039]

[0040] in, and represent the constant term parameters of the ith and jth cubic preset equations respectively, They respectively represent corresponding thresholds, and the target set can be determined until there are no cubic preset equations corresponding to any two predetermined sets that meet the first preset condition.

[0041] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0042] In the case where there are many determined target sets, in order to more accurately determine whether the target objects on both sides of the vehicle are guardrails, in an embodiment of the present application, when there are at least two target sets, whether the target objects are guardrails is determined according to at least one of the target sets, including: determining a corresponding cubic target equation according to each of the target sets, the cubic target equation includes a first constant term parameter, a second constant term parameter, a third constant term parameter and a fourth constant term parameter; for any two of the cubic target equations, calculating the difference between the two first constant term parameters to obtain a first difference, calculating the difference between the two second constant term parameters to obtain a second difference, calculating the difference between the two third constant term parameters to obtain a third difference and calculating the difference between the two fourth constant term parameters to obtain a fourth difference; when the first difference is greater than the first predetermined value, the second difference is less than the second predetermined value, the third difference is less than the third predetermined value and the fourth difference is less than the fourth predetermined value, it is determined that the target objects on both sides of the road where the vehicle is located are guardrails.

[0043] In a specific embodiment of the present application, when the number of target sets is at least two, that is, C i ,i=1,2,...,N, where N is the total number of target sets, and N is less than or equal to n. That is, due to the continuous merging of the predetermined sets, the number of target sets N finally obtained is less than or equal to the number of predetermined sets n. Each target set C i A cubic target equation can be determined Each cubic target equation includes the first constant parameter The second constant parameter The third constant parameter and the fourth constant parameter When there are at least two target sets, it indicates the possibility that there are guardrails on both sides of the vehicle. In order to more accurately determine whether there are guardrails on both sides of the vehicle, the constant term parameters of the cubic target equation corresponding to any two target sets are subtracted. When the first difference is greater than the first predetermined value, the second difference is less than the second predetermined value, the third difference is less than the third predetermined value, and the fourth difference is less than the fourth predetermined value, it is determined that the above target objects on both sides of the road where the vehicle is located are guardrails.

[0044] In another embodiment of the present application, when there is only one target set, determining whether the target object is a guardrail based on at least one target set includes: calculating the distance between any one of the target point trace information and the vehicle in the target set to obtain multiple target distances; determining the total number of target point trace information between the minimum target distance and the maximum target distance; and determining that the target object is the guardrail when the total number of target point trace information is greater than a fifth predetermined value. In actual application, since the guardrails on both sides of the road are continuous and have a certain length, when there is only one target set, in this embodiment, determining whether the target object is a guardrail is based on the total number of target point trace information between the minimum target distance and the maximum target distance, thereby ensuring that it is possible to more accurately determine whether the target object is a guardrail.

[0045] Specifically, the first predetermined value, the second predetermined value, the third predetermined value, the fourth predetermined value and the fifth predetermined value can be adjusted according to actual conditions, and the size of each of the predetermined values ​​is not limited in the present application.

[0046] Specifically, for the above two embodiments, this solution designs solutions for determining whether the target object is a guardrail in different scenarios, which ensures that this solution can be applied to a variety of guardrail detection scenarios, and further ensures that the detection results of this solution are relatively stable and have good robustness.

[0047] In order to determine the target area more simply and accurately, and to further ensure that the guardrail can be detected more accurately by using the target trajectory curve as prior information, in another embodiment of the present application, the target area is determined according to the target trajectory curve of the vehicle, including: obtaining a preset motion point trajectory set of the above-mentioned vehicle within the above-mentioned predetermined time and in a predetermined coordinate system, the above-mentioned preset motion point trajectory set is a set composed of motion point trajectories of the above-mentioned vehicle at each predetermined time, a plurality of the above-mentioned predetermined time constitutes the above-mentioned predetermined time, and the above-mentioned predetermined coordinate system is the coordinate system where the above-mentioned vehicle is located at the current time; filtering the above-mentioned preset motion point trajectory set to obtain a target motion point trajectory set, and fitting the above-mentioned target trajectory curve at least based on the above-mentioned target motion point trajectory set; according to the above-mentioned target trajectory curve and the current position of the above-mentioned vehicle, determining the area in front of the above-mentioned vehicle and at a predetermined distance from the above-mentioned vehicle as the above-mentioned target area.

[0048] Specifically, in the actual application process, the above-mentioned preset motion trace set is a set of motion traces of the vehicle at each predetermined moment. For example, for the motion trace of the vehicle within 30 seconds, the motion traces in the above-mentioned preset motion trace set can be the motion traces of the vehicle obtained at intervals of 1 second (i.e., the predetermined moment). In the process of obtaining the motion traces of the above-mentioned vehicle at the predetermined moment, the motion traces corresponding to the previous 1 second are mapped to the current moment. For example, at the 1st second, the motion trace of the vehicle is obtained once, and for the 2nd second, the motion trace of the 1st second is mapped to the vehicle coordinate system of the vehicle at the 2nd second, and for the 3rd second, the two motion traces corresponding to the 2nd second are mapped to the vehicle coordinate system at the 3rd second, thereby obtaining the above-mentioned preset motion trace set.

[0049] Specifically, the predetermined distance can be the distance that the millimeter-wave radar can reach, and the target area can be an area that changes dynamically based on the target trajectory curve. This application only gives an example of determining the target area and does not limit the specific method for determining the target area. In specific applications, when only one millimeter-wave radar is installed in front of the vehicle, the target area can be a fan-shaped area. Of course, when more than two millimeter-wave radars are installed in front of the vehicle, the target area can be a rectangular area. Among them, the length of the rectangular area can be the distance that the millimeter-wave radar can reach, and the width of the rectangular area can be the distance that the millimeter-wave radars on both sides of the vehicle can reach.

[0050] In another embodiment of the present application, in the above-mentioned preset motion point trace set, each of the above-mentioned motion point traces of the above-mentioned vehicle corresponds to a yaw angular velocity at the current moment, and the above-mentioned preset motion point trace set is filtered to obtain a target motion point trace set, including: determining whether the above-mentioned yaw angular velocity corresponding to the above-mentioned motion point trace in the above-mentioned preset motion point trace set is greater than the yaw angular velocity threshold; in the case that the above-mentioned yaw angular velocity corresponding to the above-mentioned motion point trace is greater than the above-mentioned yaw angular velocity threshold, all the above-mentioned motion point traces before the current moment corresponding to the above-mentioned yaw angular velocity are deleted to obtain the above-mentioned target motion point trace set. In this embodiment, in the case that the yaw angular velocity corresponding to a motion point trace is greater than the yaw angular velocity threshold, all the motion point traces before the current moment corresponding to the above-mentioned yaw angular velocity are deleted to obtain the target motion point trace set, thereby ensuring that each motion point trace in the obtained target motion point trace set is a valid motion point trace, and subsequently determining the cubic trajectory equation according to multiple motion point traces in the target motion point trace set, thereby further ensuring that the corresponding target trajectory curve determined is more accurate, and further ensuring that the target area determined according to the target trajectory curve is more accurate.

[0051] Of course, in the actual application process, if the number of moving points in the target point set is small and the corresponding cubic trajectory equation cannot be fitted, the target point information in the target set obtained after merging at the previous moment is projected to the vehicle coordinate system at the current moment, and the ordinate is retained to satisfy y i ≥0, fit the retained target point trace information to obtain the corresponding cubic trajectory equation.

[0052] In order to further ensure that the determined target trajectory curve is relatively accurate, in one embodiment of the present application, the above-mentioned target trajectory curve is fitted at least based on the above-mentioned target motion point trajectory set, including: determining a cubic trajectory equation based on multiple of the above-mentioned motion point trajectories in the above-mentioned target motion point trajectory set; determining the above-mentioned target trajectory curve based on the above-mentioned cubic trajectory equation.

[0053] In a specific embodiment of the present application, a CTRV (constant turn rate and velocity, CTRV for short) motion model of the vehicle is first established, and the corresponding state variables of the vehicle can be expressed as:

[0054]

[0055] Among them, Figure 2 As shown, p x represents the horizontal axis, p y represents the ordinate, and v represents the above vehicle ( Figure 2 The rectangle in the figure represents the speed of the vehicle above), and θ represents the heading angle ( Figure 2 ω represents the yaw rate ( Figure 2 Not shown), for X k+1 , then

[0056]

[0057]

[0058] Among them, k+1 represents the current time, k represents the previous time, and X k+1 and X k Respectively represent in X k+1 and X k+1 The state variable of the vehicle at time k, T represents the time difference between time k+1 and time k. Then, the vehicle's driving speed and yaw rate information are obtained and smoothed and filtered. The movement of the vehicle at two adjacent moments is

[0059]

[0060]

[0061] Among them, Figure 2 As shown, Δp x represents the lateral motion of the vehicle from time k to time k+1, Δp y It represents the longitudinal motion of the vehicle from time k to time k+1. Therefore, all the vehicle motion traces starting from time 0 can be projected to the vehicle coordinate system at the current time k+1, and the preset motion trace set of the vehicle can be obtained as

[0062]

[0063] At the same time, in order to ensure the validity of the vehicle's motion traces, the vehicle's motion traces when it is in an unstable driving state, such as changing lanes or turning, are filtered out. For example, between time 0 and k+1, if at a certain time t, the vehicle's yaw rate ω is greater than the yaw rate threshold ω th , then the vehicle is considered to be in an unstable driving state at time t, and all motion traces between time 0 and time t will be cleared, and the accumulation of traces will start again from time t+1. Get the target motion trajectory point set between time t+1 and time k+1 of the vehicle Based on the target motion trajectory point set The cubic trajectory equation of the vehicle motion at time k+1 is fitted as follows:

[0064] y k+1 =A0+A1x+A2x 2 +A3x 3

[0065] Specifically, the yaw rate threshold ω th The selection of its value is related to the vehicle speed, which is not limited in this application.

[0066] In order to further ensure that whether the target object is a guardrail can be determined more accurately based on the target point trace information, in another embodiment of the present application, based on the millimeter wave radar, multiple target point trace information of the above-mentioned target area is obtained, including: in the above-mentioned target area, preset point trace information of each of the above-mentioned target objects is obtained, and the above-mentioned preset point trace information at least includes the movement speed of the above-mentioned target object, and one of the above-mentioned target objects corresponds to multiple above-mentioned preset point trace information; according to the above-mentioned movement speed corresponding to each of the above-mentioned preset point trace information, the above-mentioned preset point trace information that meets the second preset condition is determined as alternative point trace information, and the above-mentioned second preset condition is a condition for separating the above-mentioned preset point trace information in motion and in a stationary state; each of the above-mentioned alternative point trace information is projected from the coordinate system where the above-mentioned millimeter wave radar is located to the coordinate system where the above-mentioned vehicle is located at the current moment, to obtain the corresponding above-mentioned target point trace information. Specifically, in the actual application process, since the guardrail is a stationary object, in order to ensure that the amount of calculation is small, the preset point trace information of the acquired target object can be preliminarily screened, that is, the preset point trace information that meets the second preset condition is determined as the alternative point trace information, and then each alternative point trace information is projected from the coordinate system where the millimeter wave radar is located to the coordinate system where the vehicle is located at the current moment to obtain the corresponding target point trace information.

[0067] In a specific embodiment of the present application, first, based on the millimeter wave radar, the preset point trace information of the target object is detected, wherein each preset point trace information includes information such as position, speed and RCS. Based on the speed information, each preset point trace information is separated into static and dynamic, and the preset point trace information whose movement speed meets the second preset condition (the following formula) is determined as the candidate point trace information.

[0068]

[0069] Where v represents the vehicle speed, θ represents the angle between the preset point information and the vehicle's forward direction, and v p Indicates the radial velocity of the preset point information, v th represents the threshold for separating moving and static target points. Then, according to the following formula, the separated static points (i.e., candidate point information) are projected from the coordinate system of the millimeter-wave radar to the coordinate system of the vehicle at the current moment to obtain the corresponding target point information.

[0070]

[0071] in, They represent the horizontal and vertical coordinates in the vehicle coordinate system respectively. They respectively represent the horizontal and vertical coordinates of the coordinate system where the millimeter wave radar is located. represents the translation matrix from the coordinate system of the millimeter-wave radar to the vehicle coordinate system, and R represents the rotation matrix from the coordinate system of the millimeter-wave radar to the vehicle coordinate system.

[0072] In another embodiment of the present application, the target area is divided at least according to the target point trace information to obtain a plurality of target sub-areas, including: dividing the target area according to the target trajectory curve and the preset division interval to obtain a plurality of predetermined sub-areas; determining the total amount of the target point trace information in the plurality of predetermined sub-areas; deleting the predetermined sub-areas whose total amount of the target point trace information is less than the sixth predetermined value to obtain a plurality of the target sub-areas. In this embodiment, in order to further reduce the amount of calculation and to further ensure that the target point trace information in the predetermined set corresponding to each target sub-area can fit the corresponding cubic preset equation, the predetermined sub-areas whose total amount of the target point trace information in each predetermined sub-area is less than the sixth predetermined value are deleted to obtain a plurality of target sub-areas.

[0073] Specifically, the preset division interval can be adjusted according to the motion trajectory, vehicle speed and yaw rate of the vehicle. In the present application, the size of the preset division interval is not limited.

[0074] Specifically, Figure 3 As shown, the target area is divided according to the target trajectory curve of the vehicle and the preset division interval d to obtain multiple predetermined sub-areas. Specifically, the target area can be divided in parallel with the target trajectory curve of the vehicle and according to the preset division interval d to obtain m predetermined sub-areas. In addition, the number of target point trace information in each predetermined sub-area can also be determined. The total number of target point information in the predetermined sub-area is less than the sixth predetermined value (ie Area_Point i <Point th ) is deleted to obtain the target sub-area. That is to say, the amount of target point trace information in the predetermined sub-area is small, and the fitted cubic preset equation is relatively inaccurate, which will lead to poor overall detection results. Therefore, in order to further ensure that the detection result of the guardrail is more accurate and has better robustness, the target sub-area is obtained by screening the amount of target point trace information in the predetermined sub-area in the present application. In addition, the above-mentioned sixth predetermined value can be adjusted according to the actual application situation, and the size of the above-mentioned sixth predetermined value is not limited in the present application.

[0075] The embodiment of the present application also provides a guardrail detection device. It should be noted that the guardrail detection device of the embodiment of the present application can be used to execute the guardrail detection method provided in the embodiment of the present application. The guardrail detection device provided in the embodiment of the present application is introduced below.

[0076] Figure 4 Schematic diagram of the structure of the guardrail detection device according to the embodiment of the present application. Figure 4 As shown, the detection device comprises:

[0077] The acquisition unit 10 is used for the acquisition step, determining the target area according to the target trajectory curve of the vehicle, and acquiring multiple target point trace information of the target area based on the millimeter wave radar, wherein the target trajectory curve is a curve of the driving trajectory of the vehicle within a predetermined time, and the target point trace information is point trace information of each target object in the target area;

[0078] A division unit 20, used for a division step, at least according to the target point trace information, divides the target area to obtain a plurality of target sub-areas, and the plurality of target point trace information of each target sub-area constitutes a predetermined set;

[0079] The determining unit 30 is used for determining the corresponding cubic preset equation according to the predetermined set of each target sub-region, and merging the predetermined sets corresponding to any two cubic preset equations that meet the first preset condition to obtain a plurality of merged predetermined sets, wherein the first preset condition is that the difference between the constant term parameters of any two cubic preset equations is less than the corresponding preset threshold value;

[0080] The repeating unit 40 is used to repeat the steps, repeat the above-mentioned determination steps, until the above-mentioned predetermined sets corresponding to any two of the above-mentioned cubic preset equations do not satisfy the above-mentioned first preset condition, obtain at least one target set, and determine whether the above-mentioned target object is a guardrail based on at least one of the above-mentioned target sets.

[0081] In the above-mentioned guardrail detection device, the acquisition unit is used for the acquisition step, determining the target area according to the target trajectory curve of the vehicle, and acquiring multiple target point trace information of the above-mentioned target area based on the millimeter wave radar, wherein the above-mentioned target trajectory curve is the curve of the driving trajectory of the above-mentioned vehicle within a predetermined time, and the above-mentioned target point trace information is the point trace information of each target object in the above-mentioned target area; the division unit is used for the division step, dividing the above-mentioned target area at least according to the above-mentioned target point trace information to obtain multiple target sub-areas, and the multiple target point trace information of each of the above-mentioned target sub-areas constitute a predetermined set; the determination unit is used for the determination step, according to each of the above The above-mentioned predetermined set of target sub-areas determines the corresponding cubic preset equation, and merges the above-mentioned predetermined sets corresponding to any two of the above-mentioned cubic preset equations that meet the first preset condition to obtain multiple merged above-mentioned predetermined sets, and the above-mentioned first preset condition is that the difference of the parameters of the constant terms of any two of the above-mentioned cubic preset equations is less than the corresponding preset threshold value; the repeating unit is used to repeat the steps, repeat the above-mentioned determination steps, until the above-mentioned predetermined sets corresponding to any two of the above-mentioned cubic preset equations do not meet the above-mentioned first preset condition, and at least one target set is obtained, and according to at least one of the above-mentioned target sets, it is determined whether the above-mentioned target object is a guardrail. Compared with the prior art, only according to the target point trace information of the target object obtained based on the millimeter wave radar to determine whether the target object is a guardrail, this solution determines the target area according to the target trajectory area of ​​the vehicle, and then obtains multiple target point trace information of the target object in the target area, and then divides the above-mentioned target area according to at least the target point trace information to obtain target sub-areas, and finally, the corresponding predetermined sets in the target sub-areas are merged until the first preset condition is not met, and at least one target set is obtained, and according to at least one target set, it is determined whether the target object is a guardrail. Since the target trajectory curve of the vehicle is used as prior information in this scheme, it is ensured that whether the target object is a guardrail can be determined more accurately. The detection method of this scheme has good robustness and the detection effect is relatively stable, thus meeting the needs of advanced autonomous driving systems for guardrail detection, and thus solving the problem that it is difficult to detect guardrails more accurately in the existing technology.

[0082] Specifically, in actual application, one target object corresponds to multiple target point trace information.

[0083] Specifically, each target sub-region corresponds to a predetermined set Where n is the number of preset sets. The corresponding cubic preset equations are determined based on the multiple target point trace information in the matrix, and a cubic preset equation set B is obtained. That is to say, each predetermined set can correspond to a cubic preset equation.

[0084]

[0085] In the cubic preset equation set B, the predetermined sets corresponding to any two cubic preset equations of the first preset condition are merged,

[0086]

[0087] in, and represent the constant term parameters of the ith and jth cubic preset equations respectively, They respectively represent corresponding thresholds, and the target set can be determined until there are no cubic preset equations corresponding to any two predetermined sets that meet the first preset condition.

[0088] In the case where there are many determined target sets, in order to more accurately determine whether the target objects on both sides of the vehicle are guardrails, in one embodiment of the present application, when there are at least two target sets, the repeating unit includes a first determination module, a first calculation module and a second determination module, wherein the first determination module is used to determine the corresponding cubic target equation according to each of the target sets, and the cubic target equation includes a first constant term parameter, a second constant term parameter, a third constant term parameter and a fourth constant term parameter; the first calculation module is used to calculate the difference between the two first constant term parameters for any two of the cubic target equations to obtain a first difference, calculate the difference between the two second constant term parameters to obtain a second difference, calculate the difference between the two third constant term parameters to obtain a third difference, and calculate the difference between the two fourth constant term parameters to obtain a fourth difference; the second determination module is used to determine that the target objects on both sides of the road where the vehicle is located are guardrails when the first difference is greater than a first predetermined value, the second difference is less than a second predetermined value, the third difference is less than a third predetermined value, and the fourth difference is less than a fourth predetermined value.

[0089] In a specific embodiment of the present application, when the number of target sets is at least two, that is, C i ,i=1,2,...,N, where N is the total number of target sets, and N is less than or equal to n. That is, due to the continuous merging of the predetermined sets, the number of target sets N finally obtained is less than or equal to the number of predetermined sets n. Each target set C i A cubic target equation can be determined Each cubic target equation includes the first constant parameter The second constant parameter The third constant parameter and the fourth constant parameter When there are at least two target sets, it indicates the possibility that there are guardrails on both sides of the vehicle. In order to more accurately determine whether there are guardrails on both sides of the vehicle, the constant term parameters of the cubic target equation corresponding to any two target sets are subtracted. When the first difference is greater than the first predetermined value, the second difference is less than the second predetermined value, the third difference is less than the third predetermined value, and the fourth difference is less than the fourth predetermined value, it is determined that the above target objects on both sides of the road where the vehicle is located are guardrails.

[0090] In another embodiment of the present application, when there is only one target set, the repetitive unit includes a second calculation module, a third determination module and a fourth determination module, wherein the second calculation module is used to calculate the distance between any one of the target point trace information and the vehicle in the target set to obtain multiple target distances; the third determination module is used to determine the total number of target point trace information between the minimum target distance and the maximum target distance; the fourth determination module is used to determine that the target object is the guardrail when the total number of target point trace information is greater than a fifth predetermined value. In actual application, since the guardrails on both sides of the road are continuous and have a certain length, when there is only one target set, this embodiment determines whether the target object is a guardrail based on the total number of target point trace information between the minimum target distance and the maximum target distance, thereby ensuring that it is possible to more accurately determine whether the target object is a guardrail.

[0091] Specifically, the first predetermined value, the second predetermined value, the third predetermined value, the fourth predetermined value and the fifth predetermined value can be adjusted according to actual conditions, and the size of each of the predetermined values ​​is not limited in the present application.

[0092] Specifically, for the above two embodiments, this solution designs solutions for determining whether the target object is a guardrail in different scenarios, which ensures that this solution can be applied to a variety of guardrail detection scenarios, and further ensures that the detection results of this solution are relatively stable and have good robustness.

[0093] In order to determine the target area more simply and accurately, and to further ensure that the guardrail is detected more accurately using the target trajectory curve as prior information, in another embodiment of the present application, the above-mentioned acquisition unit includes a first acquisition module, a filtering processing module and a fifth determination module, wherein the above-mentioned first acquisition module is used to obtain a preset motion point trajectory set of the above-mentioned vehicle within the above-mentioned predetermined time and in a predetermined coordinate system, the above-mentioned preset motion point trajectory set is a set composed of motion point trajectories of the above-mentioned vehicle at each predetermined time, a plurality of the above-mentioned predetermined time constitutes the above-mentioned predetermined time, and the above-mentioned predetermined coordinate system is the coordinate system where the above-mentioned vehicle is located at the current time; the above-mentioned filtering processing module is used to filter the above-mentioned preset motion point trajectory set to obtain the target motion point trajectory set, and at least according to the above-mentioned target motion point trajectory set, fit the above-mentioned target trajectory curve; the above-mentioned fifth determination module is used to determine the area in front of the above-mentioned vehicle and at a predetermined distance from the above-mentioned vehicle as the above-mentioned target area according to the above-mentioned target trajectory curve and the current position of the above-mentioned vehicle.

[0094] Specifically, in the actual application process, the above-mentioned preset motion trace set is a set of motion traces of the vehicle at each predetermined moment. For example, for the motion trace of the vehicle within 30 seconds, the motion traces in the above-mentioned preset motion trace set can be the motion traces of the vehicle obtained at intervals of 1 second (i.e., the predetermined moment). In the process of obtaining the motion traces of the above-mentioned vehicle at the predetermined moment, the motion traces corresponding to the previous 1 second are mapped to the current moment. For example, at the 1st second, the motion trace of the vehicle is obtained once, and for the 2nd second, the motion trace of the 1st second is mapped to the vehicle coordinate system of the vehicle at the 2nd second, and for the 3rd second, the two motion traces corresponding to the 2nd second are mapped to the vehicle coordinate system at the 3rd second, thereby obtaining the above-mentioned preset motion trace set.

[0095] Specifically, the predetermined distance can be the distance that the millimeter-wave radar can reach, and the target area can be an area that changes dynamically based on the target trajectory curve. This application only gives an example of determining the target area and does not limit the specific method for determining the target area. In specific applications, when only one millimeter-wave radar is installed in front of the vehicle, the target area can be a fan-shaped area. Of course, when more than two millimeter-wave radars are installed in front of the vehicle, the target area can be a rectangular area. Among them, the length of the rectangular area can be the distance that the millimeter-wave radar can reach, and the width of the rectangular area can be the distance that the millimeter-wave radars on both sides of the vehicle can reach.

[0096] In another embodiment of the present application, in the above-mentioned preset motion point trace set, each of the above-mentioned motion point traces of the above-mentioned vehicle corresponds to a yaw angular velocity at a current moment, and the above-mentioned filtering processing module includes a first determination submodule and a deletion submodule, wherein the above-mentioned first determination submodule is used to determine whether the above-mentioned yaw angular velocity corresponding to the above-mentioned motion point trace in the above-mentioned preset motion point trace set is greater than the yaw angular velocity threshold; the above-mentioned deletion submodule is used to delete all the above-mentioned motion point traces before the current moment corresponding to the above-mentioned yaw angular velocity when the above-mentioned yaw angular velocity corresponding to the above-mentioned motion point trace is greater than the above-mentioned yaw angular velocity threshold, so as to obtain the above-mentioned target motion point trace set. In this embodiment, when there is a motion point trace corresponding to a yaw angular velocity greater than the yaw angular velocity threshold, all motion point traces before the current moment corresponding to the above yaw angular velocity are deleted to obtain a target motion point trace set, thereby ensuring that each motion point trace in the acquired target motion point trace set is a valid motion point trace, and subsequently determining a cubic trajectory equation based on multiple motion point traces in the target motion point trace set, thereby further ensuring that the corresponding target trajectory curve is determined to be more accurate, and further ensuring that the target area subsequently determined based on the target trajectory curve is more accurate.

[0097] Of course, in the actual application process, if the number of moving points in the target point set is small and the corresponding cubic trajectory equation cannot be fitted, the target point information in the target set obtained after merging at the previous moment is projected to the vehicle coordinate system at the current moment, and the ordinate is retained to satisfy y i ≥0, fit the retained target point trace information to obtain the corresponding cubic trajectory equation.

[0098] In order to further ensure that the determined target trajectory curve is more accurate, in one embodiment of the present application, the above-mentioned filtering processing module also includes a second determination submodule and a third determination submodule, wherein the above-mentioned second determination submodule is used to determine the cubic trajectory equation according to the above-mentioned multiple motion point trajectories in the above-mentioned target motion point trajectory set; the above-mentioned third determination submodule is used to determine the above-mentioned target trajectory curve according to the above-mentioned cubic trajectory equation.

[0099] In a specific embodiment of the present application, a CTRV (constant turn rate and velocity, CTRV for short) motion model of the vehicle is first established, and the corresponding state variables of the vehicle can be expressed as:

[0100]

[0101] Among them, Figure 2 As shown, p x represents the horizontal axis, p yrepresents the ordinate, and v represents the above vehicle ( Figure 2 The rectangle in the figure represents the speed of the vehicle above), and θ represents the heading angle ( Figure 2 ω represents the yaw rate ( Figure 2 Not shown), for X k+1 , then

[0102]

[0103]

[0104] Among them, k+1 represents the current time, k represents the previous time, and X k+1 and X k Respectively represent in X k+1 and X k+1 The state variable of the vehicle at time k, T represents the time difference between time k+1 and time k. Then, the vehicle's driving speed and yaw rate information are obtained and smoothed and filtered. The movement of the vehicle at two adjacent moments is

[0105]

[0106]

[0107] Among them, Figure 2 As shown, Δp x represents the lateral motion of the vehicle from time k to time k+1, Δp y It represents the longitudinal motion of the vehicle from time k to time k+1. Therefore, all the vehicle motion traces starting from time 0 can be projected to the vehicle coordinate system at the current time k+1, and the preset motion trace set of the vehicle can be obtained as

[0108]

[0109] At the same time, in order to ensure the validity of the vehicle's motion traces, the vehicle's motion traces when it is in an unstable driving state, such as changing lanes or turning, are filtered out. For example, between time 0 and k+1, if at a certain time t, the vehicle's yaw rate ω is greater than the yaw rate threshold ω th , then the vehicle is considered to be in an unstable driving state at time t, and all motion traces between time 0 and time t will be cleared, and the accumulation of traces will start again from time t+1. Get the target motion trajectory point set between time t+1 and time k+1 of the vehicle Based on the target motion trajectory point set The cubic trajectory equation of the vehicle motion at time k+1 is fitted as follows:

[0110] y k+1 =A0+A1x+A2x 2 +A3x3

[0111] Specifically, the yaw rate threshold ω th The selection of its value is related to the vehicle speed, which is not limited in this application.

[0112] In order to further ensure that whether the target object is a guardrail can be more accurately determined based on the target point trace information, in another embodiment of the present application, the above-mentioned acquisition unit also includes a second acquisition module, a sixth determination module and a seventh determination module, wherein the above-mentioned second acquisition module is used to obtain the preset point trace information of each of the above-mentioned target objects in the above-mentioned target area, and the above-mentioned preset point trace information at least includes the movement speed of the above-mentioned target object, and one above-mentioned target object corresponds to a plurality of the above-mentioned preset point trace information; the above-mentioned sixth determination module is used to determine the above-mentioned preset point trace information that meets the second preset condition as the alternative point trace information according to the above-mentioned movement speed corresponding to each of the above-mentioned preset point trace information, and the above-mentioned second preset condition is a condition for separating the above-mentioned preset point trace information in motion and in a stationary state; the above-mentioned seventh determination module is used to project each of the above-mentioned alternative point trace information from the coordinate system where the above-mentioned millimeter-wave radar is located to the coordinate system where the above-mentioned vehicle is located at the current moment, so as to obtain the corresponding above-mentioned target point trace information. Specifically, in the actual application process, since the guardrail is a stationary object, in order to ensure that the amount of calculation is small, the preset point trace information of the acquired target object can be preliminarily screened, that is, the preset point trace information that meets the second preset condition is determined as the alternative point trace information, and then each alternative point trace information is projected from the coordinate system where the millimeter wave radar is located to the coordinate system where the vehicle is located at the current moment to obtain the corresponding target point trace information.

[0113] In a specific embodiment of the present application, first, based on the millimeter wave radar, the preset point trace information of the target object is detected, wherein each preset point trace information includes information such as position, speed and RCS. Based on the speed information, each preset point trace information is separated into static and dynamic, and the preset point trace information whose movement speed meets the second preset condition (the following formula) is determined as the candidate point trace information.

[0114]

[0115] Where v represents the vehicle speed, θ represents the angle between the preset point information and the vehicle's forward direction, and v p Indicates the radial velocity of the preset point information, v th represents the threshold for separating moving and static target points. Then, according to the following formula, the separated static points (i.e., candidate point information) are projected from the coordinate system of the millimeter-wave radar to the coordinate system of the vehicle at the current moment to obtain the corresponding target point information.

[0116]

[0117] in, They represent the horizontal and vertical coordinates in the vehicle coordinate system respectively. They respectively represent the horizontal and vertical coordinates of the coordinate system where the millimeter wave radar is located. represents the translation matrix from the coordinate system of the millimeter-wave radar to the vehicle coordinate system, and R represents the rotation matrix from the coordinate system of the millimeter-wave radar to the vehicle coordinate system.

[0118] In another embodiment of the present application, the above-mentioned division unit includes a division module and an eighth determination module, wherein the above-mentioned division module is used to divide the above-mentioned target area according to the above-mentioned target trajectory curve and the preset division interval to obtain a plurality of predetermined sub-areas; the above-mentioned eighth determination module is used to determine the total number of the above-mentioned target point trace information of the plurality of the above-mentioned predetermined sub-areas; the above-mentioned predetermined sub-areas whose total number of the above-mentioned target point trace information is less than the sixth predetermined value are deleted to obtain a plurality of the above-mentioned target sub-areas. In this embodiment, in order to further reduce the amount of calculation and further ensure that the target point trace information in the predetermined set corresponding to each target sub-area can fit the corresponding cubic preset equation, the predetermined sub-areas whose total number of the target point trace information in each predetermined sub-area is less than the sixth predetermined value are deleted to obtain a plurality of target sub-areas. Specifically, the above-mentioned preset division interval d can be adjusted according to the motion trajectory, vehicle speed and yaw angular velocity of the vehicle. In the present application, the size of the above-mentioned preset division interval is not limited.

[0119] Specifically, Figure 3 As shown, the target area is divided according to the target trajectory curve of the vehicle and the preset division interval d to obtain multiple predetermined sub-areas. Specifically, the target area can be divided in parallel with the target trajectory curve of the vehicle and according to the preset division interval d to obtain m predetermined sub-areas. In addition, the number of target point trace information in each s predetermined sub-area can also be determined. The total number of target point information in the predetermined sub-area is less than the sixth predetermined value (ie Area_Point i <Point th ) is deleted to obtain the target sub-area. That is to say, the amount of target point trace information in the predetermined sub-area is small, and the fitted cubic preset equation is relatively inaccurate, which will lead to poor overall detection results. Therefore, in order to further ensure that the detection result of the guardrail is more accurate and has better robustness, the target sub-area is obtained by screening the amount of target point trace information in the predetermined sub-area in the present application. In addition, the above-mentioned sixth predetermined value can be adjusted according to the actual application situation, and the size of the above-mentioned sixth predetermined value is not limited in the present application.

[0120] The guardrail detection device includes a processor and a memory. The acquisition unit, division unit, determination unit and repetition unit are all stored in the memory as program units. The processor executes the program units stored in the memory to realize corresponding functions.

[0121] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be provided, and the problem of the difficulty in accurately detecting the guardrail in the prior art can be solved by adjusting the kernel parameters.

[0122] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0123] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned guardrail detection method is implemented.

[0124] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the guardrail detection method is executed when the program is running.

[0125] In a typical embodiment of the present application, a vehicle is further provided, which includes a guardrail detection device, and the guardrail detection device is used to execute any one of the guardrail detection methods described above.

[0126] The above-mentioned vehicle includes a guardrail detection device, and the above-mentioned detection device can execute any of the above-mentioned guardrail detection methods. The above-mentioned detection methods and the prior art only determine whether the target object is a guardrail based on the target point trace information of the target object obtained based on the millimeter wave radar. This solution determines the target area according to the target trajectory area of ​​the vehicle, and then obtains multiple target point trace information of the target object in the target area. After that, the above-mentioned target area is divided at least according to the target point trace information to obtain target sub-areas. Finally, the corresponding predetermined sets in the target sub-areas are merged until the first preset condition is not met, and at least one target set is obtained. According to the at least one target set, it is determined whether the target object is a guardrail. Since the target trajectory curve of the vehicle is used as prior information in this solution, it is ensured that it can be more accurately determined whether the target object is a guardrail, and the detection method of this solution has good robustness and a more stable detection effect, thereby meeting the needs of advanced automatic driving systems for guardrail detection, and thus solving the problem that it is difficult to detect guardrails more accurately in the prior art.

[0127] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0128] Step S101, an acquisition step, determining a target area according to a target trajectory curve of the vehicle, and acquiring a plurality of target point trace information of the target area based on a millimeter wave radar, wherein the target trajectory curve is a curve of a driving trajectory of the vehicle within a predetermined time, and the target point trace information is point trace information of each target object in the target area;

[0129] Step S102, a division step, at least according to the target point trace information, the target area is divided to obtain a plurality of target sub-areas, and the plurality of target point trace information of each target sub-area constitutes a predetermined set;

[0130] Step S103, a determination step, determining a corresponding cubic preset equation according to the predetermined set of each target sub-area, and merging the predetermined sets corresponding to any two cubic preset equations that meet a first preset condition to obtain a plurality of merged predetermined sets, wherein the first preset condition is that the difference between the constant term parameters of any two cubic preset equations is less than a corresponding preset threshold;

[0131] Step S104, repeat the steps, repeat the above determination steps until the above predetermined sets corresponding to any two of the above cubic preset equations do not satisfy the above first preset condition, obtain at least one target set, and determine whether the above target object is a guardrail based on at least one of the above target sets.

[0132] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0133] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0134] Step S101, an acquisition step, determining a target area according to a target trajectory curve of the vehicle, and acquiring a plurality of target point trace information of the target area based on a millimeter wave radar, wherein the target trajectory curve is a curve of a driving trajectory of the vehicle within a predetermined time, and the target point trace information is point trace information of each target object in the target area;

[0135] Step S102, a division step, at least according to the target point trace information, the target area is divided to obtain a plurality of target sub-areas, and the plurality of target point trace information of each target sub-area constitutes a predetermined set;

[0136] Step S103, a determination step, determining a corresponding cubic preset equation according to the predetermined set of each target sub-area, and merging the predetermined sets corresponding to any two cubic preset equations that meet a first preset condition to obtain a plurality of merged predetermined sets, wherein the first preset condition is that the difference between the constant term parameters of any two cubic preset equations is less than a corresponding preset threshold;

[0137] Step S104, repeat the steps, repeat the above determination steps until the above predetermined sets corresponding to any two of the above cubic preset equations do not satisfy the above first preset condition, obtain at least one target set, and determine whether the above target object is a guardrail based on at least one of the above target sets.

[0138] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the technical solution and technical effects of the present application will be explained below in conjunction with specific embodiments.

[0139] Example

[0140] like Figure 5As shown, first, a vehicle CTRV model is established, and a preset motion point trace set of the vehicle within the above-mentioned preset time and in a preset coordinate system is obtained, and the preset motion point trace set is filtered to obtain a target motion point trace set. Then, in the case where the target motion point trace set can fit a cubic trajectory equation, at least the cubic trajectory equation is fitted according to the target motion point trace set, and then the target trajectory curve is fitted; in the case where the target motion point trace set cannot fit a cubic trajectory equation, the target point trace information in the historical target set is projected into the vehicle coordinate system to fit the cubic trajectory equation. Afterwards, according to the target trajectory curve and the current position of the vehicle, the area in front of the vehicle and the distance between the vehicle and the vehicle is a predetermined distance, and the area on the left and right sides of the vehicle and the distance between the target trajectory curve and the predetermined distance are determined as the target area. Afterwards, the preset point trace information of each target object in the target area is obtained, and the preset point trace information that meets the second preset condition is determined as the alternative point trace information according to the movement speed corresponding to each preset point trace information, and each of the above-mentioned alternative point trace information is projected from the coordinate system where the millimeter-wave radar is located to the coordinate system where the vehicle is located at the current moment to obtain the corresponding target point trace information. Afterwards, the target area is divided at least according to the target point trace information to obtain multiple target sub-areas, and one target sub-area corresponds to a predetermined set. Afterwards, according to the predetermined sets of each target sub-area, the corresponding cubic preset equation is determined, and the predetermined sets corresponding to any two cubic preset equations that meet the first preset condition are merged, until the predetermined sets corresponding to any two cubic preset equations do not meet the first preset condition, and at least one target set is obtained. Finally, according to at least one of the above-mentioned target sets, it is determined whether the above-mentioned target object is a guardrail.

[0141] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0142] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0143] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0144] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0145] If the above-mentioned integrated unit is implemented in the form of a software functional unit and 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 the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0146] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0147] 1) In the guardrail detection method of the present application, first, the target area is determined according to the target trajectory curve of the vehicle, and based on the millimeter wave radar, multiple target point trace information of the target area is obtained; then, according to the target point trace information, the above-mentioned target area is divided to obtain multiple target sub-areas; thereafter, according to the above-mentioned predetermined sets of each of the above-mentioned target sub-areas, the corresponding cubic preset equation is determined, and the above-mentioned predetermined sets corresponding to any two of the above-mentioned cubic preset equations that meet the first preset condition are merged to obtain multiple merged above-mentioned predetermined sets; finally, the above-mentioned determination steps are repeated until the above-mentioned predetermined sets corresponding to any two of the above-mentioned cubic preset equations do not meet the above-mentioned first preset condition, and at least one target set is obtained, and according to the at least one above-mentioned target set, it is determined whether the above-mentioned target object is a guardrail. Unlike the prior art, which determines whether the target object is a guardrail only based on the target point trace information of the target object obtained based on the millimeter wave radar, this solution determines the target area based on the target trajectory area of ​​the vehicle, and then obtains multiple target point trace information of the target object in the target area, and then divides the above target area at least based on the target point trace information to obtain target sub-areas, and finally, merges the corresponding predetermined sets in the target sub-areas until the first preset condition is not met, and obtains at least one target set, and determines whether the target object is a guardrail based on at least one target set. Since the target trajectory curve of the vehicle is used as prior information in this solution, it ensures that it can be more accurately determined whether the target object is a guardrail, and the detection method of this solution has good robustness and a more stable detection effect, thereby meeting the needs of advanced autonomous driving systems for guardrail detection, and thus solving the problem of difficulty in accurately detecting guardrails in the prior art.

[0148] 2) In the guardrail detection device of the present application, the acquisition unit is used for the acquisition step, determining the target area according to the target trajectory curve of the vehicle, and acquiring multiple target point trace information of the above target area based on the millimeter wave radar, wherein the above target trajectory curve is the curve of the driving trajectory of the above vehicle within a predetermined time, and the above target point trace information is the point trace information of each target object in the above target area; the division unit is used for the division step, dividing the above target area at least according to the above target point trace information to obtain multiple target sub-areas, and the multiple target point trace information of each target sub-area constitutes a predetermined set; the determination unit is used for the determination step, according to each The above-mentioned predetermined set of the above-mentioned target sub-area determines the corresponding cubic preset equation, and merges the above-mentioned predetermined sets corresponding to any two of the above-mentioned cubic preset equations that meet the first preset condition to obtain multiple merged above-mentioned predetermined sets, and the above-mentioned first preset condition is that the difference of the parameters of the constant terms of any two of the above-mentioned cubic preset equations is less than the corresponding preset threshold value; the repeating unit is used to repeat the steps, repeat the above-mentioned determination steps, until the above-mentioned predetermined sets corresponding to any two of the above-mentioned cubic preset equations do not meet the above-mentioned first preset condition, and at least one target set is obtained, and according to at least one of the above-mentioned target sets, it is determined whether the above-mentioned target object is a guardrail. Compared with the prior art, only according to the target point trace information of the target object obtained based on the millimeter wave radar to determine whether the target object is a guardrail, this solution determines the target area according to the target trajectory area of ​​the vehicle, and then obtains multiple target point trace information of the target object in the target area, and then divides the above-mentioned target area according to at least the target point trace information to obtain target sub-areas, and finally, the corresponding predetermined sets in the target sub-areas are merged until the first preset condition is not met, and at least one target set is obtained, and according to at least one target set, it is determined whether the target object is a guardrail. Since the target trajectory curve of the vehicle is used as prior information in this scheme, it is ensured that whether the target object is a guardrail can be determined more accurately. The detection method of this scheme has good robustness and the detection effect is relatively stable, thus meeting the needs of advanced autonomous driving systems for guardrail detection, and thus solving the problem that it is difficult to detect guardrails more accurately in the existing technology.

[0149] 3) The vehicle of the present application includes a guardrail detection device. The above detection device can execute any of the above guardrail detection methods. The above detection methods and the prior art only determine whether the target object is a guardrail based on the target point trace information of the target object obtained based on the millimeter wave radar. This solution determines the target area according to the target trajectory area of ​​the vehicle, and then obtains multiple target point trace information of the target object in the target area. After that, the above target area is divided at least according to the target point trace information to obtain target sub-areas. Finally, the corresponding predetermined sets in the target sub-areas are merged until the first preset condition is not met, and at least one target set is obtained. According to the at least one target set, it is determined whether the target object is a guardrail. Since the target trajectory curve of the vehicle is used as prior information in this solution, it is ensured that it can be more accurately determined whether the target object is a guardrail, and the detection method of this solution has good robustness and a more stable detection effect, thereby meeting the needs of advanced automatic driving systems for guardrail detection, and thus solving the problem of difficulty in accurately detecting guardrails in the prior art.

[0150] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for detecting a guardrail, characterized in that: include: an acquisition step, determining a target area according to a target trajectory curve of the vehicle, and acquiring a plurality of target point trace information of the target area based on a millimeter wave radar, wherein the target trajectory curve is a curve of a driving trajectory of the vehicle within a predetermined time, and the target point trace information is point trace information of each target object in the target area; a dividing step, at least according to the target point trace information, dividing the target area to obtain a plurality of target sub-areas, and the plurality of target point trace information of each target sub-area constitutes a predetermined set; A determination step, determining a corresponding cubic preset equation according to the predetermined set of each target sub-area, and merging the predetermined sets corresponding to any two of the cubic preset equations that satisfy a first preset condition to obtain a plurality of merged predetermined sets, wherein the first preset condition is that the difference between each constant term parameter of any one of the cubic preset equations and the constant term parameter corresponding to the constant term parameter in any other cubic preset equation is less than a corresponding preset threshold; Repeating the step, repeating the determining step until the predetermined sets corresponding to any two of the cubic preset equations do not satisfy the first preset condition, obtaining at least one target set, and determining whether the target object is a guardrail according to at least one of the target sets; Among them, the target area is divided at least according to the target point trace information to obtain multiple target sub-areas, including: dividing the target area in parallel with the target trajectory curve and according to the preset division interval, to obtain multiple predetermined sub-areas; determining the total amount of the target point trace information in the multiple predetermined sub-areas; deleting the predetermined sub-areas whose total amount of the target point trace information is less than the sixth predetermined value, to obtain multiple target sub-areas.

2. The detection method according to claim 1, characterized in that: In the case that there are at least two target sets, determining whether the target object is a guardrail according to at least one of the target sets includes: Determine a corresponding cubic target equation according to each of the target sets, wherein the cubic target equation includes a first constant term parameter, a second constant term parameter, a third constant term parameter, and a fourth constant term parameter; For any two of the cubic target equations, the difference between the two first constant term parameters is calculated to obtain a first difference, the difference between the two second constant term parameters is calculated to obtain a second difference, the difference between the two third constant term parameters is calculated to obtain a third difference, and the difference between the two fourth constant term parameters is calculated to obtain a fourth difference; When the first difference is greater than a first predetermined value, the second difference is less than a second predetermined value, the third difference is less than a third predetermined value, and the fourth difference is less than a fourth predetermined value, it is determined that the target objects on both sides of the road where the vehicle is located are guardrails.

3. The detection method according to claim 1, characterized in that: When there is one target set, determining whether the target object is a guardrail according to at least one target set includes: In the target set, the distance between any one of the target point trace information and the vehicle is calculated to obtain multiple target distances; Determine the total amount of the target point trace information between the minimum target distance and the maximum target distance; When the total amount of the target point trace information is greater than a fifth predetermined value, it is determined that the target object is the guardrail.

4. The detection method according to claim 1, characterized in that: According to the target trajectory curve of the vehicle, the target area is determined, including: Acquire a preset motion point trace set of the vehicle in the preset time and in a preset coordinate system, wherein the preset motion point trace set is a set of motion point traces of the vehicle at each preset time, a plurality of the preset time points constitute the preset time, and the preset coordinate system is the coordinate system where the vehicle is located at the current time; Filtering the preset motion point trace set to obtain a target motion point trace set, and fitting the target trajectory curve at least based on the target motion point trace set; According to the target trajectory curve and the current position of the vehicle, an area in front of the vehicle at a predetermined distance from the vehicle and an area on the left and right sides of the vehicle at a predetermined distance from the target trajectory curve are determined as the target area.

5. The detection method according to claim 4, characterized in that: In the preset motion point trace set, each motion point trace of the vehicle corresponds to a yaw angular velocity at a current moment, and the preset motion point trace set is filtered to obtain a target motion point trace set, including: Determine whether the yaw angular velocity corresponding to the motion point trace in the preset motion point trace set is greater than a yaw angular velocity threshold; In the case that the yaw angular velocity corresponding to the motion trace exists and is greater than the yaw angular velocity threshold, all the motion traces before the current moment corresponding to the yaw angular velocity are deleted to obtain the target motion trace set.

6. The detection method according to claim 4, characterized in that: The target trajectory curve is obtained by fitting at least according to the target motion point trace set, including: Determining a cubic trajectory equation according to a plurality of the motion point traces in the target motion point trace set; The target trajectory curve is determined according to the cubic trajectory equation.

7. The detection method according to any one of claims 1 to 6, characterized in that: Based on the millimeter wave radar, multiple target point information of the target area is obtained, including: In the target area, obtaining preset point trace information of each target object, wherein the preset point trace information at least includes the moving speed of the target object, and one target object corresponds to a plurality of preset point trace information; According to the movement speed corresponding to each of the preset point trace information, the preset point trace information that meets the second preset condition is determined as the candidate point trace information, and the second preset condition is a condition for separating the preset point trace information in a moving state and in a stationary state; The candidate point trace information is projected from the coordinate system where the millimeter wave radar is located to the coordinate system where the vehicle is located at the current moment to obtain the corresponding target point trace information.

8. A guardrail detection device, characterized in that: include: An acquisition unit, used for the acquisition step, determining a target area according to a target trajectory curve of the vehicle, and acquiring a plurality of target point trace information of the target area based on a millimeter wave radar, wherein the target trajectory curve is a curve of a driving trajectory of the vehicle within a predetermined time, and the target point trace information is point trace information of each target object in the target area; A division unit, used for the division step, dividing the target area at least according to the target point trace information to obtain a plurality of target sub-areas, and the plurality of target point trace information of each target sub-area constitutes a predetermined set; a determination unit, configured to determine, according to the predetermined set of each target sub-area, a corresponding cubic preset equation, and merge the predetermined sets corresponding to any two cubic preset equations that satisfy a first preset condition to obtain a plurality of merged predetermined sets, wherein the first preset condition is that the difference between the constant term parameters of any one of the cubic preset equations and the constant term parameters corresponding to the constant term parameters in any other cubic preset equation is less than a corresponding preset threshold; a repeating unit, configured to repeat the steps, repeat the determining step, until the predetermined sets corresponding to any two of the cubic preset equations do not satisfy the first preset condition, obtain at least one target set, and determine whether the target object is a guardrail according to at least one of the target sets; Among them, the division unit is used for the division step, dividing the target area at least according to the target point trace information to obtain multiple target sub-areas, including: dividing the target area in parallel with the target trajectory curve and according to the preset division interval, to obtain multiple predetermined sub-areas; determining the total amount of the target point trace information in the multiple predetermined sub-areas; deleting the predetermined sub-areas whose total amount of the target point trace information is less than the sixth predetermined value, to obtain multiple target sub-areas.

9. A vehicle, characterized in that: It comprises a guardrail detection device, and the guardrail detection device is used to execute the guardrail detection method described in any one of claims 1 to 7.