A method and device for generating lane centerline
By judging the effective distance of the lane line in the intelligent driving system and weighting the lane centerline equation, the problem of inaccurate lane centerline recognition is solved and the accuracy of the lane centerline is improved.
Patent Information
- Application Number
- CN202210420914.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-21
AI Technical Summary
In the existing technology, when the visual terminal recognizes the lane lines, due to the influence of environmental factors and obstructions, the recognition of the lane center line is inaccurate. In particular, the inaccurate recognition of the left and right lane lines leads to incorrect calculation of the lane center line.
By judging the lane line image information, determine the effective distance of the lane lines on both sides, and adjust the coefficient of the lane center line equation according to the effective distance, and use the weighted method to calculate the lane center line to reduce the impact of unclear or blocked lane lines and improve the lane center line accuracy.
It effectively improves the accuracy of the lane center line, reduces lane center line calculation errors caused by unclear or blocked lane lines, and avoids the problem of inaccurate lane center lines.
Smart Images

Figure CN114782920B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent driving technology, and in particular to a method and device for generating a lane centerline. Background Art
[0002] When smart driving vehicles are driving on the road, they are following a line in most working conditions. The target trajectory is usually provided by a high-definition map (HDmap) in the map solution and by a camera in the vision solution. In the vision-based solution, the center line of the lane is often used as the final target trajectory.
[0003] Chinese Patent Publication No.: CN109190483B. A vision-based lane line detection method is disclosed. The present invention collects images through a camera and converts them into grayscale images, sets the center point of the grayscale image as a reference point to delineate the region of interest; extracts rising edge points and falling edge points in the region of interest respectively through a line scanning gradient value method, obtains inverse perspective rising edge points and inverse perspective falling edge points through inverse perspective transformation of the rising edge points and the falling edge points respectively, obtains filtered rising edge points and filtered falling edge points respectively according to lane width feature filtering; performs customized parameter space transformation on the filtered rising edge points and the falling edge points, and counts the number of the filtered rising edge points and the filtered falling edge points whose lines have equal angles and lateral offsets, fits the lane curve to construct the lane line position of the current frame road image; associates the lane line position of the current frame road image with the lane line position of the next frame road image. It can be seen that in the process of lane line recognition by the visual terminal in the prior art, since the target vehicle is driving, the visual terminal is affected by environmental factors and traffic participants on the road or lane line obstructions, etc., which leads to inaccurate recognition of either the left or right lane line by the visual terminal, further resulting in inaccurate lane center line obtained by averaging calculation, thereby causing the generated lane center line to be inaccurate. Summary of the invention
[0004] In view of this, the present invention provides a method and device for generating a lane centerline, which can improve the accuracy of the generated lane centerline.
[0005] In order to achieve the above object, the present invention mainly provides the following technical solutions:
[0006] In a first aspect, the present invention provides a method for generating a lane centerline, the method comprising:
[0007] Determine whether there is unclear lane line on one side according to lane line image information;
[0008] If so, the effective distances of the lane lines on both sides are determined according to the clear parts of the lane lines on both sides, where the effective distance is the distance at which the visual terminal recognizes the clear lane lines;
[0009] Adjust the coefficient of the lane centerline equation based on the difference between the effective distances of the lane lines on both sides;
[0010] The lane centerline is determined using the adjusted lane centerline equation.
[0011] In a second aspect, the present invention provides a device for generating a lane centerline, the device comprising:
[0012] An image determination module is used to determine whether there is unclear lane line on one side based on lane line image information;
[0013] A distance acquisition module, used to determine the effective distance of the lane lines on both sides according to the clear parts of the lane lines on both sides, wherein the effective distance is the distance at which the visual terminal recognizes the clear lane lines;
[0014] A coefficient adjustment module, used for adjusting the coefficient of the lane centerline equation based on the difference between the effective distances of the lane lines on both sides;
[0015] The centerline determination module is used to determine the lane centerline using the adjusted lane centerline equation.
[0016] By means of the above technical scheme, the present invention provides a method and device for generating a lane center line, based on the lane line of visual recognition and lane line equation fitting, when the lane line on either side is unclear or blocked, the weight corresponding to the lane line equation coefficient is calculated through the effective distance range between the lane line and the visual recognition terminal, and the lane line equation coefficient is weighted according to the weight to adjust the lane center line equation coefficient, thereby effectively reducing the influence of the unclear lane line or the lane line being blocked on the calculated lane center line, thereby effectively improving the accuracy of the lane center line generated using the lane center line. At the same time, in the application embodiment, the lane line image is recognized by the visual recognition terminal, so that when the lane line on either side is unclear, the effective distance of the lane line is obtained to calculate the weight corresponding to the lane line equation coefficient, and the lane line equation coefficient is weighted by the weight, thereby effectively avoiding the problem that the lane line on either side is unclear and the lane center line obtained by averaging calculation is inaccurate, thereby causing the generated lane center line to be inaccurate.
[0017] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A schematic flow chart of a method for generating a lane centerline disclosed in the present invention;
[0020] Figure 2 A schematic flow chart of a method for adjusting lane centerline equation coefficients disclosed in the present invention;
[0021] Figure 3 A flow chart of a method for calculating weights disclosed in the present invention;
[0022] Figure 4 A flowchart of another method for calculating weights disclosed in the present invention;
[0023] Figure 5 A schematic flow chart of a method for determining centerline equation coefficients disclosed in the present invention;
[0024] Figure 6 A schematic flow chart of a method for limiting lane line jump amplitude disclosed in the present invention;
[0025] Figure 7 A schematic diagram of a device for generating a lane centerline disclosed in the present invention;
[0026] Figure 8 This is a schematic diagram of another device for generating a lane centerline disclosed in the present invention. DETAILED DESCRIPTION
[0027] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0028] When smart driving vehicles are driving on the road, they are following a line in most working conditions. The target trajectory is usually provided by a high-definition map (HDmap) in the map solution and by a camera in the vision solution. In the vision-based solution, the center line of the lane is often used as the final target trajectory.
[0029] In the prior art, the method for determining the lane centerline is to obtain it by averaging. In the above process, the accuracy of obtaining the lane centerline by only averaging is low, and the lane line is prone to large jumps.
[0030] In order to solve the above problem, the embodiment of the present invention provides a method for generating a lane centerline, and the specific execution steps are as follows: Figure 1 As shown, including:
[0031] Step 101: determine whether there is unclear lane line on one side based on the lane line image information.
[0032] The present invention obtains lane line image information of the target vehicle during driving through a visual terminal, and then uses the visual terminal to judge whether the lane line on one side is unclear. When the visual terminal is based on the lane line image information, it may be affected by factors such as the failure of the visual terminal itself, the poor lighting environment, the blocking of the lane line by traffic participants, or the blocking of the lane line by environmental factors, which may cause the lane line identified by the visual terminal to be unclear or discontinuous. Specifically, the visual terminal in this embodiment is preferably a camera. When the target vehicle is intelligently driven, the camera is used to obtain the lane line image information on both sides of the target vehicle, and accurately judge whether any of the left lane line or the right lane line is unclear or discontinuous.
[0033] In the specific implementation of this step, when the visual terminal identifies the lane line during the driving process of the target vehicle, when it is affected by factors such as the failure of the visual terminal itself or the poor lighting environment or the traffic participants blocking the lane line or the environmental factors blocking the lane line, and then the lane center line is calculated by averaging, it will cause the generated lane line to jump and the lane line to be generated inaccurately. In this step, the visual terminal can accurately determine whether there is an unclear or discontinuous situation in any of the left lane line or the right lane line based on the acquired lane line image information, and then when there is an unclear or discontinuous situation on either side of the lane line, the lane line equation coefficient is weighted by calculating the weighted calculation, effectively reducing the influence of the unclear lane line or the lane line being blocked on the calculated lane center line, thereby effectively improving the accuracy of the lane center line generated using the lane center line.
[0034] In this embodiment, if the lane lines on either side of the lane line image recognized by the camera are unclear or blocked, step 102 is executed; if the lane lines on both sides are clear, the lane center line is generated using the averaging method; if the lane lines on both sides are unclear, step 101 is repeated.
[0035] Step 102, determining effective distances of the lane lines on both sides respectively according to the clear parts of the lane lines on both sides.
[0036] The effective distance is the distance at which the visual terminal recognizes clear lane lines.
[0037] Specifically, after executing step 101, when any side of the lane line is unclear or blocked, the effective distance is calculated based on the lane line image information obtained by the visual terminal. Specifically, the effective distance x in this embodiment is: the longitudinal distance between the farthest point and the nearest point of the clear lane line that the camera can identify, wherein, in this embodiment, the longitudinal direction of the front of the vehicle is taken as the longitudinal direction. When specifically calculating the effective distance, the point where the camera is installed is taken as the origin, a rectangular coordinate system is established, the X-axis (longitudinal direction) of the front of the vehicle is taken as the X-axis, and the Y-axis is established perpendicular to the X-axis, and then the effective distance belongs to (rangstart, rangend), wherein rangstart is the closest point of the clear part of the lane line to the camera, and rangend is the farthest point of the clear part of the lane line from the camera. By calculating the effective distance, the lane line equation coefficient can be accurately weighted, effectively reducing the influence of the unclear lane line or the blocked lane line on the calculation of the lane center line, thereby effectively improving the accuracy of the lane center line generated using the lane center line.
[0038] Step 103: adjusting the coefficient of the lane centerline equation based on the difference between the effective distances of the lane lines on both sides.
[0039] Specifically, after executing step 102, after accurately calculating the corresponding effective distance, the coefficient of the lane center equation is accurately adjusted through a preset formula, so as to utilize the effective distance of the lane line to effectively reduce the impact of unclear lane lines or blocked lane lines on the calculation of the lane center line, thereby effectively improving the accuracy of the lane center line generated using the lane center line.
[0040] Step 104 , determining the lane centerline using the adjusted lane centerline equation.
[0041] Specifically, in this embodiment, the lane centerline equation is specifically formulated as formula (1), which is: y c =C0 c +C1 c *x+C2 c *x^2+C3 c *x^3 (1).
[0042] Among them, C0 c 、C1 c 、C2 c and C3 cis the lane centerline equation coefficient, x is the lane centerline effective distance, which is an independent variable. It can be understood by those skilled in the art that they can select the corresponding lane centerline effective distance according to the actual situation of the target vehicle.
[0043] In a specific embodiment of this step, the lane centerline equation coefficient is weighted based on the effective distance of the lane line to adjust the lane centerline coefficient, and the adjusted lane centerline equation coefficient is substituted into the lane center equation to fit the lane centerline, thereby effectively reducing the impact of unclear lane lines or obscured lane lines on the calculation of the lane centerline, thereby effectively improving the accuracy of the lane centerline generated using the lane centerline.
[0044] Furthermore, an embodiment of the present invention also provides a method for adjusting the lane centerline equation coefficient. Figure 1 The specific introduction of "adjusting the coefficient of the lane centerline equation based on the difference between the effective distances between the lane lines on both sides" in step 103 of the embodiment shown in the figure is as follows: Figure 2 As shown, including:
[0045] Step 201 : Using lane line image information, respectively fit the left lane line equation and the right lane line equation to determine the coefficients of different lane line equations.
[0046] In a specific implementation of this step, the left lane line equation is fitted to formula (2), and the right lane line equation is fitted to formula (3). The specific formulas are as follows:
[0047] Left lane line equation:
[0048] y l =C0 l +C1 l *x l +C2 l *x l ^2+C3 l *x l ^3,x l ∈[rangstart l , rangend l ] (3);
[0049] Among them, C0 l 、C1 l 、C2 l and C3 l are the first, second, third and fourth coefficients of the left lane line equation, x l is the effective distance of the left lane line.
[0050] Right lane line equation:
[0051] y r =C0 r +C1 r *x r +C2 r *x r ^2+C3 r *x r ^3,x r ∈[rangstart r , rangend r ] (4);
[0052] Among them, C0 r 、C1 r 、C2 r and C3 r are the first, second, third and fourth coefficients of the right lane line equation, respectively, x r is the effective distance of the right lane line.
[0053] Specifically, in this embodiment, the left lane line equation coefficient and the right lane line equation coefficient are output according to the lane line image information obtained by the camera. When the target vehicle is intelligently driven, the left lane line equation coefficient and the right lane line equation coefficient are calculated according to the lane line image obtained by the camera in real time.
[0054] Step 202, using the difference between the effective distances of the lane lines on both sides, determine the weights of the corresponding coefficients in the left lane line equation and the right lane line equation.
[0055] Specifically, in this embodiment, after executing step 201, the weights of the corresponding coefficients in the left lane line equation and the right lane line equation are determined respectively according to the effective distance of the lane line in the lane image and the effective distance of the right lane line. By calculating the weights, the influence of unclear lane lines or blocked lane lines on the calculation of the lane center line can be effectively reduced, thereby effectively improving the accuracy of the lane center line generated using the lane center line.
[0056] Step 203, determining the coefficient of the lane centerline equation according to the weight and the coefficients of the left lane line equation and the right lane line equation.
[0057] Specifically, in this embodiment, when the left lane line equation coefficient and the right lane line equation are output according to the lane line image information, and after step 202, the lane centerline equation coefficient is weighted according to the weight in the corresponding lane line equation coefficient, thereby effectively reducing the impact of unclear lane lines or blocked lane lines on the calculation of the lane centerline, thereby effectively improving the accuracy of the lane centerline generated using the lane centerline.
[0058] Furthermore, the present invention also provides a method for calculating weights. Figure 2 The specific introduction of "using the difference between the effective distances of the lane lines on both sides to determine the weights of the corresponding coefficients in the left lane line equation and the right lane line equation" in step 202 of the embodiment shown in the figure is as follows: Figure 3 As shown, including:
[0059] Step 301, determining a first weight calculation parameter according to a minimum effective distance of the right lane line and a first preset value.
[0060] Among them, the first weight calculation parameter is the maximum value between the minimum value of the effective distance of the right lane line and the first preset value.
[0061] Specifically, in this embodiment, the minimum effective distance of the right lane line is first obtained according to the lane line image information, and the minimum effective distance of the right lane line is compared with a first preset value, and the larger value between the minimum effective distance of the right lane line and the first preset value is taken as the first weight calculation parameter.
[0062] Step 302, determining a weighted second calculation parameter according to the minimum effective distance of the left lane line and a first preset value.
[0063] Among them, the second weight calculation parameter is the maximum value between the minimum effective distance of the left lane line and the first preset value.
[0064] Specifically, in this embodiment, the minimum effective distance of the left lane line is first obtained based on the lane line image information, and the minimum effective distance of the left lane line is compared with the first preset value, and the larger value between the minimum effective distance of the right lane line and the first preset value is taken as the second weight calculation parameter.
[0065] Step 303: Determine a third weight calculation parameter according to the first weight calculation parameter and the second weight calculation parameter.
[0066] The third weight calculation parameter is the sum of the first weight calculation parameter and the second weight calculation parameter.
[0067] Specifically, in this embodiment, the sum of the first weight calculation parameter and the second weight calculation parameter calculated in step 301 and step 302 respectively is taken as the third weight calculation parameter.
[0068] Step 304: Determine the weight of the corresponding coefficient according to the ratio of the first weight calculation parameter to the third weight calculation parameter.
[0069] Specifically, in this embodiment, the first weight calculation parameter is compared with the third weight calculation parameter to determine the weight of the corresponding coefficient.
[0070] In this embodiment, the specific calculation formula of the above steps is formula (9), and the weight calculated by formula (9) is the first weight. The specific formula is as follows:
[0071] w0=max(rangstart r ,0.1) / (max(rangstart l ,0.1)+max(rangstart r , 0.1)) (9);
[0072] Among them, 0.1 is the first preset value of this embodiment.
[0073] Furthermore, the present invention also provides another method for calculating weights. Figure 2 The specific introduction of "using the difference between the effective distances of the lane lines on both sides to determine the weights of the corresponding coefficients in the left lane line equation and the right lane line equation" in step 202 of the embodiment shown in the figure is as follows: Figure 4 As shown, including;
[0074] Step 401, determining a fourth weighted calculation parameter according to the maximum effective distance of the left lane line and the maximum effective distance of the right lane line.
[0075] Among them, the weighted fourth calculation parameter is the sum of the maximum effective distance of the left lane line and the maximum effective distance of the right lane line.
[0076] Specifically, firstly, the maximum effective distance of the left lane line and the maximum distance of the right lane line are obtained according to the lane line image information, and the sum of the maximum effective distance of the left lane line and the maximum distance of the right lane line is taken as the fourth weight calculation parameter.
[0077] Step 402, according to the power of the effective distance corresponding to the weight in the lane line equation, determine the power of the maximum value of the effective distance of the left lane line and the power of the maximum value of the effective distance of the right lane line in the weight calculation parameter.
[0078] Specifically, when calculating the fourth calculation parameter of the weight, the authorization is to determine the position of the weight in the corresponding lane line equation, and determine the power of the maximum effective distance of the left lane line and the power of the maximum effective distance of the right lane line according to the power of the effective distance at the position where the weight is located. Specifically, when the weight is at the position of the second coefficient of the lane line equation, the power corresponding to the effective distance is 1, and the power of the maximum effective distance of the left lane line and the power of the maximum effective distance of the right lane line are set to 1. When the weight is at the position of the third coefficient of the lane line equation, the power corresponding to the effective distance is 2, and the power of the maximum effective distance of the left lane line and the power of the maximum effective distance of the right lane line are set to 2; when the weight is at the position of the fourth coefficient of the lane line equation, the power corresponding to the effective distance is 3, and the power of the maximum effective distance of the left lane line and the power of the maximum effective distance of the right lane line are set to 3.
[0079] Step 403, determining the weight of the corresponding coefficient according to the ratio of the maximum effective distance of the left lane line to the fourth weight calculation parameter.
[0080] Among them, the power of the maximum effective distance of the left lane line is equal to the power of the fourth calculation parameter of the weight.
[0081] Specifically, after executing step 401, the weight is determined by comparing the obtained maximum effective distance of the right lane line with the fourth calculation parameter of the weight. When executing step 403, the power of the maximum effective distance of the right lane line is determined according to the power of the effective distance at the position where the weight is located. Specifically, when the weight is at the position of the second coefficient of the lane line equation, the power corresponding to the effective distance is 1, and the maximum effective distance of the left lane line is set to 1. When the weight is at the position of the third coefficient of the lane line equation, the power corresponding to the effective distance is 2, and the power of the maximum effective distance of the left lane line is set to 2; when the weight is at the position of the fourth coefficient of the lane line equation, the power corresponding to the effective distance is 3, and the power of the maximum effective distance of the left lane line is set to 3.
[0082] Specifically, in this embodiment, the calculation formulas of the weight calculation method in the above steps are respectively (10), (11) and (12), and the corresponding weights are respectively recorded as the second weight, the third weight and the fourth weight. The specific formulas are as follows:
[0083] w1=rangend l / (rangend l +rangend r ) (10);
[0084] w2=rangend l ^2 / (rangend l ^2+rangend r^2) (11);
[0085] w3=rangend l ^3 / (rangend l ^3+rangend r ^3) (12).
[0086] Furthermore, an embodiment of the present invention also provides a method for determining the center line equation coefficient. Figure 2 The specific introduction of "determining the coefficient of the lane centerline equation according to the weight and the coefficients of the left lane line equation and the right lane line equation" in step 203 in the embodiment shown in the figure is as follows: Figure 5 As shown, including:
[0087] Step 501: According to the weight, the coefficients in the left lane line equation corresponding to the weight are weighted to adjust the coefficients of the left lane line equation.
[0088] Specifically, after executing step 304 and step 403, the calculated weight is weighted with the corresponding coefficient in the left lane line equation according to the calculated weight to adjust the coefficient in the left lane line equation.
[0089] Step 502: According to the difference between the weight and a second preset value, the coefficients in the right lane line equation corresponding to the weight are weighted to adjust the coefficients of the right lane line equation.
[0090] Specifically, after executing step 304 and step 403, the calculated weight is weighted with the corresponding coefficient in the right lane line equation according to the calculated weight to adjust the coefficient in the left lane line equation.
[0091] Step 503, determining the lane centerline equation coefficient according to the sum of the weighted coefficients in the right lane line equation and the coefficients in the left lane line equation.
[0092] Specifically, after executing step 501 and step 502, the sum of the adjusted left lane line equation coefficient and the adjusted right lane line equation coefficient is taken to determine the lane center line equation coefficient, and the determined lane center line coefficient is substituted into the lane center line equation to generate the lane center line, thereby effectively reducing the impact of unclear lane lines or blocked lane lines on the calculation of the lane center line, thereby effectively improving the accuracy of the lane center line generated using the lane center line.
[0093] Specifically, in this embodiment, the specific calculation formulas of the above steps are (5), (6), (7) and (8), and the specific formulas are as follows:
[0094] C0 c=w0*C0 l +(1-w0)*C0 r , w0 is the first weight of coefficient C0c; (5);
[0095] C1 c =w1*C1 l +(1-w1)*C1 r , w1 is the second weight of coefficient C1c; (6);
[0096] C2 c =w2*C2 l +(1-w2)*C2 r , w2 is the third weight of coefficient C2c; (7);
[0097] C3 c =w3*C3 l +(1-w3)*C3 r , w3 is the fourth weight of coefficient C3c; (8);
[0098] Among them, 1 is the second preset value in this embodiment.
[0099] Furthermore, the embodiment of the present invention also provides a method for limiting the lane line jump amplitude. Figure 1 The specific introduction before "determining the lane center line using the adjusted lane line equation" in step 104 of the embodiment shown in the figure is as follows Figure 6 As shown, including:
[0100] Step 601, obtaining lane line jump amplitudes at adjacent moments.
[0101] Specifically, when the target vehicle is intelligently driven, the lane line equation coefficient is output according to the lane line information image taken in real time by the camera, and the positions of the left lane line and the right lane line at each moment are calculated according to the lane line equation, and the changes of the left lane line and the right lane line images are generated respectively, so as to obtain the jump amplitudes of the left lane line and the right lane line at adjacent moments respectively.
[0102] Step 602: When the lane line jump amplitude on either side at the adjacent moments is greater than a threshold, determine the jump amplitude range of the left lane line equation and the right lane line equation coefficient at the previous moment.
[0103] Specifically, after executing step 601, when the jump amplitude of the left lane line or the right lane line amplitude is greater than, it is determined that the target vehicle has experienced instantaneous bumps, and the jump amplitude range of the left lane line equation and the right lane line equation coefficients at the previous moment is determined.
[0104] Specifically, firstly, the average values of the left lane equation coefficient and the right lane line equation coefficient at the current moment are calculated, and the average values of the left lane equation coefficient and the right lane line equation coefficient at the current moment are compared with the third preset value to determine the jump amplitude range of the left lane line equation coefficient and the right lane line equation coefficient. Specifically, the average value Cn of the lane line equation coefficient at the current moment is calculated, and Cn=(Cn l +Cn r ) / 2, and compare the lane line equation coefficient average value Cn with the third preset value 0, and limit the jump amplitude range of the lane line at the previous moment according to different comparison results. Wherein, n=1, 2, 3.
[0105] Specifically, when the lane line equation coefficient average value Cn is greater than or equal to 0, the first calibration parameter k_Cn_ValLmtUp is compared with the lane line equation coefficient average value Cn to select the larger value between the first calibration parameter k_Cn_ValLmtUp and the lane line equation coefficient average value Cn, and set it as the jump amplitude upper limit value UpLimtor_Value, and set the second calibration parameter k_Cn_ValLmtLow to the jump amplitude lower limit value LowLimtor_Value.
[0106] Specifically, the jump amplitude upper limit value UpLimtor_Value is compared with the lane line equation coefficient Cn / z at the previous moment to select the minimum value between the jump amplitude upper limit value UpLimtor_Value and the lane line equation coefficient Cn / z at the previous moment as the minimum value of the jump range of the left lane line equation coefficient at the previous moment, and the jump amplitude upper limit value UpLimtor_Value is compared with the lane line equation coefficient Cn / z at the previous moment to select the maximum value between the jump amplitude upper limit value UpLimtor_Value and the lane line equation coefficient Cn / z at the previous moment as the maximum value of the jump range of the left lane line equation coefficient at the previous moment.
[0107] Specifically, the jump amplitude upper limit value UpLimtor_Value is compared with the lane line equation coefficient Cn / z at the previous moment to select the minimum value between the jump amplitude upper limit value UpLimtor_Value and the lane line equation coefficient Cn / z at the previous moment as the minimum value of the jump range of the right lane line equation coefficient at the previous moment, and the jump amplitude upper limit value UpLimtor_Value is compared with the lane line equation coefficient Cn / z at the previous moment to select the maximum value between the jump amplitude upper limit value UpLimtor_Value and the lane line equation coefficient Cn / z at the previous moment as the maximum value of the jump range of the right lane line equation coefficient at the previous moment.
[0108] Specifically, after determining the lane line equation coefficient jump amplitude at the previous moment, a low-pass filter (LowPassFilter) is used to filter data that does not meet the lane line equation coefficient jump range to ensure the smoothness of the generated lane center line.
[0109] Step 603: Based on the jump amplitude range of the coefficients of the left lane line equation and the right lane line equation at the previous moment, the coefficients of the left lane line equation and the right lane line equation are screened within the jump amplitude range.
[0110] Specifically, after executing step 602, after determining the jump amplitude range of the coefficients of the left lane line equation and the right lane line equation at the previous moment, the coefficients of the left lane line equation and the right lane line equation output at the previous moment are compared with the determined jump amplitude range. When the coefficients of the left lane line equation and the right lane line equation output at the previous moment are within the determined jump amplitude range, the corresponding left lane line equation and the right lane line equation coefficients are used to calculate the lane centerline equation coefficient. When the coefficients of the left lane line equation and the right lane line equation output at the previous moment are not within the determined jump amplitude range, the corresponding left lane line equation and the right lane line equation coefficients are not used to calculate the lane centerline equation coefficient. Specifically, this embodiment provides a principle description of step 603. After executing step 602, the range of lane line jump amplitudes determined at adjacent moments is: 2-5. When the jump amplitude of the left lane line is 3, the left lane line equation coefficient output at this time is used to calculate the lane center line equation coefficient; when the jump amplitude of the left lane line is 1, the left lane line equation coefficient output when the jump amplitude is 2 is used to calculate the lane center line equation coefficient; when the jump amplitude of the left lane line is 6, the left lane line equation coefficient output when the jump amplitude is 5 is used to calculate the lane center line equation coefficient. The same is true for the right lane line, which will not be repeated here.
[0111] Step 604, adjusting the coefficient of the lane centerline equation according to the filtered left lane line equation and right lane line equation coefficients.
[0112] Specifically, after executing step 603, based on the filtered left lane line equation and right lane line equation coefficients, the effective distance of the left lane line and the effective distance of the right lane line are obtained, and the corresponding weights are calculated according to the effective distances, and the lane line equation coefficients are weighted according to the weights to adjust the coefficients of the lane centerline equation, thereby effectively reducing the impact of the vehicle's instantaneous bumps on the lane centerline, further reasonably and effectively limiting the amplitude of the lane line jump, and ensuring that the generated lane line is stable and smooth.
[0113] Step 605, determine the lane centerline using the adjusted lane centerline equation.
[0114] Specifically, this step is similar to step 104 and will not be described in detail here.
[0115] Furthermore, as mentioned above Figure 1-6 The embodiment of the method shown in the figure is implemented. The embodiment of the present invention provides a device for generating lane center lines, which can effectively improve the accuracy of generating lane center line equations. The embodiment of the device corresponds to the aforementioned method embodiment. For ease of reading, this embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment, such as Figure 7 As shown, the device comprises:
[0116] An image determination module 10 is used to determine whether there is unclear lane line on one side according to the lane line image information;
[0117] The distance acquisition module 20 is used to determine the effective distances of the lane lines on both sides according to the clear parts of the lane lines on both sides when the lane line on one side is determined to be unclear by the image determination module 10;
[0118] A coefficient adjustment module 30, used for adjusting the coefficient of the lane centerline equation based on the difference between the effective distances of the lane lines on both sides obtained by the distance acquisition module 20;
[0119] The centerline determination module 40 is used to determine the lane centerline according to the lane centerline equation adjusted by the coefficient adjustment module 30.
[0120] Further, such as Figure 8 As shown, the first coefficient adjustment module 30 also includes:
[0121] A first adjustment unit 310 is used to fit the left lane line equation and the right lane line equation respectively using the lane line image information to determine the coefficients of different lane line equations;
[0122] The second adjustment unit 320 is used to determine the weights of corresponding coefficients in the left lane line equation and the right lane line equation according to the coefficients of the different lane line equations determined by the first adjustment unit 310 and using the difference between the effective distances of the lane lines on both sides;
[0123] The third adjustment unit 330 is used to determine the coefficient of the lane centerline equation according to the weight determined by the second adjustment unit 320 and the coefficients of the left lane line equation and the right lane line equation.
[0124] Furthermore, if Figure 8 As shown, the second adjustment unit 320 includes:
[0125] The first adjustment subunit 3210 is used to determine a first weight calculation parameter according to a minimum value of the effective distance of the right lane line and a first preset value;
[0126] The second adjustment subunit 3220 is used to determine a weighted second calculation parameter according to the minimum effective distance of the left lane line and the first preset value;
[0127] The third adjusting subunit 3230 is used to determine a weighted third calculation parameter according to the weighted first calculation parameter determined by the first adjusting subunit 3210 and the weighted second calculation parameter determined by the second adjusting subunit 3220;
[0128] The fourth adjusting subunit 3230 is used to determine the weight of the corresponding coefficient according to the ratio of the first calculation parameter determined by the first adjusting subunit 3210 and the weighted third calculation parameter determined by the third adjusting subunit 3230 .
[0129] Furthermore, if Figure 8 As shown, the second adjustment unit 320 also includes:
[0130] A fifth adjustment subunit 3240, configured to determine a weighted fourth calculation parameter according to a maximum effective distance of a left lane line and a maximum effective distance of a right lane line;
[0131] The sixth adjusting subunit 3250 is used to determine the power of the maximum value of the effective distance of the left lane line and the power of the maximum value of the effective distance of the right lane line in the weight calculation parameter according to the power of the effective distance corresponding to the weight determined by the fifth adjusting subunit 3240 in the lane line equation;
[0132] The seventh adjustment subunit 3260 is used to determine the weight of the corresponding coefficient based on the ratio of the maximum effective distance of the left lane line determined by the fifth adjustment subunit 3240 to the fourth weight calculation parameter determined by the fifth adjustment subunit 3240, wherein the power of the maximum effective distance of the left lane line is equal to the power in the fourth weight calculation parameter.
[0133] Further, such as Figure 8 As shown, the third adjustment unit 330 includes:
[0134] An eighth adjusting subunit 3310, configured to weight the coefficients in the left lane line equation corresponding to the weights according to the weights, and adjust the coefficients of the right lane line equation;
[0135] A ninth adjusting subunit 3320, configured to weight the coefficients in the right lane line equation corresponding to the weight determined by the eighth adjusting subunit 3310 according to the difference between the weight and the second preset value, and adjust the coefficients of the left lane line equation;
[0136] The tenth adjustment subunit 3330 is used to determine the lane centerline equation coefficient according to the sum of the weighted coefficient in the right lane line equation and the coefficient in the left lane line equation determined by the ninth adjustment subunit 3320.
[0137] Furthermore, if Figure 8 As shown, the device also includes:
[0138] An image analysis module 50 is used to obtain lane line jump amplitudes at adjacent moments;
[0139] The amplitude determination module 60 is used to determine the jump amplitude range of the left lane line equation and the right lane line equation coefficient at the previous moment according to the lane line jump amplitude at the adjacent moment obtained by the image analysis module 50, when the lane line jump amplitude on either side of the adjacent moment is greater than a threshold;
[0140] A coefficient screening module 70 is used for screening the coefficients of the left lane line equation and the right lane line equation within the jump amplitude range of the coefficients of the left lane line equation and the right lane line equation at the previous moment determined by the amplitude determination module 60;
[0141] Further, such as Figure 8 As shown, the coefficient screening module 70 includes:
[0142] The coefficient comparison unit 710 is used to determine the jump amplitude range of the left lane line equation and the right lane line equation coefficient according to the comparison result of the average value of the left lane line equation coefficient and the right lane line equation coefficient at the current moment and the third preset value.
[0143] In the above embodiments, 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.
[0144] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, but do not represent the advantages and disadvantages of the embodiments.
[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be described one by one here.
[0146] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0147] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0148] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0149] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0150] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0151] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0152] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0153] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0154] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0155] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0156] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0157] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A method for generating a lane centerline, characterized in that: The method comprises: Determine whether there is unclear lane line on one side according to lane line image information; If so, the effective distances of the lane lines on both sides are determined according to the clear parts of the lane lines on both sides, where the effective distance is the distance at which the visual terminal recognizes the clear lane lines; Adjust the coefficient of the lane centerline equation based on the difference between the effective distances of the lane lines on both sides; The lane centerline is determined using the adjusted lane centerline equation.
2. The method according to claim 1, characterized in that: Based on the difference between the effective distances of the lane lines on both sides, the coefficients of the lane centerline equation are adjusted, including: The lane line image information is used to fit the left lane line equation and the right lane line equation respectively to determine the coefficients of different lane line equations; The difference between the effective distances of the lane lines on both sides is used to determine the weights of the corresponding coefficients in the left lane line equation and the right lane line equation; The coefficient of the lane centerline equation is determined based on the weight and the coefficients of the left lane line equation and the right lane line equation.
3. The method according to claim 2, characterized in that The method of using the difference between the effective distances of the lane lines on both sides to determine the weights of corresponding coefficients in the left lane line equation and the right lane line equation includes: Determine a first weight calculation parameter according to the minimum value of the effective distance of the right lane line and a first preset value, wherein the first weight calculation parameter is the maximum value between the minimum value of the effective distance of the right lane line and the first preset value; Determine a weighted second calculation parameter according to the minimum value of the effective distance of the left lane line and a first preset value, wherein the weighted second calculation parameter is the maximum value between the minimum value of the effective distance of the left lane line and the first preset value; Determine a third weight calculation parameter according to the first weight calculation parameter and the second weight calculation parameter, wherein the third weight calculation parameter is the sum of the first weight calculation parameter and the second weight calculation parameter; The weight of the corresponding coefficient is determined according to the ratio of the first weight calculation parameter to the third weight calculation parameter.
4. The method according to claim 2, characterized in that: The method of using the difference between the effective distances of the lane lines on both sides to determine the weights of corresponding coefficients in the left lane line equation and the right lane line equation includes: Determine a weighted fourth calculation parameter according to the maximum effective distance of the left lane line and the maximum effective distance of the right lane line, wherein the weighted fourth calculation parameter is the sum of the maximum effective distance of the left lane line and the maximum effective distance of the right lane line; According to the power of the effective distance corresponding to the weight in the lane line equation, determine the power of the maximum value of the effective distance of the left lane line and the power of the maximum value of the effective distance of the right lane line in the weight calculation parameter; The weight of the corresponding coefficient is determined according to the ratio of the maximum effective distance of the left lane line to the fourth weighted calculation parameter, wherein the power of the maximum effective distance of the left lane line is equal to the power in the fourth weighted calculation parameter.
5. The method according to claim 2, characterized in that: Determining the coefficient of the lane centerline equation according to the weight and the coefficients of the left lane line equation and the right lane line equation includes: According to the weight, weighting the coefficient in the left lane line equation corresponding to the weight, adjusting the coefficient of the left lane line equation; According to the difference between the weight and a second preset value, weighting the coefficient in the right lane line equation corresponding to the weight, and adjusting the coefficient of the right lane line equation; The lane centerline equation coefficient is determined based on the weighted sum of the coefficient in the right lane line equation and the coefficient in the left lane line equation.
6. The method according to claim 2, characterized in that Before determining the lane centerline using the adjusted lane line equation, including: Get the lane line jump amplitude at adjacent moments; When the lane line jump amplitude on either side at the adjacent moments is greater than a threshold, determining the jump amplitude range of the left lane line equation and the right lane line equation coefficient at the previous moment; According to the jump amplitude range of the coefficients of the left lane line equation and the right lane line equation at the last moment, the coefficients of the left lane line equation and the right lane line equation are screened within the jump amplitude range; Adjusting the coefficient of the lane centerline equation according to the filtered left lane line equation and right lane line equation coefficients; The lane centerline is determined using the adjusted lane centerline equation.
7. The method according to claim 6, characterized in that When the lane line jump amplitude at the adjacent moment is greater than a threshold, determining the jump amplitude range of the left lane line equation and the right lane line equation coefficient at the previous moment, including: According to the comparison result of the average value of the left lane line equation coefficient and the right lane line equation coefficient at the current moment and the third preset value, the jump amplitude range of the left lane line equation and the right lane line equation coefficient is determined.
8. A device for generating a lane centerline, characterized in that: The device comprises: An image determination module is used to determine whether there is unclear lane line on one side based on lane line image information; A distance acquisition module, used to determine the effective distance of the lane lines on both sides according to the clear parts of the lane lines on both sides, wherein the effective distance is the distance at which the visual terminal recognizes the clear lane lines; A coefficient adjustment module, used for adjusting the coefficient of the lane centerline equation based on the difference between the effective distances of the lane lines on both sides; The centerline determination module is used to determine the lane centerline using the adjusted lane centerline equation.
9. A terminal, characterized in that: The terminal is used to run a program, wherein the terminal executes the method for generating a lane centerline according to any one of claims 1 to 7 when running.
10. A storage medium, characterized in that: The storage medium is used to store a computer program, wherein when the computer program is running, it controls the device where the storage medium is located to execute the method for generating a lane center line according to any one of claims 1 to 7.
