Data labeling method and device and medium
Through the 4D data annotation method, combined with camera and radar data, automated point cloud data annotation is realized, which solves the problem of the time dimension not being utilized in the existing technology, improves the annotation efficiency and accuracy, and saves costs.
Patent Information
- Application Number
- CN202410999257.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-09-27
AI Technical Summary
Existing autonomous driving data annotation methods mainly focus on spatial information and fail to effectively utilize the time dimension, resulting in point cloud data annotation being time-consuming and costly, and requiring a large amount of manual correction.
The 4D data annotation method is used to collect multi-frame images and point cloud data through cameras and radars, and timestamps are added after fusion. The Haar cascade classifier and KCF algorithm are used to detect object positions, 2D feature extraction and subset division are performed, and the detection model is trained. And the model is revised through dense prediction to update the detection box size.
It realizes automated data annotation, saves a lot of workload and labor costs, improves annotation efficiency and accuracy, takes into account the time dimension, and is suitable for describing data characteristics that change over time.
Smart Images

Figure CN118710685A
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the field of autonomous driving technology, and in particular relates to a data labeling method, device and medium. Background Art
[0002] In recent years, data closure has become a standard platform for autonomous driving to solve long-tail problems. Data closure is the only way to achieve mass production of autonomous driving. The construction of the intelligent driving data closed-loop system platform is to support the development of intelligent driving technology and improve the safety, reliability and intelligence level of autonomous driving vehicles. Intelligent labeling is an important part of the data closed loop. Accurate and fast data labeling is used to train perception algorithms, fully conduct all-round testing of typical and corner / dangerous scenarios, and ensure the safe implementation of autonomous driving functions.
[0003] At present, most of the autonomous driving data annotation is 2D or 3D annotation. The annotation of point cloud data is a very time-consuming task, and the main workload is concentrated on finding the target and adjusting the target's bounding box. In order to reduce the workload of annotation, some improvements have been made to the existing point cloud annotation tools, such as expanding and clustering the point cloud to reduce the difficulty of finding the target, or automatically displaying three views on the annotation interface to facilitate the adjustment of the bounding box.
[0004] 2D or 3D data may contain missing, overlapping or erroneous points in the point cloud due to the noise of the sensor itself. Labelers need to be able to identify and handle these problems. Autonomous driving perception training requires a large amount of labeled data, and large-scale 3D point cloud data requires a lot of time and manpower. In addition, 3D labeling mainly focuses on spatial information. Summary of the invention
[0005] The present disclosure proposes a data annotation method, device and medium to solve the above technical problems.
[0006] According to a first aspect of the present disclosure, a data labeling method is provided, the method comprising: collecting multiple frames of images using a camera; collecting point cloud data using a millimeter wave radar and a laser radar; fusing the multiple frames of images with the point cloud data to obtain standard point cloud data, wherein the standard point cloud data has a timestamp; detecting an object in a first frame of the standard point cloud data, and tracking the position of the object; in each subsequent frame of the image, updating a tracker, drawing a tracking frame, and obtaining a vehicle motion trajectory sequence; converting the standard point cloud data into a BEV perspective, and performing 2D feature extraction; dividing the target objects in the point cloud data after the 2D feature extraction into different subsets according to their size; training a detection model for each subset; correcting the detection model using dense prediction of the entire trajectory; and updating the sizes of all detection frames on the trajectory through object size branches and the motion trajectory sequence with the aid of the corrected detection model.
[0007] In some embodiments, a Haar cascade classifier is used to detect objects in the first frame image in the target point cloud data.
[0008] In some embodiments, the position of the object is tracked using a KCF algorithm.
[0009] In some embodiments, the point cloud data after 2D feature extraction is C*H*W feature data, where C represents length, H represents width, and W represents channel.
[0010] According to a second aspect of the present disclosure, a data annotation device is provided, including: a multi-frame image acquisition module, used to acquire multi-frame images using a camera; a point cloud data acquisition module, used to acquire point cloud data using a millimeter wave radar and a lidar; a multi-frame image and point cloud data fusion module, used to fuse the multi-frame images with the point cloud data to obtain standard point cloud data, wherein the standard point cloud data has a timestamp; an object tracking module, used to detect an object in the first frame image of the standard point cloud data and track the position of the object; a motion trajectory sequence acquisition module, used to update the tracker and draw the tracking trajectory in each subsequent frame image. A frame is used to obtain a motion trajectory sequence of the vehicle; a 2D feature extraction module is used to convert the target point cloud data into a BEV perspective and perform 2D feature extraction; a subset division module is used to divide the target objects in the point cloud data after 2D feature extraction into different subsets according to size; a detection model training module is used to train a detection model for each subset respectively; a detection model correction module is used to correct the detection model using dense prediction of the entire trajectory; a detection frame size update module is used to update the size of all detection frames on the trajectory through the object size branch and the motion trajectory sequence with the help of the corrected detection model.
[0011] According to a third aspect of the present disclosure, a data labeling device is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the data labeling method as described above based on instructions stored in the memory.
[0012] According to a fourth aspect of the present disclosure, a computer storable medium is provided, on which computer program instructions are stored, and when the instructions are executed by a processor, the data labeling method as described above is implemented.
[0013] By adopting the above technical solution, the embodiments of the present disclosure can achieve the following beneficial technical effects:
[0014] (1) The present disclosure provides a 4D data annotation method that not only focuses on spatial information but also considers the temporal dimension to describe the characteristics of data that change over time.
[0015] (2) Point cloud data annotation usually requires the use of professional software tools and algorithms, such as point cloud processing libraries, deep learning models, etc., and manual correction of the annotated data is also required. However, the present invention can realize automatic annotation of data, saving a lot of work and cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0017] The present disclosure can be more clearly understood from the following detailed description with reference to the accompanying drawings.
[0018] Figure 1 is a flowchart illustrating a data labeling method according to some embodiments of the present disclosure.
[0019] Figure 2 2 is a diagram showing a device for acquiring target point cloud data according to some embodiments of the present disclosure.
[0020] Figure 3 Detailed description of the invention is given in detail. Detailed description of the invention is given in detail.
[0021] Figure 4 is a diagram showing the front-end interface of a data annotation platform according to some embodiments of the present disclosure.
[0022] Figure 5 is a block diagram showing a data annotation apparatus according to some embodiments of the present disclosure.
[0023] Figure 6 is a block diagram showing a data labeling apparatus according to some other embodiments of the present disclosure.
[0024] Figure 7is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0025] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0026] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0027] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0028] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0029] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0030] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0031] At present, most of the autonomous driving data annotation is 2D or 3D annotation. The annotation of point cloud data is a very time-consuming task, and the main workload is concentrated on finding the target and adjusting the target's bounding box. In order to reduce the workload of annotation, some improvements have been made to the existing point cloud annotation tools, such as expanding and clustering the point cloud to reduce the difficulty of finding the target, or automatically displaying three views on the annotation interface to facilitate the adjustment of the bounding box.
[0032] 2D or 3D data may contain missing, overlapping or erroneous points in the point cloud due to the noise of the sensor itself. Labelers need to be able to identify and handle these problems. Autonomous driving perception training requires a large amount of labeled data, and large-scale 3D point cloud data requires a lot of time and manpower. In addition, 3D labeling mainly focuses on spatial information.
[0033] In view of this, the present disclosure proposes a data annotation method, device and medium. The present disclosure provides a 4D data annotation method that not only focuses on spatial information, but also considers the time dimension, which is used to describe the data characteristics that change over time. Point cloud data annotation usually requires the use of professional software tools and algorithms, such as point cloud processing libraries, deep learning models, etc., and in addition, manual correction of the annotated data is required. The present disclosure can realize automatic annotation of data, saving a lot of workload and cost.
[0034] With the rapid development of deep learning, laser point cloud target detection algorithms based on convolutional neural networks have gradually replaced traditional detection algorithms and become mainstream. For example, the detection effects of algorithms such as AVOD, MV3D, and Frustum PointNet are getting better and better. However, 3D annotation mainly focuses on spatial information. On this basis, this disclosure considers the time dimension to describe the characteristics of data that change over time. In fields such as autonomous driving, it is crucial to comprehensively consider the time factor, because the motion state of objects such as vehicles and pedestrians is crucial for decision-making and planning.
[0035] Figure 1 FIG. 1 is a flow chart showing a data annotation method according to some embodiments of the present disclosure. Figure 1 As shown, the data labeling method includes steps 101 to 110.
[0036] In step 101, a camera is used to capture multiple frames of images.
[0037] The labeled objects involved in this disclosure are based on the original data collected by the road. Figure 2 As shown in the figure, data is collected through 11 cameras, 6 millimeter-wave radars, and 1 laser radar. The frame pair perception algorithm training involves a main radar and 4 auxiliary radars. When the data is collected and stored on the disk, the original data is fused into a pcd file and stored on the disk. The frame performs perception point cloud data annotation on this data set.
[0038] In step 102, point cloud data is collected using millimeter wave radar and laser radar.
[0039] In step 103, the multiple frames of images are fused with the point cloud data to obtain target point cloud data, wherein the target point cloud data has a time stamp.
[0040] The time of the acquisition system built by the camera and radar is synchronized, and satellite timing is used to achieve time synchronization of millimeter wave radar, lidar, visual camera and control data.
[0041] In step 104, an object in a first frame of the target point cloud data is detected, and the position of the object is tracked.
[0042] The Haar cascade classifier is used to detect the object in the first frame image, and the KCF algorithm is used to track the position of the object.
[0043] In step 105, in each subsequent frame of the image, the tracker is updated, a tracking frame is drawn, and a motion trajectory sequence of the vehicle is obtained.
[0044] In each subsequent frame, the tracker is updated and a tracking box is drawn in the image to obtain a sequence of motion trajectories of the vehicle.
[0045] In step 106 , the target point cloud data is converted into a BEV perspective, and 2D feature extraction is performed.
[0046] The point cloud data is converted into BEV perspective for 2D feature extraction to generate C*H*W features, i.e. length*width*channel.
[0047] In step 107, the target objects in the point cloud data after 2D feature extraction are divided into different subsets according to their sizes.
[0048] The target objects in the training data set are divided into different subsets according to their size.
[0049] In step 108, a detection model is trained for each subset separately.
[0050] A detection model is trained for each subset.
[0051] In the vehicle detection task, different detection models are trained for vehicles of different sizes to improve the detection accuracy.
[0052] In step 109, the detection model is modified using the dense prediction of the entire trajectory.
[0053] By leveraging dense predictions of the entire trajectory, the object size branch can produce more accurate representations.
[0054] In step 110, with the aid of the modified detection model, through the object size branch and the motion trajectory sequence, the sizes of all detection boxes on the trajectory are updated.
[0055] The new refined size predicted by the object size branch is used to update the size of all detection boxes on the trajectory. The final model optimizes the trajectory through two branches, namely the object size branch and the motion trajectory sequence, such as Figure 3 shown.
[0056] like Figure 4As shown, the data annotation method disclosed in this disclosure can be integrated into the data annotation platform to provide true value training data for perception. The 4D annotation method is integrated into the self-developed standard platform to improve the annotation efficiency, improve the accuracy of the data set, and provide high-quality true value data for the perception algorithm. The point cloud data is converted into a BEV perspective, and the data is annotated in the 3D space + time series (dynamic object) dimension, which effectively solves the limitation of the lack of time factor information in 3D point cloud data to the later stage of autonomous driving technology.
[0057] As mentioned above, this labeling method is relatively efficient, and the labeling accuracy can provide training data and test data for perception algorithm training, driving the autonomous driving perception algorithm.
[0058] In the data annotation method of the embodiment of the present disclosure, the present disclosure provides a 4D data annotation method, which not only focuses on spatial information, but also considers the time dimension, which is used to describe the data characteristics that change over time. Point cloud data annotation usually requires the use of professional software tools and algorithms, such as point cloud processing libraries, deep learning models, etc., and also requires manual correction of the annotated data. The present disclosure can realize automatic annotation of data, saving a lot of workload and cost.
[0059] Figure 5 is a block diagram showing a data annotation device according to some embodiments of the present disclosure. Figure 5 As shown, the data labeling device 500 includes a multi-frame image acquisition module 501, a point cloud data acquisition module 502, a multi-frame image and point cloud data fusion module 503, an object tracking module 504, a motion trajectory sequence acquisition module 505, a 2D feature extraction module 506, a subset division module 507, a detection model training module 508, a detection model correction module 509, and a detection box size update module 510.
[0060] The multi-frame image acquisition module 501 is configured to acquire multiple frames of images using a camera;
[0061] The point cloud data acquisition module 502 is configured to collect point cloud data using millimeter wave radar and laser radar;
[0062] The multi-frame image and point cloud data fusion module 503 is configured to fuse the multi-frame image with the point cloud data to obtain standard point cloud data, wherein the standard point cloud data has a time stamp;
[0063] The object tracking module 504 is configured to detect an object in the first frame image of the target point cloud data and track the position of the object;
[0064] The motion trajectory sequence acquisition module 505 is configured to update the tracker, draw the tracking frame, and acquire the motion trajectory sequence of the vehicle in each subsequent frame image;
[0065] A 2D feature extraction module 506 is configured to convert the target point cloud data into a BEV perspective and perform 2D feature extraction;
[0066] A subset division module 507 is configured to divide the target objects in the point cloud data after 2D feature extraction into different subsets according to their sizes;
[0067] A detection model training module 508 is configured to train a detection model for each subset;
[0068] A detection model correction module 509, configured to correct the detection model using the dense prediction of the entire trajectory;
[0069] The detection frame size updating module 510 is configured to update the sizes of all detection frames on the trajectory by means of the modified detection model, through the object size branch and the motion trajectory sequence.
[0070] In the device of the embodiment of the present disclosure, the present disclosure provides a 4D data annotation method, which not only focuses on spatial information, but also considers the time dimension, which is used to describe the data characteristics that change over time. Point cloud data annotation usually requires the use of professional software tools and algorithms, such as point cloud processing libraries, deep learning models, etc., and also requires manual correction of the annotated data. The present disclosure can realize automatic annotation of data, saving a lot of workload and cost.
[0071] Figure 6 is a block diagram showing a data labeling apparatus according to some other embodiments of the present disclosure.
[0072] like Figure 6 As shown, the data labeling device 600 includes a memory 601; and a processor 602 coupled to the memory 601. The memory 601 is used to store instructions for executing the corresponding embodiment of the data labeling method. The processor 602 is configured to execute the data labeling method in any of the embodiments of the present disclosure based on the instructions stored in the memory 601.
[0073] Figure 7 is a block diagram showing a computer system for implementing some embodiments of the present disclosure. Figure 7 As shown, the computer system 700 may be embodied in the form of a general-purpose computing device. The computer system 700 includes a memory 701, a processor 702, and a bus 703 that connects different system components.
[0074] The memory 701 may include, for example, a system memory, a non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application, a boot loader, and other programs. The system memory may include a volatile storage medium, such as a random access memory (RAM) and / or a cache memory. The non-volatile storage medium may store, for example, instructions for executing at least one of the corresponding embodiments of the data labeling method. The non-volatile storage medium includes, but is not limited to, a disk memory, an optical memory, a flash memory, and the like.
[0075] The processor 702 can be implemented by a general-purpose processor, 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 transistors, etc. Discrete hardware components. Accordingly, each module such as a multi-frame image acquisition module, a point cloud data acquisition module, a multi-frame image and point cloud data fusion module, an object tracking module, a motion trajectory sequence acquisition module, a 2D feature extraction module, a subset division module, a detection model training module, a detection model correction module, and a detection frame size update module can be implemented by a central processing unit (CPU) running instructions in a memory that execute corresponding steps, or can be implemented by a dedicated circuit that executes corresponding steps.
[0076] The bus 703 may use any of a variety of bus structures, including, but not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, and a Peripheral Component Interconnect (PCI) bus.
[0077] The computer system 700 may also include an input / output interface 704, a network interface 705, a storage interface 706, etc. These interfaces 704, 705, 706, the memory 701, and the processor 702 may be connected via a bus 703. The input / output interface 704 may provide a connection interface for input / output devices such as a display, a mouse, and a keyboard. The network interface 705 may provide a connection interface for various networked devices. The storage interface 706 may provide a connection interface for external storage devices such as a floppy disk, a USB flash drive, and an SD card.
[0078] Here, various aspects of the present disclosure are described with reference to flowcharts and / or block diagrams of methods, devices, and computer program products according to embodiments of the present disclosure. It should be understood that each frame of the flowchart and / or block diagram and the combination of frames can be implemented by computer-readable program instructions.
[0079] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable device to produce a machine, so that the processor executes the instructions to produce means for implementing the functions specified in one or more blocks in the flowchart and / or block diagram.
[0080] These computer-readable program instructions may also be stored in a computer-readable memory, which cause the computer to work in a specific manner to produce an article of manufacture, including instructions for implementing the functions specified in one or more blocks in the flowchart and / or block diagram.
[0081] The present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
[0082] The present disclosure provides a 4D data annotation method that not only focuses on spatial information, but also considers the time dimension to describe the characteristics of data that change over time. Point cloud data annotation usually requires the use of professional software tools and algorithms, such as point cloud processing libraries, deep learning models, etc., and also requires manual correction of the annotated data. The present disclosure can realize automatic annotation of data, saving a lot of workload and cost.
[0083] So far, the data annotation method, device and medium according to the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
[0084] Although some specific embodiments of the present disclosure have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A data labeling method, characterized in that: The method comprises: Using a camera to collect multiple frames of images; Collect point cloud data using millimeter wave radar and lidar; Fusion of the multiple frames of images with the point cloud data to obtain standard point cloud data, wherein the standard point cloud data has a timestamp; Detecting an object in a first frame of the target point cloud data and tracking the position of the object; In each subsequent frame, the tracker is updated, the tracking frame is drawn, and the motion trajectory sequence of the vehicle is obtained; Convert the qualified point cloud data into a BEV perspective and perform 2D feature extraction; Dividing the target objects in the point cloud data after 2D feature extraction into different subsets according to their sizes; Train the detection model for each subset separately; Using the dense prediction of the entire trajectory, revising the detection model; With the aid of the modified detection model, the sizes of all detection boxes on the trajectory are updated through the object size branch and the motion trajectory sequence.
2. The data labeling method according to claim 1, characterized in that: The object of the first frame image in the target point cloud data is detected using a Haar cascade classifier.
3. The data labeling method according to claim 1, characterized in that: The position of the object is tracked using the KCF algorithm.
4. The data labeling method according to claim 1, characterized in that: The point cloud data after 2D feature extraction is C*H*W feature data, wherein C represents length, H represents width, and W represents channel.
5. A data labeling device, characterized in that: include: A multi-frame image acquisition module is used to acquire multiple frames of images using a camera; Point cloud data acquisition module, used to collect point cloud data using millimeter wave radar and lidar; A multi-frame image and point cloud data fusion module, used for fusing the multi-frame image with the point cloud data to obtain standard point cloud data, wherein the standard point cloud data has a timestamp; An object tracking module, used to detect an object in the first frame image of the target point cloud data and track the position of the object; The motion trajectory sequence acquisition module is used to update the tracker, draw the tracking frame, and obtain the vehicle's motion trajectory sequence in each subsequent frame image; A 2D feature extraction module, used to convert the target point cloud data into a BEV perspective and perform 2D feature extraction; A subset division module, used for dividing the target objects in the point cloud data after 2D feature extraction into different subsets according to their sizes; A detection model training module is used to train the detection model for each subset separately; A detection model correction module, for correcting the detection model using the dense prediction of the entire trajectory; The detection frame size update module is used to update the sizes of all detection frames on the trajectory by means of the modified detection model, through the object size branch and the motion trajectory sequence.
6. A data labeling device, characterized in that: include: Memory; as well as A processor coupled to the memory, the processor being configured to execute the data labeling method according to any one of claims 1 to 4 based on instructions stored in the memory.
7. A computer storable medium, characterized in that: Computer program instructions are stored thereon, and when the instructions are executed by a processor, the data labeling method as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Video image small target detection method based on deep learning
CN112966659A
3D target detection and tracking method fusing millimeter wave radar and laser radar
CN115327529A
Object detection task BEV feature extraction method and system based on multi-scale ROI projection
CN116664824A
Automatic driving multi-mode data updating and fusing method, device and equipment and medium
CN117173527A
Automatic marking method of point cloud data, terminal and storage medium
CN118314317A
