Lane map construction method, device, electronic device and readable storage medium

By combining a monocular camera with RTK-GPS, a deep learning model is used to identify and fuse lane line information and construct a lane line map, which solves the problems of high high-precision map construction cost and poor real-time performance in the existing technology, and achieves lightweight , real-time, high-precision lane line map construction.

CN114663852BInactive Publication Date: 2024-09-06ZHONGCHUAN TIANXIA INFORMATION TECH BEIJING CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210159195.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-21
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing high-precision map construction method requires a lot of manpower and time, cannot be updated in time, has poor real-time performance, and consumes high economic costs.

Method used

Using a combination of a monocular camera and RTK-GPS, a deep learning model is used to identify lane line information, convert it to the world coordinate system, integrate historical lane line information, build a lane line map, and achieve lightweight real-time mapping.

Benefits of technology

It reduces equipment deployment costs and calculations, improves collection accuracy and operating efficiency, supports high-frequency map updates, has a wide range of applicable scenarios and is highly practical.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114663852B
    Figure CN114663852B
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and readable storage medium for constructing a lane line map, the method comprising: obtaining camera video data and RTK data, and matching and processing the camera video data according to the RTK data to obtain multiple frames of mapping image data; based on a deep learning model, identifying lane line information in each frame of mapping image data, the lane line information includes the predicted position of the lane line; converting the predicted position of the lane line to the world coordinate system to obtain the actual position of the lane line; fusing the actual position of the lane line and the historical lane line information to obtain a lane line map. The present application only uses a combination of a monocular camera and RTK‑GPS to construct a lane line map, with low acquisition cost and high operating efficiency, and can realize real-time mapping; the acquisition accuracy is high, which can meet the needs of lightweight autonomous driving; and the equipment deployment cost is low, and the map can be updated and maintained at a high frequency; the calculation amount is small, the applicable scenarios are wide, and the practicality is strong.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and specifically to a method, device, electronic device and readable storage medium for constructing a lane map. Background Art

[0002] People have an increasing demand for assisted and unmanned driving. Autonomous driving vehicles require sensors to perceive environmental information during operation. They also need maps to provide detailed road information and high-precision positioning to supplement and enhance the perception system.

[0003] The current mainstream method of building high-precision maps is completed through map collection vehicles equipped with RTK-GPS, IMU, cameras, lidar, radar, wheel odometers, etc. RTK-GPS performs centimeter-level positioning, radar\lidar performs point cloud scanning of the surrounding environment, and then generates high-precision maps.

[0004] This method requires a lot of manpower and cannot guarantee timely updating of maps. Summary of the invention

[0005] In response to the above problems, the embodiments of the present application provide a method, device, electronic device and readable storage medium for constructing a lane map, and provide a lightweight and real-time mapping method to overcome or partially overcome the shortcomings of the prior art.

[0006] In a first aspect, an embodiment of the present application provides a method for constructing a lane map, comprising:

[0007] Acquire camera video data and RTK data, and perform matching processing on the camera video data according to the RTK data to obtain multiple frames of mapping image data; wherein the camera video data is captured by a vehicle-mounted monocular camera;

[0008] Based on the deep learning model, identify lane line information in each frame of mapping image data, wherein the lane line information includes a predicted position of the lane line;

[0009] Convert the predicted lane line position to a world coordinate system to obtain the actual lane line position;

[0010] The lane line map is obtained by fusing the actual position of the lane line and the historical lane line information.

[0011] In a second aspect, the embodiment of the present application further provides a lane map construction device, including:

[0012] A preprocessing unit, used to obtain camera video data and RTK data, and perform matching processing on the camera video data according to the RTK data to obtain multiple frames of mapping image data; wherein the camera video data is obtained by shooting with a vehicle-mounted monocular camera;

[0013] An identification unit, configured to identify lane line information in each frame of mapping image data based on a deep learning model, wherein the lane line information includes a predicted position of the lane line;

[0014] A conversion unit, used to convert the predicted position of the lane line into a world coordinate system to obtain the actual position of the lane line;

[0015] The fusion unit is used to fuse the actual position of the lane line and the historical lane line information to obtain the lane line map.

[0016] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to perform any of the above methods.

[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores one or more programs, and when the one or more programs are executed by an electronic device including multiple applications, the electronic device executes any of the above methods.

[0018] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:

[0019] This application uses a vehicle-mounted monocular camera to shoot real-time road videos and RTK data obtained by GPS, combined with a deep learning model, to identify lane line information in each frame of mapping image data, and converts the predicted lane line position to the world coordinate system to obtain the actual lane line position, and fuses the actual lane line position obtained this time with the historical lane line information of vehicles passing the same road in history to obtain the lane line map. This application only uses a combination of a monocular camera and RTK-GPS to construct a lane line map, with low acquisition cost, high operating efficiency, and real-time mapping; high acquisition accuracy, which can meet the needs of lightweight autonomous driving; and low equipment deployment cost, which can update and maintain maps at a high frequency; small amount of calculation, wide application scenarios, and strong practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1 A schematic diagram of a process of constructing a lane line map according to an embodiment of the present application is shown;

[0022] Figure 2 A schematic diagram of the structure of the mmclassification training classification network according to some embodiments of the present application is shown;

[0023] Figure 3 A schematic diagram showing a correction front-end interface of a map construction method according to an embodiment of the present application is shown;

[0024] Figure 4 A schematic diagram showing a baseline and an intersection marked in a position estimation image according to an embodiment of the present application is shown;

[0025] Figure 5 A schematic diagram of a process of constructing a lane line map according to another embodiment of the present application is shown;

[0026] Figure 6 A schematic structural diagram of a lane map construction device according to an embodiment of the present application is shown;

[0027] Figure 7 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0029] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0030] In recent years, people have an increasing demand for vehicle assisted driving and unmanned driving. The lane lines of high-precision maps are the most basic information and can meet most autonomous driving application scenarios. The current mainstream method of building high-precision maps is to use map collection vehicles equipped with RTK-GPS, IMU, cameras, lidar, radar, wheel odometers, etc. RTK-GPS performs centimeter-level positioning, radar\lidar performs point cloud scanning of the surrounding environment, and then generates high-precision maps. This method consumes large and small manpower, economic and time costs, and has poor real-time performance.

[0031] In this regard, the present application provides a lightweight and real-time lane line map construction method. The idea of ​​the present application is to rely only on road video data collected by a monocular camera and RTK data collected by GPS, and introduce a deep learning model into it. The deep learning model is used to identify the lane lines in the road video data, and then the predicted lane lines are mapped to the world coordinate system to obtain the actual position of the lane lines, and further, the actual position of the lane lines is integrated with the historical results obtained by vehicles passing through the road in historical time to obtain the final lane line map.

[0032] Figure 1 A schematic diagram of a method for constructing a lane line map according to an embodiment of the present application is shown, from Figure 1 It can be seen that the present application at least includes steps S110 to S140:

[0033] Step S110: acquiring camera video data and RTK data, and performing matching processing on the camera video data according to the RTK data to obtain multiple frames of mapping image data; wherein the camera video data is captured by a vehicle-mounted monocular camera.

[0034] This application proposes a lightweight and low-cost method for automatically constructing a lane map based on RTK data (also called RTK-GPS data) and monocular camera data.

[0035] The monocular camera can be mounted on the target vehicle. When the target vehicle is driving on the road, the road image can be collected, which is called camera video data. The video is composed of multiple continuous images, and each image is called a frame of the video. The target vehicle is equipped with a GPS device, which can also obtain RTK data.

[0036] The camera video data and the RTK data are obtained, and the two data are processed, specifically including but not limited to: aligning the timestamps of the camera video data and the RTK data; according to the timestamp and the position information of the RTK data, one-to-one correspondence between each frame in the camera video data and each frame in the RTK data; for a moment, a frame corresponding to the moment in the camera data is selected as the mapping image data, and this step is repeatedly executed to obtain the mapping image data at each moment.

[0037] Divide the camera video data into frames and align the timestamps of the camera video data and RTK data. If the acquisition device has completed the synchronization of the timestamps of the camera video data and RTK data, the steps of synchronizing the timestamps can be omitted; otherwise, the video data can be intercepted into single-frame images, i.e., divided into frames, and then the approximate synchronization of the timestamps can be completed through the program script.

[0038] RTK data contains location information. Each frame in the camera video data is matched with each frame in the RTK data and fused one by one, so that the camera video data contains location information. For a moment, a frame corresponding to the moment in the camera data is selected as the mapping image data. When selecting, an image with better picture quality can be selected. This step is executed repeatedly to obtain the mapping image data at each moment.

[0039] After processing, multiple frames of mapping image data are obtained. Each frame of mapping image data is a fusion of the corresponding image data in the camera video data at each moment, as well as the RTK data at that moment. The RTK data contains the location information of the target vehicle, etc.

[0040] Step S120: Based on the deep learning model, identify the lane line information in each frame of mapping image data, where the lane line information includes the predicted position of the lane line.

[0041] By using the trained deep learning model, lane absorption recognition is performed on each frame of mapping image data. The lane line position information in the image can be obtained through recognition. In other embodiments, RTK position data, frame time data, etc. can also be obtained.

[0042] Among them, the deep learning model can be any image processing model in the existing technology, especially a network model dedicated to lane recognition. After a lot of training, the deep learning model can effectively separate lane line information from the mapping image data.

[0043] It should be noted that the lane position obtained by the deep learning model is not the absolute lane position, but only the relative position information in the current pixel coordinate system.

[0044] Step S130: convert the predicted lane line position into a world coordinate system to obtain the actual lane line position.

[0045] The predicted lane lines are then transformed into the world coordinate system to obtain the actual position information of the lane lines, and a lane line map can be established based on the actual position information.

[0046] It should be noted that the actual position of the lane line mentioned here is not exactly wrong, and its value is within the acceptable error range in this field.

[0047] In some embodiments of the present application, the conversion of the predicted lane line position to the actual lane line position can be performed with the help of the intrinsic parameters and extrinsic parameters of the camera. The intrinsic parameters of the camera are parameters related to the camera's own characteristics, such as the camera's focal length, pixel size, etc.; the extrinsic parameters of the camera are parameters in the world coordinate system, such as the camera's position, rotation direction, etc. With the intrinsic parameters and extrinsic parameters of the camera, the following formula (1) can be used to directly convert the predicted lane line position to the world coordinate system:

[0048]

[0049] Among them, u, v represent the predicted position coordinates of the lane line, Z c represents the camera depth of field, K represents the camera intrinsic parameter, R, T represents the camera extrinsic parameter, x w ,y w ,z w Indicates the actual position coordinates of the lane line.

[0050] In smart cars, there is usually a camera calibration device, and the camera's internal and external parameters can be obtained by reading from a designated storage area.

[0051] Through the above transformation, the coordinate information of the lane line in the world coordinate system can be obtained.

[0052] Step S140: The actual position of the lane line and the historical lane line information are integrated to obtain the lane line map.

[0053] Finally, in order to improve the accuracy, the actual position of the lane line generated this time can be fused with the historical lane line information. The historical lane line information can be the lane line map generated when the target vehicle or other vehicles pass through the same section of the same road, and the final lane line map is obtained after fusion.

[0054] The specific fusion process may include taking the coordinate system where the lane line is actually located as a reference, converting the historical lane line information to the coordinate system where the lane line is actually located through a conversion matrix, performing point-to-point fusion, and correcting the fusion result. After fusion, the final lane line map is obtained.

[0055] It should be noted that when a vehicle collects data on a route for the first time, if there is no historical lane line information, it may not be integrated.

[0056] Depend on Figure 1 As shown, this application uses a vehicle-mounted monocular camera to shoot real-time road videos and RTK data obtained by GPS, combined with a deep learning model, to identify lane line information in each frame of mapping image data, and converts the predicted lane line predicted position to the world coordinate system to obtain the actual lane line position, and fuses the actual lane line position obtained this time with the historical lane line information of vehicles passing the same road in historical time to obtain the lane line map. This application only uses a combination of a monocular camera and RTK-GPS to construct a lane line map, with low acquisition cost, high operating efficiency, and can achieve real-time mapping; high acquisition accuracy, which can meet the needs of lightweight autonomous driving; and low equipment deployment cost, which can update and maintain maps at a high frequency; small amount of calculation, wide application scenarios, and strong practicality.

[0057] In some embodiments of the present application, in the above method, the lane line information in the mapping image data is identified based on the deep learning model, including: inputting the mapping image data into the deep learning model for identification to obtain the lane line information, wherein the deep learning model is an mmclassification training classification network, the mmclassification training classification network includes a backbone network and a classification head network connected in sequence, and the mmclassification training classification network is trained based on the Tusimple data set and the Culane data set; the lane line predicted position, RTK position data, and frame time data in the identified lane line information are stored accordingly.

[0058] Figure 2 A schematic diagram of the structure of the mmclassification training classification network according to some embodiments of the present application is shown. Figure 2 It can be seen that the mmclassification training classification network 200 includes a backbone network 210, a neck network 220, and a classification head network 230 connected in sequence, wherein the backbone network 210 serves as the input end of the deep learning model 200, and the classification head network 230 serves as the output end of the mmclassification training classification network 200, the backbone network 210 includes a multi-layer structure, and the classification head network 230 also includes a multi-layer network.

[0059] Among them, the backbone network, which can be called the main network, is a network used for feature extraction. It can be a part of the overall deep learning model network and can be used to extract image information and generate feature maps for use by the subsequent connected networks. Usually, VGGNet network or Resnet network can be used because these backbone feature extraction capabilities are very strong, and they can load existing model parameters trained on large data sets, and then connect their own network for fine-tuning.

[0060] The neck network 220 is used to be equivalent to a pooling layer, mainly used for global average pooling.

[0061] The classification head network 220 may be called a classification head, and is mainly used to determine the category of an image based on the features extracted by the backbone network.

[0062] In this application, the Tusimple dataset and the Culane dataset are used to train the mmclassification training classification network to obtain a deep learning model for lane line recognition. Among them, the Tusimple dataset and the Culane dataset are publicly available large and small training sets for lane line recognition. Taking the Culane dataset as an example, CULane is a large-scale challenging dataset for academic research on lane detection. It is collected by cameras installed on six different vehicles driven by different drivers in Beijing. More than 55 hours of video were collected and 133,235 frames were extracted. The dataset is divided into 88880 training sets, 9675 validation sets, and 34680 test sets. The test set is divided into normal and 8 challenging categories, corresponding to 9 examples respectively. For each frame, the lane is manually annotated with a cubic spline curve. For cases where the lane markings are obscured or invisible by the vehicle, the lane is still annotated according to the context. In addition, the algorithm is able to distinguish obstacles on the road.

[0063] The training process is an iterative process. After a round of training, the model parameters are adjusted according to the results of the training process, and then the updated model parameters are used for the next round of training until the preset training requirements are met. For example, if the preset training requirement is 20,000 iterations, the entire training process ends when this number of iterations is reached, and a deep learning model for lane line recognition is obtained.

[0064] The lane line position in the lane line recognition result obtained by the deep learning model to identify the mapping image data is recorded as the lane line predicted position. In addition, the deep learning model can also recognize the RTK position data and frame time data contained in the image data, and the lane line predicted position, RTK position data, and frame time data in the identified lane line information can be stored one by one, and these data can be used to generate a lane line map.

[0065] Sometimes the road conditions are complicated, or the weather is not very good, the light is weak, and not every frame of the video data captured by the on-board monocular camera is good, which causes the deep learning model to recognize lane lines. There may be frames where some lane lines are not recognized or even frames where lane lines are not recognized at all. During the recognition process, lane lines are usually composed of discrete points. In this application, the image where the predicted position of the lane lines in the mapping image data contains unrecognized points and the number of the unrecognized points is less than the preset threshold is defined as a partially unrecognized frame, and the image where the predicted position of the lane lines in the mapping image data contains unrecognized points and the number of the unrecognized points is greater than or equal to the preset threshold is defined as an unrecognized frame. For partially unrecognized frames, they can be supplemented according to the constraints of the lane lines, while for unrecognized frames, manual proofreading is required.

[0066] The moments (frame time data) of lane lines that are not fully recognized in all frames of the mapping image data processed by the deep learning model are recorded. Then, using constraints such as the continuity of lane lines, a logical reasoning program is designed to exclude some unrecognized frames. For some unrecognized frames, constraints such as the continuity of lane lines can be used to automatically complete them without manual proofreading.

[0067] For unrecognized frames, in some embodiments of the present application, the following processing can be performed: according to the lane line constraint conditions, at least one unrecognized frame is determined; the lane line completion parameters of the unrecognized frames are received, and the completed lane line information of each unrecognized frame is determined; the actual position of the lane line and the historical lane line information are integrated to obtain the lane line map, including: the actual position of the lane line, the historical lane line information and the completed lane line information are integrated to obtain the lane line map.

[0068] That is to say, for the points that cannot be determined in the determined unrecognized frames, manual annotation is required, and they are inferred and judged again to obtain the completed lane results. Among them, receiving the lane line completion parameters of the unrecognized frames and determining the completed lane line information of each of the unrecognized frames includes: receiving the lane line completion parameters of each unrecognized frame through the front-end interface, and determining the completed lane line information of each of the unrecognized frames according to the mapping image data, lane line completion parameters and timestamps of each unrecognized frame.

[0069] Figure 3 A schematic diagram of a correction front-end interface of a map construction method according to an embodiment of the present application is shown. Figure 3 It can be seen that Figure 3 In the lower right side of the unrecognized frame in the image, since the lane lines on the ground are worn and the light is poor, it is difficult for the deep learning model to recognize the lane lines. For such unrecognizable points, manual annotation can be performed, and the parameters of the points that are not determined during the manual annotation process, including but not limited to time, position coordinates, etc., are recorded as lane line completion parameters of the unrecognized frame to determine the completed lane lines of each unrecognized frame. In the step of fusing the actual position of the lane line and the historical lane line information to obtain the lane line map, the obtained completed lane line is also fused therein, that is, the actual position of the lane line, the historical lane line information and the completed lane line information are fused to obtain the lane line map.

[0070] In some embodiments of the present application, in the above method, the original position of the lane line is converted to the world coordinate system to obtain the actual position of the lane line, and also includes: if the intrinsic parameters and extrinsic parameters of the on-board monocular camera cannot be read, selecting a position estimation image from the mapping image data, the position estimation image contains at least three lane lines, and the monocular camera is installed at the center of the vehicle; determining multiple intersection coordinates of multiple baselines in the position estimation image and multiple lane lines, wherein the multiple baselines are respectively perpendicular to the multiple lane lines; determining the inverse perspective transformation matrix of the position estimation image according to the determined multiple intersection coordinates and the specified initial width of the center lane of the position estimation image; determining the width of each lane in the position estimation image according to the inverse perspective transformation matrix; transforming the first center of the center lane and the second center of the position estimation image according to the inverse perspective transformation matrix to obtain the ratio value of the actual deviation of the vehicle from the second center; determining the actual position of the lane line according to the ratio value and the width of each lane.

[0071] If the intrinsic and extrinsic parameters of the monocular camera are not read, you can follow the steps below to process. Specifically, assume that the monocular camera is in the middle of the window of the collection vehicle (target vehicle), the lens is facing the direction of the vehicle, and the lane width is a specified value, such as 3m (except for the emergency lane).

[0072] First, a position estimation image is selected from the mapping image data, wherein the position estimation image contains at least three lane lines, and at least one mapping image data with good lane recognition is selected as the position estimation image, wherein the position estimation image contains at least two regular lanes (3 lane lines), such as Figure 4 As shown. Figure 4 In the position estimation image shown, the intersection points of each lane line and a group of (two) parallel lines (baselines) parallel to the bottom edge of the image are marked (multiple dots in the figure), and their pixel coordinates are recorded. In some embodiments of the present application, the baseline should be selected as close to the center of the position estimation image as possible, because the image distortion is minimal in the central area.

[0073] Then, the inverse perspective transformation matrix of the position estimation image is determined. According to the prior conditions, the widths of the two lanes should be the same and the lane lines should be parallel. The pixel width of the lane in the center of the image is set to the initial lane width value, such as 3m (the width of the standard lane line is 3m). Based on the coordinates of the determined multiple intersection points, the inverse perspective transformation is cyclically calculated until the parallel and equidistant constraints of the lanes are met, and the inverse perspective transformation matrix of the position estimation image is obtained.

[0074] According to the inverse perspective transformation matrix, the width of each lane in the position estimation image is determined. Specifically, the inverse perspective transformation matrix is ​​calculated and all lane lines are projected into a bird's-eye view to obtain the proportional relationship of the width of all lanes. Referring to the initial lane width value of 3m, the width of other lanes can be obtained according to the proportional relationship. The first center of the designated lane and the second center of the position estimation image are transformed according to the inverse perspective transformation matrix to obtain the proportional value of the actual deviation of the vehicle from the center of the image. Specifically, based on the assumption that the monocular camera is installed at the center of the vehicle, the deviation between the center of the center lane in the position estimation image and the center of the image is the offset distance of the center of the vehicle in the center lane. The coordinates of multiple intersections marked in the position estimation image are mapped using the inverse perspective transformation matrix. The difference in the transformed distance is the proportional value of the actual deviation of the target vehicle from the center of the position estimation image. Finally, the actual position of the lane line is determined according to the proportional value of the actual deviation of the target vehicle from the center of the position estimation image and the width of each lane.

[0075] Figure 5 A schematic diagram showing a process flow of a method for constructing a lane line map according to another embodiment of the present application is shown. Figure 5 It can be seen that this embodiment includes:

[0076] The camera video data captured by the vehicle-mounted monocular camera and the RTK data collected by the GPS are obtained, the camera video data is preprocessed, and the camera video data is matched according to the RTK data to obtain multi-frame mapping image data.

[0077] Train a deep learning model for lane line detection, use the deep learning model to identify lane lines in multi-frame mapping image data, and obtain the predicted position of lane lines.

[0078] Determine whether the camera's intrinsic and extrinsic parameters can be read. If so, use the camera's intrinsic and extrinsic parameters to transform the predicted lane line position into the world coordinate system to obtain the actual lane line position; if not, use calculation methods to estimate the actual lane line position.

[0079] Partially recognized frames and unrecognized frames are determined. For unrecognized frames, correction parameters are obtained through the manual correction front-end interface, and lane line information is generated. For partially recognized frames, completion processing is performed according to lane constraint conditions.

[0080] Obtain the historical lane lines generated when the vehicle passes the same distance, fuse the actual position of the lane lines, the historical lane lines and the completed lane lines to obtain the target lane line map.

[0081] Figure 6 A schematic diagram of the structure of a lane line map construction device according to an embodiment of the present application is shown. Figure 6 It can be seen that the device 600 comprises:

[0082] The preprocessing unit 610 is used to obtain camera video data and RTK data, and perform matching processing on the camera video data according to the RTK data to obtain multiple frames of mapping image data; wherein the camera video data is obtained by shooting with a vehicle-mounted monocular camera;

[0083] An identification unit 620 is used to identify lane line information in each frame of mapping image data based on a deep learning model, where the lane line information includes a predicted position of the lane line;

[0084] A conversion unit 630, used to convert the predicted lane line position into a world coordinate system to obtain an actual lane line position;

[0085] The fusion unit 640 is used to fuse the actual position of the lane line and the historical lane line information to obtain the lane line map.

[0086] In some embodiments of the present application, the above-mentioned device also includes: a completion unit, which is used to determine at least one frame of partially unrecognized frame before the step of converting the predicted lane line position to the world coordinate system to obtain the actual lane line position, wherein the partially unrecognized frame is an image in which the predicted lane line position in the mapping image data contains unrecognized points and the number of unrecognized points is less than a preset threshold; according to the lane line constraint condition, the multiple unrecognized points in each of the partially unrecognized frames are completed.

[0087] In some embodiments of the present application, in the above-mentioned device, the completion unit is also used to determine at least one frame of unrecognized frame, wherein the unrecognized frame is an image in which the lane line prediction position in the mapping image data contains unrecognized points, and the number of the unrecognized points is greater than or equal to a preset threshold; receive the lane line completion parameters of the unrecognized frame, and determine the completed lane line information of the unrecognized frame; the fusion unit 640 is used to fuse the actual position of the lane line, the historical lane line information and the completed lane line information to obtain the lane line map.

[0088] In some embodiments of the present application, in the above-mentioned device, the preprocessing unit 610 is used to align the timestamps of the camera video data and the RTK data; according to the timestamp and the position information of the RTK data, each frame in the camera video data is matched one by one with each frame of the RTK data; for a moment, a frame corresponding to the moment in the camera data is selected as the mapping image data of the moment.

[0089] In some embodiments of the present application, in the above-mentioned device, the deep learning model is an mmclassification training classification model; the recognition unit 620 is used to input the mapping image data into the deep learning model for recognition to obtain lane line information, wherein the mmclassification training classification model includes a backbone network, a neck network and a classification head network connected in sequence, and the mmclassification training classification model is trained based on the Tusimple data set and the Culane data set; the lane line predicted position, RTK position data, and frame time data in the identified lane line information are stored accordingly.

[0090] In some embodiments of the present application, in the above device, the conversion unit 630 is used to read the intrinsic parameters and extrinsic parameters of the vehicle-mounted monocular camera; convert the predicted position of the lane line to the world coordinate system according to the following formula to obtain the actual position of the lane line:

[0091]

[0092] Among them, u, v represent the predicted position coordinates of the lane line, Z c represents the camera depth of field, K represents the camera intrinsic parameter, R, T represents the camera extrinsic parameter, x w ,y w ,z w Indicates the actual position coordinates of the lane line.

[0093] In some embodiments of the present application, in the above-mentioned device, the conversion unit 630 is also used to select a position estimation image from the mapping image data if the intrinsic parameters and extrinsic parameters of the vehicle-mounted monocular camera cannot be read, and the position estimation image contains at least three lane lines, and the monocular camera is installed at the center of the vehicle; determine the coordinates of multiple intersections of multiple baselines and multiple lane lines in the position estimation image, wherein the multiple baselines are respectively perpendicular to the multiple lane lines; determine the inverse perspective transformation matrix of the position estimation image according to the determined multiple intersection coordinates and the specified initial width of the center lane of the position estimation image; determine the width of each lane in the position estimation image according to the inverse perspective transformation matrix; transform the first center of the center lane and the second center of the position estimation image according to the inverse perspective transformation matrix to obtain the ratio value of the actual deviation of the vehicle from the second center; determine the actual position of the lane line according to the ratio value and the width of each lane.

[0094] It can be understood that the above-mentioned lane map construction device can implement the various steps of the lane map construction method provided in the aforementioned embodiment, and the relevant explanations about the lane map construction method are applicable to the lane map construction device, which will not be repeated here.

[0095] Figure 7 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 7 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0096] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0097] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0098] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a lane line map construction device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0099] Acquiring raw data, wherein the raw data includes high-resolution images and DEM data;

[0100] Converting the original data into graph structure data, wherein the graph structure data includes a graph node matrix and a connection matrix;

[0101] Build and initialize the graph neural network model;

[0102] The graph structure data is input into the graph neural network model for training to obtain a landslide body recognition model.

[0103] The above application Figure 6 The method performed by the lane line map construction device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0104] The electronic device may also perform Figure 6 A method for executing a lane line map construction device in the present invention, and realizing a lane line map construction device in the present invention Figure 6 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.

[0105] The present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to execute Figure 6 The method executed by the lane line map construction device in the illustrated embodiment is specifically used to execute:

[0106] Acquiring raw data, wherein the raw data includes high-resolution images and DEM data;

[0107] Converting the original data into graph structure data, wherein the graph structure data includes a graph node matrix and a connection matrix;

[0108] Build and initialize the graph neural network model;

[0109] The graph structure data is input into the graph neural network model for training to obtain a landslide body recognition model.

[0110] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

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

[0112] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0114] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0115] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0116] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0117] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0118] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0119] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for constructing a lane line map, characterized in that: include: Acquire camera video data and RTK data, and perform matching processing on the camera video data according to the RTK data to obtain multiple frames of mapping image data; wherein the camera video data is captured by a vehicle-mounted monocular camera; Based on the deep learning model, identify lane line information in each frame of mapping image data, wherein the lane line information includes a predicted position of the lane line; Convert the predicted lane line position to a world coordinate system to obtain the actual lane line position; The lane line map is obtained by fusing the actual position of the lane line and the historical lane line information; The step of converting the predicted lane line position into a world coordinate system to obtain the actual lane line position includes: Reading the intrinsic parameters and extrinsic parameters of the vehicle-mounted monocular camera; The predicted lane line position is converted to the world coordinate system according to the following formula to obtain the actual lane line position: Among them, u, v represent the predicted position coordinates of the lane line, Z c represents the camera depth of field, K represents the camera intrinsic parameter, R, T represents the camera extrinsic parameter, x w ,y w ,z w Indicates the actual position coordinates of the lane line; If the intrinsic parameters and extrinsic parameters of the vehicle-mounted monocular camera cannot be read, a position estimation image is selected from the mapping image data, wherein the position estimation image contains at least three lane lines and the monocular camera is installed at the center of the vehicle; Determining coordinates of a plurality of intersections of a plurality of baselines and a plurality of lane lines in the position estimation image, wherein the plurality of baselines are respectively perpendicular to the plurality of lane lines; determining an inverse perspective transformation matrix of the position estimation image based on the determined coordinates of the plurality of intersection points and a specified initial width of a center lane of the position estimation image; Determining the width of each lane in the position estimation image according to the inverse perspective transformation matrix; Transforming the first center of the center lane and the second center of the position estimation image according to the inverse perspective transformation matrix to obtain a ratio value of the actual deviation of the vehicle from the second center; The actual position of the lane line is determined according to the ratio value and the width of each lane.

2. The method according to claim 1, characterized in that Before the step of converting the predicted lane line position into a world coordinate system to obtain the actual lane line position, the method further includes: Determine at least one partially unrecognized frame, wherein the partially unrecognized frame is an image in which the predicted position of the lane line in the mapping image data contains unrecognized points, and the number of the unrecognized points is less than a preset threshold; According to the lane line constraint condition, a plurality of unrecognized points in each of the partially unrecognized frames are completed.

3. The method according to claim 2, characterized in that The method further comprises: Determine at least one unrecognized frame, wherein the unrecognized frame is an image in which the predicted position of the lane line in the mapping image data contains unrecognized points, and the number of the unrecognized points is greater than or equal to a preset threshold; Receiving lane line completion parameters of the unrecognized frame, and determining completed lane line information of the unrecognized frame; The fusing the actual lane line position and the historical lane line information to obtain the lane line map includes: The lane line map is obtained by fusing the actual position of the lane line, the historical lane line information and the supplemented lane line information.

4. The method according to claim 1, characterized in that: The acquiring of camera video data and RTK data, and matching processing of the camera video data according to the RTK data to obtain multiple frames of mapping image data, includes: Aligning the timestamps of the camera video data and the RTK data; According to the timestamp and the position information of the RTK data, each frame in the camera video data corresponds to each frame of the RTK data one by one; For a moment, a frame corresponding to the moment in the camera data is selected as the mapping image data at the moment.

5. The method according to claim 1, characterized in that The deep learning model is an mmclassification training classification model; The identifying the lane line information in the mapping image data based on the deep learning model includes: Input the mapping image data into the deep learning model for recognition to obtain lane line information, wherein the mmclassification training classification model includes a backbone network, a neck network and a classification head network connected in sequence, and the mmclassification training classification model is trained based on the Tusimple data set and the Culane data set; The lane line predicted position, RTK position data, and frame time data in the identified lane line information are stored correspondingly.

6. A lane line map construction device, characterized in that: include: A preprocessing unit, used to obtain camera video data and RTK data, and perform matching processing on the camera video data according to the RTK data to obtain multiple frames of mapping image data; wherein the camera video data is obtained by shooting with a vehicle-mounted monocular camera; An identification unit, configured to identify lane line information in each frame of mapping image data based on a deep learning model, wherein the lane line information includes a predicted position of the lane line; A conversion unit, converting the predicted position of the lane line into a world coordinate system to obtain the actual position of the lane line; A fusion unit, used for fusing the actual position of the lane line and the historical lane line information to obtain the lane line map; The conversion unit is specifically used to: read the intrinsic parameters and extrinsic parameters of the vehicle-mounted monocular camera; The predicted lane line position is converted to the world coordinate system according to the following formula to obtain the actual lane line position: Among them, u, v represent the predicted position coordinates of the lane line, Z c represents the camera depth of field, K represents the camera intrinsic parameter, R, T represents the camera extrinsic parameter, x w ,y w ,z w Indicates the actual position coordinates of the lane line; If the intrinsic parameters and extrinsic parameters of the vehicle-mounted monocular camera cannot be read, a position estimation image is selected from the mapping image data, wherein the position estimation image contains at least three lane lines and the monocular camera is installed at the center of the vehicle; Determining coordinates of a plurality of intersections of a plurality of baselines and a plurality of lane lines in the position estimation image, wherein the plurality of baselines are respectively perpendicular to the plurality of lane lines; determining an inverse perspective transformation matrix of the position estimation image based on the determined coordinates of the plurality of intersection points and a specified initial width of a center lane of the position estimation image; Determining the width of each lane in the position estimation image according to the inverse perspective transformation matrix; Transforming the first center of the center lane and the second center of the position estimation image according to the inverse perspective transformation matrix to obtain a ratio value of the actual deviation of the vehicle from the second center; The actual position of the lane line is determined according to the ratio value and the width of each lane.

7. An electronic device comprising: processor; as well as A memory arranged to store computer executable instructions, which when executed cause the processor to perform the method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, enable the electronic device to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and system for supporting real-time fusion updating of high-precision map lane lines

    CN109059954A

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

    CN112541396A

  • Positioning method and system, electronic equipment and computer readable storage medium

    CN113393520A

  • High-precision map lane generation method and device

    CN113705271A

  • Lane line prediction method and device, electronic equipment and computer readable storage medium

    CN113903014A