A method and system for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion
Through multi-model fusion technology, combined with multiple rounds of one-to-one matching and voting strategies, the limitations of a single model in complex scenes and environments are solved, the accuracy and robustness of 3D point cloud target annotation are improved, and better Generalization ability and scalability.
Patent Information
- Application Number
- CN202310627581.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-05-30
AI Technical Summary
Existing automatic labeling methods for 3D point cloud targets based on a single model have problems such as limited generalization ability, sensitivity to noise and occlusion, low computational efficiency, and difficulty in optimization in handling complex scenes, different target types, and environmental conditions.
Using multi-model fusion technology, by training multiple annotation models suitable for different scenarios and target types, the point cloud data is predicted and the results are fused, and multiple rounds of one-to-one matching and voting strategies are used to determine the target annotation results, combined with a weighted average and manual verification to improve annotation quality.
Improved detection accuracy and robustness, enhanced processing capabilities for noise and occlusion, achieved better generalization capabilities and scalability, and can achieve high-quality 3D point cloud target annotation in various environments and target types .
Smart Images

Figure CN117671320B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automatic annotation of three-dimensional objects in point clouds, and in particular to a method and system for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion. Background Art
[0002] At present, the automatic annotation of point cloud 3D objects is mainly based on the automatic annotation of 3D point cloud objects based on a single model, which has the following main shortcomings when processing point cloud data:
[0003] 1. Limited generalization ability: A single model has difficulty adapting to various scenarios, object types, and environmental conditions. A specific model may perform well in some cases, but may perform poorly in other cases, resulting in unstable overall annotation quality.
[0004] 2. Sensitivity to noise and occlusion: Point cloud data is often affected by noise, incompleteness, and occlusion. A single model has limited processing capabilities, which affects the accuracy of target detection and annotation.
[0005] 3. Computational efficiency: A single model for different scenarios and target types may require a lot of computing resources and time, thus limiting the feasibility of real-time applications.
[0006] 4. Difficulty in optimization: The parameters of a single model may be difficult to adjust to meet the needs of multiple application scenarios. Therefore, the model needs to be optimized separately for each scenario, which undoubtedly increases the difficulty and workload of optimization.
[0007] In summary, the existing single-model based 3D point cloud object automatic annotation methods have limitations in dealing with complex scenes, different object types and environmental conditions. Summary of the invention
[0008] The present invention provides a method and system for automatic labeling of three-dimensional objects in point clouds based on multi-model fusion, so as to solve the technical problem that the automatic labeling method of three-dimensional point cloud objects based on a single model has limitations in processing complex scenes, different target types and environmental conditions.
[0009] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0010] On the one hand, the present invention provides a method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion, and the method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion comprises:
[0011] Train multiple annotation models for automatic annotation of point cloud 3D objects, which are suitable for different working conditions;
[0012] Use multiple trained annotation models to predict the results of the point cloud data that needs to be annotated;
[0013] The prediction results of multiple annotation models are integrated to obtain the target annotation result.
[0014] Furthermore, the training of multiple annotation models for automatic annotation of point cloud three-dimensional objects, which are respectively suitable for different working conditions, includes:
[0015] On the preset data set, by adjusting the model hyperparameters, we train a labeling model suitable for different types of targets; by adjusting the data of different scenes, we train a labeling model suitable for different working scenarios.
[0016] Furthermore, the method of using the trained multiple annotation models to respectively predict the results of the point cloud data to be annotated includes:
[0017] For the point cloud data that needs to be labeled, the point cloud data is classified according to its working condition labels. After the point cloud data is classified according to its working condition labels, the point cloud data that needs to be labeled is divided into point cloud data of different scenes;
[0018] For point cloud data of different scenes, a series of annotation models suitable for the current scene are selected for prediction; the prediction results include the target 3D box, target category and the model's confidence in the prediction results.
[0019] Furthermore, the prediction results of multiple annotation models are fused to obtain the target annotation results, including:
[0020] For the prediction results of multiple labeled models, multiple rounds of one-to-one matching are used to determine which prediction results belong to the same real target, so as to obtain the number of models that predict the same position and category for each target;
[0021] For each prediction target, its sample type is determined by its vote count; wherein the vote count of a prediction target is the number of models that predict the same position and the same category for it; the sample types include positive samples, negative samples, and uncertain samples; for a prediction target, when its vote count is not less than a preset positive sample threshold, it is determined to be a positive sample; when its vote count is less than a preset negative sample threshold, it is determined to be a negative sample; when its vote count is between the positive sample threshold and the negative sample threshold, it is determined to be an uncertain sample;
[0022] Targets that are judged as negative samples are eliminated; targets that are judged as positive samples or uncertain samples are fused with the prediction results of different models corresponding to the same target by weighted averaging.
[0023] For targets judged as uncertain samples, manual verification and correction are performed.
[0024] Furthermore, the prediction results of the multiple annotation models are determined by multiple rounds of one-to-one matching to determine which prediction results belong to the same real target, including:
[0025] Step 1, select a category as the category to be processed;
[0026] Step 2, obtaining prediction results of multiple annotation models corresponding to the category to be processed, and numbering each model and each prediction box of each model respectively;
[0027] Step 3, selecting the first model from the multiple labeled models corresponding to the category to be processed as the model to be processed, assuming that its prediction result for the category to be processed includes K1 prediction boxes;
[0028] Step 4, performing prediction frame matching operation on the remaining models except the model to be processed and the model to be processed in sequence; wherein, assuming that the prediction result of the model currently used for matching for the category to be processed includes K2 prediction frames; then the prediction frame matching operation process includes: calculating the matching cost between the K1 prediction frames of the model to be processed and the K2 prediction frames of the model currently used for matching by a preset cost function, forming a cost matrix with a dimension of K1*K2, and using the Hungarian matching algorithm to calculate the optimal matching result; for each prediction frame in the model to be processed, storing the number of itself and the prediction frame that successfully matches it and the corresponding model number into its corresponding set; and marking the successfully matched prediction frame, and the marked prediction frame will no longer enter the subsequent matching process;
[0029] Step 5: Starting from the second model, the remaining models are taken as models to be processed in turn, and after each model to be processed is determined, step 4 is repeated to complete the matching operation of other unmatched prediction boxes;
[0030] Step 6: The remaining categories are taken as categories to be processed in turn, and after each category to be processed is determined, steps 2 to 5 are repeated to form a matching information set corresponding to each category.
[0031] On the other hand, the present invention also provides a point cloud three-dimensional target automatic labeling system based on multi-model fusion, and the point cloud three-dimensional target automatic labeling system based on multi-model fusion includes:
[0032] A model training module, used to train multiple annotation models for automatic annotation of point cloud three-dimensional objects, which are respectively suitable for different working conditions;
[0033] A model prediction module, used to use the multiple annotation models trained by the model training module to respectively predict the results of the point cloud data to be annotated;
[0034] The model fusion module is used to fuse the prediction results of multiple annotation models output by the model prediction module to obtain a target annotation result.
[0035] Furthermore, the model training module is specifically used for:
[0036] On the preset data set, by adjusting the model hyperparameters, we train a labeling model suitable for different types of targets; by adjusting the data of different scenes, we train a labeling model suitable for different working scenarios.
[0037] Furthermore, the model prediction module is specifically used for:
[0038] For the point cloud data that needs to be labeled, the point cloud data is classified according to its working condition labels. After the point cloud data is classified according to its working condition labels, the point cloud data that needs to be labeled is divided into point cloud data of different scenes;
[0039] For point cloud data of different scenes, a series of annotation models suitable for the current scene are selected for prediction; the prediction results include the target 3D box, target category and the model's confidence in the prediction results.
[0040] Furthermore, the model fusion module includes:
[0041] The multi-round matching unit is used to determine which prediction results of multiple labeled models belong to the same real target through multiple rounds of one-to-one matching, so as to obtain the number of models that predict the same position and category for each target;
[0042] The voting judgment unit is used to determine the sample type of each prediction target by its vote count; wherein the vote count of the prediction target is the number of models that predict the same position and the same category for it; the sample types include positive samples, negative samples and uncertain samples; for a prediction target, when its vote count is not less than a preset positive sample threshold, it is determined to be a positive sample; when its vote count is less than a preset negative sample threshold, it is determined to be a negative sample and is eliminated; when its vote count is between the positive sample threshold and the negative sample threshold, it is determined to be an uncertain sample;
[0043] The result fusion unit is used to fuse the prediction results of different models corresponding to the same target through weighted averaging for the targets determined as positive samples or uncertain samples;
[0044] The manual verification module is used to perform manual verification and correction on targets determined to be uncertain samples.
[0045] Furthermore, the multi-round matching unit is specifically used to perform the following steps:
[0046] Step 1, select a category as the category to be processed;
[0047] Step 2, obtaining prediction results of multiple annotation models corresponding to the category to be processed, and numbering each model and each prediction box of each model respectively;
[0048] Step 3, selecting the first model from the multiple labeled models corresponding to the category to be processed as the model to be processed, assuming that its prediction result for the category to be processed includes K1 prediction boxes;
[0049] Step 4, performing prediction frame matching operation on the remaining models except the model to be processed and the model to be processed in sequence; wherein, assuming that the prediction result of the model currently used for matching for the category to be processed includes K2 prediction frames; then the prediction frame matching operation process includes: calculating the matching cost between the K1 prediction frames of the model to be processed and the K2 prediction frames of the model currently used for matching by a preset cost function, forming a cost matrix with a dimension of K1*K2, and using the Hungarian matching algorithm to calculate the optimal matching result; for each prediction frame in the model to be processed, storing the number of itself and the prediction frame that successfully matches it and the corresponding model number into its corresponding set; and marking the successfully matched prediction frame, and the marked prediction frame will no longer enter the subsequent matching process;
[0050] Step 5: Starting from the second model, the remaining models are taken as models to be processed in turn, and after each model to be processed is determined, step 4 is repeated to complete the matching operation of other unmatched prediction boxes;
[0051] Step 6: The remaining categories are taken as categories to be processed in turn, and after each category to be processed is determined, steps 2 to 5 are repeated to form a matching information set corresponding to each category.
[0052] On the other hand, the present invention further provides an electronic device, comprising a processor and a memory; wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the above method.
[0053] In yet another aspect, the present invention further provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, and the instruction is loaded and executed by a processor to implement the above method.
[0054] The core innovation of the technical solution provided by the present invention is to realize automatic labeling of three-dimensional point cloud targets by using multi-model fusion technology. This method combines the advantages of multiple point cloud target detection models, improves detection accuracy, robustness and adaptability, and thus can achieve high-quality three-dimensional point cloud target labeling in various environments and target types. Based on this, the beneficial effects brought by the present invention compared with the prior art include at least:
[0055] 1. Improve detection performance: By combining the advantages of multiple point cloud target detection models, the present invention can achieve higher detection accuracy and lower false alarm rate in various environments and target types. Multi-model fusion can make full use of the advantages of each model in specific scenarios and target types to improve the overall annotation quality.
[0056] 2. Enhanced robustness: The multi-model fusion method provided by the present invention has stronger robustness in the face of noise, occlusion, incomplete data and other problems. By comprehensively considering the output results of multiple models, the impact of the shortcomings of a single model on the final annotation result can be reduced.
[0057] 3. Better generalization ability: The multi-model fusion solution provided by the present invention can achieve better generalization ability when facing new or unknown scenes and target types. Since the various models may be complementary, the multi-model fusion method has better performance than a single model when dealing with unknown situations.
[0058] 4. Scalability: The multi-model fusion method of the present invention has good scalability and can easily process more complex scenes or higher-resolution point cloud data by adding more detection models or distributed computing.
[0059] In summary, the point cloud three-dimensional target automatic labeling method based on multi-model fusion provided by the present invention has higher detection performance, robustness, generalization ability and scalability than the existing target automatic labeling method based on a single model, and provides an effective solution for achieving high-quality point cloud target detection and labeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0061] Figure 1 It is a schematic diagram of the execution flow of the method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion provided by the first embodiment of the present invention;
[0062] Figure 21 is a schematic diagram of the execution flow of a method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion provided in a second embodiment of the present invention;
[0063] Figure 3 It is a flowchart of a multi-round matching solution provided by the second embodiment of the present invention. DETAILED DESCRIPTION
[0064] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0065] First embodiment
[0066] In view of the limitation of the single-model based 3D point cloud target automatic labeling method in dealing with complex scenes, different target types and environmental conditions, in order to improve the accuracy and robustness of point cloud target automatic labeling, this embodiment considers adopting a multi-model fusion method to make full use of the advantages of each model in specific scenes and target types, thereby achieving higher quality target detection and labeling. In this regard, this embodiment provides a point cloud 3D target automatic labeling method based on multi-model fusion, which can be implemented by an electronic device. The execution process of the method is as follows: Figure 1 As shown, the following steps are included:
[0067] S1, training multiple annotation models for automatic annotation of point cloud 3D objects, which are respectively suitable for different working conditions;
[0068] S2, using multiple trained annotation models to predict the results of the point cloud data that needs to be annotated;
[0069] S3, the prediction results of multiple labeling models are integrated to obtain the target labeling result.
[0070] In summary, this embodiment provides a method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion, which uses multi-model fusion technology to achieve automatic annotation of three-dimensional point cloud objects. This method combines the advantages of multiple point cloud object detection models, improves detection accuracy, robustness and adaptability, and can achieve high-quality three-dimensional point cloud object annotation in various environments and object types. It has broad application prospects.
[0071] Second embodiment
[0072] This embodiment provides a method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion, which can be implemented by an electronic device. The execution process of the method is as follows: Figure 2 As shown, the following steps are included:
[0073] 1. Model training: produce models suitable for various working conditions;
[0074] Specifically, this embodiment first needs to adjust the model hyperparameters and training data distribution on a dataset with manually labeled labels, and train multiple annotation models for automatic annotation. Including: By adjusting the model hyperparameters, such as adjusting the size parameters of the point cloud voxels, the detection distance, etc., a more friendly annotation model for small targets such as pedestrians and cones can be obtained. By adjusting the data of different scenes, the model can better detect data for specific working conditions. For example, a model trained separately for scenes such as rainy days can better adapt to rainy scenes than a general data set. Common labels include but are not limited to trucks, cars, bicycles, etc.
[0075] 2. Model prediction: For the point cloud data that needs to be annotated, select a series of models to predict the results according to the scene conditions;
[0076] Specifically, for point cloud data that need to be labeled, this embodiment first screens according to the working conditions of each point cloud data packet; wherein, the working condition label of the point cloud data packet can be manually marked during collection, or can be classified by a special working condition model. After classifying the working conditions of the point cloud, this embodiment divides the point cloud that needs to be labeled into data of different scenes, such as sunny scenes of urban roads, rainy scenes of highways, etc. For point cloud data of different scenes, this embodiment selects a corresponding series of annotation models for prediction. The prediction results include the target three-dimensional box, the target category, and the confidence of the model in the prediction results.
[0077] 3. Multi-round matching: Every two model prediction results are matched one by one, and the matching results of multiple rounds of matching are recorded;
[0078] Specifically, for the prediction results of multiple models, this embodiment determines which prediction results belong to the same real target through multiple rounds of one-to-one matching; wherein the multiple rounds of matching scheme are as follows: Figure 3 As shown, including:
[0079] a. Assuming there are N models, first take the prediction result of one category of the first model, for example,
[0080] The car category has K1 detection boxes;
[0081] b. Take out the prediction results of the second model for the truck category. Assuming there are K2 boxes, for the K1 boxes of the first model and the K2 boxes of the second model, calculate the matching costs between the K1 boxes and the K2 boxes (the cost function includes but is not limited to the intersection over union, i.e., IOU method), form a cost matrix with a dimension of K1*K2, and use the Hungarian matching algorithm to calculate the optimal matching result;
[0082] c. Repeat the above steps for the remaining models, and perform pairwise matching with the K1 detection boxes of the first model.
[0083] Match, calculate the matching results;
[0084] d. The matching process of K1 target frames of the first model truck category is completed, forming K1 sets. Each set records the matching information of K1 frames, including the prediction frame number that can be matched and the corresponding model number. In extreme cases, a prediction frame of the first model does not have a matching frame of any other model, and the set only contains the prediction frame of the first model itself. For detection frames of other models that have already matched with the first frame, they are marked and no longer enter the subsequent matching process;
[0085] e. Starting from the second model, repeat the above ad steps to mark the matching detection box and record it.
[0086] to the matching information set;
[0087] f. Repeat the above steps ae to process other categories such as cars and bicycles to form matching information sets for their respective categories.
[0088] Based on the above multi-round matching voting strategy, this embodiment can achieve a voting result in which one frame participates in one vote and no duplication or omission through a multi-round one-to-one matching process, in which the matched target does not participate in the subsequent matching. For the target missed by the previous model, the subsequent model can continue to vote to achieve the effect of recalling the target.
[0089] 4. Voting judgment: For each prediction target, the number of votes determines whether it is a positive sample, a negative sample, or an uncertain sample;
[0090] Specifically, in this embodiment, the prediction result of each model is regarded as a "vote". The votes of all models are collected and counted according to the prediction category. For example, in this embodiment, 10 models are used to vote on the results. If after the previous matching process, 8 models predict the target of the same category in the same position, then it is considered that this target has obtained 8 votes. In order to determine which samples are positive samples, which are negative samples and uncertain samples, it is necessary to set a threshold for the votes to determine. This threshold can be fixed or dynamically adjusted according to factors such as model performance and sample distribution. For example, the positive sample threshold can be set to 60%, indicating that a sample needs at least 60% of the model voting results to be consistent in order to be identified as a positive sample; the negative sample threshold is set to 30%, and the target with less than 30% model votes is regarded as a negative sample and is eliminated; the number of votes is between the positive and negative sample thresholds, and it is determined to be an uncertain sample.
[0091] 5. Result fusion: For positive samples and uncertain samples, multiple candidate boxes participating in the voting are fused;
[0092] Specifically, for positive samples and uncertain samples, this embodiment fuses the detection results of different models of the same target by weighted averaging. Targets that are determined to be negative samples are eliminated.
[0093] 6. Manual verification: For uncertain samples, manual verification and correction are performed;
[0094] Specifically, for uncertain samples, experts or labelers can be asked to perform manual verification. The verification results can be used to correct sample annotations or to further optimize and adjust the model.
[0095] In addition, in this embodiment, uncertain samples can also be used directly in the training process by not taking them into account in the loss function and other training strategies.
[0096] In summary, this embodiment provides a method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion, which uses multi-model fusion technology to achieve automatic annotation of three-dimensional point cloud objects. This method combines the advantages of multiple point cloud object detection models, improves detection accuracy, robustness and adaptability, and can achieve high-quality three-dimensional point cloud object annotation in various environments and object types. It has broad application prospects.
[0097] Third embodiment
[0098] This embodiment provides a point cloud three-dimensional object automatic labeling system based on multi-model fusion, and the point cloud three-dimensional object automatic labeling system based on multi-model fusion includes the following modules:
[0099] A model training module, used to train multiple annotation models for automatic annotation of point cloud three-dimensional objects, which are respectively suitable for different working conditions;
[0100] A model prediction module, used to use the multiple annotation models trained by the model training module to respectively predict the results of the point cloud data to be annotated;
[0101] The model fusion module is used to fuse the prediction results of multiple annotation models output by the model prediction module to obtain a target annotation result.
[0102] The point cloud three-dimensional target automatic labeling system based on multi-model fusion of this embodiment corresponds to the point cloud three-dimensional target automatic labeling method based on multi-model fusion of the above-mentioned first embodiment; wherein, the functions implemented by each functional module in the point cloud three-dimensional target automatic labeling system based on multi-model fusion of this embodiment correspond one by one to the each process step in the point cloud three-dimensional target automatic labeling method based on multi-model fusion of the above-mentioned first embodiment; therefore, they will not be repeated here.
[0103] Fourth embodiment
[0104] This embodiment provides an electronic device, which includes a processor and a memory; wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method of the first embodiment.
[0105] The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) and one or more memories, wherein the memory stores at least one instruction, and the instruction is loaded by the processor to execute the above method.
[0106] Fifth embodiment
[0107] This embodiment provides a computer-readable storage medium, which stores at least one instruction, and the instruction is loaded and executed by a processor to implement the method of the first embodiment. The computer-readable storage medium may be a ROM, a random access memory, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc. The instructions stored therein may be loaded by a processor in a terminal and the following steps may be executed.
[0108] In addition, it should be noted that the present invention can be provided as a method, an apparatus or a computer program product. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0109] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0110] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0111] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0112] Finally, it should be noted that the above is a preferred embodiment of the present invention. It should be pointed out that although the preferred embodiment of the present invention has been described, for those skilled in the art, once the basic creative concept of the present invention is known, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention. Therefore, the attached claims are intended to be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the embodiments of the present invention.
Claims
1. A method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion, characterized in that: include: Train multiple annotation models for automatic annotation of point cloud 3D objects, which are suitable for different working conditions; Use multiple trained annotation models to predict the results of the point cloud data that needs to be annotated; The prediction results of multiple annotation models are integrated to obtain the target annotation result; The prediction results of multiple annotation models are fused to obtain the target annotation result, including: For the prediction results of multiple labeled models, multiple rounds of one-to-one matching are used to determine which prediction results belong to the same real target, so as to obtain the number of models that predict the same position and category for each target; For each prediction target, its sample type is determined by its vote count; wherein the vote count of a prediction target is the number of models that predict the same position and the same category for it; the sample types include positive samples, negative samples, and uncertain samples; for a prediction target, when its vote count is not less than a preset positive sample threshold, it is determined to be a positive sample; when its vote count is less than a preset negative sample threshold, it is determined to be a negative sample; when its vote count is between the positive sample threshold and the negative sample threshold, it is determined to be an uncertain sample; Targets that are judged as negative samples are eliminated; targets that are judged as positive samples or uncertain samples are fused with the prediction results of different models corresponding to the same target by weighted averaging. For targets judged as uncertain samples, manual verification and correction are performed.
2. The method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion according to claim 1, characterized in that: The training of multiple annotation models for automatic annotation of point cloud three-dimensional objects, which are respectively suitable for different working conditions, includes: On the preset data set, by adjusting the model hyperparameters, we train a labeling model suitable for different types of targets; by adjusting the data of different scenes, we train a labeling model suitable for different working scenarios.
3. The method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion according to claim 1, characterized in that: The method of using the trained multiple annotation models to respectively predict the results of the point cloud data to be annotated includes: For the point cloud data that needs to be labeled, the point cloud data is classified according to its working condition labels. After the point cloud data is classified according to its working condition labels, the point cloud data that needs to be labeled is divided into point cloud data of different scenes; For point cloud data of different scenes, a series of annotation models suitable for the current scene are selected for prediction; the prediction results include the target 3D box, target category and the model's confidence in the prediction results.
4. The method for automatic annotation of three-dimensional objects in point clouds based on multi-model fusion according to claim 1, characterized in that: The prediction results of the multiple labeled models are determined by multiple rounds of one-to-one matching to determine which prediction results belong to the same real target, including: Step 1, select a category as the category to be processed; Step 2, obtaining prediction results of multiple annotation models corresponding to the category to be processed, and numbering each model and each prediction box of each model respectively; Step 3, selecting the first model from the multiple labeled models corresponding to the category to be processed as the model to be processed, assuming that its prediction result for the category to be processed includes K1 prediction boxes; Step 4, performing prediction frame matching operation on the remaining models except the model to be processed and the model to be processed in sequence; wherein, assuming that the prediction result of the model currently used for matching for the category to be processed includes K2 prediction frames; then the prediction frame matching operation process includes: calculating the matching cost between the K1 prediction frames of the model to be processed and the K2 prediction frames of the model currently used for matching by a preset cost function, forming a cost matrix with a dimension of K1*K2, and using the Hungarian matching algorithm to calculate the optimal matching result; for each prediction frame in the model to be processed, storing the number of itself and the prediction frame that successfully matches it and the corresponding model number into its corresponding set; and marking the successfully matched prediction frame, and the marked prediction frame will no longer enter the subsequent matching process; Step 5: Starting from the second model, the remaining models are taken as models to be processed in turn, and after each model to be processed is determined, step 4 is repeated to complete the matching operation of other unmatched prediction boxes; Step 6: The remaining categories are taken as categories to be processed in turn, and after each category to be processed is determined, steps 2 to 5 are repeated to form a matching information set corresponding to each category.
5. A point cloud 3D target automatic annotation system based on multi-model fusion, characterized in that: include: A model training module, used to train multiple annotation models for automatic annotation of point cloud three-dimensional objects, which are respectively suitable for different working conditions; A model prediction module, used to use the multiple annotation models trained by the model training module to respectively predict the results of the point cloud data to be annotated; A model fusion module, used to fuse the prediction results of multiple annotation models output by the model prediction module to obtain a target annotation result; The model fusion module includes: The multi-round matching unit is used to determine which prediction results of multiple labeled models belong to the same real target through multiple rounds of one-to-one matching, so as to obtain the number of models that predict the same position and category for each target; The voting judgment unit is used to determine the sample type of each prediction target by its vote count; wherein the vote count of the prediction target is the number of models that predict the same position and the same category for it; the sample types include positive samples, negative samples and uncertain samples; for a prediction target, when its vote count is not less than a preset positive sample threshold, it is determined to be a positive sample; when its vote count is less than a preset negative sample threshold, it is determined to be a negative sample and is eliminated; when its vote count is between the positive sample threshold and the negative sample threshold, it is determined to be an uncertain sample; The result fusion unit is used to fuse the prediction results of different models corresponding to the same target through weighted averaging for the targets determined as positive samples or uncertain samples; The manual verification module is used to perform manual verification and correction on targets determined to be uncertain samples.
6. The point cloud three-dimensional object automatic labeling system based on multi-model fusion according to claim 5, characterized in that: The model training module is specifically used for: On the preset data set, by adjusting the model hyperparameters, we train a labeling model suitable for different types of targets; by adjusting the data of different scenes, we train a labeling model suitable for different working scenarios.
7. The point cloud three-dimensional object automatic labeling system based on multi-model fusion according to claim 5, characterized in that: The model prediction module is specifically used for: For the point cloud data that needs to be labeled, the point cloud data is classified according to its working condition labels. After the point cloud data is classified according to its working condition labels, the point cloud data that needs to be labeled is divided into point cloud data of different scenes; For point cloud data of different scenes, a series of annotation models suitable for the current scene are selected for prediction; The prediction results include the target 3D box, target category, and the model's confidence in the prediction results.
8. The point cloud three-dimensional object automatic labeling system based on multi-model fusion according to claim 6, characterized in that: The multi-round matching unit is specifically used to perform the following steps: Step 1, select a category as the category to be processed; Step 2, obtaining prediction results of multiple annotation models corresponding to the category to be processed, and numbering each model and each prediction box of each model respectively; Step 3, selecting the first model from the multiple labeled models corresponding to the category to be processed as the model to be processed, assuming that its prediction result for the category to be processed includes K1 prediction boxes; Step 4, performing prediction frame matching operation on the remaining models except the model to be processed and the model to be processed in sequence; wherein, assuming that the prediction result of the model currently used for matching for the category to be processed includes K2 prediction frames; then the prediction frame matching operation process includes: calculating the matching cost between the K1 prediction frames of the model to be processed and the K2 prediction frames of the model currently used for matching by a preset cost function, forming a cost matrix with a dimension of K1*K2, and using the Hungarian matching algorithm to calculate the optimal matching result; for each prediction frame in the model to be processed, storing the number of itself and the prediction frame that successfully matches it and the corresponding model number into its corresponding set; and marking the successfully matched prediction frame, and the marked prediction frame will no longer enter the subsequent matching process; Step 5: Starting from the second model, the remaining models are taken as models to be processed in turn, and after each model to be processed is determined, step 4 is repeated to complete the matching operation of other unmatched prediction boxes; Step 6: The remaining categories are taken as categories to be processed in turn, and after each category to be processed is determined, steps 2 to 5 are repeated to form a matching information set corresponding to each category.
