A point cloud and model matching method, device, equipment and medium
By using iterative optimization methods for feature extraction and parameter updates, the problems of accuracy and cost in point cloud and model matching are solved, achieving high-precision and low-cost matching results.
Patent Information
- Application Number
- CN202210833654.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-14
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-07-14
AI Technical Summary
Existing technologies struggle to simultaneously meet the requirements of accuracy and cost when matching point clouds with models. Iterative nearest-point algorithms are prone to getting trapped in local optima, while methods that rely on labeled data are costly and lack generalization ability.
A feature extraction model is used to extract features from point cloud data and an initial 3D model. The parameters of the initial 3D model and the feature extraction model are updated based on the matching loss. The final target 3D model is determined through multiple iterations of optimization.
It improves the accuracy of point cloud and model matching, reduces the dependence on labeled data, and lowers costs, thus meeting the requirements of both accuracy and cost.
Smart Images

Figure CN117456595B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, device, and medium for matching point clouds and models. Background Technology
[0002] Joint annotation can be performed based on motion data; for example, hand joints can be annotated based on gesture data. During joint annotation, a mesh fitting algorithm can be used to fit the point cloud, making the identified joints more consistent with the constraints of the point cloud. The fitted point cloud needs to be matched with the model; for example, the hand point cloud needs to be matched with the mesh vertices of the hand model.
[0003] In related technologies, one method for matching point clouds with models is the Iterative Closest Point (ICP) algorithm. However, this method is prone to getting trapped in erroneous local optima during the fitting phase, leading to low accuracy. Another method can match points based on labeled data showing the relationships between the model's mesh vertices and the point cloud. While this method solves the local optima problem, it relies heavily on the richness of the labeled matching data, resulting in high costs and poor generalization to real-world scenarios. In summary, related technologies cannot simultaneously satisfy the requirements of accuracy and cost when matching point clouds with models. Summary of the Invention
[0004] To address the aforementioned technical problems, this disclosure provides a method, apparatus, device, and medium for matching point clouds and models.
[0005] This disclosure provides a method for matching point clouds and models, the method comprising:
[0006] Acquire point cloud data and an initial 3D model of the target area;
[0007] A feature extraction model is used to extract features from the point cloud data and the initial 3D model, and matching is performed based on the extracted features to determine the matching loss;
[0008] The initial 3D model is updated based on the matching loss, and the parameters of the feature extraction model are also updated.
[0009] Based on the updated initial 3D model and the feature extraction model, a target 3D model that finally matches the point cloud data is determined.
[0010] This disclosure also provides a point cloud and model matching device, the device comprising:
[0011] The acquisition module is used to acquire point cloud data and an initial 3D model of the target area.
[0012] The matching module is used to extract features from the point cloud data and the initial 3D model using a feature extraction model, and to perform matching based on the extracted features, thereby determining the matching loss.
[0013] An update module is used to update the initial 3D model based on the matching loss and to update the parameters of the feature extraction model.
[0014] The determination module is used to determine the target 3D model that finally matches the point cloud data based on the initial 3D model after parameter updates and the feature extraction model.
[0015] This disclosure also provides an electronic device, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the point cloud and model matching method provided in this disclosure.
[0016] This disclosure also provides a computer-readable storage medium storing a computer program for performing a point cloud and model matching method as provided in this disclosure.
[0017] Compared with the prior art, the technical solution provided in this disclosure has the following advantages: The point cloud and model matching scheme provided in this disclosure acquires point cloud data and an initial 3D model of the target area; a feature extraction model is used to extract features from the point cloud data and the initial 3D model, and matching is performed based on the extracted features to determine the matching loss; the initial 3D model is updated based on the matching loss, and the parameters of the feature extraction model are updated; based on the initial 3D model with updated parameters and the feature extraction model, the final target 3D model that matches the point cloud data is determined. By matching the features extracted from the point cloud data and the initial 3D model, and then updating the initial 3D model and the parameters of the feature extraction model based on the matching loss, the final target 3D model that matches the point cloud data can be determined after multiple iterations. Since not only the 3D model is updated but also the feature extraction model is updated, the problem of low accuracy caused by local extrema is solved, improving the model determination accuracy. Furthermore, it does not require a large amount of labeled data, saving costs, and can simultaneously meet the requirements for accuracy and cost when matching point clouds and models. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0019] Figure 1 A flowchart illustrating a point cloud and model matching method provided in this embodiment of the disclosure;
[0020] Figure 2 A flowchart illustrating another point cloud and model matching method provided in this embodiment of the disclosure;
[0021] Figure 3 A schematic diagram illustrating a point cloud and model matching process provided in an embodiment of this disclosure;
[0022] Figure 4 A schematic diagram of the structure of a point cloud and model matching device provided in an embodiment of this disclosure;
[0023] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0024] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0025] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0026] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0027] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0028] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0029] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0030] In related technologies, one method for matching point clouds and models is the Iterative Closest Point (ICP) algorithm, which determines the matching relationship based on the nearest distance between the point cloud and the mesh vertices. However, this method has the following drawbacks: if the initialization error is large, it is easy to get trapped in erroneous local extrema during the fitting stage. For example, the thumb of a hand model might be fitted to the index finger in the point cloud. Since initialization errors are difficult to avoid, the matching accuracy is low, which in turn reduces the overall accuracy of the automatically labeled data. Another method is to match based on the labeled data of the relationship between the mesh vertices of the labeled model and the point cloud. Although this method solves the problem of local extrema, it depends on the richness of the labeled matching data, which is costly and may not generalize well to practical situations. In summary, related technologies cannot simultaneously meet the requirements of accuracy and cost when matching point clouds and models.
[0031] To address the aforementioned issues, this disclosure provides a method for matching point clouds and models, which will be described below with reference to specific embodiments.
[0032] Figure 1 This is a flowchart illustrating a point cloud and model matching method provided in an embodiment of this disclosure. The method can be executed by a point cloud and model matching device, which can be implemented in software and / or hardware, and is generally integrated into an electronic device. Figure 1 As shown, the method includes:
[0033] Step 101: Obtain point cloud data and initial 3D model of the target area.
[0034] The target body part can be any part of the human body that requires joint point annotation. In this embodiment, the target body part can include the hand, foot, face, or limbs. The point cloud data can be a dataset of the target body part. Specifically, it can be obtained by real-time data acquisition of the target body part, resulting in a collection of multiple three-dimensional points representing the surface characteristics of the target body part. These multiple three-dimensional points are combined to form a point cloud. Each three-dimensional point has data such as coordinates, depth, and distance. The point cloud data can be used to reconstruct the three-dimensional effect of the target body part for visualization. The initial three-dimensional model can be an initial model designed for the target body part using a three-dimensional model design tool. This initial three-dimensional model does not have special attributes; for example, the initial three-dimensional model of a hand can be a hand model without any gestures.
[0035] In this embodiment of the disclosure, the point cloud and model matching device can first acquire the depth image and RGB image of the target part through a depth camera, and then perform three-dimensional reconstruction based on the depth image and RGB image to obtain the point cloud data of the target part; and can also acquire the initial three-dimensional model of the pre-created target part.
[0036] Step 102: Use a feature extraction model to extract features from the point cloud data and the initial 3D model, and perform matching based on the extracted features to determine the matching loss.
[0037] The feature extraction model can be a deep learning model used to extract features from the coordinates of multiple 3D points in the point cloud data and the coordinates of multiple mesh vertices in the initial 3D model. The specific model used can be set according to the actual situation; for example, the feature extraction model can use the PointNet network. The matching loss can be a value calculated by a preset loss function, which characterizes the degree of fit or matching between the 3D model of the target part and the point cloud data.
[0038] In this embodiment of the disclosure, when the point cloud and model matching device matches the point cloud data and the initial three-dimensional model, it specifically matches each three-dimensional point in the point cloud data with each grid vertex in the initial three-dimensional model. It can first extract the features of the coordinates of each three-dimensional point and the coordinates of each grid vertex through the feature extraction model, perform matching based on the extracted features, and determine the matching loss.
[0039] For example, Figure 2 A flowchart illustrating another point cloud and model matching method provided in this disclosure embodiment is shown below. Figure 2 As shown, in one feasible implementation, step 102 may include the following steps:
[0040] Step 201: Input the coordinates of multiple 3D points included in the point cloud data into the feature extraction model to obtain multiple corresponding first features.
[0041] The first feature can be a feature extracted from the coordinates of each 3D point in the point cloud data.
[0042] Step 202: Input the coordinates of multiple mesh vertices included in the initial 3D model into the feature extraction model to obtain the corresponding multiple second features.
[0043] Since the initial 3D model is designed using design tools, it can include multiple meshes and multiple mesh vertices. In this embodiment, the initial 3D model of the target area is matched with real-time point cloud data, which makes the initial 3D model conform to the constraints of the point cloud and have the surface characteristics of the target area acquired from the point cloud data, thereby enabling subsequent extraction of joint information. The second feature can be the feature extracted from the coordinates of each mesh vertex of the initial 3D model.
[0044] The execution order of steps 201 and 202 above is not limited. Figure 2 This is just an example.
[0045] Step 203: Based on multiple first features and multiple second features, perform pairwise matching between multiple 3D points and multiple mesh vertices to obtain multiple matching pairs.
[0046] A matching pair can consist of a 3D point and a mesh vertex that are determined to be initially matched. That is, each matching pair includes a 3D point and a mesh vertex that matches the 3D point.
[0047] In some embodiments, based on multiple first features and multiple second features, multiple 3D points are paired with multiple mesh vertices to obtain multiple matching pairs. This may include: determining the similarity or distance between each first feature and each second feature; using the similarity or distance as a matching index, pairwise matching of multiple 3D points with multiple mesh vertices to obtain multiple matching pairs.
[0048] After determining multiple first features of the point cloud data and multiple second features of the initial 3D model, the point cloud and model matching device can determine a matching index between each first feature and each second feature. In this embodiment, the similarity or distance between the first feature and the second feature can be determined as the matching index. Optionally, the similarity can be determined using a similarity algorithm, which is not limited to any specific algorithm, such as the cosine similarity algorithm or the Pearson correlation coefficient algorithm; the distance can be determined using the Iterative Closest Point (ICP) algorithm, which is only an example.
[0049] After determining the matching index between each first feature and each second feature, the 3D points and mesh vertices corresponding to the two features whose matching index meets the preset conditions are matched to obtain multiple matching pairs. Specifically, when the matching index is similarity, for a first feature, the second feature with the highest similarity to the first feature is identified as one of the two features that meet the preset conditions, and the 3D points and mesh vertices corresponding to the current two features are matched and combined to obtain a matching pair; when the matching index is distance, for a first feature, the second feature with the closest distance to the first feature is identified as one of the two features that meet the preset conditions, and the 3D points and mesh vertices corresponding to the current two features are matched and combined to obtain a matching pair.
[0050] Step 204: Determine the matching loss.
[0051] In some embodiments, determining the matching loss may include: determining the distance between the coordinates of the 3D point in each matching pair and the coordinates of the network vertex; and determining the sum of the distances of each matching pair as the matching loss between the point cloud data and the initial 3D model, wherein a lower matching loss indicates a higher degree of matching.
[0052] The point cloud and model matching device can determine the matching loss based on a preset loss function. This loss function can be determined according to the actual situation. In this embodiment, the loss function is the Euclidean distance loss function. Specifically, the distance between the coordinates of the 3D point in each matching pair and the coordinates of the network vertex can be determined. This distance is the Euclidean distance. Then, the sum of the distances of each matching pair can be determined, and the sum of the distances can be determined as the matching loss between the point cloud data and the initial 3D model.
[0053] For example, when the target part is the hand and the initial 3D model is the MANO hand model, the loss function can be specifically expressed by the formula L = ∑ i min V ||P i -|V(θ, β|| is determined, where L represents the matching loss, Pi represents the coordinates of the i-th 3D point in the point cloud data, V represents the coordinates of the mesh vertices of the initial 3D model, θ and β represent the parameters of the hand model, θ represents the parameter used to control the hand pose, and β represents the parameter used to control the hand shape.
[0054] Step 103: Update the parameters of the initial 3D model based on the matching loss, and update the parameters of the feature extraction model.
[0055] In this embodiment, the loss function of the feature extraction model is the same as the loss function used to determine the matching loss; therefore, the initially determined network loss is the same as the matching loss. This embodiment requires updating the parameters of both the initial 3D model and the feature extraction model, but in opposite directions. Updating the parameters of the initial 3D model aims to reduce the matching loss, while updating the parameters of the feature extraction model aims to increase the network loss, thereby increasing the matching loss. Each update to the parameters of the initial 3D model is followed by an update to the parameters of the feature extraction model, preventing the loss function used to determine the matching loss from getting trapped in a local minimum.
[0056] In some embodiments, updating the parameters of the initial 3D model based on the matching loss may include: updating the model parameters of the initial 3D model using a gradient descent optimization algorithm so that the updated matching loss is less than the original matching loss. The model parameters may be parameters that affect the initial 3D model.
[0057] Based on the determined loss function of the matching loss, the parameters of the initial 3D model can be updated using the gradient descent optimization algorithm. For example, the parameters θ and β of the MANO hand model can be updated. Then, the updated matching loss is determined based on the updated parameters. The updated matching loss is less than the original matching loss, making the initial 3D model fit the point cloud data better.
[0058] In some embodiments, updating the parameters of the feature extraction model may include updating the network parameters of the feature extraction model so that the updated network loss is greater than the original network loss. The network parameters may be the parameters of the neural network of the feature extraction model.
[0059] After updating the parameters of the initial 3D model, the parameters of the feature extraction model can be updated. Specifically, the network parameters of the feature extraction model can be updated using stochastic gradient descent or the Adam optimization algorithm. Then, the updated network loss of the feature extraction model can be determined based on the updated network parameters. This updated network loss is greater than the original network loss. As the network loss increases, since the loss function of the feature extraction model is the same as the loss function used to determine the matching loss, the new matching loss determined by feature extraction and matching using the updated feature extraction model and the initial 3D model will also increase, causing the loss function used to determine the matching loss to escape local minima.
[0060] Step 104: Based on the initial 3D model with updated parameters and the feature extraction model, determine the final target 3D model that matches the point cloud data.
[0061] The target 3D model is the final 3D model of the target part that is successfully matched with the point cloud data, which is determined by updating the parameters of the initial 3D model and the feature extraction model. The data of the joint points can be extracted from the target 3D model for subsequent use.
[0062] In some embodiments, determining the target 3D model that finally matches the point cloud data based on the initial 3D model with updated parameters and the feature extraction model may include: determining whether the iteration stopping condition is met based on the initial 3D model with updated parameters and the feature extraction model; if so, determining the initial 3D model with updated parameters as the target 3D model; otherwise, returning to feature extraction and feature matching based on the initial 3D model with updated parameters and the feature extraction model to determine a new matching loss, until the iteration stopping condition is met.
[0063] The stopping iteration condition can be used to determine whether the algorithm has converged, that is, the condition that no longer needs to update the parameters of the initial 3D model and the feature extraction model.
[0064] The point cloud and model matching device can determine whether the iteration stopping condition is met based on the initial 3D model with updated parameters and the feature extraction model. If it is met, the initial 3D model with updated parameters when the iteration stopping condition is met can be determined as the final target 3D model. If the iteration stopping condition is not met, steps 102-103 can be re-executed based on the initial 3D model with updated parameters and the feature extraction model to determine the new matching loss and update the parameters of the initial 3D model and the feature extraction model again until the iteration stopping condition is met and the iteration stops.
[0065] Optionally, determining whether the iteration stopping condition is met based on the initial 3D model with updated parameters and the feature extraction model may include: determining the decrease value of the matching loss based on the initial 3D model with updated parameters, and determining the increase value of the network loss based on the initial 3D model with updated parameters and the feature extraction model; if the decrease value is less than a first threshold and the increase value is less than a second threshold, then the iteration stopping condition is met; otherwise, the iteration stopping condition is not met.
[0066] The first threshold can be a threshold set for the decrease in matching loss, and the second threshold can be a threshold set for the increase in network loss. The first threshold and the second threshold can be the same or different, depending on the actual situation.
[0067] When the point cloud and model matching device determines whether the iteration stopping condition is met based on the initial 3D model after parameter updates and the feature extraction model, it can determine the difference between the updated matching loss and the original matching loss based on the initial 3D model after parameter updates, which is the decrease value of the matching loss, and determine the difference between the updated network loss and the original network loss based on the initial 3D model after parameter updates and the feature extraction model, which is the increase value of the network loss. Then it can determine whether the decrease value of the matching loss is less than a first threshold and whether the increase value of the network loss is less than a second threshold. If so, it is determined that the iteration stopping condition is met; otherwise, it is determined that the iteration stopping condition is not met.
[0068] Optionally, based on the updated initial 3D model and feature extraction model, determining whether the iteration stopping condition is met may further include: determining whether the number of update iterations has reached a threshold; if so, then the iteration stopping condition is met; otherwise, the iteration stopping condition is not met. The threshold can be a maximum value set for the number of update iterations, specifically set according to the actual situation; for example, the threshold can be set to 500.
[0069] The point cloud and model matching scheme provided in this disclosure involves acquiring point cloud data and an initial 3D model of the target region; using a feature extraction model to extract features from the point cloud data and the initial 3D model, and matching based on the extracted features to determine the matching loss; updating the initial 3D model based on the matching loss, and updating the parameters of the feature extraction model; and determining the final target 3D model that matches the point cloud data based on the updated initial 3D model and the feature extraction model. By matching the features extracted from the point cloud data and the initial 3D model, and then updating the initial 3D model and the parameters of the feature extraction model based on the matching loss, a final target 3D model that matches the point cloud data can be determined after multiple iterations. Since both the 3D model and the feature extraction model are updated, the problem of low accuracy caused by local extrema is solved, improving the model determination accuracy. Furthermore, it does not require a large amount of labeled data, saving costs, and can simultaneously meet the requirements for accuracy and cost when matching point clouds and models.
[0070] The following example further illustrates the point cloud and model matching process provided in this disclosure. For instance, Figure 3 A schematic diagram illustrating a point cloud and model matching process provided in an embodiment of this disclosure, as shown below. Figure 3As shown in the figure, taking the hand as the target part and the hand model as the 3D model of the target part as an example, the specific matching process can include: obtaining the coordinates of multiple grid vertices through mesh fitting based on the parameters of the hand model, and acquiring the point cloud data of the hand, which includes the coordinates of multiple 3D points; extracting features from the coordinates of the multiple grid vertices and the coordinates of the multiple 3D points of the hand model using a feature extraction model; then, using the similarity between the features of the grid vertices and the features of the 3D points as the matching index, matching the grid vertex and the 3D point with the highest similarity; then defining a loss function to determine the matching loss, the smaller the matching loss, the closer the matched grid vertex and the 3D point are, i.e., a better fit; using optimization methods to change the parameters of the hand model to reduce this loss function, making the hand model and the point cloud data fit better; after updating the parameters of the hand model once, the update of the hand model parameters can be paused, because at this time the matching... The loss may have been optimized to a relatively small value, potentially getting stuck in a local minimum. To prevent the matching loss function from getting stuck in a local minimum, this stage can increase the network loss and thus the matching loss by updating the network parameters of the feature extraction model, thus escaping the local minimum. Based on the updated hand model and feature extraction model, feature extraction, matching, and new matching loss can be performed again, i.e., iterative processing. This process iterates for a preset number of times, such as 500 times, or until it is determined whether the decrease in matching loss is less than the first threshold and the increase in network loss is less than the second threshold. In other words, updating the parameters of the hand model can no longer significantly decrease the matching loss, and updating the parameters of the feature extraction model can no longer significantly increase the network loss, i.e., no significant increase in matching loss. At this point, the algorithm can converge to a point where the hand model and point cloud data fit well, and the iteration stops, resulting in the final matched hand model.
[0071] The reason why the iterative nearest-point algorithm used in related technologies achieves low matching accuracy between point clouds and models is that it only defines the correlation based on local features (i.e., the distance between two points), ignoring the features of the overall structure. In this embodiment, by performing feature extraction and feature matching between point cloud data and an initial 3D model to match 3D points and mesh vertices, the characteristics of the overall structure are considered. This not only updates the 3D model but also the feature extraction model, solving the problem of low accuracy caused by local extrema, improving the model determination accuracy, and thus improving the accuracy of subsequent focus. Moreover, it eliminates the need for manually labeled data to train the neural network for extracting point cloud features and mesh vertex features. The entire process of training the neural network is self-supervised, saving costs and simultaneously meeting the requirements for accuracy and cost when matching point clouds and models.
[0072] Figure 4This is a schematic diagram of a point cloud and model matching device provided in an embodiment of this disclosure. The device can be implemented by software and / or hardware, and is generally integrated into an electronic device. Figure 4 As shown, the device includes:
[0073] The acquisition module 401 is used to acquire point cloud data and an initial 3D model of the target area;
[0074] Matching module 402 is used to extract features from the point cloud data and the initial 3D model using a feature extraction model, and to match based on the extracted features to determine the matching loss;
[0075] The update module 403 is used to update the initial 3D model based on the matching loss and to update the parameters of the feature extraction model.
[0076] The determination module 404 is used to determine the target 3D model that finally matches the point cloud data based on the initial 3D model after parameter updates and the feature extraction model.
[0077] Optionally, the matching module 402 includes a first unit for:
[0078] The coordinates of multiple three-dimensional points included in the point cloud data are input into the feature extraction model to obtain multiple corresponding first features;
[0079] The coordinates of multiple mesh vertices included in the initial 3D model are then input into the feature extraction model to obtain multiple corresponding second features.
[0080] Optionally, the matching module 402 includes a second unit for:
[0081] Based on the plurality of first features and the plurality of second features, the plurality of three-dimensional points are matched pairwise with the plurality of mesh vertices to obtain a plurality of matching pairs, wherein each matching pair includes a three-dimensional point and a mesh vertex that matches the three-dimensional point.
[0082] Optionally, the second unit is used for:
[0083] Determine the similarity or distance between each first feature and each second feature;
[0084] Using the similarity or distance as a matching metric, the multiple 3D points are matched pairwise with the multiple mesh vertices to obtain multiple matching pairs.
[0085] Optionally, the matching module 402 includes a third unit for:
[0086] Determine the distance between the coordinates of the 3D points in each matching pair and the coordinates of the network vertices;
[0087] The sum of the distances of each matching pair is determined as the matching loss between the point cloud data and the initial 3D model. The lower the matching loss, the higher the degree of matching.
[0088] Optionally, update module 403 is used for:
[0089] The model parameters of the initial 3D model are updated using a gradient descent optimization algorithm so that the updated matching loss is less than the original matching loss.
[0090] Optionally, update module 403 is used for:
[0091] The network parameters of the feature extraction model are updated so that the updated network loss is greater than the original network loss. The loss function of the feature extraction model is the same as the loss function used to determine the matching loss, and the network loss determined initially is the same as the matching loss.
[0092] Optionally, module 404 includes:
[0093] The judgment unit is used to determine whether the iteration stopping condition is met based on the initial three-dimensional model after updating the parameters and the feature extraction model. If so, the initial three-dimensional model after updating the parameters is determined as the target three-dimensional model.
[0094] An iterative unit is used to otherwise perform feature extraction and feature matching based on the updated initial 3D model and the feature extraction model, determine a new matching loss, and continue until the iteration stopping condition is met.
[0095] Optionally, the decision unit is used for:
[0096] The decrease in matching loss is determined based on the initial 3D model with updated parameters, and the increase in network loss is determined based on the initial 3D model with updated parameters and the feature extraction model.
[0097] If the decrease value is less than the first threshold and the increase value is less than the second threshold, then the iteration stopping condition is determined to be met; otherwise, the iteration stopping condition is determined not to be met.
[0098] Optionally, the target area may include the hands, feet, face, or limbs.
[0099] The point cloud and model matching device provided in this disclosure can execute the point cloud and model matching method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the method execution.
[0100] This disclosure also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the point cloud and model matching method provided in any embodiment of this disclosure.
[0101] Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of the present disclosure. See below for details. Figure 5 The diagram illustrates a structural schematic suitable for implementing the electronic device 500 in the embodiments of this disclosure. The electronic device 500 in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0102] like Figure 5 As shown, the electronic device 500 may include a processing unit (e.g., a central processing unit, a graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0103] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0104] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the point cloud and model matching method of embodiments of this disclosure.
[0105] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0106] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0107] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0108] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: acquire point cloud data of a target region and an initial 3D model; use a feature extraction model to extract features from the point cloud data and the initial 3D model, and perform matching based on the extracted features to determine a matching loss; update the parameters of the initial 3D model based on the matching loss, and update the parameters of the feature extraction model; and determine a final target 3D model that matches the point cloud data based on the initial 3D model with updated parameters and the feature extraction model.
[0109] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0110] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0111] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0112] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0113] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0114] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0115] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0116] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0117] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for matching point clouds and models, characterized in that, include: Acquire point cloud data and an initial 3D model of the target area; A feature extraction model is used to extract features from the point cloud data and the initial 3D model, and matching is performed based on the extracted features to determine the matching loss; The parameters of the initial 3D model are updated based on the matching loss, and the parameters of the feature extraction model are also updated. The update directions of the parameters of the initial 3D model and the parameters of the feature extraction model are opposite. The matching loss after updating the model parameters of the initial 3D model is less than the matching loss, and the network loss after updating the network parameters of the feature extraction model is greater than the network loss before the update. Based on the updated initial 3D model and the feature extraction model, a target 3D model that finally matches the point cloud data is determined.
2. The method according to claim 1, characterized in that, The step of using a feature extraction model to extract features from the point cloud data and the initial 3D model includes: The coordinates of multiple three-dimensional points included in the point cloud data are input into the feature extraction model to obtain multiple corresponding first features; The coordinates of multiple mesh vertices included in the initial 3D model are then input into the feature extraction model to obtain multiple corresponding second features.
3. The method according to claim 2, characterized in that, The matching based on the extracted features includes: Based on the plurality of first features and the plurality of second features, the plurality of three-dimensional points are matched pairwise with the plurality of mesh vertices to obtain a plurality of matching pairs, wherein each matching pair includes a three-dimensional point and a mesh vertex that matches the three-dimensional point.
4. The method according to claim 3, characterized in that, Based on the plurality of first features and the plurality of second features, the plurality of 3D points are paired with the plurality of mesh vertices to obtain a plurality of matching pairs, including: Determine the similarity or distance between each first feature and each second feature; Using the similarity or distance as a matching metric, the multiple 3D points are matched pairwise with the multiple mesh vertices to obtain multiple matching pairs.
5. The method according to claim 4, characterized in that, The determination of the matching loss includes: Determine the distance between the coordinates of the 3D point in each matching pair and the coordinates of the network vertex; The sum of the distances of each matching pair is determined as the matching loss between the point cloud data and the initial 3D model. The lower the matching loss, the higher the degree of matching.
6. The method according to claim 1, characterized in that, The parameter update of the initial 3D model based on the matching loss includes: The model parameters of the initial 3D model are updated using the gradient descent optimization algorithm.
7. The method according to claim 1, characterized in that, Updating the parameters of the feature extraction model includes: Update the network parameters of the feature extraction model, wherein the loss function of the feature extraction model is the same as the loss function used to determine the matching loss, and the network loss determined initially is the same as the matching loss.
8. The method according to claim 1, characterized in that, Based on the updated initial 3D model and the feature extraction model, a final target 3D model matching the point cloud data is determined, including: Based on the initial 3D model with updated parameters and the feature extraction model, determine whether the iteration stopping condition is met. If so, determine the initial 3D model with updated parameters as the target 3D model. Otherwise, based on the updated initial 3D model and the feature extraction model, feature extraction and feature matching are performed to determine a new matching loss until the iteration stopping condition is met.
9. The method according to claim 8, characterized in that, Based on the updated initial 3D model and the feature extraction model, determine whether the iteration stopping condition is met, including: The decrease in matching loss is determined based on the initial 3D model with updated parameters, and the increase in network loss is determined based on the initial 3D model with updated parameters and the feature extraction model. If the decrease value is less than the first threshold and the increase value is less than the second threshold, then the iteration stopping condition is determined to be met; otherwise, the iteration stopping condition is determined not to be met.
10. The method according to any one of claims 1-9, characterized in that, The target body parts include hands, feet, face, or limbs.
11. A matching device for point clouds and models, characterized in that, include: The acquisition module is used to acquire point cloud data and an initial 3D model of the target area. The matching module is used to extract features from the point cloud data and the initial 3D model using a feature extraction model, and to perform matching based on the extracted features, thereby determining the matching loss. The update module is used to update the initial 3D model based on the matching loss and update the parameters of the feature extraction model. The update directions of updating the parameters of the initial 3D model and the parameters of the feature extraction model are opposite. The matching loss after updating the model parameters of the initial 3D model is less than the matching loss, and the network loss after updating the network parameters of the feature extraction model is greater than the network loss before the update. The determination module is used to determine the target 3D model that finally matches the point cloud data based on the initial 3D model after parameter updates and the feature extraction model.
12. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the point cloud and model matching method according to any one of claims 1-10.
13. A computer-readable storage medium, characterized in that, The storage medium stores a computer program for executing the point cloud and model matching method according to any one of claims 1-10.
Citation Information
Patent Citations
Method, system and device for improving precision of deep learning model and medium
CN112465106A
Three-dimensional frequency surface digitalization and model comparison method
CN113298951A
