Method, device, storage medium and equipment for recognizing two-dimensional lane line, and vehicle

By identifying seed points in the lane heatmap and combining them with predicted probability and distance information for deduplication, the problems of vehicles crossing lane lines and lane changing errors are solved, thus improving traffic safety.

CN117710913BActive Publication Date: 2026-11-24MOMENTA (SUZHOU) TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211048752.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-29
Publication Date
2026-11-24
Estimated Expiration
2042-08-29

AI Technical Summary

Technical Problem

Traffic accidents caused by vehicles crossing lane lines or changing lanes incorrectly are frequent due to factors such as fatigued driving and distracted driving, and existing technologies are insufficient to effectively identify and prevent them.

Method used

By acquiring lane line heatmaps from target road environment images, seed points are extracted and connected to generate a set of lane lines. Combined with lane line prediction probability and distance information, deduplication is performed to identify and eliminate redundant lane lines, thereby improving recognition accuracy.

Benefits of technology

This effectively prevents vehicles from crossing lane lines and making lane-changing errors, thus improving traffic safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117710913B_ABST
    Figure CN117710913B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, storage medium, device, and vehicle for recognizing two-dimensional lane lines, relating to the field of automotive technology. The method includes: acquiring a lane line heatmap of a target road environment image, the lane line heatmap including the lane line prediction probability of each pixel in the target road environment image, the lane line prediction probability being the probability that a pixel belongs to a lane line; extracting at least two seed points from the lane line heatmap, seed points being pixels whose lane line prediction probability is greater than or equal to a first probability threshold; and connecting the at least two seed points to generate a first set of lane lines contained in the target road environment image. This scheme can achieve the recognition of lane lines ahead of a vehicle, avoiding phenomena such as vehicles crossing lane lines or making incorrect lane changes, thereby improving traffic safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automotive technology, and more specifically, to a method, apparatus, storage medium, device, and vehicle for recognizing two-dimensional lane lines. Background Technology

[0002] Traffic signs are a variety of road facilities that use words or symbols to convey guidance, restrictions, warnings, or instructions on roads. Among them, lane markings are the most basic traffic signs and the most fundamental constraints for vehicles. However, with the increase in the number of vehicles and the faster pace of life, traffic accidents caused by vehicles crossing lane lines or making wrong lane changes are constantly increasing due to factors such as fatigued driving and distracted driving. Summary of the Invention

[0003] This application provides a two-dimensional lane line recognition method, device, storage medium, equipment, and vehicle, which can recognize the lane lines in front of the vehicle, avoid the vehicle from crossing the line or changing lanes incorrectly, thereby improving traffic safety.

[0004] The specific technical solution is as follows: In a first aspect, embodiments of this application provide a method for recognizing two-dimensional lane lines, the method comprising: Obtain a lane line heatmap of the target road environment image. The lane line heatmap includes the lane line prediction probability of each pixel in the target road environment image. The lane line prediction probability is the probability that a pixel belongs to a lane line. Extract at least two seed points from the lane heatmap. Seed points are pixels whose lane prediction probability is greater than or equal to a first probability threshold. By connecting at least two seed points, a first set of lane lines contained in the target road environment image is generated.

[0005] As can be seen from the above scheme, the embodiments of this application obtain the lane line heat map of the target road environment image and connect the seed points in the lane line heat map to generate a first lane line set contained in the target road environment image, so as to control vehicle driving based on the first lane line set, avoid phenomena such as vehicle crossing the line and lane changing errors, thereby improving traffic safety.

[0006] In a first possible implementation of the first aspect, after generating a first set of lane lines contained in the target road environment image by connecting at least two seed points, the method further includes: The first set of lane lines is deduplicated based on the lane line prediction probability and the first distance information between lane lines to obtain the second set of lane lines.

[0007] As can be seen from the above scheme, after obtaining the first set of lane lines, the embodiments of this application can remove redundant lane lines by using the lane line prediction probability and the first distance information between lane lines, thereby improving the accuracy of lane line recognition.

[0008] In a second possible implementation of the first aspect, before deduplicating the first set of lane lines based on the lane line prediction probability and the first distance information between lane lines to obtain the second set of lane lines, the method further includes: Based on the second distance information between every two lane lines in the first lane line set, the first lane line set is divided into at least one lane line group; Select the lane line with the highest mean predicted probability from each lane line group, and form a third lane line set from all the selected lane lines. Based on the lane line prediction probability and the first distance information between lane lines, the first set of lane lines is deduplicated to obtain the second set of lane lines, which includes: Based on the lane line prediction probability and the first distance information, the third lane line set is deduplicated to obtain the second lane line set.

[0009] As can be seen from the above scheme, compared with directly deduplicating the first set of lane lines, the embodiments of this application first group the first set of lane lines according to the distance information before deduplicating the first set of lane lines according to the lane line prediction probability and the first distance information between lane lines. This is to roughly divide the lane lines in different lane areas into lane line groups, and then select the lane line with the highest mean lane line prediction probability from the lane line group to obtain the third set of lane lines. This can quickly eliminate redundant lane lines with low confidence in the same lane area. Then, the third set of lane lines is deduplicated in a more granular way according to the lane line prediction probability and the first distance information between lane lines, thereby improving the overall deduplication efficiency.

[0010] In a third possible implementation of the first aspect, before selecting the lane line with the largest mean lane line prediction probability from each of the lane line groups, the method further includes: For each lane line group to be judged, if the bifurcation distance between two adjacent lane lines in the lane line group to be judged is greater than or equal to a preset bifurcation distance threshold, and there is no intersection point in the preset middle area of ​​the two adjacent lane lines, the lane line group to be judged is split into two lane line groups according to the boundary point determined by the two adjacent lane lines, so that the two adjacent lane lines are assigned to different lane line groups.

[0011] As can be seen from the above scheme, the embodiments of this application can improve the accuracy of lane line grouping by performing secondary grouping on the original lane line grouping through the bifurcation distance between two adjacent lane lines and the intersection of the preset middle area of ​​two adjacent lane lines.

[0012] In the fourth possible implementation of the first aspect, for each lane line group to be judged, if it is determined that the bifurcation distance between two adjacent lane lines in the lane line group to be judged is greater than or equal to a preset bifurcation distance threshold, and there is no intersection point in the preset middle area of ​​the two adjacent lane lines, the lane line group to be judged is split into two lane line groups according to the boundary point determined by the two adjacent lane lines, so that the two adjacent lane lines are assigned to different lane line groups, including: For each lane line group to be judged, the distance between the same boundary point of two adjacent lane lines in the lane line group to be judged is calculated as the bifurcation distance. If the bifurcation distance between two adjacent lane lines is greater than or equal to a preset bifurcation distance threshold, and there is no intersection in the preset middle area of ​​the two adjacent lane lines, the lane line group to be judged is split into two lane line groups with the midpoint of the same boundary point of the two adjacent lane lines as the dividing point, so that the two adjacent lane lines are classified into different lane line groups.

[0013] In the fifth possible implementation of the first aspect, the method also includes: If it is determined that there is an intersection point in the preset middle area of ​​two adjacent lane lines, the two adjacent lane lines will be marked as the same lane line.

[0014] In a sixth possible implementation of the first aspect, the first lane set is divided into at least one lane group based on the second distance information between every two lane lines in the first lane set, including: According to the first sampling interval, each lane line in the first lane line set is sampled to obtain multiple first sampling points for each lane line; For the two lane lines to be divided, calculate the second distance information of the two lane lines to be divided. The second distance information includes the first distance and the second distance. The first distance is the absolute value of the difference of the abscissa of the first sampling points with the same ordinate in the two lane lines to be divided. The second distance is the absolute value of the difference of the abscissa of the first sampling points with the same ordinate in the two lane lines to be divided and whose lane line prediction probability is greater than or equal to the third probability threshold. When the sum of the first distance and the second distance is less than or equal to the first distance threshold, it is determined that the two lane lines to be divided belong to the same lane line group. After traversing the first set of lane lines, at least one lane line group is obtained.

[0015] In the seventh possible implementation of the first aspect, after deduplicating the third lane line set based on the lane line prediction probability and the first distance information to obtain the second lane line set, the method further includes: The second lane line set of multiple consecutive frames of target road environment images is used to form the fourth lane line set; Based on the lane line prediction probability and the first distance information, the fourth lane line set is deduplicated to obtain the fifth lane line set. The fifth lane line set is used as the lane line set for each frame of the target road environment image in a series of consecutive frames.

[0016] As can be seen from the above scheme, the embodiments of this application mix the second lane line sets of multiple consecutive frames of target road environment images and then remove duplicates again. This can not only further remove redundant lane lines, but also supplement lane lines that were missed.

[0017] In the eighth possible implementation of the first aspect, the method for deduplicating the target lane line set based on lane line prediction probability and first distance information includes: The lane line with the highest mean predicted probability is selected from the remaining lane line set as the first lane line. The remaining lane line set is the set of lane lines in the target lane line set, excluding the lane lines that have been deduplicated as the first lane line. The target lane line set includes the first lane line set, the third lane line set, or the fourth lane line set. Iterate through the remaining lane lines in the set of lane lines and use the currently traversed lane line as the second lane line; According to the second sampling interval, the first lane line and the second lane line are sampled respectively to obtain multiple second sampling points; The first distance information between the first lane line and the second lane line is calculated separately. The first distance information includes the third distance and the fourth distance. The third distance is the absolute value of the mean difference of the abscissa of the second sampling points with the same ordinate in the first lane line and the second lane line. The fourth distance is the absolute value of the mean difference of the abscissa of the second sampling points with the same ordinate in the first lane line and the second lane line and whose lane line prediction probability is greater than or equal to the fourth probability threshold. When the sum of the third and fourth distances is less than or equal to the second distance threshold, delete the second lane line; When the remaining set of lane lines contains at most one lane line, the deduplication operation on the target set of lane lines is completed.

[0018] In a ninth possible implementation of the first aspect, a first set of lane lines contained in the target road environment image is generated by connecting at least two seed points, including: A first set of lane lines is generated by concatenating at least two seed points using a partial affinity field algorithm; or... The first set of lane lines is generated by fitting a cubic polynomial curve to at least two seed points.

[0019] In the tenth possible implementation of the first aspect, acquiring a lane line heatmap of the target road environment image includes: Extract lane line image features from target road environment images based on neural networks; Lane line heatmaps are generated based on lane line image features and neural networks.

[0020] Secondly, embodiments of this application provide a two-dimensional lane line recognition device, the device comprising: The acquisition unit is used to acquire a lane heatmap of a target road environment image. The lane heatmap includes the lane prediction probability of each pixel in the target road environment image. The lane prediction probability is the probability that a pixel belongs to a lane. An extraction unit is used to extract at least two seed points from the lane heatmap, where the seed points are pixels whose lane prediction probability is greater than or equal to a first probability threshold. A generation unit is used to generate a first set of lane lines contained in a target road environment image by connecting at least two seed points.

[0021] This application embodiment obtains a lane line heatmap of a target road environment image and connects the seed points in the lane line heatmap to generate a first lane line set contained in the target road environment image. This allows for vehicle driving control based on the first lane line set, avoiding phenomena such as vehicles crossing lane lines or changing lanes incorrectly, thereby improving traffic safety.

[0022] In a first possible implementation of the second aspect, the apparatus further includes: The deduplication unit is used to deduplicate the first set of lane lines in the target road environment image by connecting at least two seed points, based on the lane line prediction probability and the first distance information between lane lines, to obtain a second set of lane lines.

[0023] In a second possible implementation of the second aspect, the apparatus further includes: A grouping unit is used to divide the first lane set into at least one lane group based on the second distance information between every two lane lines in the first lane set before performing deduplication processing on the first lane set based on the lane line prediction probability and the first distance information between lane lines to obtain the second lane set. The selection unit is used to select the lane line with the highest mean lane line prediction probability from each lane line group, and to form a third lane line set by selecting all the lane lines. The deduplication unit is used to deduplicatize the third lane line set based on the lane line prediction probability and the first distance information to obtain the second lane line set.

[0024] In a third possible implementation of the second aspect, the device further includes: The splitting unit is used to split each lane line group to be judged into two lane line groups based on the boundary point determined by the adjacent two lane lines before selecting the lane line with the highest average lane line prediction probability from each lane line group. This is done when the bifurcation distance between two adjacent lane lines in the lane line group to be judged is greater than or equal to a preset bifurcation distance threshold, and there is no intersection point in the preset middle area of ​​the two adjacent lane lines.

[0025] In the fourth possible implementation of the second aspect, the splitting of the unit includes: The first calculation module is used to calculate the distance between the same boundary point of two adjacent lane lines in each lane line group to be judged as the bifurcation distance. The splitting module is used to split the lane line group to be judged into two lane line groups when the bifurcation distance between two adjacent lane lines is greater than or equal to a preset bifurcation distance threshold and there is no intersection in the preset middle area of ​​the two adjacent lane lines. This is done by using the midpoint of the same boundary point of the two adjacent lane lines as the dividing point, so that the two adjacent lane lines are classified into different lane line groups.

[0026] In a fifth possible implementation of the second aspect, the apparatus further includes: The marking unit is used to mark two adjacent lane lines as the same lane line when it is determined that there is an intersection point in the preset middle area of ​​two adjacent lane lines.

[0027] In the sixth possible implementation of the second aspect, the grouping unit includes: The first sampling module is used to sample each lane line in the first lane line set according to the first sampling interval, so as to obtain multiple first sampling points for each lane line; The second calculation module is used to calculate the second distance information of the two lane lines to be divided. The second distance information includes the first distance and the second distance. The first distance is the absolute value of the difference between the abscissas of the first sampling points with the same ordinate in the two lane lines to be divided. The second distance is the absolute value of the difference between the abscissas of the first sampling points with the same ordinate in the two lane lines to be divided and whose lane line prediction probability is greater than or equal to the third probability threshold. The determination module is used to determine that the two lane lines to be divided belong to the same lane line group when the sum of the first distance and the second distance is less than or equal to the first distance threshold. The module is used to obtain at least one lane line group after traversing the first set of lane lines.

[0028] In the seventh possible implementation of the second aspect, the apparatus further includes: The constitutive unit is used to deduplicatize the third lane line set based on the lane line prediction probability and the first distance information to obtain the second lane line set, and then construct the second lane line set of multiple consecutive frames of target road environment images into the fourth lane line set. The deduplication unit is also used to deduplicatize the fourth lane line set based on the lane line prediction probability and the first distance information to obtain the fifth lane line set. The determining unit is used to take the fifth lane line set as the lane line set of each frame of the target road environment image in a series of consecutive frames of target road environment images.

[0029] In the eighth possible implementation of the second aspect, the deduplication unit includes: The selection module is used to select the lane line with the highest average lane line prediction probability from the set of remaining lane lines as the first lane line. The set of remaining lane lines is the set of lane lines in the target lane line set, excluding the lane lines that have been deduplicated as the first lane line. The target lane line set includes the first lane line set, the third lane line set, or the fourth lane line set. The setting module is used to traverse the other lane lines in the remaining lane line set and set the currently traversed lane line as the second lane line; The second sampling module is used to sample the first lane line and the second lane line according to the second sampling interval to obtain multiple second sampling points; The third calculation module is used to calculate the first distance information between the first lane line and the second lane line respectively. The first distance information includes a third distance and a fourth distance. The third distance is the absolute value of the mean difference between the abscissas of the second sampling points with the same ordinate in the first lane line and the second lane line. The fourth distance is the absolute value of the mean difference between the abscissas of the second sampling points with the same ordinate in the first lane line and the second lane line and whose lane line prediction probability is greater than or equal to the fourth probability threshold. The deletion module is used to delete the second lane line when the sum of the third distance and the fourth distance is less than or equal to the second distance threshold; The stop module is used to perform deduplication of the target lane set when the remaining lane set contains at most one lane.

[0030] In the ninth possible implementation of the second aspect, the generating unit includes: a first generating module or a second generating module; The first generation module is used to connect at least two seed points based on a partial affinity field algorithm to generate a first set of lane lines. The second generation module is used to perform curve fitting on at least two seed points using a cubic polynomial curve to generate a first set of lane lines.

[0031] In the tenth possible implementation of the second aspect, the acquisition unit includes: The extraction module is used to extract lane line image features from target road environment images based on neural networks; The third generation module is used to generate lane line heatmaps based on lane line image features and neural networks.

[0032] Thirdly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the method as described in any possible implementation of the first aspect.

[0033] Fourthly, embodiments of this application provide an electronic device, which includes: One or more processors; The processor is coupled to a storage device for storing one or more programs. When one or more programs are executed by one or more processors, the electronic device performs the method as described in any possible implementation of the first aspect.

[0034] Fifthly, embodiments of this application provide a vehicle that includes the means as described in any possible implementation of the second aspect, or includes electronic equipment as described in the fourth aspect.

[0035] In a sixth aspect, embodiments of this application provide a computer program product containing instructions that, when executed on a computer or processor, cause the computer or processor to perform the method described in any possible implementation of the first aspect. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0037] Figure 1 A flowchart illustrating a two-dimensional lane line recognition method provided in an embodiment of this application; Figure 2 An example diagram of a lane line boundary point provided in an embodiment of this application; Figure 3 A flowchart illustrating another method for recognizing two-dimensional lane lines provided in an embodiment of this application; Figure 4 A block diagram illustrating the composition of a two-dimensional lane line recognition device provided in this application embodiment; Figure 5 A block diagram of an electronic device or computer device provided in an embodiment of this application; Figure 6 This is a structural schematic diagram of a vehicle provided in an embodiment of this application. Detailed Implementation

[0038] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0039] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The terms "comprising" and "having," and any variations thereof, in the embodiments and drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes 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.

[0040] Figure 1 This is a flowchart illustrating a two-dimensional lane line recognition method. This method can be applied to electronic or computer equipment, specifically to vehicles or servers, and may include the following steps: S110: Obtain a lane line heatmap from the target road environment image.

[0041] The target road environment image includes the road environment image in the vehicle's forward field of view. The lane line heatmap includes the lane line prediction probability for each pixel in the target road environment image; the lane line prediction probability is the probability that a pixel belongs to a lane line. The method for obtaining the lane line heatmap of the target road environment image includes: extracting lane line image features from the target road environment image based on a neural network; and generating the lane line heatmap based on the lane line image features and the neural network. The neural network can be a CNN (Convolutional Neural Network) network or other neural networks.

[0042] The process of obtaining the lane line heatmap of the target road environment image and finally obtaining the two-dimensional lane lines in the target road environment image in this embodiment can be regarded as a recognition process in the training process of the two-dimensional lane line recognition model (hereinafter referred to as the model training stage), or as the process of performing two-dimensional lane line recognition on the road environment image to be recognized based on the trained two-dimensional lane line recognition model (hereinafter referred to as the model application stage).

[0043] During the model training phase, the target road environment image serves as the training sample and includes lane markings. When generating the lane line heatmap, the neural network assigns a lane line prediction probability of 1 to pixels located on lane lines and a value of 0 to other pixels based on lane image features. After multiple training iterations, the neural network learns the optimal parameters (i.e., the parameters that satisfy the convergence condition) required to predict lane line prediction probabilities. During the model application phase, the target road environment image is the road environment image to be identified, excluding lane markings. When generating the lane line heatmap, the pre-trained neural network can predict the lane line prediction probability for each pixel.

[0044] S120: Extract at least two seed points from the lane line heatmap.

[0045] Seed points are pixels whose lane line prediction probability is greater than or equal to a first probability threshold. The first probability threshold can be the result of model training or an empirical value.

[0046] S130: By connecting at least two seed points, a first set of lane lines contained in the target road environment image is generated.

[0047] The specific implementation methods for this step include, but are not limited to, the following two:

[0048] The first method: Based on the Part Affinity Fields (PAF) algorithm, at least two seed points are connected in series to generate the first set of lane lines.

[0049] The second method involves using a cubic polynomial curve to fit at least two seed points, generating the first set of lane lines.

[0050] Since the shape of lane lines is fixed, X cubic polynomial curves can be used as matching templates. The matching template to be matched is moved from the left edge of the target road environment image to the right until there are seed points greater than or equal to a preset threshold (e.g., 5) located on the matching template. A successful match is determined, and the matching template is identified as a lane line. If no match is found, the next matching template is used. After one match is completed, the matching process restarts for the remaining seed points until no matching template can be found.

[0051] It should be added that during the model training phase, a loss function also needs to be calculated for the lane line recognition results based on a single frame of the target road environment image. This application does not limit the object or method of calculating the loss function. For example, the loss function can be calculated for seed point extraction; when the loss function meets the convergence condition, the seed point extraction part is no longer trained. The ground truth lane lines are manually labeled, continuous scattered points distributed along the lane lines with fixed intervals. The loss function can be: ; Where K is the number of overlapping points between the ground truth points and the seed points, N is the number of seed points, and M is the number of ground truth points. When the distance between the seed points and the ground truth points is less than or equal to the third distance threshold (e.g., 10 pixels), the seed points and the ground truth points are considered to overlap.

[0052] This application's embodiments can be applied to both autonomous driving and manual driving scenarios. When applied to autonomous driving scenarios, after identifying lane lines, the vehicle can perform path planning based on the identified lane lines and automatically control the vehicle's movement. When applied to manual driving scenarios, after identifying lane lines, the target road environment image, including lane line markings (markings on the identified lane lines), can be output to an in-vehicle display screen, to the windshield via a HUD (Head-Up Display), or to a mobile terminal (such as a mobile phone) for the driver's reference.

[0053] The two-dimensional lane line recognition method provided in this application can obtain a lane line heatmap of a target road environment image and connect the seed points in the lane line heatmap to generate a first lane line set contained in the target road environment image. This allows for vehicle driving control based on the first lane line set, avoiding phenomena such as vehicles crossing lane lines or changing lanes incorrectly, thereby improving traffic safety.

[0054] In one implementation, after generating the first set of lane lines, the first set of lane lines can be deduplicated based on the lane line prediction probability and the first distance information between lane lines to obtain the second set of lane lines. This can remove redundant lane lines and improve the accuracy of lane line recognition.

[0055] The method for deduplicating the target lane set based on lane prediction probability and the first distance information between lanes (hereinafter referred to as the preset deduplication algorithm) includes: selecting the lane line with the largest mean lane prediction probability from the remaining lane set as the first lane line; the remaining lane set is the set of lane lines in the target lane set excluding the lane lines that have been deduplicated as the first lane line; traversing the other lane lines in the remaining lane set and using the currently traversed lane line as the second lane line; sampling the first lane line and the second lane line according to the second sampling interval to obtain multiple second sampling points; and calculating... Calculate the first distance information between the first lane line and the second lane line. The first distance information includes a third distance and a fourth distance. The third distance is the absolute value of the mean difference between the x-coordinates of the second sampling points with the same y-coordinate in the first lane line and the second lane line. The fourth distance is the absolute value of the mean difference between the x-coordinates of the second sampling points with the same y-coordinate in the first lane line and the second lane line whose lane line prediction probability is greater than or equal to a fourth probability threshold. When the sum of the third distance and the fourth distance is less than or equal to the second distance threshold, the second lane line is deleted. When the set of remaining lane lines contains at most one lane line, the remaining lane lines constitute the second lane line set.

[0056] When the aforementioned pre-defined deduplication algorithm is executed for the first time, the set of remaining lane lines becomes the target lane line set. In practice, the lane lines in the target lane line set can be sorted in descending order of their mean lane line prediction probabilities. After obtaining a re-sorted target lane line set, the aforementioned pre-defined deduplication algorithm is then executed to improve the efficiency of selecting the lane line with the highest mean lane line prediction probability from the remaining lane line set. Alternatively, sorting can be skipped, and the mean lane line prediction probability of each lane line in the remaining lane line set can be compared each time, selecting the lane line with the highest mean lane line prediction probability. The mean lane line prediction probability can be the average of the lane line prediction probabilities of all pixels on the lane line, or the average of the lane line prediction probabilities of multiple sampling points on the lane line (which can be the first sampling point, the second sampling point, or sampling points sampled at other sampling intervals). The second sampling interval can be 10 pixels or any other number of pixels. The absolute value of the mean refers to the absolute value of the mean. The second distance threshold can be an empirical value.

[0057] It should be noted that the target set of lane lines can be any set of lane lines to be deduplicated. For example, it can be the first set of lane lines to be deduplicated in the embodiments of this application, or it can be the third set of lane lines or the fourth set of lane lines to be deduplicated in the following embodiments.

[0058] For example, suppose the first set of lane lines includes four lane lines: lane lines 1, 2, 3, and 4. Their average lane line prediction probabilities are in the order of lane line 1 > lane line 3 > lane line 4 > lane line 2. First, select lane line 1, which has the highest average lane line prediction probability, as the first lane line. Then, iterate through the other lane lines, calculating the sum of the third and fourth distances between lane line 1 and lane lines 2, 3, and 4. If the sum of the third and fourth distances is less than or equal to a second distance threshold, delete the corresponding lane line, for example, delete lane line 4 and keep lane line 1. At this point, the remaining set of lane lines includes lane lines 2 and 3. First, select lane line 3, which has the highest average lane line prediction probability, as the first lane line. Then, calculate the sum of the third and fourth distances between lane line 3 and lane line 2. If the sum of the third and fourth distances is greater than the second distance threshold, then keep lane lines 2 and 3. Adding this to the previously kept lane line 1, this forms the second set of lane lines.

[0059] This application embodiment uses the lane line with the highest average lane line prediction probability in the remaining lane line set (i.e., the first lane line) as the maximum value for deduplication. It also suppresses (i.e. deletes) lane lines that overlap with the first lane line by calculating the sum of the third and fourth distances between the first lane line and other lane lines. This results in the average lane line prediction probability of each lane line in the remaining second lane line set being the highest, thereby further improving the accuracy of lane line recognition on the basis of deduplication.

[0060] In one embodiment, after generating the first lane line set and before performing deduplication on the first lane line set based on lane line prediction probabilities and first distance information between lane lines to obtain the second lane line set, the embodiments of this application may further perform the following method: Dividing the first lane line set into at least one lane line group according to the distance information between every two lane lines in the first lane line set; selecting the lane line with the highest average lane line prediction probability from each lane line group, and forming a third lane line set with all selected lane lines. Correspondingly, performing deduplication on the first lane line set based on lane line prediction probabilities and first distance information to obtain the second lane line set includes: performing deduplication on the third lane line set based on lane line prediction probabilities and first distance information to obtain the second lane line set.

[0061] The grouping method includes, but is not limited to: sampling each lane line in the first lane line set according to a first sampling interval to obtain multiple first sampling points for each lane line; for the two lane lines to be divided, calculating the second distance information of the two lane lines to be divided respectively, the second distance information including the first distance and the second distance, the first distance being the absolute value of the mean difference of the abscissas of the first sampling points with the same ordinate in the two lane lines to be divided, and the second distance being the absolute value of the mean difference of the abscissas of the first sampling points with the same ordinate in the two lane lines to be divided and whose lane line prediction probability is greater than or equal to a third probability threshold; when the sum of the first distance and the second distance is less than or equal to the first distance threshold, determining that the two lane lines to be divided belong to the same lane line group; after traversing the first lane line set, obtaining at least one lane line group.

[0062] Each lane group includes at least one lane line. The first sampling interval and the second sampling interval can be the same or different. Since the purpose of lane line grouping is coarse segmentation, distinguishing lane lines by lane, and the purpose of deduplication based on the aforementioned preset deduplication algorithm is to select the optimal lane line after deduplication, the distance information requirement for lane line grouping is lower than that for deduplication. For example, the third probability threshold is less than or equal to the fourth probability threshold, and the first distance threshold is greater than or equal to the second distance threshold. The first distance threshold can be determined based on the lane width, for example, the first distance threshold = 2 lane widths.

[0063] Compared to directly deduplicating the first lane line set according to the aforementioned preset deduplication algorithm, this embodiment first groups the first lane line set based on distance information before deduplicating it according to the preset deduplication algorithm. This roughly divides the lane lines into groups for different lane regions. Then, it selects the lane lines with the highest mean predicted probability from the lane line groups to obtain the third lane line set. This allows for the rapid elimination of redundant lane lines with low confidence in the same lane region. Finally, the preset deduplication algorithm is used to perform more fine-grained deduplication on the third lane line set, thereby improving the overall deduplication efficiency.

[0064] In one embodiment, to further improve the accuracy of lane line grouping, before selecting the lane line with the highest average lane line prediction probability from each lane line group, for each lane line group to be judged, if it is determined that the bifurcation distance between two adjacent lane lines in the lane line group to be judged is greater than or equal to a preset bifurcation distance threshold, and there is no intersection point in the preset middle area of ​​the two adjacent lane lines, the lane line group to be judged is split into two lane line groups according to the boundary point determined by the two adjacent lane lines, so that the two adjacent lane lines are assigned to different lane line groups.

[0065] Specifically, for each lane group to be judged, the distance between the same boundary points of two adjacent lane lines in the lane group is calculated as the bifurcation distance. If the bifurcation distance between two adjacent lane lines is greater than or equal to a preset bifurcation distance threshold, and there is no intersection point in the preset middle area of ​​the two adjacent lane lines, the midpoint of the same boundary point of the two adjacent lane lines is used as the dividing point to split the lane group to be judged into two lane groups, so that the two adjacent lane lines are assigned to different lane groups. The same boundary point includes the upper boundary point or the lower boundary point, or it can be understood as a point on the lane line corresponding to the minimum ordinate or the lane line corresponding to the maximum ordinate, such as... Figure 2 As shown, points A and B are the upper boundary points, and points C and D are the lower boundary points. When the bifurcation distance between the upper boundary points and the bifurcation distance between the lower boundary points of two adjacent lane lines are both greater than or equal to a preset bifurcation distance threshold, and there is no intersection in the preset intermediate region of the two adjacent lane lines, the midpoint of the same boundary point with the larger bifurcation distance can be selected as the dividing point to further divide the lane lines into groups. Furthermore, the preset intermediate region includes the area defined by a preset distance extending upwards and downwards from the midpoint of the two adjacent lane lines.

[0066] In addition, if it is determined that there is an intersection in the preset middle area of ​​two adjacent lane lines, the two adjacent lane lines are marked as the same lane line. For example, the two adjacent lane lines are given the same Y-shaped line attribute.

[0067] In one implementation, the above embodiment identifies lane lines based on a single frame of target road environment image. To further remove redundant lane lines and supplement missed lane lines, this application can perform deduplication processing on a third lane line set based on lane line prediction probability and first distance information to obtain a second lane line set. Then, the second lane line sets of consecutive target road environment images are used to form a fourth lane line set. The fourth lane line set is then deduplicated based on lane line prediction probability and first distance information to obtain a fifth lane line set. The fifth lane line set is used as the lane line set for each frame of the target road environment image in the consecutive frames. The number of consecutive frames can be a fixed value, such as 2 frames, or a dynamically changing value. When the number of consecutive frames is a dynamically changing value, the determination method includes, but is not limited to: sequentially calculating the image similarity between the first frame and subsequent frames; stopping the calculation when the image similarity between the first frame and the current frame is less than or equal to a similarity threshold; and determining that the consecutive frames include the frame before the current frame.

[0068] Although this application embodiment only performs deduplication processing, it can supplement the lane lines that were missed. The reason is that the fifth lane line set obtained after deduplication may include lane lines that were missed in a certain frame of the target road environment image. Therefore, the fifth lane line set is used as the lane line set of each frame of the target road environment image in a series of consecutive frames of target road environment images, which can supplement the lane lines that were missed. For example, the second lane line set of the first frame target road environment image includes lane line 1, lane line 2, and lane line 3, and the second lane line set of the second frame target road environment image includes lane line 4, lane line 5, lane line 6, and lane line 7. These two second lane line sets are combined to form a fourth lane line set, which includes lane lines 1 to 7. When deduplicating, it is determined that lane line 1 and lane line 4 are duplicates, lane line 2 and lane line 5 are duplicates, and lane line 3 and lane line 7 are duplicates. Then, the fifth lane line set obtained after deduplication includes lane line 1, lane line 5, lane line 3, and lane line 6. Therefore, compared with the second lane line set of the first frame target road environment image, the fifth lane line set can not only obtain lane lines with a relatively higher lane line prediction probability, but also supplement the lane lines that were missed.

[0069] According to an embodiment, another embodiment of this application provides a flowchart illustrating a method for recognizing two-dimensional lane lines, as shown below. Figure 3 As shown, the method includes: S201: Extract lane line image features from the target road environment image.

[0070] S202: Generate lane line heatmap.

[0071] S203: Extract seed point.

[0072] S204: Connect the seed points to generate the first set of lane lines.

[0073] S205: Lane markings grouping.

[0074] For details, please refer to the above embodiments for grouping lane lines based on distance information.

[0075] S206: Correct lane line grouping.

[0076] For details, please refer to the above embodiments for secondary grouping of lane lines based on the bifurcation distance.

[0077] S207: Intra-group lane line filtering to obtain the third set of lane lines.

[0078] S208: Lane line deduplication, obtaining a second set of lane lines based on a single frame of the target road environment image.

[0079] S209: The second set of lane lines in multiple consecutive frames of target road environment images constitutes the fourth set of lane lines, and duplicates are removed to obtain the fifth set of lane lines.

[0080] Corresponding to the above method embodiments, another embodiment of this application provides a two-dimensional lane line recognition device, such as... Figure 4 As shown, the device includes: The acquisition unit 30 is used to acquire a lane heatmap of the target road environment image. The lane heatmap includes the lane prediction probability of each pixel in the target road environment image. The lane prediction probability is the probability that a pixel belongs to a lane. Extraction unit 32 is used to extract at least two seed points from the lane heatmap, where the seed points are pixels whose lane prediction probability is greater than or equal to a first probability threshold. The generation unit 34 is used to generate a first set of lane lines contained in the target road environment image by connecting at least two seed points.

[0081] In one embodiment, the apparatus further includes: The deduplication unit is used to deduplicate the first set of lane lines in the target road environment image by connecting at least two seed points, based on the lane line prediction probability and the first distance information between lane lines, to obtain a second set of lane lines.

[0082] In one embodiment, the apparatus further includes: A grouping unit is used to divide the first lane set into at least one lane group based on the second distance information between every two lane lines in the first lane set before performing deduplication processing on the first lane set based on the lane line prediction probability and the first distance information between lane lines to obtain the second lane set. The selection unit is used to select the lane line with the highest mean lane line prediction probability from each lane line group, and to form a third lane line set by selecting all the lane lines. The deduplication unit is used to deduplicatize the third lane line set based on the lane line prediction probability and the first distance information to obtain the second lane line set.

[0083] In one embodiment, the apparatus further includes: The splitting unit is used to split the lane line group to be judged into two lane line groups based on the boundary point determined by the adjacent two lane lines before selecting the lane line with the largest average lane line prediction probability from each lane line group. This is done when the bifurcation distance between two adjacent lane lines in the lane line group to be judged is greater than or equal to a preset bifurcation distance threshold and there is no intersection point in the preset middle area of ​​the two adjacent lane lines.

[0084] In one implementation, the splitting unit includes: The first calculation module is used to calculate the distance between the same boundary point of two adjacent lane lines in each lane line group to be judged as the bifurcation distance. The splitting module is used to split the lane line group to be judged into two lane line groups when the bifurcation distance between two adjacent lane lines is greater than or equal to a preset bifurcation distance threshold and there is no intersection in the preset middle area of ​​the two adjacent lane lines. This is done by using the midpoint of the same boundary point of the two adjacent lane lines as the dividing point, so that the two adjacent lane lines are classified into different lane line groups.

[0085] In one embodiment, the apparatus further includes: The marking unit is used to mark two adjacent lane lines as the same lane line when it is determined that there is an intersection point in the preset middle area of ​​two adjacent lane lines.

[0086] In one embodiment, the grouping unit includes: The first sampling module is used to sample each lane line in the first lane line set according to the first sampling interval, so as to obtain multiple first sampling points for each lane line; The second calculation module is used to calculate the second distance information of the two lane lines to be divided. The second distance information includes the first distance and the second distance. The first distance is the absolute value of the difference between the abscissas of the first sampling points with the same ordinate in the two lane lines to be divided. The second distance is the absolute value of the difference between the abscissas of the first sampling points with the same ordinate in the two lane lines to be divided and whose lane line prediction probability is greater than or equal to the third probability threshold. The determination module is used to determine that the two lane lines to be divided belong to the same lane line group when the sum of the first distance and the second distance is less than or equal to the first distance threshold. The module is used to obtain at least one lane line group after traversing the first set of lane lines.

[0087] In one embodiment, the apparatus further includes: The constitutive unit is used to deduplicatize the third lane line set based on the lane line prediction probability and the first distance information to obtain the second lane line set, and then construct the second lane line set of multiple consecutive frames of target road environment images into the fourth lane line set. The deduplication unit is also used to deduplicatize the fourth lane line set based on the lane line prediction probability and the first distance information to obtain the fifth lane line set. The determining unit is used to take the fifth lane line set as the lane line set of each frame of the target road environment image in a series of consecutive frames of target road environment images.

[0088] In one implementation, the deduplication unit includes: The selection module is used to select the lane line with the highest average lane line prediction probability from the set of remaining lane lines as the first lane line. The set of remaining lane lines is the set of lane lines in the target lane line set, excluding the lane lines that have been deduplicated as the first lane line. The target lane line set includes the first lane line set, the third lane line set, or the fourth lane line set. The setting module is used to traverse the other lane lines in the remaining lane line set and set the currently traversed lane line as the second lane line; The second sampling module is used to sample the first lane line and the second lane line according to the second sampling interval to obtain multiple second sampling points; The third calculation module is used to calculate the first distance information between the first lane line and the second lane line respectively. The first distance information includes a third distance and a fourth distance. The third distance is the absolute value of the mean difference between the abscissas of the second sampling points with the same ordinate in the first lane line and the second lane line. The fourth distance is the absolute value of the mean difference between the abscissas of the second sampling points with the same ordinate in the first lane line and the second lane line and whose lane line prediction probability is greater than or equal to the fourth probability threshold. The deletion module is used to delete the second lane line when the sum of the third distance and the fourth distance is less than or equal to the second distance threshold; The stop module is used to perform deduplication of the target lane set when the remaining lane set contains at most one lane.

[0089] In one embodiment, the generation unit 34 includes: a first generation module or a second generation module; The first generation module is used to connect at least two seed points based on a partial affinity field algorithm to generate a first set of lane lines. The second generation module is used to perform curve fitting on at least two seed points using a cubic polynomial curve to generate a first set of lane lines.

[0090] In one embodiment, the acquiring unit 30 includes: The extraction module is used to extract lane line image features from target road environment images based on neural networks; The third generation module is used to generate lane line heatmaps based on lane line image features and neural networks.

[0091] The two-dimensional lane line recognition device provided in this application embodiment can obtain a lane line heat map of a target road environment image and connect the seed points in the lane line heat map to generate a first lane line set contained in the target road environment image, so as to control vehicle driving based on the first lane line set, avoid vehicle crossing the line, lane changing errors and other phenomena, thereby improving traffic safety.

[0092] Based on the above method embodiments, another embodiment of this application provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the method described in any of the above embodiments.

[0093] Based on the above method embodiments, another embodiment of this application provides an electronic device or computer device, such as... Figure 5 As shown, it includes: One or more processors 40; The processor 40 is coupled to a storage device 42, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 40, the electronic device or computer device performs the method as described in any of the above embodiments.

[0094] Based on the above method embodiments, another embodiment of this application provides a vehicle that includes the apparatus as described in any of the above embodiments, or includes electronic devices as described above.

[0095] like Figure 6 As shown, the vehicle includes a camera 50, an ECU (Electronic Control Unit) 52, and a T-Box (Telematics Box) 54. The camera 50 is used to acquire images of the target road environment, and the T-Box 54 can act as a gateway to communicate with the server. The ECU 52 can execute the aforementioned two-dimensional lane line recognition method. The ECU 52 can also acquire the target road environment images acquired by the camera 50, report the target road environment images to the server via the T-Box 54, and receive the two-dimensional lane lines identified by the server based on the aforementioned two-dimensional lane line recognition method, so as to control the vehicle's movement according to the two-dimensional lane lines.

[0096] The vehicle may also include: a GPS (Global Positioning System) positioning module and a V2X (Vehicle-to-Everything) module. The GPS positioning module is used to locate the vehicle's current position, and the V2X module is used to communicate with other vehicles, roadside equipment, etc.

[0097] Based on the above embodiments, another embodiment of this application provides a computer program product, which includes instructions that, when executed on a computer or processor, cause the computer or processor to perform the method described in any of the above embodiments.

[0098] The above-described apparatus embodiments correspond to the method embodiments and have the same technical effects. For detailed descriptions, please refer to the method embodiments. The apparatus embodiments are derived from the method embodiments; detailed descriptions can be found in the method embodiments section, and will not be repeated here. Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of one embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing this application.

[0099] Those skilled in the art will understand that the modules in the apparatus of the embodiments can be distributed in the apparatus of the embodiments as described in the embodiments, or they can be located in one or more devices different from this embodiment with corresponding changes. The modules of the above embodiments can be combined into one module, or they can be further divided into multiple sub-modules.

[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for recognizing two-dimensional lane lines, characterized in that, The method includes: A lane heatmap of a target road environment image is obtained, wherein the lane heatmap includes the lane prediction probability of each pixel in the target road environment image, and the lane prediction probability is the probability that the pixel belongs to a lane. At least two seed points are extracted from the lane heatmap, and the seed points are the pixels whose lane prediction probability is greater than or equal to a first probability threshold. By connecting the at least two seed points, a first set of lane lines contained in the target road environment image is generated; Based on the second distance information between every two lane lines in the first lane line set, the first lane line set is divided into at least one lane line group. The second distance information includes a first distance and a second distance. The first distance is the absolute value of the mean difference between the abscissas of the first sampling points with the same ordinate in the two lane lines to be divided. The second distance is the absolute value of the mean difference between the abscissas of the first sampling points with the same ordinate in the two lane lines to be divided and whose predicted probability is greater than or equal to a third probability threshold. For each lane line group to be judged, the distance between the same boundary point of two adjacent lane lines in the lane line group to be judged is calculated as the bifurcation distance. If the bifurcation distance between two adjacent lane lines is greater than or equal to a preset bifurcation distance threshold, and there is no intersection in the preset middle area of ​​the two adjacent lane lines, the lane line group to be judged is split into two lane line groups with the midpoint of the same boundary point of the two adjacent lane lines as the dividing point, so that the two adjacent lane lines are divided into different lane line groups. The preset middle area includes the area determined by a preset distance extending upward and downward from the midpoint of the two adjacent lane lines. From each of the lane line groups, select the lane line with the highest mean lane line prediction probability, and form a third lane line set by selecting all the lane lines. Based on the lane line prediction probability and the first distance information between lane lines, the third lane line set is deduplicated to obtain the second lane line set.

2. The method according to claim 1, characterized in that, The method further includes: If it is determined that there is an intersection point in the preset middle area of ​​the two adjacent lane lines, the two adjacent lane lines are marked as the same lane line.

3. The method according to claim 1, characterized in that, The step of dividing the first lane line set into at least one lane line group based on the second distance information between every two lane lines in the first lane line set includes: According to the first sampling interval, each lane line in the first lane line set is sampled to obtain multiple first sampling points for each lane line; For the two lane lines to be divided, calculate the second distance information of the two lane lines to be divided respectively; When the sum of the first distance and the second distance is less than or equal to the first distance threshold, it is determined that the two lane lines to be divided belong to the same lane line group. After traversing the first set of lane lines, at least one of the lane line groups is obtained.

4. The method according to claim 1, characterized in that, After performing deduplication on the third lane line set based on the lane line prediction probability and the first distance information between lane lines to obtain the second lane line set, the method further includes: The second set of lane lines in multiple consecutive frames of the target road environment image constitutes the fourth set of lane lines; Based on the lane line prediction probability and the first distance information, the fourth lane line set is deduplicated to obtain the fifth lane line set. The fifth set of lane lines is used as the set of lane lines for each frame of the target road environment image in a series of consecutive frames of the target road environment image.

5. The method according to claim 4, characterized in that, The method for deduplicating the target lane line set based on the lane line prediction probability and the first distance information includes: The lane line with the highest mean predicted probability is selected from the remaining lane line set as the first lane line. The remaining lane line set is the set of lane lines in the target lane line set, excluding the lane lines that have been deduplicated as the first lane line. The target lane line set includes the first lane line set, the third lane line set, or the fourth lane line set. Traverse the other lane lines in the remaining lane line set, and use the currently traversed lane line as the second lane line; According to the second sampling interval, the first lane line and the second lane line are sampled respectively to obtain multiple second sampling points; The first distance information between the first lane line and the second lane line is calculated respectively. The first distance information includes a third distance and a fourth distance. The third distance is the absolute value of the mean difference between the abscissas of the second sampling points with the same ordinate in the first lane line and the second lane line. The fourth distance is the absolute value of the mean difference between the abscissas of the second sampling points with the same ordinate in the first lane line and the second lane line and whose lane line prediction probability is greater than or equal to a fourth probability threshold. When the sum of the third distance and the fourth distance is less than or equal to the second distance threshold, the second lane line is deleted; When the remaining lane line set contains at most one lane line, the deduplication operation of the target lane line set is completed.

6. The method according to claim 1, characterized in that, The step of generating a first set of lane lines contained in the target road environment image by connecting the at least two seed points includes: The first lane line set is generated by concatenating the at least two seed points using a partial affinity field algorithm; or... The first set of lane lines is generated by fitting a cubic polynomial curve to the at least two seed points.

7. The method according to any one of claims 1-6, characterized in that, The process of acquiring the lane line heatmap of the target road environment image includes: Lane line image features are extracted from the target road environment image based on a neural network. The lane line heatmap is generated based on the lane line image features and the neural network.

8. A two-dimensional lane line recognition device, characterized in that, The device includes: The acquisition unit is used to acquire a lane line heatmap of a target road environment image. The lane line heatmap includes the lane line prediction probability of each pixel in the target road environment image. The lane line prediction probability is the probability that the pixel belongs to a lane line. An extraction unit is configured to extract at least two seed points from the lane heatmap, wherein the seed points are the pixels whose lane prediction probability is greater than or equal to a first probability threshold. A generation unit is used to generate a first set of lane lines contained in the target road environment image by connecting the at least two seed points. The device further includes: The deduplication unit is used to perform deduplication processing on the first lane line set based on the lane line prediction probability and the first distance information between lane lines after generating the first lane line set contained in the target road environment image by connecting the at least two seed points, to obtain the second lane line set. A grouping unit is configured to, before performing deduplication on the first lane set based on the lane prediction probability and the first distance information between lane lines to obtain a second lane set, divide the first lane set into at least one lane group according to the second distance information between every two lane lines in the first lane set. The second distance information includes a first distance and a second distance. The first distance is the absolute value of the mean difference between the abscissas of the first sampling points with the same ordinate in the two lane lines to be divided. The second distance is the absolute value of the mean difference between the abscissas of the first sampling points with the same ordinate in the two lane lines to be divided and whose lane prediction probability is greater than or equal to a third probability threshold. The selection unit is used to select the lane line with the largest mean lane line prediction probability from each of the lane line groups, and to form a third lane line set by selecting all the lane lines. The deduplication unit is used to perform deduplication processing on the third lane line set based on the lane line prediction probability and the first distance information to obtain the second lane line set. The device further includes: The splitting unit is configured to, before selecting the lane line with the highest average lane line prediction probability from each lane line group, split the lane line group to be judged into two lane line groups based on the boundary point determined by the two adjacent lane lines, such that the two adjacent lane lines are assigned to different lane line groups. The preset intermediate area includes an area defined by a preset distance extending upwards and downwards from the midpoint of the two adjacent lane lines. The splitting unit includes: The first calculation module is used to calculate the distance between the same boundary point of two adjacent lane lines in each lane line group to be judged as the bifurcation distance. The splitting module is used to split the lane line group to be judged into two lane line groups when the bifurcation distance between two adjacent lane lines is greater than or equal to a preset bifurcation distance threshold and there is no intersection in the preset middle area of ​​the two adjacent lane lines, using the midpoint of the same boundary point of the two adjacent lane lines as the dividing point, so that the two adjacent lane lines are divided into different lane line groups.

9. The apparatus according to claim 8, characterized in that, The device further includes: The constituting unit is used to, after performing deduplication processing on the third lane line set based on the lane line prediction probability and the first distance information to obtain the second lane line set, construct a fourth lane line set from the second lane line sets of multiple consecutive frames of the target road environment image. The deduplication unit is further configured to perform deduplication processing on the fourth lane line set based on the lane line prediction probability and the first distance information to obtain a fifth lane line set. The determining unit is used to use the fifth lane line set as the lane line set of each frame of the target road environment image in a series of consecutive frames of the target road environment image.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.

11. An electronic device, characterized in that, The electronic device includes: One or more processors; The processor is coupled to a storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the electronic device performs the method as described in any one of claims 1-7.

12. A vehicle, characterized in that, The vehicle includes the device as described in any one of claims 8-9, or the electronic device as described in claim 11.

Citation Information

Patent Citations

  • Lane line detection and driving control method and device and electronic equipment

    CN111460866A

  • Lane line detection method based on key point regression and multi-scale feature fusion

    CN113627228A

  • Lane line tracking method and device, computer equipment and storage medium

    CN114120281A