Method and system for generating double yellow lane lines in high-precision map roads
Through the random sampling consistency RANSAC algorithm and baseline splicing technology, the problem of fitting double yellow lane lines in high-precision maps is solved, automatic generation of smooth and complete double yellow lines is realized, and the accuracy and stability of the map are improved.
Patent Information
- Application Number
- CN202311709265.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-12-13
AI Technical Summary
Existing high-precision map technology is difficult to accurately identify and fit the double yellow lane lines on the road, resulting in the problem of missing point clouds and single-line connections in the autonomous driving system during the automation stage, affecting the accuracy and completeness of the map.
The random sampling consistency RANSAC algorithm is combined with the baseline splicing and completion technology to process the point cloud through clustering and segmentation to filter out the double-line point cloud, and use the baseline for secondary fitting and completion to generate a complete double-line point cloud. Yellow lane markings.
It realizes fully automatic generation of double yellow lines on roads, improves the accuracy and completeness of the map, reduces the impact of noise, and generates double yellow lines that are smooth and meet cartographic requirements.
Smart Images

Figure CN117723043B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of high-precision map technology, and in particular to a method and system for generating double yellow lane lines in a high-precision map road. Background Art
[0002] As the infrastructure of the autonomous driving system, the precision and accuracy of high-precision maps are crucial to the autonomous driving system. Generally speaking, there is no way for the perception algorithm to identify double lines separately and distinguish them from single lines, and it is also easy to go wrong when fitting. In essence, a set of data fits two models, which leads to the current situation that double lines on the road are mainly fitted with single lines in the automation stage and then manually filled in. This is the key and difficulty in high-precision map making.
[0003] In the HD map production process, although the point cloud has been divided into various types of lane lines, such as solid white lines, dotted yellow lines, etc., because the accuracy is not very high at the beginning and there is a need to complete the point cloud, we roughly divide all linear point clouds into two types: curbs and lane lines. Double lines are the most difficult type to fit. First of all, the visual algorithm currently does not support the recognition of double lines, and the essence of double lines is a set of data fitting two models. Finally, double lines are prone to missing point clouds and connecting with single lines, and the upstream and downstream algorithms must be adapted separately. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a method and system for generating double yellow lane lines on a high-precision map road, which can automatically generate double yellow lines on the road.
[0005] To achieve the above object, the technical solution of the present invention provides a method for generating double yellow lane lines in a high-precision map road, which comprises the following steps: S1: clustering all point clouds, and segmenting the clusters at a certain distance according to the baseline; S2: using the random sampling consistency RANSAC algorithm for initial fitting, screening out point clouds belonging to double lines and marking them; S3: clustering the line segments containing potential double line components and splicing them into a baseline;
[0006] S4: Re-find the point cloud clusters and segment them; S5: Use the RANSAC algorithm to perform a second fitting of the segments to obtain double lines, and fill in the missing parts with the baseline.
[0007] Further, step S2 includes: S21: when performing initial fitting, by setting a threshold and comparing the inlier rate of the optimal solution with the threshold, point clouds that may be double lines are screened out.
[0008] Furthermore, step S2 also includes: S22: for the suboptimal solutions generated in the initial fitting process, screen out some suboptimal solutions whose directional deviation is less than a certain threshold and whose inlier rate is greater than a certain threshold; S23: calculate the intersection points of these screened suboptimal solutions with the perpendicular bisector of the baseline and arrange them in order of height, and the distance between the highest point and the lowest point represents the width; S24: if the intersection distance of two adjacent suboptimal solutions on the perpendicular bisector of the baseline is greater than a certain threshold, it is considered that the point cloud is obviously stratified here, and then the sorted suboptimal solution is divided into two parts, and then the suboptimal solution with the highest inlier rate is found from the suboptimal solutions in the upper and lower parts to represent the center of the distribution of the upper and lower point clouds; wherein, the criterion for judging whether the double-line fitting is met is that the width is greater than a certain threshold and there is obvious stratification; when the width is greater than a certain threshold, but there is no obvious stratification, fitting is performed according to the thick solid line using the least squares method.
[0009] Furthermore, in step S22, when screening some suboptimal solutions, the angle between the suboptimal solution and the optimal solution is first calculated, and the angles greater than a certain threshold are filtered out, and the inlier rate of the remaining suboptimal solutions is divided by the inlier rate of the optimal solution. If it is less than a certain threshold, it is filtered out.
[0010] Furthermore, in step S2, after the point cloud of the double line is screened out and marked, only a single line is still fitted, or when the double line has been fitted, the midpoints of the beginning and the end of the double line are taken to fit a single line, and then the upstream and downstream single lines are associated and fused together to fit a longer single line as the baseline for the subsequent secondary fitting.
[0011] Furthermore, in step S3, lane lines containing double-line components higher than a certain ratio are first defined as potential double lines, and then these line segments containing the same features are clustered.
[0012] Furthermore, in step S3, the basis for clustering is to draw a perpendicular bisector of a certain length for the line string composed of every two adjacent points on a line. If there is an intersection with an angle less than a certain threshold, the length of such continuous intersection is counted. If the length is greater than a certain threshold, it is considered that the two lines are partially parallel and added to the cluster. At the same time, the point cloud near the line string added to the cluster is clustered together as the data to be fitted; and the longest one in the line cluster is selected as the baseline, and then the other lines are intercepted and grafted on to extend the baseline.
[0013] Furthermore, in step S5, suboptimal solutions with directional deviation less than a certain threshold and inlier rate greater than a certain threshold are retained, and after translating the baseline to the center of the point cloud, suboptimal solutions within a certain distance above and below are excluded, and then two local optimal solutions, one above and one below, are selected as the final double line; finally, the segmented upper and lower lines are merged and complemented to obtain a complete double yellow line.
[0014] Furthermore, in step S5, for the portion that still only generates a single line after forced fitting of the double line, the nearest line segment is found by upper and lower judgments, and it is determined which of the upper line and the lower line has the smallest deviation, so as to perform classification.
[0015] The technical solution of the present invention also provides a system for generating double yellow lane lines in high-precision map roads, which includes the following modules: a clustering and segmentation module, which is used to generate clusters of all point clouds and segment the clusters at certain distances according to the baseline; an initial RANSAC fitting module, which is used to perform initial fitting using the random sampling consistency RANSAC algorithm, screen out point clouds belonging to double lines and mark them; a baseline splicing module, which is used to cluster line segments containing potential double line components and splice them into baselines; a re-clustering and segmentation module, which is used to re-find point cloud clusters and segment them; a secondary RANSAC fitting module, which is used to use the RANSAC algorithm to perform secondary fitting of the segments to obtain double lines, and fill in the missing parts using the baseline. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is an overall flow chart of the method for generating double yellow lane lines in a high-precision map road of the present invention;
[0017] Figure 2 It is a schematic diagram of using baselines to segment the clusters of point clouds;
[0018] Figure 3 Schematic diagram of the model inlier rate during RANSAC fitting;
[0019] Figure 4 It is a schematic diagram of the projection of two connected lines on the perpendicular bisector of the reference line;
[0020] Figure 5 It is a schematic diagram of the steps of line distance and extending the baseline;
[0021] Figure 6 It is a schematic diagram of the suboptimal solution within a certain range of the baseline;
[0022] Figure 7 This is a schematic diagram of using baseline offset translation to perform padding operations. DETAILED DESCRIPTION
[0023] The technical solution of the present invention is further described below in conjunction with specific embodiments, but the present invention is not limited to these embodiments.
[0024] The present invention provides a method for generating double yellow lane lines in a high-precision map road. The overall process is as follows: Figure 1 shown.
[0025] Fit lane lines normally and record the parts with double lines
[0026] Since the algorithm for normal lane fitting does not belong to the core content of the present invention, it is only briefly discussed. Figure 2 , mainly using the upper and lower boundaries of the road polygon to generate a baseline. Then all the point clouds are classified and clustered using the DBSCAN algorithm. Next, the clusters are segmented at a certain distance according to the baseline. Fit a line string inside each cluster and then connect the lane lines of each cluster in sequence to form a relatively complete lane line. At the same time, an algorithm based on random sampling consistency is used to determine whether it is a double line and record it. Finally, there is a series of connection and completion algorithms. The following focuses on the first key point of the present invention, how to use the random sampling consistency algorithm to identify double lines.
[0027] Random Sampling Consensus (RANSAC) algorithm
[0028] Generally speaking, there are two common algorithms for fitting a straight line using a series of unordered point clouds. One is the least squares method, which minimizes the sum of the distances from all points to the straight line. This method is easily affected by noise. Another algorithm is the random sampling consistency algorithm, which randomly selects two points to make a straight line, and then counts the inlier rates of the remaining points to it, and retains the optimal solution after iteration. The advantage of this algorithm is that it can avoid noise and generate a straight line in the place with the highest density. The disadvantage is that the fitting effect for thick solid lines and double lines is not good, and it is easy to produce diagonal lines or only fit one side. The present invention improves the random sampling consistency algorithm to unify the judgment and fitting of double lines, while not affecting the fitting of other normal single lines.
[0029] like Figure 3 As shown, the inlier rate of the model in the oblique horizontal direction is obviously higher than that in the oblique vertical direction, which is a better solution.
[0030] The algorithm of the present invention will set a certain threshold, and finally obtain the inlier rate of the optimal solution. If the inlier rate exceeds the threshold, it can be considered that the linearity is good, and according to the traditional RANSAC algorithm, only a straight line needs to be fitted. If the threshold standard is not reached, there may be a point cloud with poor linearity such as double lines or thick solid lines. At this time, a secondary fitting is performed according to the following steps. The feature that distinguishes the present invention from the traditional RANSAC algorithm is that the baseline generated above is used. The segmented baseline (the segment belonging to the cluster) is translated to the center of the point cloud as a reference line for RANSAC for secondary fitting.
[0031] Basic principles of random sampling consensus algorithm for fitting double lines
[0032] The main innovation of the present invention is to utilize the suboptimal solutions left by all the sampling. The suboptimal solutions can essentially represent the distribution of the point cloud. Using the baseline mentioned above, the angle between the suboptimal solution and the optimal solution will be calculated first, and the ones with too large angles will be filtered out. Then a percentage threshold will be set (for example, 80%). The remaining suboptimal solutions whose inlier rate is less than the threshold divided by the inlier rate of the optimal solution will also be filtered out. These suboptimal solutions will calculate the intersection points with the perpendicular bisector of the baseline and arrange them according to height (that is, the distance between the intersection point and the perpendicular bisector and set positive and negative according to the left and right sides). The distance between the highest point and the lowest point can represent the width. If the width is not enough, it is a single line. Considering that the point cloud may have a certain width but the linearity is not high enough, the least squares method can be used to fit a single line this time. If the distance between the intersection points of two adjacent suboptimal solutions after sorting on the perpendicular line of the baseline is greater than a certain threshold, it can be considered that the point cloud is obviously stratified here (if there is a relatively dense point cloud in the area between the two suboptimal solutions, it is almost impossible to have no suboptimal solution if the number of sampling times is sufficient). The stratification here refers to the obvious blank space in the middle of the point cloud representing the double line (it is also possible to have insufficient density), and two models should be used to fit, that is, the upper and lower parts use the RANSAC algorithm respectively. Then the sorted suboptimal solution can be divided into two parts, and then the suboptimal solution with the highest internal point rate in the upper and lower parts can be found to represent the center of the distribution of the upper and lower point clouds. Ideally, this will get a double line, and then the double lines of each cluster fitting can be connected. On the contrary, there is no such blank space in the middle of the point cloud with a width greater than the threshold, and it can only be treated as a whole thick solid line. At this time, the least squares method should be used for fitting.
[0033] like Figure 4 As shown, the lines on both sides of the baseline are potential suboptimal solutions. If the projection interval between the two connected lines on the perpendicular bisector of the baseline is greater than a certain threshold, they can be considered as double lines.
[0034] However, it should be noted that there are two prerequisites for fitting the double line mentioned above. First, the width is sufficient, and second, there must be a sufficient distance between the layers in the middle. This condition is not met by all point clouds. For example, the point cloud in some places is noisy and cannot be layered, or the point cloud in some places is missing and the width is insufficient. As mentioned above, we fit the point cloud obtained by DBSCAN clustering in segments. As long as most of the segments meet the conditions of the double line, we might as well use the upstream and downstream information to fit it into a double line. Therefore, the above steps are more accurately called a single fitting, not a single fitting. Find the point cloud belonging to the double line and mark it. This time, only a single line is still fitted. Even if a double line has been fitted, the midpoints of the two lines are still taken at the beginning and end to fit a single line. Then, according to the normal steps, the upstream and downstream single lines are associated and fused together to fit a longer single line. This single line will be used as the baseline for the subsequent secondary fitting, which generally represents the direction and center distribution of the point cloud.
[0035] Quadratic fitting of double yellow lane lines
[0036] As mentioned above, all the lines are fitted at the beginning, and then the double lines are fitted uniformly to prevent the double line connection errors caused by the lack of point clouds in the middle. Here, the lane lines with double line components higher than a certain proportion are defined as potential double lines, and then these line segments with the same characteristics are clustered. The basis of clustering is to make a perpendicular line of a certain length in the line string composed of every two adjacent points on a line. If there is an intersection with an angle less than a certain threshold, the length of the continuous intersection is counted. If it is greater than a certain threshold, it is considered that the two lines are partially parallel and can be added to the cluster. At the same time, the point clouds near the line strings added to the cluster are clustered together as data to be fitted. Finally, the longest one in the line cluster will be selected as the baseline, and then the other lines will be intercepted and grafted to extend the baseline. Similar to the above process, double lines are also fitted in segments according to a certain length, but the blank area between the solid line and the dotted line is not segmented, and no fitting is performed, only interpolation can be performed.
[0037] like Figure 5 As shown, when extending the baseline, a first finds b and extends the head of b, and then b finds c and extends the tail of b.
[0038] Using RANSAC algorithm to force fitting of double lines
[0039] After obtaining the point cloud corresponding to the baseline, the remaining thing is to fit it in segments. According to the above, the double line must have a clear gap in the middle, and the thick solid line cannot meet this requirement. In the final forced fitting stage, as long as it is not an obvious single line, it is fitted according to the double line to ensure that the final double line is as complete as possible. The basic principle is to retain the suboptimal solution with small direction deviation and not too low internal point rate. After translating the baseline to the center of the point cloud, exclude the suboptimal solution within a certain distance above and below, and then select the upper and lower local optimal solutions as the final double line. The judgment of the upper and lower is very important, because the upper and lower lines generated by the connected clusters must be connected, not reversed. For the double line, it is actually very simple, just calculate the cross product of the center point and the baseline. However, for the part that still only produces a single line after the forced fitting of the double line, the upper and lower judgment can only find the nearest line segment, and judge which deviation is the smallest, which is classified as the upper line and the lower line, so as to classify. Finally, the upper and lower lines after segmentation are merged and filled to obtain a complete double yellow line.
[0040] like Figure 6 As shown in the figure, the suboptimal solutions within a certain range from the baseline will be eliminated, and finally the optimal solutions in the upper and lower half areas will be selected as the double lines as shown in the figure.
[0041] The role of baseline
[0042] It can be seen that in the entire algorithm process, the baseline plays an extremely important role both in the early and later stages. It can be used as a tool for cutting point clouds, and as the approximate direction of lane lines. In many gaps, the baseline also needs to be used to fill in the gaps, that is, to intercept a section of the starting and ending points of the gap projected onto the lane line, and then connect it to the gap or disconnection through translation and offset operations.
[0043] like Figure 7 As shown in the figure, this is the double-line point cloud of the virtual lane line (the two clusters on the left) and the solid double lane line (the cluster on the far right). This situation often occurs when approaching the intersection. Obviously, the point cloud is missing in the middle to fit it into a complete double yellow line, so the baseline offset translation is used to fill it in, and the baseline here also plays the role of distinguishing the upper and lower lines.
[0044] Through the above process, the double-line geometric elements in the road can be fitted while retaining the ordinary lane lines, and then the attribute values can be added to them to obtain the lane line layer in the road.
[0045] In an embodiment of the present invention, a method for generating double yellow lane lines in a high-precision map road includes the following steps: S1: clustering all point clouds, and segmenting the clusters at certain distances according to a baseline; S2: using a random sampling consistency RANSAC algorithm for initial fitting, screening out point clouds belonging to double lines and marking them; S3: clustering line segments containing potential double line components, and splicing them into a baseline; S4: re-finding point cloud clusters and segmenting them; S5: using the RANSAC algorithm to perform secondary fitting of the segments to obtain double lines, and filling in the missing parts with the baseline.
[0046] Further, step S2 includes: S21: when performing initial fitting, by setting a threshold and comparing the inlier rate of the optimal solution with the threshold, point clouds that may be double lines are screened out.
[0047] Furthermore, step S2 also includes: S22: for the suboptimal solutions generated in the initial fitting process, screen out some suboptimal solutions whose directional deviation is less than a certain threshold and whose inlier rate is greater than a certain threshold; S23: calculate the intersection points of these screened suboptimal solutions with the perpendicular bisector of the baseline and arrange them in order of height, and the distance between the highest point and the lowest point represents the width; S24: if the intersection distance of two adjacent suboptimal solutions on the perpendicular bisector of the baseline is greater than a certain threshold, it is considered that the point cloud is obviously stratified here, and then the sorted suboptimal solution is divided into two parts, and then the suboptimal solution with the highest inlier rate is found from the suboptimal solutions in the upper and lower parts to represent the center of the distribution of the upper and lower point clouds; wherein, the criterion for judging whether the double-line fitting is met is that the width is greater than a certain threshold and there is obvious stratification; when the width is greater than a certain threshold, but there is no obvious stratification, fitting is performed according to the thick solid line using the least squares method.
[0048] Furthermore, in step S22, when screening some suboptimal solutions, the angle between the suboptimal solution and the optimal solution is first calculated, and the angles greater than a certain threshold are filtered out, and the inlier rate of the remaining suboptimal solutions is divided by the inlier rate of the optimal solution. If it is less than a certain threshold, it is filtered out.
[0049] Furthermore, in step S2, after the point cloud of the double line is screened out and marked, only a single line is still fitted, or when the double line has been fitted, the midpoints of the beginning and the end of the double line are taken to fit a single line, and then the upstream and downstream single lines are associated and fused together to fit a longer single line as the baseline for the subsequent secondary fitting.
[0050] Furthermore, in step S3, lane lines containing double-line components higher than a certain ratio are first defined as potential double lines, and then these line segments containing the same features are clustered.
[0051] Furthermore, in step S3, the basis for clustering is to draw a perpendicular bisector of a certain length for the line string composed of every two adjacent points on a line. If there is an intersection with an angle less than a certain threshold, the length of such continuous intersection is counted. If the length is greater than a certain threshold, it is considered that the two lines are partially parallel and added to the cluster. At the same time, the point cloud near the line string added to the cluster is clustered together as the data to be fitted; and the longest one in the line cluster is selected as the baseline, and then the other lines are intercepted and grafted on to extend the baseline.
[0052] Furthermore, in step S5, suboptimal solutions with directional deviation less than a certain threshold and inlier rate greater than a certain threshold are retained, and after translating the baseline to the center of the point cloud, suboptimal solutions within a certain distance above and below are excluded, and then two local optimal solutions, one above and one below, are selected as the final double line; finally, the segmented upper and lower lines are merged and complemented to obtain a complete double yellow line.
[0053] Furthermore, in step S5, for the portion that still only generates a single line after forced fitting of the double line, the nearest line segment is found by upper and lower judgments, and it is determined which of the upper line and the lower line has the smallest deviation, so as to perform classification.
[0054] In other embodiments of the present invention, a system for generating double yellow lane lines in high-precision map roads includes the following modules: a clustering and segmentation module, which is used to generate clusters of all point clouds and segment the clusters at certain distances according to the baseline; an initial RANSAC fitting module, which is used to perform initial fitting using the random sampling consistency RANSAC algorithm, screen out point clouds belonging to double lines and mark them; a baseline splicing module, which is used to cluster line segments containing potential double line components and splice them into baselines; a re-clustering and segmentation module, which is used to re-find point cloud clusters and segment them; a secondary RANSAC fitting module, which is used to use the RANSAC algorithm to perform secondary fitting of the segments to obtain double lines, and fill in the missing parts using the baseline.
[0055] Beneficial effects brought by the technical solution of the present invention
[0056] (1) Able to generate smooth double yellow lines (usually in the center) on roads that meet mapping requirements.
[0057] (2) The combination of RANSAC and least squares can also reduce noise and make general straight lines smoother.
[0058] The above is only a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several modifications and improvements without departing from the inventive concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for generating double yellow lane lines in a high-precision map road, characterized in that: The steps include: S1: All point clouds are clustered and the clusters are segmented at certain distances according to the baseline; S2: Use the RANSAC algorithm for initial fitting, filter out the point cloud belonging to the double line and mark it; S3: Cluster the line segments containing potential double line components and splice them into baselines; S4: Re-find point cloud clusters and perform segmentation; S5: Use the RANSAC algorithm to fit the double lines of the segmented parts, and fill the missing parts with the baseline; Step S2 includes: S21: When performing the initial fitting, a threshold is set and the inlier rate of the optimal solution is compared with the threshold to screen out the point cloud that may be a double line; S22: For the suboptimal solutions generated in the initial fitting process, select some suboptimal solutions whose direction deviation is less than a certain threshold and whose inlier rate is greater than a certain threshold; S23: Calculate the intersection points of these selected suboptimal solutions with the perpendicular midline of the baseline and arrange them in order of height. The distance between the highest point and the lowest point represents the width. S24: If the distance between the intersection points of two adjacent suboptimal solutions on the perpendicular midline of the baseline is greater than a certain threshold, it is considered that the point cloud is obviously stratified at this point, and then the sorted suboptimal solution is divided into two parts, and then the suboptimal solution with the highest internal point rate is found from the upper and lower parts to represent the distribution center of the upper and lower point clouds; Among them, the criteria for judging compliance with double-line fitting are that the width is greater than a certain threshold and there is obvious stratification; When the width is greater than a certain threshold, but there is no obvious stratification, the least squares method is used to fit according to the thick solid line; and among them, In step S5, the suboptimal solutions whose directional deviation is less than a certain threshold and whose inlier rate is greater than a certain threshold are retained, and the baseline is translated to the center of the point cloud, and the suboptimal solutions within a certain distance above and below are excluded, and then two local optimal solutions, one above and one below, are selected as the final double lines; finally, the segmented upper and lower lines are merged and completed to obtain a complete double yellow line.
2. The method according to claim 1, characterized in that In step S22, when filtering out some suboptimal solutions, first calculate the angle between the suboptimal solution and the optimal solution, filter out the angles that are greater than a certain threshold, and divide the inlier rate of the remaining suboptimal solutions by the inlier rate of the optimal solution. If the angle is less than a certain threshold, filter out the remaining suboptimal solutions.
3. The method according to claim 2, characterized in that In step S2, after the point cloud of the double line is screened out and marked, only a single line is still fitted, or if the double line has been fitted, a single line is fitted by taking the midpoints of the beginning and end of the double line, and then the upstream and downstream single lines are associated and fused together to fit a longer single line as the baseline for the subsequent secondary fitting.
4. The method according to claim 3, characterized in that In step S3, lane lines containing double-line components higher than a certain ratio are first defined as potential double lines, and then these line segments with the same features are clustered.
5. The method according to claim 4, characterized in that In step S3, the basis for clustering is to make a perpendicular line of a certain length in the line string composed of every two adjacent points on a line. If there is an intersection with an angle less than a certain threshold, the length of such continuous intersection is counted. If the length is greater than a certain threshold, it is considered that the two lines are partially parallel and added to the cluster. At the same time, the point cloud near the line string added to the cluster is clustered together as the data to be fitted; and In the line clustering, the longest one is selected as the baseline, and then other lines are cut and grafted onto it to extend the baseline.
6. The method according to claim 5, characterized in that In step S5, for the portion that still generates only a single line after forced fitting of the double line, the nearest line segment is found by upper and lower judgment, and it is determined which of the upper line and the lower line has the smallest deviation, so as to perform classification.
7. A system for generating double yellow lane lines on high-precision map roads, characterized in that: Includes the following modules: The clustering and segmentation module is used to generate clusters for all point clouds and segment the clusters at certain distances according to the baseline; The initial RANSAC fitting module is used to perform initial fitting using the RANSAC algorithm, filter out the point cloud belonging to the double line and mark it; A baseline splicing module is used to cluster line segments containing potential double line components and splice them into baselines; Re-clustering and segmentation module, used to re-find point cloud clusters and perform segmentation; The secondary RANSAC fitting module is used to use the RANSAC algorithm to fit the double lines of the segmented quadratic model and fill the missing parts with the baseline. The initial RANSAC fitting module includes the following steps when performing initial fitting: S21: When performing the initial fitting, a threshold is set and the inlier rate of the optimal solution is compared with the threshold to screen out the point cloud that may be a double line; S22: For the suboptimal solutions generated in the initial fitting process, select some suboptimal solutions whose direction deviation is less than a certain threshold and whose inlier rate is greater than a certain threshold; S23: Calculate the intersection points of these selected suboptimal solutions with the perpendicular midline of the baseline and arrange them in order of height. The distance between the highest point and the lowest point represents the width. S24: If the distance between the intersection points of two adjacent suboptimal solutions on the perpendicular midline of the baseline is greater than a certain threshold, it is considered that the point cloud is obviously stratified at this point, and then the sorted suboptimal solution is divided into two parts, and then the suboptimal solution with the highest internal point rate is found from the upper and lower parts to represent the distribution center of the upper and lower point clouds; Among them, the criteria for judging compliance with double-line fitting are that the width is greater than a certain threshold and there is obvious stratification; When the width is greater than a certain threshold, but there is no obvious stratification, the least squares method is used to fit according to the thick solid line; and among them, When performing secondary fitting, the secondary RANSAC fitting module retains suboptimal solutions whose directional deviation is less than a certain threshold and whose inlier rate is greater than a certain threshold, and excludes suboptimal solutions within a certain distance above and below after translating the baseline to the center of the point cloud, and then selects two local optimal solutions, one above and one below, as the final double lines; finally, the segmented upper line and lower line are merged and completed to obtain a complete double yellow line.
