Lane line identification method and device, equipment and storage medium

Through the lane line recognition model based on segmentation network, the problem of low accuracy of existing lane line detection technology in complex environments is solved, achieving higher recognition accuracy and robustness, strong adaptability, and reducing model deployment space. of occupation.

CN118840720APending Publication Date: 2024-10-25NEUSOFT REACH AUTOMOBILE TECH (SHENYANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410823234.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

Existing lane line detection technology is not very accurate and cannot meet the needs of advanced driving assistance systems and advanced driving systems. The recognition effect is particularly poor in complex road environments and lighting changes.

Method used

A lane line recognition model based on segmentation network is used to obtain road images through vehicle sensors, and the feature extraction layer, encoding and decoding layer and processing layer are used to identify and calculate lane line parameters. The segmentation network only participates in the model training process and does not participate in the application process. Improve the generalization ability and robustness of the model.

Benefits of technology

In complex and changeable road environments, the accuracy and robustness of lane line recognition are improved, the model deployment space is reduced, and the adaptability to occlusion and illumination changes is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118840720A_ABST
    Figure CN118840720A_ABST
Patent Text Reader

Abstract

The invention provides a lane line identification method and device, equipment and a storage medium. The method comprises the following steps: acquiring a road image by using a vehicle-mounted sensor; inputting the road image into a lane line identification model to obtain lane line parameters; the lane line identification model is obtained based on auxiliary training of a segmentation network; the lane line identification model comprises a feature extraction layer, a coding and decoding layer and a processing layer; the feature extraction layer is used for extracting image features from the road image, the encoding and decoding layer is used for encoding and decoding the image features, and the processing layer is used for obtaining lane line parameters according to the encoded and decoded image features. Through auxiliary training of the segmentation network, the lane line identification model can learn richer feature representation, so that the method has better generalization ability under various road and environment conditions. And the identification accuracy of the lane line identification model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a lane line recognition method, device, equipment and storage medium. Background Art

[0002] Lane detection is a classic and important task in Advanced Driving Assistance System (ADAS) and Advanced Driving System (ADS). For ADAS and ADS, lane detection can provide core perception input for lane departure warning, lane center keeping, automatic lane change and traffic congestion assistance, and then realize assisted driving or automatic driving according to the relevant parameters of lane lines.

[0003] However, the current lane line detection accuracy is not high and cannot meet the needs of ADAS and ADS. Summary of the invention

[0004] In view of this, embodiments of the present application provide a lane line recognition method, device, equipment and storage medium, aiming to improve the accuracy of lane line detection.

[0005] In a first aspect, an embodiment of the present application provides a method for identifying a lane line, the method comprising:

[0006] Using vehicle-mounted sensors to obtain road images;

[0007] The road image is input into a lane line recognition model to obtain lane line parameters; the lane line recognition model is obtained based on segmentation network assisted training; the lane line recognition model includes a feature extraction layer, a coding and decoding layer and a processing layer; the feature extraction layer is used to extract image features from the road image, the coding and decoding layer is used to encode and decode the image features, and the processing layer is used to obtain the lane line parameters according to the image features after coding and decoding.

[0008] In a possible implementation, the training process of the lane line recognition model is:

[0009] Acquire a road sample image set and a sample label, wherein the road sample image set includes a plurality of road sample images, the road sample images include lane lines, and the sample label includes lane line parameters of the lane lines in the plurality of road sample images;

[0010] Inputting the road sample image into the feature extraction layer of the model to be trained to obtain sample image features;

[0011] Inputting the sample image features into a segmentation network to obtain sample image segmentation features;

[0012] The model to be trained is trained using the road sample image set and the sample labels, and the feature extraction layer of the model to be trained is corrected using the sample image segmentation features to obtain the lane line recognition model.

[0013] In a possible implementation, the road image includes a two-dimensional road image, and the step of acquiring the road image by using a vehicle-mounted sensor includes:

[0014] Acquiring the two-dimensional road image using a vehicle-mounted camera;

[0015] or,

[0016] The road image includes a three-dimensional road image, and the method of acquiring the road image by using a vehicle-mounted sensor includes:

[0017] The three-dimensional road image is acquired using a vehicle-mounted laser sensor.

[0018] In a possible implementation, the road image includes a two-dimensional road image and a three-dimensional road image;

[0019] Before inputting the road image into the lane line recognition model, the method further includes:

[0020] The road image is dimensionally aligned.

[0021] In a possible implementation, the encoding and decoding layer includes a Transformer encoder and a Transformer decoder.

[0022] In a second aspect, an embodiment of the present application provides a lane line detection device, the device comprising:

[0023] An acquisition module, used for acquiring road images using vehicle-mounted sensors;

[0024] The recognition module is used to input the road image into a lane line recognition model to obtain lane line parameters; the lane line recognition model is obtained based on segmentation network assisted training; the lane line recognition model includes a feature extraction layer, a coding and decoding layer and a processing layer; the feature extraction layer is used to extract image features from the road image, the coding and decoding layer is used to encode and decode the image features, and the processing layer is used to obtain the lane line parameters according to the image features after coding and decoding.

[0025] In a possible implementation, the training process of the lane line recognition model is:

[0026] Acquire a road sample image set and a sample label, wherein the road sample image set includes a plurality of road sample images, the road sample images include lane lines, and the sample label includes lane line parameters of the lane lines in the plurality of road sample images;

[0027] Inputting the road sample image into the feature extraction layer of the model to be trained to obtain sample image features;

[0028] Inputting the sample image features into a segmentation network to obtain sample image segmentation features;

[0029] The model to be trained is trained using the road sample image set and the sample labels, and the feature extraction layer of the model to be trained is corrected using the sample image segmentation features to obtain the lane line recognition model.

[0030] In one possible implementation, the processing layer includes a lane line classification header, a lane line equation parameter header, a lane line breakpoint header and a lane line end point header; the lane line parameters include a lane line type, a lane line equation parameter, a lane line breakpoint and a lane line end point.

[0031] In a possible implementation, the road image includes a two-dimensional road image or a three-dimensional road image; the acquisition module is specifically used to acquire the two-dimensional road image using a vehicle-mounted camera, or to acquire the three-dimensional road image using a vehicle-mounted laser sensor.

[0032] In a possible implementation, the road image includes a two-dimensional road image and a three-dimensional road image;

[0033] The device also includes a processing module, which is used to perform dimension alignment processing on the road image before inputting the road image into the lane line recognition model.

[0034] In a possible implementation, the encoding and decoding layer includes a Transformer encoder and a Transformer decoder.

[0035] In a third aspect, an embodiment of the present application provides a device, comprising a memory and a processor, wherein the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device performs the lane line recognition method described in any one of the first aspects above.

[0036] In a fourth aspect, an embodiment of the present application provides a computer storage medium, in which a code is stored. When the code is executed, the device executing the code implements the lane line recognition method described in any one of the first aspects above.

[0037] The embodiment of the present application provides a lane line recognition method, device, equipment and storage medium. During the driving process of the vehicle, the road image is obtained by the on-board sensor, and then the lane line recognition model is used to recognize the road image to obtain the lane line parameters. In the embodiment of the present application, the lane line recognition model is obtained based on the auxiliary training of the segmentation network. Through the auxiliary training of the segmentation network, the lane line recognition model can learn richer feature representations, so as to have better generalization ability under various road and environmental conditions. In addition, the segmentation network can help the lane line recognition model better understand the complex structure and background information in the road image, so that the lane line recognition model has stronger robustness to occlusion, illumination changes and other situations, and improves the accuracy of lane line recognition. In addition, the segmentation network only participates in the training process of the lane line recognition model, and does not participate in the application process of the lane line recognition model. That is to say, there is no need to integrate the segmentation network in the lane line recognition model to improve the recognition accuracy of the lane line recognition model, and can also reduce the deployment space occupied by the lane line recognition model. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A flowchart of a lane line recognition method provided in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of an application of a lane recognition model provided in an embodiment of the present application;

[0041] Figure 3 A schematic diagram of a lane recognition model training process provided in an embodiment of the present application;

[0042] Figure 4 A schematic diagram of the structure of a lane line recognition device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] Traditional lane recognition models usually use artificially set rules for lane recognition, which means that technicians need to design a series of rules to help the model recognize lanes, such as edge detection, color segmentation, line segment detection, etc. These rules may include features such as pixel color, brightness, texture, and geometric properties of lanes such as shape, length, width, etc. However, this method has some problems:

[0044] Lack of generalization: The artificial rules that traditional methods rely on are often only applicable to lane line recognition in specific types or scenarios, and are difficult to adapt to the complex and changing actual road environment. When faced with changes in lighting, weather, road quality, or lane marking styles, these rules may fail, resulting in poor model generalization and inability to accurately identify lane lines.

[0045] Difficulty in manual design: Designing effective feature extraction rules requires a deep understanding of the various changes in the road environment and lane lines, which is a very challenging task for manual designers. Moreover, as the complexity of the road environment increases, the number of rules that need to be designed will also increase rapidly, making manual design more difficult and time-consuming.

[0046] In view of the above technical problems, the embodiments of the present application provide a lane line recognition method, device, equipment and storage medium. During the driving process of the vehicle, the road image is obtained by the on-board sensor, and then the lane line recognition model is used to recognize the road image to obtain the lane line parameters. In the embodiment of the present application, the lane line recognition model is obtained based on the auxiliary training of the segmentation network. Through the auxiliary training of the segmentation network, the lane line recognition model can learn richer feature representations, so as to have better generalization ability under various road and environmental conditions. In addition, the segmentation network can help the lane line recognition model better understand the complex structure and background information in the road image, so that the lane line recognition model has stronger robustness to occlusion, illumination changes and other situations, and improves the accuracy of lane line recognition. In addition, the segmentation network only participates in the training process of the lane line recognition model, and does not participate in the application process of the lane line recognition model. That is to say, there is no need to integrate the segmentation network in the lane line recognition model to improve the recognition accuracy of the lane line recognition model, and it can also reduce the deployment space occupied by the lane line recognition model.

[0047] Obviously, the embodiments described in this application are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0049] See also Figure 1 , Figure 1 The flowchart of the lane line recognition method provided in the embodiment of the present application includes:

[0050] S101: Acquire a road image using a vehicle-mounted sensor.

[0051] The on-vehicle sensors are used to obtain image data of the road, which contains the road conditions at the location of the vehicle.

[0052] On-board sensors are devices installed on cars to sense the vehicle's surroundings and obtain relevant data. On-board sensors can sense the situation around the vehicle in various ways, including cameras, radars, lidars, and ultrasonic sensors. On-board sensors can provide various types of information, such as images, distance, speed, and direction, to help vehicles achieve functions such as autonomous driving, driving assistance, and environmental perception.

[0053] Cameras are one of the most common on-board sensors, used to capture image information around the vehicle. These images can be used to identify lane lines, traffic signs, pedestrians and vehicles, etc., to achieve visual perception and target detection. Radar uses radio waves to sense obstacles and other vehicles around the vehicle. Radar can provide information such as distance, speed and direction, which is essential for realizing functions such as following, collision warning and automatic braking. LiDAR uses laser beams to scan the surrounding environment to obtain high-precision distance and 3D point cloud data. LiDAR plays an important role in building maps, obstacle detection and positioning. Ultrasonic sensors are mainly used for close-range obstacle detection and parking assistance, which are very useful when driving at low speeds or parking.

[0054] On-board sensors usually process and integrate data through the vehicle's electronic control unit (ECU) or central control unit (CCU), thereby providing the driver with real-time environmental perception and driving assistance, improving driving safety and comfort.

[0055] Road images refer to image data of road scenes captured by on-board sensors (such as two-dimensional road image data or three-dimensional point cloud data). Road images usually include the road conditions where the vehicle is located, including lane lines, road surfaces, traffic signs, pedestrians and other vehicles. Road images can provide rich information, such as the curvature of the road, traffic conditions around the vehicle, road surface conditions, etc., which are crucial for the vehicle's environmental perception and driving decisions. In lane line detection, road images are used to identify the location, type and shape of lane lines, thereby helping the vehicle to perform autonomous driving or driving assistance.

[0056] In a possible implementation, the road image includes a two-dimensional road image, that is, the road image is a picture of the road. Correspondingly, acquiring the road image using a vehicle-mounted sensor includes: acquiring the two-dimensional road image using a vehicle-mounted camera.

[0057] In a possible implementation, the road image includes a three-dimensional road image, that is, the road image is point cloud data of the road. Correspondingly, acquiring the road image using a vehicle-mounted sensor includes: acquiring the three-dimensional road image using a vehicle-mounted laser sensor.

[0058] The camera can provide high-resolution image data and can clearly capture details on the road, such as markings, traffic signs, and pedestrians, so as to achieve visual perception of lane lines. LiDAR can provide high-precision distance and depth information, and can build an accurate three-dimensional model of the road. In complex road scenes, LiDAR can help identify virtual lane lines and provide additional depth information to enhance the accuracy and robustness of lane line detection. The embodiments of the present application can select two-dimensional road images or three-dimensional road images for lane line recognition in combination with different road scenes, so as to achieve more comprehensive and accurate lane line recognition in different road scenes. Utilizing the characteristics of different sensors can improve the accuracy of lane line recognition and enhance the perception of the driving environment, thereby improving driving safety and comfort.

[0059] In another possible implementation, the road image includes a two-dimensional road image and a three-dimensional road image. Before inputting the road image into the lane line recognition model, the road image needs to be dimensionally aligned to convert the three-dimensional road image into a two-dimensional road image, or the two-dimensional road image into a three-dimensional road image, so as to combine the characteristics of the two-dimensional road image and the three-dimensional road image, obtain more comprehensive and accurate road information, and improve the accuracy of lane line recognition. For example, the two-dimensional image can be used for preliminary detection and tracking of the lane line, and then the three-dimensional data can be used to further verify and correct the position and shape of the lane line, thereby improving the accuracy and robustness of lane line recognition.

[0060] S102: Input the road image into the lane line recognition model to obtain lane line parameters.

[0061] The lane line recognition model is obtained based on the segmentation network assisted training; the lane line recognition model includes a feature extraction layer, a coding and decoding layer and a processing layer; the feature extraction layer is used to extract image features from the road image, the coding and decoding layer is used to encode and decode the image features, and the processing layer is used to obtain the lane line parameters according to the image features after coding and decoding.

[0062] Combination Figure 2 The application process of the lane line recognition model is introduced, such as Figure 2 As shown, Figure 2 A schematic diagram of an application of a lane recognition model provided in an embodiment of the present application.

[0063] In an embodiment of the present application, after receiving the road image, the lane line recognition model performs feature extraction through a feature extraction layer (Backbone). The feature extraction layer can use a deep learning model (such as a convolutional neural network) as a backbone network, and the feature extraction layer is responsible for extracting meaningful feature representations, i.e., image features, from the input road image. For two-dimensional road images, a two-dimensional backbone network is used for feature extraction, and for three-dimensional road images, a three-dimensional backbone network is used. These backbone networks convert the input image into a representation with high-level abstract features through multi-layer convolution and pooling operations for further processing by subsequent processing layers.

[0064] The codec layer is used to enhance the image features output by the feature extraction layer. The codec layer is usually composed of an encoder and a decoder. The encoder is responsible for compressing and refining the input image features to reduce the number of parameters and extract key information; the decoder is responsible for decoding and restoring the encoded features to enhance the expressiveness of the features. During the encoding and decoding process, convolution, deconvolution, pooling and other operations, as well as jump connections (such as the U-Net structure) are used to retain low-level and high-level feature information, thereby enhancing image features.

[0065] In a possible implementation, the encoding and decoding layer includes a Transformer encoder and a Transformer decoder.

[0066] The Transformer encoder encodes the input image features through the self-attention mechanism and outputs the encoded feature representation. The Transformer encoder can effectively capture the relationship and importance between different regions in the image, thereby better representing the semantic information of the image. The Transformer encoder consists of multiple encoding layers, each of which contains a multi-head self-attention mechanism and a feedforward neural network layer, as well as residual connections and layer normalization operations.

[0067] The Transformer decoder decodes and reconstructs the encoded feature representation through the self-attention mechanism and the encoder-decoder attention mechanism, and outputs the enhanced image features. The Transformer decoder can use the encoded feature representation to generate enhanced features related to the original image features to improve the expressiveness of the image features and the degree of retention of semantic information. The Transformer decoder is also composed of multiple decoding layers, each of which contains a multi-head self-attention mechanism, an encoder-decoder attention mechanism, and a feedforward neural network layer, as well as residual connections and layer normalization operations.

[0068] The processing layer receives the enhanced image features and processes them through a series of neural network layers or other algorithms, and finally outputs the parameters of the lane line.

[0069] In a possible implementation, the processing layer includes a lane line classification header, a lane line equation parameter header, a lane line breakpoint header, and a lane line end point header. Correspondingly, the lane line parameters include lane line type, lane line equation parameters, lane line breakpoints, and lane line end points.

[0070] The lane line classification head classifies the enhanced image features to determine the type of each lane line (such as straight line, dashed line, and curve, etc.). The lane line equation parameter head uses the enhanced image features to calculate the mathematical equation parameters (such as straight line equation parameters or curve equation parameters) that describe the shape of each lane line through regression or other methods. The lane line breakpoint head processes the enhanced image features to identify the starting point coordinates of each lane line in the image. The lane line end point head processes the enhanced image features to determine the end point coordinates of each lane line in the image.

[0071] Lane line types include straight lines, dotted lines, and curves. When the lane line type output by the lane line recognition model is 0, it indicates that the lane line type is non-lane line; when the lane line type output by the lane line recognition model is 1, it indicates that the lane line type is straight line; when the lane line type output by the lane line recognition model is 2, it indicates that the lane line type is dotted line; when the lane line type output by the lane line recognition model is 3, it indicates that the lane line type is curve. The lane line type is used to describe the driving direction and movement of the lane line. The lane line equation parameters are used to describe the mathematical equation of the lane line shape. The lane line breakpoint is used to describe the starting and ending coordinates of the lane line in the image. The lane line end point is used to describe the end point coordinates of the lane line in the image. Through these processing heads and corresponding parameters, the lane line recognition model can accurately identify the lane line and extract its related parameter information.

[0072] This lane line detection method based on the segmentation network automatically learns image features and rules through a deep learning model, and no longer relies on manually designed rules, thereby improving the generalization ability and accuracy of the model, making it possible to effectively perform lane line detection even in complex and changeable road environments.

[0073] The embodiments of the present application provide a lane line detection method, device, equipment and storage medium. When the vehicle is driving, the road image is acquired by using the on-board sensor, and the image is recognized by the lane line recognition model to obtain the lane line parameters. The lane line recognition model is obtained based on the segmentation network assisted training. Through this training method, the model can learn richer feature representations, so that it has better generalization ability under various road and environmental conditions. The segmentation network helps to understand the complex structure and background information in the image, improves the robustness of the model to occlusion, lighting changes, etc., thereby improving the recognition accuracy. It is worth noting that the segmentation network only participates in the model training process, but not in the model application process, which means that there is no need to integrate the segmentation network into the lane line recognition model to improve the recognition accuracy and reduce the deployment space of the model.

[0074] For the above lane line recognition model, this application also provides a training method for the lane line recognition model, such as Figure 3 As shown, Figure 3 A schematic diagram of a lane recognition model training process provided in an embodiment of the present application is as follows:

[0075] Acquire a road sample image set and a sample label, wherein the road sample image set includes a plurality of road sample images, the road sample images include lane lines, and the sample label includes lane line parameters of the lane lines in the plurality of road sample images;

[0076] Inputting the road sample image into the feature extraction layer of the model to be trained to obtain sample image features;

[0077] Inputting the sample image features into a segmentation network to obtain sample image segmentation features;

[0078] The model to be trained is trained using the road sample image set and the sample labels, and the feature extraction layer of the model to be trained is corrected using the sample image segmentation features to obtain the lane line recognition model.

[0079] In an embodiment of the present application, the road sample image set includes a plurality of road images containing lane lines. The road images in the road sample image set are collected from real road scenes or images generated by simulated roads. The sample labels include lane line parameters of each lane line in the road sample image, such as lane line type, equation parameters, breakpoints, and end points.

[0080] The segmentation network is a neural network model used to implement the segmentation task. In the embodiment of the present application, the segmentation network is used to segment the intermediate parameters and sample image features in the training model. The segmentation network can segment the sample image features into different parts, and use the sample image segmentation features obtained by segmentation to correct and adjust the feature extraction layer of the training model, gradually enhance the understanding ability of the feature extraction layer, and enhance the feature extraction ability of the feature extraction layer. In this way, the model can better learn the relationship between the lane line and the surrounding environment during the training process, thereby improving the accuracy of lane line recognition. In addition, the segmentation network can enable the model to better understand the complex structure and background information in the road image during training, helping the model to have better generalization ability under various road and environmental conditions. The trained lane line recognition model can better adapt to different road conditions, thereby improving the accuracy and stability of lane line recognition.

[0081] The segmentation network in the lane recognition model training process is trained and verified, and has the feature segmentation capability that meets the expected requirements. The present application embodiment also provides a training process for the segmentation network:

[0082] The sample image features and feature labels are obtained, and the feature labels are sample image segmentation features corresponding to the sample image features. The sample image features are input into the segmentation network to obtain the segmented sample image features, and then the segmentation network is modified according to the segmented sample image features and the sample image segmentation features.

[0083] The model to be trained is trained using a set of road sample images, multiple sub-images corresponding to each road sample image, and sample labels. During the training process, the model to be trained can continuously adjust parameters through the back propagation algorithm so that it can accurately predict the lane line parameters in the road image. Ultimately, the trained lane line recognition model can learn the feature representation of the lane line from the road image and accurately recognize the lane line in the road image.

[0084] By comparison Figure 2 and Figure 3 It can be seen that the segmentation network only participates in the training process of the lane recognition model, and does not participate in the application process of the lane recognition model. In the application stage of the lane recognition model, there is no need to run a complex segmentation network, which can reduce the computing cost and inference time, and improve the real-time performance of lane recognition; moreover, the segmentation network is usually more complex and is not suitable for direct deployment in resource-constrained environments such as vehicles. Separating the segmentation network from the lane recognition model simplifies the deployment process of the lane recognition model and reduces the complexity and resource consumption of the lane recognition model. Using the segmentation network to assist in training the lane recognition model can help the lane recognition model learn richer feature representations and understand the complex structures and background information in the road image, so that it has better generalization capabilities under various road and environmental conditions, and improves the recognition accuracy of the lane recognition model.

[0085] The above are some specific implementations of the lane line recognition method provided in the embodiment of the present application. Based on this, the present application also provides a corresponding device. The device provided in the embodiment of the present application will be introduced from the perspective of functional modularization.

[0086] See also Figure 4 The structure diagram of the lane line recognition device shown is as follows. The device includes an acquisition module 401 and a recognition module 402.

[0087] An acquisition module 401 is used to acquire a road image using a vehicle-mounted sensor;

[0088] The recognition module 402 is used to input the road image into a lane line recognition model to obtain lane line parameters; the lane line recognition model is obtained based on segmentation network assisted training; the lane line recognition model includes a feature extraction layer, a coding and decoding layer and a processing layer; the feature extraction layer is used to extract image features from the road image, the coding and decoding layer is used to encode and decode the image features, and the processing layer is used to obtain the lane line parameters based on the image features after coding and decoding.

[0089] The embodiment of the present application provides a lane line recognition device. During the driving process of the vehicle, a road image is obtained by an on-board sensor, and then the lane line recognition model is used to recognize the road image to obtain lane line parameters. In the embodiment of the present application, the lane line recognition model is obtained based on the auxiliary training of the segmentation network. Through the auxiliary training of the segmentation network, the lane line recognition model can learn richer feature representations, so that it has better generalization ability under various road and environmental conditions. In addition, the segmentation network can help the lane line recognition model better understand the complex structure and background information in the road image, so that the lane line recognition model has stronger robustness to occlusion, illumination changes, etc., and improves the accuracy of lane line recognition. In addition, the segmentation network only participates in the training process of the lane line recognition model, and does not participate in the application process of the lane line recognition model. That is to say, there is no need to integrate the segmentation network in the lane line recognition model to improve the recognition accuracy of the lane line recognition model, and it can also reduce the deployment space occupied by the lane line recognition model.

[0090] In a possible implementation, the training process of the lane line recognition model is:

[0091] Acquire a road sample image set and a sample label, wherein the road sample image set includes a plurality of road sample images, the road sample images include lane lines, and the sample label includes lane line parameters of the lane lines in the plurality of road sample images;

[0092] Inputting the road sample image into the feature extraction layer of the model to be trained to obtain sample image features;

[0093] Inputting the sample image features into a segmentation network to obtain sample image segmentation features;

[0094] The model to be trained is trained using the road sample image set and the sample labels, and the feature extraction layer of the model to be trained is corrected using the sample image segmentation features to obtain the lane line recognition model.

[0095] In one possible implementation, the processing layer includes a lane line classification header, a lane line equation parameter header, a lane line breakpoint header and a lane line end point header; the lane line parameters include a lane line type, a lane line equation parameter, a lane line breakpoint and a lane line end point.

[0096] In a possible implementation, the road image includes a two-dimensional road image or a three-dimensional road image; the acquisition module 401 is specifically used to acquire the two-dimensional road image using a vehicle-mounted camera, or to acquire the three-dimensional road image using a vehicle-mounted laser sensor.

[0097] In a possible implementation, the road image includes a two-dimensional road image and a three-dimensional road image;

[0098] The device also includes a processing module, which is used to perform dimension alignment processing on the road image before inputting the road image into the lane line recognition model.

[0099] In a possible implementation, the encoding and decoding layer includes a Transformer encoder and a Transformer decoder.

[0100] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the solutions provided by the embodiments of the present application.

[0101] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the lane line recognition method described in any embodiment of the present application.

[0102] The computer storage medium stores codes, and when the codes are executed, the device executing the codes implements the lane line recognition method described in any embodiment of the present application.

[0103] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0104] The multiple involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0105] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0106] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0107] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A lane line recognition method, characterized in that: include: Using vehicle-mounted sensors to obtain road images; Inputting the road image into a lane line recognition model to obtain lane line parameters; The lane line recognition model is obtained based on segmentation network assisted training; the lane line recognition model includes a feature extraction layer, a coding and decoding layer and a processing layer; the feature extraction layer is used to extract image features from the road image, the coding and decoding layer is used to encode and decode the image features, and the processing layer is used to obtain the lane line parameters according to the image features after coding and decoding.

2. The method according to claim 1, characterized in that: The training process of the lane line recognition model is as follows: Acquire a road sample image set and a sample label, wherein the road sample image set includes a plurality of road sample images, the road sample images include lane lines, and the sample label includes lane line parameters of the lane lines in the plurality of road sample images; Inputting the road sample image into the feature extraction layer of the model to be trained to obtain sample image features; Inputting the sample image features into a segmentation network to obtain sample image segmentation features; The model to be trained is trained using the road sample image set and the sample labels, and the feature extraction layer of the model to be trained is corrected using the sample image segmentation features to obtain the lane line recognition model.

3. The method according to claim 1, characterized in that The processing layer includes a lane line classification header, a lane line equation parameter header, a lane line breakpoint header and a lane line end point header; the lane line parameters include a lane line type, a lane line equation parameter, a lane line breakpoint and a lane line end point.

4. The method according to claim 1, characterized in that: The road image includes a two-dimensional road image, and the step of acquiring the road image by using a vehicle-mounted sensor includes: Acquiring the two-dimensional road image using a vehicle-mounted camera; or, The road image includes a three-dimensional road image, and the step of acquiring the road image by using a vehicle-mounted sensor includes: The three-dimensional road image is acquired using a vehicle-mounted laser sensor.

5. The method according to claim 1, characterized in that The road image includes a two-dimensional road image and a three-dimensional road image; Before inputting the road image into the lane line recognition model, the method further includes: The road image is dimensionally aligned.

6. The method according to claim 1, characterized in that The encoding and decoding layer includes a Transformer encoder and a Transformer decoder.

7. A lane line detection device, characterized in that: include: An acquisition module, used for acquiring road images using vehicle-mounted sensors; A recognition module, used for inputting the road image into a lane line recognition model to obtain lane line parameters; The lane line recognition model is obtained based on segmentation network auxiliary training; The lane line recognition model includes a feature extraction layer, a coding and decoding layer and a processing layer; the feature extraction layer is used to extract image features from the road image, the coding and decoding layer is used to encode and decode the image features, and the processing layer is used to obtain the lane line parameters based on the image features after coding and decoding.

8. The device according to claim 7, characterized in that The training process of the lane line recognition model is as follows: Acquire a road sample image set and a sample label, wherein the road sample image set includes a plurality of road sample images, the road sample images include lane lines, and the sample label includes lane line parameters of the lane lines in the plurality of road sample images; Inputting the road sample image into the feature extraction layer of the model to be trained to obtain sample image features; Inputting the sample image features into a segmentation network to obtain sample image segmentation features; The model to be trained is trained using the road sample image set and the sample labels, and the feature extraction layer of the model to be trained is corrected using the sample image segmentation features to obtain the lane line recognition model.

9. A computer device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the lane line recognition method as described in any one of claims 1 to 6 is implemented.

10. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the lane line recognition method as described in any one of claims 1 to 6.