A method and device for generating a lane-level topological network

By automatically generating lane-level topological networks using target vehicle trajectories and image detection models in high-precision maps, the problem of low manual drawing efficiency in the existing technology is solved, and efficient and accurate lane-level topological network generation is achieved.

CN112699708BActive Publication Date: 2024-10-25MOMENTA (SUZHOU) TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201911006953.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-22
Publication Date
2024-10-25
Estimated Expiration
2039-10-22

AI Technical Summary

Technical Problem

In the existing technology, the drawing of lane-level topological networks in high-precision maps requires a lot of manual labor, which is inefficient and costly.

Method used

By obtaining the driving trajectory and road image of the target vehicle in the target map, the pre-trained detection model is used to determine the lane centerline, and the lane centerline is even generated based on the map line when no lane line is observed, and the lane-level topology network is automatically generated. .

Benefits of technology

It reduces labor costs, improves efficiency, enables accurate generation of lane-level topological networks without perfect lane lines in the map, and improves the accuracy of generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112699708B_ABST
    Figure CN112699708B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method and device for generating a lane-level topological network. The method comprises: obtaining a backup track generated by a target vehicle traveling in a target scene corresponding to a target map and a road image corresponding to a positioning point in the backup track; for each road image corresponding to a positioning point, determining whether the target map contains a target map lane line corresponding to the positioning point based on the road image and the target map; for a positioning point whose target map does not contain its corresponding target map lane line, determining a first end endpoint and a first start endpoint corresponding to a lane where the positioning point is located based on the target map; based on the first end endpoint, the first start endpoint and the backup track passing through the first end endpoint and the first start endpoint, determining a lane topological relationship of a road section between the two, and connecting the two to generate a target lane-level topological network of the target map, so as to realize automatic generation of a lane-level topological network in a road of a map, reduce labor costs and improve efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transportation technology, and in particular to a method and device for generating a lane-level topological network. Background Art

[0002] The lane-level topology network is one of the important components of high-precision maps. In the related technology, in the production process of high-precision maps, it is necessary to manually draw the lane centerline of each lane of each road in the constructed initial high-precision map to generate a lane-level topology network in the initial high-precision map, and obtain a high-precision map containing the lane-level topology network.

[0003] In the related art, the above-mentioned drawing process requires a large amount of manpower to draw the lane-level topological network contained in the high-precision map, which wastes manpower and is inefficient. Summary of the invention

[0004] The present invention provides a method and device for generating a lane-level topological network, so as to realize automatic generation of a lane-level topological network in a road map, reduce labor costs and improve efficiency. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present invention provides a method for generating a lane-level topological network, comprising:

[0006] Obtaining a backup track generated by the target vehicle traveling in a target scene corresponding to a target map, and obtaining a road image corresponding to each positioning point in each backup track, wherein the target map includes map lane lines;

[0007] For each positioning point in each backup trajectory, determining whether the target map includes a target map lane line corresponding to the positioning point corresponding to the road image based on the road image and the map lane lines included in the target map, wherein the target map lane line corresponding to the positioning point corresponding to the road image includes: a left map lane line and a right map lane line corresponding to the lane where the positioning point is located in the target map;

[0008] For a positioning point whose target map does not contain its corresponding target map lane line, based on the map lane line in the target map, determine a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the lane where the positioning point is located, wherein the first lane centerline is: a lane centerline determined based on a target map lane line corresponding to a first positioning point behind the driving direction corresponding to the lane where the positioning point is located; the second lane centerline is: a lane centerline determined based on a target map lane line corresponding to a second positioning point in front of the driving direction corresponding to the lane where the positioning point is located;

[0009] Based on the first end endpoint, the first start endpoint, and the alternative trajectory passing through the first end endpoint and the first start endpoint, determine the lane topology relationship of the road section between the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to generate a target lane-level topology network of the target scene corresponding to the target map.

[0010] Optionally, the method further includes:

[0011] For a positioning point of a target map lane line corresponding to the target map contained in the target map, a lane centerline of the lane where the positioning point is located is determined based on the map position information of the target map lane line corresponding to the positioning point in the target map, so as to generate a target lane-level topological network of the target scene corresponding to the target map.

[0012] Optionally, the step of determining, for each positioning point in each backup trajectory, based on the road image and the map lane lines included in the target map, whether the target map includes a target map lane line corresponding to the positioning point corresponding to the road image, comprises:

[0013] For each road image corresponding to each positioning point in each backup trajectory, based on a pre-trained target detection model, the road image is detected to determine whether the road image contains a sensed lane line corresponding to the positioning point corresponding to the road image;

[0014] If it is determined that the road image includes a perceived lane line corresponding to the positioning point corresponding to the road image, based on the perceived position information corresponding to the corresponding positioning point in the road image and the map position information of the map lane line in the target map, determine whether the target map includes the target map lane line corresponding to the positioning point corresponding to the road image.

[0015] Optionally, for a positioning point that does not contain a corresponding target map lane line in the target map, the step of determining a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the positioning point based on the map lane lines in the target map includes:

[0016] For a positioning point whose target map does not contain a corresponding target map lane line, determining whether the positioning point is at a road intersection based on a corresponding detection result, wherein the detection result is a detection result obtained by detecting the road image based on a pre-trained lane line detection model;

[0017] For a positioning point that is not at a road intersection as represented by the corresponding detection result, a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the positioning point are determined based on the map lane lines in the target map and the driving trajectory of the positioning point.

[0018] Optionally, the method further includes:

[0019] For a positioning point represented by the corresponding detection result as being at a road intersection, based on the position information of the positioning point and the target map, determining the road intersection at which the positioning point is located as a first road intersection;

[0020] Based on the road image corresponding to the positioning point, determine the indication direction of the road driving indication arrow corresponding to the positioning point;

[0021] Based on the position information of the positioning point, the indicated direction of the road driving indication arrow corresponding to the positioning point, and the backup track passing through the first road intersection, the lane topology relationship of the center line of the exit lane, the center line of the entry lane, and the road section between the center line of the exit lane and the center line of the entry lane corresponding to the positioning point is determined from the current lane-level topology network of the target scene corresponding to the target map, wherein the center line of the exit lane is: the corresponding direction is the center line of the lane representing the vehicle entering the road intersection, and the center line of the entry lane is: the corresponding direction is the center line of the lane representing the vehicle exiting the road intersection;

[0022] Based on the lane topological relationship of the road section between the center line of the exit lane and the center line of the entry lane, the center line of the exit lane and the center line of the entry lane are connected to generate a target lane-level topological network of the target scene corresponding to the target map.

[0023] Optionally, the step of obtaining a backup trajectory generated by the target vehicle traveling in a target scene corresponding to the target map includes:

[0024] Obtaining an initial driving trajectory generated by the target vehicle driving in the target scene corresponding to the target map;

[0025] For each initial driving trajectory, based on the positioning time corresponding to each positioning point in the initial driving trajectory and the heading angle information corresponding to the positioning point, determining whether the initial driving trajectory includes a trajectory segment corresponding to a preset driving state, wherein the preset driving state includes at least one of a lane change driving state and a U-turn driving state;

[0026] If it is determined that the initial driving trajectory includes a trajectory segment corresponding to a preset driving state, the trajectory segment corresponding to the preset driving state in the initial driving trajectory including the trajectory segment corresponding to the preset driving state is filtered out to obtain a backup trajectory.

[0027] Optionally, the step of determining a lane topology relationship between the first end endpoint and the first start endpoint based on the first end endpoint, the first start endpoint, and a backup trajectory passing through the first end endpoint and the first start endpoint, and connecting the first end endpoint and the first start endpoint to generate a target lane-level topology network of the target scene corresponding to the target map includes:

[0028] Based on the first end endpoint, the first start endpoint, and the backup trajectory passing through the first end endpoint and the first start endpoint, determine a lane topology relationship between the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to obtain a lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint;

[0029] From the spare trajectories, determining a spare trajectory passing through the road segment between the first end endpoint and the first start endpoint as a trajectory to be used;

[0030] For each trajectory to be used, calculating a distance between a trajectory segment between the first end endpoint and the first start endpoint in the trajectory to be used and a lane centerline corresponding to a lane segment between the first end endpoint and the first start endpoint as a reference distance corresponding to the trajectory to be used;

[0031] Determining, based on a reference distance corresponding to each to-be-used trajectory and the number of the to-be-used trajectories, a confidence level of a lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint;

[0032] Based on the lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint and its corresponding confidence level, a target lane-level topological network of the target scene corresponding to the target map is generated.

[0033] In a second aspect, an embodiment of the present invention provides a device for generating a lane-level topological network, including:

[0034] A first obtaining module is configured to obtain a backup track generated by a target vehicle traveling in a target scene corresponding to a target map, and obtain a road image corresponding to each positioning point in each backup track, wherein the target map includes map lane lines;

[0035] A first determination module is configured to determine, for each positioning point in each backup trajectory, whether the target map includes a target map lane line corresponding to the positioning point corresponding to the road image based on the road image and the map lane lines included in the target map, wherein the target map lane line corresponding to the positioning point corresponding to the road image includes: a left map lane line and a right map lane line corresponding to the lane where the positioning point is located in the target map;

[0036] The second determination module is configured to determine, for a positioning point that does not contain a corresponding target map lane line in the target map, a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the lane where the positioning point is located, based on the map lane lines in the target map, wherein the first lane centerline is: a lane centerline determined based on a target map lane line corresponding to a first positioning point behind the driving direction corresponding to the lane where the positioning point is located; the second lane centerline is: a lane centerline determined based on a target map lane line corresponding to a second positioning point in front of the driving direction corresponding to the lane where the positioning point is located;

[0037] A connection determination module is configured to determine a lane topology relationship of a road section between the first end endpoint and the first start endpoint based on the first end endpoint, the first start endpoint, and a backup trajectory passing through the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to generate a target lane-level topology network of a target scene corresponding to the target map.

[0038] Optionally, the device further comprises:

[0039] The third determination module is configured to determine, for a positioning point of a target map lane line corresponding to the target map, based on the map position information of the target map lane line corresponding to the positioning point in the target map, the lane centerline of the lane where the positioning point is located, so as to generate a target lane-level topological network of the target scene corresponding to the target map.

[0040] Optionally, the first determination module is specifically configured to detect the road image corresponding to each positioning point in each backup trajectory based on a pre-trained target detection model, and determine whether the road image contains a sensed lane line corresponding to the positioning point corresponding to the road image;

[0041] If it is determined that the road image includes a perceived lane line corresponding to the positioning point corresponding to the road image, based on the perceived position information corresponding to the corresponding positioning point in the road image and the map position information of the map lane line in the target map, determine whether the target map includes the target map lane line corresponding to the positioning point corresponding to the road image.

[0042] Optionally, the second determination module is specifically configured to determine, for a positioning point whose target map does not contain a corresponding target map lane line, whether the positioning point is at a road intersection based on a corresponding detection result, wherein the detection result is a detection result obtained by detecting the road image based on a pre-trained lane line detection model;

[0043] For a positioning point that is not at a road intersection as represented by the corresponding detection result, a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the positioning point are determined based on the map lane lines in the target map and the driving trajectory of the positioning point.

[0044] In another embodiment of the present invention, the device further comprises:

[0045] A fourth determination module is configured to determine, for a positioning point represented by a corresponding detection result as being at a road intersection, the road intersection at which the positioning point is located based on the position information of the positioning point and the target map, as the first road intersection;

[0046] A fifth determination module is configured to determine the indication direction of the road driving indication arrow corresponding to the positioning point based on the road image corresponding to the positioning point;

[0047] The sixth determination module is configured to determine, based on the position information of the positioning point, the indicated direction of the road driving indication arrow corresponding to the positioning point, and the backup track passing through the first road intersection, the center line of the exit lane, the center line of the entry lane, and the lane topological relationship of the road section between the center line of the exit lane and the center line of the entry lane corresponding to the positioning point from the current lane-level topological network of the target scene corresponding to the target map, wherein the center line of the exit lane is: the corresponding direction is the center line of the lane representing the vehicle entering the road intersection, and the center line of the entry lane is: the corresponding direction is the center line of the lane representing the vehicle exiting the road intersection;

[0048] The connection module is configured to connect the center line of the exit lane and the center line of the entry lane based on the lane topological relationship of the road section between the center line of the exit lane and the center line of the entry lane, so as to generate a target lane-level topological network of the target scene corresponding to the target map.

[0049] Optionally, the first obtaining module is specifically configured to obtain an initial driving trajectory generated by the target vehicle driving in the target scene corresponding to the target map;

[0050] For each initial driving trajectory, based on the positioning time corresponding to each positioning point in the initial driving trajectory and the heading angle information corresponding to the positioning point, determining whether the initial driving trajectory includes a trajectory segment corresponding to a preset driving state, wherein the preset driving state includes at least one of a lane change driving state and a U-turn driving state;

[0051] If it is determined that the initial driving trajectory includes a trajectory segment corresponding to a preset driving state, the trajectory segment corresponding to the preset driving state in the initial driving trajectory including the trajectory segment corresponding to the preset driving state is filtered out to obtain a backup trajectory.

[0052] Optionally, the connection determination module is specifically configured to determine a lane topology relationship between the first end endpoint and the first start endpoint based on the first end endpoint, the first start endpoint, and a backup trajectory passing through the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to obtain a lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint;

[0053] From the spare trajectories, determining a spare trajectory passing through the road segment between the first end endpoint and the first start endpoint as a trajectory to be used;

[0054] For each trajectory to be used, calculating a distance between a trajectory segment between the first end endpoint and the first start endpoint in the trajectory to be used and a lane centerline corresponding to a lane segment between the first end endpoint and the first start endpoint as a reference distance corresponding to the trajectory to be used;

[0055] Determining, based on a reference distance corresponding to each to-be-used trajectory and the number of the to-be-used trajectories, a confidence level of a lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint;

[0056] Based on the lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint and its corresponding confidence level, a target lane-level topological network of the target scene corresponding to the target map is generated.

[0057] From the above content, it can be seen that a method and device for generating a lane-level topological network provided by an embodiment of the present invention can obtain an alternative trajectory generated by a target vehicle traveling in a target scene corresponding to a target map, and obtain a road image corresponding to each positioning point in each alternative trajectory, wherein the target map includes map lane lines; for the road image corresponding to each positioning point in each alternative trajectory, based on the road image and the map lane lines included in the target map, determine whether the target map contains the target map lane lines corresponding to the positioning point corresponding to the road image, wherein the target map lane lines corresponding to the positioning point corresponding to the road image include: a left map lane line and a right map lane line corresponding to the lane where the positioning point is located in the target map; for a positioning point that does not contain its corresponding target map lane line in the target map, based on the target map Mark the map lane lines in the map, determine the first end endpoint of the first lane centerline and the first start endpoint of the second lane centerline corresponding to the lane where the positioning point is located, wherein the first lane centerline is: the lane centerline determined based on the target map lane line corresponding to the first positioning point behind the driving direction corresponding to the lane where the positioning point is located; the second lane centerline is: the lane centerline determined based on the target map lane line corresponding to the second positioning point in front of the driving direction corresponding to the lane where the positioning point is located; based on the first end endpoint, the first start endpoint and the backup trajectory passing through the first end endpoint and the first start endpoint, determine the lane topology relationship of the section between the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to generate a target lane-level topology network of the target scene corresponding to the target map.

[0058] By applying the embodiment of the present invention, when the target map does not contain the target map lane line corresponding to the positioning point, based on the positioning point and the driving direction of the lane where the positioning point is located, the first end endpoint of the first lane centerline and the first start endpoint of the second lane centerline corresponding to the positioning point can be determined, and then, based on the first end endpoint, the first start endpoint and the spare trajectory passing through the first end endpoint and the first start endpoint, the lane topology relationship of the section between the first end endpoint and the first start endpoint is determined, and the first end endpoint and the first start endpoint are connected to generate a target lane-level topology network of the target scene corresponding to the target map, so that when the perceived lane line cannot be observed, the corresponding lane topology relationship is automatically generated and connected based on the generated map lane line in the target map, the end endpoint of the lane centerline in front of the positioning point and the start endpoint of the lane centerline behind, and the trajectory passing through the end endpoint and the start endpoint, so as to realize the automatic generation of the lane-level topology network in the road of the map, reduce labor costs and improve efficiency. Of course, any product or method implementing the present invention does not necessarily need to achieve all the advantages described above at the same time.

[0059] The innovative features of the embodiments of the present invention include:

[0060] 1. When the target map does not contain the target map lane line corresponding to the positioning point, the first end endpoint of the first lane centerline and the first start endpoint of the second lane centerline corresponding to the positioning point can be determined based on the positioning point and the driving direction of the lane where the positioning point is located. Then, based on the first end endpoint, the first start endpoint and the spare trajectory passing through the first end endpoint and the first start endpoint, the lane topology relationship of the section between the first end endpoint and the first start endpoint is determined, and the first end endpoint and the first start endpoint are connected to generate a target lane-level topology network of the target scene corresponding to the target map, so that when the perceived lane line cannot be observed, the corresponding lane topology relationship is automatically generated and connected based on the end endpoint of the lane centerline in front of the positioning point and the start endpoint of the lane centerline behind the positioning point, and the trajectory passing through the end endpoint and the start endpoint, so as to realize automatic generation of the lane-level topology network in the road of the map, reduce labor costs and improve efficiency.

[0061] 2. When the target map contains a target map lane line corresponding to the positioning point, the lane centerline of the lane where the positioning point is located can be determined based on the map position information of the target map lane line corresponding to the positioning point in the target map, so as to generate a target lane-level topological network of the target scene corresponding to the target map, and automatically draw the lane centerline of the lane based on the map position information of the target map lane line with accurate position in the target map, so that the drawn lane centerline is more accurate, thereby ensuring that the generated lane-level topological network is more accurate.

[0062] 3. For the positioning point represented by the corresponding detection result at the road intersection, based on the posture information of the positioning point, the indicated direction of the road driving indication arrow corresponding to the positioning point, and the alternative trajectory passing through the first road intersection, the lane topology relationship of the exit lane centerline, the entry lane centerline, and the section between the exit lane centerline and the entry lane centerline corresponding to the positioning point is determined from the current lane-level topology network of the target scene corresponding to the target map, and then the exit lane centerline and the entry lane centerline corresponding to the positioning point are connected to automatically generate the target lane-level topology network of the target scene corresponding to the target map.

[0063] 4. After the lane centerline corresponding to the lane segment is generated, a reference distance between each trajectory to be used and the lane centerline corresponding to the lane segment is determined based on the positioning point corresponding to the lane segment in the trajectory to be used that passes through the lane segment and the lane centerline corresponding to the lane segment. Then, based on the reference distance between each trajectory to be used and the lane centerline corresponding to the lane segment and the number of trajectories to be used, a confidence level of the lane centerline corresponding to the lane segment is generated. Based on the lane centerline corresponding to the lane segment and its confidence level, a target lane-level topological network of the target scene corresponding to the target map is generated to obtain a target lane-level topological network with higher accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative work.

[0065] Figure 1 A schematic diagram of a flow chart of a method for generating a lane-level topological network provided in an embodiment of the present invention;

[0066] Figure 2 Another schematic diagram of a process for generating a lane-level topological network provided by an embodiment of the present invention;

[0067] Figures 3A-3C A schematic diagram of the generated lane-level topological network;

[0068] Figure 3D A schematic diagram showing a situation where topology changes exist;

[0069] Figure 4 A schematic structural diagram of a device for generating a lane-level topological network provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0070] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0071] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present invention and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0072] The present invention provides a method and device for generating a lane-level topological network, so as to realize automatic generation of a lane-level topological network in a road of a map, reduce labor costs and improve efficiency. The embodiments of the present invention are described in detail below.

[0073] Figure 1 A flow chart of a method for generating a lane-level topological network provided in an embodiment of the present invention. The method may include the following steps:

[0074] S101: obtaining a backup track generated by a target vehicle traveling in a target scene corresponding to a target map, and obtaining a road image corresponding to each positioning point in each backup track.

[0075] Among them, the target map includes map lane lines.

[0076] In one implementation, the target map may be a high-precision map.

[0077] The lane-level topology network generation method can be applied to any type of electronic device with computing capabilities, and the electronic device can be a server or a terminal device. The target vehicle can be any vehicle equipped with an image acquisition device and a positioning device. The target vehicle can acquire road images during driving through the image acquisition device, and the target vehicle can be positioned during driving through the positioning device. In the embodiment of the present invention, the location of the target vehicle when being positioned can be referred to as a positioning point. The target vehicle can be at least one.

[0078] The electronic device can obtain the trajectory generated when the target vehicle travels in the target scene corresponding to the target map in real time or periodically, and generate a backup trajectory based on the obtained trajectory, and obtain the road image corresponding to each positioning point in each backup trajectory. In one case, after determining that the number of obtained backup trajectories meets a certain requirement, the electronic device can execute the subsequent lane-level topology network generation process to ensure the accuracy of the generated lane-level topology network.

[0079] S102: For each road image corresponding to each positioning point in each backup trajectory, based on the road image and the map lane lines included in the target map, determine whether the target map includes the target map lane line corresponding to the positioning point corresponding to the road image.

[0080] The target map lane line corresponding to the positioning point corresponding to the road image includes: a left map lane line and a right map lane line corresponding to the lane where the positioning point is located in the target map.

[0081] In one case, the electronic device can determine whether the road image corresponding to each positioning point in each backup track includes a sensed lane line. If it is determined that the road image includes the sensed lane line, the electronic device can continue to determine whether the target map includes the map lane line corresponding to each sensed lane line based on the target map. If it is determined that the target map includes the map lane line corresponding to each sensed lane line, the electronic device can determine whether the map lane line corresponding to each sensed lane line includes the target map lane line corresponding to the positioning point corresponding to the road image, that is, determine whether the map lane line corresponding to each sensed lane line includes the left map lane line and the right map lane line corresponding to the lane where the positioning point is located. The above determination of whether the road image includes the sensed lane line can be determined by detecting the road image using a pre-trained target detection model.

[0082] In another case, the electronic device may determine, for each positioning point in each backup trajectory, whether the road image includes the perceived lane line corresponding to the positioning point corresponding to the road image, wherein the perceived lane line corresponding to the positioning point corresponding to the road image may be all the perceived lane lines included in the road image, or may be the target perceived lane line corresponding to the positioning point corresponding to the road image, i.e., the left perceived lane line and the right perceived lane line corresponding to the lane where the positioning point is located. If the perceived lane line corresponding to the positioning point corresponding to the road image may be all the perceived lane lines included in the road image, the subsequent process is the same as the above case and will not be repeated here. If the perceived lane line corresponding to the positioning point corresponding to the road image is the target perceived lane line corresponding to the positioning point corresponding to the road image, the corresponding subsequent process may be: the electronic device continues to determine, based on the target map, whether the target map lane line corresponding to the target perceived lane line corresponding to the positioning point corresponding to the road image is included in the target map.

[0083] Accordingly, in one implementation, the S102 may include steps 1021-1022:

[0084] 1021: for each road image corresponding to each positioning point in each backup trajectory, based on a pre-trained target detection model, detecting the road image to determine whether the road image contains a sensed lane line corresponding to the positioning point corresponding to the road image;

[0085] 1022: If it is determined that the road image contains a perceived lane line corresponding to the positioning point corresponding to the road image, based on the perceived position information corresponding to the corresponding positioning point in the road image and the map position information of the map lane line in the target map, determine whether the target map contains the target map lane line corresponding to the positioning point corresponding to the road image.

[0086] The above-mentioned pre-trained target detection model can be a deep neural network model trained based on sample images that at least include and are marked with the location of lane lines, such as a convolutional neural network model. The specific network model training process can refer to the network model training process in the relevant technology, which will not be repeated here.

[0087] The above-mentioned determination of whether the road image contains the perceived lane line corresponding to the positioning point corresponding to the road image may be determining whether the road image contains the perceived lane line, or determining whether the road image contains the target perceived lane line corresponding to the positioning point corresponding to the road image.

[0088] If the above-mentioned determination of whether the road image contains the perceived lane line corresponding to the positioning point corresponding to the road image is to determine whether the road image contains the perceived lane line, the subsequent 1022 may be: if it is determined that the road image contains the perceived lane line corresponding to the positioning point corresponding to the road image, based on the perceived position information corresponding to the corresponding positioning point in the road image, the map position information of the map lane line in the target map and the posture information of the positioning point, determine from the target map the map lane line corresponding to each perceived lane line corresponding to the positioning point corresponding to the road image, and then, based on the map position information of the map lane line corresponding to each perceived lane line corresponding to the positioning point corresponding to the road image and the posture information of the positioning point, determine whether the target map contains the target map lane line corresponding to the positioning point corresponding to the road image.

[0089] If the above determination of whether the road image contains the perceived lane line corresponding to the positioning point corresponding to the road image is: determining whether the road image contains the target perceived lane line corresponding to the positioning point corresponding to the road image, the subsequent 1022 may be: if it is determined that the road image contains the perceived lane line corresponding to the positioning point corresponding to the road image, based on the perceived position information corresponding to the corresponding positioning point in the road image, the map position information of the map lane line in the target map, and the posture information of the positioning point, determine whether the target map contains the map lane line corresponding to the target perceived lane line.

[0090] S103: For a positioning point whose corresponding target map lane line is not included in the target map, determine a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the lane where the positioning point is located based on the map lane lines in the target map.

[0091] Among them, the first lane centerline is: the lane centerline determined by the target map lane line corresponding to the first positioning point behind the driving direction corresponding to the lane where the positioning point is located; the second lane centerline is: the lane centerline determined by the target map lane line corresponding to the second positioning point in front of the driving direction corresponding to the lane where the positioning point is located.

[0092] In one case, in view of the imperfect construction of the target map, such as incomplete map lane lines included in the target map, and / or in view of the wear of lane lines on the road surface in the target scene, for each road image corresponding to a positioning point, there may be a situation where the target map lane line corresponding to the positioning point corresponding to the road image has not been determined in the target map. Accordingly, in view of this situation, in order to automatically draw the corresponding lane center line and thus obtain a complete lane-level topological network, the electronic device can, for a positioning point whose target map does not contain its corresponding target map lane line, determine the first end endpoint of the first lane center line and the first start endpoint of the second lane center line corresponding to the lane where the positioning point is located based on the positional relationship of the map lane lines in the target map and the position information of the positioning point, that is, determine the end endpoint of the first lane center line behind the driving direction corresponding to the lane where the positioning point is located as the first end endpoint, and the start endpoint of the second lane center line in front of the driving direction corresponding to the lane where the positioning point is located as the first start endpoint.

[0093] Among them, the first lane centerline behind the driving direction corresponding to the lane where the positioning point is located can be: the lane centerline behind the driving direction corresponding to the lane where the positioning point is located and closest to the location of the positioning point; the second lane centerline in front of the driving direction corresponding to the lane where the positioning point is located can be: the lane centerline in front of the driving direction corresponding to the lane where the positioning point is located and closest to the location of the positioning point. The first lane centerline is the lane centerline determined based on the target map lane line corresponding to the first positioning point, and the first positioning point is located behind the driving direction corresponding to the lane where the positioning point is located. Correspondingly, the second lane centerline is the lane centerline determined based on the target map lane line corresponding to the second positioning point, and the second positioning point is located in front of the driving direction corresponding to the lane where the positioning point is located.

[0094] S104: Based on the first end endpoint, the first start endpoint, and the backup trajectory passing through the first end endpoint and the first start endpoint, determine the lane topology relationship of the road section between the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to generate a target lane-level topology network of the target scene corresponding to the target map.

[0095] In an embodiment of the present invention, for a positioning point whose target map does not contain its corresponding target map lane line, after the electronic device determines the first end endpoint and the first start endpoint corresponding to the positioning point, it can continue to determine the backup trajectory that passes through the first end endpoint and the first start endpoint from the backup trajectory, and then determine the lane topology relationship of the section between the first end endpoint and the first start endpoint based on the first end endpoint, the first start endpoint, and the backup trajectory that passes through the first end endpoint and the first start endpoint. Specifically, one situation may be: clustering the backup trajectories that pass through the first end endpoint and the first start endpoint through a preset clustering algorithm to obtain a clustered trajectory, and determining the lane topology relationship of the section between the first end endpoint and the first start endpoint based on the clustered trajectory.

[0096] Another situation may be: for each backup trajectory that passes through the first ending endpoint and the first starting endpoint, determine the trajectory portion between the first ending endpoint and the first starting endpoint in the backup trajectory that passes through the first ending endpoint and the first starting endpoint, and obtain the backup trajectory segment between the first ending endpoint and the first starting endpoint; cluster all the backup trajectory segments through a preset clustering algorithm to obtain a clustered trajectory, and determine the clustered trajectory as the lane topology relationship of the road section between the first ending endpoint and the first starting endpoint.

[0097] Among them, the above-mentioned process of clustering all the spare trajectory segments through a preset clustering algorithm to obtain a clustered trajectory is similar to the above-mentioned process of clustering the spare trajectory passing through the first ending endpoint and the first starting endpoint through a preset clustering algorithm to obtain a clustered trajectory. The following is an example of clustering all the spare trajectory segments through a preset clustering algorithm to obtain a clustered trajectory; for the position between the first ending endpoint and the first starting endpoint, for different positions, the positions of the positioning points in the spare trajectory passing through the first ending endpoint and the first starting endpoint within a preset radius at the position are clustered to obtain the positions of the clustering points; and then the trajectory formed by the clustering points at different positions is used as the clustered trajectory.

[0098] By applying the embodiments of the present invention, when the target map does not contain the target map lane line corresponding to the positioning point, based on the positioning point and the driving direction of the lane where the positioning point is located, the first end endpoint of the first lane centerline and the first start endpoint of the second lane centerline corresponding to the positioning point can be determined, and then, based on the first end endpoint, the first start endpoint and the spare trajectory passing through the first end endpoint and the first start endpoint, the lane topology relationship of the road section between the first end endpoint and the first start endpoint is determined, and the first end endpoint and the first start endpoint are connected to generate a target lane-level topology network of the target scene corresponding to the target map, so that when the perceived lane line cannot be observed, the corresponding lane topology relationship is automatically generated and connected based on the end endpoint of the lane centerline in front of the positioning point and the start endpoint of the lane centerline behind the positioning point, and the trajectory passing through the end endpoint and the start endpoint, so as to realize automatic generation of a lane-level topology network in the road of the map, reduce labor costs and improve efficiency.

[0099] In another embodiment of the present invention, Figure 2 As shown, the method may include the following steps:

[0100] S201: Obtaining a backup track generated by a target vehicle traveling in a target scene corresponding to a target map, and obtaining a road image corresponding to each positioning point in each backup track.

[0101] Among them, the target map includes map lane lines, and the target map can be a high-precision map.

[0102] S202: For each road image corresponding to each positioning point in each backup trajectory, based on the road image and the map lane lines included in the target map, determine whether the target map includes the target map lane line corresponding to the positioning point corresponding to the road image.

[0103] The target map lane line corresponding to the positioning point corresponding to the road image includes: a left map lane line and a right map lane line corresponding to the lane where the positioning point is located in the target map.

[0104] S203: For a positioning point whose target map contains a corresponding target map lane line, determine the lane centerline of the lane where the positioning point is located based on the map position information of the target map lane line corresponding to the positioning point in the target map, so as to generate a target lane-level topological network of the target scene corresponding to the target map.

[0105] S204: For a positioning point whose corresponding target map lane line is not included in the target map, determine a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the lane where the positioning point is located based on the map lane lines in the target map.

[0106] Among them, the first lane centerline is: the lane centerline determined by the target map lane line corresponding to the first positioning point behind the driving direction corresponding to the lane where the positioning point is located; the second lane centerline is: the lane centerline determined by the target map lane line corresponding to the second positioning point in front of the driving direction corresponding to the lane where the positioning point is located.

[0107] S205: Based on the first end endpoint, the first start endpoint, and the backup trajectory passing through the first end endpoint and the first start endpoint, determine the lane topology relationship of the road section between the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to generate a target lane-level topology network of the target scene corresponding to the target map.

[0108] Among them, the S201 and Figure 1 The S101 shown in FIG. 1 is the same as the S202. Figure 1 The S102 shown in FIG. 1 is the same as the S204. Figure 1 The same as S103 shown, the S205 is Figure 1 The S104 shown is the same and will not be described again.

[0109] In this embodiment, in view of the fact that the target map includes map lane lines, in order to determine a lane centerline with better accuracy and thus generate a lane-level topological network with higher accuracy, when the electronic device determines that the target map contains a target map lane line corresponding to a positioning point, the electronic device can determine the lane centerline of the lane where the positioning point is located based on the map position information of the target map lane line corresponding to the positioning point in the target map, so as to generate a target lane-level topological network of the target scene corresponding to the target map. Specifically, the centerline between the left map lane line and the right map lane line in the target map lane line corresponding to the positioning point can be calculated as the lane centerline corresponding to the target map lane line corresponding to the positioning point in the lane where the positioning point is located.

[0110] In one case, in order to automatically generate a lane-level topology network better, in an embodiment of the present invention, the electronic device can first determine the lane centerline of the lane corresponding to the target map lane line corresponding to the positioning point of all the target maps, using the map position information of the target map lane line corresponding to the positioning point in the target map, and obtain the initial lane-level topology network corresponding to the target scene corresponding to the target map, such as Figure 3AThe figure shows a schematic diagram of the initial lane-level topology network. Furthermore, for a positioning point whose target map does not contain its corresponding target map lane line, the first end endpoint of the first lane centerline and the first start endpoint of the second lane centerline corresponding to the lane where the positioning point is located are determined from the lane centerlines of the initial lane-level topology network based on the map lane lines in the target map. Furthermore, based on the first end endpoint, the first start endpoint and the backup trajectory passing through the first end endpoint and the first start endpoint, the lane topology relationship of the section between the first end endpoint and the first start endpoint is determined and connected, so as to achieve the determination and drawing of the lane centerline at the location where the target map is incomplete and / or the location where the lane line is worn in the target scene, as shown in FIG. Figure 3B As shown in Figure 3A A schematic diagram of an intermediate lane-level topological network after filling the lane center lines of the sections where the positioning points of the target map lane lines that do not correspond to the target map lane lines on the initial lane-level topological network shown.

[0111] In addition, in one implementation, there may be a road image representation corresponding to two adjacent positioning points in a backup trajectory: there is a situation where there is an identical map lane line and a different map lane line in the target map lane lines corresponding to the two positioning points. In this case, it can be considered that there is a topological change point between the two positioning points, such as Figure 3D As shown, it can be determined that there is a connection relationship between the lane center lines generated based on the target map lane lines corresponding to the two positioning points, and the lane center lines generated based on the target map lane lines corresponding to the two positioning points can be directly connected, wherein the solid line represents the lane line, the arrow of the lane line represents the driving direction, and the dotted line in the figure represents the drivable direction of the vehicle.

[0112] Considering that the target scene may include intersection sub-scenes and non-intersection sub-scenes, the non-intersection sub-scenes may include but are not limited to straight road sub-scenes and curved road sub-scenes. For non-intersection sub-scenes, for locations where the target map is imperfect and / or locations where lane lines are worn in the target scene, the lane centerline at the location of the location can be determined by determining the end endpoint of the lane centerline behind the driving direction of the lane at the location, and the starting endpoint of the lane centerline in front of the driving direction of the lane at the location, and each set of spare trajectories passing through the location. For the intersection sub-scene, the lane centerline is determined based on the above method, and the determined lane centerline may not be accurate enough. Accordingly, in another embodiment of the present invention, S103 may include the following steps:

[0113] For a positioning point whose target map does not contain its corresponding target map lane line, determine whether the positioning point is at a road intersection based on the corresponding detection result, wherein the detection result is: a detection result obtained by detecting the road image based on a pre-trained lane line detection model;

[0114] For a positioning point that is not at a road intersection as represented by a corresponding detection result, a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the positioning point are determined based on map lane lines in the target map.

[0115] In one case, for a positioning point whose corresponding target map lane line is not included in the target map, the method of determining whether the positioning point is at a road intersection based on the corresponding detection result may be: for a positioning point whose corresponding target map lane line is not included in the target map, determining whether the detection result corresponding to the positioning point includes a preset intersection sign, wherein the preset intersection sign may include but is not limited to a stop line and a sidewalk, and may also include a traffic light.

[0116] In one case, in order to ensure accurate determination of whether the positioning point is at a road intersection, a preset distance threshold between the positioning point and a preset intersection sign may also be set. The positioning point is determined to be at a road intersection only when the distance between the position of the positioning point and the position of the preset intersection sign detected in the corresponding road image does not exceed the preset distance threshold.

[0117] In another embodiment of the present invention, the S103 may further include:

[0118] For a positioning point represented by the corresponding detection result as being at a road intersection, based on the position information of the positioning point and the target map, determining the road intersection at which the positioning point is located as a first road intersection;

[0119] Based on the road image corresponding to the positioning point, determine the indication direction of the road driving indication arrow corresponding to the positioning point;

[0120] Based on the position information of the positioning point, the direction indicated by the road driving indication arrow corresponding to the positioning point, and the backup track passing through the first road intersection, the lane topology relationship of the center line of the exit lane, the center line of the entry lane, and the road section between the center line of the exit lane and the center line of the entry lane corresponding to the positioning point is determined from the current lane-level topology network of the target scene corresponding to the target map, wherein the center line of the exit lane is: the corresponding direction is the center line of the lane representing the vehicle entering the road intersection, and the center line of the entry lane is: the corresponding direction is the center line of the lane representing the vehicle exiting the road intersection;

[0121] Based on the lane topological relationship of the road section between the center line of the exit lane and the center line of the entrance lane, the center line of the exit lane and the center line of the entrance lane are connected to generate a target lane-level topological network of the target scene corresponding to the target map.

[0122] In this embodiment, for a positioning point represented by a corresponding detection result as being at a road intersection, the electronic device can determine the road intersection at which the positioning point is located as the first road intersection based on the posture information of the positioning point and the map position information of each map element contained in the target map; and determine the indication direction of the road driving indication arrow corresponding to the positioning point based on the road image corresponding to the positioning point, or the posture information of the positioning point and the map position information of each map element contained in the target map, wherein the indication direction is used to indicate the drivable direction of the vehicle.

[0123] Furthermore, the electronic device estimates the initial exit lane centerline and the initial entry lane centerline corresponding to the positioning point from the current lane-level topology network of the target scene corresponding to the target map based on the posture information of the positioning point and the direction indicated by the road driving indication arrow corresponding to the positioning point and the trajectory of the positioning point. Furthermore, the electronic device determines the exit lane centerline and the entry lane centerline corresponding to the positioning point from the initial exit lane centerline and the initial entry lane centerline corresponding to the positioning point through the spare trajectory passing through the first road intersection, and determines the lane topology relationship of the section between the exit lane centerline and the entry lane centerline based on the spare trajectory passing through the end point of the exit lane centerline and the start point of the entry lane centerline corresponding to the positioning point; and connects the exit lane centerline and the entry lane centerline based on the lane topology relationship of the section between the exit lane centerline and the entry lane centerline to generate the target lane-level topology network of the target scene corresponding to the target map. Figure 3C As shown in Figure 3B A schematic diagram of a lane-level topological network obtained after filling the center lines of lanes at road intersections based on the lane-level topological network shown.

[0124] In one case, in order to ensure the observability of the lane-level topological network, after the lane center lines corresponding to each road section are determined, the lane center lines corresponding to each road section can be smoothed to obtain the final target lane-level topological network.

[0125] The process of determining the center line of the exit lane and the center line of the entry lane corresponding to the positioning point from the initial center line of the exit lane and the initial center line of the entry lane corresponding to the positioning point by using the backup trajectory passing through the first road intersection may be as follows: for each initial center line of the exit lane corresponding to the positioning point, connecting the end endpoint of the initial center line of the exit lane with the start endpoint of each center line of the entry lane corresponding to the positioning point to obtain a connecting line corresponding to the initial center line of the exit lane; for each connecting line corresponding to the initial center line of the exit lane corresponding to the positioning point, determining the confidence of the connecting line by using the backup trajectory of the first road intersection; and determining the initial center line of the entry lane that matches each initial center line of the exit lane corresponding to the positioning point based on the confidence of each connecting line to obtain the center line of the exit lane and the center line of the entry lane corresponding to the positioning point.

[0126] Among them, each initial exit lane center line corresponding to the positioning point can be the center line of all exit lane lines in the first road intersection, or it can be the center line of the exit lane of the lane passed by the trajectory of the positioning point.

[0127] The formula used to determine the confidence of the connecting line corresponding to each initial exit lane centerline corresponding to the positioning point using the backup trajectory of the first road intersection can be expressed as follows:

[0128]

[0129] Among them, conf j represents the confidence of the connection line j, n represents the number of backup tracks corresponding to the connection line j, f(i) represents the reference distance between the i-th backup track corresponding to the connection line j and the connection line, and f(i) can be expressed by the following formula (2):

[0130] f(i)=distance(P ob , P center ); (2)

[0131] Among them, P ob Indicates that the connecting line j, P center represents the i-th backup track corresponding to the connecting line j, and distance(x, y) represents the distance between x and y.

[0132] The backup track corresponding to the connecting line j may be: a backup track of the positioning points among the included positioning points whose distances between the positioning points do not exceed a preset distance threshold.

[0133] The process of determining the initial entry lane centerline matching each initial exit lane centerline corresponding to the positioning point based on the confidence of each connecting line, and obtaining the exit lane centerline and the entry lane centerline corresponding to the positioning point may be:

[0134] From the connecting lines corresponding to each initial exit lane centerline corresponding to the positioning point, the initial exit lane centerline and the initial entry lane centerline corresponding to the connecting line with the highest confidence are determined as the exit lane centerline and the entry lane centerline corresponding to the positioning point.

[0135] Subsequently, after determining the center line of the exit lane and the center line of the entry lane corresponding to each positioning point at the road intersection, for each positioning point, a preset clustering algorithm can be used to cluster all the backup trajectories passing through the lane where the center line of the exit lane and the lane where the center line of the entry lane corresponding to the positioning point are located, and a clustered trajectory is obtained as the lane topology relationship of the road section between the center line of the exit lane and the center line of the entry lane corresponding to the positioning point.

[0136] Alternatively, after determining the center line of the exit lane and the center line of the entrance lane corresponding to each positioning point at the road intersection, a Euler spiral, also known as an Euler spiral, can be used to connect the end point of the center line of the exit lane and the start point of the center line of the entrance lane corresponding to the positioning point.

[0137] In another embodiment of the present invention, the S101 may include:

[0138] Obtaining an initial driving trajectory generated by the target vehicle driving in the target scene corresponding to the target map;

[0139] For each initial driving trajectory, based on the positioning time corresponding to each positioning point in the initial driving trajectory and the heading angle information corresponding to the positioning point, determining whether the initial driving trajectory includes a trajectory segment corresponding to a preset driving state, wherein the preset driving state includes at least one of a lane change driving state and a U-turn driving state;

[0140] If it is determined that the initial driving trajectory includes a trajectory segment corresponding to a preset driving state, the trajectory segment corresponding to the preset driving state in the initial driving trajectory including the trajectory segment corresponding to the preset driving state is filtered out to obtain a backup trajectory.

[0141] In this embodiment, in view of the fact that the target vehicle may change lanes and / or make a U-turn during actual driving, the trajectory generated by the target vehicle when the above behaviors occur has a greater impact on the generation of the lane center point, which will reduce the accuracy of the generated lane center line. In view of this, the electronic device can first obtain the initial driving trajectory generated by the target vehicle driving in the target scene corresponding to the target map, and then, for each initial driving trajectory, based on the positioning time corresponding to each positioning point in the initial driving trajectory and the heading angle information corresponding to the positioning point, determine whether the initial driving trajectory contains a trajectory segment corresponding to a preset driving state, wherein the preset driving state includes at least one of a lane change driving state and a U-turn driving state, and the lane change driving state can include a lane change driving state in a non-intersection sub-scene and an advance lane change driving state in an intersection sub-scene; if it is determined that the initial driving trajectory contains a trajectory segment corresponding to the preset driving state, the trajectory segment corresponding to the preset driving state in the initial driving trajectory containing the trajectory segment corresponding to the preset driving state is filtered out to obtain a spare trajectory.

[0142] For example, for an initial driving trajectory, when the initial driving trajectory includes a trajectory with a corner greater than a preset corner, for example: the difference between the heading angle information corresponding to the adjacent positioning points is greater than the preset difference threshold, but does not reach 90 degrees, then it can be determined that the initial driving trajectory includes a trajectory segment corresponding to the lane change driving state, and the trajectory segment is: the segment of the trajectory where the difference between the heading angle information corresponding to the adjacent positioning points is greater than the preset difference threshold. When the initial driving trajectory has a trajectory segment that turns 180 degrees, when the maximum difference between the heading angle information corresponding to the positioning points within a period of time reaches 180 degrees, then it can be determined that the initial driving trajectory includes a trajectory segment corresponding to the U-turn driving state, and the trajectory point corresponding to the maximum difference between the heading angle information corresponding to the positioning points within a period of time reaches 180 degrees is the trajectory segment corresponding to the U-turn driving state.

[0143] In one implementation, a pre-trained behavior detection model may be used to detect each initial driving trajectory to determine whether the initial driving trajectory contains a trajectory segment corresponding to a preset driving state. The pre-trained behavior detection model may be a neural network model trained based on trajectories containing trajectory segments corresponding to preset driving states and trajectories not containing trajectory segments corresponding to preset driving states and annotation information corresponding to each trajectory. The annotation information corresponding to each trajectory may include information indicating whether the corresponding trajectory contains a trajectory segment corresponding to a preset driving state and information on the position of the trajectory segment corresponding to the preset driving state in the trajectory.

[0144] In another embodiment of the present invention, the S104 may include:

[0145] Based on the first end endpoint, the first start endpoint, and the backup trajectory passing through the first end endpoint and the first start endpoint, determine the lane topology relationship between the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to obtain a lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint;

[0146] From the spare trajectories, determine a spare trajectory passing through the road segment between the first ending endpoint and the first starting endpoint as the trajectory to be used;

[0147] For each trajectory to be used, calculating the distance between the trajectory segment between the first end endpoint and the first start endpoint in the trajectory to be used and the lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint as the reference distance corresponding to the trajectory to be used;

[0148] Determine, based on the reference distance corresponding to each to-be-used trajectory and the number of to-be-used trajectories, a confidence level of a lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint;

[0149] Based on the lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint and its corresponding confidence level, a target lane-level topological network of the target scene corresponding to the target map is generated.

[0150] In an embodiment of the present invention, in order to ensure the accuracy of the generated lane centerline to a certain extent, for a positioning point whose target map does not contain its corresponding target map lane line, after determining the lane centerline corresponding to the lane section between the first end endpoint and the first start endpoint corresponding to the positioning point, a spare trajectory passing through the lane section between the first end endpoint and the first start endpoint can be further determined from the spare trajectory as a trajectory to be used, and then, based on the trajectory to be used, the confidence of the lane centerline corresponding to the lane section between the first end endpoint and the first start endpoint corresponding to the positioning point is determined; if the confidence exceeds a preset confidence threshold, it can be considered that the accuracy of the lane centerline corresponding to the lane section between the first end endpoint and the first start endpoint generated by the positioning point is high, and the lane centerline corresponding to the lane section between the first end endpoint and the first start endpoint corresponding to the positioning point is retained.

[0151] The process of determining the confidence of the lane centerline corresponding to the road segment between the first end endpoint and the first start endpoint corresponding to the positioning point based on the trajectory to be used may specifically be: for each trajectory to be used corresponding to the positioning point, the distance between the trajectory segment between the first end endpoint and the first start endpoint in the trajectory to be used and the lane centerline corresponding to the road segment between the first end endpoint and the first start endpoint is calculated as the reference distance corresponding to the trajectory to be used. Specifically, the distance between the positioning point to be used in the trajectory segment between the first end endpoint and the first start endpoint in the trajectory to be used and the lane centerline corresponding to the road segment between the first end endpoint and the first start endpoint is calculated as the distance corresponding to each positioning point to be used, and the sum of the distances corresponding to the positioning points to be used in the trajectory segment between the first end endpoint and the first start endpoint in the trajectory to be used is used as the reference distance corresponding to the trajectory to be used.

[0152] Furthermore, based on the reference distance corresponding to each to-be-used trajectory and the number of to-be-used trajectories, the confidence of the lane centerline corresponding to the lane segment between the first ending endpoint and the first starting endpoint is determined. Specifically, it can be expressed by the following formula:

[0153]

[0154] Among them, conf e represents the confidence of the lane centerline e corresponding to the lane segment between the first end endpoint and the first start endpoint, m represents the number of to-be-used trajectories corresponding to the lane centerline e corresponding to the lane segment between the first end endpoint and the first start endpoint, f(t) represents the reference distance between the tth to-be-used trajectory corresponding to the lane centerline e corresponding to the lane segment between the first end endpoint and the first start endpoint and the lane centerline e corresponding to the lane segment between the first end endpoint and the first start endpoint, and f(t) can be represented by the following formula (2):

[0155] f(t)=distance(P' ob , P' center ); (2)

[0156] Among them, P' ob represents the lane centerline e corresponding to the lane segment between the first end endpoint and the first start endpoint, P' center It represents the tth trajectory to be used corresponding to the lane centerline e corresponding to the lane segment between the first ending endpoint and the first starting endpoint, and distance(x, y) represents the distance between x and y.

[0157] Corresponding to the above method embodiment, the embodiment of the present invention provides a device for generating a lane-level topological network, such as Figure 4As shown, this may include:

[0158] The first obtaining module 410 is configured to obtain an alternate track generated by the target vehicle traveling in a target scene corresponding to a target map, and obtain a road image corresponding to each positioning point in each alternate track, wherein the target map includes map lane lines;

[0159] The first determination module 420 is configured to determine, for each positioning point in each backup trajectory, whether the target map includes a target map lane line corresponding to the positioning point corresponding to the road image based on the road image and the map lane lines included in the target map, wherein the target map lane line corresponding to the positioning point corresponding to the road image includes: a left map lane line and a right map lane line corresponding to the lane where the positioning point is located in the target map;

[0160] The second determination module 430 is configured to determine, for a positioning point that does not contain a corresponding target map lane line in the target map, a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the lane where the positioning point is located, based on the map lane lines in the target map, wherein the first lane centerline is: a lane centerline determined based on a target map lane line corresponding to a first positioning point behind the driving direction corresponding to the lane where the positioning point is located; the second lane centerline is: a lane centerline determined based on a target map lane line corresponding to a second positioning point in front of the driving direction corresponding to the lane where the positioning point is located;

[0161] The connection determination module 440 is configured to determine the lane topology relationship of the road section between the first end endpoint and the first starting endpoint based on the first end endpoint, the first starting endpoint, and the alternative trajectory passing through the first end endpoint and the first starting endpoint, and connect the first end endpoint and the first starting endpoint to generate a target lane-level topology network of the target scene corresponding to the target map.

[0162] By applying the embodiments of the present invention, when the target map does not contain the target map lane line corresponding to the positioning point, based on the positioning point and the driving direction of the lane where the positioning point is located, the first end endpoint of the first lane centerline and the first start endpoint of the second lane centerline corresponding to the positioning point can be determined, and then, based on the first end endpoint, the first start endpoint and the spare trajectory passing through the first end endpoint and the first start endpoint, the lane topology relationship of the road section between the first end endpoint and the first start endpoint is determined, and the first end endpoint and the first start endpoint are connected to generate a target lane-level topology network of the target scene corresponding to the target map, so that when the perceived lane line cannot be observed, the corresponding lane topology relationship is automatically generated and connected based on the end endpoint of the lane centerline in front of the positioning point and the start endpoint of the lane centerline behind the positioning point, and the trajectory passing through the end endpoint and the start endpoint, so as to realize automatic generation of a lane-level topology network in the road of the map, reduce labor costs and improve efficiency.

[0163] In another embodiment of the present invention, the device may further include:

[0164] The third determination module is configured to determine, for a positioning point of a target map lane line corresponding to the target map, based on the map position information of the target map lane line corresponding to the positioning point in the target map, the lane centerline of the lane where the positioning point is located, so as to generate a target lane-level topological network of the target scene corresponding to the target map.

[0165] In another embodiment of the present invention, the first determination module 420 is specifically configured to detect the road image corresponding to each positioning point in each backup trajectory based on a pre-trained object detection model to determine whether the road image contains a sensed lane line corresponding to the positioning point corresponding to the road image;

[0166] If it is determined that the road image includes a perceived lane line corresponding to the positioning point corresponding to the road image, based on the perceived position information corresponding to the corresponding positioning point in the road image and the map position information of the map lane line in the target map, determine whether the target map includes the target map lane line corresponding to the positioning point corresponding to the road image.

[0167] In another embodiment of the present invention, the second determination module 430 is specifically configured to determine, for a positioning point whose target map does not contain a corresponding target map lane line, whether the positioning point is at a road intersection based on a corresponding detection result, wherein the detection result is a detection result obtained by detecting the road image based on a pre-trained lane line detection model;

[0168] For a positioning point that is not at a road intersection as represented by the corresponding detection result, a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the positioning point are determined based on the map lane lines in the target map and the driving trajectory of the positioning point.

[0169] In another embodiment of the present invention, the device further comprises:

[0170] A fourth determination module (not shown in the figure) is configured to determine, for a positioning point represented by a corresponding detection result as being at a road intersection, the road intersection at which the positioning point is located based on the position information of the positioning point and the target map, as the first road intersection;

[0171] A fifth determination module (not shown in the figure) is configured to determine the indication direction of the road driving indication arrow corresponding to the positioning point based on the road image corresponding to the positioning point;

[0172] A sixth determination module (not shown in the figure) is configured to determine, based on the position information of the positioning point, the indicated direction of the road driving indication arrow corresponding to the positioning point, and the backup trajectory passing through the first road intersection, the lane topology relationship of the center line of the exit lane, the center line of the entry lane, and the road section between the center line of the exit lane and the center line of the entry lane corresponding to the positioning point from the current lane-level topology network of the target scene corresponding to the target map, wherein the center line of the exit lane is: the corresponding direction is the center line of the lane representing the vehicle entering the road intersection, and the center line of the entry lane is: the corresponding direction is the center line of the lane representing the vehicle exiting the road intersection;

[0173] A connection module (not shown in the figure) is configured to connect the center line of the exit lane and the center line of the entry lane based on the lane topological relationship of the road section between the center line of the exit lane and the center line of the entry lane to generate a target lane-level topological network of the target scene corresponding to the target map.

[0174] In another embodiment of the present invention, the first obtaining module 410 is specifically configured to obtain an initial driving trajectory generated by the target vehicle driving in the target scene corresponding to the target map;

[0175] For each initial driving trajectory, based on the positioning time corresponding to each positioning point in the initial driving trajectory and the heading angle information corresponding to the positioning point, determining whether the initial driving trajectory includes a trajectory segment corresponding to a preset driving state, wherein the preset driving state includes at least one of a lane change driving state and a U-turn driving state;

[0176] If it is determined that the initial driving trajectory includes a trajectory segment corresponding to a preset driving state, the trajectory segment corresponding to the preset driving state in the initial driving trajectory including the trajectory segment corresponding to the preset driving state is filtered out to obtain a backup trajectory.

[0177] In another embodiment of the present invention, the connection determination module 440 is specifically configured to determine a lane topology relationship between the first end endpoint and the first start endpoint based on the first end endpoint, the first start endpoint, and a backup trajectory passing through the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to obtain a lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint;

[0178] From the spare trajectories, determining a spare trajectory passing through the road segment between the first end endpoint and the first start endpoint as a trajectory to be used;

[0179] For each trajectory to be used, calculating a distance between a trajectory segment between the first end endpoint and the first start endpoint in the trajectory to be used and a lane centerline corresponding to a lane segment between the first end endpoint and the first start endpoint as a reference distance corresponding to the trajectory to be used;

[0180] Determining, based on a reference distance corresponding to each to-be-used trajectory and the number of the to-be-used trajectories, a confidence level of a lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint;

[0181] Based on the lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint and its corresponding confidence level, a target lane-level topological network of the target scene corresponding to the target map is generated.

[0182] The above device and system embodiments correspond to the method embodiments and have the same technical effects as the method embodiments. For specific descriptions, please refer to the method embodiments. The device embodiments are obtained based on the method embodiments. For specific descriptions, please refer to the method embodiments part, which will not be repeated here.

[0183] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.

[0184] Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description of the embodiment, or can be changed accordingly and located in one or more devices different from the embodiment. The modules in the above embodiment can be combined into one module, or can be further divided into multiple sub-modules.

[0185] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a lane-level topological network, characterized in that: include: Obtaining a backup track generated by the target vehicle traveling in a target scene corresponding to a target map, and obtaining a road image corresponding to each positioning point in each backup track, wherein the target map includes map lane lines; For each positioning point in each backup trajectory, determining whether the target map includes a target map lane line corresponding to the positioning point corresponding to the road image based on the road image and the map lane lines included in the target map, wherein the target map lane line corresponding to the positioning point corresponding to the road image includes: a left map lane line and a right map lane line corresponding to the lane where the positioning point is located in the target map; For a positioning point whose target map does not contain its corresponding target map lane line, based on the map lane line in the target map, determine a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the lane where the positioning point is located, wherein the first lane centerline is: a lane centerline determined based on a target map lane line corresponding to a first positioning point behind the driving direction corresponding to the lane where the positioning point is located; the second lane centerline is: a lane centerline determined based on a target map lane line corresponding to a second positioning point in front of the driving direction corresponding to the lane where the positioning point is located; Based on the first end endpoint, the first start endpoint, and the alternative trajectory passing through the first end endpoint and the first start endpoint, determine the lane topology relationship of the road section between the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to generate a target lane-level topology network of the target scene corresponding to the target map.

2. The method according to claim 1, characterized in that The method further comprises: For a positioning point of a target map lane line corresponding to the target map contained in the target map, a lane centerline of the lane where the positioning point is located is determined based on the map position information of the target map lane line corresponding to the positioning point in the target map, so as to generate a target lane-level topological network of the target scene corresponding to the target map.

3. The method according to claim 1, characterized in that The step of determining, for each road image corresponding to each positioning point in each backup trajectory, whether the target map includes a target map lane line corresponding to the positioning point corresponding to the road image based on the road image and the map lane line included in the target map, comprises: For each road image corresponding to each positioning point in each backup trajectory, based on a pre-trained target detection model, the road image is detected to determine whether the road image contains a sensed lane line corresponding to the positioning point corresponding to the road image; If it is determined that the road image includes a perceived lane line corresponding to the positioning point corresponding to the road image, based on the perceived position information corresponding to the corresponding positioning point in the road image and the map position information of the map lane line in the target map, determine whether the target map includes the target map lane line corresponding to the positioning point corresponding to the road image.

4. The method according to claim 1, characterized in that The step of determining, for a positioning point in the target map that does not contain a corresponding target map lane line, a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the positioning point based on the map lane lines in the target map, comprises: For a positioning point whose target map does not contain a corresponding target map lane line, determining whether the positioning point is at a road intersection based on a corresponding detection result, wherein the detection result is a detection result obtained by detecting the road image based on a pre-trained lane line detection model; For a positioning point that is not at a road intersection as represented by the corresponding detection result, a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the positioning point are determined based on the map lane lines in the target map and the driving trajectory of the positioning point.

5. The method according to claim 4, characterized in that The method further comprises: For a positioning point represented by the corresponding detection result as being at a road intersection, based on the position information of the positioning point and the target map, determining the road intersection at which the positioning point is located as a first road intersection; Based on the road image corresponding to the positioning point, determine the indication direction of the road driving indication arrow corresponding to the positioning point; Based on the position information of the positioning point, the indicated direction of the road driving indication arrow corresponding to the positioning point, and the backup track passing through the first road intersection, the lane topology relationship of the center line of the exit lane, the center line of the entry lane, and the road section between the center line of the exit lane and the center line of the entry lane corresponding to the positioning point is determined from the current lane-level topology network of the target scene corresponding to the target map, wherein the center line of the exit lane is: the corresponding direction is the center line of the lane representing the vehicle entering the road intersection, and the center line of the entry lane is: the corresponding direction is the center line of the lane representing the vehicle exiting the road intersection; Based on the lane topological relationship of the road section between the center line of the exit lane and the center line of the entry lane, the center line of the exit lane and the center line of the entry lane are connected to generate a target lane-level topological network of the target scene corresponding to the target map.

6. The method according to any one of claims 1 to 5, characterized in that: The step of obtaining a spare track generated by the target vehicle traveling in a target scene corresponding to the target map includes: Obtaining an initial driving trajectory generated by the target vehicle driving in the target scene corresponding to the target map; For each initial driving trajectory, based on the positioning time corresponding to each positioning point in the initial driving trajectory and the heading angle information corresponding to the positioning point, determining whether the initial driving trajectory includes a trajectory segment corresponding to a preset driving state, wherein the preset driving state includes at least one of a lane change driving state and a U-turn driving state; If it is determined that the initial driving trajectory includes a trajectory segment corresponding to a preset driving state, the trajectory segment corresponding to the preset driving state in the initial driving trajectory including the trajectory segment corresponding to the preset driving state is filtered out to obtain a backup trajectory.

7. The method according to any one of claims 1 to 5, characterized in that: The step of determining a lane topology relationship between the first end endpoint and the first start endpoint based on the first end endpoint, the first start endpoint, and the backup trajectory passing through the first end endpoint and the first start endpoint, and connecting the first end endpoint and the first start endpoint to generate a target lane-level topology network of the target scene corresponding to the target map includes: Based on the first end endpoint, the first start endpoint, and the backup trajectory passing through the first end endpoint and the first start endpoint, determine a lane topology relationship between the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to obtain a lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint; From the spare trajectories, determining a spare trajectory passing through the road segment between the first end endpoint and the first start endpoint as a trajectory to be used; For each trajectory to be used, calculating a distance between a trajectory segment between the first end endpoint and the first start endpoint in the trajectory to be used and a lane centerline corresponding to a lane segment between the first end endpoint and the first start endpoint as a reference distance corresponding to the trajectory to be used; Determining, based on a reference distance corresponding to each to-be-used trajectory and the number of the to-be-used trajectories, a confidence level of a lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint; Based on the lane centerline corresponding to the lane segment between the first end endpoint and the first start endpoint and its corresponding confidence level, a target lane-level topological network of the target scene corresponding to the target map is generated.

8. A device for generating a lane-level topological network, characterized in that: include: A first obtaining module is configured to obtain a backup track generated by a target vehicle traveling in a target scene corresponding to a target map, and obtain a road image corresponding to each positioning point in each backup track, wherein the target map includes map lane lines; A first determination module is configured to determine, for each positioning point in each backup trajectory, whether the target map includes a target map lane line corresponding to the positioning point corresponding to the road image based on the road image and the map lane lines included in the target map, wherein the target map lane line corresponding to the positioning point corresponding to the road image includes: a left map lane line and a right map lane line corresponding to the lane where the positioning point is located in the target map; The second determination module is configured to determine, for a positioning point that does not contain a corresponding target map lane line in the target map, a first end endpoint of a first lane centerline and a first start endpoint of a second lane centerline corresponding to the lane where the positioning point is located, based on the map lane lines in the target map, wherein the first lane centerline is: a lane centerline determined based on a target map lane line corresponding to a first positioning point behind the driving direction corresponding to the lane where the positioning point is located; the second lane centerline is: a lane centerline determined based on a target map lane line corresponding to a second positioning point in front of the driving direction corresponding to the lane where the positioning point is located; A connection determination module is configured to determine a lane topology relationship of a road section between the first end endpoint and the first start endpoint based on the first end endpoint, the first start endpoint, and a backup trajectory passing through the first end endpoint and the first start endpoint, and connect the first end endpoint and the first start endpoint to generate a target lane-level topology network of a target scene corresponding to the target map.

9. The device according to claim 8, characterized in that The device also includes: The third determination module is configured to determine, for a positioning point of a target map lane line corresponding to the target map, based on the map position information of the target map lane line corresponding to the positioning point in the target map, the lane centerline of the lane where the positioning point is located, so as to generate a target lane-level topological network of the target scene corresponding to the target map.

10. The device according to claim 8, characterized in that The first determination module is specifically configured to detect the road image corresponding to each positioning point in each backup trajectory based on a pre-trained target detection model to determine whether the road image contains a sensed lane line corresponding to the positioning point corresponding to the road image; If it is determined that the road image includes a perceived lane line corresponding to the positioning point corresponding to the road image, based on the perceived position information corresponding to the corresponding positioning point in the road image and the map position information of the map lane line in the target map, determine whether the target map includes the target map lane line corresponding to the positioning point corresponding to the road image.

Citation Information

Patent Citations

  • High-precision lane information extracting method based on low-precision GPS track data

    CN104700617A

  • Method and system for automatically generating lane-level topological relation based on visual crowdsourcing data and memory

    CN109186617A

  • Method for automatically generating high definition road network for self driving vehicle

    CN109256028A

  • Lane Line Creation for High Definition Maps for Autonomous Vehicles

    US20180188059A1