Lane detection method, data processing unit and vehicle-mounted laser radar system
By screening, filtering and clustering LiDAR point cloud data and directly performing curve fitting, the problems of data conversion errors and indirect reference position acquisition errors in the existing technology are solved, and the accuracy and speed of lane line detection are improved. Expanded application scenarios.
Patent Information
- Application Number
- CN202010310533.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-20
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-04-20
AI Technical Summary
Existing methods of using lidar for lane line detection have problems with missing data and errors in the data conversion process, as well as problems with large data errors and low accuracy when using reference positions to indirectly obtain lane line information.
Screen the point data corresponding to the ground from the LiDAR point cloud data, perform filtering and clustering, obtain the lane lines through curve fitting, and directly use the point cloud data to avoid data conversion errors and improve data accuracy.
Through multi-layer filtering and clustering optimization, the accuracy of lane line detection is improved, errors are reduced, extraction speed is faster, and application scenarios are wider.
Smart Images

Figure CN113534170B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser detection technology, and in particular to a method for detecting lane lines using a laser radar, a data processing unit of the laser radar, and a vehicle-mounted laser radar system. Background Art
[0002] With the development of unmanned driving technology, lane line detection, as an important task of the environmental perception system in the process of unmanned driving, has gradually become a hot topic of research. Only by accurately obtaining the specific location of the lane line can the autonomous navigation system plan a reasonable driving path, and the unmanned vehicle can correctly make driving, overtaking and lane changing behaviors. At present, the lane line detection method based on visual detection and the lane line detection method based on laser radar detection are the two main methods for detecting lane lines. Since the visual detection method is sensitive to ambient light, has high requirements for the integrity and uniform format of the logo, and cannot cope with low light, water coverage and other scenes, researchers are increasingly turning their attention to laser radar detection. The echo signal of the laser radar is determined by the inherent property of the object-reflectivity, which can more realistically reflect the characteristics of the object.
[0003] There are three main methods for lane line detection using lidar: one is to perform rasterization processing on the point cloud data measured by the lidar, and then perform denoising and curve fitting on the rasterized data to obtain lane line information; the second is to build a map based on multi-frame point cloud data to obtain a local map, convert it into a histogram, and detect lane line data in the histogram; the third is to extract the position of the curb point based on the point data belonging to the ground, and infer the lane line position based on the curb point position.
[0004] The methods in the prior art generally convert point cloud data into rasterized data or histogram data, rather than directly using the point cloud data measured by the lidar. In the data conversion process, there will be problems such as data missing and data conversion errors. In addition, the point data belonging to the ground is used to obtain the curb point position as the reference position, and the lane line position is calculated based on the curb point position. This method of indirectly obtaining lane line information using the reference position will have problems such as large data errors and low data accuracy.
[0005] The contents of the background technology section are merely the technologies known to the public and do not necessarily represent the existing technologies in the field. Summary of the invention
[0006] In view of at least one defect of the prior art, the present invention provides a lane line detection method using a laser radar, comprising:
[0007] Filter out the point data corresponding to the ground from the point cloud data of the laser radar;
[0008] Filter the point data corresponding to the ground to obtain point data corresponding to the ground mark;
[0009] Clustering the point data corresponding to the ground mark to obtain a clustering result;
[0010] According to the number of point data in each cluster in the clustering result, some clusters in the clustering result are selected for curve fitting to obtain the lane line.
[0011] According to one aspect of the present invention, the step of filtering out point data corresponding to the ground from the point cloud data of the laser radar comprises:
[0012] According to the change of the distance and / or height between each circle of point data in the point cloud data, it is determined whether the point data corresponds to the ground.
[0013] According to one aspect of the present invention, the step of filtering the point data corresponding to the ground to obtain the point data corresponding to the ground mark includes:
[0014] Set the light intensity threshold;
[0015] Selecting point data whose light intensity is greater than the threshold from the point data corresponding to the ground;
[0016] Point data within a specific range is selected from the point data whose light intensity is greater than the threshold.
[0017] According to one aspect of the present invention, the step of setting the light intensity threshold comprises:
[0018] Calculate the average light intensity of the point data corresponding to the ground;
[0019] The light intensity threshold is set at 1.3 to 1.5 times the light intensity average value.
[0020] According to one aspect of the present invention, the step of selecting point data within a specific range comprises:
[0021] Select point data within 30 meters in the direction of vehicle travel and 3 meters on the horizontal plane perpendicular to the direction of vehicle travel.
[0022] According to one aspect of the present invention, the step of selecting point data within a specific range comprises:
[0023] Select point data within 30 meters in the direction of vehicle travel and 6 meters on the horizontal plane perpendicular to the direction of vehicle travel.
[0024] According to one aspect of the present invention, the step of clustering the point data corresponding to the ground mark to obtain the clustering result comprises:
[0025] Clustering adjacent point data in the point data corresponding to the ground mark;
[0026] Removing scattered point data to obtain a first clustering result including a plurality of first clusters;
[0027] Clustering the first clustering results according to distance;
[0028] Removing point data corresponding to the sidewalk and the arrow, to obtain a second clustering result including a plurality of second clusters;
[0029] The second clustering results are clustered according to directions to obtain final clustering results.
[0030] According to one aspect of the present invention, the step of removing stray point data comprises:
[0031] The clusters including point data with a number less than a threshold are removed to obtain the first clustering result.
[0032] According to one aspect of the present invention, the step of clustering the first clustering results according to distance comprises:
[0033] Selecting one from the plurality of first clusters as a candidate cluster;
[0034] Compare any one of the plurality of first clusters with the candidate class, and if the distance between the two is less than a threshold, merge the two to form a candidate class; if the distance between the two is greater than the threshold, use the any one of the first clusters as another candidate class;
[0035] Compare any first cluster in the first clusters with multiple candidate classes, select a candidate class with the closest distance, and merge them as a new candidate class;
[0036] Repeat the above steps for any first cluster among the multiple first clustering results.
[0037] According to one aspect of the present invention, the step of removing the point data corresponding to the sidewalk and the arrow comprises:
[0038] Remove the point data corresponding to the sidewalks and arrows by decomposing the singular values.
[0039] According to one aspect of the present invention, the step of clustering the second clustering results according to directions comprises:
[0040] The multiple second clusters belonging to the same lane line in the second clustering results are respectively formed into multiple third clusters, each third cluster has a main direction, where the main direction is the direction formed by the multiple second clusters; the two points closest to each other in any two third clusters are connected, and if the direction formed by the connection between the two points is parallel to the main direction, the two third clusters are merged.
[0041] According to one aspect of the present invention, the step of selecting some clusters in the clustering results for curve fitting according to the number of point data in each cluster in the clustering results comprises:
[0042] Select n clusters containing the most point data in the clustering results, where n>=2;
[0043] A quadratic curve or a cubic curve fitting is performed on the n clusters to obtain the lane line.
[0044] According to one aspect of the present invention, the lane line detection method further includes: drawing and displaying the lane line based on the curve fitting result.
[0045] The present invention also provides a data processing unit of a laser radar, which is configured to execute the lane line detection method as described above.
[0046] The present invention also provides a vehicle-mounted laser radar system, comprising:
[0047] A laser radar configured to emit a detection laser beam for detecting a target object and generate point cloud data based on an echo of the detection laser beam;
[0048] A data processing unit, the data processing unit communicates with the laser radar to receive the point cloud data and executes the lane line detection method as described above;
[0049] A display unit is coupled to the data processing unit and can draw and display the lane line.
[0050] The preferred embodiment of the present invention provides a lane line detection method, which extracts and denoises lane line data by means of point data screening, point data filtering, adjacent point data clustering, noise data removal, distance clustering, point data set removal corresponding to sidewalks and arrows, and direction clustering. The preferred embodiment of the present invention directly uses the point cloud data of the laser radar echo, effectively avoiding the problems of data missing and data conversion errors in the data conversion process, as well as the problems of large data errors and low data accuracy when indirectly obtaining lane line information using reference positions. The lane line detection results are obtained by multi-layer filtering and layer-by-layer optimization, and the lane lines are finally drawn by curve fitting, which improves the accuracy of lane line detection, reduces errors, and has a faster extraction speed and a wider range of application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0052] Figure 1 A flow chart of a method for lane line detection using a laser radar according to a preferred embodiment of the present invention is shown;
[0053] Figure 2 A flow chart of a method for filtering point data corresponding to a ground mark from point data corresponding to the ground according to a preferred embodiment of the present invention is shown;
[0054] Figure 3 A flow chart of a method for setting a light intensity threshold according to a preferred embodiment of the present invention is shown;
[0055] Figure 4 A flow chart of a method for clustering point data corresponding to ground markers and obtaining clustering results according to a preferred embodiment of the present invention is shown;
[0056] Figure 5 A flow chart of a method for clustering adjacent point data in point data corresponding to ground markers according to a preferred embodiment of the present invention is shown;
[0057] Figure 6 A flow chart of a method for clustering a plurality of first clustering results according to distances according to a preferred embodiment of the present invention is shown;
[0058] Figure 7 Schematically illustrating clustering a plurality of first clustering results according to distance in point cloud data according to a preferred embodiment of the present invention;
[0059] Figure 8 It schematically shows that according to a preferred embodiment of the present invention, a plurality of second clustering results are clustered according to directions in point cloud data to obtain a final clustering result;
[0060] Fig. 9 A schematic diagram showing a method for performing direction clustering according to an embodiment of the present invention is shown;
[0061] Fig.10 It shows that lane lines are detected using point cloud data obtained by a laser radar according to a preferred embodiment of the present invention, and lane lines are finally drawn by curve fitting; and
[0062] Fig.11 A vehicle-mounted laser radar system according to a preferred embodiment of the present invention is schematically shown. DETAILED DESCRIPTION
[0063] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0064] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0065] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or can communicate with each other; it can be directly connected, or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0066] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply means that the first feature is lower in level than the second feature.
[0067] The disclosure below provides many different embodiments or examples to realize different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplicity and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed. In addition, the present invention provides various specific examples of processes and materials, but those of ordinary skill in the art can be aware of the application of other processes and / or the use of other materials.
[0068] The embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0069] The present invention provides a lane line detection method 100 using a laser radar, which directly uses the point data belonging to the ground in the point cloud data, and finally obtains the lane line detection result by filtering, clustering and curve fitting the point data belonging to the ground. The lane line detection result is obtained through multi-layer filtering and layer-by-layer optimization, and finally the lane line is drawn through curve fitting, which improves the accuracy of lane line detection, reduces errors, and has a faster extraction speed and a wider range of application scenarios (lane lines can be extracted from point cloud data as long as point cloud data is provided). The flowchart of the lane line detection method 100 is shown in FIG. Figure 1 As shown, described in detail below.
[0070] In step S101, point data corresponding to the ground are filtered out from the point cloud data of the laser radar.
[0071] The laser radar emits a detection beam, which is reflected by lane lines and the road surface, and may also be reflected by other obstacles, such as curbs, green belts, street lights, road signs, billboards, trash cans and pedestrians above the ground. If the same laser radar scanning line rotates one circle and no obstacles are scanned, the distance from the point to the center of the circle and / or the distance from the laser radar in the vertical height obtained in the point cloud data are theoretically equal. When the scan encounters an obstacle, the distance from the point to the laser radar and / or the distance from the laser radar in the vertical height will change. Take a mechanical laser radar as an example. The optical rotor of a mechanical laser radar usually includes multiple lasers, and the light emission direction of each laser corresponds to a field of view or an angle in the vertical direction. The optical rotor rotates around the vertical axis, thereby achieving 360-degree scanning and detection in the horizontal direction and forming a frame of point cloud data of the laser radar. For one of the lasers, during the rotation process, it emits a detection beam every certain rotation angle (i.e., the angular resolution of the laser radar, such as 0.2 degrees), and the receiving unit of the laser radar receives the echo of the detection beam after diffuse reflection on the obstacle and generates point cloud data. If a laser emits a beam that shines on the ground at some times during the rotation process and shines on the obstacle at other times, then reflected in the point cloud data, the point formed by the echo from the ground has roughly the same distance from the laser radar or the height difference in the vertical direction; while the point formed by the echo from the obstacle (such as street lights, pedestrians, etc.) has a large fluctuation in the distance from the laser radar or the height difference in the vertical direction. Therefore, the point data corresponding to the ground can be screened out based on the characteristics of maintaining a similar height within a distance, where each point data has information such as distance, reflectivity, angle, and time.
[0072] In step S102, the point data corresponding to the ground are filtered to obtain the point data corresponding to the ground mark.
[0073] The point data on the ground can be filtered based on the light intensity. Since the reflectivity of ground markers is usually higher than other parts on the ground, filtering the point data on the ground using the received light intensity of the corresponding ground marker can significantly improve the accuracy and extraction speed.
[0074] In actual road conditions, ground markers usually have certain characteristics, so that the point data from the ground markers in the point cloud data have specific representations, so that the point data can be filtered according to these representations to filter out the point data corresponding to the ground markers. According to one embodiment of the present invention, the ground markers usually have a higher reflectivity than other points on the ground. The point cloud data of the laser radar usually includes the corresponding reflectivity of the target object. Therefore, the point data of the ground marker can be judged and filtered according to the reflectivity. This will be described in detail below.
[0075] In step S103, the point data corresponding to the ground markers are clustered to obtain a clustering result.
[0076] After obtaining a set of point data corresponding to the ground mark, the set of point data may be clustered, such as distance clustering, to cluster points with similar distances together to obtain a clustering result, wherein the clustering result includes multiple clusters.
[0077] In step S104, according to the number of point data in each cluster in the clustering result, some clusters in the clustering result are selected for curve fitting to obtain the lane line. For example, several clusters with the largest number of point data can be selected for curve fitting (for example, fitting by quadratic curve or cubic curve), wherein the solution process can be completed by using, for example, Gaussian sequential elimination method.
[0078] The above briefly describes the lane line detection method 100 according to an embodiment of the present invention. The following describes in detail the method for implementing each step according to a preferred embodiment of the present invention.
[0079] Figure 2 The flowchart of the filtering method 200 for obtaining the point data of the ground mark by filtering in step S102 according to a preferred embodiment of the present invention is shown. As mentioned above, the ground mark is usually formed by a paint with high reflectivity, and the reflectivity is higher than other points on the ground. Therefore, the filtering method 200 can perform identification and filtering based on reflectivity.
[0080] In step S201, a light intensity threshold is set. Since the reflectivity of the ground mark is greater than that of other points on the ground, a light intensity threshold can be set, and then the point data corresponding to the ground mark is filtered according to the light intensity threshold. If the echo intensity detected by the laser radar exceeds the light intensity threshold, the corresponding point is a point on the ground mark; on the contrary, if the echo intensity detected by the laser radar is lower than the light intensity threshold, the corresponding point is a point on a non-ground mark, for example, a point generated by an echo from an unmarked road surface.
[0081] The flowchart of the method 300 for setting the light intensity threshold is as follows: Figure 3 As shown:
[0082] In step S301, the average light intensity of the point data corresponding to the ground is calculated.
[0083] According to all the corresponding ground point data obtained in step S101, the echo intensities therein may be averaged to obtain the average light intensity.
[0084] In step S302, a value higher than a certain percentage of the average light intensity is set as a light intensity threshold. Preferably, 1.3 to 1.5 times the average light intensity is set as the light intensity threshold. By setting the light intensity threshold in this way, point data that is not a ground mark can be effectively filtered out, thereby more reliably identifying points on the lane marking line.
[0085] Back to Figure 2 In step S202, point data with light intensity greater than the light intensity threshold are selected from the point data corresponding to the ground. These point data with light intensity greater than the light intensity threshold can be considered as point data corresponding to the ground mark.
[0086] In step S203, point data within a specific range is selected from the point data with light intensity greater than the threshold.
[0087] The specific range refers to a specific rectangular area in front of the vehicle along the forward direction of the vehicle.
[0088] In order to limit the number of point data so that the subsequent algorithm can be implemented quickly, point data within a specific range are selected from the point data with light intensity greater than the threshold. For example, only point data within a range of 30 meters in the direction of vehicle travel (30 meters in front of the vehicle) and 3 meters on the horizontal plane perpendicular to the direction of vehicle travel (30 meters to the left and right of the vehicle) are retained. If it is a four-lane road, point data within a range of 30 meters in the direction of vehicle travel and 6 meters on the horizontal plane perpendicular to the direction of vehicle travel can be retained. In addition, by selecting point data within a specific range, it is helpful to exclude point data that are far away from the current position of the vehicle. If these distant point data are retained, they may have an adverse effect on the recognition accuracy of the lane line.
[0089] pass Figure 2 The filtering method 200 can filter the point data of the ground mark relatively quickly and reliably.
[0090] Figure 4 A flow chart of a clustering method 400 for performing clustering in step S103 according to an embodiment of the present invention is shown.
[0091] In step S401, the adjacent point data in the point data corresponding to the ground mark are clustered. As mentioned above, taking the mechanical laser radar as an example, the emission direction of each laser corresponds to a field of view or an angle in the vertical direction, and the optical mechanical rotor rotates around the vertical axis to achieve 360-degree scanning and detection in the horizontal direction, and each rotation of 360 degrees forms a circle of point data in the point cloud. Figure 5As shown, two circles of point data generated by two lasers rotating 360 degrees for detection are schematically shown. The adjacent point data of each circle of point data corresponding to the ground mark are clustered, and clustering can be performed according to the adjacent position relationship of the point data and / or the density of the point data, or the distance threshold between adjacent point data is set for clustering, and clusters 501, 502, and 503 are obtained.
[0092] In step S402, the scattered point data are removed to obtain a first clustering result including multiple first clusters. For example, the clusters whose point data number after clustering is less than the threshold are removed to obtain a first clustering result including multiple first clusters. Figure 5 As shown, the number of point data in clusters 501 and 502 is greater than or equal to 3, so it is retained; the number of point data in cluster 503 is less than 3, so it is removed. After removing the stray point data, the first clustering result is obtained, which includes multiple first clusters 501 and 502. In addition, the range of the threshold of the number of point data (such as 3-20) can be set according to the distance to remove the stray point data. Since the laser has a divergence angle, the farther the laser radar detection distance is, the more divergent the light beam is, and the fewer the number of point data required is set, such as 3-5, that is, the width of the lane line at a long distance usually corresponds to 3-5 point data; the closer the laser radar detection distance is, the more the number of point data required is set, such as 10-20, that is, the width of the lane line in the field of view at a close distance usually corresponds to 10-20 point data, wherein the threshold of the number of point data is set to 3 to take into account the situation of the lane line at both close and long distances.
[0093] In step S403, the plurality of first clustering results are clustered according to distance. Figure 6 FIG. 6 is a flow chart of a method 600 for performing distance clustering on a first clustering result according to a preferred embodiment of the present invention. Figure 7 ,flow chart Figure 6 Provide explanation.
[0094] like Figure 7 As shown, it is assumed that the currently obtained multi-circle point cloud data contains multiple first clusters 701, 702, and 703.
[0095] In step S601, one of the plurality of first clusters is selected as a candidate class. Figure 7 The first cluster 701 in is taken as a candidate class.
[0096] In step S602, any one of the plurality of first clusters is compared with the plurality of candidate classes, and the one with the closest distance is selected. For example, the first cluster 702 is compared with the plurality of candidate classes, and the candidate class 701 with the closest distance is selected.
[0097] In step S603, the distance between any one of the first clusters and the candidate class with the closest distance is compared to see whether it is less than a threshold. For example, the distance between the first cluster 702 and the candidate class 701 is compared to see whether it is less than a threshold. If it is less than the threshold, the process proceeds to step S604 to merge the two. If it is greater than the threshold, the process proceeds to step S605 to use the first cluster 702 as a new candidate class. The threshold can be set and adjusted according to actual conditions. According to one embodiment of the present invention, when calculating the distance between two clusters, the distance between the closest points of the two clusters can be used as the distance between the two clusters.
[0098] In step S604, any first cluster whose distance is less than the threshold and the candidate class with the closest distance are merged as a new candidate class. Figure 7 In the illustrated embodiment, the distance between the first cluster 702 and the candidate class 701 is less than a threshold, and they are merged into a new candidate class 704. Step S602 is repeated.
[0099] In step S605, any one of the first clusters is taken as a new candidate cluster, and step S602 is repeated.
[0100] In step S602, any one of the plurality of first clusters is compared with the plurality of candidate classes, and the one with the closest distance is selected. For example, the first cluster 703 is compared with the plurality of candidate classes, and the candidate class 704 with the closest distance is selected.
[0101] In step S603, the distance between any of the first clusters and the candidate class closest to the first cluster is compared to see whether it is less than a threshold. For example, the distance between the first cluster 703 and the candidate class 704 is compared. If it is less than the threshold, the process proceeds to step S604 to merge the two. If it is greater than the threshold, the process proceeds to step S605 to take the first cluster 703 as a new candidate class. Figure 7 As shown, the distance between the first cluster 703 and the candidate cluster 704 is relatively large and greater than the threshold, so the process proceeds to step S605.
[0102] In step S604, any first cluster whose distance is less than the threshold and the candidate class with the shortest distance are merged as a new candidate class. Step S602 is repeated until all first clusters are clustered according to the distance.
[0103] In step S605, any one of the first clusters is used as a new candidate class. Figure 7 In the illustrated embodiment, the distance between the first cluster 703 and the candidate class 704 is greater than a threshold, and the first cluster 703 is used as a new candidate class. Step S602 is repeated until all first clusters are clustered according to the distance.
[0104] Back to Figure 4In step S404, the point data corresponding to the sidewalk and the arrow are removed to obtain a second clustering result including multiple second clusters. Since the crosswalks and road arrows also have high light intensity, when filtering using the light intensity threshold, the point data corresponding to the sidewalks and arrows are retained in the point data corresponding to the ground markings, and they will be clustered into their respective categories during the clustering process. Since crosswalks and road arrows are generally wider than the lane line width, according to a preferred embodiment of the present invention, the singular value of the point data set corresponding to the sidewalk and the arrow can be used, and the second largest value after decomposition is very large, and this can be used as a feature to set the threshold, so that the point data of the sidewalk and the arrow can be distinguished, and the point data set corresponding to the sidewalk and the arrow is removed.
[0105] In step S405, the second clustering results are clustered according to direction to obtain the final clustering results. Since there are usually two or four lane lines around the unmanned vehicle, the multiple second clusters in the above second clustering results will correspond to different lane lines. In order to correspond the above multiple second clusters to each lane line, the second clustering results obtained after adjacent point clustering, removing noise points, distance clustering, and removing the point data set corresponding to the sidewalk and arrow can be clustered according to their directions to obtain multiple third clusters. Figure 8 Each second cluster has a direction, and the line connecting the closest points of two different second clusters has another direction. If the two directions are parallel, they are clustered in a third cluster and determined to belong to the same lane line; if the two directions are not parallel, they are determined to belong to different lane lines. Direction discrimination clustering is performed through the current third cluster and the remaining second clusters until no categories are merged, so that multiple second clusters belonging to the same lane line are respectively formed into multiple third clusters, where multiple third clusters correspond to multiple lane lines, usually two or four.
[0106] like Figure 8As shown, the second clusters 801 and 802 have directions as indicated by arrow 803, and the line connecting the nearest points between the two is in the direction indicated by arrow 804. Arrow 804 is parallel to arrow 803, and thus they can be merged into the third cluster. The main direction of the third cluster is the direction formed by the second clusters 801 and 802. That is, it is determined that the second clusters 801 and 802 correspond to the same lane line, and the two can be merged into a third cluster (called the third cluster A). Then the second cluster 805 is determined. The third cluster A has a main direction 804, and the line connecting the nearest points between the third cluster A and the second cluster 805 is in the direction of arrow 806, which is substantially at right angles to the main direction of the third cluster A. Therefore, the second cluster 805 cannot be included in the third cluster A. The same judgment is made for the second cluster 807. The line connecting the closest points between the third cluster A and the second cluster 807 is the direction of arrow 808, which forms a certain angle with the main direction of the third cluster A. The second cluster 807 cannot be included in the third cluster A. Through the above process, the second clusters 805 and 807 can be merged into a new third cluster. The above process is repeated until all second clusters are clustered according to direction.
[0107] Fig. 9 A schematic diagram of a method 900 for performing direction clustering according to an embodiment of the present invention is shown, which is used to cluster the second clustering results according to their directions, and is described in detail below.
[0108] In step S901 , the method starts.
[0109] In step S902, a second cluster that has not been included in the third cluster is selected. When the method 900 is just beginning to be processed, a second cluster may be randomly selected from a plurality of second clusters.
[0110] In step S903, determine whether the second cluster can be classified into one of the third clusters. In the present invention, as described above, each second cluster itself has a direction. The third cluster includes one or more second clusters. Each third cluster has a main direction, which reflects the extension direction of the third cluster. According to a preferred embodiment of the present invention, the main direction of the third cluster can be the direction of the first second cluster classified therein, so when a second cluster is classified into the third cluster, the main direction of the third cluster is also determined. Alternatively, the main direction of the third cluster can also be the direction formed by the multiple second clusters it includes.
[0111] When judging whether the second cluster can be included in one of the third clusters, it can be done in the following way. Select a point in each of the second cluster and the third cluster to connect the two points. The two selected points are the two points that are closest to all the points in the second cluster and all the points in the third cluster. If the direction formed by the line connecting the two points is basically parallel to the main direction of the third cluster, then execute step S904 to judge whether the second cluster can be merged into the third cluster; otherwise, execute step S905 to judge whether the second cluster cannot be merged into the third cluster. If there are multiple third clusters, step S903 needs to judge several or all of the multiple third clusters until the second cluster finds a third cluster to be included, or the traversal ends and the second cluster does not find a third cluster to be included.
[0112] In addition, for the second cluster that is processed first, the third cluster has not yet been generated, so a "no" conclusion is also obtained in step S903, and the process proceeds to step S905.
[0113] In step S904, the second cluster is included in one of the third clusters selected in step S903, thereby increasing the point data in the third cluster, and then proceeds to step S906.
[0114] In step S905, the second cluster is generated into a third cluster. Since no third cluster that can be classified is obtained in step S903, a new third cluster is generated for subsequent processing. Then the process proceeds to step S906.
[0115] In step S906, it is determined whether there are any unclassified second clusters. If not, the method proceeds to step S907 and ends the method 900. If there are still unclassified second clusters, the method returns to step S902, continues to select a second cluster that has not been classified, and repeats the above steps S903, S904, S905, and S906 until all second clusters are classified into the third cluster.
[0116] The point data of ground markings can be clustered by the directional clustering method. On actual roads, ground markings are usually segmented. For example, lane lines usually include multiple segments of white markings. The point data generated by each segment of markings can be clustered together for subsequent data processing.
[0117] like Figure 1The method 100 for lane line detection using a laser radar as shown also includes drawing and displaying lane lines based on the fitted curve. After the curve fitting is completed, in order to stabilize the displayed fitted line segments, for the cubic curve fitting, the thresholds of the parameters in the fitted line segment expression are set to determine whether to display the fitted line segments, wherein as long as the slopes of the fitted curves of the multiple lane lines are equal at any place, the fitted line segments can be displayed.
[0118] Fig.10 A preferred embodiment of the present invention is shown, which uses point cloud data obtained by laser radar, and undergoes point data screening, filtering, adjacent point data clustering, noise data removal, distance clustering, removal of point data sets corresponding to sidewalks and arrows, and direction clustering to extract and denoise lane line data, and finally draws the lane line result by curve fitting.
[0119] A preferred embodiment of the present invention also provides a data processing unit of a laser radar, which is configured to execute the lane line detection method as described above.
[0120] A preferred embodiment of the present invention also provides a laser radar, comprising the above-mentioned data processing unit.
[0121] like Fig.11 As shown, the preferred embodiment of the present invention also provides a vehicle-mounted laser radar system 1000, including: a laser radar 1001, which is configured to emit a detection laser beam for detecting a target object, and generate point cloud data according to the echo of the detection laser beam, a data processing unit 1002 communicates with the laser radar 1001 to receive the point cloud data, and executes the lane line detection method as described above, and a display unit 1003 is coupled to the data processing unit 1002 and can draw and display lane lines. It is easy for those skilled in the art to understand that the data processing unit 1002 can be separated from the laser radar 1001, or can be integrated in the laser radar 1001, all of which are within the protection scope of the present invention.
[0122] The preferred embodiment of the present invention provides a method of extracting and denoising lane line data by using point data screening, point data filtering, adjacent point data clustering, noise data removal, distance clustering, point data set removal corresponding to sidewalks and arrows, and direction clustering. The preferred embodiment of the present invention directly uses the point cloud data of the laser radar echo, effectively avoiding the problems of data missing and data conversion errors in the data conversion process, as well as the problems of large data errors and low data accuracy when indirectly obtaining lane line information using reference positions. The lane line detection results are obtained by multi-layer filtering and layer-by-layer optimization, and the lane lines are finally drawn by curve fitting, which improves the accuracy of lane line detection, reduces errors, and has a faster extraction speed and a wider range of application scenarios.
[0123] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A lane line detection method using laser radar, include: Filtering out point data corresponding to the ground from the point cloud data of the laser radar, wherein the point data corresponding to the ground does not include point data corresponding to obstacles above the ground; Filtering the point data corresponding to the ground based on the reflectivity of the point data corresponding to the ground to obtain point data corresponding to the ground mark; Clustering the point data corresponding to the ground mark, removing the point data set whose second value after decomposition is greater than a set threshold by decomposing singular values, and obtaining a clustering result; According to the number of point data in each cluster in the clustering result, some clusters in the clustering result are selected for curve fitting to obtain the lane line.
2. The lane line detection method according to claim 1, wherein the step of filtering out the point data corresponding to the ground from the point cloud data of the laser radar is include: According to the change of the distance and / or height between each circle of point data in the point cloud data, it is determined whether the point data corresponds to the ground.
3. The lane line detection method according to claim 1 or 2, wherein the step of filtering the point data corresponding to the ground to obtain the point data corresponding to the ground mark include: Set the light intensity threshold; Selecting point data whose light intensity is greater than the threshold from the point data corresponding to the ground; Point data within a specific range is selected from the point data whose light intensity is greater than the threshold.
4. The lane line detection method as claimed in claim 3, wherein the step of setting the light intensity threshold include: Calculate the average light intensity of the point data corresponding to the ground; The light intensity threshold is set at 1.3 to 1.5 times the light intensity average value.
5. The lane line detection method as claimed in claim 3, wherein the point data within a specific range is selected include: Select point data within 30 meters in the direction of vehicle travel and 3 meters on the horizontal plane perpendicular to the direction of vehicle travel.
6. The lane line detection method according to claim 3, wherein the point data within a specific range is selected include: Select point data within 30 meters in the direction of vehicle travel and 6 meters on the horizontal plane perpendicular to the direction of vehicle travel.
7. The lane line detection method according to claim 1 or 2, wherein the step of clustering the point data corresponding to the ground mark to obtain the clustering result include: Clustering adjacent point data in the point data corresponding to the ground mark; Removing scattered point data to obtain a first clustering result including a plurality of first clusters; Clustering the first clustering results according to distance; Removing point data corresponding to the sidewalk and the arrow, to obtain a second clustering result including a plurality of second clusters; The second clustering results are clustered according to directions to obtain final clustering results.
8. The lane line detection method as claimed in claim 7, wherein the step of removing stray point data include: The clusters including point data with a number less than a threshold are removed to obtain the first clustering result.
9. The lane line detection method according to claim 7, wherein the step of clustering the first clustering results according to distance include: Selecting one from the plurality of first clusters as a candidate cluster; Compare any one of the plurality of first clusters with the candidate class, and if the distance between the two is less than a threshold, merge the two to form a candidate class; if the distance between the two is greater than the threshold, use the any one of the first clusters as another candidate class; Compare any first cluster in the first clusters with multiple candidate classes, select a candidate class with the closest distance, and merge them as a new candidate class; Repeat the above steps for any first cluster among the multiple first clustering results.
10. The lane line detection method as claimed in claim 7, wherein the step of removing the point data corresponding to the sidewalk and the arrow include: Remove the point data corresponding to the sidewalks and arrows by decomposing the singular values.
11. The lane line detection method according to claim 7, wherein the step of clustering the second clustering results according to direction include: a. Select a second cluster that has not yet been included in the third cluster; b. Determine whether the second cluster can be included in one of the third clusters; if the direction of the line connecting the closest points of the second cluster and the third cluster is parallel to the main direction of the third cluster, then it can be included, and proceed to step c; Otherwise, it cannot be classified and proceed to step d; c. classifying the second cluster into one of the third clusters selected in step b, and then proceeding to step e; d. Generate a third cluster from the second cluster, and then proceed to step e; e. Determine whether there is any unclassified second cluster. If so, return to step a, otherwise end.
12. The lane line detection method according to claim 1 or 2, wherein the step of selecting some clusters in the clustering result for curve fitting is performed according to the number of point data in each cluster in the clustering result. include: Select n clusters containing the most point data in the clustering results, where n>=2; A quadratic curve or a cubic curve fitting is performed on the n clusters to obtain the lane line.
13. The lane line detection method according to claim 1 or 2, further comprising: include: Lane lines are drawn and displayed based on the curve fitting result.
14. A data processing unit of a laser radar, configured to execute the lane line detection method according to any one of claims 1 to 13.
15. A vehicle-mounted laser radar system, include: A laser radar configured to emit a detection laser beam for detecting a target object and generate point cloud data based on an echo of the detection laser beam; A data processing unit, wherein the data processing unit communicates with the laser radar to receive the point cloud data and executes the lane line detection method according to any one of claims 1 to 13; A display unit is coupled to the data processing unit and can draw and display the lane line.
Citation Information
Patent Citations
Semi-automatic point cloud method for making three-dimensional high-definition road map lane line
CN108898672A
Lane line detection method based on three-dimensional laser radar
CN109858460A
