A three-dimensional point cloud completion method, device and storage medium based on component information

Through the three-dimensional point cloud completion method based on component information, the U-Net model and attention module are used to decompose and complete the component information of the point cloud, which solves the problem of complex point cloud completion network structure and insufficient detail completion in the existing technology. Accurate questions, achieving a more efficient point cloud completion effect.

CN117274454BActive Publication Date: 2024-10-18XIAN JIAOTONG LIVERPOOL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311092690.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2024-10-18
Estimated Expiration
2043-08-29

AI Technical Summary

Technical Problem

The existing 3D point cloud completion network has complex structure and inaccurate point cloud detail completion.

Method used

A three-dimensional point cloud completion method based on component information is used to obtain the residual point cloud and its component information, decompose it into sub-point clouds and input them into the pre-trained U-Net encoder-decoder model, and use the attention module to connect The encoder and decoder perform feature extraction and completion, and are finally spliced ​​to form a complete point cloud.

Benefits of technology

It improves the accuracy and detail capabilities of 3D point cloud completion, simplifies the model structure, provides more accurate feature information, and reduces the offset correction error of point cloud completion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117274454B_ABST
    Figure CN117274454B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device and storage medium for completing a three-dimensional point cloud based on component information, and to the field of data processing technology, wherein the method includes obtaining a residual point cloud and component information of each residual point cloud; extracting the residual point cloud of the same component information into a sub-point cloud corresponding to the component information; obtaining a pre-trained three-dimensional point cloud completion model, the three-dimensional point cloud completion model relies on the encoder-decoder framework of U‑Net; inputting the sub-point cloud corresponding to each component information into the pre-trained three-dimensional point cloud completion model respectively, and obtaining a sub-completed point cloud corresponding to each component information; splicing each sub-completed point cloud to obtain a complete point cloud corresponding to the residual point cloud. The three-dimensional point cloud completion method of the present application can complete the component information of the residual point cloud, and solves the problem of complex point cloud completion network structure and inaccurate point cloud detail completion in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and specifically to a three-dimensional point cloud completion method, device and storage medium based on component information. Background Art

[0002] In recent years, deep learning methods for processing two-dimensional images have gradually extended to the processing of three-dimensional objects. Three-dimensional objects generally have three forms of representation: voxels, grids, and point clouds. Since point clouds require less memory than grid and voxel representations and contain a more comprehensive perspective, they are currently widely used to represent three-dimensional objects. In the process of collecting point clouds of three-dimensional objects, it is necessary to collect the point clouds of three-dimensional objects through point cloud acquisition equipment. However, existing point cloud acquisition equipment is usually affected by the object's own occlusion, low sensor resolution, or unstable environmental factors, which may cause the collected original point cloud to be sparse and incomplete. Therefore, deep learning-based point cloud completion is necessary for further operations such as classification and segmentation.

[0003] The point cloud completion network based on deep learning usually follows the encoder-decoder framework, and a rough point cloud generation module is set between the encoder and the decoder. The encoder is used to extract the global representation of the residual point cloud, and then this global representation will be transformed to generate a rough but complete point cloud as an intermediate representation. Subsequently, the rough point cloud generation module converts the extracted global representation into a rough point cloud, and the decoder generates a dense and fine point cloud based on the rough point cloud of the intermediate representation.

[0004] In order to generate dense and detailed point clouds, the existing technology has done a lot of exploration on the decoder. Inspired by the explorers, most of the decoders for point cloud completion are currently designed based on folding upsampling methods. The folding upsampling method splices the global features with one or more two-dimensional original grids, and connects the spliced ​​grids to the coarse point cloud generated by the encoder, where the size of each two-dimensional grid determines their upsampling ratio (for example, a 4×4 grid represents a 16-fold upsampling). The spliced ​​grid is used by the folding-based decoder to learn the mapping between the two-dimensional grid and the three-dimensional shape. By providing the decoder with initial two-dimensional coordinates, it is possible to ensure that the upsampled points are fixed around their corresponding coarse points as much as possible, and the generated shape does not deviate too far from the target shape. However, because of this, this fixing method limits the decoder's ability to recover details and cannot guarantee the accuracy of point cloud completion.

[0005] Therefore, how to solve the problem of complex point cloud completion network structure and inaccurate point cloud detail completion in the prior art is a difficult problem faced by those skilled in the art. Summary of the invention

[0006] The purpose of this application is to provide a three-dimensional point cloud completion method, device and storage medium based on component information to solve the problems of complex point cloud completion network structure and inaccurate point cloud detail completion in the prior art.

[0007] In a first aspect, the present application provides a three-dimensional point cloud completion method based on component information, the method comprising:

[0008] Obtaining a residual point cloud and component information of each residual point cloud; extracting residual point clouds with the same component information into sub-point clouds corresponding to the component information;

[0009] Obtain a pre-trained 3D point cloud completion model, wherein the 3D point cloud completion model relies on a U-Net encoder-decoder framework;

[0010] Inputting the sub-point clouds corresponding to each component information into a pre-trained three-dimensional point cloud completion model respectively to obtain the sub-completed point clouds corresponding to each component information, including: calling the encoder to extract component features of the sub-point clouds, combining the component features with the sub-point clouds to obtain global component features; calling the decoder to complete the component information of the sub-point clouds according to the global component features to obtain the sub-completed point clouds corresponding to the component information;

[0011] The sub-completion point clouds are spliced ​​together to obtain the complete point cloud corresponding to the incomplete point cloud.

[0012] Furthermore, the feature update layer in the encoder is connected to the feature aggregation layer in the decoder through an attention module, and the attention module learns the update features of each feature update layer in the encoder and adds them to the feature offset module of the corresponding feature aggregation layer in the decoder;

[0013] The calling the decoder to complete the component information of the sub-point cloud according to the global component feature to obtain the sub-completed point cloud corresponding to the component information includes:

[0014] Calling the feature splitting module in the decoder to complete the missing point cloud according to the global component feature to generate the initial component feature of the missing point cloud;

[0015] Based on the attention module learning the update features of the feature update layer in the encoder, feature shifting is performed on the global component features to optimize the component features of the missing point cloud;

[0016] The offset features in the feature offset module and the split features in the feature splitting module are aggregated to complete the residual point cloud and correct the offset of the completed point cloud, so as to obtain a sub-completed point cloud with complete component information.

[0017] Further, the calling the encoder to extract component features of the sub-point cloud includes:

[0018] The most significant features in the neighborhood of the sub-point cloud are retained as the updated features of each sub-point cloud;

[0019] downsampling the update features;

[0020] The feature updating and downsampling operations are repeated to obtain the component features of the sub-point cloud.

[0021] The method of retaining the most significant features in the neighborhood of the sub-point cloud as updated features of each sub-point cloud includes:

[0022] The k-nearest neighbor method is used to obtain the neighborhood information of each sub-point cloud;

[0023] The multi-layer perceptron learns the feature relationship between each sub-point cloud and the point clouds in its neighborhood, thus achieving dimensionality increase of point cloud features.

[0024] Max pooling is used to retain the most salient features in the neighborhood of a sub-point cloud as the updated features of each sub-point cloud.

[0025] Furthermore, the training method of the three-dimensional point cloud completion model includes:

[0026] Determine the incomplete training point cloud and the corresponding complete point cloud;

[0027] According to the given component information of the defect cloud, the defect cloud with the same component information is extracted into a sub-point cloud corresponding to the component information;

[0028] The sub-point clouds corresponding to each component information are respectively input into the 3D point cloud completion model to be trained to obtain the sub-completed point clouds corresponding to each component information;

[0029] The sub-completed point clouds corresponding to all component information are spliced ​​together as the predicted completed point cloud;

[0030] The parameters of the 3D point cloud completion model are optimized according to the difference between the predicted completed point cloud and the complete point cloud.

[0031] The performing parameter optimization processing on the three-dimensional point cloud completion model includes inputting the predicted completed point cloud and the complete point cloud into a target loss function;

[0032] The objective loss function can be expressed as:

[0033]

[0034] in, is the first loss value, which indicates the distance between the predicted completed point cloud corresponding to a component information and the complete point cloud corresponding to the component information, and is the sum of the loss values ​​of the completed point clouds corresponding to all component information; is the second loss value, Represents the distance between the entire predicted completed point cloud and the complete point cloud; α is the weighting coefficient corresponding to the second loss value.

[0035] The calculation formula of the distance between the predicted completed point cloud and the complete point cloud can be expressed as:

[0036]

[0037] Among them, S1 and S2 represent the predicted completed point cloud and complete point cloud respectively.

[0038] In a second aspect, the present application further provides a three-dimensional point cloud completion device based on component information, the device comprising:

[0039] A defect cloud acquisition module is used to acquire the defect cloud and component information of each defect cloud; extract the defect cloud with the same component information into a sub-point cloud corresponding to the component information;

[0040] A model acquisition module is used to acquire a pre-trained 3D point cloud completion model, where the 3D point cloud completion model relies on the encoder-decoder framework of U-Net;

[0041] The completion module is used to input the sub-point cloud corresponding to each component information into a pre-trained three-dimensional point cloud completion model to obtain the sub-completed point cloud corresponding to each component information, including: calling the encoder to extract the component features of the sub-point cloud, combining the component features with the sub-point cloud to obtain the global component features; calling the decoder to complete the component information of the sub-point cloud according to the global component features to obtain the sub-completed point cloud corresponding to the component information;

[0042] The stitching module is used to stitch the sub-completion point clouds to obtain the complete point cloud corresponding to the incomplete point cloud.

[0043] In a third aspect, the present application further provides an electronic device, the device comprising:

[0044] at least one memory for storing a computer program;

[0045] At least one processor is used to implement a three-dimensional point cloud completion method based on component information as described in the first aspect when executing the computer program.

[0046] 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 three-dimensional point cloud completion method based on component information as described in the first aspect is implemented.

[0047] The beneficial effect of the present application is that the present application provides a three-dimensional point cloud completion method based on component information, obtains residual point clouds and component information corresponding to each residual point cloud, and separately inputs the residual point clouds of the same component from the given component information into a pre-trained three-dimensional point cloud completion model. The model only completes a sub-point cloud corresponding to one component information at a time, and the obtained sub-completed point cloud has complete component information. Finally, all sub-completed point clouds corresponding to the component information are combined to form a complete point cloud with component information, which greatly improves the three-dimensional point cloud completion effect and the ability to complete point cloud details.

[0048] In addition, the global component features obtained by combining the residual point cloud with the component features are input into the decoder to provide more direct original point cloud information and more accurate feature information for point cloud completion.

[0049] In addition, the decoder used only splits the features of the point cloud, and there is no need to set a rough point cloud generation module between the encoder and the decoder, which simplifies the structure of the model and flexibly sets the upsampling multiples in the decoder, so that the point cloud can be completed more finely.

[0050] In addition, an attention module is set between the encoder and the decoder. The attention module learns the feature information in the encoder and supplements it to the decoder to solve the forgetting problem that may occur in the multi-layer design of the model. Based on the feature information learned by the attention module, the feature offset that occurs after multiple feature updates of the encoder is corrected, and the incomplete defect cloud is completed more accurately.

[0051] In addition, the 3D point cloud completion model calculates the loss function based on the distance between the completed point cloud and the components of the complete point cloud. The loss value is calculated for each component separately, which can reduce the impact of component information on the completion effect and improve the effect of the model in completing the point cloud details to a certain extent.

[0052] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present application in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of a process flow of a three-dimensional point cloud completion method based on component information provided in an embodiment of the present application;

[0054] Figure 2A schematic diagram of reconstructing a complete point cloud from a residual point cloud provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of the structure of a three-dimensional point cloud completion model provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of a flow chart of a training method for a three-dimensional point cloud completion model provided in an embodiment of the present application;

[0057] Figure 5 A flowchart of a three-dimensional point cloud completion method based on component information provided in an embodiment of the present application;

[0058] Figure 6 A schematic diagram of the structure of a three-dimensional point cloud completion device based on component information provided in an embodiment of the present application;

[0059] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0061] In view of the problems in the prior art of completing three-dimensional residual point clouds, such as complex completion model structure and inaccurate completion of point cloud details, the present application provides a three-dimensional point cloud completion method, device and storage medium based on component information.

[0062] Figure 1 A schematic diagram of a flow chart of a three-dimensional point cloud completion method based on component information provided in an embodiment of the present application, such as Figure 1As shown, the method includes: step S101: obtaining a residual point cloud and component information of each residual point cloud; extracting the residual point cloud with the same component information into a sub-point cloud corresponding to the component information; step S102: obtaining a pre-trained 3D point cloud completion model, the 3D point cloud completion model relies on the encoder-decoder framework of U-Net; step S103: inputting the sub-point cloud corresponding to each component information into the pre-trained 3D point cloud completion model respectively, and obtaining a sub-completed point cloud corresponding to each component information, including: calling the encoder to extract component features of the sub-point cloud, combining the component features with the sub-point cloud to obtain a global component feature; calling the decoder to complete the component information of the sub-point cloud according to the global component feature, and obtaining a sub-completed point cloud corresponding to the component information; step S104: splicing each sub-completed point cloud to obtain a complete point cloud corresponding to the residual point cloud.

[0063] Among them, the 3D point cloud is the position data of the object surface obtained by measuring instruments such as infrared detectors or laser detectors, and usually represents the position information of the object surface in a certain spatial coordinate system. However, the existing point cloud acquisition equipment is usually affected by the object itself, low sensor resolution or unstable environmental factors, and the collected original point cloud is generally sparse and incomplete. At this time, the collected point cloud is a residual point cloud and cannot fully represent the shape of the target object. Figure 2 As shown, take the airplane as an example. Figure 2 In the figure, (a) represents the incomplete point cloud, and (b) represents the complete point cloud. The complete point cloud can clearly represent the overall shape of the aircraft and its various structural parts, including the fuselage, wings, tail, etc. The purpose of this application is to complete the incomplete point cloud shown in Figure (a) and obtain a dense and detailed complete point cloud in Figure (b), so as to make the image recognition process more accurate.

[0064] In the above step S101, the defect cloud and the component information of each defect cloud are obtained.

[0065] Specifically, an incomplete three-dimensional point cloud set usually contains multiple different component information. The incomplete point cloud with the same component information is extracted as a sub-point cloud corresponding to the component information. However, the number of points in each extracted sub-point cloud may not be the same. Therefore, in actual operation, it is necessary to fill the sub-point cloud corresponding to each component information with zeros to the same number of points.

[0066] In one example, the defect cloud includes four component information, and the defect clouds corresponding to each component information are distinguished by blue, green, red, and yellow, respectively. In other embodiments, the defect cloud can also distinguish the component information by other methods.

[0067] In the above step S102, a pre-trained three-dimensional point cloud completion model is obtained, and the three-dimensional point cloud completion model relies on the encoder-decoder framework of U-Net.

[0068] In the above step S103, the sub-point clouds corresponding to each component information are respectively input into the pre-trained 3D point cloud completion model to obtain the sub-completed point clouds corresponding to each component information, including:

[0069] (1) Call the encoder to extract the component features of the sub-point cloud, and combine the component features with the sub-point cloud to obtain the global component features.

[0070] Specifically, the encoder learns the correlation between points in the sub-point cloud set and extracts the feature information of each sub-point cloud. In one example, the encoder includes multiple feature update layers and downsampling layers. The feature update layer retains the most significant features in the sub-point cloud neighborhood as updated features for each point cloud, and optimizes the component features of the residual point cloud; the downsampling layer uses the farthest point sampling method to downsample the point cloud after the updated features, which can reduce the size of the feature matrix and thus reduce the amount of calculation. At this time, the farthest point sampling can maximize the retention of the geometric structure of the point cloud, so that the sampled point set has a similar structure to the original point set, thereby reducing the impact on the completion effect of the residual point cloud.

[0071] Specifically, the feature update layer receives the input sub-point cloud, which is represented as a matrix of N×Cin. The specific process of retaining the most significant features in the neighborhood of the sub-point cloud as the updated features of each sub-point cloud is:

[0072] 1) Use the k-nearest neighbor method to obtain the neighborhood information of each sub-point cloud and obtain the feature matrix of N×k×Cin;

[0073] Since the residual point cloud is permutation invariant, the original residual point cloud cannot explicitly display the neighborhood information of each point cloud. Therefore, the k-nearest neighbor method is used to construct explicit neighborhood information for the residual point cloud, and the feature matrix is ​​obtained to represent the feature information of each point cloud and the (k-1) point clouds closest to it in the neighborhood.

[0074] Among them, the distance between each point cloud is calculated using Euclidean distance, and the specific calculation method is:

[0075]

[0076] Among them, ρ represents the distance between the point cloud with three-dimensional coordinates (x1, y1, z1) and the point with three-dimensional coordinates (x2, y2, z2).

[0077] 2) The multi-layer perceptron learns the feature relationship between each sub-point cloud and the point clouds in its neighborhood, realizes the dimensionality increase of the point cloud features, and obtains the feature matrix of N×k×C1, where C1>Cin;

[0078] 3) Use maximum pooling to retain the most significant features in the neighborhood of the sub-point cloud as the updated features of each sub-point cloud, and obtain an N×C1 feature matrix.

[0079] Taking the matrix of the three-dimensional point cloud of the residual point cloud as 512×3 as an example, where 512 is the number of sub-point clouds of the residual point cloud and 3 is the feature dimension of each sub-point cloud in the residual point cloud, the specific process of updating the features of each sub-point cloud can be as follows: first, explicit neighborhood information is constructed for each point cloud using the k-nearest neighbor method. If k=8, a 512×8×3 feature matrix is ​​obtained through the k-nearest neighbor method. The feature matrix representing the neighborhood information of the point cloud is then input into the multi-layer perceptron to learn the feature relationship between each point cloud and the point clouds in its neighborhood, and a 512×8×64 feature matrix is ​​obtained, where 64 indicates that the point cloud feature changes from 3D to 64D. Then, the maximum pooling is used to retain the most significant 64-dimensional features in the neighborhood as the updated features of 512 points, and a feature matrix of 512×64 is obtained.

[0080] In this embodiment, in order to extract component features of residual point clouds at multiple scales, component features corresponding to sub-point clouds are obtained by repeatedly performing feature updating and downsampling operations, and the extracted component features are combined with the input sub-point clouds to obtain global component features.

[0081] Specifically, in order to reduce the error in the feature extraction process, the component features are subjected to maximum pooling and average pooling respectively to obtain feature vectors of two lengths, and these two vectors are connected to obtain the feature vector corresponding to the component information. In order to combine the feature vector with the original point cloud coordinates, the feature vector is copied N times and then connected to the input sub-point cloud to obtain the global component feature.

[0082] In this embodiment, only the above encoder structure is used as an example for introduction. Completion methods corresponding to other structural forms can refer to the introduction of this embodiment and will not be repeated here.

[0083] (2) Call the decoder to complete the component information of the sub-point cloud according to the global component features, and obtain the sub-completed point cloud corresponding to the component information.

[0084] Specifically, after receiving the global component features, the decoder splits the features to obtain a sub-completion point cloud corresponding to the component information, and the completed point cloud has complete component information. In this embodiment, the specific structure of the split-based upsampling decoding is not limited. The decoder mainly includes multiple feature aggregation layers, each of which consists of a feature offset module and a feature splitting module.

[0085] Specifically, a working process of the decoder based on the above structure can be as follows:

[0086] 1) Call the feature splitting module to complete the missing point cloud according to the global component features and generate the initial component features of the missing point cloud.

[0087] Specifically, the global component features output from the encoder are used as the input of the feature splitting module. The feature splitting module is implemented by the nearest neighbor interpolation method, which directly splits the global component features to obtain an upsampled feature matrix.

[0088] 2) The update features of the feature update layer in the encoder are learned through the attention module, and the global component features are offset to optimize the component features of the missing point cloud.

[0089] Specifically, the feature offset module receives the global component features and uses deconvolution to learn the offset of the point cloud. When the deconvolution step size s is equal to the convolution kernel k, the point multiple after upsampling is s or k, that is, each offset is equivalent to a feature update of the point cloud that has been upsampled s times.

[0090] like Figure 3 As shown in the figure, the corresponding layers of the encoder and decoder are connected through the attention module. The attention module learns the update features of each feature update layer in the encoder and adds them to the feature offset module of the corresponding feature aggregation layer in the decoder. The calculation method of attention is:

[0091]

[0092] Among them, Q is the offset feature in the decoder, and K and V are the update features in the encoder.

[0093] In this embodiment, there may be one or more attention modules arranged between the encoder and the decoder, and the number of the attention modules is specifically limited according to the structure of the encoder and the decoder.

[0094] 3) Aggregate the offset features in the feature offset module and the split features in the feature splitting module to complete the residual point cloud and correct the offset of the completed point cloud, and obtain a sub-completed point cloud with complete component information.

[0095] Specifically, the features obtained by aggregation are high-dimensional feature matrices, and a multi-layer perceptron is needed to reduce the dimensionality of the feature matrix to obtain a sub-completion point cloud with a dimension corresponding to the input sub-point cloud.

[0096] The decoder used in this embodiment only upsamples the global component features of the encoder, sets the decoder part to a one-step point cloud generation, and flexibly sets the upsampling multiple distribution inside the decoder, making the design inside the decoder more flexible.

[0097] In this embodiment, only one working mode corresponding to the above structure is introduced. The implementation processes of other structures and working modes can refer to the above introduction and will not be repeated here.

[0098] In the above step S104, each sub-completion point cloud is spliced ​​to obtain a complete point cloud corresponding to the incomplete point cloud.

[0099] The present application provides a 3D point cloud completion method based on component information, which obtains residual point clouds and component information corresponding to each residual point cloud, and separately inputs the residual point clouds of the same component from the given component information into a pre-trained 3D point cloud completion model. The model only completes a sub-point cloud corresponding to one component information at a time, and the obtained sub-completed point cloud has complete component information. Finally, all sub-completed point clouds corresponding to the component information are combined to form a complete point cloud with component information, which greatly improves the 3D point cloud completion effect and the ability to complete point cloud details.

[0100] In addition, the global component features obtained by combining the residual point cloud with the component features are input into the decoder to provide more direct original point cloud information and more accurate feature information for point cloud completion.

[0101] In addition, the decoder used only splits the features of the point cloud, and there is no need to set a rough point cloud generation module between the encoder and the decoder, which simplifies the structure of the model and flexibly sets the upsampling multiples in the decoder, so that the point cloud can be completed more finely.

[0102] In addition, an attention module is set between the encoder and the decoder. The attention module learns the feature information in the encoder and supplements it to the decoder to solve the forgetting problem that may occur in the multi-layer design of the model. Based on the feature information learned by the attention module, the feature offset that occurs after multiple feature updates of the encoder is corrected, and the incomplete defect cloud is completed more accurately.

[0103] The above embodiment does not limit the training method of the 3D point cloud completion model. This embodiment introduces an implementation method for its training process, such as Figure 4 As shown, the following steps may be specifically included:

[0104] Step S201: Determine the incomplete training point cloud and the corresponding complete point cloud.

[0105] The training point cloud of the 3D point cloud completion model is a kind of incomplete point cloud. During training, it is also necessary to obtain the complete point cloud corresponding to the incomplete point cloud so as to optimize the model parameters according to the differences.

[0106] Step S202: according to the given component information of the defect cloud, extract the defect cloud with the same component information into a sub-point cloud corresponding to the component information.

[0107] Step S203: input the sub-point clouds corresponding to each component information into the three-dimensional point cloud completion model to be trained to obtain the sub-completed point clouds corresponding to the component information.

[0108] Step S204: splice the sub-completion point clouds corresponding to all component information to obtain a predicted completion point cloud.

[0109] The implementation process of the above steps 201 to 204 may refer to the introduction of the above embodiment and will not be repeated here.

[0110] Step S205 : performing parameter optimization processing on the three-dimensional point cloud completion model according to the difference between the predicted completion point cloud and the complete point cloud.

[0111] Specifically, the parameters of the 3D point cloud completion model are optimized based on the target loss function, which can be expressed as:

[0112]

[0113] in, is the first loss value, which indicates the distance between the predicted completed point cloud corresponding to a component information and the complete point cloud corresponding to the component information. It is the sum of the loss values ​​of the completed point clouds corresponding to all component information; is the second loss value, which indicates the distance between the entire predicted complement point cloud and the complete point cloud; α is the weighting coefficient corresponding to the second loss value. It should be noted that the value of α can be set by those skilled in the art according to the training process, and the present invention does not limit this.

[0114] Among them, the calculation formula of the distance between the predicted completion point cloud and the complete point cloud can be expressed as:

[0115]

[0116] Among them, S1 and S2 represent the predicted completed point cloud and complete point cloud respectively.

[0117] In this embodiment, the three-dimensional point cloud completion model calculates the loss function based on the distance between the predicted completed point cloud and each component of the complete point cloud, and calculates the loss value for each component separately, which can reduce the impact of component information on the completion effect and improve the effect of the model in completing the point cloud details to a certain extent.

[0118] In summary, Figure 5 is a flowchart of a three-dimensional point cloud completion method based on component information in an embodiment of the present application, such as Figure 5As shown, the residual point cloud and the component information of the residual point cloud are input into the 3D point cloud completion model, wherein the 3D point cloud completion model includes an encoder and a decoder. After extracting the residual point cloud with the same component information into the sub-point cloud corresponding to the component information, the encoder extracts features from the sub-point cloud to generate component features. The decoder receives the component features output by the encoder and splits the component features. In the process of splitting the component features, the attention module also maps the features in the encoder to the decoder to generate a sub-completion point cloud with complete component information. Then, it is determined whether the sub-point clouds corresponding to all component information are completed. If so, all the sub-completion point clouds corresponding to the component information are spliced ​​to generate a complete point cloud; if not, the above steps are repeated. The 3D point cloud completion model completes the sub-point cloud corresponding to one component information separately each time, and then splices all the sub-completion point clouds corresponding to the component information to obtain a complete point cloud with component information, thereby improving the 3D point cloud completion effect and the ability to complete the point cloud details. Therefore, it can solve the problem of complex completion network structure and inaccurate point cloud detail completion in the prior art.

[0119] Another embodiment of the present application provides a three-dimensional point cloud completion device based on component information, such as Figure 6 As shown, the device includes at least the following modules: a residual defect cloud acquisition module 10, a model acquisition module 11, a completion module 12, and a splicing module 13.

[0120] A defect cloud acquisition module is used to acquire the defect cloud and component information of each defect cloud; extract the defect cloud with the same component information into a sub-point cloud corresponding to the component information;

[0121] The model acquisition module is used to obtain the pre-trained 3D point cloud completion model, which is based on the encoder-decoder framework of U-Net.

[0122] The completion module is used to input the sub-point cloud corresponding to each component information into a pre-trained three-dimensional point cloud completion model to obtain the sub-completed point cloud corresponding to each component information, including: calling the encoder to extract the component features of the sub-point cloud, combining the component features with the sub-point cloud to obtain the global component features; calling the decoder to complete the component information of the sub-point cloud according to the global component features to obtain the sub-completed point cloud corresponding to the component information;

[0123] The stitching module is used to stitch the sub-completion point clouds to obtain the complete point cloud corresponding to the incomplete point cloud.

[0124] For relevant details, refer to the above method embodiment.

[0125] It should be noted that: the three-dimensional point cloud completion device based on component information provided in the above embodiment only uses the division of the above functional modules as an example when completing the point cloud. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the three-dimensional point cloud completion device based on component information is divided into different functional modules to complete all or part of the functions described above. In addition, the three-dimensional point cloud completion device provided in the above embodiment and the three-dimensional point cloud completion method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0126] Another embodiment of the present application provides an electronic device, such as Figure 7 As shown, the electronic device includes: a memory 20 for storing a computer program; and a processor 21 for implementing the steps of the method mentioned in the above embodiment when executing the computer program.

[0127] The electronic device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0128] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (Digital Signal Processor, referred to as DSP), a field programmable gate array (Field-Programmable Gate Array, referred to as FPGA), and a programmable logic array (Programmable Logic Array, referred to as PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (Central Processing Unit, referred to as CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (Graphics Processing Unit, referred to as GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, referred to as AI) processor, which is used to process computing operations related to machine learning.

[0129] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system and data, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, the relevant data involved in the above method, etc.

[0130] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than those shown in the figure.

[0131] The electronic device provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the method mentioned in the above embodiment.

[0132] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0133] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the above method in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program code.

[0134] The present application has been introduced in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can refer to each other. For the equipment disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can refer to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

[0135] It should also be noted that, in this specification, 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. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method, article or device including the above elements.

Claims

1. A three-dimensional point cloud completion method based on component information, characterized in that: include: Obtaining a residual point cloud and component information of each residual point cloud; extracting residual point clouds with the same component information into sub-point clouds corresponding to the component information; Obtain a pre-trained 3D point cloud completion model, wherein the 3D point cloud completion model relies on a U-Net encoder-decoder framework; The training method of the three-dimensional point cloud completion model includes: Determine the incomplete training point cloud and the corresponding complete point cloud; According to the given component information of the defect cloud, the defect cloud with the same component information is extracted into a sub-point cloud corresponding to the component information; The sub-point clouds corresponding to each component information are respectively input into the 3D point cloud completion model to be trained to obtain the sub-completed point clouds corresponding to each component information; The sub-completed point clouds corresponding to all component information are spliced ​​together as the predicted completed point cloud; Optimizing the parameters of the three-dimensional point cloud completion model according to the difference between the predicted completion point cloud and the complete point cloud; optimizing the parameters of the three-dimensional point cloud completion model includes inputting the predicted completion point cloud and the complete point cloud into a target loss function; The objective loss function can be expressed as: in, is the first loss value, which indicates the distance between the predicted completed point cloud corresponding to a component information and the complete point cloud corresponding to the component information, and is the sum of the loss values ​​of the completed point clouds corresponding to all component information; is the second loss value, Represents the distance between the entire predicted completed point cloud and the complete point cloud; α is the weighting coefficient corresponding to the second loss value; Inputting the sub-point clouds corresponding to each component information into a pre-trained three-dimensional point cloud completion model respectively to obtain the sub-completed point clouds corresponding to each component information, including: calling the encoder to extract component features of the sub-point clouds, combining the component features with the sub-point clouds to obtain global component features; calling the decoder to complete the component information of the sub-point clouds according to the global component features to obtain the sub-completed point clouds corresponding to the component information; The feature update layer in the encoder is connected to the feature aggregation layer in the decoder through an attention module; the attention module learns the update features of each feature update layer in the encoder and adds them to the feature offset module of the corresponding feature aggregation layer in the decoder; The sub-completion point clouds are spliced ​​together to obtain the complete point cloud corresponding to the incomplete point cloud.

2. A three-dimensional point cloud completion method based on component information according to claim 1, characterized in that: The feature update layer in the encoder is connected to the feature aggregation layer in the decoder through an attention module, and the attention module learns the update features of each feature update layer in the encoder and adds them to the feature offset module of the corresponding feature aggregation layer in the decoder; The calling the decoder to complete the component information of the sub-point cloud according to the global component feature to obtain the sub-completed point cloud corresponding to the component information includes: Calling the feature splitting module in the decoder to complete the missing point cloud according to the global component feature to generate the initial component feature of the missing point cloud; Based on the attention module learning the update features of the feature update layer in the encoder, feature shifting is performed on the global component features to optimize the component features of the missing point cloud; The offset features in the feature offset module and the split features in the feature splitting module are aggregated to complete the residual point cloud and correct the offset of the completed point cloud, so as to obtain a sub-completed point cloud with complete component information.

3. The three-dimensional point cloud completion method based on component information according to claim 1, characterized in that: The calling the encoder to extract the component features of the sub-point cloud includes: The most significant features in the neighborhood of the sub-point cloud are retained as the updated features of each sub-point cloud; downsampling the update features; The feature updating and downsampling operations are repeated to obtain the component features of the sub-point cloud.

4. The three-dimensional point cloud completion method based on component information according to claim 3, characterized in that: The method of retaining the most significant features in the neighborhood of the sub-point cloud as updated features of each sub-point cloud includes: The k-nearest neighbor method is used to obtain the neighborhood information of each sub-point cloud; The multi-layer perceptron learns the feature relationship between each sub-point cloud and the point clouds in its neighborhood, thus achieving dimensionality increase of point cloud features. Max pooling is used to retain the most salient features in the neighborhood of a sub-point cloud as the updated features of each sub-point cloud.

5. The three-dimensional point cloud completion method based on component information according to claim 4, characterized in that: The calculation formula of the distance between the predicted completed point cloud and the complete point cloud can be expressed as: Among them, S1 and S2 represent the predicted completed point cloud and complete point cloud respectively.

6. A three-dimensional point cloud completion device based on component information, characterized in that: include: A defect cloud acquisition module is used to acquire the defect cloud and component information of each defect cloud; extract the defect cloud with the same component information into a sub-point cloud corresponding to the component information; A model acquisition module is used to acquire a pre-trained 3D point cloud completion model, where the 3D point cloud completion model relies on the encoder-decoder framework of U-Net; The training method of the three-dimensional point cloud completion model includes: Determine the incomplete training point cloud and the corresponding complete point cloud; According to the given component information of the defect cloud, the defect cloud with the same component information is extracted into a sub-point cloud corresponding to the component information; The sub-point clouds corresponding to each component information are respectively input into the 3D point cloud completion model to be trained to obtain the sub-completed point clouds corresponding to each component information; The sub-completed point clouds corresponding to all component information are spliced ​​together as the predicted completed point cloud; Optimizing the parameters of the three-dimensional point cloud completion model according to the difference between the predicted completion point cloud and the complete point cloud; optimizing the parameters of the three-dimensional point cloud completion model includes inputting the predicted completion point cloud and the complete point cloud into a target loss function; The objective loss function can be expressed as: in, is the first loss value, which indicates the distance between the predicted completed point cloud corresponding to a component information and the complete point cloud corresponding to the component information, and is the sum of the loss values ​​of the completed point clouds corresponding to all component information; is the second loss value, Represents the distance between the entire predicted completed point cloud and the complete point cloud; α is the weighting coefficient corresponding to the second loss value; The completion module is used to input the sub-point cloud corresponding to each component information into a pre-trained three-dimensional point cloud completion model to obtain the sub-completed point cloud corresponding to each component information, including: calling the encoder to extract the component features of the sub-point cloud, combining the component features with the sub-point cloud to obtain the global component features; calling the decoder to complete the component information of the sub-point cloud according to the global component features to obtain the sub-completed point cloud corresponding to the component information; The stitching module is used to stitch the sub-completion point clouds to obtain the complete point cloud corresponding to the incomplete point cloud.

7. An electronic device, characterized in that: include: at least one memory for storing a computer program; At least one processor, configured to implement the method according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, characterized in that: The computer readable storage medium stores the computer program according to claim 7, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Three-dimensional point cloud reconstruction result complementing method and related assembly

    CN113706686A

  • Object detection and instance segmentation of 3D point clouds based on deep learning

    US20230186476A1