Lane line extraction method and device, controller and mobile equipment

Through the visual sensor and lane line feature extraction model, lane line sensing without lidar sensors is realized in autonomous driving, reducing costs and failure rates, and solving the economic and reliability problems of lane line sensing in the existing technology.

CN118823705APending Publication Date: 2024-10-22BEIJING ZHIXINGZHE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310429417.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-20
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

In existing autonomous driving technology, the lane line sensing method relies on expensive and fragile lidar sensors, resulting in high system costs and high failure rates. Frequent map adjustments are required when the road changes, which increases time and financial expenses.

Method used

The lane line image is obtained through the visual sensor, and the lane line feature extraction model is used to extract the lane line feature information and form a pixel point set to realize the output of the lane line extraction result, reducing the dependence on the lidar sensor.

Benefits of technology

It reduces the cost and complexity of the system structure, reduces the failure rate, realizes the ability to perceive lane lines in real time during driving, and reduces the frequency of map adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823705A_ABST
    Figure CN118823705A_ABST
Patent Text Reader

Abstract

The invention provides a lane line extraction method and apparatus, a controller and a mobile device. The method comprises the steps of obtaining a to-be-processed image including at least one lane line image; and inputting the to-be-processed image into a lane line feature extraction model to obtain lane line feature information output by the lane line feature extraction model, then obtaining at least one pixel point set according to the lane line feature information, and further obtaining a lane line extraction result according to the at least one pixel point set. According to the scheme, the final lane line extraction result can be obtained through corresponding processing only by obtaining the to-be-processed image comprising at least one lane line image through the visual sensor, other devices for collecting the lane line image, such as expensive and vulnerable laser radar sensors, are not needed, the cost and complexity of the system structure are reduced, and the system efficiency is improved. And the visual sensor belongs to a non-vulnerable part, so that the fault rate of the system structure is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of autonomous driving technology, and in particular to a lane line extraction method, device, controller and mobile device. Background Art

[0002] Lane changing and path planning of mobile devices (such as vehicles) in autonomous driving scenarios rely on real-time perception of lane lines or high-precision maps. However, obtaining high-precision maps now requires sophisticated instruments and equipment as well as later manual annotation. If there are changes in the road, the map also needs to be adjusted in a timely manner. This is a huge expense in terms of time and money. Therefore, a technology is needed that can sense lane lines in real time while autonomous driving mobile devices are driving.

[0003] At present, the solution for real-time perception of lane lines in autonomous driving mobile devices during driving is mainly implemented through lidar sensors and cameras. First, the graphics are input into the lane line segmentation model or traditional edge extraction algorithms to obtain the pixel coordinate position and pixel feature information belonging to the lane line. Then, the lidar information is projected into the image and matched and fused with the lane line pixels to obtain the laser point information corresponding to the lane line. Secondly, the lane line is projected onto the image, and the laser point is matched and fused with the pixel point with lane line attributes to output the laser point with lane line attributes. Finally, the laser point is matched and tracked with the lane line of the previous frame and the final result is fitted and output.

[0004] However, the existing lane line perception methods do not have an economic advantage because the LiDAR sensors are expensive and consumable. In addition, any failure of the camera or LiDAR sensor will seriously affect the output of the results, greatly increasing the failure rate of the entire system structure.

[0005] Application Contents

[0006] In view of this, embodiments of the present application provide a lane line extraction method, apparatus, controller and mobile device to at least partially solve the above-mentioned problems.

[0007] According to a first aspect of an embodiment of the present application, a lane line extraction method is provided, comprising acquiring an image to be processed including at least one lane line image, wherein different lane line images correspond to different lane lines; inputting the image to be processed into a lane line feature extraction model to obtain lane line feature information output by the lane line feature extraction model, wherein the lane line feature information is used to indicate at least part of the pixel points of the lane line image; obtaining at least one pixel point set based on the lane line feature information, wherein different pixel point sets correspond to different lane line images, and the pixel point set includes at least part of the pixel points of the corresponding lane line image; obtaining a lane line extraction result based on the at least one pixel point set, wherein the lane line extraction result is used to indicate at least one lane line image included in the image to be processed.

[0008] According to a second aspect of an embodiment of the present application, a lane line extraction device is provided, comprising: an acquisition module, used to acquire an image to be processed including at least one lane line image, wherein different lane line images correspond to different lane lines; an extraction module, used to input the image to be processed into a lane line feature extraction model, and obtain lane line feature information output by the lane line feature extraction model, wherein the lane line feature information is used to indicate at least part of the pixel points of the lane line image; a generation module, used to obtain at least one pixel point set based on the lane line feature information, wherein different pixel point sets correspond to different lane line images, and the pixel point set includes at least part of the pixel points of the corresponding lane line image; a processing module, used to obtain a lane line extraction result based on the at least one pixel point set, wherein the lane line extraction result is used to indicate at least one lane line image included in the image to be processed.

[0009] According to a third aspect of an embodiment of the present application, a controller is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus, and the memory is used to store a computer program; and the processor is used to execute the method steps described in any one of the first aspects of the embodiment by running the computer program stored in the memory.

[0010] According to a fourth aspect of an embodiment of the present application, a mobile device is provided, comprising: a sensor, a processor, a memory, a communication interface and a communication bus, wherein the sensor, the processor, the memory and the communication interface communicate with each other through the communication bus; the sensor is used to collect environmental data of the environment in which the mobile device is located and generate perception data; the memory is used to store at least one executable instruction, wherein the executable instruction enables the processor to perform an operation corresponding to the method described in any one of the first aspects of the embodiment based on the perception data.

[0011] According to a fifth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, a method as described in any one of the first aspects of the embodiment is implemented.

[0012] According to the above technical solution, it is only necessary to obtain an image to be processed including at least one lane line image through a visual sensor, and the final lane line extraction result can be obtained through corresponding processing. There is no need for expensive and fragile lidar sensors and other devices for collecting lane line images, which reduces the cost and complexity of the system structure. Since the visual sensor is a non-consumable part, the failure rate of the system structure is further reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the embodiments of the present application or the technical solutions in 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0014] Figure 1 A schematic diagram of an exemplary system applicable to the lane line extraction method of an embodiment of the present application;

[0015] Figure 2 A flowchart of a lane line extraction method according to an embodiment of the present application;

[0016] Figure 3 A flowchart of a method for determining a pixel point set according to an embodiment of the present application;

[0017] Figure 4 A flowchart of a lane feature extraction model training method according to an embodiment of the present application;

[0018] Figure 5 is a structural block diagram of a lane line extraction device according to an embodiment of the present application;

[0019] Figure 6is a structural block diagram of a controller according to an embodiment of the present application;

[0020] Figure 7 A structural block diagram of a mobile device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0022] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.

[0023] Exemplary Systems

[0024] Figure 1 An exemplary system for the lane line extraction method applicable to the embodiment of the present application is shown. Figure 1 As shown, the system 100 may include a cloud service 102, a communication network 104 and / or one or more vehicle-mounted devices 106. Figure 1 The example in the figure shows multiple vehicle-mounted devices.

[0025] The cloud server 102 can be any suitable device for storing information, data, programs and / or any other suitable type of content, including but not limited to distributed storage system devices, server clusters, computing cloud server clusters, etc. In some embodiments, the cloud server 102 can perform any suitable function. For example, in some embodiments, the cloud server 102 can be used to obtain lane line extraction results. As an optional example, in some embodiments, the cloud server 102 can be used to extract lane line features. As another example, in some embodiments, the cloud server 102 can be used to send a projected image to a vehicle-mounted device.

[0026] In some embodiments, the communication network 104 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network 104 can include any one or more of the following: the Internet, an intranet, a wide area network (WAN), a local area network (LAN), a wireless network, a digital subscriber line (DSL) network, a frame relay network, an asynchronous transfer mode (ATM) network, a virtual private network (VPN), and / or any other suitable communication network. The vehicle-mounted device 106 can be connected to the communication network 104 via one or more communication links (e.g., communication link 112), and the communication network 104 can be linked to the cloud service end 102 via one or more communication links (e.g., communication link 114). The communication link can be any communication link suitable for transmitting data between the vehicle-mounted device 106 and the cloud service end 102, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link, or any suitable combination of such links.

[0027] The vehicle-mounted device 106 may include any one or more user devices suitable for collecting images to be processed including at least one lane line image, and any one or more user devices suitable for processing images. In some embodiments, the vehicle-mounted device 106 may include any suitable type of device. For example, in some embodiments, the vehicle-mounted device 106 may be a camera, a camera head, a light source sensor, an image processing device, a device equipped with image processing software, a communication module, and / or any other suitable type of vehicle-mounted device.

[0028] Based on the above system, an embodiment of the present application provides a lane line extraction method, which is described below through multiple embodiments.

[0029] In the embodiments of the present application, the mobile device may be any device that can be driven automatically, unmanned, or assisted in driving, such as a floor scrubber, a vacuum cleaner, a cleaning vehicle, a logistics vehicle, a passenger car, a bus, a coach, a van, a truck, a truck, a trailer, a trailer, a crane, an excavator, a bulldozer, a road train, a sweeper, a sprinkler truck, a garbage truck, an engineering vehicle, a rescue vehicle, a logistics vehicle, an AGV (Automated Guided Vehicle), etc.), a motorcycle, a bicycle, a tricycle, a cart, a robot, a sweeper, a balance vehicle, etc. The present application does not strictly limit the types of mobile devices, and they are not listed here in detail.

[0030] Lane extraction method

[0031] Figure 2 is a flowchart of a lane line extraction method according to an embodiment of the present application. Figure 2 As shown, the lane line extraction method includes:

[0032] Step 201: Acquire an image to be processed including at least one lane line image.

[0033] It is particularly important for a mobile device to obtain lane line information in a timely manner during driving. In order to extract the lane line information, an image to be processed including at least one lane line image is first obtained, and different lane line images correspond to different lane lines.

[0034] The image to be processed may be obtained by using a visual sensor, which may be a camera, a camera, a light source sensor and / or any other suitable type of device.

[0035] It should be noted that the image to be processed can be acquired through one or more visual sensors, which is not limited here.

[0036] Step 202: input the image to be processed into a lane feature extraction model to obtain lane feature information output by the lane feature extraction model.

[0037] After acquiring the image to be processed, the image to be processed can be processed by a lane line feature extraction model. After the image to be processed is input into the model, the lane line feature information output by the model is obtained. The lane line feature information is used to indicate at least part of the pixel points of the lane line image.

[0038] The lane feature extraction model may be a RESA model based on a deep learning algorithm or any other suitable type of lane feature extraction model.

[0039] Step 203: Obtain at least one pixel point set according to the lane feature information.

[0040] After obtaining the lane line feature information, at least one pixel point set can be obtained based on the obtained lane line feature information, different pixel point sets correspond to different lane line images, and the pixel point set includes at least part of the pixel points of the corresponding lane line image.

[0041] Step 204: Obtain a lane line extraction result based on at least one pixel point set.

[0042] After obtaining the pixel point set, a lane line extraction result can be obtained according to at least one pixel point set. The lane line extraction result is used to indicate at least one lane line image included in the image to be processed.

[0043] In the embodiment of the present application, it is only necessary to obtain an image to be processed including at least one lane line image through a visual sensor, and the final lane line extraction result can be obtained through corresponding processing. There is no need for expensive and fragile lidar sensors or other devices for collecting lane line images, which reduces the cost and complexity of the system structure. Since the visual sensor is a non-consumable part, the failure rate of the system structure is further reduced.

[0044] In one feasible method, the process of obtaining the lane line extraction result based on at least one pixel point set may also include: projecting the pixel point set to the XY plane in the world coordinate system, obtaining a projection image of the lane line image corresponding to the pixel point set, and then obtaining the lane line extraction result including the projection image corresponding to the lane line image.

[0045] In the process of obtaining the lane line extraction result, the pixel point set can be first projected onto the XY plane in the world coordinate system, where the X axis of the world coordinate system is perpendicular to the direction in which the mobile device moves forward, the Y axis is the direction in which the mobile device moves forward, and the Z axis is perpendicular to the XY plane. Then, a projection image of the lane line image corresponding to the pixel point set is obtained, and the lane line extraction result finally obtained includes the obtained projection image.

[0046] For example, the projection process may be to generate a bird's eye view (BEV) based on a pixel point set, and the specific process is to input the pixel point set into the BEV network, and convert the pixel point set into a projection image of the corresponding lane line image according to a preset conversion relationship.

[0047] In an embodiment of the present application, by projecting a set of pixel points onto the XY plane in the world coordinate system, the linear relationship in the obtained projection image is made more intuitive, suitable for linear data operations, and the efficiency of lane line extraction is improved.

[0048] In a feasible method, the lane line extraction process may also include: detecting whether the projection image included in the lane line extraction result includes a projection image to be compensated; if there is a projection image to be compensated, obtaining a historical projection image corresponding to the same lane line as the projection image to be compensated, and fitting continuous compensated projection images based on the historical projection image and the projection image to be compensated; and finally updating the projection image to be compensated included in the lane line extraction result to the corresponding compensated projection image.

[0049] Due to the limitations of device accuracy and the operating environment of the mobile device, the lane line extraction result may contain certain discontinuous lane line images. In order to compensate for the lane line extraction result determined in this case, first detect whether the projection image included in the lane line extraction result includes the projection image to be compensated. The specific detection method can be to detect whether there is a discontinuous image corresponding to the same lane line in the projection image. If so, the image is determined as the projection image to be compensated. Then, a continuous compensated projection image is fitted based on the historical projection image and the projection image to be compensated. The historical projection image can be determined based on at least one historical image preceding the image to be processed. Finally, the projection image to be compensated included in the lane line extraction result is updated to the corresponding compensated projection image.

[0050] For example, the historical projection image and the projection image to be compensated can be fitted by the least square method to obtain continuous compensated projection images.

[0051] It should be noted that the lane line extraction result can be paired with the historical projection image through the Hungarian matching algorithm, and a different tracking number is assigned to each successfully paired lane line image. When the historical projection image and the projection image to be compensated are fitted, the lane line image to be compensated is compensated according to the tracking number.

[0052] In the embodiment of the present application, the projection image to be compensated is compensated by using historical frame data, so that the discontinuous lane line image can be updated to a continuous lane line image, thereby improving the accuracy of the lane line extraction result.

[0053] In one feasible manner, the process of projecting the pixel point set to the XY plane in the world coordinate system may further include: projecting the pixel point set to the XY plane in the world coordinate system by the following formula:

[0054]

[0055] R is used to represent the external parameter rotation matrix of the visual sensor, which is used to collect the image to be processed; T is used to represent the external parameter translation matrix of the visual sensor; K is used to represent the internal parameter matrix of the visual sensor; Z C Used to represent the scaling factor; (u, v) is used to represent the pixel coordinates of the pixel point in the image to be processed; (X w , Y w , Z w ) is used to represent the three-dimensional coordinates of the projection point corresponding to the pixel point in the image to be processed in the world coordinate system.

[0056] In order to project the pixel point set to the XY plane in the world coordinate system, Z w Can be set to 0.

[0057] It should be noted that the scaling factor ZC It can be pre-set by technical personnel based on experimental data, or it can be pre-set based on actual business needs, which is not limited here.

[0058] In the embodiment of the present application, the accuracy of the projection can be improved by projecting a set of pixel points onto the XY plane in the world coordinate system using the formula in the embodiment.

[0059] Figure 3 FIG. 1 is a flowchart of a method for determining a pixel point set according to an embodiment of the present application. Figure 3 As shown, the pixel point set determination method includes:

[0060] Step 301: Determine at least one connected region formed by pixel points indicated by lane feature information.

[0061] In order to determine the pixel point set, first determine at least one connected area formed by the pixel points indicated by the lane line feature information. The specific determination method can be to use a connected domain algorithm to determine the pixel points indicated by the adjacent lane line feature information as a connected area. Different connected areas correspond to different lane line images.

[0062] Step 302: Scan the lane line segmentation image corresponding to the lane line feature information according to a preset scanning direction and scanning interval, and store the coordinate values ​​of each pixel point included in each sub-pixel point set scanned each time into a data structure.

[0063] After determining at least one connected area, the lane line segmentation image is scanned according to a preset scanning direction and scanning interval. For example, the scanning direction may be from left to right or from top to bottom, or a combination of the two directions. The scanning interval may be 20 pixel units. The coordinate values ​​of each pixel point included in each sub-pixel point set scanned during each scanning process are stored in a data structure. At least one pixel point included in each sub-pixel point set is located in the same connected area. Different sub-pixel point sets scanned each time are stored in different data structures. Different sub-pixel point sets located in the same connected area are stored in at least one data structure corresponding to the connected area. Different connected areas correspond to different data structures.

[0064] Step 303: Determine the set of pixel points indicated by the coordinate values ​​stored in the data structure corresponding to the same connected region as the set of pixel points of the lane line image corresponding to the connected region.

[0065] After the coordinate values ​​are stored in each data structure, the segmentation of different lane line images is completed according to the data structure. The specific method can be to determine the set of pixel points indicated by the coordinate values ​​stored in the data structure corresponding to the same connected area as the set of pixel points of the lane line image corresponding to the connected area.

[0066] For example, if a connected region corresponds to a data structure, the set of pixel points indicated by all coordinate values ​​stored in the data structure is determined as the set of pixel points of the lane line image corresponding to the connected region. For another example, if another connected region corresponds to two data structures, the set of pixel points indicated by all coordinate values ​​stored in the two data structures are determined as the set of pixel points of the lane line image corresponding to the connected region.

[0067] In an embodiment of the present application, by storing the coordinate values ​​in a data structure corresponding to the same connected area, the pixel point set of the lane line image can be further determined through the data structure, thereby completing the segmentation of different lane line images.

[0068] In one feasible method, the process of storing the coordinate values ​​of each pixel point included in each sub-pixel point set scanned each time into a data structure may also include: if the first sub-pixel point set and the second sub-pixel point set located in the same connected area are scanned sequentially during one scanning process, the first sub-pixel point set and the second sub-pixel point set are stored in two data structures respectively.

[0069] Since there is a bifurcated lane line in the lane line, for the bifurcated lane line, in the same scanning process, if the first sub-pixel point set and the second sub-pixel point set are scanned at the same time, the first sub-pixel point set and the second sub-pixel point set can be stored in two data structures respectively. Although the first sub-pixel point set and the second sub-pixel point set are stored in two different data structures, the two data structures correspond to the same connected area, and the two data structures can be associated by adding the same label.

[0070] In an embodiment of the present application, by storing the pixel points of the same connected area scanned at one time in the same scanning process into different data structures respectively, when the lane line is bifurcated, the two parts of the lane line belonging to the bifurcated lane line can be distinguished through the data structure, thereby improving the accuracy of the projected image.

[0071] Figure 4 FIG. 1 is a flowchart of a lane feature extraction model training method according to an embodiment of the present application. Figure 4 As shown, the lane feature extraction model training method includes:

[0072] Step 401: Collect autonomous driving scene data.

[0073] In order to extract lane line features, a lane line feature extraction model for extracting lane line features can be trained. First, autonomous driving scene data needs to be collected. The autonomous driving scene data includes at least one lane line image.

[0074] Autonomous driving scene data can be collected by visual sensor mobile devices during the autonomous driving process.

[0075] Step 402: Input the autonomous driving scene data into a semantic segmentation network, perform feature extraction on the lane line image through the semantic segmentation network, and obtain a semantic segmentation image of the lane line image.

[0076] After collecting the autonomous driving scene data, the collected autonomous driving scene data is input into the semantic segmentation network, and the lane line features are segmented by the semantic segmentation network to complete feature extraction, thereby obtaining a semantic segmentation image of the lane line image.

[0077] In the process of training the lane feature extraction model, in order to reduce the overall scale of the semantic segmentation network and thus improve the convergence speed of the semantic segmentation network, the parameter amount can be appropriately reduced when upsampling the feature map obtained by feature fusion. The semantic segmentation network can also include an up sampling module (USM) for obtaining a semantic segmentation image of the same size as the autonomous driving scene data after completing feature extraction.

[0078] Step 403: divide the semantic segmentation image into a training data set and a verification data set according to a preset ratio.

[0079] After obtaining the semantic segmentation image, the semantic segmentation image is divided into a training data set and a verification data set according to a preset ratio.

[0080] For example, the preset ratio may be 7:3. Assuming there are 1,000 semantic segmentation images in total, 700 of them are used as training data sets, and the other 300 images are used as verification data sets.

[0081] Step 404: input the training data set into the model to be trained for training, and update the parameters of the trained model through the verification data set to obtain a lane feature extraction model.

[0082] The training data set divided according to the preset ratio is input into the model to be trained. The model to be trained can be a RESA model based on the deep learning algorithm. The RESA model has high computational efficiency and can effectively aggregate spatial information. It is very suitable for detecting targets with prominent geometric priors. After the model training is completed, the trained model is verified by the verification data set divided according to the preset ratio to update the model parameters and finally obtain the lane feature extraction model.

[0083] In an embodiment of the present application, by collecting autonomous driving scene data to train a lane line feature extraction model, the trained lane line feature extraction model can be made more suitable for the autonomous driving scene, thereby improving the accuracy of lane line feature extraction.

[0084] Lane extraction device

[0085] Figure 5 is a structural block diagram of a lane line extraction device according to an embodiment of the present application, such as Figure 5 As shown, the lane line extraction device 500 may include: an acquisition module 501, an extraction module 502, a generation module 503 and a processing module 504.

[0086] The acquisition module 501 is used to acquire an image to be processed including at least one lane line image, wherein different lane line images correspond to different lane lines.

[0087] It is particularly important for a mobile device to obtain lane line information in a timely manner during driving. In order to extract lane line information, the acquisition module 501 first obtains an image to be processed including at least one lane line image, and different lane line images correspond to different lane lines.

[0088] The image to be processed may be obtained by using a visual sensor, which may be a camera, a camera, a light source sensor and / or any other suitable type of device.

[0089] It should be noted that the image to be processed can be acquired through one or more visual sensors, which is not limited here.

[0090] The extraction module 502 is used to input the image to be processed into the lane line feature extraction model to obtain the lane line feature information output by the lane line feature extraction model, wherein the lane line feature information is used to indicate at least part of the pixel points of the lane line image.

[0091] After the acquisition module 501 acquires the image to be processed, the extraction module 502 can process the image to be processed through a lane line feature extraction model, and after inputting the image to be processed into the model, obtain the lane line feature information output by the model, and the lane line feature information is used to indicate at least part of the pixel points of the lane line image.

[0092] The lane feature extraction model may be a RESA model based on a deep learning algorithm or any other suitable type of lane feature extraction model.

[0093] The generation module 503 is used to obtain at least one pixel point set according to the lane line feature information, wherein different pixel point sets correspond to different lane line images, and the pixel point set includes at least part of the pixel points of the corresponding lane line image.

[0094] After the extraction module 502 obtains the lane line feature information, the generation module 503 can obtain at least one pixel point set based on the obtained lane line feature information, different pixel point sets correspond to different lane line images, and the pixel point set includes at least part of the pixel points of the corresponding lane line image.

[0095] The processing module 504 is used to obtain a lane line extraction result according to at least one pixel point set, wherein the lane line extraction result is used to indicate at least one lane line image included in the image to be processed.

[0096] After the generation module 503 obtains the pixel point set, the processing module 504 may obtain a lane line extraction result according to at least one pixel point set. The lane line extraction result is used to indicate at least one lane line image included in the image to be processed.

[0097] In the embodiment of the present application, the acquisition module 501 only needs to obtain the image to be processed including at least one lane line image through the visual sensor, and can obtain the final lane line extraction result by performing corresponding processing through the extraction module 502, the generation module 503 and the processing module 504. There is no need for expensive and fragile lidar sensors and other devices for collecting lane line images, which reduces the cost and complexity of the system structure. Since the visual sensor is a non-consumable part, the failure rate of the system structure is further reduced.

[0098] In one feasible embodiment, the processing module 504 can also execute the following steps in the process of obtaining the lane line extraction result based on at least one pixel point set: projecting the pixel point set to the XY plane in the world coordinate system, obtaining a projection image of the lane line image corresponding to the pixel point set, and then obtaining the lane line extraction result including the projection image corresponding to the lane line image.

[0099] In the process of obtaining the lane line extraction result, the pixel point set can be first projected onto the XY plane in the world coordinate system, where the X axis of the world coordinate system is perpendicular to the direction in which the mobile device moves forward, the Y axis is the direction in which the mobile device moves forward, and the Z axis is perpendicular to the XY plane. Then, a projection image of the lane line image corresponding to the pixel point set is obtained, and the lane line extraction result finally obtained includes the obtained projection image.

[0100] For example, the projection process may be to generate a bird's eye view (BEV) based on a pixel point set, and the specific process is to input the pixel point set into the BEV network, and convert the pixel point set into a projection image of the corresponding lane line image according to a preset conversion relationship.

[0101] In an embodiment of the present application, by projecting a set of pixel points onto the XY plane in the world coordinate system, the linear relationship in the obtained projection image is made more intuitive, suitable for linear data operations, and the efficiency of lane line extraction is improved.

[0102] In one feasible embodiment, the processing module 504 can also be used to execute in the process of lane line extraction: detect whether the projection image included in the lane line extraction result includes the projection image to be compensated; if there is a projection image to be compensated, obtain the historical projection image corresponding to the same lane line as the projection image to be compensated, and fit continuous compensated projection images based on the historical projection image and the projection image to be compensated; finally, update the projection image to be compensated included in the lane line extraction result to the corresponding compensated projection image.

[0103] Due to the limitations of device accuracy and the operating environment of the mobile device, the lane line extraction result may contain certain discontinuous lane line images. In order to compensate for the lane line extraction result determined in this case, the processing module 504 can first detect whether the projection image included in the lane line extraction result includes the projection image to be compensated. The specific detection method can be to detect whether there is a discontinuous image corresponding to the same lane line in the projection image. If so, the image is determined as the projection image to be compensated. Then, a continuous compensated projection image is fitted based on the historical projection image and the projection image to be compensated. The historical projection image can be determined based on at least one historical image preceding the image to be processed. Finally, the projection image to be compensated included in the lane line extraction result is updated to the corresponding compensated projection image.

[0104] For example, the historical projection image and the projection image to be compensated can be fitted by the least square method to obtain continuous compensated projection images.

[0105] It should be noted that the lane line extraction result can be paired with the historical projection image through the Hungarian matching algorithm, and a different tracking number is assigned to each successfully paired lane line image. When the historical projection image and the projection image to be compensated are fitted, the lane line image to be compensated is compensated according to the tracking number.

[0106] In the embodiment of the present application, the projection image to be compensated is compensated by using historical frame data, so that the discontinuous lane line image can be updated to a continuous lane line image, thereby improving the accuracy of the lane line extraction result.

[0107] In a feasible manner, the processing module 504 may further perform, in the process of projecting the pixel point set to the XY plane in the world coordinate system: projecting the pixel point set to the XY plane in the world coordinate system by the following formula:

[0108]

[0109] R is used to represent the external parameter rotation matrix of the visual sensor, which is used to collect the image to be processed; T is used to represent the external parameter translation matrix of the visual sensor; K is used to represent the internal parameter matrix of the visual sensor; Z C Used to represent the scaling factor; (u, v) is used to represent the pixel coordinates of the pixel point in the image to be processed; (X w , Y w , Z w ) is used to represent the three-dimensional coordinates of the projection point corresponding to the pixel point in the image to be processed in the world coordinate system.

[0110] In order to project the pixel point set to the XY plane in the world coordinate system, Z w Can be set to 0.

[0111] It should be noted that the scaling factor Z C It can be pre-set by technical personnel based on experimental data, or it can be pre-set based on actual business needs, which is not limited here.

[0112] In the embodiment of the present application, the accuracy of the projection can be improved by projecting a set of pixel points onto the XY plane in the world coordinate system using the formula in the embodiment.

[0113] In one feasible manner, the generation module 503 may also execute: determining at least one connected area formed by pixel points indicated by the lane line feature information, and then scanning the lane line segmentation image corresponding to the lane line feature information according to a pre-set scanning direction and scanning interval, storing the coordinate values ​​of each pixel point included in each sub-pixel point set scanned each time into a data structure, and finally determining the set of pixel points indicated by the coordinate values ​​stored in the data structure corresponding to the same connected area as the pixel point set of the lane line image corresponding to the connected area.

[0114] In order to determine the pixel point set, the generation module 503 first determines at least one connected area formed by the pixel points indicated by the lane line feature information. The specific determination method can be to use a connected domain algorithm to determine the pixel points indicated by the adjacent lane line feature information as a connected area. Different connected areas correspond to different lane line images.

[0115] After determining at least one connected area, the generation module 503 scans the lane line segmentation image according to a preset scanning direction and scanning interval. For example, the scanning direction may be from left to right or from top to bottom, or a combination of the two directions. The scanning interval may be 20 pixel units. The coordinate values ​​of each pixel point included in each sub-pixel point set scanned during each scanning process are stored in a data structure. At least one pixel point included in each sub-pixel point set is located in the same connected area. Different sub-pixel point sets scanned each time are stored in different data structures. Different sub-pixel point sets located in the same connected area are stored in at least one data structure corresponding to the connected area. Different connected areas correspond to different data structures.

[0116] After storing the coordinate values ​​in each data structure, the generation module 503 completes the segmentation of different lane line images according to the data structure. The specific method can be to determine the set of pixel points indicated by the coordinate values ​​stored in the data structure corresponding to the same connected area as the set of pixel points of the lane line image corresponding to the connected area.

[0117] For example, if a connected region corresponds to a data structure, the generation module 503 determines the set of pixel points indicated by all coordinate values ​​stored in the data structure as the set of pixel points of the lane line image corresponding to the connected region. For another example, if another connected region corresponds to two data structures, the generation module 503 determines the set of pixel points indicated by all coordinate values ​​stored in the two data structures as the set of pixel points of the lane line image corresponding to the connected region.

[0118] In the embodiment of the present application, the coordinate values ​​are stored in a data structure corresponding to the same connected area through the generation module 503, and the pixel point set of the lane line image can be further determined through the data structure, thereby completing the segmentation of different lane line images.

[0119] In one feasible embodiment, the process in which the generation module 503 stores the coordinate values ​​of each pixel point included in each sub-pixel point set scanned each time into a data structure can also be executed: if the generation module 503 sequentially scans the first sub-pixel point set and the second sub-pixel point set located in the same connected area during a scanning process, the generation module 503 stores the first sub-pixel point set and the second sub-pixel point set into two data structures respectively.

[0120] Since there is a bifurcated lane line in the lane line, for the bifurcated lane line, if the generation module 503 scans the first sub-pixel point set and the second sub-pixel point set at one time during the same scanning process, the first sub-pixel point set and the second sub-pixel point set can be stored in two data structures respectively. Although the first sub-pixel point set and the second sub-pixel point set are stored in two different data structures, the two data structures correspond to the same connected area, and the two data structures can be associated by adding the same label.

[0121] In an embodiment of the present application, the generation module 503 stores the pixel points of the same connected area scanned at one time in the same scanning process into different data structures respectively. When a lane line is bifurcated, the two parts of the lane line belonging to the bifurcated lane line can be distinguished through the data structure, thereby improving the accuracy of the projected image.

[0122] In one feasible embodiment, the lane line extraction device 500 may also include a model training module, which is used to perform the following in the process of lane line extraction: collecting autonomous driving scene data, then inputting the autonomous driving scene data into a semantic segmentation network, performing feature extraction on the lane line image through the semantic segmentation network, obtaining a semantic segmentation image of the lane line image, further dividing the semantic segmentation image into a training data set and a verification data set according to a preset ratio, and finally inputting the training data set into the model to be trained for training, and updating the parameters of the trained model through the verification data set to obtain a lane line feature extraction model.

[0123] In order to extract lane line features, a lane line feature extraction model for extracting lane line features can be trained. First, autonomous driving scene data needs to be collected. The autonomous driving scene data includes at least one lane line image.

[0124] Autonomous driving scene data can be collected by visual sensor mobile devices during the autonomous driving process.

[0125] After collecting the autonomous driving scene data, the collected autonomous driving scene data is input into the semantic segmentation network, and the lane line features are segmented by the semantic segmentation network to complete feature extraction, thereby obtaining a semantic segmentation image of the lane line image.

[0126] In the process of training the lane feature extraction model, in order to reduce the overall scale of the semantic segmentation network and thus improve the convergence speed of the semantic segmentation network, the parameter amount can be appropriately reduced when upsampling the feature map obtained by feature fusion. The semantic segmentation network can also include an upsampling module (USM) to obtain a semantic segmentation image of the same size as the autonomous driving scene data after completing the feature extraction.

[0127] After obtaining the semantic segmentation image, the semantic segmentation image is divided into a training data set and a verification data set according to a preset ratio.

[0128] For example, the preset ratio may be 7:3. Assuming there are 1,000 semantic segmentation images in total, 700 of them are used as training data sets, and the other 300 images are used as verification data sets.

[0129] The training data set divided according to the preset ratio is input into the model to be trained. The model to be trained can be a RESA model based on the deep learning algorithm. The RESA model has high computational efficiency and can effectively aggregate spatial information. It is very suitable for detecting targets with prominent geometric priors. After the model training is completed, the trained model is verified by the verification data set divided according to the preset ratio to update the model parameters and finally obtain the lane feature extraction model.

[0130] In an embodiment of the present application, by collecting autonomous driving scene data to train a lane line feature extraction model, the trained lane line feature extraction model can be made more suitable for the autonomous driving scene, thereby improving the accuracy of lane line feature extraction.

[0131] It should be noted that the information interaction, execution process, etc. between the modules in the above-mentioned lane line extraction device are based on the same concept as the above-mentioned lane line extraction method embodiment. The specific contents can be found in the description in the above-mentioned lane line extraction method embodiment and will not be repeated here.

[0132] Controller

[0133] In this embodiment, a controller 600 is provided, such as Figure 6 As shown, the controller 600 may include: a processor 601, a communications interface 602, a memory 603, and a communication bus 604. Among them:

[0134] The processor 601 , the communication interface 602 , and the memory 603 communicate with each other via the communication bus 604 .

[0135] The communication interface 602 is used to communicate with other electronic devices or servers.

[0136] The processor 601 is used to execute the program 605, and specifically can execute the relevant steps in the aforementioned lane line extraction method embodiment.

[0137] Specifically, the program 605 may include program codes, which include computer operation instructions.

[0138] The processor 601 may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0139] The memory 603 is used to store the computer program 605. The memory 603 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0140] Program 605 can be specifically used to enable processor 601 to execute the lane line extraction method in the aforementioned embodiment.

[0141] The specific implementation of each step in program 605 can refer to the corresponding description of the corresponding steps and units in the above lane line extraction method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.

[0142] The controller of the embodiment of the present application only needs to obtain an image to be processed including at least one lane line image through a visual sensor, and can obtain the final lane line extraction result through corresponding processing. It does not require expensive and fragile lidar sensors or other devices for collecting lane line images, thereby reducing the cost and complexity of the system structure. Since the visual sensor is a non-consumable part, the failure rate of the system structure is further reduced.

[0143] mobile device

[0144] In this embodiment, a mobile device 700 is provided, such as Figure 7 As shown, the mobile device 700 may include: a processor 701, a communications interface 702, a memory 703, a communication bus 704 and a sensor 706. Among them:

[0145] The processor 701 , the communication interface 702 , and the memory 703 communicate with each other via the communication bus 704 .

[0146] The communication interface 702 is used to communicate with other electronic devices or servers.

[0147] The processor 701 is used to execute the program 705, and specifically can execute the relevant steps in the aforementioned lane line extraction method embodiment.

[0148] Specifically, the program 705 may include program codes, which include computer operation instructions.

[0149] The processor 701 may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0150] The memory 703 is used to store the computer program 705. The memory 703 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0151] Program 705 can be specifically used to enable processor 701 to execute the lane line extraction method in the aforementioned embodiment.

[0152] The sensor 706 is used to collect environmental data of the environment where the mobile device 700 is located and generate perception data. The perception data may be an image to be processed including at least one lane line image.

[0153] The specific implementation of each step in program 705 can refer to the corresponding description of the corresponding steps and units in the above lane line extraction method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiment, which will not be repeated here.

[0154] The mobile device of the embodiment of the present application only needs to obtain an image to be processed including at least one lane line image through a visual sensor, and can obtain the final lane line extraction result through corresponding processing. It does not require expensive and fragile lidar sensors or other devices for collecting lane line images, thereby reducing the cost and complexity of the system structure. Since the visual sensor is a non-consumable part, the failure rate of the system structure is further reduced.

[0155] Computer storage media

[0156] In this embodiment, a computer-readable storage medium is provided, storing instructions for causing a machine to execute the lane line extraction method as described herein. Specifically, a system or device equipped with a storage medium may be provided, on which a software program code implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device is enabled to read and execute the program code stored in the storage medium.

[0157] In this case, the program code read from the storage medium itself can implement the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute part of the present application.

[0158] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.

[0159] Computer program product

[0160] In this embodiment, a computer program product is provided, including computer instructions, which instruct a computing device to perform any corresponding operation in the above-mentioned multiple method embodiments.

[0161] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.

[0162] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a special-purpose processor or programmable or special-purpose hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the method shown here.

[0163] It should be noted that in the description of this application, the terms "first" and "second" are only used to facilitate the description of different components or names, and cannot be understood as indicating or implying a sequential relationship, relative importance, or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.

[0164] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0165] It should be noted that although the specific embodiments of the present application are described in detail in conjunction with the accompanying drawings, this should not be construed as limiting the scope of protection of the present application. Within the scope described in the claims, various modifications and variations that can be made by those skilled in the art without creative work still fall within the scope of protection of the present application.

[0166] The examples of the embodiments of the present application are intended to concisely illustrate the technical features of the embodiments of the present application so that those skilled in the art can intuitively understand the technical features of the embodiments of the present application, and are not intended to be improper limitations of the embodiments of the present application.

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

Claims

1. A lane line extraction method, comprising: Acquire an image to be processed including at least one lane line image, wherein different lane line images correspond to different lane lines; Inputting the image to be processed into a lane line feature extraction model to obtain lane line feature information output by the lane line feature extraction model, wherein the lane line feature information is used to indicate at least part of the pixel points of the lane line image; Obtain at least one pixel point set according to the lane line feature information, wherein different pixel point sets correspond to different lane line images, and the pixel point sets include at least part of the pixel points of the corresponding lane line image; A lane line extraction result is obtained according to the at least one pixel point set, wherein the lane line extraction result is used to indicate at least one lane line image included in the image to be processed.

2. The method according to claim 1, wherein: The obtaining a lane line extraction result according to the at least one pixel point set includes: Projecting the pixel point set onto an XY plane in a world coordinate system to obtain a projection image of the lane line image corresponding to the pixel point set, wherein an X axis of the world coordinate system is perpendicular to a direction in which the mobile device moves forward, a Y axis is a direction in which the mobile device moves forward, and a Z axis is perpendicular to the XY plane; A lane line extraction result including a projection image corresponding to the lane line image is obtained.

3. The method according to claim 2, wherein: The method further comprises: Detecting whether the projection images included in the lane line extraction result include projection images to be compensated, wherein the projection images to be compensated correspond to the same lane line and are discontinuous; If the projection image to be compensated exists, a historical projection image corresponding to the same lane line as the projection image to be compensated is obtained, and a continuous compensated projection image is fitted according to the historical projection image and the projection image to be compensated, wherein the historical projection image is determined according to at least one historical image preceding the image to be processed; The projection image to be compensated included in the lane line extraction result is updated to the corresponding projection image after compensation.

4. The method according to claim 2, wherein: The projecting the pixel point set to an XY plane in a world coordinate system comprises: The pixel point set is projected onto the XY plane in the world coordinate system using the following formula: R is used to represent the external parameter rotation matrix of the visual sensor, and the visual sensor is used to collect the image to be processed; T is used to represent the external parameter translation matrix of the visual sensor; K is used to represent the internal parameter matrix of the visual sensor; Z C is used to represent the scaling factor; (u, v) is used to represent the pixel coordinates of the pixel points in the image to be processed; (X w , Y w , Z w ) is used to represent the three-dimensional coordinates of the projection point corresponding to the pixel point in the image to be processed in the world coordinate system.

5. The method according to claim 1, wherein: The obtaining, according to the lane feature information, at least one pixel point set comprises: Determine at least one connected region formed by the pixel points indicated by the lane line feature information, wherein different connected regions correspond to different lane line images; Scanning the lane line segmentation image corresponding to the lane line feature information according to a preset scanning direction and scanning interval, storing the coordinate values ​​of each pixel point included in each sub-pixel point set scanned each time into a data structure, wherein at least one pixel point included in each sub-pixel point set is located in the same connected area, different sub-pixel point sets scanned each time are stored in different data structures, different sub-pixel point sets located in the same connected area are stored in at least one data structure corresponding to the connected area, and different connected areas correspond to different data structures; The set of pixel points indicated by the coordinate values ​​stored in the data structure corresponding to the same connected area is determined as the set of pixel points of the lane line image corresponding to the connected area.

6. The method according to claim 5, wherein: The storing of the coordinate values ​​of each pixel point included in each sub-pixel point set scanned each time into a data structure includes: If a first sub-pixel point set and a second sub-pixel point set located in the same connected area are scanned sequentially during one scanning process, the first sub-pixel point set and the second sub-pixel point set are stored in two data structures respectively.

7. The method according to any one of claims 1 to 6, wherein: The method further comprises: Collecting autonomous driving scene data, wherein the autonomous driving scene data includes at least one lane line image; Inputting the autonomous driving scene data into a semantic segmentation network, performing feature extraction on the lane line image through the semantic segmentation network, and obtaining a semantic segmentation image of the lane line image; Dividing the semantic segmentation image into a training data set and a verification data set according to a preset ratio; The training data set is input into the model to be trained for training, and the parameters of the trained model are updated through the verification data set to obtain the lane line feature extraction model.

8. A lane line extraction device, comprising: An acquisition module, used to acquire an image to be processed including at least one lane line image, wherein different lane line images correspond to different lane lines; An extraction module, used for inputting the image to be processed into a lane line feature extraction model to obtain lane line feature information output by the lane line feature extraction model, wherein the lane line feature information is used to indicate at least part of the pixel points of the lane line image; A generating module, configured to obtain at least one pixel point set according to the lane line feature information, wherein different pixel point sets correspond to different lane line images, and the pixel point sets include at least part of the pixel points of the corresponding lane line image; A processing module is used to obtain a lane line extraction result based on the at least one pixel point set, wherein the lane line extraction result is used to indicate at least one lane line image included in the image to be processed.

9. A controller comprising a processor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is configured to execute the method steps of any one of claims 1 to 7 by running the computer program stored in the memory.

10. A mobile device, comprising: A sensor, a processor, a memory, a communication interface and a communication bus, wherein the sensor, the processor, the memory and the communication interface communicate with each other through the communication bus; The sensor is used to collect environmental data of the environment where the mobile device is located and generate perception data; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method as described in any one of claims 1-7 based on the perception data.

11. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.