Three-dimensional object matching method and device, equipment and storage medium

By splitting the three-dimensional object into sub-objects and using the graph neural network model to calculate the similarity, the complexity of retrieval between assemblies is solved, and efficient matching is achieved without increasing the amount of calculation and model learning requirements.

CN118708774APending Publication Date: 2024-09-27THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311617637.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively implement retrieval between assemblies, especially under complex structures, resulting in reduced algorithm performance and the inability of graph neural network models to accurately learn graph representations of complex graph structures.

Method used

By splitting the three-dimensional object into sub-objects, the graph neural network model is used to process the graph structure of the sub-objects, calculate the similarity between the sub-objects, determine the candidate objects based on the similarity, and finally determine the matching object based on the number of candidate objects. , to achieve matching between assemblies.

Benefits of technology

Without significantly increasing the amount of calculation and the learning ability requirements of the graph neural network model, the matching between complex three-dimensional objects is achieved, and the matching accuracy and efficiency are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708774A
    Figure CN118708774A
Patent Text Reader

Abstract

The invention relates to a three-dimensional object matching method and device, equipment and a storage medium. Obtaining graph structures of at least part of first sub-three-dimensional objects in the first three-dimensional object; processing the graph structure by using a graph neural network model to obtain graph representation of the first sub-three-dimensional object; calculating the similarity between the graph representation of each first sub-three-dimensional object in the at least part of first sub-three-dimensional objects and the graph representation of a second sub-three-dimensional object in the sub-three-dimensional object library; determining a second sub-three-dimensional object matched with the first sub-three-dimensional object based on the similarity; determining a second three-dimensional object to which a second sub-three-dimensional object matched with the first sub-three-dimensional object belongs as a candidate three-dimensional object; and determining a second three-dimensional object matched with the first three-dimensional object based on the number of times that the second three-dimensional object is determined as the candidate three-dimensional object. Therefore, matching between complex miscellaneous three-dimensional objects can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of three-dimensional object matching, and in particular to a three-dimensional object matching method, device, equipment and storage medium. Background Art

[0002] Industrial design and production use a large number of parts, including a large number of parts with similar structures. Modeling the similarity of parts can help designers quickly retrieve similar parts during the design phase, increase reuse rates, reduce modification and design costs, and improve design efficiency. This has important practical significance and application value.

[0003] Graph is a very common data model in the real world and in the scientific field. For example, traffic networks and social networks can all be modeled as graphs. Designing different neural networks based on graphs to solve different tasks is the problem studied by Graph Neural Network (GNN). In addition, since the computational complexity of neural networks is relatively fixed, for some problems with high computational complexity that cannot be solved within polynomial time complexity, neural networks can be used to calculate approximate solutions, thereby improving computational efficiency.

[0004] The graph neural network model can be used to process the graph structure extracted from the three-dimensional model based on the parts, obtain the graph representation (i.e., vector representation) of the three-dimensional model, and use it for similarity measurement. However, for assemblies composed of multiple parts, how to achieve retrieval between assemblies is a problem that needs to be solved urgently. Summary of the invention

[0005] A technical problem to be solved by the present disclosure is how to implement retrieval between assemblies.

[0006] According to a first aspect of the present disclosure, a three-dimensional object matching method is provided, including: obtaining a graph structure of at least part of a first sub-three-dimensional object in a first three-dimensional object; processing the graph structure using a graph neural network model to obtain a graph representation of the first sub-three-dimensional object; calculating the similarity between the graph representation of each first sub-three-dimensional object in at least part of the first sub-three-dimensional object and the graph representation of a second sub-three-dimensional object in a sub-three-dimensional object library, wherein the second sub-three-dimensional object is a sub-three-dimensional object in a second three-dimensional object to be matched; determining a second sub-three-dimensional object that matches the first sub-three-dimensional object based on the similarity; determining a second three-dimensional object to which the second sub-three-dimensional object that matches the first sub-three-dimensional object belongs as a candidate three-dimensional object; and determining a second three-dimensional object that matches the first three-dimensional object based on the number of times the second three-dimensional object is determined as the candidate three-dimensional object.

[0007] Optionally, based on the number of times the second three-dimensional object is determined as the candidate three-dimensional object, determining the second three-dimensional object that matches the first three-dimensional object includes: taking a first number of candidate three-dimensional objects ranked high in number as the second three-dimensional objects that match the first three-dimensional object.

[0008] Optionally, based on the number of times the second three-dimensional object is determined as the candidate three-dimensional object, determining the second three-dimensional object that matches the first three-dimensional object includes: selecting a second number of candidate three-dimensional objects ranked high in number of times; calculating the similarity between the first three-dimensional object and the selected candidate three-dimensional objects; and selecting a second three-dimensional object that matches the first three-dimensional object from the second number of candidate three-dimensional objects based on the similarity calculation result.

[0009] Optionally, calculating the similarity between the first three-dimensional object and the selected candidate three-dimensional object includes: obtaining a first graph structure of the first three-dimensional object and a second graph structure of the candidate three-dimensional object; using the graph neural network model to process the first graph structure and the second graph structure respectively to obtain a first graph representation corresponding to the first three-dimensional object and a second graph representation corresponding to the candidate three-dimensional object; and calculating the similarity between the first graph representation and the second graph representation.

[0010] Optionally, the graph structure is obtained by using each face in the three-dimensional model of the three-dimensional object as a graph node and connecting the graph nodes corresponding to two faces adjacent to each line in the three-dimensional model with edges.

[0011] Optionally, the graph neural network model includes a feature extraction module and a graph representation calculation module; the feature extraction module is used to extract feature information of each graph node in the graph structure to obtain an initialization representation of each graph node; the graph representation calculation module is used to perform convolution processing on the initialization representation of each graph node in the graph structure and the node representation of each graph node in the meta-path to obtain the graph representation of the three-dimensional object.

[0012] Optionally, the graph representation calculation module includes a convolutional layer module and a readout module, the convolutional layer module includes one or more convolutional layers, and any one of the convolutional layers includes a first aggregation module, a second aggregation module, a splicing module, a first multi-layer perceptron and an activation module; the first aggregation module is used to aggregate the node representations of at least some of the neighbor nodes of the graph node in the previous convolutional layer to obtain a first aggregation result; the second aggregation module is used to aggregate the node representations of at least some of the graph nodes in the meta-path where the graph node is located in the previous convolutional layer to obtain a second aggregation result; the splicing module is used to splice the node representation of the graph node in the previous convolutional layer, the first aggregation result and the second aggregation result; the first multi-layer perceptron is used to convert the feature dimension of the splicing result to obtain an output with the same feature dimension as the feature dimension of the output of the graph node in the previous convolutional layer; the activation module is used to perform nonlinear processing on the output of the first multi-layer perceptron to obtain the node representation of the graph node in the convolutional layer; the readout module calculates the graph representation based on the node representation of each graph node in the graph structure in at least one convolutional layer.

[0013] Optionally, the feature extraction module includes an encoding module, a splicing module and a second multi-layer perceptron; the encoding module is used to encode different types of features; the splicing module is used to splice the encoding results; the second multi-layer perceptron is used to convert the feature dimension of the splicing result to obtain a feature vector with a predetermined dimension.

[0014] Optionally, the three-dimensional object includes at least one of the following: an assembly, furniture, or an electronic product.

[0015] According to a second aspect of the present disclosure, a three-dimensional object matching device is provided, comprising: an acquisition module, used to acquire a graph structure of at least part of a first sub-three-dimensional object in a first three-dimensional object; a processing module, used to process the graph structure using a graph neural network model to obtain a graph representation of the first sub-three-dimensional object; a calculation module, used to calculate the similarity between the graph representation of each first sub-three-dimensional object in at least part of the first sub-three-dimensional objects and the graph representation of a second sub-three-dimensional object in a sub-three-dimensional object library, wherein the second sub-three-dimensional object is a sub-three-dimensional object in a second three-dimensional object to be matched; a first determination module, used to determine a second sub-three-dimensional object matching the first sub-three-dimensional object based on the similarity; a judgment module, used to judge a second three-dimensional object to which the second sub-three-dimensional object matching the first sub-three-dimensional object belongs as a candidate three-dimensional object; and a second determination module, used to determine a second three-dimensional object matching the first three-dimensional object based on the number of times the second three-dimensional object is judged as the candidate three-dimensional object.

[0016] Optionally, the second determination module uses a first number of candidate three-dimensional objects with higher rankings as second three-dimensional objects matching the first three-dimensional object.

[0017] Optionally, the second determination module selects a second number of candidate three-dimensional objects with higher rankings, calculates the similarity between the first three-dimensional object and the selected candidate three-dimensional objects, and selects a second three-dimensional object that matches the first three-dimensional object from the second number of candidate three-dimensional objects based on the similarity calculation result.

[0018] Optionally, the second determination module obtains a first graph structure of the first three-dimensional object and a second graph structure of the candidate three-dimensional object, and uses the graph neural network model to process the first graph structure and the second graph structure respectively to obtain a first graph representation corresponding to the first three-dimensional object and a second graph representation corresponding to the candidate three-dimensional object, and calculates the similarity between the first graph representation and the second graph representation.

[0019] Optionally, the graph structure is obtained by using each face in the three-dimensional model of the three-dimensional object as a graph node and connecting the graph nodes corresponding to two faces adjacent to each line in the three-dimensional model with edges.

[0020] Optionally, the graph neural network model includes a feature extraction module and a graph representation calculation module;

[0021] The feature extraction module is used to extract feature information of each graph node in the graph structure to obtain an initialization representation of each graph node;

[0022] The graph representation calculation module is used to perform convolution processing on the initialization representation of each graph node in the graph structure and the node representation of each graph node in the meta-path to obtain the graph representation of the three-dimensional object.

[0023] Optionally, the graph representation calculation module includes a convolutional layer module and a readout module, the convolutional layer module includes one or more convolutional layers, and any one of the convolutional layers includes a first aggregation module, a second aggregation module, a splicing module, a first multi-layer perceptron and an activation module; the first aggregation module is used to aggregate the node representations of at least some of the neighbor nodes of the graph node in the previous convolutional layer to obtain a first aggregation result; the second aggregation module is used to aggregate the node representations of at least some of the graph nodes in the meta-path where the graph node is located in the previous convolutional layer to obtain a second aggregation result; the splicing module is used to splice the node representation of the graph node in the previous convolutional layer, the first aggregation result and the second aggregation result; the first multi-layer perceptron is used to convert the feature dimension of the splicing result to obtain an output with the same feature dimension as the feature dimension of the output of the graph node in the previous convolutional layer; the activation module is used to perform nonlinear processing on the output of the first multi-layer perceptron to obtain the node representation of the graph node in the convolutional layer; the readout module calculates the graph representation based on the node representation of each graph node in the graph structure in at least one convolutional layer.

[0024] Optionally, the feature extraction module includes an encoding module, a splicing module and a second multi-layer perceptron; the encoding module is used to encode different types of features; the splicing module is used to splice the encoding results; the second multi-layer perceptron is used to convert the feature dimension of the splicing result to obtain a feature vector with a predetermined dimension.

[0025] Optionally, the three-dimensional object includes at least one of the following: an assembly, furniture, or an electronic product.

[0026] According to a third aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes the method described in the first aspect above.

[0027] According to a fourth aspect of the present disclosure, a computer program product is provided, comprising an executable code, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described in the first aspect above.

[0028] According to a fifth aspect of the present disclosure, a non-temporary machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the method described in the first aspect above.

[0029] In order to solve the matching problem between complex three-dimensional objects including multiple three-dimensional child objects, the present disclosure does not directly calculate the similarity between the graph structures of the three-dimensional objects, but splits the first three-dimensional object existing as a search request into several first three-dimensional child objects, matches the first three-dimensional child objects with the second three-dimensional child objects in the three-dimensional child object library for each first three-dimensional child object in at least part of the first three-dimensional child objects, and determines the second three-dimensional child objects that match the first three-dimensional child objects as candidate three-dimensional objects, and determines the second three-dimensional object that matches the first three-dimensional child objects based on the number of times the second three-dimensional object is determined as a candidate three-dimensional object. Therefore, the present disclosure adopts this three-dimensional object matching method of "first breaking the whole into parts, then breaking the parts into the whole", so that the matching between complex and miscellaneous three-dimensional objects can be achieved without significantly increasing the amount of calculation and the requirements on the learning ability of the graph neural network model for complex graph structures. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.

[0031] Figure 1 The overall structural diagram of the retrieval system built for the parts retrieval problem is shown.

[0032] Figure 2 A schematic flowchart of a three-dimensional object matching method according to an embodiment of the present disclosure is shown.

[0033] Figure 3 A schematic diagram of the search results between assemblies is shown.

[0034] Figure 4 A schematic structural diagram of a three-dimensional object matching device according to an embodiment of the present disclosure is shown.

[0035] Figure 5 A schematic diagram of the structure of a computing device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0036] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0037] Those skilled in the art should understand that the terms "first", "second", etc. in the present disclosure are used to distinguish similar objects, rather than to describe a specific order or sequence, and have no additional limiting effect.

[0038] The 3D object matching problem can also be called the 3D object retrieval problem, that is, for a given 3D object, it is necessary to retrieve a matching (eg, similar) 3D object from multiple other 3D objects.

[0039] Taking the three-dimensional object as an example, the three-dimensional object retrieval problem can be divided into the following three situations according to the complexity.

[0040] Case 1: Search for single parts

[0041] For a given single part for search, we can first construct a graph structure g according to the model of the part, and then use the graph neural network model to extract features from the graph structure g to obtain the graph representation Z of the graph structure g. g , and then characterize the graph Z g The graph structure g with other parts in the parts library i The graph representation of the calculation similarity Sim(g,g i ) and sort them in descending order according to similarity. The top-ranked models are the search results.

[0042] Since the graph representations of all parts in the parts library can be pre-calculated, when it is necessary to retrieve parts matching a single part from the parts library, it is only necessary to calculate the similarity Sim(g,g i )

[0043] Scenario 2: Retrieving a single part from an assembly

[0044] An assembly is a more complex part composed of multiple individual parts.

[0045] Given a single part and several assemblies as query (search request) and retrieval object, the problem can be solved by searching each part in the assembly separately. Specifically, for a single part g as query and a single part {g1, g2, …g N}, the similarity between each single part in the assembly and the single part used as the query can be calculated. By performing this operation on each assembly, all the results can be sorted from large to small, and the single part can be retrieved from the assembly.

[0046] The above two situations are essentially retrieval problems for single parts.

[0047] Figure 1The overall structural diagram of the retrieval system built for the parts retrieval problem is shown.

[0048] See also Figure 1 In the above cases 1 and 2, the three-dimensional objects that exist as queries are all single parts. Therefore, the above cases 1 and 2 are essentially single part retrieval problems. For this problem, it is only necessary to calculate the similarity between the graph representations of the part models.

[0049] Scenario 3: Searching between assemblies

[0050] Retrieval between assemblies means that for a given assembly, it is necessary to search for similar assemblies from multiple other assemblies. The complexity of assembly parts is often higher than that of ordinary single parts. Existing methods often model the assembly as a whole. However, for existing methods, as the complexity of parts increases, the difficulty of modeling increases, which will lead to a decrease in algorithm performance.

[0051] Furthermore, for the retrieval problem between assemblies, if we follow the processing methods of Case 1 and Case 2 above, we regard the assembly as a single object, construct the graph structure of the assembly, and use the graph neural network model to calculate the similarity between the graph structures of the assemblies. Due to the complex structure of the assembly, the graph structure constructed for the assembly may not accurately reflect the structural characteristics of the assembly. On the other hand, even if a graph structure that can accurately reflect the structural characteristics of the assembly is constructed, the graph neural network model may not be able to accurately learn the graph representation of this complex graph structure.

[0052] To solve the retrieval problem between assemblies, the present disclosure proposes the following solution.

[0053] Figure 2 A schematic flowchart of a three-dimensional object matching method according to an embodiment of the present disclosure is shown. Figure 1 The method shown can be implemented in software via a computer program, and can also be executed via a specifically configured computing device.

[0054] In step S210, a graph structure of at least a portion of a first sub-three-dimensional object in a first three-dimensional object is obtained.

[0055] The first three-dimensional object may be specified by a user. For the first three-dimensional object specified by the user, the purpose of the present disclosure is to query a second three-dimensional object matching the first three-dimensional object from a plurality of second three-dimensional objects. That is, the first three-dimensional object is a three-dimensional object that exists as a query (search request).

[0056] The first three-dimensional object and the second three-dimensional object are both three-dimensional objects assembled (i.e., assembled) from a plurality of sub-three-dimensional objects. A sub-three-dimensional object may refer to a single object that can exist independently and cannot be further divided, such as a single component. The sub-three-dimensional object in the first three-dimensional object may be referred to as a first sub-three-dimensional object. The sub-three-dimensional object in the second three-dimensional object may be referred to as a second sub-three-dimensional object. Exemplarily, the first three-dimensional object and the second three-dimensional object may refer to an assembly assembled from a plurality of components. The first three-dimensional object and the second three-dimensional object may also be referred to as a first assembly and a second assembly, respectively.

[0057] The first three-dimensional object and the second three-dimensional object may be entity objects with a specific spatial structure in real space. That is, the first three-dimensional object and the second three-dimensional object may be three-dimensional entity objects, such as industrial parts. The first three-dimensional object and the second three-dimensional object may also be objects with a specific spatial structure in virtual space. That is, the first three-dimensional object and the second three-dimensional object may also be three-dimensional virtual objects, such as virtual components.

[0058] At least part of the first three-dimensional sub-objects may refer to all first three-dimensional sub-objects in the first three-dimensional object.

[0059] At least part of the first three-dimensional sub-objects may also refer to part of the first three-dimensional sub-objects in the first three-dimensional object. For example, at least part of the first three-dimensional sub-objects may be first three-dimensional sub-objects that are representative of the structure of the first three-dimensional object among all the first three-dimensional sub-objects; by selecting representative first three-dimensional sub-objects to form at least part of the first three-dimensional sub-objects, the workload can be reduced while ensuring the accuracy of the search.

[0060] The graph structure is the graph structure data of the first three-dimensional child object. The graph structure is composed of edges and nodes. The graph structure represents the overall structure of the first three-dimensional object through edges and nodes. The graph structure can be extracted based on the three-dimensional model of the first three-dimensional child object. The graph structure can be constructed in real time or in advance. That is, the graph structure of the first three-dimensional child object can be obtained by real-time construction or by reading the graph structure of the first three-dimensional child object from a database.

[0061] The three-dimensional model can be regarded as a parameterized representation of the first sub-three-dimensional object, that is, the three-dimensional model can use functions and some parameters (such as length, width, height, curvature, etc.) to describe the shape of the first sub-three-dimensional object. The three-dimensional model can be given in advance or generated in real time. For example, in an actual scene, the two-dimensional data of the first sub-three-dimensional object can be processed to generate a three-dimensional model. For another example, the first sub-three-dimensional object can be sampled, and the three-dimensional model can be constructed based on the sampled data. The present disclosure has no particular restrictions on the way of constructing the three-dimensional model.

[0062] As an example, the three-dimensional model can be a model file in step / stp format produced by software. The step / stp format is a common format in CAD software used for industrial design, which can store all the features and information required by the present disclosure. Step / stp can store the geometric information of the three-dimensional model in a lossless manner. Some commonly used CAD software, such as CATIA, 3Dmax, SolidWorks, etc., have their own proprietary data formats, which can all be converted into step / stp formats and still contain the model feature information required by the present disclosure.

[0063] When extracting the three-dimensional model of the first sub-three-dimensional object into a graph structure, there is a method based on Reeb Graph (i.e., Reeb graph). However, this method requires first sampling points on the surface of the three-dimensional model (such as a CAD model) and then constructing a graph based on the sampling points. The sampling process causes information loss. If the sampling accuracy is not enough, it will lead to a large information loss. If the sampling accuracy is too high, it will lead to a higher amount of calculation.

[0064] To this end, a composition method directly based on the three-dimensional model can be used to achieve higher-precision modeling.

[0065] Exemplarily, when constructing a graph structure based on a three-dimensional model, the faces in the three-dimensional model can be mapped as graph nodes on the graph, and the lines in the three-dimensional model can be regarded as edges on the graph. For example, the graph structure can be obtained by using each face in the three-dimensional model of the three-dimensional object as a graph node, and connecting the graph nodes corresponding to the two faces adjacent to each line in the three-dimensional model with an edge. In the present disclosure, a graph node can be simply referred to as a node.

[0066] In specific operations, for the original 3D model (such as step / stp file), you can first traverse all the faces and lines (which can be called curves), assign them numbers respectively as unique identifiers. Then, each face is defined as a node on the graph, and each line is defined as an edge on the graph. The points connected by this edge are the two adjacent faces of the curve in the original model.

[0067] It should be noted that in a 3D model, most curves are adjacent to two faces, corresponding to two points on an edge of the graph. However, there are some unexpected situations. For example, for faces such as cylinders and cones, their generatrix is ​​also regarded as a curve in CAD. This type of curve has only one adjacent face. In this case, this edge (curve) can be ignored. In addition, some curves are adjacent to multiple faces (greater than 2). In this case, edges can be added between the nodes corresponding to these faces. In this way, the graph structure can be extracted.

[0068] There are many types of primitive faces and curves corresponding to nodes and edges. For example, the type of face may include but is not limited to plane, cylinder, cone, sphere, elliptical cylinder, elliptical cone, torus, and Nurbs surface. The type of line may include but is not limited to straight line, arc, circular line, elliptical line, elliptical arc, and Nurbs line. Depending on the type, different nodes and edges can also be regarded as different types. In other words, the first graph structure constructed in the present disclosure can be a heterogeneous graph. Heterogeneous graphs take into account more node types and relationship types, and therefore can better characterize the structure of the three-dimensional model.

[0069] In step S220, the graph structure is processed using a graph neural network model to obtain a graph representation of the first sub-three-dimensional object.

[0070] The graph neural network model may be used to process the graph structure of each first sub-three-dimensional object in at least part of the first sub-three-dimensional objects to obtain a graph representation of each first sub-three-dimensional object.

[0071] The graph representation can be regarded as the feature extraction result obtained by the graph neural network model to extract features from the graph structure. The graph representation is also the vectorized representation of the graph structure of the first sub-three-dimensional object, that is, the vector representation.

[0072] Step S220 can be processed in real time or pre-processed in advance. In the pre-processing scenario, the first sub-three-dimensional object can be processed in advance using a pre-trained graph neural network model, and the obtained graph representation of the first sub-three-dimensional object can be stored, and the graph representation of the first sub-three-dimensional object can be obtained by directly reading the pre-stored data in this step. In the real-time processing scenario, the graph representation of the first sub-three-dimensional object can also be stored in a database so that the graph representation of the first sub-three-dimensional object can be directly retrieved and applied in the subsequent application process, so as to achieve the technical effect of repeated application after one processing.

[0073] In step S230, the similarity between the graph representation of each first sub-three-dimensional object in at least part of the first sub-three-dimensional objects and the graph representation of the second sub-three-dimensional objects in the sub-three-dimensional object library is calculated.

[0074] The second sub-three-dimensional object is a sub-three-dimensional object in the second three-dimensional object to be matched (i.e., to be searched). The sub-three-dimensional object library can be regarded as a collection of second sub-three-dimensional objects included in all second three-dimensional objects to be matched. Different second sub-three-dimensional objects may have common sub-three-dimensional objects. That is, each second sub-three-dimensional object in the sub-three-dimensional object library may correspond to (i.e., belong to) one or more second three-dimensional objects. The second sub-three-dimensional object corresponds to the second three-dimensional object, indicating that the second three-dimensional object includes the second sub-three-dimensional object. That is, each second sub-three-dimensional object participates in the assembly of the second three-dimensional object to which it corresponds. The correspondence (or belonging relationship) between the second sub-three-dimensional object and the second three-dimensional object is known.

[0075] The graph representations of the second sub-three-dimensional objects in the sub-three-dimensional object library may be calculated in advance, for example, the graph representations of the second sub-three-dimensional objects in the sub-three-dimensional object library may be calculated using a graph neural network model.

[0076] When calculating the similarity between graph representations, similarity calculation methods such as cosine similarity and Pearson correlation coefficient may be used but are not limited to. For example, the similarity between two graph representations may be calculated using the following formula:

[0077] Sim(g,g′)=||Z g -Z g′ || p

[0078] in,‖‖ p represents the p-norm, Z g is the graph representation of the first sub-3D object g, Z g′ is the graph representation of the second sub-three-dimensional object g′, and Sim(g,g′) represents the similarity between the graph representation of the first sub-three-dimensional object g and the graph representation of the second sub-three-dimensional object g′.

[0079] In step S240, a second sub-three-dimensional object matching the first sub-three-dimensional object is determined based on the similarity.

[0080] The second three-dimensional sub-objects with a similarity greater than a predetermined threshold can be determined as second three-dimensional sub-objects matching the first three-dimensional sub-object. A predetermined number of objects with a high similarity ranking can also be determined as second three-dimensional sub-objects matching the first three-dimensional sub-object.

[0081] In step S250, the second three-dimensional object to which the second three-dimensional sub-object matching the first three-dimensional sub-object belongs is determined as a candidate three-dimensional object.

[0082] At least part of the first three-dimensional sub-object may be traversed. For the first three-dimensional sub-object currently traversed, each second three-dimensional object to which the second three-dimensional sub-object matching the first three-dimensional sub-object belongs may be determined as a candidate three-dimensional object.

[0083] In step S260, based on the number of times the second three-dimensional object is determined as a candidate three-dimensional object, a second three-dimensional object matching the first three-dimensional object is determined.

[0084] Each first sub-3D object in at least part of the first sub-3D objects can be regarded as a search request Query, and the second 3D object determined as a candidate 3D object for the Query (i.e., the first 3D object) can be regarded as the search result. For a Query, if a second 3D object is determined as a candidate 3D object, it indicates that there is a sub-3D object matching the Query in the second 3D object.

[0085] Therefore, each Query (i.e., the first three-dimensional object) corresponds to a search result (i.e., the second three-dimensional object determined to be a candidate three-dimensional object). After multiple searches, some second three-dimensional objects appear multiple times in the search results. The more times the second three-dimensional object appears in the search results (i.e., the number of times the second three-dimensional object is determined to be a candidate three-dimensional object), the more sub-three-dimensional objects that match (i.e., are similar to) the second three-dimensional object and the first three-dimensional object, and the more likely the second three-dimensional object is to match the first three-dimensional object. Conversely, the fewer times the second three-dimensional object appears in the search results (i.e., the number of times the second three-dimensional object is determined to be a candidate three-dimensional object), the fewer sub-three-dimensional objects that match (i.e., are similar to) the second three-dimensional object and the first three-dimensional object, and the less likely the second three-dimensional object is to match the first three-dimensional object.

[0086] Therefore, the second three-dimensional object matching the first three-dimensional object can be determined according to the number of times the second three-dimensional object is determined as a candidate three-dimensional object. Exemplarily, a first number of candidate three-dimensional objects with the highest number of times can be provided to the user as three-dimensional objects matching the first three-dimensional object, and the user can further select a suitable second three-dimensional object. Exemplarily, the candidate three-dimensional object with the highest number of times can also be used as a three-dimensional object matching the first three-dimensional object.

[0087] In order to solve the matching problem between complex three-dimensional objects including multiple sub-three-dimensional objects, the present disclosure does not directly calculate the similarity between the graph structures of the three-dimensional objects, but splits the first three-dimensional object that exists as a retrieval request into several first sub-three-dimensional objects, and for each first sub-three-dimensional object in at least part of the first sub-three-dimensional objects, matches the first sub-three-dimensional object with the second sub-three-dimensional object in the sub-three-dimensional object library, and determines the second sub-three-dimensional object that matches the first sub-three-dimensional object as a candidate three-dimensional object, and determines the second three-dimensional object that matches the first three-dimensional object based on the number of times the second three-dimensional object is determined as a candidate three-dimensional object.

[0088] Taking the three-dimensional object as an assembly based on industrial parts as an example, the types of industrial parts can be limited, and a large number of assemblies can be assembled based on limited industrial parts. When the number of second three-dimensional objects that need to be searched is large, the present disclosure splits the three-dimensional object into a series of sub-three-dimensional objects and matches the sub-three-dimensional objects, so that the amount of calculation can be not significantly increased. Moreover, compared with complex three-dimensional objects, the graph structure of sub-three-dimensional objects is generally simpler, so the present disclosure can also not significantly increase the learning ability requirements of the graph neural network model for complex graph structures. Therefore, the present disclosure adopts this "first break the whole into parts, then break the parts into the whole" three-dimensional object matching method, which can achieve matching between complex and miscellaneous three-dimensional objects without significantly increasing the amount of calculation and the learning ability requirements of the graph neural network model for complex graph structures.

[0089] In some embodiments, the present disclosure may also select a second number of candidate three-dimensional objects with higher rankings, calculate the similarity between the first three-dimensional object and the selected candidate three-dimensional objects, and select a second three-dimensional object that matches the first three-dimensional object from the second number of candidate three-dimensional objects based on the similarity calculation results.

[0090] When calculating the similarity between a first three-dimensional object and a selected candidate three-dimensional object, a first graph structure of the first three-dimensional object and a second graph structure of the candidate three-dimensional object can be obtained; the first graph structure and the second graph structure are respectively processed using a graph neural network model to obtain a first graph representation corresponding to the first three-dimensional object and a second graph representation corresponding to the candidate three-dimensional object; and the similarity between the first graph representation and the second graph representation is calculated.

[0091] When selecting a three-dimensional object that matches the first three-dimensional object from a second number of candidate three-dimensional objects based on the similarity calculation result, the second three-dimensional object that matches the first three-dimensional object can be determined by combining the similarity calculation result and the number of times the second three-dimensional object is determined as a candidate three-dimensional object.

[0092] Therefore, we can first perform a preliminary screening based on the number of occurrences of the second three-dimensional object as a candidate three-dimensional object, and then use the graph neural network technology to match the assemblies for the candidate three-dimensional objects obtained from the preliminary screening. In this way, the matching accuracy can be improved by combining the two matching methods.

[0093] In practical applications, the same three-dimensional object may include multiple identical sub-three-dimensional objects. That is, there may be multiple sub-three-dimensional objects belonging to the same category among the sub-three-dimensional objects involved in the assembly of the three-dimensional object. In view of this situation, the present disclosure may only consider the matching between sub-three-dimensional objects of non-repeating categories included in the three-dimensional object, that is, at least part of the first sub-three-dimensional objects mentioned above may refer to the set of first sub-three-dimensional objects of non-repeating categories in the first three-dimensional object.

[0094] Exemplarily, the present disclosure may also consider the number of occurrences of sub-three-dimensional objects of the same category in a three-dimensional object, and at least part of the first sub-three-dimensional objects mentioned above may also refer to a set of first sub-three-dimensional objects of non-repeating categories in the first three-dimensional object. In this case, when executing step S250 to determine each second three-dimensional object to which the second sub-three-dimensional object matching the first sub-three-dimensional object belongs as a candidate three-dimensional object, the second three-dimensional object to which the second sub-three-dimensional object matching the first sub-three-dimensional object belongs, including the same number of second sub-three-dimensional objects matching the first sub-three-dimensional object as the number of first three-dimensional objects including the first sub-three-dimensional objects, may be determined as a candidate three-dimensional object. For example, if the first assembly includes three identical first sub-three-dimensional objects, the second three-dimensional object to which the second sub-three-dimensional object matching the first sub-three-dimensional object belongs, including three second sub-three-dimensional objects, may be determined as a candidate three-dimensional object.

[0095] So far combined Figure 2 An example is given on how to implement retrieval between assemblies.

[0096] The following is an example of the structure of the graph neural network model.

[0097] In the present disclosure, the main function of the graph neural network model is to calculate the graph representation of the entire graph structure based on the initialization representation of each graph node in the graph structure. That is, the graph neural network model is mainly responsible for the calculation of the graph representation. As for the initialization representation of the graph node, it can be calculated by the graph neural network model or by other means (such as by other models).

[0098] Exemplarily, the graph neural network model may include a feature extraction module and a graph representation calculation module. Optionally, the graph neural network model may also only include a graph representation calculation module.

[0099] The feature extraction module is used to extract the feature information of each graph node in the graph structure and obtain the initialization representation of each graph node. The initialization representation is used to represent the feature information of the graph node itself. The initialization representation is the vectorized representation obtained after processing the feature information of the graph node, that is, the feature vector. Under the action of the feature extraction module, different graph nodes can have an initialization representation with a unified dimension.

[0100] The feature information of a node may include but is not limited to at least one of the following: spatial information; surface type; area; material; processing method; color. The spatial information may refer to the spatial information of the surface corresponding to the node in a three-dimensional model, such as the uvgrid information of the surface corresponding to the node.

[0101] As an example, the feature extraction module may include a coding module, a splicing module and a second multi-layer perceptron. The coding module is used to encode different types of features. Specifically, the coding module can use different encoding methods for the features according to whether the features are discrete features or continuous features. For example, one-hot encoding can be adopted for discrete features, and normalization can be adopted for continuous features. The encoding result is the encoding result of different types of features of the same graph node. The splicing module is used to splice all the encoding results of different types of features together. The second multi-layer perceptron is used to convert the feature dimension of the splicing result to obtain a feature vector with a predetermined dimension. The second multi-layer perceptron may include an input layer, a hidden layer and an output layer. Among them, the number of hidden layers can be set according to actual conditions. The dimension of the feature vector output by the second multi-layer perceptron is equal to the number of neurons (i.e., output units) in the output layer.

[0102] As described above, there are multiple types of graph nodes. In the present disclosure, the parameters of the second multilayer perceptrons corresponding to different types of graph nodes may not be shared. That is, an independent second multilayer perceptron may be designed for each type of graph node. These multiple second multilayer perceptrons may participate in training together to train second multilayer perceptrons with different parameters. When performing feature extraction on different types of graph nodes, second multilayer perceptrons with different parameters may be used.

[0103] The graph representation calculation module is used to calculate the graph representation based on the initialization representation of each graph node in the graph structure. The graph representation reflects the feature information of the entire graph structure. That is, the graph representation can be regarded as a vectorized representation of the entire graph structure. The graph representation can also be called a vector representation of a three-dimensional object.

[0104] When using the graph neural network model to obtain the graph representation of the graph structure, the feature extraction module in the graph neural network model can be used to extract the feature information of each graph node to obtain the initialization representation of each graph node; and then the graph representation calculation module in the graph neural network model is used to calculate the graph representation based on the initialization representation of each graph node in the graph structure. The specific process of feature extraction and graph representation calculation can be found in the relevant description.

[0105] As an example, the graph representation calculation module may include a convolutional layer module and a readout module.

[0106] The convolutional layer module can be used to perform one or more convolutional layers on each graph node in the graph structure to obtain the convolution results of each node. That is, the convolutional layer module can include one or more convolutional layers, and the convolutional layers can use but are not limited to convolutional calculation methods such as GCN (Graph Convolutional Network) and GAT (Graph Attention Network).

[0107] The convolution calculation method of GCN is essentially the same as the convolution process of CNN, which is a weighted summation process, that is, the neighbor points are passed through the degree matrix and its adjacency matrix, the weight of each edge is calculated, and then the weighted sum is performed.

[0108] When the convolution method of GCN is applied to the present disclosure, any convolution layer in the convolution layer module can perform weighted summation on the node representation calculation results of the neighbor nodes of each graph node in the structure graph in the previous convolution layer to obtain the node representation calculation results of each graph node in the convolution layer, wherein the weights of the neighbor nodes are calculated based on the degree matrix. For the convolution principle of GCN, please refer to the prior art.

[0109] GAT uses the Attention mechanism, which allows each graph node to distinguish and identify the characteristics of its neighbor nodes, and assign different weights to the contribution of its neighbor nodes to its own information.

[0110] When the convolution method of GAT is applied to the present disclosure, any convolution layer in the convolution layer module can perform a weighted summation based on the attention coefficient on the node representation calculation results of the neighbor nodes of each graph node in the structure graph in the previous convolution layer, and obtain the node representation calculation results of each graph node in the convolution layer, wherein the attention coefficient is a model parameter used to characterize the weight of the neighbor node. The convolution principle of GAT will not be further explained here.

[0111] In addition, the convolution layer can also use other convolution calculation methods suitable for graph structures (such as GraphSage), which will not be exhaustively listed or elaborated in this disclosure.

[0112] For example, taking the convolution layer using the GCN convolution calculation method as an example, for any graph node in the graph structure, the convolution calculation can be performed using the following formula:

[0113]

[0114]

[0115] in, For graph node x iThe node representation after (l+1) layers of convolutional layers, i is the number of the graph node, N(i) represents all the neighboring nodes of graph node i, is a parameter. σ is an activation function. cat represents a vector concatenation operation. MLP is a multi-layer perceptron, which processes the dimension of the concatenated feature vector to a predetermined dimension. For example, the dimension of the concatenated feature vector can be processed to be the same as The dimensions are consistent.

[0116] Any convolutional layer can obtain the convolution result of each graph node in the graph structure in the convolutional layer, that is, the node representation of the graph node in the convolutional layer (that is, the node vector). The readout module can calculate the graph representation based on the node representation of each graph node in at least one convolutional layer in the graph structure. Specifically, the readout module can calculate the global representation of all graph nodes in at least one convolutional layer based on the node representation of each graph node in at least one convolutional layer in the graph structure; and calculate the graph representation based on the global representation of at least one convolutional layer, such as adding the global representation of at least one convolutional layer to obtain the graph representation.

[0117] For example, the readout module can calculate the node representation of each graph node in the graph structure at each convolution layer to obtain the global representation of the graph structure at the convolution layer; the global representations of all convolution layers can be added to obtain the graph representation. For another example, the readout module can also only calculate the node representation of each graph node in the graph structure at the last convolution layer to obtain the global representation of the graph structure at the last convolution layer; the global representation of the last convolution layer is used as the graph representation. When calculating the global representation of a convolution layer, the global representation can be calculated by summing, averaging, maximizing, etc. the node representations of all graph nodes in the graph structure at the convolution layer.

[0118] In the 3D model of a 3D object, some special types of local features often play an important role. Based on domain knowledge, there are usually some common substructures, such as through holes, grooves, holes, bosses, chamfers, etc. These semantic substructures are important for identifying the geometric features of 3D objects, and therefore play an important role in matching similar 3D objects. However, there is currently no method based on graphs to model these substructures in a targeted manner.

[0119] In order to obtain semantic substructure information such as through holes and grooves in the three-dimensional model, a corresponding meta-path can also be constructed for at least one substructure in the three-dimensional model. Taking the graph neural network model including the feature extraction module and the graph representation calculation module mentioned above as an example, the graph representation calculation module can perform convolution processing on the initialization representation of each graph node in the graph structure and the initialization node representation of each graph node in the meta-path to obtain the graph representation of the three-dimensional object.

[0120] As mentioned above, the graph representation calculation module includes a convolutional layer module and a readout module.

[0121] The convolutional layer module may include one or more convolutional layers, and any convolutional layer may include a first aggregation module, a second aggregation module, a splicing module, a first multi-layer perceptron, and an activation module. The first aggregation module is used to aggregate the node representations of at least some of the neighboring nodes of the graph node in the previous convolutional layer to obtain a first aggregation result. The second aggregation module is used to aggregate the node representations of at least some of the graph nodes in the meta-path where the graph node is located in the previous convolutional layer to obtain a second aggregation result. The splicing module is used to splice the node representation of the graph node in the previous convolutional layer, the first aggregation result, and the second aggregation result. The first multi-layer perceptron is used to convert the feature dimension of the splicing result to obtain an output with the same feature dimension as the feature dimension of the output of the graph node in the previous convolutional layer. The activation module is used to perform nonlinear processing on the output of the first multi-layer perceptron to obtain the node representation of the graph node in the convolutional layer. Among them, the aggregation processing may include but is not limited to any one of sum calculation, mean calculation, and weighted summation based on the attention mechanism.

[0122] As an example, any graph node in the graph structure can be convolved in each convolutional layer using the following formula:

[0123]

[0124]

[0125]

[0126] in, For graph node x i The node representation after (l+1) layers of convolutional layers, i is the number of the graph node, N(i) represents all the neighboring nodes of graph node i, M k (i) represents all nodes in the kth meta-path, is a parameter. σ is an activation function. cat represents a vector concatenation operation. MLP is a multi-layer perceptron, which processes the dimension of the concatenated feature vector to a predetermined dimension. For example, the dimension of the concatenated feature vector can be processed to be the same as The dimensions are consistent. Represents the first aggregation result. Represents the second aggregation result.

[0127] Based on the above convolution calculation formula, each graph node in the graph structure can obtain its neighborhood information through two methods. On the one hand, it receives information from all first-order neighbor nodes and performs aggregation operations; on the other hand, it aggregates all nodes on each meta-path through pre-defined meta-paths. The representations obtained by the two methods are spliced ​​together with the original node representation, and the dimensions are aligned through MLP. Finally, the updated node representation of the next layer is obtained through the calculation of the activation function.

[0128] After each layer of convolution calculation, the readout module can calculate the global representation of this layer based on the convolution calculation results of each graph node in the graph structure at this convolution layer (i.e., node representation). The global representation of the lth convolution layer can be recorded as The calculation formula can be expressed as: in, For graph node x i Node representation after l convolutional layers.

[0129] The final global representation (i.e., graph representation) can be denoted as Z g . Z g The calculation formula can be expressed as: Among them, Z g There is no unique way to calculate . A simpler way to calculate is to take only the representation of the last layer as the final output, without calculating each layer The calculation of is not limited to sum pooling, other pooling methods can also be used, such as mean pooling, max pooling and other methods, which are not exhaustive.

[0130] In addition, the two aggregation operations above in the computational graph nodes (i.e., computation ) are all summed. The summation can also be replaced by the mean calculation or the attention mechanism. Taking the calculation process of as an example, the calculation process based on the attention mechanism is as follows:

[0131]

[0132]

[0133]

[0134] Among them, α j is the attention coefficient; sim(i,k) represents the similarity between graph node i and graph node k.

[0135] Figure 3A schematic diagram of the search results between assemblies is shown.

[0136] See also Figure 3 , the left side is the model of the assembly as the search request (i.e., Query), and the right side is the search result obtained by using the method described above in the present disclosure. The search results include the structural diagrams, names, and numbers of the models of several assemblies that are ranked high. Among them, the digital numbers are the order of arrangement determined based on the number of times the assembly appears as a search result. The higher the number of appearances, the higher the digital number.

[0137] The three-dimensional object matching method disclosed in the present invention may also be implemented as a three-dimensional object matching device. Figure 4 The structure diagram of the three-dimensional object matching device according to an embodiment of the present disclosure is shown. The functional units of the three-dimensional object matching device can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present disclosure. It can be understood by those skilled in the art that Figure 4 The functional units described can be combined or divided into sub-units to implement the principles of the above invention. Therefore, the description herein can support any possible combination, division, or further limitation of the functional units described herein. The following is a brief description of the functional units that the three-dimensional object matching device can have and the operations that each functional unit can perform. For the details involved, please refer to the relevant description above, which will not be repeated here.

[0138] See also Figure 4 The three-dimensional object matching device 400 may include an acquisition module 410 , a processing module 420 , a calculation module 430 , a first determination module 440 , a judgment module 450 , and a second determination module 460 .

[0139] The acquisition module 410 is used to acquire the graph structure of at least part of the first sub-three-dimensional object in the first three-dimensional object. The processing module 420 is used to process the graph structure using a graph neural network model to obtain a graph representation of the first sub-three-dimensional object. The calculation module 430 is used to calculate the similarity between the graph representation of each first sub-three-dimensional object in the at least part of the first sub-three-dimensional object and the graph representation of the second sub-three-dimensional object in the sub-three-dimensional object library, and the second sub-three-dimensional object is a sub-three-dimensional object in the second three-dimensional object to be matched. The first determination module 440 is used to determine the second sub-three-dimensional object that matches the first sub-three-dimensional object based on the similarity. The judgment module 450 is used to determine the second three-dimensional object to which the second sub-three-dimensional object that matches the first sub-three-dimensional object belongs as a candidate three-dimensional object. The second determination module 460 is used to determine the second three-dimensional object that matches the first three-dimensional object based on the number of times the second three-dimensional object is determined as the candidate three-dimensional object.

[0140] In some embodiments, the second determination module 460 may select a first number of candidate three-dimensional objects with higher rankings as second three-dimensional objects that match the first three-dimensional object.

[0141] In some embodiments, the second determination module 460 may also select a second number of candidate three-dimensional objects with a higher number of times, calculate the similarity between the first three-dimensional object and the selected candidate three-dimensional object, and select a second three-dimensional object that matches the first three-dimensional object from the second number of candidate three-dimensional objects based on the similarity calculation result. Exemplarily, the second determination module 460 may obtain a first graph structure of the first three-dimensional object and a second graph structure of the candidate three-dimensional object, respectively process the first graph structure and the second graph structure using the graph neural network model, obtain a first graph representation corresponding to the first three-dimensional object and a second graph representation corresponding to the candidate three-dimensional object, and calculate the similarity between the first graph representation and the second graph representation.

[0142] For details about the graph structure and graph neural network model, please refer to the above description.

[0143] Figure 5 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned three-dimensional object matching method according to an embodiment of the present disclosure is shown.

[0144] See also Figure 5 , the computing device 500 includes a memory 510 and a processor 520 .

[0145] The processor 520 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 520 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 520 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0146] The memory 510 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 520 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at runtime. In addition, the memory 510 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 510 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0147] The memory 510 stores executable codes, and when the executable codes are processed by the processor 520 , the processor 520 can execute the three-dimensional object matching method mentioned above.

[0148] The three-dimensional object matching method, device and apparatus according to the present disclosure have been described above in detail with reference to the accompanying drawings.

[0149] In addition, the method according to the present disclosure may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present disclosure.

[0150] Alternatively, the present disclosure may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present disclosure.

[0151] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.

[0152] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the system and method according to multiple embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0153] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A three-dimensional object matching method, characterized in that: include: Acquire a graph structure of at least a portion of a first sub-three-dimensional object in the first three-dimensional object; Processing the graph structure using a graph neural network model to obtain a graph representation of the first sub-three-dimensional object; Calculating similarities between the graph representations of each first three-dimensional sub-object in the at least part of the first three-dimensional sub-objects and the graph representations of second three-dimensional sub-objects in the three-dimensional sub-object library, where the second three-dimensional sub-objects are the three-dimensional sub-objects in the second three-dimensional object to be matched; Determine a second three-dimensional sub-object matching the first three-dimensional sub-object based on the similarity; Determine a second three-dimensional object to which a second three-dimensional sub-object matching the first three-dimensional sub-object belongs as a candidate three-dimensional object; A second three-dimensional object matching the first three-dimensional object is determined based on the number of times the second three-dimensional object is determined as the candidate three-dimensional object.

2. The method according to claim 1, characterized in that Determining a second three-dimensional object matching the first three-dimensional object based on the number of times the second three-dimensional object is determined as the candidate three-dimensional object includes: A first number of candidate three-dimensional objects with the highest number of times are used as second three-dimensional objects that match the first three-dimensional object.

3. The method according to claim 1, characterized in that Determining a second three-dimensional object matching the first three-dimensional object based on the number of times the second three-dimensional object is determined as the candidate three-dimensional object includes: selecting a second number of candidate three-dimensional objects with the highest number of selections; calculating a similarity between the first three-dimensional object and the selected candidate three-dimensional object; A second three-dimensional object matching the first three-dimensional object is selected from the second number of candidate three-dimensional objects based on the similarity calculation result.

4. The method according to claim 3, characterized in that Calculating the similarity between the first three-dimensional object and the selected candidate three-dimensional object includes: Acquire a first graph structure of the first three-dimensional object and a second graph structure of the candidate three-dimensional object; Using the graph neural network model to process the first graph structure and the second graph structure respectively, to obtain a first graph representation corresponding to the first three-dimensional object and a second graph representation corresponding to the candidate three-dimensional object; A similarity between the first graph representation and the second graph representation is calculated.

5. The method according to claim 1, characterized in that The graph structure is obtained by using each face in the three-dimensional model of the three-dimensional object as a graph node and connecting the graph nodes corresponding to two adjacent faces of each line in the three-dimensional model with edges.

6. The method according to claim 5, characterized in that The graph neural network model includes a feature extraction module and a graph representation calculation module; The feature extraction module is used to extract feature information of each graph node in the graph structure to obtain an initialization representation of each graph node; The graph representation calculation module is used to perform convolution processing on the initialization representation of each graph node in the graph structure and the node representation of each graph node in the meta-path to obtain the graph representation of the three-dimensional object.

7. The method according to claim 6, characterized in that The graph representation calculation module includes a convolutional layer module and a readout module, the convolutional layer module includes one or more convolutional layers, and any one of the convolutional layers includes a first aggregation module, a second aggregation module, a splicing module, a first multi-layer perceptron, and an activation module; The first aggregation module is used to aggregate the node representations of at least part of the neighboring nodes of the graph node in the previous convolutional layer to obtain a first aggregation result; The second aggregation module is used to aggregate the node representations of at least part of the graph nodes in the meta-path where the graph nodes are located in the previous convolutional layer to obtain a second aggregation result; The splicing module is used to splice the node representation of the graph node in the previous convolutional layer, the first aggregation result and the second aggregation result; The first multi-layer perceptron is used to convert the feature dimension of the splicing result to obtain an output having the same feature dimension as the feature dimension of the output of the graph node in the previous convolutional layer; The activation module is used to perform nonlinear processing on the output of the first multi-layer perceptron to obtain the node representation of the graph node in the convolutional layer; The readout module calculates the graph representation based on the node representation of each graph node in the graph structure in at least one convolutional layer.

8. A three-dimensional object matching device, characterized in that: include: An acquisition module, used to acquire a graph structure of at least a portion of a first sub-three-dimensional object in the first three-dimensional object; A processing module, configured to process the graph structure using a graph neural network model to obtain a graph representation of the first sub-three-dimensional object; a calculation module, configured to calculate a similarity between a graph representation of each first three-dimensional sub-object in the at least part of the first three-dimensional sub-objects and a graph representation of a second three-dimensional sub-object in the three-dimensional sub-object library, wherein the second three-dimensional sub-object is a three-dimensional sub-object in the second three-dimensional object to be matched; A first determining module, configured to determine, based on the similarity, a second sub-three-dimensional object that matches the first sub-three-dimensional object; A determination module, configured to determine a second three-dimensional object to which a second three-dimensional sub-object matching the first three-dimensional sub-object belongs as a candidate three-dimensional object; The second determination module is used to determine a second three-dimensional object that matches the first three-dimensional object based on the number of times the second three-dimensional object is determined to be the candidate three-dimensional object.

9. A computing device comprising: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 7.

10. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Single-image three-dimensional part combined modeling method based on embedded space

    CN111354076A

  • Lightweight three-dimensional CAD model classification and retrieval method based on graph convolutional network

    CN116187200A

  • Method and equipment for searching three-dimensional pattern model data base with empirical 3D shape description

    CN1527251A