Lane line detection method and system based on prior guidance, storage medium and vehicle

Through a priori-guided lane line detection method, predefined 3D anchor points and feature fusion processing are used to solve the problems of low efficiency and poor accuracy in existing 3D lane line detection, and achieve efficient and accurate lane line detection and Reduce the amount of calculation.

CN118675133APending Publication Date: 2024-09-20GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410822869.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing 3D lane line detection methods have low efficiency, poor accuracy, and large amount of calculation in complex scenes, especially the lane line deformation and anchor point overlap problems caused by perspective geometric distortion.

Method used

A lane line detection method based on prior guidance is adopted, which uses predefined 3D anchor point matching filtering and projection sampling, and combines front-view image and bird's-eye view features for fusion processing to reduce the lane line search space and improve detection accuracy.

Benefits of technology

It achieves high efficiency, accuracy and robustness of lane line detection, significantly reduces the amount of calculation and improves detection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675133A
    Figure CN118675133A
Patent Text Reader

Abstract

The invention discloses a lane line detection method based on prior guidance, and the method comprises the steps: carrying out the matching filtering according to a plurality of predefined 3D anchor points in combination with the features of a front view image shot by a camera, and determining a part of 3D anchor points as prior anchor points; foresight feature information of a current foresight image is obtained in real time, and aerial view feature information of an aerial view corresponding to the current foresight image is obtained; projecting each prior anchor point to the current front view image and the corresponding aerial view, respectively sampling to obtain front view features and aerial view features in a projection area, and performing fusion processing to obtain fused lane line features; and performing prediction according to the fused lane line features corresponding to all the prior anchor points to obtain a lane line detection result. The invention further discloses a corresponding system, a storage medium and a vehicle. By implementing the method, the efficiency and precision of lane line detection can be improved, the calculation amount is reduced, and the method has excellent robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of lane line visual perception technology in autonomous driving, and in particular to a lane line detection method, system, storage medium and vehicle based on priori guidance. Background Art

[0002] 3D lane detection is crucial for reliable and stable autonomous driving systems and has been rapidly developed recently. The front view (FV) is an image captured from the front onboard camera of the autonomous vehicle. These images contain information about the road ahead, lane lines, traffic signs, and other potential obstacles. In 3D lane detection, the front view (FV) image is the input of the algorithm. By processing and analyzing these images, the algorithm aims to identify the lane lines in the image and estimate the position and shape of these lane lines in three-dimensional space.

[0003] As a basic module in autonomous driving systems, robust lane detection has received extensive attention and research, and has made unprecedented progress. However, the forward-view (FV) lane detection model can only provide lane prediction results in 2D image space and cannot be directly used in complex real-world scenes. 3D lane detection is the main direction to solve the above problems. It aims to build a model that extracts lane features from monocular 2D images and then detects lanes in the ground coordinate system.

[0004] There are two main types of existing 3D lane detection methods: methods based on Bird's-Eye-View (BEV) features and methods based on FV features. Among them, the method based on BEV features needs to use Inverse Perspective Mapping (IPM) to convert FV features into BEV space features. Although it has better geometric translation invariance, it cannot be applied to uphill and downhill scenes due to the flat ground assumption of IPM.

[0005] The FV feature-based method avoids the IPM view conversion process and predicts 3D lanes directly in the FV space by defining anchors in the 3D space, which has a simpler structure. However, since FV images are two-dimensional images captured by on-board cameras, they have perspective geometric distortion with the 3D space. This means that the lane lines in the FV image may appear to be deformed due to the perspective effect and deviate from the actual 3D space position. To solve this problem, existing methods usually require the design of extremely dense anchors to cover possible lane line positions. However, this approach may lead to confusion in the representation of lane lines because there may be overlap and interference between a large number of anchor points. Therefore, the existing technology has the shortcomings of low efficiency, poor accuracy and large amount of calculation. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a lane line detection method, system, storage medium and vehicle based on prior guidance, which can improve the efficiency and accuracy of lane line detection, reduce the amount of calculation, and have excellent robustness.

[0007] As one aspect of the present invention, a lane line detection method based on prior guidance is provided, characterized in that it includes the steps of:

[0008] According to the predefined multiple 3D anchor points in the 3D space for representing the lane lines, matching filtering is performed in combination with the features of the front view image captured by the camera, and some of the 3D anchor points are determined as prior anchor points;

[0009] Obtaining in real time the front-view feature information of the current front-view image, and obtaining the bird's-eye view feature information of the bird's-eye view corresponding to the current front-view image;

[0010] Projecting each prior anchor point onto the current front-view image and the corresponding bird's-eye view image, sampling the front-view features and the bird's-eye view features in the projection area, respectively, and fusing the front-view features and the bird's-eye view features to obtain fused lane line features;

[0011] The lane line detection result is obtained based on the fused lane line features corresponding to all prior anchor points.

[0012] Among them, according to a plurality of predefined 3D anchor points for representing lane lines in the 3D space, matching and filtering are performed in combination with the features of the front view image captured by the camera, and some of the 3D anchor points are determined as prior anchor points, further comprising:

[0013] Predefine a plurality of 3D anchor points for representing lane lines and evenly distributed in the 3D space, and project the plurality of 3D anchor points from the 3D space to the 2D space;

[0014] Inputting a front view image captured by a vehicle-mounted camera into a predefined convolutional neural network to obtain a lane line feature map of the front view image;

[0015] According to the regional range of each 3D anchor point projected into the 2D space, the local features in the matching range are obtained by matching with the lane feature map, and the local features are calculated by the classification head to obtain the corresponding lane classification probability value;

[0016] The lane line classification probability value corresponding to each 3D anchor point is compared with a preset threshold, and all 3D anchor points whose comparison results are greater than the threshold are determined as prior anchor points.

[0017] The method of obtaining the front view feature information of the current front view image in real time and obtaining the bird's-eye view feature information of the bird's-eye view image corresponding to the current front view image includes:

[0018] Extracting forward-looking features from a forward-looking image captured by a vehicle-mounted camera using an FV encoder; the FV encoder comprises a backbone block, a converter layer, and a linear projection layer, and the forward-looking features at least comprise context features;

[0019] The forward-looking features are converted from the camera coordinate system of the camera to the ground coordinate system to obtain the bird's-eye view. A BEV encoder with multiple pyramid layers is used to merge features of different scales through convolution blocks to obtain the bird's-eye view feature information in the bird's-eye view.

[0020] The method further includes projecting each prior anchor point onto the current front view image and the corresponding bird's-eye view image, sampling to obtain front view features and bird's-eye view features in the projection area, and fusing the front view features and bird's-eye view features to obtain fused lane line features.

[0021] Project each prior anchor point into the current front-view space and the bird's-eye view space respectively;

[0022] At the projection points in the forward-view space and the bird's-eye view space, features are sampled from the corresponding encoders using bilinear interpolation, including sampling forward-view features from the output feature map of the FV encoder and sampling bird's-eye view features from the output feature map of the BEV encoder;

[0023] The sampled forward-looking features and bird's-eye-view features are converted into channel dimensions and merged using a fusion module to obtain fused lane line features.

[0024] Among them, the lane line detection results are obtained by predicting the fused lane line features corresponding to all prior anchor points, including:

[0025] Classification and regression prediction are performed based on the fused lane line features corresponding to all prior anchor points to obtain a lane line detection result, which at least includes the accurate position and shape of the lane line.

[0026] Accordingly, another aspect of the present invention further provides a lane line detection system based on a priori guidance, which at least includes:

[0027] A priori anchor point obtaining unit is used to perform matching filtering based on a plurality of predefined 3D anchor points for representing lane lines in the 3D space in combination with features of the front view image captured by the camera, and determine some of the 3D anchor points as priori anchor points;

[0028] A classification feature information obtaining unit, used to obtain in real time the front view feature information of the current front view image, and to obtain the bird's-eye view feature information of the bird's-eye view image corresponding to the current front view image;

[0029] a sampling and fusion processing unit, configured to project each prior anchor point onto the current front-view image and the corresponding bird's-eye view image, sample the front-view features and the bird's-eye view features in the projection area, and fuse the front-view features and the bird's-eye view features to obtain fused lane line features;

[0030] The detection result obtaining unit is used to obtain the lane line detection result according to the fused lane line features corresponding to all the prior anchor points.

[0031] Wherein, the prior anchor point obtaining unit further comprises:

[0032] An anchor point projection unit, used to predefine a plurality of 3D anchor points for representing lane lines and evenly distributed in the 3D space, and project the plurality of 3D anchor points from the 3D space to the 2D space;

[0033] A lane feature acquisition unit, used to input a front view image captured by a vehicle-mounted camera into a predefined convolutional neural network to obtain a lane feature map of the front view image;

[0034] A classification probability obtaining unit is used to obtain local features in the matching range according to the area range of each 3D anchor point projected into the 2D space and match it with the lane feature map, and use a classification head to calculate the local features to obtain the corresponding lane classification probability value;

[0035] The priori anchor point determination unit is used to compare the lane line classification probability value corresponding to each 3D anchor point with a preset threshold, and determine all 3D anchor points whose comparison results are greater than the threshold as priori anchor points.

[0036] Wherein, the classification feature information obtaining unit includes:

[0037] An FV encoder is used to extract forward-looking features from a forward-looking image captured by a vehicle-mounted camera; the FV encoder includes a backbone block, a converter layer, and a linear projection layer, and the forward-looking features include at least context features;

[0038] The BEV encoder is used to convert the forward-looking features from the camera coordinate system of the camera to the ground coordinate system to obtain a bird's-eye view, and uses its multiple pyramid layers to merge features of different scales through convolution blocks to obtain the bird's-eye view feature information in the bird's-eye view.

[0039] Wherein, the sampling fusion processing unit further includes:

[0040] A projection unit, used to project each prior anchor point into the current front view space and the bird's-eye view space respectively;

[0041] A sampling unit for sampling features from corresponding encoders at projection points in the forward-view space and the bird's-eye view space using bilinear interpolation, including sampling forward-view features from an output feature map of the FV encoder and sampling bird's-eye view features from an output feature map of the BEV encoder;

[0042] The fusion unit is used to convert the sampled forward-looking features and bird's-eye view features into channel dimensions, and use the fusion module to merge them to obtain the fused lane line features.

[0043] Accordingly, as another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned method are implemented.

[0044] Correspondingly, as another aspect of the present invention, a vehicle is provided, which has a lane line detection device, in which the lane line detection system based on prior guidance as described above is deployed.

[0045] Implementing the embodiments of the present invention has the following beneficial effects:

[0046] The present invention proposes a lane line detection method, system, storage medium and vehicle based on prior guidance. By matching and filtering based on predefined 3D anchor points and the features of the front-view image taken by the camera, some of the 3D anchor points are determined as prior anchor points; each prior anchor point is then projected onto the current front-view image and the corresponding bird's-eye view, and the front-view features and bird's-eye features in the projection area are sampled and obtained respectively, and the front-view features and bird's-eye features are fused to obtain fused lane line features; prediction is performed based on the fused lane line features corresponding to all prior anchor points to obtain lane line detection results. Lane line detection can be performed quickly and accurately;

[0047] Since 2D lane line prediction can provide a strong prior for whether a lane line exists, in the method of the present invention, FV features are used to generate sparse prior anchor points obtained by filtering with potential lane lines in 2D space. These dynamic prior anchor points help to achieve different lane line representations and effectively improve detection efficiency and detection accuracy by reducing the lane line search space;

[0048] At the same time, in the present invention, by mapping in FV and BEV space according to each prior anchor point and performing fusion processing, accurate lane line detection can be achieved by using the contextual semantic information from FV and the geometric structure information from BEV. While reducing the lane search space through the prior anchor point, the complexity of the downstream lane line detection module is significantly reduced, the amount of calculation is reduced, and it has superior performance and excellent robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For a person skilled in the art, other drawings obtained based on these drawings still belong to the scope of the present invention without creative labor.

[0050] Figure 1 A schematic diagram of the main process of an embodiment of a lane line detection method based on prior guidance provided by the present invention;

[0051] Figure 2 for Figure 1 A more detailed algorithm flow chart;

[0052] Figure 3 A schematic diagram of the main structure of the PVALan network model involved in the method provided by the present invention;

[0053] Figure 4 for Figure 3 The corresponding more detailed structural diagram;

[0054] Figure 5 for Figure 4 Schematic diagram of the network model structure involving the prior anchor point part;

[0055] Figure 6 It is a schematic diagram of the principle of projecting the prior anchor point in FV and BEV involved in the present invention;

[0056] Figure 7 A schematic structural diagram of an embodiment of a lane line detection system based on a priori guidance according to the present invention;

[0057] Figure 8 for Figure 7 Schematic diagram of the structure of the prior anchor point acquisition unit;

[0058] Fig. 9 for Figure 7 A structural diagram of a classification feature information obtaining unit;

[0059] Fig.10 for Figure 7 Schematic diagram of the structure of the sampling fusion processing unit in . DETAILED DESCRIPTION

[0060] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0061] like Figure 1 FIG. 1 is a schematic diagram showing the main process of an embodiment of a lane line detection method based on a priori guidance provided by the present invention. Figures 2 to 6 As shown, in this embodiment, the method at least includes the following steps:

[0062] Step S10, performing matching filtering based on a plurality of predefined 3D anchor points for representing lane lines in the 3D space in combination with features of the front view image captured by the camera, and determining some of the 3D anchor points as prior anchor points;

[0063] Step S11, obtaining in real time the front view feature information of the current front view image, and obtaining the bird's-eye view feature information of the bird's-eye view corresponding to the current front view;

[0064] Step S12, projecting each prior anchor point onto the current front view image and the corresponding bird's-eye view image, sampling to obtain front view features and bird's-eye view features in the projection area, and fusing the front view features and bird's-eye view features to obtain fused lane line features;

[0065] Step S13, predicting based on the fused lane line features corresponding to all prior anchor points to obtain lane line detection results.

[0066] The following will be combined Figures 2 to 6 Each step of the present invention is described.

[0067] In an embodiment of the present invention, the method of the present invention is implemented by constructing a 3D lane line detection model (PVALane) based on prior guidance, such as Figure 3 , Figure 4 As shown in the figure, the overall architecture of the PVALanes model mainly includes the prior anchor network (PAN), FV encoder, BEV encoder and view-independent feature alignment module (PVFA).

[0068] Among them, at the top of the backbone block, a prior anchor network (PAN) is set, which can project the predefined 3D anchor into the 2D space to calculate the probability of whether there is an object (2D detection result), so as to filter out the 3D anchor that does not cover the potential lane according to the probability score, and the result is called the prior anchor. The prior anchor provides prior guidance information for 3D lane line detection, which can effectively use accurate 2D predictions to reduce the 3D lane search space and further improve the detection accuracy of PVALane. In addition, PAN only requires a few additional fully connected layers and processes directly on the FV features, so it is easy to deploy and can be trained in an end-to-end manner using the Adam optimization algorithm. In one example, its learning rate is set to 2e-4.

[0069] The FV encoder is mainly used to extract forward-looking features from the forward-looking image captured by the vehicle-mounted camera; the FV encoder includes a backbone block, a transformer layer, and a linear projection layer, and the forward-looking features include at least context features and texture features (e.g., roadside and nearby lane lines); the backbone block can use ResNet-50 as a CNN backbone network and use ImageNet pre-training parameters;

[0070] A BEV encoder is used to convert the front view feature from the camera coordinate system of the camera to the ground coordinate system to obtain a bird's-eye view image, and use its multiple pyramid layers to merge features of different scales through convolution blocks to obtain bird's-eye view feature information in the bird's-eye view image, wherein the bird's-eye view feature information includes geometric features (e.g., parallelism). In one embodiment, a pyramid layer structure such as a 4-layer structure may be used;

[0071] The view-independent feature alignment module (PVFA) is used to project the prior anchor points into the FV and BEV spaces, obtain their corresponding features through sampling, and fuse them together. According to the FV features and bird's-eye view features obtained through the encoder, the prior anchor points are projected into the corresponding feature views for sampling to obtain the sampling features corresponding to the anchor points, and then aligned in the shared sampling feature space. Finally, the aligned features can be passed to the prediction head to obtain the 3D lane line prediction results.

[0072] It can be understood that since the previous anchor points are defined in 3D space and are very sparse, they can effectively associate FV and BEV sampling features, allowing PVFA to exploit different view properties (such as semantic and geometric information) and make lane detection more robust. In addition, this shared sampling feature space decouples downstream lane detection from the view space, making PVALane essentially view-independent and extensible to multi-view or cross-view scenarios.

[0073] Based on the above network model structure, more specifically, in the present invention, in step S10, according to a plurality of predefined 3D anchor points located in the 3D space for representing lane lines, matching filtering is performed in combination with the features of the front view image captured by the camera, and some of the 3D anchor points are determined as prior anchor points, further comprising:

[0074] Step S100, predefining a plurality of 3D anchor points for representing lane lines and evenly distributed in the 3D space, and projecting the plurality of 3D anchor points from the 3D space to the 2D space;

[0075] Although 2D features are not directly suitable for geometric orientation tasks due to perspective geometric distortion, they can be used to provide prior guidance for 3D lane detection. On the one hand, the initial FV features contain rich semantic and contextual information. On the other hand, it does not require view conversion, which enables fast generation of prior information, significantly reducing the complexity of the lane detection task. A visual explanation of the prior anchor network can be found in Figure 5 shown.

[0076] It is understandable that the size of the 3D anchor point (such as length and width) can be set according to the size of the lane line in the map data. The direction of the 3D anchor point should be consistent with the direction of the lane line. On a straight road section, the direction of the 3D anchor point is usually the same as the direction of the vehicle's travel; at a curve, the direction of the 3D anchor point needs to be adjusted according to the curvature of the curve. Assume a simplified scenario where the road is straight and there is no complex structure. In this case, for each lane, a 3D anchor point can be set every 10 meters along the vehicle's travel path. The width of these 3D anchor points should match the actual width of the lane, for example, set to 3.5 meters. At the same time, taking into account the complex structures of the road such as bifurcations and merging, additional 3D anchor points can be set at these locations to more accurately detect the lane lines in these areas.

[0077] In a specific example, 3D anchor points representing lane lines are predefined in the ground coordinate system to better adapt to the shape of 3D lane lines. Specifically, given a fixed set of y coordinates The jth 3D anchor point: Using two vectors (x j , z j ) to define a 3D lane line, where are the horizontal and vertical offsets relative to the Npth predefined point.

[0078] In order to obtain the probability value of whether a 3D anchor point exists in a lane line, each 3D anchor point is projected onto the FV feature The plane is used as 2D anchor points to extract their corresponding features.

[0079] Specifically, let the jth 3D anchor be Aj =(x j ,y,z j ), using the following projection formula:

[0080]

[0081] in, is the camera intrinsic parameter matrix, is the transformation matrix from the ground coordinate system to the camera coordinate system, is the depth value of the corresponding pixel in the camera coordinate system.

[0082] Step S101, the front view image captured by the vehicle camera is input into a predefined convolutional neural network (i.e. Figure 3 A lane line feature map of the front view image is obtained;

[0083] Step S102, according to the area range of each 3D anchor point projected into the 2D space, and matching with the lane line feature map, obtain local features in the matching range, and use the classification head to calculate the local features to obtain the corresponding lane line classification probability value;

[0084] like Figure 6 As shown, in the above example, the projection formula in formula (1) is By using the FV feature F fv The corresponding local features are obtained by sampling

[0085]

[0086] Due to local characteristics Contains the semantic features of the corresponding 3D anchor points, which can be Further, a main classification head is used to obtain the corresponding lane line classification probability value. Here Nc represents the number of lane line categories. Then, the probability value of whether the lane line exists is calculated based on the classification score

[0087] Among them, c n ∈{0, 1, ....N c}, 0 represents the category of non-lane line, is the indicator function, is the softmax function. Each value in represents the probability of whether there is a lane line in the corresponding 3D anchor point.

[0088] Step S103 : comparing the lane line classification probability value corresponding to each 3D anchor point with a preset threshold, and determining all 3D anchor points whose comparison result is greater than the threshold as prior anchor points.

[0089] In this step, in order to select high-quality 3D anchor points as prior anchor points, it is only necessary to filter out low-probability 3D anchor points according to the threshold τ:

[0090]

[0091] Among them, j (·) represents satisfaction j. The prior indication provided by this efficient 2D prediction head can significantly reduce the complexity of 3D lane line detection. This allows the model to prioritize the more challenging lane line regression task. In an example, the filtering threshold τ is set to 0.2 and the maximum number of prior anchor points is set to 1000;

[0092] It can be understood that in order to eliminate the impact of imbalance of positive and negative samples caused by perspective geometric distortion, in this embodiment, a focal loss function can be used for classification training:

[0093]

[0094] in, is the predicted probability value of the current category. α and γ are the hyperparameters of focal loss, which can be set to 0.25 and 2 respectively in the specific example.

[0095] After obtaining the prior anchor points, in an embodiment of the present invention, in order to utilize the semantic and geometric information present in FV and BEV, features are learned from both views simultaneously. Considering the different view representations of FV and BEV features, the model contains two specialized encoders to independently capture the specific information of each view.

[0096] In step S11, obtaining the front view feature information of the current front view image in real time, and obtaining the bird's eye view feature information of the bird's eye view (BEV) corresponding to the current front view, including:

[0097] Step S110, using an FV encoder to extract front-view features from the front-view image captured by the vehicle-mounted camera; the FV encoder includes a backbone block, a converter layer, and a linear projection layer, and the front-view features at least include context features;

[0098] Specifically, for each FV feature An FV encoder with projection and transformer layers is used to capture global semantic and contextual information:

[0099]

[0100] where ε(·) represents the converter layer, Represents linear projection. Such an encoder enables the model to use more extensive contextual information and improve its understanding of the overall scene by leveraging high-level semantic information.

[0101] Step S111, converting the front-view features from the camera coordinate system of the camera to the ground coordinate system to obtain a bird's-eye view, using a BEV encoder with multiple pyramid layers, merging BEV features of different scales through convolution blocks, and obtaining bird's-eye view feature information in the bird's-eye view.

[0102] Specifically, in order to fully exploit the geometric properties of the bird's-eye view (e.g., translation invariance), a geometry-aware BEV encoder can be adopted in the BEV space. Specifically, given the multi-scale FV features One of the coordinates in is (u f , v f ) Click p fv , point p is transformed into fv Mapped to the corresponding point p in BEV space bev (x b ,y b ):

[0103]

[0104] Among them, S f→b is the ratio matrix between the front view and BEV, is the homography transformation matrix from the camera coordinate system to the ground coordinate system. In the BEV encoder, let the BEV features corresponding to two adjacent pyramid layers be and Previous layer Through the downsampling layer After and after layer Merge together. Then pass through the convolution block The geometric information is propagated to higher layers in a coarse-to-fine manner. The process is defined as:

[0105]

[0106] in, It is a concat operation. In the bird's-eye view, sharing knowledge at different scales can enhance the robustness of the model in dealing with complex scenes.

[0107] In an embodiment of the present invention, the step S12, projecting each prior anchor point onto the current front view image and the corresponding bird's-eye view image, sampling to obtain front view features and bird's-eye view features in the projection area, respectively, and fusing the front view features and bird's-eye view features to obtain fused lane line features, further includes:

[0108] Step S120, projecting each prior anchor point into the current front view space and the bird's-eye view space respectively;

[0109] It can be understood that by utilizing the prior anchor points obtained by the PAN network through the aforementioned steps, a prior-guided view-independent feature alignment module (PVFA) is further adopted to effectively align and merge the rich information from two views in the shared sampling space.

[0110] Specifically, let the jth prior anchor be Project it into FV and BEV space respectively, as Figure 5 shown.

[0111] Step S121, at the projection points in the forward-view space and the bird's-eye view space, sampling features from the corresponding encoders using bilinear interpolation, including sampling forward-view features from the output feature map of the FV encoder, and sampling bird's-eye view features from the output feature map of the BEV encoder;

[0112] Specifically, we can use Represents a priori anchor point The projection in FV is shown in formula (2). Then, at the projection point The output features of the FV encoder are obtained using bilinear interpolation Sampling FVanchor features:

[0113]

[0114] At the same time, the projection of BEV is defined as The sampling process of BEV spatial features is as follows:

[0115]

[0116] Step S122, convert the sampled forward-view features and bird's-eye view features into channel dimensions, and use a fusion module to merge them to obtain fused lane line features.

[0117] It is understandable that due to and are sampled using a unified prior anchor projection, so they can be considered view-independent and can be easily aligned using the prior anchor. Specifically, and The Np points in are converted to channel dimensions and fused using the fusion module Φ fus (·) Combine the local features in FV and BEV, and the fusion module is defined as follows:

[0118]

[0119] in, is a flattening operation. The fused enhanced features contain different view information, which enables the network to infer the 3D structure in the road scene. In addition, aligning FV and BEV features using sparse prior anchors significantly reduces the association space between them, thereby improving model efficiency.

[0120] In an embodiment of the present invention, the step S13, performing prediction based on the fused lane line features corresponding to all prior anchor points to obtain a lane line detection result, includes:

[0121] Classification and regression prediction are performed based on the fused lane line features corresponding to all prior anchor points to obtain a lane line detection result, which at least includes the accurate position and shape of the lane line.

[0122] Specifically, for the fusion feature corresponding to the jth prior anchor point, a classification head and a regression head can be used to predict the probability value of the lane line x-axis offset The offset of the z-axis And the visibility of each point Based on prior anchor points To define the 3D candidate lane line: P j =(p j , x j +Δx j ,y,z j +Δz j ,vis j ).

[0123] Let N pos The positive candidate lane lines are Its corresponding truth value is Among them G i for The loss function is:

[0124]

[0125] In order to further enhance the expression of lane lines by FV and BEV, the segmentation loss can be introduced, inspired by LaneNet. The overall loss function is defined as:

[0126]

[0127] Among them, λ pri and λ seg They are the weights of classification loss and segmentation loss in the total loss. In the specific example, they can be set to 1.0 and 0.1 respectively.

[0128] It can be understood that in the method of the present invention, 2D prior position information is used to guide the precise detection of 3D lane lines. Since 2D lane line prediction can provide a strong prior for whether lane lines exist, PVALane uses FV features to generate sparse prior anchors with potential lane lines in 2D space. These dynamic prior anchors help PVALane to achieve different lane line representations, and effectively improve the accuracy of PVALane due to the reduction of lane line search space. In addition, by using these prior anchors to represent lane lines in FV and BEV spaces respectively, the semantic information from FV features and the geometric information of BEV features can be effectively aligned and merged. Compared with existing methods, the method of the present invention has superior performance and excellent robustness.

[0129] like Figure 7 FIG. 1 is a schematic diagram showing a structure of an embodiment of a lane line detection system based on a priori guidance provided by the present invention. Figures 8 to 10 As shown, in this embodiment, the 3D lane line detection system 1 based on prior guidance at least includes:

[0130] The prior anchor point obtaining unit 10 is used to perform matching filtering based on a plurality of predefined 3D anchor points for representing lane lines in the 3D space in combination with features of the front view image captured by the camera, and determine some of the 3D anchor points as prior anchor points;

[0131] The classification feature information obtaining unit 11 is used to obtain the front view feature information of the current front view image in real time, and obtain the bird's-eye view feature information of the bird's-eye view image corresponding to the current front view image;

[0132] A sampling and fusion processing unit 12 is used to project each prior anchor point onto the current front view image and the corresponding bird's-eye view image, sample and obtain the front view features and the bird's-eye view features in the projection area, and fuse the front view features and the bird's-eye view features to obtain the fused lane line features;

[0133] The detection result obtaining unit 13 is used to obtain the lane line detection result according to the fused lane line features corresponding to all the priori anchor points.

[0134] like Figure 8 As shown, in a specific example, the prior anchor point obtaining unit 10 further includes:

[0135] An anchor point projection unit 100, used to predefine a plurality of 3D anchor points for representing lane lines and evenly distributed in the 3D space, and project the plurality of 3D anchor points from the 3D space to the 2D space;

[0136] The lane feature acquisition unit 101 is used to input the front view image taken by the vehicle-mounted camera into a predefined convolutional neural network to obtain a lane feature map of the front view image;

[0137] The classification probability obtaining unit 102 is used to obtain local features in the matching range according to the area range of each 3D anchor point projected into the 2D space and match it with the lane feature map, and use the classification head to calculate the local features to obtain the corresponding lane classification probability value;

[0138] The priori anchor point determination unit 103 is used to compare the lane line classification probability value corresponding to each 3D anchor point with a preset threshold, and determine all 3D anchor points whose comparison results are greater than the threshold as priori anchor points.

[0139] like Fig. 9 As shown, in a specific example, the classification feature information obtaining unit 11 includes:

[0140] The FV encoder 110 is used to extract forward-looking features from the forward-looking image captured by the vehicle-mounted camera; the FV encoder includes a backbone block, a converter layer, and a linear projection layer, and the forward-looking features include at least context features;

[0141] The BEV encoder 111 is used to convert the forward-looking features from the camera coordinate system of the camera to the ground coordinate system to obtain a bird's-eye view (BEV), and use its multiple pyramid layers to merge features of different scales through convolution blocks to obtain bird's-eye view feature information in the bird's-eye view.

[0142] like Fig.10 As shown, in a specific example, the sampling fusion processing unit 12 further includes:

[0143] A projection unit 120, configured to project each prior anchor point into a current front view space and a bird's eye view space respectively;

[0144] A sampling unit 121 is used to sample features from corresponding encoders at projection points in the forward-view space and the bird's-eye view space using bilinear interpolation, including sampling forward-view features from an output feature map of the FV encoder and sampling bird's-eye view features from an output feature map of the BEV encoder;

[0145] The fusion unit 122 is used to convert the sampled forward-view features and bird's-eye view features into channel dimensions, and use a fusion module to merge them to obtain fused lane line features.

[0146] For more details, please refer to and combine the above Figures 1 to 6 The description is not repeated here.

[0147] As another aspect of the present invention, a computer-readable storage medium is further provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figures 1 to 6 For more details, please refer to and combine with the above Figures 1 to 6 The description is not repeated here.

[0148] As another aspect of the present invention, a vehicle is provided, having a lane line detection device, in which the lane line detection device is deployed as described above. Figures 7 to 10 For more details, please refer to and combine the above Figures 7 to 10 The description is not repeated here.

[0149] Implementing the embodiments of the present invention has the following beneficial effects:

[0150] The present invention proposes a lane line detection method, system, storage medium and vehicle based on prior guidance. By matching and filtering based on predefined 3D anchor points and the features of the front-view image taken by the camera, some of the 3D anchor points are determined as prior anchor points; each prior anchor point is then projected onto the current front-view image and the corresponding bird's-eye view, and the front-view features and bird's-eye features in the projection area are sampled and obtained respectively, and the front-view features and bird's-eye features are fused to obtain fused lane line features; prediction is performed based on the fused lane line features corresponding to all prior anchor points to obtain lane line detection results. Lane line detection can be performed quickly and accurately;

[0151] Since 2D lane line prediction can provide a strong prior for whether a lane line exists, in the method of the present invention, FV features are used to generate sparse prior anchor points obtained by filtering with potential lane lines in 2D space. These dynamic prior anchor points help to achieve different lane line representations and effectively improve detection efficiency and detection accuracy by reducing the lane line search space;

[0152] At the same time, in the present invention, by mapping in FV and BEV space according to each prior anchor point and performing fusion processing, accurate lane line detection can be achieved by using the contextual semantic information from FV and the geometric structure information from BEV. While reducing the lane search space through the prior anchor point, the complexity of the downstream lane line detection module is significantly reduced, the amount of calculation is reduced, and it has superior performance and excellent robustness.

[0153] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0154] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0155] The above disclosure is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A lane line detection method based on prior guidance, characterized in that: Includes steps: According to a plurality of predefined 3D anchor points in the 3D space for representing lane lines, matching filtering is performed in combination with the features of the front view image captured by the camera, and some of the 3D anchor points are determined as prior anchor points; Obtaining in real time the front-view feature information of the current front-view image, and obtaining the bird's-eye view feature information of the bird's-eye view corresponding to the current front-view image; Projecting each prior anchor point onto the current front-view image and the corresponding bird's-eye view image, sampling the front-view features and the bird's-eye view features in the projection area, respectively, and fusing the front-view features and the bird's-eye view features to obtain fused lane line features; The lane line detection result is obtained by predicting the fused lane line features corresponding to all prior anchor points.

2. The method according to claim 1, characterized in that According to a plurality of predefined 3D anchor points for representing lane lines in the 3D space, matching and filtering are performed in combination with features of the front view image captured by the camera, and some of the 3D anchor points are determined as prior anchor points, further comprising: Predefine a plurality of 3D anchor points for representing lane lines and evenly distributed in the 3D space, and project the plurality of 3D anchor points from the 3D space to the 2D space; Inputting a front view image captured by a vehicle-mounted camera into a predefined convolutional neural network to obtain a lane line feature map of the front view image; According to the regional range of each 3D anchor point projected into the 2D space, the local features in the matching range are obtained by matching with the lane feature map, and the local features are calculated by the classification head to obtain the corresponding lane classification probability value; The lane line classification probability value corresponding to each 3D anchor point is compared with a preset threshold, and all 3D anchor points whose comparison results are greater than the threshold are determined as prior anchor points.

3. The method according to claim 2, characterized in that Obtaining the front view feature information of the current front view image in real time, and obtaining the bird's-eye view feature information of the bird's-eye view image corresponding to the current front view, including: Extracting forward-looking features from a forward-looking image captured by a vehicle-mounted camera using an FV encoder; the FV encoder comprises a backbone block, a converter layer, and a linear projection layer, and the forward-looking features at least comprise context features; The forward-looking features are converted from the camera coordinate system of the camera to the ground coordinate system to obtain a bird's-eye view. A bird's-eye view (BEV) encoder with multiple pyramid layers is adopted to merge BEV features of different scales through convolution blocks to obtain the bird's-eye feature information in the bird's-eye view.

4. The method according to claim 3, characterized in that Projecting each prior anchor point onto the current front-view image and the corresponding bird's-eye view image, sampling the front-view features and the bird's-eye view features in the projection area, respectively, and fusing the front-view features and the bird's-eye view features to obtain fused lane line features, further comprising: Project each prior anchor point into the current front-view space and the bird's-eye view space respectively; At the projection points in the forward-view space and the bird's-eye view space, features are sampled from the corresponding encoders using bilinear interpolation, including sampling forward-view features from the output feature map of the FV encoder and sampling bird's-eye view features from the output feature map of the BEV encoder; The sampled forward-view features and bird's-eye view features are converted into channel dimensions and merged using a fusion module to obtain fused lane line features.

5. The method according to claim 4, characterized in that The lane line detection results are obtained by predicting the fused lane line features corresponding to all prior anchor points, including: Classification and regression prediction are performed based on the fused lane line features corresponding to all prior anchor points to obtain a lane line detection result, which at least includes the accurate position and shape of the lane line.

6. A lane line detection system based on prior guidance, characterized in that: At least: A priori anchor point obtaining unit is used to perform matching filtering based on a plurality of predefined 3D anchor points for representing lane lines in the 3D space in combination with features of the front view image captured by the camera, and determine some of the 3D anchor points as priori anchor points; A classification feature information obtaining unit, used to obtain in real time the front view feature information of the current front view image, and to obtain the bird's-eye view feature information of the bird's-eye view image corresponding to the current front view image; a sampling and fusion processing unit, configured to project each prior anchor point onto the current front-view image and the corresponding bird's-eye view image, sample the front-view features and the bird's-eye view features in the projection area, and fuse the front-view features and the bird's-eye view features to obtain fused lane line features; The detection result obtaining unit is used to obtain the lane line detection result according to the fused lane line features corresponding to all the prior anchor points.

7. The system according to claim 6, characterized in that The prior anchor point obtaining unit further comprises: An anchor point projection unit, used to predefine a plurality of 3D anchor points for representing lane lines and evenly distributed in the 3D space, and project the plurality of 3D anchor points from the 3D space to the 2D space; A lane feature acquisition unit, used to input a front view image captured by a vehicle-mounted camera into a predefined convolutional neural network to obtain a lane feature map of the front view image; A classification probability obtaining unit is used to obtain local features in the matching range according to the area range of each 3D anchor point projected into the 2D space and match it with the lane feature map, and use a classification head to calculate the local features to obtain the corresponding lane classification probability value; The priori anchor point determination unit is used to compare the lane line classification probability value corresponding to each 3D anchor point with a preset threshold, and determine all 3D anchor points whose comparison results are greater than the threshold as priori anchor points.

8. The system according to claim 7, characterized in that The classification feature information obtaining unit includes: An FV encoder is used to extract forward-looking features from a forward-looking image captured by a vehicle-mounted camera; the FV encoder includes a backbone block, a converter layer, and a linear projection layer, and the forward-looking features include at least context features; The BEV encoder is used to convert the forward-looking features from the camera coordinate system of the camera to the ground coordinate system to obtain a bird's-eye view, and uses its multiple pyramid layers to merge features of different scales through convolution blocks to obtain the bird's-eye view feature information in the bird's-eye view.

9. The system according to claim 8, characterized in that The sampling fusion processing unit further comprises: A projection unit, used to project each prior anchor point into the current front view space and the bird's-eye view space respectively; A sampling unit for sampling features from corresponding encoders at projection points in the forward-view space and the bird's-eye view space using bilinear interpolation, including sampling forward-view features from an output feature map of the FV encoder and sampling bird's-eye view features from an output feature map of the BEV encoder; The fusion unit is used to convert the sampled forward-looking features and bird's-eye view features into channel dimensions, and use the fusion module to merge them to obtain the fused lane line features.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

11. A vehicle having a lane line detection device, characterized in that: The lane line detection device is equipped with a lane line detection system based on a priori guidance as described in any one of claims 6 to 9.

Citation Information

Cited By

  • Online vector map construction method and device, storage medium and program product

    CN120506935A