Map element labeling method and device, electronic equipment and storage medium
By processing and multi-modal fusion of video and point cloud data of vehicles in target driving scenarios, and using pre-trained map element recognition models to automatically label map elements, the low efficiency and inaccurate labeling of map elements in the existing technology is solved. solves the problem and achieves more efficient and accurate annotation results.
Patent Information
- Application Number
- CN202411063270.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-08-05
AI Technical Summary
The labeling efficiency and accuracy of map elements in the existing technology are low, mainly due to efficiency and accuracy issues caused by manual labeling.
By obtaining the video data and point cloud data of the vehicle in the target driving scene, it is divided into subsets to identify dynamic and static targets, coordinate transformation and multi-modal fusion are performed, and the pre-trained map element recognition model is used for map element recognition and automatic Label.
It improves the efficiency and accuracy of map feature annotation, reduces human intervention, and enhances the robustness of the recognition model and the accuracy of annotation.
Smart Images

Figure CN118587710A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data annotation technology, and in particular to a map element annotation method, device, electronic device and storage medium. Background Art
[0002] Map element annotation refers to marking various geographic information on the map, such as lane lines, curbs, zebra crossings, etc. In this way, when the vehicle uses the autonomous driving model for autonomous driving training, vehicle behavior analysis and vehicle trajectory prediction can be performed based on the annotated map elements, so map element annotation is of great significance.
[0003] However, in the prior art, map elements are usually annotated manually, which results in low annotation efficiency and low accuracy. Therefore, how to improve the efficiency and accuracy of map element annotation has become a technical problem to be solved urgently. Summary of the invention
[0004] The present application provides a map element annotation method, device, electronic device and storage medium to solve the problem that map elements are usually annotated manually in the prior art, which has low annotation efficiency and low accuracy.
[0005] In a first aspect, the present application provides a method for labeling map elements, the method comprising: Acquire video data and point cloud data collected by the vehicle in a target driving scene, and divide the video data and the point cloud data according to a preset collection time or a preset collection distance to obtain multiple video data subsets and multiple point cloud data subsets; Identify dynamic targets and static targets in each of the multiple point cloud data subsets, remove the point cloud corresponding to the dynamic target, and perform coordinate transformation on the point cloud corresponding to the static target to obtain a static map corresponding to each point cloud data subset; Performing multimodal fusion on the static map and the video data to obtain a bird's-eye view corresponding to each point cloud data subset, and inputting the bird's-eye view into a pre-trained map element recognition model to perform map element recognition to obtain a recognition result; The static map corresponding to each point cloud data subset is annotated using the recognition result to obtain the annotation result corresponding to each point cloud data subset.
[0006] Optionally, the map element recognition model includes a feature extractor, a regressor and a classifier; The step of inputting the bird's-eye view into a pre-trained map element recognition model to perform map element recognition to obtain a recognition result includes: Inputting the bird's-eye view into the feature extractor for feature extraction to obtain feature information corresponding to each map element in the target driving scene; Inputting the feature information corresponding to each map element into the regressor for regression processing to obtain the geometric attributes corresponding to each map element, and inputting the feature information corresponding to each map element into the classifier for classification processing to obtain the type corresponding to each map element; The geometric attributes corresponding to each map element and the type corresponding to each map element are determined as the recognition result.
[0007] Optionally, the step of inputting the bird's-eye view into the feature extractor for feature extraction to obtain feature information corresponding to each map element includes: Adjust the attention weights corresponding to each map element; The bird's-eye view is input into the feature extractor, and feature extraction is performed using the adjusted attention weights corresponding to each map element to obtain feature information corresponding to each map element.
[0008] Optionally, before inputting the bird's-eye view into a pre-trained map element recognition model to perform map element recognition and obtain a recognition result, the method further includes: Iteratively training the model to be trained is performed using a first prediction branch and a second prediction branch, respectively, wherein the data input to the model to be trained by the first prediction branch is a bird's-eye view sample, the data input to the model to be trained by the second prediction branch is a positive sample and a plurality of negative samples paired with the positive sample, and the model to be trained includes a feature extractor, a regressor, and a classifier; The loss value of the model to be trained is calculated using a preset loss function, and when the loss value is lower than a preset threshold, the iterative training of the model to be trained is stopped to obtain the map element recognition model, wherein the loss value is the sum of the loss value of the first prediction branch and the loss value of the second prediction branch.
[0009] Optionally, the performing multimodal fusion of the static map and the video data to obtain a bird's-eye view corresponding to each point cloud data subset includes: generating dense point cloud data according to the static map, and generating a texture map according to the video data; spatially aligning the dense point cloud data and the texture map; The spatially aligned dense point cloud data and the texture map are multimodally fused to obtain the bird's-eye view.
[0010] Optionally, the identifying a dynamic target and a static target in each of the plurality of point cloud data subsets comprises: Acquire target information in each frame of point cloud images in a target point cloud data subset, wherein the target point cloud data subset is any point cloud data subset in the multiple point cloud data subsets, and the target point cloud data subset includes multiple frames of point cloud images; Generate a target list corresponding to each frame of the point cloud image according to the target information, wherein the target list is used to record the target type, position, size and motion state contained in each frame of the point cloud image; Based on the target list corresponding to each frame of the point cloud image, dynamic targets and static targets in the target point cloud data subset are identified.
[0011] Optionally, the step of using the recognition results to annotate a static map corresponding to each point cloud data subset to obtain an annotation result corresponding to each point cloud data subset includes: Converting the recognition result into a data structure required by a preset annotation tool; The converted recognition results are imported into the preset annotation tool, and the static map corresponding to each point cloud data subset is annotated using the preset annotation tool to obtain the annotation results corresponding to each point cloud data subset.
[0012] In a second aspect, the present application further provides a map element annotation device, the device comprising: An acquisition module, used to acquire video data and point cloud data collected by the vehicle in a target driving scene, and divide the video data and the point cloud data according to a preset acquisition time or a preset acquisition distance to obtain multiple video data subsets and multiple point cloud data subsets; an identification module, used to identify dynamic targets and static targets in each of the plurality of point cloud data subsets, remove the point cloud corresponding to the dynamic target, and perform coordinate transformation on the point cloud corresponding to the static target, so as to obtain a static map corresponding to each point cloud data subset; A fusion and recognition module, used for performing multimodal fusion of the static map and the video data to obtain a bird's-eye view corresponding to each point cloud data subset, and inputting the bird's-eye view into a pre-trained map element recognition model to perform map element recognition to obtain a recognition result; The labeling module is used to label the static map corresponding to each point cloud data subset using the recognition result to obtain the labeling result corresponding to each point cloud data subset.
[0013] In a third aspect, the present application further provides an electronic device, including 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; Memory, used to store computer programs; The processor is used to implement the map element labeling method described in any one of the first aspects when executing the program stored in the memory.
[0014] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the map element labeling method described in any one of the first aspects is implemented.
[0015] The above-mentioned technical solution provided by the present application has the following advantages over the prior art: the method provided by the present application obtains the video data and point cloud data collected by the vehicle in the target driving scene, and divides the video data and the point cloud data according to a preset collection time or a preset collection distance to obtain multiple video data subsets and multiple point cloud data subsets; identifies dynamic targets and static targets in each point cloud data subset of the multiple point cloud data subsets, removes the point cloud corresponding to the dynamic target, and performs coordinate transformation on the point cloud corresponding to the static target to obtain a static map corresponding to each point cloud data subset; performs multimodal fusion of the static map and the video data to obtain a bird's-eye view corresponding to each point cloud data subset, and inputs the bird's-eye view into a pre-trained map element recognition model to perform map element recognition to obtain a recognition result; uses the recognition result to annotate the static map corresponding to each point cloud data subset to obtain an annotation result corresponding to each point cloud data subset. Through the above method, the map elements in the static map can be automatically identified by using the pre-trained map element recognition model, and the identified map elements can be automatically labeled without manual labeling of the map elements, thereby improving the efficiency and accuracy of map element labeling. In addition, since the static map and video data need to be multimodally fused before the map elements are identified by using the pre-trained map element recognition model, the accuracy and robustness of map element recognition are improved, which further improves the accuracy of map element labeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0019] Figure 1 A flowchart of a map element annotation method provided in an embodiment of the present application; Figure 2 A schematic diagram of a process for obtaining map element recognition results provided in an embodiment of the present application; Figure 3 A schematic diagram of a process for constructing a static map provided in an embodiment of the present application; Figure 4 A schematic diagram of a static map provided in an embodiment of the present application; Figure 5 A schematic diagram of a process of marking map elements provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of a map element annotation device provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 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 this application.
[0021] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0022] In order to solve the problem that map elements are usually labeled manually in the prior art, which has low labeling efficiency and low accuracy, the present application provides a map element labeling method, device, electronic device and storage medium, which can improve the efficiency and accuracy of map element labeling.
[0023] See also Figure 1 , Figure 1 A flowchart of a map element annotation method provided in an embodiment of the present application is shown below. Figure 1 As shown, the map element annotation method may include the following steps: Step 101: Obtain video data and point cloud data collected by a vehicle in a target driving scene, and divide the video data and point cloud data according to a preset collection time or a preset collection distance to obtain multiple video data subsets and multiple point cloud data subsets.
[0024] Specifically, the target driving scene can be any driving scene such as daytime, nighttime, rainy day, sunny day, highway, urban area, etc. The video data and point cloud data are data acquired through the vehicle perception system. As an optional implementation, the video data and point cloud data can be acquired by a true value system acquisition vehicle. The sensors required for the true value system acquisition vehicle here can include laser radar, millimeter wave radar, camera, and real-time dynamic differential positioning technology (Real-Time Kinematic, referred to as RTK), etc.
[0025] The above-mentioned preset acquisition time and the above-mentioned preset acquisition distance can be set according to actual needs, and the embodiments of the present application do not make specific limitations. As an optional implementation, the above-mentioned preset acquisition time can be 30 seconds, and the above-mentioned preset acquisition distance can be 300 meters. When dividing the video data and the point cloud data, the preset acquisition time can be used for division, that is, the video data and the point cloud data are divided into a section every 30 seconds, forming multiple video data subsets and multiple point cloud data subsets with time as the dimension; or, the preset acquisition distance can be used for division, that is, the video data and the point cloud data are divided into a section every 300 meters of driving distance, forming multiple video data subsets and multiple point cloud data subsets with driving distance as the dimension. Each video data subset includes multiple continuous video frames, and each point cloud data subset includes multiple continuous point cloud frames.
[0026] It should be noted that when dividing the video data and point cloud data, you can choose whether to divide according to the preset collection time or the preset collection distance according to the target driving scene. For example, for congested urban areas, due to the high risk of traffic jams or slow driving speeds, you can divide according to the preset collection distance; while for non-congested highways, you can divide according to the preset collection time.
[0027] Step 102: Identify dynamic targets and static targets in each point cloud data subset among the multiple point cloud data subsets, remove the point cloud corresponding to the dynamic target, and perform coordinate transformation on the point cloud corresponding to the static target to obtain a static map corresponding to each point cloud data subset.
[0028] Specifically, the above-mentioned dynamic targets refer to objects that move over time, such as vehicles and pedestrians, and the above-mentioned static targets refer to objects that do not move over time, such as buildings and ground elements.
[0029] In this step, the targets in each frame of the point cloud image in each point cloud data subset can be identified, and dynamic targets and static targets can be identified based on the position changes or shape changes of the targets in each frame of the point cloud image. Then, the point clouds corresponding to the dynamic targets in each frame of the point cloud image can be removed, and then the point clouds corresponding to the static targets in each frame of the point cloud image can be transformed in coordinates and spliced, thereby obtaining the static maps corresponding to each point cloud data subset.
[0030] The traditional mapping methods of Simultaneous Localization and Mapping (SLAM) technology have the following disadvantages: ① High computational complexity: Traditional SLAM methods usually use complex mathematical models and algorithms to estimate the camera's motion trajectory and environmental map, which may lead to high computational complexity, especially when dealing with large-scale scenes. ② Requires a lot of computing resources: Due to the high computational complexity, traditional SLAM methods usually require a lot of computing resources, including processor performance and memory. ③ Sensitive to initial estimates: Traditional SLAM methods are sensitive to the accuracy and stability of initial estimates. Incorrect initial estimates may lead to inaccurate or failed subsequent mapping. ④ High requirements for sensor accuracy: Traditional SLAM methods have high requirements for sensor accuracy, such as the camera's intrinsic parameters, the accuracy of the inertial measurement unit (IMU), etc., which may increase hardware costs and dependence on the environment.
[0031] In the present application, a static map can be obtained by combining three-dimensional (3D) target detection and coordinate transformation, achieving accurate three-dimensional environment modeling, providing good mapping data for the subsequent effective identification of map elements, without the interference of dynamic noise, and more efficiently and accurately identifying map elements, especially ground elements such as lane lines, curbs and zebra crossings.
[0032] Step 103: Multimodally fuse the static map and the video data to obtain a bird's-eye view corresponding to each point cloud data subset, and input the bird's-eye view into a pre-trained map feature recognition model to perform map feature recognition to obtain a recognition result.
[0033] In order to deal with the problem of unclear dense point clouds caused by LiDAR in special materials, damaged road surfaces or waterlogging, as well as the instability of LiDAR data calibration, and to improve the recall rate of annotations, semantic maps and texture maps are introduced in the embodiments of this application. These image types can provide more information and help improve the recognition accuracy of map elements. It should be noted that the semantic map and texture map here are images and texture maps obtained based on video data, respectively.
[0034] Texture maps can be calibrated with external parameters of LiDAR and visual cameras, and pixel-level fusion can be achieved to obtain the reconstruction result of road texture. This kind of image can provide rich information. In theory, as long as there is scene data of driving conditions, it can be annotated. Semantic maps can use the perception results obtained by the fusion of LiDAR and camera. Introducing these perception results can handle some situations with weak texture.
[0035] In this step, the static map and video data are multimodally fused to obtain a bird's eye view (BEV) corresponding to each point cloud data subset, and the bird's eye view is input into a pre-trained map element recognition model to perform map element recognition and obtain a recognition result. It should be noted that the pre-trained map element recognition model can be any deep learning model or neural network model that can realize map element recognition, and the embodiment of the present application does not specifically limit it.
[0036] Step 104: annotate the static map corresponding to each point cloud data subset using the recognition result to obtain the annotation result corresponding to each point cloud data subset.
[0037] After obtaining the recognition results of the pre-trained map feature recognition model, the recognition results can be directly used to annotate the static map corresponding to each point cloud data subset to obtain the annotation results corresponding to each point cloud data subset; or the recognition results can be first converted into a data structure suitable for a preset annotation tool, and then the converted recognition results can be annotated to obtain the annotation results corresponding to each point cloud data subset.
[0038] In this embodiment, the map elements in the static map can be automatically identified by using the pre-trained map element recognition model, and the identified map elements can be automatically labeled without manually labeling the map elements, thereby improving the efficiency and accuracy of map element labeling. In addition, before using the pre-trained map element recognition model to recognize the map elements, the static map and video data need to be multimodally fused, thereby improving the accuracy and robustness of map element recognition, which further improves the accuracy of map element labeling.
[0039] Further, the map element recognition model includes a feature extractor, a regressor, and a classifier; The above step 103, inputting the bird's-eye view into a pre-trained map element recognition model to perform map element recognition, and obtaining a recognition result, includes: The bird's-eye view is input into the feature extractor for feature extraction to obtain feature information corresponding to each map element in the target driving scene; Input the feature information corresponding to each map element into the regressor for regression processing to obtain the geometric attributes corresponding to each map element, and input the feature information corresponding to each map element into the classifier for classification processing to obtain the type corresponding to each map element; The geometric attributes corresponding to each map element and the type corresponding to each map element are determined as the recognition result.
[0040] In one embodiment, the structure of the map element recognition model is as follows: Figure 2 As shown, it may include a feature extractor, a regressor, and a classifier. Among them, the feature extractor is constructed based on the Transformer network, which can effectively capture the complex relationship between the input data and extract feature representations with semantic information. It should be noted that in the standard Transformer network, the self-attention mechanism needs to calculate the attention weight of each map element with respect to all map elements in the sequence, which results in time complexity and space complexity that are proportional to the square of the sequence length. In order to reduce the computational and memory requirements, the present application proposes a decoupled self-attention mechanism, which can decompose self-attention into two steps: query (Q), calculation of key (K), and weighted summation of value (V). This decomposition allows the model to process queries and keys independently, and then only weighted sums the values. In the hierarchical query mechanism, the model generates a set of queries (Q) at different levels, and each level of query focuses on information of different ranges or granularities. Each query level independently calculates the attention score with all keys (K), but only sums the corresponding values (V). Assume there is a sequence X, which is divided into multiple queries Q and keys K, and the corresponding values V, then it can be expressed by the following formula: ; ; ; in, , and is a learnable weight matrix.
[0041] The decoupled self-attention mechanism can be expressed as follows: ; in, is the dimension of the key K, ensuring that the scaling factor is proportional to the dimension. Represents the transposed matrix of key K.
[0042] Through this layered and decoupled approach, the map feature recognition model can process data more efficiently, because each level of query only needs to calculate the attention score with all keys, while the weighted sum of values can be performed independently. This approach reduces unnecessary calculations and memory usage, especially for long sequence data, which can significantly improve the efficiency of the model.
[0043] After feature extraction using the feature extractor, regressors and classifiers can be used to identify and segment each map element. The regressor is used to infer the geometric properties of each map element, such as location, shape, etc., while the classifier is used to determine the type of each map element, such as lane lines, curbs, etc. Finally, the recognition results of each map element are presented on the static map in a segmented manner, that is, the static map is divided into different areas, and then the recognized map elements, such as lane lines, curbs, zebra crossings, etc., are marked in each area. Doing so can make the static map clearer and easier to read, and facilitate subsequent application and analysis.
[0044] Through the above method, the map element recognition model can be used to accurately identify each map element, which is convenient for subsequent map element labeling.
[0045] Furthermore, in the above step, the bird's-eye view is input into a feature extractor for feature extraction to obtain feature information corresponding to each map element, including: Adjust the attention weights corresponding to each map element; The bird's-eye view is input into the feature extractor, and feature extraction is performed using the adjusted attention weights corresponding to each map element to obtain the feature information corresponding to each map element.
[0046] In one embodiment, in the process of extracting features using a feature extractor, an attention mechanism is introduced to enhance the model's attention to specific map elements. Therefore, the attention weights corresponding to each map element can be adjusted according to project requirements, and then the bird's-eye view is input into the feature extractor, and feature extraction is performed using the adjusted attention weights corresponding to each map element to obtain feature information corresponding to each map element. For example, by assigning different attention weights to features at different locations, the model can focus more on the ground element area to improve the recognition accuracy of the ground elements.
[0047] Furthermore, before the above step 103, inputting the bird's-eye view into the pre-trained map element recognition model to perform map element recognition and obtaining the recognition result, the method further includes: Iteratively training the model to be trained is performed using the first prediction branch and the second prediction branch, respectively, wherein the data input to the model to be trained by the first prediction branch is a bird's-eye view sample, and the data input to the model to be trained by the second prediction branch is a positive sample and a plurality of negative samples paired with the positive sample, and the model to be trained includes a feature extractor, a regressor, and a classifier; The loss value of the model to be trained is calculated using a preset loss function, and when the loss value is lower than a preset threshold, the iterative training of the model to be trained is stopped to obtain a map feature recognition model, where the loss value is the sum of the loss value of the first prediction branch and the loss value of the second prediction branch.
[0048] In one embodiment, before using the map element recognition model to recognize map elements, it is necessary to first train the map element recognition model. Specifically, the first prediction branch and the second prediction branch can be used to iteratively train the model to be trained, and the loss value of the model to be trained can be calculated using a preset loss function during the iterative training process. When the loss value is lower than a preset threshold, the iterative training of the model to be trained is stopped to obtain the map element recognition model. The preset threshold here can be set according to the actual situation and is not specifically limited here.
[0049] Since there are fewer samples of these map features relative to the entire point cloud during the map feature recognition process, there will be an imbalance in the distribution of positive and negative samples, and slow convergence may be encountered when training the model to be trained. To solve this problem, an additional one-to-many prediction branch (i.e., the second prediction branch) is introduced to increase the number of positive samples, thereby helping the model to be trained to learn faster and accelerate convergence. In order to solve the sample imbalance problem, an auxiliary one-to-many prediction branch is designed. This branch pairs a positive sample with multiple negative samples, thereby increasing the number of positive samples represented. In the model to be trained, in addition to the main branch (i.e., the first prediction branch) responsible for conventional classification or regression tasks, the additional one-to-many prediction branch focuses on learning how to distinguish positive samples from the background composed of multiple negative samples. During the training process, the loss function of the model to be trained includes not only the loss of the main branch, but also the loss of the one-to-many prediction branch. This prompts the model to optimize these two parts simultaneously during the training process.
[0050] As an optional implementation, the preset loss function can be expressed by the following formula: ; in, Represents the total loss value, represents the loss value of the first prediction branch, represents the loss value of the second prediction branch, Represents the weight parameter. Used to balance the contribution of the loss value of the first prediction branch and the loss value of the second prediction branch, the loss value of the first prediction branch is the cross entropy loss and mean square error loss. The loss value of the second prediction branch is a binary classification loss used to distinguish between a single positive sample and multiple negative samples.
[0051] By optimizing the preset loss function, the model to be trained can learn the characteristics of the main task and the auxiliary task at the same time, thereby improving the learning efficiency and convergence speed.
[0052] Furthermore, the above step 103, performing multimodal fusion of the static map and the video data to obtain a bird's-eye view corresponding to each point cloud data subset, includes: Generate dense point cloud data based on static maps, and generate texture maps based on video data; Spatial alignment of dense point cloud data and texture maps; The spatially aligned dense point cloud data and texture map are multimodally fused to obtain a bird's-eye view.
[0053] In one embodiment, see Figure 2 ,When multimodally fusing static maps and video data, dense point cloud data can be generated based on the static map, and a texture map can be generated based on the video data, and then spatially aligned the dense point cloud data and the texture map can be multimodally fused to obtain a bird’s-eye view.
[0054] It should be noted that in addition to static maps and video data, IMU data is also needed for attitude correction and motion compensation so that the dense point cloud data and texture map can be spatially aligned to ensure the accuracy of the position and shape of map elements in the bird's-eye view, which is conducive to the fusion of the generated dense point cloud and texture map to form a bird's-eye view, facilitating the subsequent use of the map element recognition model to identify map elements in the bird's-eye view.
[0055] Furthermore, the above step 102, identifying the dynamic target and the static target in each of the plurality of point cloud data subsets, includes: Obtaining target information in each frame of point cloud images in a target point cloud data subset, wherein the target point cloud data subset is any point cloud data subset in a plurality of point cloud data subsets, and the target point cloud data subset includes a plurality of frame point cloud images; Generate a target list corresponding to each frame of the point cloud image according to the target information, wherein the target list is used to record the target type, position, size and motion state contained in each frame of the point cloud image; Based on the target list corresponding to each frame of the point cloud image, the dynamic targets and static targets in the target point cloud data subset are identified.
[0056] In one embodiment, target information in each frame point cloud image in the target point cloud data subset can be obtained, and then a target list corresponding to each frame point cloud image is generated based on the target information. Then, based on the target list corresponding to each frame point cloud image, dynamic targets and static targets in the target point cloud data subset can be identified.
[0057] Specifically, if Figure 3 As shown, the target can be detected in each frame point cloud image first. For each frame point cloud image, a target list is generated to record the category, position, size, motion state and other information of each target. Dynamic targets are tracked in consecutive frame point cloud images to identify their motion patterns. Tracking algorithms (such as Kalman filter or optical flow method, etc.) are used to associate dynamic targets detected across frames, obtain corresponding points of dynamic targets in different frames, and prepare for point cloud removal of dynamic targets. For the point cloud in each frame point cloud image, the target list is used to record the category, position, size and motion state of each target. Dynamic targets are tracked in consecutive frame point cloud images to identify their motion patterns. Tracking algorithms (such as Kalman filter or optical flow method, etc.) are used to associate dynamic targets detected across frames, obtain corresponding points of dynamic targets in different frames, and prepare for point cloud removal of dynamic targets. and the dynamic target set Dt, perform the following operations: ; in, represents the static point cloud of the tth frame in the point cloud data subset, represents the point cloud image of the tth frame in the point cloud data subset, represents a set of dynamic targets in a subset of point cloud data, Represents a dynamic target. Represents a collection, A collection of point clouds representing all dynamic objects in the point cloud data subset.
[0058] The IMU data is used to compensate for the dynamic motion of the ego vehicle to reduce motion distortion in the point cloud. The IMU data is used to estimate the motion of the ego vehicle between consecutive frames and calculate the corresponding pose transformation matrix. It can be obtained by integrating the IMU data using the following formula: ; Among them, R represents the rotation matrix of the pose of the vehicle in each frame of the point cloud image, t represents the translation vector of the pose of the vehicle in each frame of the point cloud image, and Indicates the lower and upper limits of the time interval.
[0059] Taking into account dynamic compensation, update the transformation of the ego-vehicle pose to the first frame coordinate system. Point p in the point cloud can be transformed by coordinates Transform to the new coordinate system: ; in, represents the pose transformation matrix, represents the static point cloud of the tth frame in the point cloud data subset, Represents the static point cloud of the tth frame after coordinate transformation in the point cloud data subset.
[0060] Finally, merge the point clouds of each frame in the point cloud data subset, which can be completed by the following operations: ; in, Represents a static map corresponding to a subset of point cloud data, represents the static point cloud of the tth frame after coordinate transformation in the point cloud data subset, and N is the number of frames in the point cloud data subset.
[0061] The final static map is as follows Figure 4 As shown in Figure 2, map features such as lane lines, zebra crossings, etc. can be identified in dense point clouds (in Figure 4 The black part in the middle represents map elements such as lane lines and zebra crossings, and the gray part represents other elements such as buildings), which provides a reliable data source for subsequent model detection and manual annotation.
[0062] Furthermore, in the above step 104, the static map corresponding to each point cloud data subset is annotated using the recognition result to obtain the annotation result corresponding to each point cloud data subset, including: Convert the recognition results into the data structure required by the preset annotation tool; The converted recognition results are imported into the preset annotation tool, and the static map corresponding to each point cloud data subset is annotated using the preset annotation tool to obtain the annotation results corresponding to each point cloud data subset.
[0063] In one embodiment, when annotating the static map corresponding to each point cloud data subset, the recognition result can be converted into the data structure required by the preset annotation tool, and then the converted recognition result can be imported into the preset annotation tool, and the static map corresponding to each point cloud data subset can be annotated using the preset annotation tool to obtain the annotation result corresponding to each point cloud data subset. Specifically, the recognition result can be aligned with the format required by the preset annotation tool, that is, the recognition result can be converted into a data structure suitable for the preset annotation tool to ensure that it can be correctly imported and processed. The recognition result after format alignment is imported into the preset annotation tool for pre-annotation. The preset annotation tool here is a software specifically used to process point cloud data, which has a convenient visual interface and annotation function. By importing the recognition result into the preset annotation tool, each map element can be conveniently viewed and edited. Finally, the annotation result is manually corrected and verified to ensure the accuracy and completeness of the label. Manual correction can include adding missing map elements, deleting erroneous labels, adjusting positions or shapes, etc. Through manual participation, the quality and reliability of map element annotation can be further improved, and the annotation result after manual correction is confirmed as the true value of the label. These labels can be used for tasks such as training models and evaluating algorithm performance, and are the basis for map data processing and analysis.
[0064] The map element annotation method provided in the embodiment of the present application can identify map elements through video clips (divided by time or distance), SLAM mapping technology, and multimodal data (point cloud map, texture map and picture) to achieve the annotation of map elements. By integrating information from different modalities, the accuracy and robustness of map element identification are improved, providing strong support for subsequent map processing and application. The specific process is as follows: Figure 5 Therefore, the map element annotation method provided in the embodiment of the present application has the following beneficial effects: 1. Consideration of the time dimension: Traditional map feature annotation methods often only consider spatial information and ignore the importance of the time dimension. However, for some dynamic scenes or objects that change over time, such as vehicles and pedestrians, their positions and states may be different at different time points. Therefore, by introducing the time dimension, the movement trajectory and change process of these objects can be captured more accurately.
[0065] 2. Use historical data for prediction: By analyzing historical data, some rules or patterns can be found to predict future data. In 4D pre-labeling, existing time series data can be used for prediction, and then the prediction results can be used as the initial value of the labeling, and then manually corrected and verified. This can greatly reduce the workload of manual labeling and improve the efficiency and accuracy of labeling.
[0066] 3. Label future data in advance: In some scenarios, data for a period of time in the future can be labeled in advance. For example, in traffic scenarios, historical data and traffic rules can be used to predict the location and behavior of vehicles and pedestrians in the next few seconds or minutes, and then labeled based on these predictions, so as to obtain labels for future data in advance, saving time and cost for subsequent labeling.
[0067] 4. Enhance the value of data utilization: 4D pre-labeling can not only save labeling time and cost, but also enhance the value of data utilization. The labeled time information can provide more information for subsequent data analysis and algorithm development, such as behavior analysis, trajectory prediction, etc. At the same time, the labeled time series data can also be used to train the model to improve the performance of the model in dynamic scenarios.
[0068] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of a map element annotation device provided in an embodiment of the present application. Figure 6 As shown, the map element annotation device 600 includes: An acquisition module 601 is used to acquire video data and point cloud data collected by the vehicle in a target driving scene, and divide the video data and point cloud data according to a preset acquisition time or a preset acquisition distance to obtain multiple video data subsets and multiple point cloud data subsets; The identification module 602 is used to identify dynamic targets and static targets in each point cloud data subset among the multiple point cloud data subsets, remove the point cloud corresponding to the dynamic target, and perform coordinate transformation on the point cloud corresponding to the static target to obtain a static map corresponding to each point cloud data subset; The fusion and recognition module 603 is used to perform multimodal fusion of the static map and the video data to obtain a bird's-eye view corresponding to each point cloud data subset, and input the bird's-eye view into a pre-trained map element recognition model to perform map element recognition and obtain a recognition result; The labeling module 604 is used to label the static map corresponding to each point cloud data subset using the recognition result to obtain the labeling result corresponding to each point cloud data subset.
[0069] Further, the map element recognition model includes a feature extractor, a regressor, and a classifier; The fusion and recognition module 603 includes: An extraction submodule, used for inputting the bird's-eye view into a feature extractor for feature extraction, and obtaining feature information corresponding to each map element in the target driving scene; The processing submodule is used to input the feature information corresponding to each map element into the regressor for regression processing to obtain the geometric attributes corresponding to each map element, and input the feature information corresponding to each map element into the classifier for classification processing to obtain the type corresponding to each map element; The determination submodule is used to determine the geometric attributes corresponding to each map element and the type corresponding to each map element as the recognition result.
[0070] Furthermore, the extraction submodule includes: An adjustment unit, used to adjust the attention weight corresponding to each map element; The extraction unit is used to input the bird's-eye view into the feature extractor, and use the adjusted attention weights corresponding to each map element to perform feature extraction to obtain feature information corresponding to each map element.
[0071] Furthermore, the map element annotation device 600 further includes: A training module, used for iteratively training the model to be trained using the first prediction branch and the second prediction branch, respectively, wherein the data input to the model to be trained by the first prediction branch are bird's-eye view samples, and the data input to the model to be trained by the second prediction branch are positive samples and a plurality of negative samples paired with the positive samples, and the model to be trained includes a feature extractor, a regressor, and a classifier; The calculation module is used to calculate the loss value of the model to be trained using a preset loss function, and when the loss value is lower than a preset threshold, stop iterative training of the model to be trained to obtain a map feature recognition model, wherein the loss value is the sum of the loss value of the first prediction branch and the loss value of the second prediction branch.
[0072] Furthermore, the fusion and recognition module 603 also includes: The first generation submodule is used to generate dense point cloud data according to the static map and to generate a texture map according to the video data; Alignment submodule, used to spatially align dense point cloud data and texture maps; The fusion submodule is used to perform multimodal fusion of the spatially aligned dense point cloud data and texture map to obtain a bird's-eye view.
[0073] Further, the identification module 602 includes: An acquisition submodule is used to acquire target information in each frame of point cloud images in a target point cloud data subset, wherein the target point cloud data subset is any point cloud data subset in a plurality of point cloud data subsets, and the target point cloud data subset includes a plurality of frame point cloud images; The second generation submodule is used to generate a target list corresponding to each frame of the point cloud image according to the target information, wherein the target list is used to record the target type, position, size and motion state contained in each frame of the point cloud image; The recognition submodule is used to identify dynamic targets and static targets in the target point cloud data subset based on the target list corresponding to each frame of the point cloud image.
[0074] Furthermore, the marking module 604 includes: A conversion submodule, used to convert the recognition result into the data structure required by the preset annotation tool; The annotation submodule is used to import the converted recognition results into a preset annotation tool, and use the preset annotation tool to annotate the static map corresponding to each point cloud data subset to obtain the annotation results corresponding to each point cloud data subset.
[0075] It should be noted that the map element annotation device 600 can implement the map element annotation method provided by any of the aforementioned method embodiments and can achieve the same technical effects, which will not be described in detail herein.
[0076] like Figure 7 As shown, the embodiment of the present application further provides an electronic device, including a processor 711, a communication interface 712, a memory 713 and a communication bus 714, wherein the processor 711, the communication interface 712, and the memory 713 communicate with each other through the communication bus 714. Memory 713, used for storing computer programs; In one embodiment of the present application, the processor 711 is used to implement the map element labeling method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 713.
[0077] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the map element annotation method provided by any one of the aforementioned method embodiments is implemented.
[0078] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0079] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0080] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0081] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A map element annotation method, characterized in that: The method comprises: Acquire video data and point cloud data collected by the vehicle in a target driving scene, and divide the video data and the point cloud data according to a preset collection time or a preset collection distance to obtain multiple video data subsets and multiple point cloud data subsets; Identify dynamic targets and static targets in each of the multiple point cloud data subsets, remove the point cloud corresponding to the dynamic target, and perform coordinate transformation on the point cloud corresponding to the static target to obtain a static map corresponding to each point cloud data subset; Performing multimodal fusion on the static map and the video data to obtain a bird's-eye view corresponding to each point cloud data subset, and inputting the bird's-eye view into a pre-trained map element recognition model to perform map element recognition to obtain a recognition result; The static map corresponding to each point cloud data subset is annotated using the recognition result to obtain the annotation result corresponding to each point cloud data subset.
2. The map element annotation method according to claim 1, characterized in that: The map element recognition model includes a feature extractor, a regressor and a classifier; The step of inputting the bird's-eye view into a pre-trained map element recognition model to perform map element recognition and obtain a recognition result includes: Inputting the bird's-eye view into the feature extractor for feature extraction to obtain feature information corresponding to each map element in the target driving scene; Inputting the feature information corresponding to each map element into the regressor for regression processing to obtain the geometric attributes corresponding to each map element, and inputting the feature information corresponding to each map element into the classifier for classification processing to obtain the type corresponding to each map element; The geometric attributes corresponding to each map element and the type corresponding to each map element are determined as the recognition result.
3. The map element annotation method according to claim 2, characterized in that: The step of inputting the bird's-eye view into the feature extractor for feature extraction to obtain feature information corresponding to each map element includes: Adjust the attention weights corresponding to each map element; The bird's-eye view is input into the feature extractor, and feature extraction is performed using the adjusted attention weights corresponding to each map element to obtain feature information corresponding to each map element.
4. The map element annotation method according to any one of claims 1 to 3, characterized in that: Before inputting the bird's-eye view into a pre-trained map element recognition model to perform map element recognition and obtain a recognition result, the method further includes: Iteratively training the model to be trained is performed using a first prediction branch and a second prediction branch, respectively, wherein the data input to the model to be trained by the first prediction branch is a bird's-eye view sample, the data input to the model to be trained by the second prediction branch is a positive sample and a plurality of negative samples paired with the positive sample, and the model to be trained includes a feature extractor, a regressor, and a classifier; The loss value of the model to be trained is calculated using a preset loss function, and when the loss value is lower than a preset threshold, the iterative training of the model to be trained is stopped to obtain the map element recognition model, wherein the loss value is the sum of the loss value of the first prediction branch and the loss value of the second prediction branch.
5. The map element annotation method according to any one of claims 1 to 3, characterized in that: The multimodal fusion of the static map and the video data to obtain a bird's-eye view corresponding to each point cloud data subset includes: generating dense point cloud data according to the static map, and generating a texture map according to the video data; spatially aligning the dense point cloud data and the texture map; The spatially aligned dense point cloud data and the texture map are multimodally fused to obtain the bird's-eye view.
6. The map element annotation method according to any one of claims 1 to 3, characterized in that: The identifying of dynamic targets and static targets in each of the plurality of point cloud data subsets comprises: Acquire target information in each frame of point cloud images in a target point cloud data subset, wherein the target point cloud data subset is any point cloud data subset in the multiple point cloud data subsets, and the target point cloud data subset includes multiple frames of point cloud images; Generate a target list corresponding to each frame of the point cloud image according to the target information, wherein the target list is used to record the target type, position, size and motion state contained in each frame of the point cloud image; Based on the target list corresponding to each frame of the point cloud image, dynamic targets and static targets in the target point cloud data subset are identified.
7. The map element annotation method according to any one of claims 1 to 3, characterized in that: The step of labeling the static map corresponding to each point cloud data subset using the recognition result to obtain the labeling result corresponding to each point cloud data subset includes: Converting the recognition result into a data structure required by a preset annotation tool; The converted recognition results are imported into the preset annotation tool, and the static map corresponding to each point cloud data subset is annotated using the preset annotation tool to obtain the annotation results corresponding to each point cloud data subset.
8. A map element annotation device, characterized in that: The device comprises: An acquisition module, used to acquire video data and point cloud data collected by the vehicle in a target driving scene, and divide the video data and the point cloud data according to a preset acquisition time or a preset acquisition distance to obtain multiple video data subsets and multiple point cloud data subsets; an identification module, used to identify dynamic targets and static targets in each of the plurality of point cloud data subsets, remove the point cloud corresponding to the dynamic target, and perform coordinate transformation on the point cloud corresponding to the static target, so as to obtain a static map corresponding to each point cloud data subset; A fusion and recognition module, used for performing multimodal fusion of the static map and the video data to obtain a bird's-eye view corresponding to each point cloud data subset, and inputting the bird's-eye view into a pre-trained map element recognition model to perform map element recognition to obtain a recognition result; The labeling module is used to label the static map corresponding to each point cloud data subset using the recognition result to obtain the labeling result corresponding to each point cloud data subset.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the map element labeling method described in any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the map element labeling method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Systems and methods for utilizing machine learning and other models to reconstruct a vehicle accident scene from video
US20220044024A1
Training method and apparatus for a target detection model, target detection method and apparatus, and medium
US20230099113A1
Multi-modal-fused method and apparatus for recognizing high-definition map element, and device and medium
WO2024093641A1
Cited By
Ground static element automatic labeling method and device and computer program product
CN120451978A
Data annotation method, electronic equipment and readable storage medium
CN121661650A
