Lane line fusion method, electronic device and storage medium

By directly calculating and generating fusion points, it avoids traditional geometric model fitting, solves the problem of low accuracy of traditional lane line fusion, and improves the accuracy and speed of lane line fusion.

CN118247620BActive Publication Date: 2024-09-27GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410664790.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-27
Estimated Expiration
2044-05-27

AI Technical Summary

Technical Problem

The traditional lane line fusion method has low fitting accuracy in complex road conditions, which affects the lane line fusion accuracy.

Method used

By obtaining multiple original lane lines, the basic lane lines and fusion points are determined, and the fusion points are connected along the extension direction of the basic lane lines to form fused lane lines. The fusion points are directly calculated and generated to avoid using traditional geometric model fitting.

Benefits of technology

The accuracy and speed of lane line fusion are improved. The direction of the fused lane lines is the same as that of the basic lane lines, and the accuracy of the fusion points is high.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118247620B
    Figure CN118247620B
Patent Text Reader

Abstract

The present application provides a lane line fusion method, electronic device and storage medium, which relate to the field of map fusion technology. The method includes obtaining multiple original lane lines, and determining a basic lane line based on the multiple original lane lines, wherein the basic lane line contains multiple basic points. The basic lane line can characterize the direction of the original lane line. Based on the multiple original lane lines, a fusion point corresponding to each basic point is determined respectively, and the basic point and the fusion point are one-to-one corresponding. Along the extension direction of the basic lane line, the fusion points are connected in sequence to form a fusion lane line corresponding to the multiple original lane lines, and the direction of the fusion lane line is the same as that of the basic lane line. The lane line fusion method provided in the present application directly calculates and generates fusion points through the original lane lines, and the obtained fusion points have high accuracy. There is no need to use traditional geometric model fitting to obtain lane lines, which improves the accuracy and speed of lane line fusion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of map fusion technology, and in particular to a lane line fusion method, electronic device and storage medium. Background Art

[0002] Multi-source HD maps are formed by fusing data and information provided by multiple sources. Data fusion is an important part of the formation of multi-source HD maps. The accuracy of multi-source HD maps is determined by the superposition and fusion of massive data. At present, data fusion usually uses traditional geometric models to fit lane lines from different data sources. However, in complex road conditions, the shape of the lane line does not match the geometric model well, resulting in low fitting accuracy, which in turn affects the fusion accuracy of the lane line. Summary of the invention

[0003] In view of this, the purpose of the present application is to propose a lane line fusion method, electronic device and storage medium to solve the problem of low accuracy of traditional lane line fusion.

[0004] Based on the above purpose, the first aspect of the present application provides a lane line fusion method, comprising:

[0005] Get multiple original lane lines;

[0006] Determine a basic lane line based on the multiple original lane lines, wherein the basic lane line includes multiple basic points;

[0007] Based on multiple original lane lines, determine the fusion point corresponding to each basic point respectively;

[0008] The fusion points are connected in sequence along the extension direction of the basic lane lines to form fusion lane lines corresponding to the multiple original lane lines.

[0009] Optionally, determining a basic lane line based on a plurality of original lane lines includes:

[0010] For each original lane line, the original lane line is divided into a plurality of sub-lane lines, wherein the sub-lane lines are straight lines;

[0011] Determine the coordinate value of the first average point based on the coordinate values ​​of all sub-lane lines in the preset coordinate system;

[0012] Based on the coordinate value of the first average point, calculating the direction angle corresponding to the first average point in the preset coordinate system;

[0013] The basic lane line is determined based on the first average point and the direction angle, wherein the basic lane line includes the first average point, and an angle between the basic lane line and a coordinate axis in the preset coordinate system is equal to the direction angle.

[0014] Optionally, determining the coordinate value of the first average point based on the coordinate values ​​of all sub-lane lines in a preset coordinate system includes:

[0015] Calculate the coordinate difference based on the starting point coordinate value and the end point coordinate value of the sub-lane line;

[0016] Based on the coordinate differences corresponding to all the sub-lane lines, a sum operation is used to determine the coordinate value of the first average point.

[0017] Optionally, the determining of the fusion point corresponding to each basic point based on the multiple original lane lines respectively includes:

[0018] Based on the multiple original lane lines, a fusion point corresponding to the basic point is determined through multiple rounds of iterative operations, including:

[0019] For each iteration, perform the following operations:

[0020] Determine the original point corresponding to the basic point in each original lane line respectively;

[0021] Determining a second average point based on the coordinate values ​​of all original points corresponding to the base point;

[0022] Along the extension direction of the basic lane line, the second average points corresponding to all the basic points are sequentially connected to form an initial fused lane line;

[0023] Calculating the similarity between the initial fused lane line and the basic lane line,

[0024] In response to the similarity being less than a preset threshold, taking the initial fused lane line as a basic lane line for a next round of iteration, and taking the second average point as a basic point for a next round of iteration;

[0025] In response to the similarity being greater than or equal to a preset threshold, the multiple rounds of iterative operations are stopped, and the second average point is used as the fusion point.

[0026] Optionally, determining the original point corresponding to the basic point in each original lane line respectively includes:

[0027] Setting a scanning ray along the normal direction of the basic lane line;

[0028] The scanning ray is moved along the extension direction of the basic lane line, and when the scanning ray moves to the basic point, an intersection point of the scanning ray and the original lane line is determined as the original point.

[0029] Optionally, setting a scanning ray along the normal direction of the basic lane line includes:

[0030] Determine whether the basic lane line is a curve, and in response to the basic lane line being a curve, divide the basic lane line into a plurality of sub-basic lane lines, wherein the sub-basic lane lines are straight lines;

[0031] The corresponding scanning rays are set along the normal direction of each sub-basic lane line.

[0032] Optionally, determining the original point corresponding to the basic point in each original lane line respectively includes:

[0033] For each original lane line, the original lane line is divided into a plurality of sub-lane lines, wherein the sub-lane lines are straight lines;

[0034] Taking the origin of the preset coordinate system as the center, the preset coordinate system and the sub-lane line are rotated from the initial position, and when the extension direction of the sub-lane line is parallel to the extension direction of the basic lane line, the rotation is stopped, and the preset coordinate system after the rotation is stopped is used as the target coordinate system;

[0035] A scanning ray is set along the normal direction of the basic lane line, and the scanning ray is moved along the extension direction of the basic lane line. When the scanning ray moves to the basic point, an intersection point of the scanning ray and the rotated sub-lane line in the preset coordinate system located at the initial position is determined as the initial point;

[0036] According to the mapping relationship between the preset coordinate system located at the initial position and the target coordinate system, the initial point is mapped to the target coordinate system to obtain the original point.

[0037] Optionally, before determining a basic lane line based on a plurality of original lane lines, the following steps are included:

[0038] Preprocess multiple original lane lines to remove abnormal data;

[0039] The multiple original lane lines after removing abnormal data are classified based on preset categories.

[0040] The second aspect of the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0041] The third aspect of the present application further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method described in the first aspect.

[0042] From the above, it can be seen that the lane line fusion method, electronic device and storage medium provided by the present application include obtaining multiple original lane lines, and determining a basic lane line based on the multiple original lane lines, wherein the basic lane line contains multiple basic points. The basic lane line can characterize the direction of the original lane line. Based on the multiple original lane lines, the fusion point corresponding to each basic point is determined respectively, and the determination of the fusion point is directly calculated based on the information of the original lane line, with high accuracy, and the basic point and the fusion point are one-to-one corresponding. Along the extension direction of the basic lane line, the fusion points are connected in sequence to form a fusion lane line corresponding to the multiple original lane lines, and the direction of the fusion lane line is the same as that of the basic lane line. The lane line fusion method provided by the present application directly calculates and generates fusion points through the original lane lines, and the obtained fusion points have high accuracy. There is no need to use traditional geometric model fitting to obtain lane lines, which improves the accuracy and speed of lane line fusion. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 A schematic diagram of the process of the lane line fusion method of an embodiment of the present application;

[0045] Figure 2 A schematic diagram of each lane line in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of a basic lane line in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of lane lines according to another embodiment of the present application;

[0048] Figure 5 A schematic diagram of a scanning ray of a sub-basic lane line according to an embodiment of the present application;

[0049] Figure 6 A schematic diagram of a coordinate system rotation mapping according to an embodiment of the present application;

[0050] Figure 7This is a schematic diagram of the structure of a lane line fusion device according to an embodiment of the present application;

[0051] Figure 8 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0053] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0054] As described in the background technology, traditional data fusion methods mainly use mathematical geometric models to fit the shape of lane lines. Through techniques such as the least squares method, lane line points in multi-source data are fitted into a specific geometric model to describe the shape and characteristics of lane lines.

[0055] Common geometric models include straight line models, polynomial curve models, etc. However, in complex road conditions, the shape of the lane line may not conform to a simple geometric model, resulting in low fitting accuracy, and there may also be certain errors in the fitting of curved roads. At the same time, there are large differences between the data from massive data sources, and fixed geometric models are difficult to apply to multiple data sources. In view of this, the present application proposes a lane line fusion method, which directly calculates the fusion point based on the original lane line, and the obtained fusion point has high accuracy. There is no need to use traditional geometric models to fit the lane line, which improves the accuracy and speed of lane line fusion.

[0056] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0057] This application proposes a lane line fusion method, referring to Figure 1 , including the following steps:

[0058] Step 102: Acquire multiple original lane lines.

[0059] Specifically, each original lane line comes from a different data source. The original lane lines include lane lines of different sections, such as lane lines of straight sections, lane lines of turning sections, etc. Furthermore, before the original lane lines are fused, multiple original lane lines are preprocessed to remove abnormal data; and the multiple original lane lines after removing the abnormal data are classified based on preset categories. The preprocessing and classification of the original lane lines are to ensure the accuracy of subsequent lane line fusion. The preprocessing process is to remove abnormal data in the original lane lines, such as linear blurred lane lines or lane lines of abandoned sections. After preprocessing, the original lane lines are classified again, and then the lane lines of each category are fused to further improve the accuracy of fusion. When classifying the original lane lines, they can be classified according to the function, linearity or color of the lane lines. For example, according to the function, the lane lines of the straight section include left-turn lane lines, straight lane lines and right-turn lane lines, etc. According to the line type and color, they also include solid lane lines, dotted lane lines, double lane lines, white lane lines and yellow lane lines, etc. By classifying the original lane lines, the same lane lines of the same section in different data sources can be fused in a targeted manner to improve the accuracy of fusion.

[0060] Step 104: Determine a basic lane line based on the multiple original lane lines, wherein the basic lane line includes multiple basic points.

[0061] Specifically, the basic lane line can represent the average direction of the original lane line, that is, the extension direction of the basic lane line is the same as the extension direction of the original lane line. The basic lane line can assist in determining the fused lane line. The basic lane line contains multiple basic points, the spacing between adjacent basic points is equal, and the line segment between adjacent basic points is a straight line segment. The amount of basic point data can be determined according to actual needs. The more basic points there are, the higher the accuracy of the fused lane line obtained after fusion.

[0062] Step 106: Based on the multiple original lane lines, determine the fusion point corresponding to each basic point.

[0063] Specifically, the basic points can assist in determining the fusion points in the fused lane line, and then determine the fused lane line. The basic points correspond to the fusion points one by one, and the fusion points are determined in the order of the basic points. In each original lane line, there are original points corresponding to the basic points. The fusion points can be determined according to all the original points corresponding to the basic points, that is, the fusion points are the points obtained by fusing all the original points corresponding to a basic point. The determination of the fusion points comprehensively considers all the points in the original lane lines, which can improve the accuracy of the determination of the fusion points.

[0064] Step 108: Connect the fusion points in sequence along the extension direction of the basic lane line to form a fusion lane line corresponding to the multiple original lane lines.

[0065] Specifically, after the fusion points are determined, the fusion points are connected in the extension direction of the basic lane lines, that is, in the order of arrangement of the basic points, to form the fusion lane lines. Compared with the traditional geometric model fitting method, in this embodiment, the speed of forming the fusion lane lines by connecting the fusion points is faster, and the determination of each fusion point combines the point information of all the original lane lines, so that the determination accuracy of the fusion point is higher.

[0066] Based on the above steps 102 to 108, the lane line fusion method, electronic device and storage medium provided in this embodiment include obtaining multiple original lane lines, and determining a basic lane line based on the multiple original lane lines, wherein the basic lane line contains multiple basic points. The basic lane line can characterize the direction of the original lane line. Based on the multiple original lane lines, the fusion point corresponding to each basic point is determined respectively. The determination of the fusion point is directly calculated based on the information of the original lane line, with high accuracy, and the basic point and the fusion point are one-to-one corresponding. Along the extension direction of the basic lane line, the fusion points are connected in sequence to form a fusion lane line corresponding to the multiple original lane lines, and the direction of the fusion lane line is the same as that of the basic lane line. The lane line fusion method provided in the present application directly calculates and generates fusion points through the original lane lines, and the obtained fusion points have high accuracy. There is no need to use traditional geometric model fitting to obtain lane lines, which improves the accuracy and speed of lane line fusion.

[0067] The following describes a method for determining a basic lane line through a specific embodiment.

[0068] In some embodiments, determining a basic lane line based on a plurality of original lane lines includes:

[0069] For each original lane line, the original lane line is divided into multiple sub-lane lines, wherein the sub-lane lines are straight lines; based on the coordinate values ​​of all the sub-lane lines in a preset coordinate system, the coordinate value of a first average point is determined; based on the coordinate value of the first average point, the direction angle corresponding to the first average point is calculated in the preset coordinate system; based on the first average point and the direction angle, the basic lane line is determined, wherein the basic lane line includes the first average point, and the angle between the basic lane line and a coordinate axis in the preset coordinate system is equal to the direction angle.

[0070] Specifically, Figure 2 A schematic diagram of each lane line is shown. Figure 2 As shown, the original lane line ( Figure 2The middle dashed line) includes a first lane line 11, a second lane line 12 and a third lane line 13, Figure 2 The basic lane line 14 is also included. Since the original lane line may be a straight line or a curve, in order to improve the accuracy of fusion, when the original lane line is a curve, it is necessary to divide the original lane line into multiple sub-lane lines, each of which is a straight line. Back Figure 2 In the example, after the original lane lines are divided, the first lane line 11, the second lane line 12 and the third lane line 13 each contain three sub-lane lines ( Figure 2 In the figure, the first lane line 11 includes the sub-lane line 1a, the sub-lane line 1b and the sub-lane line 1c, the second lane line 12 includes the sub-lane line 2a, the sub-lane line 2b and the sub-lane line 2c, and the third lane line 13 includes the sub-lane line 3a, the sub-lane line 3b and the sub-lane line 3c.

[0071] The preset coordinate system is a pre-constructed coordinate system. All original lane lines and basic lane lines have corresponding coordinate values ​​in the preset coordinate system, such as Figure 2 The preset coordinate system XOY shown in . According to the coordinate values ​​of all the sub-lane lines obtained by the above division, the coordinate value of the first average point can be determined by calculation. The first coordinate point is a point on the basic lane line. The corresponding direction angle can be calculated through the coordinate value of the first coordinate point. The direction angle is the angle between the basic lane line and one of the coordinate axes of the preset coordinate system. In this embodiment, the direction angle is the angle between the basic lane line and the x-axis.

[0072] The method for determining the basic lane line in this embodiment is applicable to determining the basic lane line for the first time. The basic lane line determined for the first time is a straight line. By determining a point on the basic lane line and the angle between the basic lane line and the coordinate axis, a unique basic lane line can be determined. Figure 3 Schematic diagram of the basic lane line is shown. For example, the first average point is Figure 3 The coordinate values ​​in the preset coordinate system XOY are (x, ), based on the coordinate values ​​( , ) The average line segment length I is determined by the following formula:

[0073] (1)

[0074] Direction and the coordinates of the first average point (x, ) and the average line segment length I is expressed as:

[0075] (2)

[0076] (3)

[0077] The direction angle can be determined by equations (2) and (3): The basic lane line can be determined based on the first average point and direction angle. Figure 3 In FIG. 1 , the basic lane line is a straight line 14 formed by connecting the origin of the coordinate system and the first average point.

[0078] Through this embodiment, the basic lane line is determined by combining multiple original lane lines, which can ensure that the direction of the basic lane line is the same as the basic direction of the multiple original lane lines, which is conducive to improving the fusion accuracy during subsequent fusion.

[0079] Back to Figure 2 In determining the coordinate value of the first average point, it is necessary to determine it based on the coordinate values ​​of all the sub-lane lines. In a specific embodiment, determining the coordinate value of the first average point based on the coordinate values ​​of all the sub-lane lines in the preset coordinate system includes:

[0080] Calculate the coordinate difference based on the starting point coordinate value and the end point coordinate value of the sub-lane line;

[0081] Based on the coordinate differences corresponding to all the sub-lane lines, a sum operation is used to determine the coordinate value of the first average point.

[0082] Specifically, determine the starting point coordinate value and the end point coordinate value of each lane line, such as Figure 2 As shown, the starting coordinate value of the lane line 1a is ( , ), the end point coordinate value of lane line 1a is ( , ). The coordinate difference of lane line 1a includes the x coordinate difference and the y coordinate difference , , Similarly, the coordinate difference of each lane line is calculated, and the sum of the coordinate differences is used as the coordinate value of the first average point, that is, , . , is the coordinate difference of sublane line 1b, , is the coordinate difference of sub-lane line 3c. Through the method of this embodiment, the first average point is calculated using the coordinate values ​​of all sub-lane lines, so that the first average point carries the coordinate information of all sub-lane lines, thereby improving the accuracy of determining the first average point.

[0083] The method for determining the fusion point is described below through a specific embodiment.

[0084] In some embodiments, the step of determining, based on the plurality of original lane lines, a fusion point corresponding to each basic point, includes:

[0085] Based on the multiple original lane lines, a fusion point corresponding to the basic point is determined through multiple rounds of iterative operations, including:

[0086] For each iteration, perform the following operations:

[0087] Determine the original point corresponding to the basic point in each original lane line respectively;

[0088] Determining a second average point based on the coordinate values ​​of all original points corresponding to the base point;

[0089] Along the extension direction of the basic lane line, the second average points corresponding to all the basic points are sequentially connected to form an initial fused lane line;

[0090] Calculating the similarity between the initial fused lane line and the basic lane line,

[0091] In response to the similarity being less than a preset threshold, taking the initial fused lane line as a basic lane line for a next round of iteration, and taking the second average point as a basic point for a next round of iteration;

[0092] In response to the similarity being greater than or equal to a preset threshold, the multiple rounds of iterative operations are stopped, and the second average point is used as the fusion point.

[0093] Specifically, this embodiment determines the fusion point through multiple rounds of iterations to obtain a fusion lane line with high accuracy. After determining the basic lane line and the basic point, for each basic point, determine the corresponding original point in each original lane line, such as Figure 2 As shown, the original point corresponding to the basic point A in the sub-lane line 1a is , the corresponding original point in sublane line 1b is , the corresponding original point in sublane line 1c is .according to , and Determine the second average point, the coordinate value of the second average point is obtained by , and The coordinate values ​​are calculated by averaging. Similarly, determine the second average point corresponding to each basic point. Along the extension direction of the basic lane line, connect the second average points corresponding to all basic points in sequence to form an initial fused lane line. When determining whether the initial fused lane line is the final fused lane line, it is necessary to judge the similarity between the initial fused lane line and the basic lane line. If the similarity is greater than or equal to the preset threshold, it means that the initial fused lane line is close to the basic lane line. The accuracy of the initial fused lane line obtained in the current round is high, and there is no need to continue iterative updating. In this case, the initial fused lane line is used as the final fused lane line. Figure 2 The fused lane line 15 shown. Based on the three original lane lines (the first lane line 11, the second lane line 12 and the third lane line 13), multiple rounds of iterative operations are performed to finally obtain the fused lane line 15. If the similarity is less than the preset threshold, it means that the initial fused lane line is far away from the basic lane line, and the initial fused lane line is used as the basic lane line in the next round of iteration, and the second average point in the initial fused lane line is used as the basic point in the next round of iteration, and the new initial fused lane line is calculated continuously until the similarity between the initial fused lane line of the current round and the basic lane line (that is, the initial fused lane line of the previous round) is greater than or equal to the preset threshold. The preset threshold can be selected according to actual needs. In this embodiment, the algorithm used to calculate the similarity between two lane lines is a distance algorithm, such as the Hausdorff distance algorithm. Through the method of this embodiment, multiple rounds of iterative operations are used to determine the fused lane line, and the fused lane line is continuously corrected through multiple rounds of iterations, which can improve the accuracy of the fused lane line determination.

[0094] When determining the original point according to the basic point, in order to improve the accuracy of the original point determination, in this embodiment, the original point corresponding to each basic point is determined by means of a scanning ray, which is specifically described in the following embodiment.

[0095] In some embodiments, determining the original point corresponding to the basic point in each original lane line respectively includes:

[0096] Setting a scanning ray along the normal direction of the basic lane line;

[0097] The scanning ray is moved along the extension direction of the basic lane line, and when the scanning ray moves to the basic point, an intersection point of the scanning ray and the original lane line is determined as the original point.

[0098] Specifically, Figure 4A schematic diagram of each lane line is shown. The scanning ray in this embodiment is a virtual auxiliary line, not a real straight line in the data source. The scanning ray is used to move and scan on the basic lane line according to a certain step length to assist in determining the original point corresponding to the basic point. Select any point on the basic lane line, construct the normal of the basic lane line based on this point, determine a point in the extension direction of the normal line as the endpoint of the scanning ray, and extend from this endpoint along one side of the normal line direction to form a scanning ray. The scanning ray intersects with the basic lane line and all original lane lines. Figure 4 As shown, the extending direction of the scanning ray 16 is parallel to the normal direction of the basic lane line 14, and the scanning ray 16 is moved along the extending direction of the basic lane line 14 (in Figure 4 When the scanning ray 16 moves to the base point A, the scanning ray intersects with the sub-lane line 1a, the sub-lane line 1b and the sub-lane line 1c at the same time, and the intersection points are respectively , and ,but , and is the original point corresponding to the base point A. Then according to , and The coordinates of the second average point are determined by , the second average point is a point on the fused lane line 15. By determining the original point by moving the scanning ray in this embodiment, the accuracy of determining the original point corresponding to the same basic point can be improved, and the original point that best matches the current basic point can be found, thereby improving the accuracy of subsequent fused lane line determination.

[0099] Since the scanning ray has the same normal direction as the basic lane line, if the basic lane line is a straight line, then only one scanning ray is required. If the basic lane line is a curve after iterative update, then the basic lane line needs to be processed before determining the scanning ray, which is specifically described in the following embodiment.

[0100] In some embodiments, the step of setting a scanning ray along a normal direction of the basic lane line includes:

[0101] Determine whether the basic lane line is a curve, and in response to the basic lane line being a curve, divide the basic lane line into a plurality of sub-basic lane lines, wherein the sub-basic lane lines are straight lines;

[0102] The corresponding scanning rays are set along the normal direction of each sub-basic lane line.

[0103] Specifically, when the basic lane line is a curve, it is necessary to divide the basic lane line into several straight line segments, each of which is a sub-basic lane line. Then, according to the normal direction of each sub-basic lane line, the corresponding scanning ray is determined. Figure 5 The scanning ray determination method of the sub-basic lane line is shown. Figure 5 As shown, the basic lane line 14 is divided into three sub-basic lane lines, namely, sub-basic lane line 4a, sub-basic lane line 4b, and sub-basic lane line 4c. The corresponding scanning rays are determined according to the normal direction of each sub-basic lane line. The sub-basic lane line 4a corresponds to the scanning ray 16a, and the extension direction of the scanning ray 16a is the same as the normal direction of the sub-basic lane line 4a. The sub-basic lane line 4b corresponds to the scanning ray 16b, and the extension direction of the scanning ray 16b is the same as the normal direction of the sub-basic lane line 4b. The sub-basic lane line 4c corresponds to the scanning ray 16c, and the extension direction of the scanning ray 16c is the same as the normal direction of the sub-basic lane line 4c. Through the method of this embodiment, when the basic lane line is a curve, the scanning ray corresponding to each lane line in the basic lane line can be accurately determined, and then the original point corresponding to each basic point can be accurately determined, further improving the accuracy of determining the original point.

[0104] In the aforementioned embodiment, when each original point is determined by scanning rays, it is necessary to identify the coordinates of each original point in the coordinate system XOY in turn. During the movement of the scanning rays, a large number of original point coordinate identification tasks will be generated, which increases the calculation amount of the server. Therefore, in order to save computing power costs, the present application adopts the coordinate system conversion method to calculate the coordinates of each original point, which is specifically explained through the following embodiments.

[0105] In some embodiments, determining the original point corresponding to the basic point in each original lane line respectively includes:

[0106] For each original lane line, the original lane line is divided into a plurality of sub-lane lines, wherein the sub-lane lines are straight lines;

[0107] Taking the origin of the preset coordinate system as the center, the preset coordinate system and the sub-lane line are rotated from the initial position, and when the extension direction of the sub-lane line is parallel to the extension direction of the basic lane line, the rotation is stopped, and the preset coordinate system after the rotation is stopped is used as the target coordinate system;

[0108] A scanning ray is set along the normal direction of the basic lane line, and the scanning ray is moved along the extension direction of the basic lane line. When the scanning ray moves to the basic point, an intersection point of the scanning ray and the rotated sub-lane line in the preset coordinate system located at the initial position is determined as the initial point;

[0109] According to the mapping relationship between the preset coordinate system located at the initial position and the target coordinate system, the initial point is mapped to the target coordinate system to obtain the original point.

[0110] Specifically, the method for dividing the original lane line in this embodiment is the same as that in the previous embodiment, and will not be repeated here. Since the extension direction of each segment of the lane line after division may be different from the basic lane line, before moving the scanning ray, in order to facilitate the calculation of the coordinates of the original point, the extension direction of each segment of the lane line is adjusted to be the same as the extension direction of the basic lane line. Figure 6 Figure 2 shows a schematic diagram of the rotation of the coordinate system. Figure 6 As shown, with the origin O of the coordinate system XOY as the center, the coordinate system XOY and the sub-lane line P are rotated from the current position (initial position). When the extension direction of the sub-lane line P is parallel to the extension direction of the basic lane line 14, the rotation is stopped, and the coordinate system after the rotation is stopped is used as the target coordinate system, and the target coordinate system is recorded as VOU, and the sub-lane line after the rotation is stopped is recorded as sub-lane line Q to distinguish it from the coordinate system XOY and the sub-lane line P. This is equivalent to rotating the coordinate system XOY and the sub-lane line P at the initial position. After the angle is reached, the rotation stops and the target coordinate system VOU and the sub-lane line Q are obtained. Similarly, for point p on the sub-lane line P, the rotation Angle is calculated and point q located on the sub-lane line Q is obtained. It should be noted that during the above rotation process, the basic lane line 14 does not rotate. After the rotation, the sub-lane line Q has the same extension direction as the basic lane line 14. When the scanning ray is moved along the extension direction of the basic lane line 14, the intersection points determined on the sub-lane line Q have the same y coordinates in the coordinate system XOY, and only the x coordinates are different. For the sub-lane line Q, when the coordinates of each intersection point in the coordinate system XOY are determined by moving the scanning ray, the y coordinate only needs to be determined once, which greatly reduces the number of intersection coordinate calculations, and the intersection point determined by the sub-lane line Q and the scanning ray in the coordinate system XOY is used as the initial point. From Figure 6It can be seen that the coordinates of the intersection points of the sub-lane line P and the scanning ray in the coordinate system XOY are actually equivalent to the coordinates of the intersection points of the sub-lane line Q and the scanning ray in the coordinate system VOU. Therefore, in order to obtain the coordinates of the intersection points of the sub-lane line P and the scanning ray in the coordinate system XOY, the initial point is mapped to the target coordinate system VOU to obtain the coordinates of the original point. Exemplarily, the coordinates of point q in the coordinate system XOY are (x1, y1), the coordinates of point q in the coordinate system VOU are (x0, y0), and the coordinates of point p in the coordinate system XOY are also (x0, y0). After the scanning ray moves, the initial point (x1, y1) is determined in the coordinate system XOY. Through the mapping relationship between the coordinate system XOY and the coordinate system VOU, the original point (x0, y0) can be calculated and determined. The following explains the conversion relationship between the coordinates (x0, y0) and the coordinates (x1, y1). As Figure 6 As shown, the angle between point p and point q is , the angle between point q and the x-axis of the coordinate system XOY is , the lengths of sub-lane line Q and sub-lane line Q are both set to r, then according to the triangle theorem, the following relationship exists:

[0111]

[0112]

[0113]

[0114]

[0115] From the above relationship, it can be seen that when (x1, y1) is known, (x0, y0) can be calculated. In this embodiment, by determining the initial point after the coordinate system conversion, the number of coordinate calculations can be effectively reduced, saving computing power costs. Then, based on the conversion relationship between the coordinate systems, the initial points are uniformly mapped to obtain the original points, which simplifies the calculation process of the original points and improves the efficiency of determining the original points, thereby improving the efficiency of determining the fused lane lines.

[0116] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0117] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0118] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a lane line fusion device.

[0119] refer to Figure 7 , the lane line fusion device comprises:

[0120] An acquisition module 702 is configured to acquire a plurality of original lane lines;

[0121] A first determining module 704 is configured to determine a basic lane line based on a plurality of original lane lines, wherein the basic lane line includes a plurality of basic points;

[0122] The second determination module 706 is configured to determine, based on the multiple original lane lines, a fusion point corresponding to each basic point;

[0123] The fusion module 708 is configured to sequentially connect the fusion points along the extension direction of the basic lane line to form a fusion lane line corresponding to the multiple original lane lines.

[0124] In some embodiments, the first determination module 704 is further configured to divide each original lane line into a plurality of sub-lane lines, wherein the sub-lane lines are straight lines;

[0125] Determine the coordinate value of the first average point based on the coordinate values ​​of all sub-lane lines in the preset coordinate system;

[0126] Based on the coordinate value of the first average point, calculating the direction angle corresponding to the first average point in the preset coordinate system;

[0127] The basic lane line is determined based on the first average point and the direction angle, wherein the basic lane line includes the first average point, and an angle between the basic lane line and a coordinate axis in the preset coordinate system is equal to the direction angle.

[0128] In some embodiments, the first determination module 704 is further configured to calculate a coordinate difference value based on the starting point coordinate value and the ending point coordinate value of the sub-lane line;

[0129] Based on the coordinate differences corresponding to all the sub-lane lines, a sum operation is used to determine the coordinate value of the first average point.

[0130] In some embodiments, the second determination module 706 is configured to determine the fusion point corresponding to the basic point through multiple rounds of iterative operations based on the multiple original lane lines, including:

[0131] For each iteration, perform the following operations:

[0132] Determine the original point corresponding to the basic point in each original lane line respectively;

[0133] Determining a second average point based on the coordinate values ​​of all original points corresponding to the base point;

[0134] Along the extension direction of the basic lane line, the second average points corresponding to all the basic points are sequentially connected to form an initial fused lane line;

[0135] Calculating the similarity between the initial fused lane line and the basic lane line,

[0136] In response to the similarity being less than a preset threshold, taking the initial fused lane line as a basic lane line for a next round of iteration, and taking the second average point as a basic point for a next round of iteration;

[0137] In response to the similarity being greater than or equal to a preset threshold, the multiple rounds of iterative operations are stopped, and the second average point is used as the fusion point.

[0138] In some embodiments, the second determination module 706 is configured to set a scanning ray along the normal direction of the basic lane line;

[0139] The scanning ray is moved along the extension direction of the basic lane line, and when the scanning ray moves to the basic point, an intersection point of the scanning ray and the original lane line is determined as the original point.

[0140] In some embodiments, the second determination module 706 is configured to determine whether the basic lane line is a curve, and in response to the basic lane line being a curve, divide the basic lane line into multiple sub-basic lane lines, wherein the sub-basic lane lines are straight lines; and set corresponding scanning rays along the normal direction of each sub-basic lane line.

[0141] In some embodiments, the second determination module 706 is configured to divide each original lane line into a plurality of sub-lane lines, wherein the sub-lane lines are straight lines;

[0142] Taking the origin of the preset coordinate system as the center, the preset coordinate system and the sub-lane line are rotated from the initial position, and when the extension direction of the sub-lane line is parallel to the extension direction of the basic lane line, the rotation is stopped, and the preset coordinate system after the rotation is stopped is used as the target coordinate system;

[0143] A scanning ray is set along the normal direction of the basic lane line, and the scanning ray is moved along the extension direction of the basic lane line. When the scanning ray moves to the basic point, an intersection point of the scanning ray and the rotated sub-lane line in the preset coordinate system at the initial position is determined as the initial point;

[0144] According to the mapping relationship between the preset coordinate system located at the initial position and the target coordinate system, the initial point is mapped to the target coordinate system to obtain the original point.

[0145] In some embodiments, before determining the basic lane line based on multiple original lane lines, a preprocessing module is also included, and the preprocessing module is configured to preprocess the multiple original lane lines to remove abnormal data; and classify the multiple original lane lines after removing the abnormal data based on preset categories.

[0146] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0147] The device of the above embodiment is used to implement the corresponding lane line fusion method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0148] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the lane line fusion method described in any of the above embodiments is implemented.

[0149] Figure 8 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0150] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0151] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0152] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0153] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0154] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).

[0155] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0156] The electronic device of the above embodiment is used to implement the corresponding lane line fusion method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0157] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the lane line fusion method described in any of the above embodiments.

[0158] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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, read-only 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.

[0159] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the lane line fusion method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0160] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer executes the method described in any of the above embodiments, which has the beneficial effects of the corresponding method embodiments and will not be repeated here.

[0161] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0162] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power / ground connections to the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device may be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application are to be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0163] Although the present application has been described in conjunction with specific embodiments of the present application, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the discussed embodiments.

[0164] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A lane line fusion method, It is characterized in that include: Get multiple original lane lines; Determine a basic lane line based on the multiple original lane lines, wherein the basic lane line includes multiple basic points; The determining of the basic lane line based on the multiple original lane lines includes: For each original lane line, the original lane line is divided into a plurality of sub-lane lines, wherein the sub-lane lines are straight lines; Determine the coordinate value of the first average point based on the coordinate values ​​of all sub-lane lines in the preset coordinate system; Based on the coordinate value of the first average point, calculating the direction angle corresponding to the first average point in the preset coordinate system; Determine the basic lane line based on the first average point and the direction angle, wherein the basic lane line includes the first average point, and an angle between the basic lane line and a coordinate axis in the preset coordinate system is equal to the direction angle; Based on multiple original lane lines, the fusion points corresponding to each basic point are determined respectively, including: Based on the multiple original lane lines, a fusion point corresponding to the basic point is determined through multiple rounds of iterative operations, including: For each iteration, perform the following operations: Determine the original point corresponding to the basic point in each original lane line respectively; Determining a second average point based on the coordinate values ​​of all original points corresponding to the base point; Along the extension direction of the basic lane line, the second average points corresponding to all the basic points are sequentially connected to form an initial fused lane line; Calculating the similarity between the initial fused lane line and the basic lane line, In response to the similarity being less than a preset threshold, taking the initial fused lane line as a basic lane line for a next round of iteration, and taking the second average point as a basic point for a next round of iteration; In response to the similarity being greater than or equal to a preset threshold, stopping the multiple rounds of iterative operations and taking the second average point as the fusion point; The fusion points are connected in sequence along the extension direction of the basic lane lines to form fusion lane lines corresponding to the multiple original lane lines.

2. The method according to claim 1, It is characterized in that The step of determining the coordinate value of the first average point based on the coordinate values ​​of all sub-lane lines in the preset coordinate system includes: Calculate the coordinate difference based on the starting point coordinate value and the end point coordinate value of the sub-lane line; Based on the coordinate differences corresponding to all the sub-lane lines, a sum operation is used to determine the coordinate value of the first average point.

3. The method according to claim 1, It is characterized in that The determining of the original point corresponding to the basic point in each original lane line respectively includes: Setting a scanning ray along the normal direction of the basic lane line; The scanning ray is moved along the extension direction of the basic lane line, and when the scanning ray moves to the basic point, an intersection point of the scanning ray and the original lane line is determined as the original point.

4. The method according to claim 3, It is characterized in that The step of setting a scanning ray along the normal direction of the basic lane line includes: Determine whether the basic lane line is a curve, and in response to the basic lane line being a curve, divide the basic lane line into a plurality of sub-basic lane lines, wherein the sub-basic lane lines are straight lines; The corresponding scanning rays are set along the normal direction of each sub-basic lane line.

5. The method according to claim 1, It is characterized in that The determining of the original point corresponding to the basic point in each original lane line respectively includes: For each original lane line, the original lane line is divided into a plurality of sub-lane lines, wherein the sub-lane lines are straight lines; Taking the origin of the preset coordinate system as the center, the preset coordinate system and the sub-lane line are rotated from the initial position, and when the extension direction of the sub-lane line is parallel to the extension direction of the basic lane line, the rotation is stopped, and the preset coordinate system after the rotation is stopped is used as the target coordinate system; A scanning ray is set along the normal direction of the basic lane line, and the scanning ray is moved along the extension direction of the basic lane line. When the scanning ray moves to the basic point, an intersection point of the scanning ray and the rotated sub-lane line in the preset coordinate system located at the initial position is determined as the initial point; According to the mapping relationship between the preset coordinate system located at the initial position and the target coordinate system, the initial point is mapped to the target coordinate system to obtain the original point.

6. The method according to claim 1, It is characterized in that Before determining the basic lane line based on multiple original lane lines, the following steps are performed: Preprocess multiple original lane lines to remove abnormal data; The multiple original lane lines after removing abnormal data are classified based on preset categories.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.

8. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 6.