Method, device, cloud server and storage medium for detecting lane intersection
By obtaining lane line data points from map data and determining lane line intersections, the accuracy problem of lane line intersection detection is solved, accurate road information acquisition is achieved while the vehicle is driving, and safety and navigation accuracy are improved.
Patent Information
- Application Number
- CN202410663421.6
- 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
During vehicle driving, existing technology is difficult to accurately detect intersections of lane lines, resulting in inaccurate acquisition of road information and affecting safe driving of vehicles.
By obtaining adjacent and parallel lane line data points from map data, judging the vertical distance change rate and distance change trend between lane lines, determining candidate intersection points, and determining the target intersection point through data point fusion and threshold judgment, achieving Precise identification of lane line intersections.
This method can quickly and accurately identify lane line intersections, provide accurate road information, and improve vehicle driving safety and navigation accuracy.
Smart Images

Figure CN118230276B
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle driving, and more specifically, to a method, device, cloud server and storage medium for detecting lane line intersections in the field of vehicle driving. Background Art
[0002] At present, in order to recommend accurate driving routes to users during vehicle driving, the acquisition and updating of road information has become a necessary prerequisite.
[0003] With the development of intelligent driving technology, in order to obtain road information of each road during vehicle driving, multiple vehicles on the road can be used to collect road information and upload it to the cloud (or cloud server), which will analyze and process the road information to obtain the final high-precision map. This high-precision map constructed by the information collected by multiple vehicles is also called "crowd-sourced map or crowd-source map."
[0004] In order to ensure the safe driving of vehicles, lane line detection has become a necessary prerequisite in the process of building a crowd-source map. In the process of lane line detection, multiple lane lines may merge or merge, that is, there are intersections between multiple lane lines. Therefore, how to detect the intersection of lane lines has become an urgent problem to be solved. Summary of the invention
[0005] The present application provides a method, device, cloud server and storage medium for detecting the intersection of lane lines. The method can simply and efficiently identify the intersection of two lane lines and provide accurate road information for vehicle driving.
[0006] In a first aspect, a method for detecting lane line intersections is provided, the method comprising: acquiring from map data at least one first data point corresponding to a first lane line of a first road section and a plurality of second data points corresponding to a second lane line of the first road section, the second lane line being a lane line adjacent to the first lane line, and when the first lane line is parallel to the second lane line, the first lane line and the second lane line have the same driving direction; determining, based on the at least one first data point and the plurality of second data points, whether there is at least one candidate intersection between the first lane line and the second lane line, at which candidate intersection, an intersection probability between the first lane line and the second lane line is greater than a preset probability; in the case where the at least one candidate intersection exists between the first lane line and the second lane line, determining, based on the at least one candidate intersection, a target intersection between the first lane line and the second lane line, the target intersection being used to represent an actual intersection position of the first lane line and the second lane line.
[0007] In the above technical solution, a method for detecting lane line intersections is proposed, firstly, at least one first data point corresponding to the first lane line of the first section and multiple second data points corresponding to the second lane line of the first section are obtained from the pre-acquired map data, wherein the first lane line is adjacent to the second lane line and when the two lane lines are parallel, the two lane lines have the same driving direction. Based on the at least one first data point and the multiple second data points, it is determined whether there is at least one candidate intersection between the first lane line and the second lane line. The candidate intersection can indicate that the probability of the first lane line and the second lane line crossing is relatively high. Therefore, the above process can realize the pre-judgment of whether the lane lines cross and accurately identify the relative position relationship between the two lane lines. When there is at least one candidate intersection between the first lane line and the second lane line, the target intersection between the first lane line and the second lane line is determined. In the above case where the two lane lines cross, the final target intersection is obtained through the candidate intersection, which can realize the accurate identification of the lane line intersection.
[0008] In combination with the first aspect, in some possible implementations, determining whether there is at least one candidate intersection point between the first lane line and the second lane line based on the at least one first data point and the multiple second data points includes: judging whether the rate of change of the vertical distance between the first lane line and the second lane line is greater than a preset rate of change based on the at least one first data point and the multiple second data points; when the rate of change of the vertical distance is greater than the preset rate of change, starting from the end position of the first road section, obtaining from the map data a plurality of third data points corresponding to the first lane line of the second road section and a plurality of fourth data points corresponding to the second lane line of the second road section, the direction of the second road section being the same as the driving direction; determining whether there is at least one candidate intersection point between the first lane line and the second lane line based on the multiple third data points and the multiple fourth data points.
[0009] In the above technical solution, in the intersection scene, for lane line merging, the two adjacent lane lines maintain a parallel relationship before merging and the vertical distance between the two lane lines remains basically unchanged. For lane line merging, the two lane lines basically overlap before merging and the vertical distance between the two lane lines remains basically unchanged. When two lane lines intersect, the two lane lines become non-parallel or no longer overlap when approaching the intersection, and the vertical distance changes. Therefore, when determining whether there is a candidate intersection point between two adjacent lane lines, it can be determined whether there is a point on any lane line that causes a sudden change in the vertical distance, that is, a point where the rate of change of the vertical distance is greater than a preset rate of change. If there is, starting from the current point along the driving direction of the two lane lines, multiple third data points are taken on the first lane line and multiple fourth data points are taken on the second lane line. The existence of the above point where the distance suddenly changes indicates that there is a possibility that the two lane lines intersect, thereby realizing a quick prediction of whether the two lane lines intersect through the rate of change of the vertical distance. When there is a possibility of intersection, the third data point and the fourth data point are obtained to determine whether there is a candidate intersection point. Since the vertical distance between the two lane lines remains basically unchanged before the mutation, it is meaningless to select the data points before the mutation to determine whether there is a candidate intersection and the result is inaccurate. Therefore, the above process can ensure the reliability and accuracy of data point selection and the accuracy of candidate intersection judgment.
[0010] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the determining whether there is at least one candidate intersection point between the first lane line and the second lane line based on the multiple third data points and the multiple fourth data points includes: determining multiple first vertical distances between the first lane line and the second lane line based on the multiple third data points and the multiple fourth data points; determining a distance change trend based on the multiple first vertical distances, and the distance change trend is used to represent the change law of the vertical distance along the driving direction; determining whether there is at least one candidate intersection point between the first lane line and the second lane line based on the distance change trend and / or the multiple first vertical distances.
[0011] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the determining whether there is at least one candidate intersection between the first lane line and the second lane line based on the distance change trend and / or the multiple first vertical distances includes: when the distance change trend satisfies a preset trend and there is at least one first vertical distance less than or equal to a first threshold among the multiple first vertical distances, determining that there is at least one candidate intersection between the first lane line and the second lane line; when the distance change trend does not satisfy the preset trend, or when the multiple first vertical distances are all greater than the first threshold, determining that there is no at least one candidate intersection between the first lane line and the second lane line.
[0012] Optionally, the preset trend includes increasing or decreasing.
[0013] In the above technical solution, when determining whether there is at least one candidate intersection between the first lane line and the second lane line, firstly, based on the plurality of third data points and the plurality of fourth data points, the plurality of first vertical distances between the two lane lines are determined. According to the plurality of first vertical distances, the distance change trend can be obtained, that is, whether the distance gradually increases or the distance gradually decreases or neither gradually increases nor gradually decreases. When the distance change trend is gradually increasing or gradually decreasing, it indicates that the two lane lines meet the intersection condition. After the intersection condition is met, since the vertical distance between the two lane lines is very small near the intersection, it is also necessary to determine whether there is a vertical distance less than or equal to the first threshold value among the plurality of first vertical distances, that is, to determine whether the currently selected third data point and the fourth data point are close to the intersection after the two lane lines meet the intersection condition. If so, it indicates that the two lane lines are about to merge or merge. The above process can accurately distinguish whether the lane lines are about to merge or separate through the distance change trend, and can ensure the accuracy of the determination of the intersection of the two lane lines.
[0014] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after determining that there is at least one candidate intersection point between the first lane line and the second lane line, the method also includes: determining the at least one candidate intersection point as at least one third data point among the multiple third data points corresponding to the at least one first vertical distance, and at least one fourth data point among the multiple fourth data points corresponding to the at least one first vertical distance.
[0015] In the above technical solution, at least one first vertical distance is less than or equal to the first threshold, indicating that the first lane line and the second lane line are infinitely close. Therefore, the present application can consider the third data point used to determine at least one first vertical distance among the multiple third data points, and the fourth data point used to determine at least one first vertical distance among the multiple fourth data points as candidate intersection points, that is, some data points when the first lane line and the second lane line are almost intersecting. Therefore, the above process can ensure the accuracy and reliability of the selection of candidate intersection points.
[0016] In combination with the first aspect and the above-mentioned implementation manner, in some possible implementation manners, the preset trend includes increasing or decreasing, and in the case where there is at least one candidate intersection between the first lane line and the second lane line, determining the target intersection between the first lane line and the second lane line according to the at least one candidate intersection, including: fusing the at least one candidate intersection to obtain a predicted intersection; when the distance change trend is decreasing, starting from the predicted intersection, obtaining a plurality of fifth data points corresponding to the first lane line of a third section and a plurality of sixth data points corresponding to the second lane line of the third section, and the direction of the third section is the same as the driving direction; determining the target intersection according to the predicted intersection, the plurality of fifth data points and the plurality of sixth data points; when the distance change trend is increasing, starting from the predicted intersection, obtaining a plurality of seventh data points corresponding to the first lane line of a fourth section and a plurality of eighth data points corresponding to the second lane line of the fourth section, and the direction of the fourth section is opposite to the driving direction; determining the target intersection according to the predicted intersection, the plurality of seventh data points and the plurality of eighth data points.
[0017] In the above technical solution, after obtaining at least one candidate intersection point, in order to obtain the final target intersection point, at least one candidate intersection point is first fused to obtain a predicted intersection point. Considering the stability of the intersection of the first lane line and the second lane line, after obtaining the predicted intersection point, multiple data points of the two lane lines within a certain distance can also be obtained to determine whether the two lane lines still show a stable intersection trend. According to the different distance change trends, it is specifically divided into the following two scenarios:
[0018] The first is that when the distance gradually decreases, it indicates that the two lane lines may merge along the driving direction. After the predicted intersection is determined, a target intersection of the merging lane line is determined in a third section along the driving direction according to the predicted intersection and a plurality of fifth data points and a plurality of sixth data points respectively corresponding to the two lane lines in the third section.
[0019] The second is that when the distance gradually increases, it indicates that the two lane lines may converge along the driving direction. After the predicted intersection is determined, in a fourth section in the opposite direction of the driving direction, a target intersection of the convergent lane line is determined based on the predicted intersection and a plurality of seventh data points and a plurality of eighth data points respectively corresponding to the two lane lines in the fourth section.
[0020] The above process can flexibly determine the intersection point of two lane lines in different intersection scenarios and can ensure the stability and accuracy of the target intersection point determination.
[0021] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the target intersection point is determined based on the predicted intersection point, the multiple fifth data points and the multiple sixth data points, including: determining multiple second vertical distances based on the multiple fifth data points and the multiple sixth data points; when the multiple second vertical distances are all less than or equal to the second threshold, determining the target intersection point to be the predicted intersection point; and, the target intersection point is determined based on the predicted intersection point, the multiple seventh data points and the multiple eighth data points, including: determining multiple third vertical distances based on the multiple seventh data points and the multiple eighth data points; when the multiple third vertical distances are all less than or equal to the second threshold, determining the target intersection point to be the predicted intersection point.
[0022] In the above technical solution, when two lane lines merge, after obtaining the predicted intersection, the present application can also determine multiple second vertical distances within the third section after the predicted intersection based on multiple fifth data points and multiple sixth data points, and determine the predicted intersection as the target intersection when the multiple second vertical distances are all less than or equal to the second threshold. Similarly, when two lane lines merge, multiple third vertical distances within the fourth section after the predicted intersection can be determined based on multiple seventh data points and multiple eighth data points, and determine the predicted intersection as the target intersection when the multiple third vertical distances are all less than or equal to the second threshold. The above process can ensure the stability of lane line intersection and avoid inaccurate intersection determination due to the intersection of two lane lines only in a local area.
[0023] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after determining that there is at least one candidate intersection point between the first lane line and the second lane line, the method also includes: determining the intersection type of the first lane line and the second lane line based on the distance change trend, and the intersection type is used to indicate the intersection direction of the first lane line and the second lane line.
[0024] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the preset trend includes increasing or decreasing, the intersection type includes lane line merging in or lane line merging out, and the intersection type of the first lane line and the second lane line is determined based on the distance change trend, including: when the distance change trend is decreasing, determining the intersection type as lane line merging in; when the distance change trend is increasing, determining the intersection type as lane line merging out.
[0025] In the above technical solution, the present application also proposes a method for determining whether the two lane lines are merging out or merging in based on the distance change trend between the two lane lines. When the distance change trend along the driving direction decreases, it indicates that the two lane lines are merging in; when the distance change trend along the driving direction increases, it indicates that the two lane lines are merging out. Therefore, the solution of the present application can not only determine the intersection point of the two lane lines, but also accurately identify the intersection type of the two lane lines in a simple, efficient and accurate manner.
[0026] In a second aspect, a device for detecting lane line intersections is provided, the device comprising: a data acquisition module, used to acquire at least one first data point corresponding to a first lane line of a first road section and multiple second data points corresponding to a second lane line of the first road section from map data, the second lane line being a lane line adjacent to the first lane line, and when the first lane line is parallel to the second lane line, the first lane line and the second lane line have the same driving direction; a candidate intersection judgment module, used to determine whether there is at least one candidate intersection between the first lane line and the second lane line based on the at least one first data point and the multiple second data points, at which the intersection probability between the first lane line and the second lane line is greater than a preset probability; a target intersection determination module, used to determine a target intersection between the first lane line and the second lane line based on the at least one candidate intersection when there is the at least one candidate intersection between the first lane line and the second lane line, the target intersection being used to represent the actual intersection position of the first lane line and the second lane line.
[0027] In combination with the second aspect, in some possible implementations, the candidate intersection judgment module is specifically used to: determine whether the rate of change of the vertical distance between the first lane line and the second lane line is greater than a preset rate of change based on the at least one first data point and the multiple second data points; when the rate of change of the vertical distance is greater than the preset rate of change, starting from the end position of the first road section, obtain from the map data a plurality of third data points corresponding to the first lane line of the second road section and a plurality of fourth data points corresponding to the second lane line of the second road section, the direction of the second road section being the same as the driving direction; determine whether there is at least one candidate intersection between the first lane line and the second lane line based on the multiple third data points and the multiple fourth data points.
[0028] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the candidate intersection judgment module is also used to: determine multiple first vertical distances between the first lane line and the second lane line based on the multiple third data points and the multiple fourth data points; determine a distance change trend based on the multiple first vertical distances, and the distance change trend is used to represent the change law of the vertical distance along the driving direction; determine whether there is at least one candidate intersection between the first lane line and the second lane line based on the distance change trend and / or the multiple first vertical distances.
[0029] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the candidate intersection judgment module is also used to: determine that there is at least one candidate intersection between the first lane line and the second lane line when the distance change trend meets the preset trend and there is at least one first vertical distance among the multiple first vertical distances that is less than or equal to the first threshold; determine that there is no at least one candidate intersection between the first lane line and the second lane line when the distance change trend does not meet the preset trend, or when the multiple first vertical distances are all greater than the first threshold.
[0030] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, after determining that there is at least one candidate intersection point between the first lane line and the second lane line, the device also includes: a candidate intersection determination module, used to determine the at least one candidate intersection point as at least one third data point among the multiple third data points corresponding to the at least one first vertical distance, and at least one fourth data point among the multiple fourth data points corresponding to the at least one first vertical distance.
[0031] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the preset trend includes an increase or a decrease, and the target intersection determination module is specifically used to: fuse the at least one candidate intersection to obtain a predicted intersection; when the distance change trend is a decrease, starting from the predicted intersection, obtain a plurality of fifth data points corresponding to the first lane line of the third section and a plurality of sixth data points corresponding to the second lane line of the third section, and the direction of the third section is the same as the driving direction; determine the target intersection based on the predicted intersection, the plurality of fifth data points and the plurality of sixth data points; when the distance change trend is an increase, starting from the predicted intersection, obtain a plurality of seventh data points corresponding to the first lane line of the fourth section and a plurality of eighth data points corresponding to the second lane line of the fourth section, and the direction of the fourth section is opposite to the driving direction; determine the target intersection based on the predicted intersection, the plurality of seventh data points and the plurality of eighth data points.
[0032] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the target intersection determination module is also used to: determine multiple second vertical distances based on the multiple fifth data points and the multiple sixth data points; when the multiple second vertical distances are all less than or equal to the second threshold, determine the target intersection as the predicted intersection; and, determine multiple third vertical distances based on the multiple seventh data points and the multiple eighth data points; when the multiple third vertical distances are all less than or equal to the second threshold, determine the target intersection as the predicted intersection.
[0033] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, after determining that there is at least one candidate intersection point between the first lane line and the second lane line, the device also includes: an intersection type determination module, which is used to determine the intersection type of the first lane line and the second lane line according to the distance change trend, and the intersection type is used to indicate the intersection direction of the first lane line and the second lane line.
[0034] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the preset trend includes increasing or decreasing, the intersection type includes lane line merging in or lane line merging out, and the intersection type determination module is specifically used to: when the distance change trend is decreasing, determine the intersection type as lane line merging in; when the distance change trend is increasing, determine the intersection type as lane line merging out.
[0035] In a third aspect, a cloud server is provided, comprising a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the cloud server executes the method in the first aspect or any possible implementation of the first aspect.
[0036] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0037] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a schematic diagram of a scenario for obtaining map data provided by an embodiment of the present application;
[0039] Figure 2is a schematic flow chart of a method for detecting lane line intersections provided in an embodiment of the present application;
[0040] Figure 3 (a) is a schematic diagram of a scenario for obtaining data points provided in an embodiment of the present application;
[0041] Figure 3 (b) is a schematic diagram of another scenario for obtaining data points provided in an embodiment of the present application;
[0042] Figure 4 (a) is a schematic diagram of a scenario for calculating vertical distance provided in an embodiment of the present application;
[0043] Figure 4 (b) is a schematic diagram of another scenario for calculating vertical distance provided in an embodiment of the present application;
[0044] Figure 5 is a schematic diagram of the structure of a device for detecting lane intersections provided in an embodiment of the present application;
[0045] Figure 6 It is a structural diagram of a cloud server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0047] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0048] The following describes the scenario of obtaining map data in crowdsourcing mode.
[0049] Figure 1 It is a schematic diagram of a scenario for obtaining map data provided in an embodiment of the present application.
[0050] For example, Figure 1As shown, vehicle 102 and vehicle 104 log in to cloud server 105 and communicate with cloud server 105 respectively through identity authentication. After establishing the communication connection, when acquiring map data in crowdsourcing mode, vehicle 102 can continuously collect data of various objects on the road during driving and upload it to cloud server 105. Similarly, vehicle 104 can continuously collect data of various objects on the road during driving and upload it to cloud server 105. After receiving the data sent by vehicle 102 and vehicle 104, cloud server 105 can process a large amount of data to obtain the latest high-precision map.
[0051] In a possible implementation, when the vehicle 102 drives to the lane corresponding to the lane line 101 , the data of the lane line 101 can be obtained during the driving process and sent to the cloud server 105 .
[0052] In another possible implementation, when the vehicle 104 drives to the lane corresponding to the lane line 103 , the data of the lane line 103 can be obtained during the driving process and sent to the cloud server 105 .
[0053] The cloud server 105 can obtain and process data of multiple lane lines on the road in the above manner.
[0054] For example, Figure 1 As shown, when lane line 101 and lane line 103 intersect, cloud server 105 can determine the intersection of lane line 101 and lane line 103 based on the acquired data of lane line 101 and lane line 103 during the processing in order to ensure the accuracy of the data sent to each vehicle.
[0055] At present, the relevant technology mainly obtains the image of the lane line, extracts the features of the image to obtain the feature image, and finally inputs the feature image into the intersection detection model to obtain the intersection of the lane line.
[0056] The lane intersections are obtained through image processing, which inevitably results in inaccurate image acquisition. In addition, feature extraction of the image is performed before inputting it into the intersection model, which results in a long and cumbersome process for determining the intersection.
[0057] Based on the above problems, the present application provides a method for detecting the intersection of lane lines, which can simply and efficiently identify the intersection of two lane lines and provide accurate road information for vehicle driving.
[0058] After introducing the application scenarios of the embodiments of the present application, a method for detecting lane line intersections provided by the embodiments of the present application is introduced below.
[0059] Figure 2 FIG. 1 is a schematic flow chart of a method for detecting lane intersections provided in an embodiment of the present application. It should be understood that the method can be applied to Figure 1 The scenario shown is specifically applied to Figure 1 The cloud server 105 in.
[0060] For example, Figure 2 As shown, the method 200 includes:
[0061] 201. Acquire from map data at least one first data point corresponding to a first lane line of a first road section and a plurality of second data points corresponding to a second lane line of the first road section, wherein the second lane line is a lane line adjacent to the first lane line, and when the first lane line is parallel to the second lane line, the first lane line and the second lane line have the same driving direction.
[0062] It should be understood that during the process of constructing a crowd-source map, the cloud server can obtain the map data required for constructing the crowd-source map by receiving road data collected by multiple vehicles.
[0063] Optionally, depending on the collection object, the map data may include lane line data, building data, traffic light data, etc.
[0064] In one possible implementation, when lane line detection is required, the cloud server can process lane line data in the map data. In the embodiment of the present application, lane line data processing specifically refers to detecting whether there is an intersection between two lane lines. The lane line data can be specifically understood as multiple data points that constitute the lane line.
[0065] Since the position of each lane line on the road is fixed, the lane line data collected by the vehicle is also fixed. In other words, each data point of each lane line corresponds to a unique identifier, which can be understood as the coordinates of the data point, that is, the World Geodetic System-84 (WGS-84, also known as World Geodetic Coordinate System 84) coordinates based on the Global Positioning System (GPS). For convenience, in the embodiments of the present application, the coordinates of any data point are marked as "( x,y )",in, x Represents the longitude of the data point, y Represents the latitude of the data point.
[0066] During the lane line detection process, the cloud server can determine whether there are two adjacent lane lines with the same driving direction based on the lane line data of multiple lane lines acquired in advance. The reason why the driving directions of two adjacent lane lines are defined as the same is that when the driving directions of the two lane lines are different, the two lane lines do not have the possibility of crossing. Specifically, the driving directions of the two lane lines are the same, which means that when the two lane lines are parallel, the driving directions of the two lane lines are the same.
[0067] For example, to determine whether the driving directions of two lane lines are the same, during the process of collecting lane line data, the vehicle can also send the driving direction of each lane line to the cloud server, so that when the cloud server performs lane line detection, it can determine whether the driving directions of two adjacent lane lines are the same based on the driving directions.
[0068] When it is determined that the driving directions of the two lane lines are the same, the cloud server can select one of the lane lines (recorded as the "first lane line") as the current target lane line for processing. Specifically, during the processing, since there are multiple data points corresponding to the lane line, the cloud server starts from the first data point and traverses all data points corresponding to the lane line one by one along the driving direction of the lane line. In the process of traversing each data point, with the current data point as the center of the circle, the cloud server searches for multiple data points of the adjacent lane line (recorded as the "second lane line") within the preset range, and the multiple data points that fall within the preset range.
[0069] Finally, the cloud server can jointly determine whether the first lane line and the second lane line intersect based on the data points on the first lane line and the data points on the second lane line, and the intersection point of the first lane line and the second lane line if they intersect.
[0070] It should be understood that when lane lines intersect, they may correspond to two situations: merging in or merging out.
[0071] In the case of lane lines merging, before merging, the two lane lines on the road are generally almost parallel, and the vertical distance between the two lane lines is kept within a certain range. When the two lane lines intersect, the vertical distance between the two lane lines will suddenly change at a certain point and gradually decrease until the two lane lines intersect.
[0072] In the case of lane lines merging, before merging, the two lane lines are almost overlapped, and the vertical distance between the two lane lines is basically 0. When the two lane lines approach or reach the intersection, the vertical distance between the two lane lines will change suddenly at a certain point and gradually increase until the two lane lines gradually become parallel.
[0073] Below through Figure 3 The data acquisition process in the two crossover cases is described in detail.
[0074] Figure 3 It is a schematic diagram of a scenario for obtaining data points provided in an embodiment of the present application.
[0075] For example, Figure 3 (a) in the figure corresponds to the data point acquisition scenario when the lane line merges. Assume that the driving direction is from right to left. When the cloud server processes lane line L1, the data point currently being processed is point 1. During the search process, points 2, 3, and 4 on lane line L2 are searched within a certain range with point 1 as the center.
[0076] like Figure 3 As shown in (b), it corresponds to the data point acquisition scenario when the lane line is exported. Assume that the driving direction is from left to right.
[0077] It should be understood that in the collection process of the embodiment of the present application, in order to ensure the accuracy of the data collection of each lane line, each lane line is usually collected repeatedly multiple times, and the data of the same lane line collected multiple times are fused to finally obtain the map data (lane line data) used to construct the crowd-source map.
[0078] Optionally, the method for lane line collection can be to collect multiple data points on each lane line one by one in the order of lane lines, or to collect multiple data points for each lane line in multiple lane lines at the same time. The embodiment of the present application does not limit the method of data point collection.
[0079] It should also be understood that although the two lane lines intersect, in the actual collection process, the intersecting part belongs to both the L1 lane line and the L2 lane line, that is, when the vehicle collects the L1 lane line, it can obtain the data points of the intersecting part; when collecting the L2 lane line, it can also obtain the data points of the intersecting part. When the cloud server processes the lane line L1, assuming that the data point currently being processed is point 5, during the search process, points 6, 7, and 8 on the lane line L2 are searched within a certain range with point 5 as the center.
[0080] By analogy, the same process is applied to other data points on the L1 lane line.
[0081] Cloud servers can be Figure 3 In the method shown in (a)-(b) in the figure, multiple data points on two lane lines within a certain distance are obtained, and the vertical distance between the two lane lines is calculated based on the multiple data points to determine whether the vertical distance between the two lane lines within this distance changes suddenly, so as to determine whether there is a possibility that the two lane lines cross.
[0082] Whether the vertical distance changes suddenly, for the case of inflow, it means that the vertical distance suddenly decreases; for the case of outflow, it means that the vertical distance suddenly increases.
[0083] A distance may be a road section where the currently processed data point is located, which is referred to as a "first road section" in the embodiment of the present application, wherein the direction of the first road section is the same as the driving direction of the first lane line or the second lane line. When acquiring data points on the first road section, the data points acquired on the first lane line are referred to as "at least one first data point", and the data points on the second lane line are referred to as "multiple second data points".
[0084] Through the above step 201, the cloud server can obtain at least one data point on the first lane line and multiple second data points on the second lane line.
[0085] 202. Determine, based on at least one first data point and a plurality of second data points, whether there is at least one candidate intersection point between a first lane line and a second lane line, at which the intersection probability between the first lane line and the second lane line is greater than a preset probability.
[0086] The sudden change in the vertical distance between the first lane line and the second lane line is a prerequisite for the intersection of the two lane lines. Therefore, after obtaining at least one first data point and multiple second data points, the cloud server can calculate multiple vertical distances between the first lane line and the second lane line based on these data points, determine whether a sudden change in distance occurs, and further determine whether there is at least one candidate intersection point between the first lane line and the second lane line.
[0087] In a possible implementation, determining whether there is at least one candidate intersection point between a first lane line and a second lane line according to at least one first data point and a plurality of second data points includes:
[0088] Determining, based on at least one first data point and a plurality of second data points, whether a rate of change of a vertical distance between a first lane line and a second lane line is greater than a preset rate of change;
[0089] When the rate of change of the vertical distance is greater than the preset rate of change, starting from the end position of the first road section, a plurality of third data points corresponding to the first lane line of the second road section and a plurality of fourth data points corresponding to the second lane line of the second road section are obtained from the map data, and the direction of the second road section is the same as the driving direction;
[0090] Based on the plurality of third data points and the plurality of fourth data points, it is determined whether there is at least one candidate intersection point between the first lane line and the second lane line.
[0091] For example, Figure 3As shown in (a) in FIG. 1 , at least one first data point is point 1, and multiple second data points are point 2, point 3, and point 4. Figure 3 As shown in (b), the at least one first data point is point 5, and the multiple second data points are point 6, point 7 and point 8.
[0092] When calculating the vertical distance between lane line L1 and lane line L2, due to Figure 3 The L2 in is approximately a straight line, which can be calculated using the following point-to-straight line distance formula (1):
[0093] Formula (1)
[0094] In formula (1):
[0095] Ax 0 +By 0 +C : The equation of lane line L2 can be solved by any two data points among the plurality of second data points;
[0096] x 0: the longitude of each first data point in at least one first data point;
[0097] y 0: the latitude of each first data point in at least one first data point;
[0098] d : The vertical distance between lane line L1 and lane line L2, unit: meter (m).
[0099] In the above manner, the cloud server can calculate multiple vertical distances between the first lane line and the second lane line in the first road section. Assuming that the multiple vertical distances are respectively “ d 1. d 2. d 3 and d 4".
[0100] When the first lane line and the second lane line are parallel or overlapped, the vertical distance change rate is generally not too large. Here, the vertical distance change rate can be specifically expressed as the following formula (2):
[0101]
[0102] In formula (2):
[0103] s : vertical distance change rate;
[0104] d 1: The vertical distance calculated last time, unit: meter (m);
[0105] d 2: The currently calculated vertical distance, in meters (m).
[0106] Generally speaking, when lane lines merge, before merging, the two lane lines are almost parallel, and the vertical distance between the lane lines is 3.5-3.7 meters. Based on this, the range of the change rate of the vertical distance is approximately between 0-5%.
[0107] For the case of lane lines merging, before merging, the two lane lines are almost overlapped, and the vertical distance between the lane lines is approximately 0 meters. Based on this, the range of the change rate of the vertical distance is approximately 0-5%. Therefore, the preset change rate can be 5%. The above preset change rate is just an example, and in actual application, it can also be adjusted according to actual needs.
[0108] After obtaining multiple vertical distance change rates corresponding to two adjacent vertical distances based on multiple vertical distances, the cloud server can determine whether there is a vertical distance change rate greater than a preset change rate among the multiple vertical distance change rates.
[0109] When the vertical distance change rate is less than or equal to the preset change rate, it means that the two lane lines are still relatively parallel or overlapped. When the vertical distance change rate is greater than the preset change rate, it means that the curvature (or trajectory) of the lane line has changed suddenly and there is a possibility of crossing.
[0110] Therefore, when the cloud server determines that the vertical distance change rate is greater than the preset change rate, the cloud server starts from the end position of the first section and obtains multiple third data points of the second section on the first lane line and multiple fourth data points on the second lane line of the second section along the driving direction.
[0111] Optionally, the length of the second section may be the same as or different from the length of the first section, and this is not limited in the embodiment of the present application.
[0112] When acquiring multiple third data points and multiple fourth data points in the second road section, the method is the same as the aforementioned method of acquiring at least one first data point and multiple second data points, which will not be repeated here.
[0113] After obtaining the plurality of third data points and the plurality of fourth data points, the cloud server may determine whether there is at least one candidate intersection point between the first lane line and the second lane line.
[0114] In the above technical solution, in the intersection scene, for lane line merging, the two adjacent lane lines maintain a parallel relationship before merging and the vertical distance between the two lane lines remains basically unchanged. For lane line merging, the two lane lines basically overlap before merging and the vertical distance between the two lane lines remains basically unchanged. When two lane lines intersect, the two lane lines become non-parallel or no longer overlap when approaching the intersection, and the vertical distance changes. Therefore, when determining whether there is a candidate intersection point between two adjacent lane lines, it can be determined whether there is a point on any lane line that causes a sudden change in the vertical distance, that is, a point where the rate of change of the vertical distance is greater than a preset rate of change. If there is, starting from the current point along the driving direction of the two lane lines, multiple third data points are taken on the first lane line and multiple fourth data points are taken on the second lane line. The existence of the above point where the distance suddenly changes indicates that there is a possibility that the two lane lines intersect, thereby realizing a quick prediction of whether the two lane lines intersect through the rate of change of the vertical distance. When there is a possibility of intersection, the third data point and the fourth data point are obtained to determine whether there is a candidate intersection point. Since the vertical distance between the two lane lines remains basically unchanged before the mutation, it is meaningless to select the data points before the mutation to determine whether there is a candidate intersection and the result is inaccurate. Therefore, the above process can ensure the reliability and accuracy of data point selection and the accuracy of candidate intersection judgment.
[0115] Specifically, after the vertical distance between the first lane line and the second lane line suddenly changes, when determining whether there is at least one candidate intersection point between the two lane lines based on multiple third data points and multiple fourth data points, the vertical distance between the two lane lines can also be used for judgment.
[0116] In a possible implementation, determining whether there is at least one candidate intersection point between the first lane line and the second lane line according to the plurality of third data points and the plurality of fourth data points includes:
[0117] Determine a plurality of first perpendicular distances between the first lane line and the second lane line based on the plurality of third data points and the plurality of fourth data points;
[0118] Determine a distance change trend according to the plurality of first vertical distances, where the distance change trend is used to indicate a change rule of the vertical distance along the driving direction;
[0119] Determine whether there is at least one candidate intersection point between the first lane line and the second lane line according to the distance variation trend and / or the plurality of first vertical distances.
[0120] Figure 4 It is a schematic diagram of a scenario for calculating vertical distance provided in an embodiment of the present application.
[0121] For example, Figure 4As shown in (a) in FIG. 1 , it corresponds to the situation where the lane line merges. Assume that the plurality of third data points are point a, point b, point c, and point d. The plurality of fourth data points are point e, point f, point g, point h, point i, and point j.
[0122] By using the above formula (1), the cloud server can calculate the vertical distance between point a on lane line L1 and lane line L2. d 14 , and the vertical distance between point b on lane line L1 and lane line L2 d 13 , and the vertical distance between point c on lane line L1 and lane line L2 d 12 , and the vertical distance between point d on lane line L1 and lane line L2 d 11 , that is, multiple first vertical distances.
[0123] Similarly, if Figure 4 As shown in (b) in FIG. 1 , it corresponds to the situation where the lane line is exported. Assume that the plurality of third data points are point a, point b, point c and point d. The plurality of fourth data points are point e, point f, point g, point h, point i and point j.
[0124] By using the above formula (1), the cloud server can calculate the vertical distance between point a on lane line L1 and lane line L2. d 14 , and the vertical distance between point b on lane line L1 and lane line L2 d 13 , and the vertical distance between point c on lane line L1 and lane line L2 d 12 , and the vertical distance between point d on lane line L1 and lane line L2 d 11 , that is, multiple first vertical distances.
[0125] After obtaining multiple first vertical distances, the cloud server can determine the distance change trend, that is, the change pattern of the vertical distance along the driving direction, based on the multiple first vertical distances, that is, whether the vertical distance continues to increase or decrease along the driving direction, or does not show regular changes.
[0126] For example, Figure 4 As shown in (a), according to multiple first vertical distances d 14 、d 13 , d 12 and d 11 The cloud server can determine that the distance change trend is decreasing.
[0127] like Figure 4 As shown in (b), according to multiple first vertical distances d 14 、d 13 , d 12 and d 11 The cloud server can determine that the distance change trend is increasing.
[0128] After determining the distance variation trend, the cloud server may determine whether there is at least one candidate intersection point between the first lane line and the second lane line according to the distance variation trend and / or the plurality of first vertical distances.
[0129] It should be understood that here, when determining at least one candidate intersection point, in addition to considering the distance change trend, the reason for further considering multiple first vertical distances is that: when the distance change trend meets the intersection condition, if the vertical distance between the two lane lines is still large, it means that the two lane lines are not close to crossing (or overlapping), that is, there is no candidate intersection point. Therefore, when the distance change trend meets the intersection condition, it is also necessary to determine whether the two lane lines have crossed based on multiple first vertical distances.
[0130] When determining whether there is at least one candidate intersection point between the first lane line and the second lane line based on the distance change trend and / or multiple first vertical distances, on the one hand, it is necessary to determine whether the distance change trend continues to increase or continues to decrease, and on the other hand, it is also necessary to determine whether there is a first vertical distance less than or equal to a first threshold among the multiple first vertical distances. The first threshold can be considered to be the vertical distance representing the first lane line and the second lane line are close to crossing.
[0131] In a possible implementation, determining whether there is at least one candidate intersection point between the first lane line and the second lane line according to the distance change trend and / or the plurality of first vertical distances includes:
[0132] When the distance change trend satisfies a preset trend and at least one first vertical distance among the plurality of first vertical distances is less than or equal to a first threshold, determining that there is at least one candidate intersection point between the first lane line and the second lane line;
[0133] When the distance variation trend does not satisfy the preset trend, or when the plurality of first vertical distances are all greater than the first threshold, it is determined that there is no at least one candidate intersection point between the first lane line and the second lane line.
[0134] Optionally, the preset trend includes increasing or decreasing.
[0135] When the distance change trend increases or decreases, it means that the two lane lines meet the intersection condition, that is, merge in or merge out. In addition, when there is at least one first vertical distance less than or equal to the first threshold value among the multiple first vertical distances, it means that there is a data point close to the intersection point among the selected multiple third data points and multiple fourth data points, that is, the current two lane lines are about to overlap. Therefore, the cloud server determines that there is at least one candidate intersection point between the first lane line and the second lane line.
[0136] On the contrary, when the distance change trend is not increasing or decreasing, it does not meet the import or export conditions. Alternatively, when multiple first vertical distances are all greater than the first threshold, it means that the selected data point is not a data point near the intersection, and the cloud server determines that there is no at least one candidate intersection between the first lane line and the second lane line.
[0137] In the above technical solution, when determining whether there is at least one candidate intersection between the first lane line and the second lane line, firstly, based on the plurality of third data points and the plurality of fourth data points, the plurality of first vertical distances between the two lane lines are determined. According to the plurality of first vertical distances, the distance change trend can be obtained, that is, whether the distance gradually increases or the distance gradually decreases or neither gradually increases nor gradually decreases. When the distance change trend is gradually increasing or gradually decreasing, it indicates that the two lane lines meet the intersection condition. After the intersection condition is met, since the vertical distance between the two lane lines is very small near the intersection, it is also necessary to determine whether there is a vertical distance less than or equal to the first threshold value among the plurality of first vertical distances, that is, to determine whether the currently selected third data point and the fourth data point are close to the intersection after the two lane lines meet the intersection condition. If so, it indicates that the two lane lines are about to merge or merge. The above process can accurately distinguish whether the lane lines are about to merge or separate through the distance change trend, and can ensure the accuracy of the determination of the intersection of the two lane lines.
[0138] In another scenario, based on the vertical distance, the slope change trend of the lane line can be further combined to determine whether there is at least one candidate intersection of the lane line.
[0139] For example, Figure 4 As shown in (a) and (b) in the figure, there are multiple data points on the lane line L1, point a, point b, point c and point d. In addition to calculating d 14 、d 13 , d 12 and d 11In addition, the cloud server can also calculate the slopes corresponding to two adjacent data points according to the coordinates of point a, point b, point c, and point d, thereby obtaining three slopes of lane line L1 along the driving direction, which are recorded as " k cd , k bc and k ab ".when d 14 <d 13 <d 12 <d 11 and d 14 is less than or equal to the first threshold, and k cd < k bc < k ab , it means that there is a candidate intersection point between lane line L1 and lane line L2.
[0140] After determining that there is at least one candidate intersection point between the first lane line and the second lane line, the cloud server may further determine the intersection type of the two lane lines, that is, whether the first lane line and the second lane line are specifically lane lines merging in or lane lines merging out.
[0141] In a possible implementation, after determining that there is at least one candidate intersection point between the first lane line and the second lane line, the method further includes:
[0142] According to the distance variation trend, the intersection type of the first lane line and the second lane line is determined, and the intersection type is used to indicate the intersection direction of the first lane line and the second lane line.
[0143] When the distance change trend meets the preset trend, the distance change trend is either increasing or decreasing. Based on the above two distance change trends, two crossover types are corresponding.
[0144] In a possible implementation, determining the intersection type of the first lane line and the second lane line according to the distance change trend includes:
[0145] When the distance change trend is decreasing, the intersection type is determined to be lane merging;
[0146] When the distance change trend is increasing, the intersection type is determined to be lane line export.
[0147] For example, Figure 4 As shown in (a), according to multiple first vertical distances d 14、d 13 , d 12 and d 11 The cloud server can determine that the distance change trend is decreasing. Therefore, the intersection type is lane line merging.
[0148] like Figure 4 As shown in (b), according to multiple first vertical distances d 14 、d 13 , d 12 and d 11 The cloud server can determine that the distance change trend is increasing. Therefore, the intersection type is exported as lane line.
[0149] In the above technical solution, the present application also proposes a method for determining whether the two lane lines are merging out or merging in based on the distance change trend between the two lane lines. When the distance change trend along the driving direction decreases, it indicates that the two lane lines are merging in; when the distance change trend along the driving direction increases, it indicates that the two lane lines are merging out. Therefore, the solution of the present application can not only determine the intersection point of the two lane lines, but also accurately identify the intersection type of the two lane lines in a simple, efficient and accurate manner.
[0150] After determining that there is at least one candidate intersection point between the first lane line and the second lane line, the cloud server may determine the at least one candidate intersection point based on a plurality of first vertical distances.
[0151] In a possible implementation, after determining that there is at least one candidate intersection point between the first lane line and the second lane line, the method further includes:
[0152] At least one candidate intersection point is determined as at least one first data point of the plurality of first data points corresponding to the at least one first vertical distance, and at least one second data point of the plurality of second data points corresponding to the at least one first vertical distance.
[0153] For example, Figure 4 As shown in (a) and (b) in FIG. 1 , the first vertical distances are d 14 、d 13 , d 12 and d 11 , assuming d 14 is less than the first threshold. d14 The third data point used is point a and the fourth data points e and f. When the cloud server determines d 14 If the value used to calculate d 14 The data points - point a, point e and point f, that is, at least one candidate intersection point that meets the conditions.
[0154] In the above technical solution, at least one first vertical distance is less than or equal to the first threshold, indicating that the first lane line and the second lane line are infinitely close. Therefore, the present application can consider the third data point used to determine at least one first vertical distance among the multiple third data points, and the fourth data point used to determine at least one first vertical distance among the multiple fourth data points as candidate intersection points, that is, some data points when the first lane line and the second lane line are almost intersecting. Therefore, the above process can ensure the accuracy and reliability of the selection of candidate intersection points.
[0155] Therefore, through step 202, when it is determined that the first lane line and the second lane line intersect, the cloud server can further determine at least one candidate intersection point that meets the conditions.
[0156] 203. When there is at least one candidate intersection point between the first lane line and the second lane line, determine a target intersection point between the first lane line and the second lane line based on the at least one candidate intersection point, where the target intersection point is used to represent an actual intersection position of the first lane line and the second lane line.
[0157] After determining at least one candidate intersection point, in order to obtain a more accurate target intersection point, the cloud server may further process the at least one candidate intersection point.
[0158] In a possible implementation, when there is at least one candidate intersection point between the first lane line and the second lane line, determining a target intersection point between the first lane line and the second lane line according to the at least one candidate intersection point includes:
[0159] Fusing at least one candidate intersection point to obtain a predicted intersection point;
[0160] When the distance change trend is decreasing, starting from the predicted intersection, obtaining a plurality of fifth data points corresponding to the first lane line of the third road section and a plurality of sixth data points corresponding to the second lane line of the third road section, the direction of the third road section being the same as the driving direction; determining the target intersection according to the predicted intersection, the plurality of fifth data points and the plurality of sixth data points;
[0161] When the distance change trend is increasing, starting from the predicted intersection, obtain multiple seventh data points corresponding to the first lane line of the fourth section and multiple eighth data points corresponding to the second lane line of the fourth section, and the direction of the fourth section is opposite to the driving direction; determine the target intersection based on the predicted intersection, multiple seventh data points and multiple eighth data points.
[0162] For example, Figure 4 As shown in (a) and (b) in FIG, at least one candidate intersection point is point a, point e and point f. Since each data point has corresponding coordinates when it is collected, the cloud server can fuse at least one candidate intersection point based on the coordinates of at least one candidate intersection point, that is, calculate the average value (average coordinate) of the coordinates of at least one candidate intersection point, and determine the data point corresponding to the average coordinate as the predicted intersection point.
[0163] In order to ensure the accuracy and reliability of lane line intersection judgment, after obtaining the predicted intersection point, the cloud server can also use the predicted intersection point as the starting point to obtain the vertical distance between the two lane lines within a certain distance after the intersection to determine whether the predicted intersection point can be used as the final target intersection point.
[0164] It should be understood that when taking the predicted intersection as the starting point and obtaining the vertical distance between the two lane lines within a certain distance after the intersection, for the case of lane line export, in the process of traversing the data points on the lane line along the driving direction of the lane line, since the data points within a certain distance after the intersection have been traversed in this case, in order to ensure the stability of the intersection, the cloud server needs to calculate the vertical distance again.
[0165] For example, Figure 4 As shown in (a) in the figure, when the lane line merges, assuming that the predicted intersection point is point O, the cloud server can follow the driving direction according to Figure 3 The data acquisition method shown acquires multiple fifth data points corresponding to the first lane line in the third road section (not shown in the figure), and multiple sixth data points corresponding to the second lane line in the third road section (not shown in the figure).
[0166] Based on point O, multiple fifth data points and multiple sixth data points, the cloud server can determine whether the predicted intersection can be used as a target intersection when the lane line merges.
[0167] Specifically, when determining whether the predicted intersection can be used as the target intersection, the cloud server can continue to calculate the vertical distance corresponding to formula (1).
[0168] In a possible implementation, the target intersection point is determined according to the predicted intersection point, the plurality of fifth data points, and the plurality of sixth data points, and the method further includes:
[0169] A plurality of second vertical distances are determined based on the plurality of fifth data points and the plurality of sixth data points; and when the plurality of second vertical distances are all less than or equal to the second threshold, the target intersection point is determined to be the predicted intersection point.
[0170] Specifically, after obtaining the plurality of fifth data points and the plurality of sixth data points, the cloud server calculates the plurality of second vertical distances between the first lane line and the second lane line according to formula (1). When the plurality of second vertical distances are all less than or equal to the second threshold, it indicates that after the predicted intersection, the first lane line and the second lane line still remain stably overlapped, and in this case, the predicted intersection can be determined as the final target intersection.
[0171] Similarly, for example, Figure 4 As shown in (b) in the figure, when the lane line converges, assuming that the predicted intersection point is point O, the cloud server can follow the opposite direction of the driving direction. Figure 3 The data acquisition method shown acquires multiple seventh data points corresponding to the first lane line in the fourth road section (not shown in the figure), and multiple eighth data points corresponding to the second lane line in the third road section (not shown in the figure).
[0172] Based on point O, multiple seventh data points and multiple eighth data points, the cloud server can determine whether the predicted intersection can be used as a target intersection when the lane line is derived.
[0173] Similarly, when determining whether the predicted intersection can be used as the target intersection, the cloud server can continue to calculate the vertical distance corresponding to formula (1).
[0174] In a possible implementation, determining a target intersection point according to the predicted intersection point, a plurality of seventh data points, and a plurality of eighth data points includes:
[0175] A plurality of third vertical distances are determined based on the plurality of seventh data points and the plurality of eighth data points; and when the plurality of third vertical distances are all less than or equal to the second threshold, the target intersection point is determined to be the predicted intersection point.
[0176] Specifically, after obtaining the plurality of seventh data points and the plurality of eighth data points, the cloud server calculates the plurality of third vertical distances between the first lane line and the second lane line according to formula (1). When the plurality of third vertical distances are all less than or equal to the second threshold, it indicates that after the predicted intersection, the first lane line and the second lane line still remain stably overlapped, and in this case, the predicted intersection can be determined as the final target intersection.
[0177] In the above technical solution, after obtaining at least one candidate intersection point, in order to obtain the final target intersection point, at least one candidate intersection point is first fused to obtain a predicted intersection point. Considering the stability of the intersection of the first lane line and the second lane line, after obtaining the predicted intersection point, multiple data points of the two lane lines within a certain distance can also be obtained to determine whether the two lane lines still show a stable intersection trend. According to the different distance change trends, it is specifically divided into the following two scenarios:
[0178] The first is that when the distance gradually decreases, it indicates that the two lane lines may merge along the driving direction. After the predicted intersection is determined, a target intersection of the merging lane line is determined in a third section along the driving direction according to the predicted intersection and a plurality of fifth data points and a plurality of sixth data points respectively corresponding to the two lane lines in the third section.
[0179] The second is that when the distance gradually increases, it indicates that the two lane lines may converge along the driving direction. After the predicted intersection is determined, in a fourth section in the opposite direction of the driving direction, a target intersection of the convergent lane line is determined based on the predicted intersection and a plurality of seventh data points and a plurality of eighth data points respectively corresponding to the two lane lines in the fourth section.
[0180] The above process can flexibly determine the intersection point of two lane lines in different intersection scenarios and can ensure the stability and accuracy of the target intersection point determination.
[0181] When two lane lines merge, after obtaining the predicted intersection, the present application can also determine multiple second vertical distances in the third section after the predicted intersection based on multiple fifth data points and multiple sixth data points, and determine the predicted intersection as the target intersection when the multiple second vertical distances are all less than or equal to the second threshold. Similarly, when two lane lines merge, multiple third vertical distances in the fourth section after the predicted intersection can be determined based on multiple seventh data points and multiple eighth data points, and determine the predicted intersection as the target intersection when the multiple third vertical distances are all less than or equal to the second threshold. The above process can ensure the stability of lane line intersection and avoid inaccurate intersection determination caused by only local areas of two lane lines intersecting.
[0182] Figure 5 It is a structural schematic diagram of a device for detecting lane line intersections provided in an embodiment of the present application.
[0183] For example, Figure 5 As shown, the device 500 includes:
[0184] A data acquisition module 501 is used to acquire, from map data, at least one first data point corresponding to a first lane line of a first road section and a plurality of second data points corresponding to a second lane line of the first road section, wherein the second lane line is a lane line adjacent to the first lane line, and when the first lane line is parallel to the second lane line, the first lane line and the second lane line have the same driving direction;
[0185] A candidate intersection determination module 502 is used to determine whether there is at least one candidate intersection between the first lane line and the second lane line according to the at least one first data point and the plurality of second data points, and at the candidate intersection, the intersection probability between the first lane line and the second lane line is greater than a preset probability;
[0186] The target intersection determination module 503 is used to determine the target intersection between the first lane line and the second lane line based on the at least one candidate intersection when there is at least one candidate intersection between the first lane line and the second lane line. The target intersection is used to represent the actual intersection position of the first lane line and the second lane line.
[0187] In one possible implementation, the candidate intersection judgment module 502 is specifically used to: judge whether the change rate of the vertical distance between the first lane line and the second lane line is greater than a preset change rate based on the at least one first data point and the multiple second data points; when the change rate of the vertical distance is greater than the preset change rate, starting from the end position of the first road section, obtain from the map data a plurality of third data points corresponding to the first lane line of the second road section and a plurality of fourth data points corresponding to the second lane line of the second road section, the direction of the second road section being the same as the driving direction; determine whether there is at least one candidate intersection between the first lane line and the second lane line based on the multiple third data points and the multiple fourth data points.
[0188] In one possible implementation, the candidate intersection judgment module 502 is also used to: determine multiple first vertical distances between the first lane line and the second lane line based on the multiple third data points and the multiple fourth data points; determine a distance change trend based on the multiple first vertical distances, and the distance change trend is used to represent the change pattern of the vertical distance along the driving direction; determine whether there is at least one candidate intersection between the first lane line and the second lane line based on the distance change trend and / or the multiple first vertical distances.
[0189] In one possible implementation, the candidate intersection judgment module 502 is also used to: determine that there is at least one candidate intersection between the first lane line and the second lane line when the distance change trend meets the preset trend and there is at least one first vertical distance less than or equal to the first threshold among the multiple first vertical distances; and determine that there is no at least one candidate intersection between the first lane line and the second lane line when the distance change trend does not meet the preset trend, or when the multiple first vertical distances are all greater than the first threshold.
[0190] Optionally, after determining that there is at least one candidate intersection point between the first lane line and the second lane line, the device also includes: a candidate intersection point determination module, used to determine the at least one candidate intersection point as at least one third data point among the multiple third data points corresponding to the at least one first vertical distance, and at least one fourth data point among the multiple fourth data points corresponding to the at least one first vertical distance.
[0191] In one possible implementation, the preset trend includes an increase or a decrease, and the target intersection determination module 503 is specifically used to: fuse the at least one candidate intersection to obtain a predicted intersection; when the distance change trend is a decrease, starting from the predicted intersection, obtain a plurality of fifth data points corresponding to the first lane line of the third section and a plurality of sixth data points corresponding to the second lane line of the third section, and the direction of the third section is the same as the driving direction; determine the target intersection based on the predicted intersection, the plurality of fifth data points and the plurality of sixth data points; when the distance change trend is an increase, starting from the predicted intersection, obtain a plurality of seventh data points corresponding to the first lane line of the fourth section and a plurality of eighth data points corresponding to the second lane line of the fourth section, and the direction of the fourth section is opposite to the driving direction; determine the target intersection based on the predicted intersection, the plurality of seventh data points and the plurality of eighth data points.
[0192] In one possible implementation, the target intersection determination module 503 is also used to: determine multiple second vertical distances based on the multiple fifth data points and the multiple sixth data points; when the multiple second vertical distances are all less than or equal to the second threshold, determine the target intersection as the predicted intersection; and, determine multiple third vertical distances based on the multiple seventh data points and the multiple eighth data points; when the multiple third vertical distances are all less than or equal to the second threshold, determine the target intersection as the predicted intersection.
[0193] Optionally, after determining that there is at least one candidate intersection point between the first lane line and the second lane line, the device also includes: an intersection type determination module, used to determine the intersection type of the first lane line and the second lane line based on the distance change trend, and the intersection type is used to indicate the intersection direction of the first lane line and the second lane line.
[0194] In one possible implementation, the preset trend includes increasing or decreasing, the intersection type includes lane merging or lane merging, and the intersection type determination module is specifically used to: when the distance change trend is decreasing, determine the intersection type as lane merging; when the distance change trend is increasing, determine the intersection type as lane merging.
[0195] Figure 6 It is a structural diagram of a cloud server provided in an embodiment of the present application.
[0196] For example, Figure 6 As shown, the cloud server 105 includes: a memory 601 and a processor 602, wherein the memory 601 stores an executable program code 6011, and the processor 602 is used to call and execute the executable program code 6011 to perform a method for detecting lane line intersections.
[0197] In this embodiment, the cloud server can be divided into functional modules according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0198] In the case of dividing each functional module according to each function, the cloud server may include: a data acquisition module, a candidate intersection determination module, a target intersection determination module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0199] The cloud server provided in this embodiment is used to execute the above-mentioned method for detecting lane line intersections, and thus can achieve the same effect as the above-mentioned implementation method.
[0200] In the case of an integrated unit, the cloud server may include a processing module and a storage module. The processing module may be used to control and manage the actions of the cloud server. The storage module may be used to support the cloud server in executing related program codes and data.
[0201] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits shown in combination with the contents disclosed in this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0202] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a method for detecting lane line intersections in the above-mentioned embodiment.
[0203] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement a method for detecting lane line intersections in the above-mentioned embodiment.
[0204] In addition, the cloud server provided in the embodiments of the present application may specifically be a chip, component or module, and the cloud server may include a connected processor and memory; wherein the memory is used to store instructions, and when the cloud server is running, the processor may call and execute instructions so that the chip executes a method for detecting lane line intersections in the above-mentioned embodiments.
[0205] Among them, the cloud server, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0206] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0207] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0208] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for detecting lane intersections, characterized in that: The method comprises: Acquire at least one first data point corresponding to a first lane line of a first road section and a plurality of second data points corresponding to a second lane line of the first road section from the map data, wherein the second lane line is a lane line adjacent to the first lane line, and when the first lane line is parallel to the second lane line, the first lane line and the second lane line have the same travel direction; Based on the at least one first data point and the multiple second data points, determine whether the change rate of the vertical distance between the first lane line and the second lane line is greater than a preset change rate; if the change rate of the vertical distance is greater than the preset change rate, starting from the end position of the first road section, obtain from the map data a plurality of third data points corresponding to the first lane line of the second road section and a plurality of fourth data points corresponding to the second lane line of the second road section, the direction of the second road section being the same as the driving direction; determine a plurality of first vertical distances between the first lane line and the second lane line based on the plurality of third data points and the plurality of fourth data points; determine a distance change trend based on the plurality of first vertical distances. The distance variation trend is used to represent the variation law of the vertical distance along the driving direction; when the distance variation trend satisfies the preset trend and there is at least one first vertical distance less than or equal to a first threshold value among the multiple first vertical distances, it is determined that there is at least one candidate intersection point between the first lane line and the second lane line, and the preset trend includes increasing or decreasing. At the candidate intersection point, the intersection probability between the first lane line and the second lane line is greater than a preset probability; when the distance variation trend does not satisfy the preset trend, or the multiple first vertical distances are all greater than the first threshold value, it is determined that there is no at least one candidate intersection point between the first lane line and the second lane line; In the case where at least one candidate intersection exists between the first lane line and the second lane line, the average coordinates of the coordinates of the at least one candidate intersection are determined; the predicted intersection is determined to be the data point corresponding to the average coordinates; when the distance change trend is decreasing, starting from the predicted intersection, a plurality of fifth data points corresponding to the first lane line of a third section and a plurality of sixth data points corresponding to the second lane line of the third section are obtained, and the direction of the third section is the same as the driving direction; based on the predicted intersection, the plurality of fifth data points and the plurality of sixth data points, a target intersection between the first lane line and the second lane line is determined, and the target intersection is used to represent the actual intersection position of the first lane line and the second lane line; when the distance change trend is increasing, starting from the predicted intersection, a plurality of seventh data points corresponding to the first lane line of a fourth section and a plurality of eighth data points corresponding to the second lane line of the fourth section are obtained, and the direction of the fourth section is opposite to the driving direction; based on the predicted intersection, the plurality of seventh data points and the plurality of eighth data points, the target intersection is determined.
2. The method according to claim 1, characterized in that After determining that there is at least one candidate intersection point between the first lane line and the second lane line, the method further includes: The at least one candidate intersection point is determined to be at least one third data point among the plurality of third data points corresponding to the at least one first vertical distance, and at least one fourth data point among the plurality of fourth data points corresponding to the at least one first vertical distance.
3. The method according to claim 1, characterized in that The step of determining a target intersection point between the first lane line and the second lane line according to the predicted intersection point, the plurality of fifth data points, and the plurality of sixth data points comprises: Determine a plurality of second vertical distances according to the plurality of fifth data points and the plurality of sixth data points; and determine the target intersection point as the predicted intersection point when the plurality of second vertical distances are all less than or equal to a second threshold; And, determining the target intersection point according to the predicted intersection point, the plurality of seventh data points and the plurality of eighth data points comprises: A plurality of third vertical distances are determined based on the plurality of seventh data points and the plurality of eighth data points; and when the plurality of third vertical distances are all less than or equal to the second threshold, the target intersection point is determined to be the predicted intersection point.
4. The method according to claim 1, characterized in that: After determining that there is at least one candidate intersection point between the first lane line and the second lane line, the method further includes: According to the distance change trend, an intersection type of the first lane line and the second lane line is determined, where the intersection type is used to indicate an intersection direction of the first lane line and the second lane line.
5. The method according to claim 4, characterized in that The intersection type includes a lane line merging in or a lane line merging out, and determining the intersection type of the first lane line and the second lane line according to the distance change trend includes: When the distance change trend is decreasing, determining the intersection type is lane merging; When the distance variation trend is increasing, the intersection type is determined to be a lane line exit.
6. A device for detecting lane intersections, characterized in that: The device comprises: a data acquisition module, configured to acquire from map data at least one first data point corresponding to a first lane line of a first road section and a plurality of second data points corresponding to a second lane line of the first road section, wherein the second lane line is a lane line adjacent to the first lane line, and when the first lane line is parallel to the second lane line, the first lane line and the second lane line have the same driving direction; The candidate intersection judgment module is used to judge whether the change rate of the vertical distance between the first lane line and the second lane line is greater than a preset change rate based on the at least one first data point and the multiple second data points; when the change rate of the vertical distance is greater than the preset change rate, starting from the end position of the first road section, obtain from the map data a plurality of third data points corresponding to the first lane line of the second road section and a plurality of fourth data points corresponding to the second lane line of the second road section, the direction of the second road section being the same as the driving direction; determine a plurality of first vertical distances between the first lane line and the second lane line based on the plurality of third data points and the plurality of fourth data points; determine based on the plurality of first vertical distances A distance variation trend is determined, where the distance variation trend is used to indicate a variation rule of the vertical distance along the driving direction; when the distance variation trend satisfies a preset trend and there is at least one first vertical distance less than or equal to a first threshold value among the multiple first vertical distances, it is determined that there is at least one candidate intersection point between the first lane line and the second lane line, and the preset trend includes an increase or a decrease, and at the candidate intersection point, the intersection probability between the first lane line and the second lane line is greater than a preset probability; when the distance variation trend does not satisfy the preset trend, or when the multiple first vertical distances are all greater than the first threshold value, it is determined that there is no at least one candidate intersection point between the first lane line and the second lane line; A target intersection determination module is used to determine the average coordinates of the coordinates of the at least one candidate intersection when there is the at least one candidate intersection between the first lane line and the second lane line; determine the predicted intersection as the data point corresponding to the average coordinates; when the distance change trend is decreasing, starting from the predicted intersection, obtain a plurality of fifth data points corresponding to the first lane line of a third section and a plurality of sixth data points corresponding to the second lane line of the third section, the direction of the third section is the same as the driving direction; determine the target intersection between the first lane line and the second lane line according to the predicted intersection, the plurality of fifth data points and the plurality of sixth data points, the target intersection being used to represent the actual intersection position of the first lane line and the second lane line; when the distance change trend is increasing, starting from the predicted intersection, obtain a plurality of seventh data points corresponding to the first lane line of a fourth section and a plurality of eighth data points corresponding to the second lane line of the fourth section, the direction of the fourth section is opposite to the driving direction; determine the target intersection according to the predicted intersection, the plurality of seventh data points and the plurality of eighth data points.
7. A cloud server, characterized in that: The cloud server comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the cloud server executes the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 5 is implemented.
