WO2023230769A1 - Cad model search method, cad model clustering and classification model generation method, apparatus and storage medium - Google Patents

Cad model search method, cad model clustering and classification model generation method, apparatus and storage medium Download PDF

Info

Publication number
WO2023230769A1
WO2023230769A1 PCT/CN2022/096006 CN2022096006W WO2023230769A1 WO 2023230769 A1 WO2023230769 A1 WO 2023230769A1 CN 2022096006 W CN2022096006 W CN 2022096006W WO 2023230769 A1 WO2023230769 A1 WO 2023230769A1
Authority
WO
WIPO (PCT)
Prior art keywords
cad model
cad
model
cluster
clustering
Prior art date
Application number
PCT/CN2022/096006
Other languages
French (fr)
Chinese (zh)
Inventor
邹文超
王海峰
Original Assignee
西门子股份公司
西门子(中国)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西门子股份公司, 西门子(中国)有限公司 filed Critical 西门子股份公司
Priority to PCT/CN2022/096006 priority Critical patent/WO2023230769A1/en
Publication of WO2023230769A1 publication Critical patent/WO2023230769A1/en

Links

Images

Definitions

  • the present application relates to the field of computers, and in particular to a CAD model clustering and classification model generation, as well as a CAD model search method, device and computer-readable storage medium.
  • search efficiency is related to the time consumption of the search strategy.
  • the simplest implementation of a search engine looks like the following pseudocode:
  • the search time will increase as the number of CAD models in the database increases. If each iteration takes 1 second, the database size is 10 4 models. Then the search time is 10 4 seconds, which is about 3 hours. This is unacceptable to search engine users.
  • embodiments of the present application provide, on the one hand, a CAD model clustering and classification model generation method and a CAD model search method, and on the other hand, a CAD model clustering and classification model generation device, a CAD model search device,
  • the computer device and the computer-readable storage medium can improve the efficiency of CAD model search.
  • a method for generating CAD model clustering and classification models including: for each CAD model in the database, extracting the geometric information of the CAD model, performing a structured representation of the geometric information, and converting the structured expressed geometric information into Convert to a vector of predefined length to obtain the vector of the CAD model; cluster the vectors of all CAD models in the database to obtain multiple CAD model clusters not exceeding the set number in order to perform CAD model When searching, locate the search scope to a CAD model cluster that does not exceed the set number; for each CAD model cluster, use all CAD models within the CAD model cluster as training samples to train to obtain the corresponding CAD
  • the classification model of model clustering is used so that when searching for CAD models, the corresponding classification model is used to search for CAD models within the CAD model clusters that do not exceed the set number.
  • a CAD model search method including: receiving an input current CAD model; extracting geometric information of the current CAD model, performing a structured representation of the geometric information, and converting the structured represented geometric information into a predefined length vector to obtain the vector of the current CAD model; based on the vector of the current CAD model, search for a CAD model cluster sample to obtain a target CAD model cluster that is most similar to the current CAD model and does not exceed a set number.
  • the CAD model clustering sample includes: a plurality of CAD model clusters not exceeding a set number obtained after clustering the vectors of all CAD models in a database; taking the current CAD model as an input
  • the sample input is a classification model corresponding to the target CAD model cluster, and the likelihood of each CAD model in the current CAD model and the target CAD model cluster is obtained;
  • the classification model is configured by clustering the target CAD model. All CAD models in the class are trained as training samples; the target CAD model is obtained according to the likelihood of each CAD model in the current CAD model and the leaf node CAD model cluster.
  • a CAD model clustering and classification model generation device including: a first module, used for extracting the geometric information of the CAD model for each CAD model in the database, and performing a structured representation of the geometric information, and The geometric information of the structured representation is converted into a vector of predefined length to obtain the vector of the CAD model; the second module is used to cluster the vectors of all CAD models in the database to obtain multiple vectors that do not exceed the set CAD model clusters of a certain number and size, so that when searching for CAD models, the search scope is positioned to a CAD model cluster that does not exceed the set number and size; the third module is used to cluster each CAD model, using the All CAD models in the CAD model cluster are trained as training samples to obtain a classification model corresponding to the CAD model cluster, so that when performing a CAD model search, the corresponding classification model is used to cluster CAD models that do not exceed the set number.
  • a CAD model search device including: a fourth module for receiving an input current CAD model, extracting geometric information of the current CAD model, and performing structured representation of the geometric information, and converting the structured expressed geometric information into Convert to a vector of predefined length to obtain the vector of the current CAD model; the fifth module is used to search for a CAD model clustering sample based on the vector of the current CAD model to obtain the most similar to the current CAD model A target CAD model clustering that does not exceed a set number; the CAD model clustering sample includes: a plurality of CAD models that do not exceed a set number and are obtained after clustering the vectors of all CAD models in a database Clustering; the sixth module is used to input the current CAD model as an input sample into a classification model corresponding to the target CAD model cluster, and obtain the current CAD model and each CAD in the target CAD model cluster.
  • the likelihood of the model; the classification model is obtained by training all CAD models in the target CAD model cluster as training samples; the seventh module is used to cluster the current CAD model and the leaf node CAD model according to The likelihood of each CAD model in the class is calculated to obtain the target CAD model.
  • a computer device including at least one memory and at least one processor, wherein: the at least one memory is used to store a computer program; the at least one processor is used to call the computer program stored in the at least one memory to execute any of the above
  • each CAD model in the database is converted into a vector, and then all CAD models in the database are clustered based on the vector, and multiple CAD models that do not exceed the set number are obtained.
  • CAD model clustering allows the search scope to be targeted to a CAD model cluster that does not exceed the set number when searching for CAD models, thereby narrowing the search space and improving search efficiency; through cluster training for each CAD model A classification model is used, and the corresponding classification model is used to search for CAD models within the CAD model clusters that do not exceed the set number, thereby further accelerating the search speed and improving the search efficiency.
  • Figure 1 is an exemplary flow chart of a CAD model clustering and classification model generation method in an embodiment of the present application.
  • FIGS. 2A and 2B are schematic diagrams of geometric information of a CAD model in an example of the present invention.
  • 3A and 3B are respectively schematic diagrams of geometric information of a structured representation of a CAD model in an example of the present invention.
  • Figure 4 is a schematic diagram of re-clustering of clustered CAD models in an example of this application.
  • Figure 5 is a schematic diagram of a hierarchically indexed CAD model clustering sample in an example of this application.
  • Figure 6 is an exemplary flow chart of a CAD model search method in an embodiment of the present application.
  • Figure 7 is a flow chart of a method for searching and locating CAD model clusters in an embodiment of the present application.
  • Figure 8 is an exemplary structural diagram of a CAD model clustering and classification model generation device in an embodiment of the present invention.
  • Figure 9 is an exemplary structural diagram of a CAD model search device in an embodiment of the present invention.
  • Figure 10 is an exemplary structural diagram of a computer device in an embodiment of the present application.
  • Figure 1 is an exemplary flow chart of a CAD model clustering and classification model generation method in an embodiment of the present application. As shown in Figure 1, the method may include the following steps:
  • Step 101 Extract the geometric information of each CAD model in the database.
  • the geometric information may include design features and boundary representation (B-rep) information.
  • design features are basic shape descriptions that define the appearance of the CAD model. Typical design features may include bosses, holes, pockets, grooves, and notches, etc.
  • different CAD model suppliers may have different definitions of design features, in this application example they can be converted through standard CAD formats, that is, the design features of CAD models from different providers are first converted based on standard CAD formats. Transform to obtain uniformly defined design features.
  • B-rep information consists of the topological components of the CAD model, which can include faces, edges, and vertices.
  • FIG. 2A and 2B show geometric information of a CAD model in an example.
  • Figure 2A is a boundary representation information map
  • Figure 2B is a geometric feature map.
  • Labels 1 to 9 in Fig. 2A represent boundary representation information in the CAD model, that is, each face.
  • Reference numeral 21 in Figure 2B represents a through hole
  • reference numeral 22 represents a circular cone 1
  • reference numeral 23 represents a circular cone 2
  • reference numeral 24 represents a through groove.
  • Step 102 Structurally represent the extracted geometric information of each CAD model.
  • the geometric information extracted in step 101 is organized into an appropriate form for subsequent calculation. Since the extracted CAD geometric information contains semantics, it can be organized into a graph-like form, that is, a topological graph structure as shown in Figure 3A or a tree structure as shown in Figure 3B.
  • a topological graph structure as shown in Figure 3A
  • a tree structure as shown in Figure 3B.
  • the above-mentioned methods of using structured representations such as topological graphs or trees only have different embedding methods, but they can all be counted as graphic structured representations.
  • Step 103 Convert the structured representation of geometric information into a vector of predefined length to obtain the vector of each CAD model.
  • the geometric information of the structured representation is converted into a vector of predefined length, for example, the geometric information of the structured representation is embedded to obtain the corresponding embedding vector.
  • topological graph embedding methods such as random walk and Node2Vec can be used to convert them into embedding vectors.
  • tree structured representation tree embedding methods such as tree kernels and attention selection vector (ACV) trees can be used to convert them into embedding vectors.
  • ACV attention selection vector
  • both the topological graph embedding method and the tree embedding method will output a normalized vector v ⁇ R d , where d is the predefined vector size (dimension), R represents a real number, and R d represents a d-dimensional real number vector. .
  • Step 104 Cluster the vectors of all CAD models in the database to obtain multiple CAD model clusters that do not exceed the set number, so that when searching for CAD models, the search range is positioned to one that does not exceed the set number. Quantity-sized CAD model clustering.
  • vectors of a large number of CAD models can be clustered in a hierarchical manner to obtain CAD model clusters that do not exceed a set number, thereby reducing the search space to a single cluster that does not exceed a predefined size.
  • the vectors of a large number of CAD models can be clustered according to the distance by calculating the distance between the vectors of each CAD model in a high-dimensional (for example, greater than three-dimensional) space.
  • Clustering methods can use K-means, Gaussian mixture model (GMM), density-based clustering method with noise (DBSCAN, Density-Based Spatial Clustering of Applications with Noise), etc.
  • a hierarchical recursive method can be used for clustering, as shown in the following pseudo code :
  • the process expressed by the above pseudocode is: use the vectors of all CAD models in the database as the current CAD models to be clustered; cluster the current CAD models to be clustered according to the principle of not exceeding the maximum number of clusters, and obtain The current number of clusters; for each cluster in the current number of clusters, determine whether the size of the cluster exceeds the set number. If so, use the cluster that exceeds the set number as the current number.
  • the CAD model to be clustered is returned to perform the operation of clustering the current CAD model to be clustered according to the principle of not exceeding the maximum number of clusters; otherwise, a cluster having a size not exceeding the set number is obtained.
  • Figure 4 shows a schematic diagram of re-clustering the clustered CAD models in an example.
  • CAD model 41 embedded in the position closest to the cluster center in space, and the next layer of clusters 42 divided by each cluster is the same and also has a closest location.
  • CAD model of cluster centers43 In this embodiment, in order to facilitate retrieval of clusters that do not exceed the set number, a knowledge graph can be set for all clusters involved in the clustering process according to their inclusion relationships, which is called a hierarchical index here.
  • CAD model clustering sample. And in order to reduce the amount of retrieval, the CAD model clustering at each layer can use the CAD model closest to the cluster center as the representative of the clustering layer.
  • the vector of the CAD model of the center point of the first iterative clustering can be used as the sample of the first layer, recorded as SP, and the vector of the CAD model of the center point of the second iterative clustering can be used as the sample of the first layer.
  • the vector is used as the sample of the second layer, recorded as SSP.
  • the vector of the CAD model of the center point of the third iterative clustering is used as the sample of the third layer, recorded as S 2 SP.
  • the vector of the center point of the fourth iterative clustering is CAD.
  • the vector of the model is used as the fourth layer sample, which is recorded as S 3 SP, and so on, so that the hierarchically indexed CAD model clustering sample shown in Figure 5 can be obtained.
  • the hierarchical index CAD model clustering sample is a tree structure, including CAD model clustering as leaf nodes and CAD model clustering of parent nodes at each level located above the leaf nodes.
  • Each parent node CAD model The cluster includes each of its sub-node CAD model clusters, and the samples of each CAD model cluster are represented by the vector of the CAD model located at the center point within the cluster. Further, as shown in Figure 5, each leaf node CAD model cluster is further associated with the vector CLV of all the CAD models it contains.
  • Step 105 For each cluster, use all CAD models in the cluster as training samples to train to obtain a classification model corresponding to the cluster. In order to perform CAD model search, the corresponding classification model is used to perform CAD model search within the CAD model clusters that do not exceed the set number.
  • all CAD models in the cluster can be used as training samples for classification model training.
  • each CAD model in the CAD model cluster can be used as an input training sample, and the likelihood between the CAD model and each CAD model in the CAD model cluster is as The training samples are output to train an intelligent network to obtain a classification model corresponding to the CAD model clustering.
  • the first method for each CAD model in the cluster, use screenshots of different views of the CAD model as a training data set, use each screenshot as an input sample in turn, and compare the screenshot with each of the sub-clusters.
  • the likelihood between CAD models is used as an output sample to train an intelligent network such as a convolutional neural network, and a classification model corresponding to the clustering of the CAD models is obtained.
  • the second type for each CAD model in the cluster, use videos of the CAD model including different perspectives as input training samples, and calculate the likelihood between the CAD model and each CAD model in the CAD model cluster. Degrees are used as output training samples to train an intelligent network such as a convolutional neural network, and obtain a classification model corresponding to the CAD model clustering.
  • an intelligent network such as a convolutional neural network
  • the third method for each CAD model in the cluster, use the vector of the CAD model as the input training sample, and the likelihood between the CAD model and each CAD model in the CAD model cluster as the output training Samples, train an intelligent network such as a convolutional neural network, and obtain a classification model corresponding to the CAD model clustering
  • convolutional neural networks can use VGG, MobileNet, ResNet, etc.
  • more data augmentation (Data Augmentation) methods can be used to enrich the training data set. For example, you can take screenshots of existing data such as CAD models, add random background images, or rotate screenshots to obtain new training data.
  • classification model corresponding to each CAD model cluster that does not exceed the predefined size can be further associated with the leaf node CAD model cluster of the CAD model cluster sample of the aforementioned hierarchical index as shown in the dotted line part in Figure 5 superior.
  • Figure 6 is an exemplary flow chart of a CAD model search method in an embodiment of the present application. As shown in Figure 6, the method may include the following steps:
  • Step 601 Receive the input current CAD model.
  • Step 602 Extract the geometric information of the current CAD model, perform a structured representation of the geometric information, and convert the structured geometric information into a vector of a predefined length to obtain a vector of the current CAD model.
  • Step 603 Based on the vector of the current CAD model, search for a CAD model cluster sample to obtain a target CAD model cluster that is most similar to the current CAD model and does not exceed a set number.
  • the CAD model clustering samples include: a plurality of CAD model clusters that do not exceed a set number and are obtained by clustering vectors of all CAD models in a database.
  • the CAD model clustering sample may be a hierarchically indexed CAD model tree clustering sample.
  • the hierarchically indexed CAD model tree clustering sample includes the CAD model clusters that do not exceed a set number as leaf nodes and the CAD model clusters of parent nodes at each level located above the leaf nodes.
  • Each Each parent node CAD model cluster includes the CAD model clusters of each of its child nodes, and the samples of each CAD model cluster are represented by the vector of the CAD model located at the center point within the cluster.
  • each leaf node CAD model cluster is further associated with its corresponding classification model and the vectors of all CAD models it contains.
  • the CAD model tree clustering samples of the hierarchical index can be searched layer by layer to obtain a leaf node CAD model cluster that is most similar to the current CAD model.
  • This leaf node CAD model cluster is Clustering of target CAD models.
  • Step 701 Compare the vector of the current CAD model with the uppermost CAD model samples in the hierarchically indexed CAD model tree clustering samples in order to determine the most similar CAD model sample.
  • Step 702 Determine whether the most similar CAD model sample is the last layer CAD model sample. If so, perform step 704; otherwise, perform step 703.
  • Step 703 Search each CAD model sample below the most similar CAD model sample, and determine the most similar CAD model sample, and then return to step 702.
  • Step 704 Determine that the most similar CAD model sample corresponds to a CAD model cluster that does not exceed a set number.
  • Step 604 Use the current CAD model as an input sample to input a classification model corresponding to the target CAD model cluster, and obtain the likelihood of each CAD model in the current CAD model and the target CAD model cluster.
  • the classification model is trained by using all CAD models in the target CAD model cluster as training samples.
  • the first method Obtain screenshots of the current CAD model from different perspectives, use the screenshots from different perspectives as an input sample to input a classification model corresponding to the target CAD model clustering, and obtain the screenshot and the target CAD The likelihood of each CAD model in model clustering.
  • the following pseudocode shows how this is done in an example:
  • Second method Obtain videos of the current CAD model including different perspectives, use the video as an input sample to input a classification model corresponding to the target CAD model clustering, and obtain the current CAD model and the target CAD model. The likelihood of each CAD model in the cluster.
  • the third method use the vector of the current CAD model as an input sample to input the classification model corresponding to the target CAD model cluster, and obtain the likelihood of each CAD model in the current CAD model and the target CAD model cluster. Spend.
  • Step 605 Obtain a target CAD model based on the likelihood of each CAD model in the current CAD model and the leaf node CAD model cluster.
  • the above is a detailed description of the CAD model clustering and classification model generation method and the CAD model search method in the embodiment of the present invention.
  • the CAD model clustering and classification model generation device and the CAD model search device in the embodiment of the present invention are described in detail. Describe in detail.
  • the device embodiments in the embodiments of the present invention can be used to implement the corresponding method embodiments in the embodiments of the present invention. For details that are not disclosed in detail in the device embodiments of the present invention, please refer to the corresponding descriptions in the method embodiments of the present invention.
  • Figure 8 is an exemplary structural diagram of a CAD model clustering and classification model generation device in an embodiment of the present invention. As shown in Figure 8, it includes: a first module 801, a second module 802 and a third module 803.
  • the first module 801 is used to extract the geometric information of each CAD model in the database, perform a structured representation of the geometric information, and convert the structured represented geometric information into a predefined length.
  • Vector get the vector of the CAD model.
  • the second module 802 is used to cluster the vectors of all CAD models in the database to obtain multiple CAD model clusters that do not exceed a set number.
  • the second module 802 can use the vectors of all CAD models in the database as the current CAD models to be clustered; cluster the current CAD models to be clustered according to the principle of not exceeding the maximum number of clusters, and obtain the current number of clusters; for each cluster in the current number of clusters, determine whether the size of the cluster exceeds the set number. If so, use the cluster that exceeds the set number as the current number. Cluster the CAD model, and return to perform the operation of clustering the current CAD model to be clustered according to the principle of not exceeding the maximum number of clusters; otherwise, obtain a cluster whose size does not exceed the set number.
  • the second module 802 further uses the inclusion relationship between the clusters generated in each iteration of the clustering process to construct a hierarchical index CAD model tree clustering sample; the hierarchical index CAD model tree clustering
  • the sample includes CAD model clusters as leaf nodes and CAD model clusters of parent nodes at all levels located above the leaf nodes.
  • Each parent node CAD model cluster includes CAD model clusters of its child nodes as leaf nodes.
  • the CAD model cluster is a CAD model cluster that does not exceed a set number of sizes, and the samples of each CAD model cluster are represented by the vector of the CAD model located at the center point within the cluster.
  • the third module 803 is configured to use all CAD models in the CAD model cluster as training samples for each CAD model cluster to train to obtain a classification model corresponding to the CAD model cluster.
  • the third module 803 can cluster each CAD model and use screenshots of different perspectives of each CAD model in the CAD model cluster as input training samples, and the screenshots are related to the CAD model.
  • the likelihood between each CAD model in the cluster is used as the output training sample, and the classification model corresponding to the CAD model cluster is trained; or, for each CAD model cluster, each CAD model cluster within the CAD model cluster is used.
  • Videos of a CAD model including different perspectives are used as input training samples, the likelihood between the CAD model and each CAD model in the CAD model cluster is used as an output training sample, and the classification corresponding to the CAD model cluster is obtained through training.
  • model or, for each CAD model cluster, use the vector of each CAD model in the CAD model cluster as an input training sample, and the similarity between the CAD model and each CAD model in the CAD model cluster is The probability is used as the output training sample, and a classification model corresponding to the CAD model clustering is obtained by training.
  • Figure 9 is an exemplary structural diagram of a CAD model search device in an embodiment of the present invention. As shown in Figure 3, the device may include: a fourth module 901, a fifth module 902, a sixth module 903, and a seventh module 904.
  • the fourth module 901 is used to receive the input current CAD model, extract the geometric information of the current CAD model, perform a structured representation of the geometric information, and convert the structured representation of the geometric information into a vector of predefined length. , get the vector of the current CAD model.
  • the fifth module 902 is used to search for a CAD model cluster sample based on the vector of the current CAD model, and obtain a target CAD model cluster that is most similar to the current CAD model and does not exceed a set number;
  • the CAD Model clustering samples include: multiple CAD model clusters that do not exceed a set number and are obtained by clustering the vectors of all CAD models in a database.
  • the CAD model clustering sample may be a hierarchically indexed CAD model tree clustering sample; the hierarchically indexed CAD model tree clustering sample includes as leaf nodes the no more than A set number of CAD model clusters and CAD model clusters of parent nodes at all levels located above the leaf node. Each parent node CAD model cluster includes CAD model clusters of its child nodes.
  • Each CAD model The samples of the cluster are represented by the vector of the CAD model located at the center point within the cluster.
  • the sixth module 903 is used to input the current CAD model as an input sample into a classification model corresponding to the target CAD model cluster, and obtain the similarity between the current CAD model and each CAD model in the target CAD model cluster. probability; the classification model is obtained by training all CAD models in the target CAD model cluster as training samples.
  • the sixth module 903 may obtain screenshots of the current CAD model from different perspectives, and use the screenshots from different perspectives as an input sample to input a classification model corresponding to the target CAD model clustering, to obtain the screenshots.
  • the classification model is used to obtain the likelihood of each CAD model in the clustering of the current CAD model and the target CAD model.
  • the seventh module 904 is used to obtain a target CAD model based on the likelihood of each CAD model in the current CAD model and the leaf node CAD model clustering.
  • the CAD model clustering and classification model generation device and the CAD model search device provided by this embodiment of the present application can be implemented in various ways. For example, by using an application programming interface that conforms to specific rules, the CAD model clustering and classification model generation device and the CAD model search device can be compiled into a plug-in installed in the smart terminal, or can be packaged into an application program for users to download. and use.
  • the CAD model clustering and classification model generation method and CAD model search method provided by this implementation of the present application can be stored in various storage media in an instruction storage mode or an instruction set storage mode.
  • These storage media include but are not limited to: floppy disk, optical disk, DVD, hard disk, flash memory, USB flash memory, CF card, SD card, MMC card, SM card, memory stick and xD card.
  • CAD model clustering and classification model generation method and CAD model search method can also be applied to flash memory (Nand-flash)-based storage media, such as USB flash drives, CF cards, SD card, SDHC card, MMC card, SM card, memory stick and xD card.
  • flash memory Nand-flash-based storage media, such as USB flash drives, CF cards, SD card, SDHC card, MMC card, SM card, memory stick and xD card.
  • the operating system operating in the computer can not only implement the program code read by the computer from the storage medium, but also implement part or all of the actual operations by using instructions based on the program code to implement the above embodiments. function of any embodiment.
  • FIG. 10 is an exemplary structural diagram of a computer device in an embodiment of the present application.
  • the device can be used to perform the method shown in Figure 1 or Figure 6, or to implement the device of Figure 8 or Figure 9.
  • the device may include at least one memory 1001 and at least one processor 1002.
  • some other components can be included, such as communication ports, input/output controllers, network communication interfaces, etc. These components communicate via bus 1003 and so on.
  • At least one memory 1001 is used to store computer programs.
  • the computer program can be understood as including various modules of the device shown in FIG. 8 or FIG. 9 .
  • at least one memory 1001 may store an operating system and the like.
  • Operating systems include but are not limited to: Android operating system, Symbian operating system, windows operating system, Linux operating system, etc.
  • At least one processor 1002 is used to call a computer program stored in at least one memory 1001 to execute the CAD model search method described in the example of this application.
  • the processor 1002 can be a CPU, a processing unit/module, an ASIC, a logic module or a programmable gate array, etc., and it can receive and send data through a communication port.
  • the input/output controller has a display and an input device for inputting, outputting and displaying relevant data as a human-computer interaction module.
  • each CAD model in the database is converted into a vector, and then all CAD models in the database are clustered based on the vector, and multiple CAD models that do not exceed the set number are obtained.
  • CAD model clustering allows the search scope to be targeted to a CAD model cluster that does not exceed the set number when searching for CAD models, thereby narrowing the search space and improving search efficiency; through cluster training for each CAD model A classification model is used, and the corresponding classification model is used to search for CAD models within the CAD model clusters that do not exceed the set number, thereby further accelerating the search speed and improving the search efficiency.
  • the present invention can support million/billion level CAD model searches, applicable Large-scale CAD model search engine.

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Provided are a CAD model search method, a CAD model clustering and classification model generation method, an apparatus, and a storage medium. The CAD model clustering and classification model generation method comprises: for each CAD model in a database, extracting geometric information thereof, performing structured representation on the geometric information, and converting the geometric information in a structured representation form into a vector of a predefined length to obtain a vector of the CAD model; clustering the vectors of all the CAD models in the database to obtain a plurality of CAD model clusters which do not exceed a set number size, so that when a CAD model search is carried out, a search range is positioned to a CAD model cluster which does not exceed the set number size; and for each CAD model cluster, performing training by using all the CAD models in the CAD model cluster as training samples so as to obtain a classification model corresponding to the CAD model cluster, so that CAD model searching in the CAD model cluster is performed by means of the corresponding classification model. The technical solution in the embodiments can improve the CAD model search efficiency.

Description

CAD模型搜索、聚类及分类模型生成方法、装置和存储介质CAD model search, clustering and classification model generation method, device and storage medium 技术领域Technical field
本申请涉及计算机领域,特别涉及一种CAD模型聚类及分类模型生成、以及CAD模型搜索方法、装置和计算机可读存储介质。The present application relates to the field of computers, and in particular to a CAD model clustering and classification model generation, as well as a CAD model search method, device and computer-readable storage medium.
发明背景Background of the invention
目前,人们对CAD搜索引擎的需求很大,需要找到相似的CAD模型,以便重用其设计或其背后的制造过程,但目前如何提高CAD搜索引擎的搜索效率是一大挑战。搜索效率与搜索策略的时间消耗有关。例如,搜索引擎的最简单实现类似于以下伪代码:Currently, people have a great demand for CAD search engines, and they need to find similar CAD models in order to reuse their designs or the manufacturing processes behind them. However, how to improve the search efficiency of CAD search engines is currently a big challenge. Search efficiency is related to the time consumption of the search strategy. For example, the simplest implementation of a search engine looks like the following pseudocode:
```Pseudo Code Start#代码开始```Pseudo Code Start#code start
Vars:Input Model=IN,Model=M,Database=DB,Similarity=S,Threshold=T,Candidate List=L,Display Number=NUM#输入模型IN,在数据库DB中搜索模型M,相似度为S,相似度阈值为T,候选列表为L,显示数量为NUMVars:Input Model=IN,Model=M,Database=DB,Similarity=S,Threshold=T,Candidate List=L,Display Number=NUM#Input model IN, search for model M in database DB, similarity is S, The similarity threshold is T, the candidate list is L, and the display number is NUM
Figure PCTCN2022096006-appb-000001
Figure PCTCN2022096006-appb-000001
在上述实现中,搜索时间将随着数据库中CAD模型数量的增加而增加。如果每次迭代耗时1秒,数据库大小为10 4个模型。然后搜索时间为10 4秒,即大约3小时。这对于搜索引擎的用户来说是不可接受的。 In the above implementation, the search time will increase as the number of CAD models in the database increases. If each iteration takes 1 second, the database size is 10 4 models. Then the search time is 10 4 seconds, which is about 3 hours. This is unacceptable to search engine users.
为此,本领域内的技术人员还在致力于寻找其他的CAD模型搜索方案。To this end, those skilled in the art are still working on finding other CAD model search solutions.
发明内容Contents of the invention
有鉴于此,本申请实施例中一方面提供一种CAD模型聚类及分类模型生成方法和CAD模型搜索方法,另一方面提供一种CAD模型聚类及分类模型生成装置、CAD模型搜索装置、计算机装置和计算机可读存储介质,能够提高CAD模型搜索的效率。In view of this, embodiments of the present application provide, on the one hand, a CAD model clustering and classification model generation method and a CAD model search method, and on the other hand, a CAD model clustering and classification model generation device, a CAD model search device, The computer device and the computer-readable storage medium can improve the efficiency of CAD model search.
为解决上述技术问题,本申请的技术方案是这样实现的:In order to solve the above technical problems, the technical solution of this application is implemented as follows:
一种CAD模型聚类及分类模型生成方法,包括:针对数据库中的每个CAD模型,提取所述CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述CAD模型的向量;对所述数据库中的所有CAD模型的向量进行聚类,得到多个不超过设定数量大小的CAD模型聚类,以便进行CAD模型搜索时,将搜索范围定位到一不超过设定数量大小的CAD模型聚类;针对每个CAD模型聚类,利用所述CAD模型聚类内的所有CAD模型作为训练样本训练得到对应所述CAD模型聚类的分类模型,以便进行CAD模型搜索时,利用对应的分类模型进行所述不超过设定数量大小的CAD模型聚类内的CAD模型搜索。A method for generating CAD model clustering and classification models, including: for each CAD model in the database, extracting the geometric information of the CAD model, performing a structured representation of the geometric information, and converting the structured expressed geometric information into Convert to a vector of predefined length to obtain the vector of the CAD model; cluster the vectors of all CAD models in the database to obtain multiple CAD model clusters not exceeding the set number in order to perform CAD model When searching, locate the search scope to a CAD model cluster that does not exceed the set number; for each CAD model cluster, use all CAD models within the CAD model cluster as training samples to train to obtain the corresponding CAD The classification model of model clustering is used so that when searching for CAD models, the corresponding classification model is used to search for CAD models within the CAD model clusters that do not exceed the set number.
一种CAD模型搜索方法,包括:接收输入的当前CAD模型;提取所述当前CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述当前CAD模型的向量;基于所述当前CAD模型的向量,搜索一CAD模型聚类样本,得到与所述当前CAD模型最相似的一不超过设定数量大小的目标CAD模型聚类;所述CAD模型聚类样本包括:对一数据库中的所有CAD模型的向量进行聚类后得到的多个不超过设定数量大小的CAD模型聚类;将所述当前CAD模型作为一输入样本输入一对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度;所述分类模型通过将所述目标CAD模型聚类中的所有CAD模型作为训练样本训练得到;根据所述当前CAD模型与所述叶节点CAD模型聚类中各CAD模型的似然度,得到目标CAD模型。A CAD model search method, including: receiving an input current CAD model; extracting geometric information of the current CAD model, performing a structured representation of the geometric information, and converting the structured represented geometric information into a predefined length vector to obtain the vector of the current CAD model; based on the vector of the current CAD model, search for a CAD model cluster sample to obtain a target CAD model cluster that is most similar to the current CAD model and does not exceed a set number. class; the CAD model clustering sample includes: a plurality of CAD model clusters not exceeding a set number obtained after clustering the vectors of all CAD models in a database; taking the current CAD model as an input The sample input is a classification model corresponding to the target CAD model cluster, and the likelihood of each CAD model in the current CAD model and the target CAD model cluster is obtained; the classification model is configured by clustering the target CAD model. All CAD models in the class are trained as training samples; the target CAD model is obtained according to the likelihood of each CAD model in the current CAD model and the leaf node CAD model cluster.
一种CAD模型聚类及分类模型生成装置,包括:第一模块,用于针对数据库中的每个CAD模型,提取所述CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述CAD模型的向 量;第二模块,用于对所述数据库中的所有CAD模型的向量进行聚类,得到多个不超过设定数量大小的CAD模型聚类,以便进行CAD模型搜索时,将搜索范围定位到一不超过设定数量大小的CAD模型聚类;第三模块,用于针对每个CAD模型聚类,利用所述CAD模型聚类内的所有CAD模型作为训练样本训练得到对应所述CAD模型聚类的分类模型,以便进行CAD模型搜索时,利用对应的分类模型进行所述不超过设定数量大小的CAD模型聚类内的CAD模型搜索。A CAD model clustering and classification model generation device, including: a first module, used for extracting the geometric information of the CAD model for each CAD model in the database, and performing a structured representation of the geometric information, and The geometric information of the structured representation is converted into a vector of predefined length to obtain the vector of the CAD model; the second module is used to cluster the vectors of all CAD models in the database to obtain multiple vectors that do not exceed the set CAD model clusters of a certain number and size, so that when searching for CAD models, the search scope is positioned to a CAD model cluster that does not exceed the set number and size; the third module is used to cluster each CAD model, using the All CAD models in the CAD model cluster are trained as training samples to obtain a classification model corresponding to the CAD model cluster, so that when performing a CAD model search, the corresponding classification model is used to cluster CAD models that do not exceed the set number. CAD model search within classes.
一种CAD模型搜索装置,包括:第四模块,用于接收输入的当前CAD模型,提取所述当前CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述当前CAD模型的向量;第五模块,用于基于所述当前CAD模型的向量,搜索一CAD模型聚类样本,得到与所述当前CAD模型最相似的一不超过设定数量大小的目标CAD模型聚类;所述CAD模型聚类样本包括:对一数据库中的所有CAD模型的向量进行聚类后得到的多个不超过设定数量大小的CAD模型聚类;第六模块,用于将所述当前CAD模型作为一输入样本输入一对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度;所述分类模型通过将所述目标CAD模型聚类中的所有CAD模型作为训练样本训练得到;第七模块,用于根据所述当前CAD模型与所述叶节点CAD模型聚类中各CAD模型的似然度,得到目标CAD模型。A CAD model search device, including: a fourth module for receiving an input current CAD model, extracting geometric information of the current CAD model, and performing structured representation of the geometric information, and converting the structured expressed geometric information into Convert to a vector of predefined length to obtain the vector of the current CAD model; the fifth module is used to search for a CAD model clustering sample based on the vector of the current CAD model to obtain the most similar to the current CAD model A target CAD model clustering that does not exceed a set number; the CAD model clustering sample includes: a plurality of CAD models that do not exceed a set number and are obtained after clustering the vectors of all CAD models in a database Clustering; the sixth module is used to input the current CAD model as an input sample into a classification model corresponding to the target CAD model cluster, and obtain the current CAD model and each CAD in the target CAD model cluster. The likelihood of the model; the classification model is obtained by training all CAD models in the target CAD model cluster as training samples; the seventh module is used to cluster the current CAD model and the leaf node CAD model according to The likelihood of each CAD model in the class is calculated to obtain the target CAD model.
一种计算机装置,包括至少一个存储器和至少一个处理器,其中:所述至少一个存储器用于存储计算机程序;所述至少一个处理器用于调用所述至少一个存储器中存储的计算机程序,执行如上任一实施方式中所述的CAD模型聚类及分类模型生成方法,或任一实施方式中所述的CAD模型搜索方法。A computer device, including at least one memory and at least one processor, wherein: the at least one memory is used to store a computer program; the at least one processor is used to call the computer program stored in the at least one memory to execute any of the above The CAD model clustering and classification model generation method described in one embodiment, or the CAD model search method described in any embodiment.
一种计算机可读存储介质,其上存储有计算机程序;所述计算机程序能够被一处理器执行并实现如上任一实施方式中所述的CAD模型聚类及分类模型生成方法,或任一实施方式中所述的CAD模型搜索方法。A computer-readable storage medium with a computer program stored thereon; the computer program can be executed by a processor and implement the CAD model clustering and classification model generation method described in any of the above embodiments, or any implementation The CAD model search method described in the method.
由上面的技术方案可知,本申请中由于针对数据库中的每个CAD模型将其转换为向量,进而基于向量对数据库中的所有CAD模型进行聚类,并得到多个不超过设定数量大小的CAD模型聚类,可使得进行CAD模型搜索时,将搜索范围定位到一不超过设定数量大小的CAD模型聚类,从而可缩小搜索空间,提高搜索效率;通过 针对每个CAD模型聚类训练一个分类模型,并利用对应的分类模型进行所述不超过设定数量大小的CAD模型聚类内的CAD模型搜索就,从而可进一步加快搜索速度,提高搜索效率。It can be seen from the above technical solution that in this application, each CAD model in the database is converted into a vector, and then all CAD models in the database are clustered based on the vector, and multiple CAD models that do not exceed the set number are obtained. CAD model clustering allows the search scope to be targeted to a CAD model cluster that does not exceed the set number when searching for CAD models, thereby narrowing the search space and improving search efficiency; through cluster training for each CAD model A classification model is used, and the corresponding classification model is used to search for CAD models within the CAD model clusters that do not exceed the set number, thereby further accelerating the search speed and improving the search efficiency.
附图简要说明Brief description of the drawings
为了更好地理解本申请,下面将通过参照附图详细描述本申请的实施例,使本领域的普通技术人员更清楚本申请的上述及其它特征和优点,附图中:In order to better understand the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings, so that the above and other features and advantages of the present application will be clearer to those of ordinary skill in the art. In the accompanying drawings:
图1为本申请实施例中一种CAD模型聚类及分类模型生成方法的示例性流程图。Figure 1 is an exemplary flow chart of a CAD model clustering and classification model generation method in an embodiment of the present application.
图2A和图2B为本发明一个例子中的CAD模型的几何信息的示意图。2A and 2B are schematic diagrams of geometric information of a CAD model in an example of the present invention.
图3A和图3B分别为本发明一个例子中CAD模型的结构化表示的几何信息的示意图。3A and 3B are respectively schematic diagrams of geometric information of a structured representation of a CAD model in an example of the present invention.
图4为本申请一个例子中聚类后的CAD模型进行再聚类的示意图。Figure 4 is a schematic diagram of re-clustering of clustered CAD models in an example of this application.
图5为本申请一个例子中分层索引的CAD模型聚类样本的示意图。Figure 5 is a schematic diagram of a hierarchically indexed CAD model clustering sample in an example of this application.
图6为本申请实施例中一种CAD模型搜索方法的示例性流程图。Figure 6 is an exemplary flow chart of a CAD model search method in an embodiment of the present application.
图7为本申请实施例中一种搜索并定位CAD模型聚类的方法流程图。Figure 7 is a flow chart of a method for searching and locating CAD model clusters in an embodiment of the present application.
图8为本发明实施例中CAD模型聚类及分类模型生成装置的示例性结构图。Figure 8 is an exemplary structural diagram of a CAD model clustering and classification model generation device in an embodiment of the present invention.
图9为本发明实施例中的CAD模型搜索装置的示例性结构图。Figure 9 is an exemplary structural diagram of a CAD model search device in an embodiment of the present invention.
图10为本申请实施例中一种计算机装置的示例性结构图。Figure 10 is an exemplary structural diagram of a computer device in an embodiment of the present application.
其中,附图标记如下:Among them, the reference signs are as follows:
标号label 含义meaning
101~105、601~605、701~704101~105, 601~605, 701~704 步骤step
21twenty one 通孔Through hole
22、2322, 23 圆台Round table
24twenty four 通槽 slot
4141 聚类的中心点center point of cluster
4242 下一层聚类Next level clustering
4343 下一层聚类的中心点The center point of the next layer of clustering
801801 第一单元The first unit
802802 第二单元 Second unit
803803 第三单元 Unit 3
901901 第四单元 Unit 4
902902 第五单元 Unit 5
903903 第六单元 Unit 6
904904 第七单元 Unit 7
10011001 存储器 memory
10021002 处理器 processor
10031003 总线bus
实施本申请的方式How to implement this application
本申请实施例中,为了提高CAD模型搜索的效率,考虑提供一种先聚类再基于对应每个聚类的分类模型进行搜索的查找方案,以缩少搜索空间,加快搜索过程。In the embodiment of the present application, in order to improve the efficiency of CAD model search, it is considered to provide a search solution that first clusters and then searches based on the classification model corresponding to each cluster, so as to reduce the search space and speed up the search process.
为了使本申请的目的、技术方案及优点更加清楚明白,下面结合附图并举实施例,对本申请的技术方案进行详细说明。In order to make the purpose, technical solutions and advantages of the present application more clear, the technical solutions of the present application will be described in detail below with reference to the accompanying drawings and examples.
图1为本申请实施例中一种CAD模型聚类及分类模型生成方法的示例性流程图。如图1所示,该方法可包括如下步骤:Figure 1 is an exemplary flow chart of a CAD model clustering and classification model generation method in an embodiment of the present application. As shown in Figure 1, the method may include the following steps:
步骤101,提取数据库中每个CAD模型的几何信息。Step 101: Extract the geometric information of each CAD model in the database.
本步骤中,几何信息可包括设计特征和边界表示(B-rep)信息。其中,设计特征是定义CAD模型外观的基本形状描述。典型的设计特征可包括凸台、孔、袋、槽和槽口等。虽然不同的CAD模型供应商可能对设计特征有不同的定义,但本申请例中可以通过标准CAD格式对其进行转换,即首先将来自不同提供者的CAD模型的设计特征基于标准的CAD格式进行转换,得到统一定义的设计特征。B-rep信息由CAD模型的拓扑组件组成,可包括面、边和顶点。In this step, the geometric information may include design features and boundary representation (B-rep) information. Among them, design features are basic shape descriptions that define the appearance of the CAD model. Typical design features may include bosses, holes, pockets, grooves, and notches, etc. Although different CAD model suppliers may have different definitions of design features, in this application example they can be converted through standard CAD formats, that is, the design features of CAD models from different providers are first converted based on standard CAD formats. Transform to obtain uniformly defined design features. B-rep information consists of the topological components of the CAD model, which can include faces, edges, and vertices.
图2A和图2B示出了一个例子中的CAD模型的几何信息。其中,图2A为边界表示信息图,图2B为几何特征图。图2A中的标号①至⑨表示CAD模型中的边界表示信息,即各个面。图2B中的标号21表示通孔,标号22表示圆台1,标号23表示圆台2,标号24表示通槽。2A and 2B show geometric information of a CAD model in an example. Among them, Figure 2A is a boundary representation information map, and Figure 2B is a geometric feature map. Labels ① to ⑨ in Fig. 2A represent boundary representation information in the CAD model, that is, each face. Reference numeral 21 in Figure 2B represents a through hole, reference numeral 22 represents a circular cone 1, reference numeral 23 represents a circular cone 2, and reference numeral 24 represents a through groove.
步骤102,将提取的每个CAD模型的几何信息进行结构化表示。Step 102: Structurally represent the extracted geometric information of each CAD model.
本步骤中,将步骤101中提取的几何信息组织成适当的形式,以便之后进行计算。由于提取的CAD几何信息包含语义,因此可以将其组织为类似于图形的形式,即如图3A所示的拓扑图结构或如图3B所示的树结构。上述使用拓扑图或树等结构化表示的方式只是嵌入方法不同,但都可以算作图形类结构化表示方式。In this step, the geometric information extracted in step 101 is organized into an appropriate form for subsequent calculation. Since the extracted CAD geometric information contains semantics, it can be organized into a graph-like form, that is, a topological graph structure as shown in Figure 3A or a tree structure as shown in Figure 3B. The above-mentioned methods of using structured representations such as topological graphs or trees only have different embedding methods, but they can all be counted as graphic structured representations.
步骤103,将结构化表示的几何信息转换为预定义长度的向量,得到每个CAD模型的向量。Step 103: Convert the structured representation of geometric information into a vector of predefined length to obtain the vector of each CAD model.
本步骤中,将结构化表示的几何信息转换为预定义长度的向量,例如对结构化表示的几何信息进行嵌入,得到对应的嵌入向量。对于拓扑图结构化表示,可采用随机游走和Node2Vec等拓扑图嵌入方法将其转换为嵌入向量。对于树结构化表示,可采用树核和注意力选区向量(ACV)树等树嵌入方法将其转换为嵌入向量。本实施例中,无论是拓扑图嵌入方法还是树嵌入方法都会输出一个归一化向量v∈R d,其中d是预定义的向量大小(维度),R表示实数,R d表示d维实数向量。 In this step, the geometric information of the structured representation is converted into a vector of predefined length, for example, the geometric information of the structured representation is embedded to obtain the corresponding embedding vector. For the structured representation of topological graphs, topological graph embedding methods such as random walk and Node2Vec can be used to convert them into embedding vectors. For tree structured representation, tree embedding methods such as tree kernels and attention selection vector (ACV) trees can be used to convert them into embedding vectors. In this embodiment, both the topological graph embedding method and the tree embedding method will output a normalized vector v∈R d , where d is the predefined vector size (dimension), R represents a real number, and R d represents a d-dimensional real number vector. .
步骤104,对所述数据库中的所有CAD模型的向量进行聚类,得到多个不超过设定数量大小的CAD模型聚类,以便进行CAD模型搜索时,将搜索范围定位到一不超过设定数量大小的CAD模型聚类。Step 104: Cluster the vectors of all CAD models in the database to obtain multiple CAD model clusters that do not exceed the set number, so that when searching for CAD models, the search range is positioned to one that does not exceed the set number. Quantity-sized CAD model clustering.
本步骤中,可以分层方式对大量CAD模型的向量进行聚类,得到不超过设定数量大小的CAD模型聚类,从而可将搜索空间缩小为不超过预定义大小的单个聚类。In this step, vectors of a large number of CAD models can be clustered in a hierarchical manner to obtain CAD model clusters that do not exceed a set number, thereby reducing the search space to a single cluster that does not exceed a predefined size.
具体实现时,可通过计算高维(例如大于三维)空间中各CAD模型的向量之间的距离,根据距离远近将大量CAD模型的向量进行聚类。聚类方法可采用K-均值、高斯混合模型(GMM)、具有噪声的基于密度的聚类方法(DBSCAN,Density-Based Spatial Clustering of Applications with Noise)等。In specific implementation, the vectors of a large number of CAD models can be clustered according to the distance by calculating the distance between the vectors of each CAD model in a high-dimensional (for example, greater than three-dimensional) space. Clustering methods can use K-means, Gaussian mixture model (GMM), density-based clustering method with noise (DBSCAN, Density-Based Spatial Clustering of Applications with Noise), etc.
为了将超过预定义大小的聚类划分为更小的聚类,以得到不超过预定义大小的子聚类,本实施例中,聚类可采用分层次的递归方法,如下述伪代码所示:In order to divide clusters that exceed the predefined size into smaller clusters to obtain sub-clusters that do not exceed the predefined size, in this embodiment, a hierarchical recursive method can be used for clustering, as shown in the following pseudo code :
Figure PCTCN2022096006-appb-000002
Figure PCTCN2022096006-appb-000002
Figure PCTCN2022096006-appb-000003
Figure PCTCN2022096006-appb-000003
可见,上述伪代码表达的过程为:将数据库中的所有CAD模型的向量作为当前待聚类CAD模型;对所述当前待聚类CAD模型按照不超过最大聚类数量的原则进行聚类,得到当前数量个聚类;针对当前数量个聚类中的每个聚类,判断所述聚类的大小是否超过设定数量大小,如果是,则将所述超过设定数量大小的聚类作为当前待聚类CAD模型,并返回执行所述对所述当前待聚类CAD模型按照不超过最大聚类数量的原则进行聚类的操作;否则,得到一个不超过设定数量大小的聚类。It can be seen that the process expressed by the above pseudocode is: use the vectors of all CAD models in the database as the current CAD models to be clustered; cluster the current CAD models to be clustered according to the principle of not exceeding the maximum number of clusters, and obtain The current number of clusters; for each cluster in the current number of clusters, determine whether the size of the cluster exceeds the set number. If so, use the cluster that exceeds the set number as the current number. The CAD model to be clustered is returned to perform the operation of clustering the current CAD model to be clustered according to the principle of not exceeding the maximum number of clusters; otherwise, a cluster having a size not exceeding the set number is obtained.
图4示出了一个例子中聚类后的CAD模型进行再聚类的示意图。如图4所示,对于每个聚类,有一个CAD模型41嵌入在空间上最靠近聚类中心的位置,每个聚类划分的下一层聚类42与之相同,也具有一个最靠近聚类中心的CAD模型43。本实施例中,为了便于对各个不超过设定数量大小的聚类进行检索,可将聚类过程中涉及到的所有聚类按照其包含关系设置一知识图谱,此处称为分层索引的CAD模型聚类样本。并且为了减少检索量,各层CAD模型聚类可利用其最靠近聚类中心的CAD模型作为该层聚类的代表即可。如图5所示,针对输入IN,可将第一次迭代聚类的中心点的CAD模型的向量作为第一层的样本,记为SP,第二次迭代聚类的中心点的CAD模型的向量作为第二层的样本,记为SSP,第三次迭代聚类的中心点的CAD模型的向量作为第三层的样本,记为S 2SP,第四次迭代聚类的中心点的CAD模型的向量作为第四层的样本,记为S 3SP,以此类推,从而可得到如图5所示的分层索引的CAD模型聚类样本。可见,该分层索引的CAD模型聚类样本为树形结构,包括作为叶节点的CAD模型聚类和位于所述叶节点上层的各级父节点的CAD模型 聚类,每个父节点CAD模型聚类包括其各子节点CAD模型聚类,每个CAD模型聚类的样本由该聚类内位于中心点的CAD模型的向量代表。进一步地,如图5所示,每个叶节点CAD模型聚类进一步关联其所包含的所有CAD模型的向量CLV。 Figure 4 shows a schematic diagram of re-clustering the clustered CAD models in an example. As shown in Figure 4, for each cluster, there is a CAD model 41 embedded in the position closest to the cluster center in space, and the next layer of clusters 42 divided by each cluster is the same and also has a closest location. CAD model of cluster centers43. In this embodiment, in order to facilitate retrieval of clusters that do not exceed the set number, a knowledge graph can be set for all clusters involved in the clustering process according to their inclusion relationships, which is called a hierarchical index here. CAD model clustering sample. And in order to reduce the amount of retrieval, the CAD model clustering at each layer can use the CAD model closest to the cluster center as the representative of the clustering layer. As shown in Figure 5, for the input IN, the vector of the CAD model of the center point of the first iterative clustering can be used as the sample of the first layer, recorded as SP, and the vector of the CAD model of the center point of the second iterative clustering can be used as the sample of the first layer. The vector is used as the sample of the second layer, recorded as SSP. The vector of the CAD model of the center point of the third iterative clustering is used as the sample of the third layer, recorded as S 2 SP. The vector of the center point of the fourth iterative clustering is CAD. The vector of the model is used as the fourth layer sample, which is recorded as S 3 SP, and so on, so that the hierarchically indexed CAD model clustering sample shown in Figure 5 can be obtained. It can be seen that the hierarchical index CAD model clustering sample is a tree structure, including CAD model clustering as leaf nodes and CAD model clustering of parent nodes at each level located above the leaf nodes. Each parent node CAD model The cluster includes each of its sub-node CAD model clusters, and the samples of each CAD model cluster are represented by the vector of the CAD model located at the center point within the cluster. Further, as shown in Figure 5, each leaf node CAD model cluster is further associated with the vector CLV of all the CAD models it contains.
进行检索时,可依据该分层索引的CAD模型树形聚类样本,从最上层的父节点开始依次向叶节点检索,直到检索到叶节点,在检索父节点时,只需将当前CAD模型与代表该父节点CAD模型聚类的一个CAD模型进行比较即可,大大缩减了比较的数量。When retrieving, you can cluster samples based on the hierarchically indexed CAD model tree, starting from the uppermost parent node and retrieving the leaf nodes in sequence until the leaf node is retrieved. When retrieving the parent node, you only need to change the current CAD model Just compare with a CAD model that represents the CAD model cluster of the parent node, which greatly reduces the number of comparisons.
聚类方法可以是近似指数的。例如,如果将“最大聚类数”设置为3,则每次迭代都完全完成聚类,并假设完成6次迭代。然后,最终输出的聚类大小将除以3 6,即729。如图5所示,假设每个输出集群大小为500个CAD模型,那么传统的搜索方法可能需要总共比较500×7=3500个模型。使用聚类方法,搜索过程基于图5所示的分层索引的CAD模型树形聚类样本从上到下进行检索,例如,检索路径沿图5中的粗体双点划线标记框所示,检索路由如图5中的粗体双点划线所示。则本实施例中,只需比较7+500=507次。 Clustering methods can be approximately exponential. For example, if you set "Maximum number of clusters" to 3, clustering is completely completed every iteration, assuming 6 iterations are completed. Then, the final output cluster size will be divided by 3 6 , which is 729. As shown in Figure 5, assuming each output cluster size is 500 CAD models, the traditional search method may need to compare a total of 500 × 7 = 3500 models. Using the clustering method, the search process is retrieved from top to bottom based on the hierarchically indexed CAD model tree clustering samples shown in Figure 5, for example, the retrieval path is shown along the bold double-dot dash line marked box in Figure 5 , the retrieval route is shown as the bold double-dotted line in Figure 5. In this embodiment, only 7+500=507 times need to be compared.
步骤105,针对每个聚类,利用该聚类中的所有CAD模型作为训练样本训练得到对应该聚类的一个分类模型。以便进行CAD模型搜索时,利用对应的分类模型进行所述不超过设定数量大小的CAD模型聚类内的CAD模型搜索。Step 105: For each cluster, use all CAD models in the cluster as training samples to train to obtain a classification model corresponding to the cluster. In order to perform CAD model search, the corresponding classification model is used to perform CAD model search within the CAD model clusters that do not exceed the set number.
本步骤中,可利用该聚类中的所有CAD模型作为训练样本进行分类模型训练。例如,针对每个CAD模型聚类,可利用所述CAD模型聚类内的每个CAD模型作为输入训练样本,所述CAD模型与该CAD模型聚类内各CAD模型之间的似然度作为输出训练样本训练一智能网络,以得到对应所述CAD模型聚类的分类模型。具体训练时,可有多种实现方式,下面简列其中几种:In this step, all CAD models in the cluster can be used as training samples for classification model training. For example, for each CAD model cluster, each CAD model in the CAD model cluster can be used as an input training sample, and the likelihood between the CAD model and each CAD model in the CAD model cluster is as The training samples are output to train an intelligent network to obtain a classification model corresponding to the CAD model clustering. There are many implementation methods for specific training, some of which are briefly listed below:
第一种:针对该聚类中的每个CAD模型,将所述CAD模型不同视图的截图作为一个训练数据集,依次将每个截图作为输入样本,将该截图与该子聚类中每个CAD模型之间的似然度作为输出样本训练一智能网络如卷积神经网络,并得到对应该CAD模型聚类的分类模型。The first method: for each CAD model in the cluster, use screenshots of different views of the CAD model as a training data set, use each screenshot as an input sample in turn, and compare the screenshot with each of the sub-clusters. The likelihood between CAD models is used as an output sample to train an intelligent network such as a convolutional neural network, and a classification model corresponding to the clustering of the CAD models is obtained.
第二种:针对该聚类中的每个CAD模型,将所述CAD模型的包括不同视角的视频作为输入训练样本,所述CAD模型与该CAD模型聚类内各CAD模型之间的似然度作为输出训练样本,训练一智能网络如卷积神经网络,并得到对应所述CAD 模型聚类的分类模型。The second type: for each CAD model in the cluster, use videos of the CAD model including different perspectives as input training samples, and calculate the likelihood between the CAD model and each CAD model in the CAD model cluster. Degrees are used as output training samples to train an intelligent network such as a convolutional neural network, and obtain a classification model corresponding to the CAD model clustering.
第三种:针对该聚类中的每个CAD模型,将所述CAD模型的向量作为输入训练样本,所述CAD模型与该CAD模型聚类内各CAD模型之间的似然度作为输出训练样本,训练一智能网络如卷积神经网络,并得到对应所述CAD模型聚类的分类模型The third method: for each CAD model in the cluster, use the vector of the CAD model as the input training sample, and the likelihood between the CAD model and each CAD model in the CAD model cluster as the output training Samples, train an intelligent network such as a convolutional neural network, and obtain a classification model corresponding to the CAD model clustering
其中,卷积神经网络可以采用VGG、MobileNet、ResNet等。此外,为了提高分类模型的鲁棒性,可以采用更多的数据增强(Data Augmentation)方法来丰富训练数据集。例如,对现有数据比如CAD模型截图,通过添加随机背景图像,或者旋转截图等手段来获得新的训练数据的方法。Among them, convolutional neural networks can use VGG, MobileNet, ResNet, etc. In addition, in order to improve the robustness of the classification model, more data augmentation (Data Augmentation) methods can be used to enrich the training data set. For example, you can take screenshots of existing data such as CAD models, add random background images, or rotate screenshots to obtain new training data.
进一步地,对应每个不超过预定义大小的CAD模型聚类的分类模型可进一步如图5中的虚线部分所示,关联到前述分层索引的CAD模型聚类样本的叶节点CAD模型聚类上。Further, the classification model corresponding to each CAD model cluster that does not exceed the predefined size can be further associated with the leaf node CAD model cluster of the CAD model cluster sample of the aforementioned hierarchical index as shown in the dotted line part in Figure 5 superior.
图6为本申请实施例中一种CAD模型搜索方法的示例性流程图。如图6所示,该方法可包括如下步骤:Figure 6 is an exemplary flow chart of a CAD model search method in an embodiment of the present application. As shown in Figure 6, the method may include the following steps:
步骤601,接收输入的当前CAD模型。Step 601: Receive the input current CAD model.
步骤602,提取所述当前CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述当前CAD模型的向量。Step 602: Extract the geometric information of the current CAD model, perform a structured representation of the geometric information, and convert the structured geometric information into a vector of a predefined length to obtain a vector of the current CAD model.
本步骤的具体实现过程类似步骤101~步骤103,此处不再赘述。The specific implementation process of this step is similar to steps 101 to 103, and will not be described again here.
步骤603,基于所述当前CAD模型的向量,搜索一CAD模型聚类样本,得到与所述当前CAD模型最相似的一不超过设定数量大小的目标CAD模型聚类。其中,所述CAD模型聚类样本包括:对一数据库中的所有CAD模型的向量进行聚类后得到的多个不超过设定数量大小的CAD模型聚类。Step 603: Based on the vector of the current CAD model, search for a CAD model cluster sample to obtain a target CAD model cluster that is most similar to the current CAD model and does not exceed a set number. Wherein, the CAD model clustering samples include: a plurality of CAD model clusters that do not exceed a set number and are obtained by clustering vectors of all CAD models in a database.
如前所述,在一个实施方式中,CAD模型聚类样本可以为一分层索引的CAD模型树形聚类样本。所述分层索引的CAD模型树形聚类样本包括作为叶节点的所述不超过设定数量大小的CAD模型聚类和位于所述叶节点上层的各级父节点的CAD模型聚类,每个父节点CAD模型聚类包括其各子节点的CAD模型聚类,每个CAD模型聚类的样本由该聚类内位于中心点的CAD模型的向量代表。进一步地,每个叶节点CAD模型聚类进一步关联其对应的分类模型以及其所包含的所有CAD模型的 向量。As mentioned above, in one embodiment, the CAD model clustering sample may be a hierarchically indexed CAD model tree clustering sample. The hierarchically indexed CAD model tree clustering sample includes the CAD model clusters that do not exceed a set number as leaf nodes and the CAD model clusters of parent nodes at each level located above the leaf nodes. Each Each parent node CAD model cluster includes the CAD model clusters of each of its child nodes, and the samples of each CAD model cluster are represented by the vector of the CAD model located at the center point within the cluster. Furthermore, each leaf node CAD model cluster is further associated with its corresponding classification model and the vectors of all CAD models it contains.
相应地,本步骤中可逐层搜索所述分层索引的CAD模型树形聚类样本,得到与所述当前CAD模型最相似的一叶节点CAD模型聚类,该叶节点CAD模型聚类即为目标CAD模型聚类。具体搜索并定位CAD模型聚类的过程可如图7所述,包括如下处理:Correspondingly, in this step, the CAD model tree clustering samples of the hierarchical index can be searched layer by layer to obtain a leaf node CAD model cluster that is most similar to the current CAD model. This leaf node CAD model cluster is Clustering of target CAD models. The specific process of searching and locating CAD model clusters can be described in Figure 7, including the following processing:
步骤701,依次将当前CAD模型的向量与所述分层索引的CAD模型树形聚类样本中最上层的各CAD模型样本进行比较,确定最相似的CAD模型样本。Step 701: Compare the vector of the current CAD model with the uppermost CAD model samples in the hierarchically indexed CAD model tree clustering samples in order to determine the most similar CAD model sample.
步骤702,判断所述最相似的CAD模型样本是否为最后一层CAD模型样本,如果是,则执行步骤704;否则,执行步骤703。Step 702: Determine whether the most similar CAD model sample is the last layer CAD model sample. If so, perform step 704; otherwise, perform step 703.
步骤703,搜索所述最相似的CAD模型样本下层的各CAD模型样本,并确定最相似的CAD模型样本,之后返回执行步骤702。Step 703: Search each CAD model sample below the most similar CAD model sample, and determine the most similar CAD model sample, and then return to step 702.
步骤704,确定所述最相似的CAD模型样本对应一不超过设定数量大小的CAD模型聚类。Step 704: Determine that the most similar CAD model sample corresponds to a CAD model cluster that does not exceed a set number.
步骤604,将所述当前CAD模型作为一输入样本输入一对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度。所述分类模型通过将所述目标CAD模型聚类中的所有CAD模型作为训练样本训练得到。Step 604: Use the current CAD model as an input sample to input a classification model corresponding to the target CAD model cluster, and obtain the likelihood of each CAD model in the current CAD model and the target CAD model cluster. The classification model is trained by using all CAD models in the target CAD model cluster as training samples.
本步骤中,具体实现时,针对前述的分类模型不同的训练方法,本步骤中也可以有多种实现方式,下面对其分别进行描述。In this step, during specific implementation, for different training methods of the aforementioned classification model, there can also be multiple implementation methods in this step, which are described separately below.
第一种:获取所述当前CAD模型的不同视角的截图,将所述不同视角的截图分别作为一输入样本输入对应所述目标CAD模型聚类的分类模型,得到所述截图与所述目标CAD模型聚类中各CAD模型的似然度。针对第一种,还可以进一步对当前CAD模型不同视角截图对应的似然度进行后处理,例如似然度的数学平均值或似然度求标准差等,以获得最终的似然度。下述伪代码示出了一个例子中的处理方法:The first method: Obtain screenshots of the current CAD model from different perspectives, use the screenshots from different perspectives as an input sample to input a classification model corresponding to the target CAD model clustering, and obtain the screenshot and the target CAD The likelihood of each CAD model in model clustering. For the first type, you can further post-process the likelihoods corresponding to screenshots from different perspectives of the current CAD model, such as the mathematical average of the likelihoods or the standard deviation of the likelihoods, etc., to obtain the final likelihood. The following pseudocode shows how this is done in an example:
Figure PCTCN2022096006-appb-000004
Figure PCTCN2022096006-appb-000004
Figure PCTCN2022096006-appb-000005
Figure PCTCN2022096006-appb-000005
第二种:获取所述当前CAD模型的包括不同视角的视频,将所述视频作为一输入样本输入对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度。Second method: Obtain videos of the current CAD model including different perspectives, use the video as an input sample to input a classification model corresponding to the target CAD model clustering, and obtain the current CAD model and the target CAD model. The likelihood of each CAD model in the cluster.
第三种:将所述当前CAD模型的向量作为一输入样本输入对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度。The third method: use the vector of the current CAD model as an input sample to input the classification model corresponding to the target CAD model cluster, and obtain the likelihood of each CAD model in the current CAD model and the target CAD model cluster. Spend.
步骤605,根据所述当前CAD模型与所述叶节点CAD模型聚类中各CAD模型的似然度,得到目标CAD模型。Step 605: Obtain a target CAD model based on the likelihood of each CAD model in the current CAD model and the leaf node CAD model cluster.
以上对本发明实施例中的CAD模型聚类及分类模型生成方法、以及CAD模型搜索方法进行了详细描述,下面再对本发明实施例中的CAD模型聚类及分类模型生成装置、以及CAD模型搜索装置进行详细描述。本发明实施例中的装置实施例可用于实施本发明实施例中对应的方法实施例,对于本发明装置实施例中未详细披露的细节可参见本发明方法实施例中的相应描述。The above is a detailed description of the CAD model clustering and classification model generation method and the CAD model search method in the embodiment of the present invention. Next, the CAD model clustering and classification model generation device and the CAD model search device in the embodiment of the present invention are described in detail. Describe in detail. The device embodiments in the embodiments of the present invention can be used to implement the corresponding method embodiments in the embodiments of the present invention. For details that are not disclosed in detail in the device embodiments of the present invention, please refer to the corresponding descriptions in the method embodiments of the present invention.
图8为本发明实施例中CAD模型聚类及分类模型生成装置的示例性结构图。如图8所示,包括:第一模块801、第二模块802和第三模块803。Figure 8 is an exemplary structural diagram of a CAD model clustering and classification model generation device in an embodiment of the present invention. As shown in Figure 8, it includes: a first module 801, a second module 802 and a third module 803.
其中,第一模块801用于针对数据库中的每个CAD模型,提取所述CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述CAD模型的向量。Among them, the first module 801 is used to extract the geometric information of each CAD model in the database, perform a structured representation of the geometric information, and convert the structured represented geometric information into a predefined length. Vector, get the vector of the CAD model.
第二模块802用于对所述数据库中的所有CAD模型的向量进行聚类,得到多个不超过设定数量大小的CAD模型聚类。The second module 802 is used to cluster the vectors of all CAD models in the database to obtain multiple CAD model clusters that do not exceed a set number.
具体实现时,第二模块802可将数据库中的所有CAD模型的向量作为当前待聚类CAD模型;对所述当前待聚类CAD模型按照不超过最大聚类数量的原则进行聚类,得到当前数量个聚类;针对当前数量个聚类中的每个聚类,判断所述聚类的大小是否超过设定数量大小,如果是,则将所述超过设定数量大小的聚类作为当前待聚类CAD模型,并返回执行所述对所述当前待聚类CAD模型按照不超过最大聚类数量的原则进行聚类的操作;否则,得到一个不超过设定数量大小的聚类。此外,第二模块802进一步利用聚类过程中每次迭代产生的聚类之间的包含关系构建一分层索引的CAD模型树形聚类样本;所述分层索引的CAD模型树形聚类样本包括作为叶节点的CAD模型聚类和位于所述叶节点上层的各级父节点的CAD模型聚类, 每个父节点CAD模型聚类包括其各子节点的CAD模型聚类,作为叶节点的CAD模型聚类为一个不超过设定数量大小的CAD模型聚类,每个CAD模型聚类的样本由该聚类内位于中心点的CAD模型的向量代表。During specific implementation, the second module 802 can use the vectors of all CAD models in the database as the current CAD models to be clustered; cluster the current CAD models to be clustered according to the principle of not exceeding the maximum number of clusters, and obtain the current number of clusters; for each cluster in the current number of clusters, determine whether the size of the cluster exceeds the set number. If so, use the cluster that exceeds the set number as the current number. Cluster the CAD model, and return to perform the operation of clustering the current CAD model to be clustered according to the principle of not exceeding the maximum number of clusters; otherwise, obtain a cluster whose size does not exceed the set number. In addition, the second module 802 further uses the inclusion relationship between the clusters generated in each iteration of the clustering process to construct a hierarchical index CAD model tree clustering sample; the hierarchical index CAD model tree clustering The sample includes CAD model clusters as leaf nodes and CAD model clusters of parent nodes at all levels located above the leaf nodes. Each parent node CAD model cluster includes CAD model clusters of its child nodes as leaf nodes. The CAD model cluster is a CAD model cluster that does not exceed a set number of sizes, and the samples of each CAD model cluster are represented by the vector of the CAD model located at the center point within the cluster.
第三模块803用于针对每个CAD模型聚类,利用所述CAD模型聚类内的所有CAD模型作为训练样本训练得到对应所述CAD模型聚类的分类模型。具体实现时,所述第三模块803可针对每个CAD模型聚类,利用所述CAD模型聚类内的每个CAD模型的不同视角的截图分别作为输入训练样本,所述截图与该CAD模型聚类内各CAD模型之间的似然度作为输出训练样本,训练得到对应所述CAD模型聚类的分类模型;或者,针对每个CAD模型聚类,利用所述CAD模型聚类内的每个CAD模型的包括不同视角的视频作为输入训练样本,所述CAD模型与该CAD模型聚类内各CAD模型之间的似然度作为输出训练样本,训练得到对应所述CAD模型聚类的分类模型;或者,针对每个CAD模型聚类,利用所述CAD模型聚类内的每个CAD模型的向量作为输入训练样本,所述CAD模型与该CAD模型聚类内各CAD模型之间的似然度作为输出训练样本,训练得到对应所述CAD模型聚类的分类模型。The third module 803 is configured to use all CAD models in the CAD model cluster as training samples for each CAD model cluster to train to obtain a classification model corresponding to the CAD model cluster. During specific implementation, the third module 803 can cluster each CAD model and use screenshots of different perspectives of each CAD model in the CAD model cluster as input training samples, and the screenshots are related to the CAD model. The likelihood between each CAD model in the cluster is used as the output training sample, and the classification model corresponding to the CAD model cluster is trained; or, for each CAD model cluster, each CAD model cluster within the CAD model cluster is used. Videos of a CAD model including different perspectives are used as input training samples, the likelihood between the CAD model and each CAD model in the CAD model cluster is used as an output training sample, and the classification corresponding to the CAD model cluster is obtained through training. model; or, for each CAD model cluster, use the vector of each CAD model in the CAD model cluster as an input training sample, and the similarity between the CAD model and each CAD model in the CAD model cluster is The probability is used as the output training sample, and a classification model corresponding to the CAD model clustering is obtained by training.
图9为本发明实施例中的CAD模型搜索装置的示例性结构图。如图3所示,该装置可包括:第四模块901、第五模块902和第六模块903和第七模块904。Figure 9 is an exemplary structural diagram of a CAD model search device in an embodiment of the present invention. As shown in Figure 3, the device may include: a fourth module 901, a fifth module 902, a sixth module 903, and a seventh module 904.
其中,第四模块901用于接收输入的当前CAD模型,提取所述当前CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述当前CAD模型的向量。Among them, the fourth module 901 is used to receive the input current CAD model, extract the geometric information of the current CAD model, perform a structured representation of the geometric information, and convert the structured representation of the geometric information into a vector of predefined length. , get the vector of the current CAD model.
第五模块902用于基于所述当前CAD模型的向量,搜索一CAD模型聚类样本,得到与所述当前CAD模型最相似的一不超过设定数量大小的目标CAD模型聚类;所述CAD模型聚类样本包括:对一数据库中的所有CAD模型的向量进行聚类后得到的多个不超过设定数量大小的CAD模型聚类。在一个实施方式中,所述CAD模型聚类样本可以为一分层索引的CAD模型树形聚类样本;所述分层索引的CAD模型树形聚类样本包括作为叶节点的所述不超过设定数量大小的CAD模型聚类和位于所述叶节点上层的各级父节点的CAD模型聚类,每个父节点CAD模型聚类包括其各子节点的CAD模型聚类,每个CAD模型聚类的样本由该聚类内位于中心点的CAD模型的向量代表。The fifth module 902 is used to search for a CAD model cluster sample based on the vector of the current CAD model, and obtain a target CAD model cluster that is most similar to the current CAD model and does not exceed a set number; the CAD Model clustering samples include: multiple CAD model clusters that do not exceed a set number and are obtained by clustering the vectors of all CAD models in a database. In one embodiment, the CAD model clustering sample may be a hierarchically indexed CAD model tree clustering sample; the hierarchically indexed CAD model tree clustering sample includes as leaf nodes the no more than A set number of CAD model clusters and CAD model clusters of parent nodes at all levels located above the leaf node. Each parent node CAD model cluster includes CAD model clusters of its child nodes. Each CAD model The samples of the cluster are represented by the vector of the CAD model located at the center point within the cluster.
第六模块903用于将所述当前CAD模型作为一输入样本输入一对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度;所述分类模型通过将所述目标CAD模型聚类中的所有CAD模型作为训练样本训练得到。具体实现时,第六模块903可获取所述当前CAD模型的不同视角的截图,将所述不同视角的截图分别作为一输入样本输入对应所述目标CAD模型聚类的分类模型,得到所述截图与所述目标CAD模型聚类中各CAD模型的似然度;或者也获取所述当前CAD模型的包括不同视角的视频,将所述视频作为一输入样本输入对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度;或者还可将所述当前CAD模型的向量作为一输入样本输入对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度。The sixth module 903 is used to input the current CAD model as an input sample into a classification model corresponding to the target CAD model cluster, and obtain the similarity between the current CAD model and each CAD model in the target CAD model cluster. probability; the classification model is obtained by training all CAD models in the target CAD model cluster as training samples. During specific implementation, the sixth module 903 may obtain screenshots of the current CAD model from different perspectives, and use the screenshots from different perspectives as an input sample to input a classification model corresponding to the target CAD model clustering, to obtain the screenshots. and the likelihood of each CAD model in the target CAD model cluster; or also obtain the video of the current CAD model including different perspectives, and use the video as an input sample to input the corresponding target CAD model cluster Classify models to obtain the likelihood of each CAD model in the current CAD model and the target CAD model cluster; or you can also use the vector of the current CAD model as an input sample to input the corresponding target CAD model cluster. The classification model is used to obtain the likelihood of each CAD model in the clustering of the current CAD model and the target CAD model.
第七模块904用于根据所述当前CAD模型与所述叶节点CAD模型聚类中各CAD模型的似然度,得到目标CAD模型。The seventh module 904 is used to obtain a target CAD model based on the likelihood of each CAD model in the current CAD model and the leaf node CAD model clustering.
事实上,本申请的这种实施方式提供的CAD模型聚类及分类模型生成装置、以及CAD模型搜索装置可以以各种方式具体实施。例如,可以通过使用符合特定规则的应用编程接口,将CAD模型聚类及分类模型生成装置、以及CAD模型搜索装置编译为安装在智能终端中的插件,或者可以封装到应用程序中以供用户下载和使用。In fact, the CAD model clustering and classification model generation device and the CAD model search device provided by this embodiment of the present application can be implemented in various ways. For example, by using an application programming interface that conforms to specific rules, the CAD model clustering and classification model generation device and the CAD model search device can be compiled into a plug-in installed in the smart terminal, or can be packaged into an application program for users to download. and use.
本申请的这种实现方式提供的CAD模型聚类及分类模型生成方法、及CAD模型搜索方法可以以指令存储方式或指令集存储方式存储在各种存储介质中。这些存储介质包括但不限于:软盘、光盘、DVD、硬盘、闪存、USB闪存、CF卡、SD卡、MMC卡、SM卡、记忆棒和xD卡。The CAD model clustering and classification model generation method and CAD model search method provided by this implementation of the present application can be stored in various storage media in an instruction storage mode or an instruction set storage mode. These storage media include but are not limited to: floppy disk, optical disk, DVD, hard disk, flash memory, USB flash memory, CF card, SD card, MMC card, SM card, memory stick and xD card.
此外,本申请的这种实施方式提供的CAD模型聚类及分类模型生成方法、及CAD模型搜索方法也可以应用于基于闪存(Nand-flash)的存储介质,例如USB闪存驱动器、CF卡、SD卡、SDHC卡、MMC卡、SM卡、记忆棒和xD卡。In addition, the CAD model clustering and classification model generation method and CAD model search method provided by this embodiment of the present application can also be applied to flash memory (Nand-flash)-based storage media, such as USB flash drives, CF cards, SD card, SDHC card, MMC card, SM card, memory stick and xD card.
应该清楚的是,在计算机中操作的操作系统,不仅可以通过执行计算机从存储介质读取的程序代码,而且可以通过使用基于程序代码的指令来实现部分或全部实际操作,以实现上述实施例中任何实施例的功能。It should be clear that the operating system operating in the computer can not only implement the program code read by the computer from the storage medium, but also implement part or all of the actual operations by using instructions based on the program code to implement the above embodiments. function of any embodiment.
例如,图10为本申请实施例中一种计算机装置的示例性结构图。该设备可用于执行图1或图6所示的方法,或用于实现图8或图9的装置。如图10所示,装置可 以包括至少一个存储器1001和至少一个处理器1002。此外,还可以包括一些其他组件,例如通信端口、输入/输出控制器、网络通信接口等。这些组件通过总线1003等进行通信。For example, FIG. 10 is an exemplary structural diagram of a computer device in an embodiment of the present application. The device can be used to perform the method shown in Figure 1 or Figure 6, or to implement the device of Figure 8 or Figure 9. As shown in Figure 10, the device may include at least one memory 1001 and at least one processor 1002. In addition, some other components can be included, such as communication ports, input/output controllers, network communication interfaces, etc. These components communicate via bus 1003 and so on.
至少一个存储器1001用于存储计算机程序。在一个例子中,计算机程序可以理解为包括图8或图9所示的装置的各种模块。另外,至少一个存储器1001可以存储操作系统等。操作系统包括但不限于:Android操作系统、Symbian操作系统、windows操作系统、Linux操作系统等。At least one memory 1001 is used to store computer programs. In one example, the computer program can be understood as including various modules of the device shown in FIG. 8 or FIG. 9 . In addition, at least one memory 1001 may store an operating system and the like. Operating systems include but are not limited to: Android operating system, Symbian operating system, windows operating system, Linux operating system, etc.
至少一个处理器1002用于调用存储在至少一个存储器1001中的计算机程序,以执行本申请实例中描述的CAD模型搜索方法。处理器1002可以是CPU、处理单元/模块、ASIC、逻辑模块或可编程门阵列等,它可以通过通信端口接收和发送数据。At least one processor 1002 is used to call a computer program stored in at least one memory 1001 to execute the CAD model search method described in the example of this application. The processor 1002 can be a CPU, a processing unit/module, an ASIC, a logic module or a programmable gate array, etc., and it can receive and send data through a communication port.
输入/输出控制器具有显示器和输入装置,用于作为人机交互模块输入、输出和显示相关数据。The input/output controller has a display and an input device for inputting, outputting and displaying relevant data as a human-computer interaction module.
应当理解,本文中使用的“和/或”旨在包括一个或多个相关联的所列项目的任何和所有可能的组合。It will be understood that as used herein, "and/or" is intended to include any and all possible combinations of one or more of the associated listed items.
由上面的技术方案可知,本申请中由于针对数据库中的每个CAD模型将其转换为向量,进而基于向量对数据库中的所有CAD模型进行聚类,并得到多个不超过设定数量大小的CAD模型聚类,可使得进行CAD模型搜索时,将搜索范围定位到一不超过设定数量大小的CAD模型聚类,从而可缩小搜索空间,提高搜索效率;通过针对每个CAD模型聚类训练一个分类模型,并利用对应的分类模型进行所述不超过设定数量大小的CAD模型聚类内的CAD模型搜索就,从而可进一步加快搜索速度,提高搜索效率。It can be seen from the above technical solution that in this application, each CAD model in the database is converted into a vector, and then all CAD models in the database are clustered based on the vector, and multiple CAD models that do not exceed the set number are obtained. CAD model clustering allows the search scope to be targeted to a CAD model cluster that does not exceed the set number when searching for CAD models, thereby narrowing the search space and improving search efficiency; through cluster training for each CAD model A classification model is used, and the corresponding classification model is used to search for CAD models within the CAD model clusters that do not exceed the set number, thereby further accelerating the search speed and improving the search efficiency.
此外,利用分层索引的CAD树形模型聚类样本,可以快速定位到最相似的CAD模型聚类,进一步提高了CAD模型的搜索效率。并且,由于分层聚类可以几乎以指数方式减小每个聚类的大小,而用于索引的分层的增加只是线性的,因此本发明可以支持百万/十亿级CAD模型搜索,适用于大规模CAD模型搜索引擎。In addition, by using hierarchical indexed CAD tree model clustering samples, the most similar CAD model clusters can be quickly located, further improving the search efficiency of CAD models. And, since hierarchical clustering can reduce the size of each cluster almost exponentially, while the increase in hierarchies used for indexing is only linear, the present invention can support million/billion level CAD model searches, applicable Large-scale CAD model search engine.
最后,本发明技术方案可以在本地服务器上离线实施,因此具有较好的安全性和隐私性。Finally, the technical solution of the present invention can be implemented offline on the local server, so it has better security and privacy.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的 范围之内。The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the present application. within the scope of protection.

Claims (11)

  1. 一种CAD模型聚类及分类模型生成方法,其特征在于,包括:A method for generating CAD model clustering and classification models, which is characterized by including:
    针对数据库中的每个CAD模型,提取所述CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述CAD模型的向量;For each CAD model in the database, the geometric information of the CAD model is extracted, the geometric information is structured, and the geometric information of the structured representation is converted into a vector of predefined length to obtain the CAD model's geometric information. vector;
    对所述数据库中的所有CAD模型的向量进行聚类,得到多个不超过设定数量大小的CAD模型聚类,以便进行CAD模型搜索时,将搜索范围定位到一不超过设定数量大小的CAD模型聚类;The vectors of all CAD models in the database are clustered to obtain multiple CAD model clusters that do not exceed a set number, so that when searching for CAD models, the search range is positioned to a CAD model that does not exceed a set number. CAD model clustering;
    针对每个CAD模型聚类,利用所述CAD模型聚类内的所有CAD模型作为训练样本训练得到对应所述CAD模型聚类的分类模型,以便进行CAD模型搜索时,利用对应的分类模型进行所述不超过设定数量大小的CAD模型聚类内的CAD模型搜索。For each CAD model cluster, all CAD models in the CAD model cluster are used as training samples to train to obtain a classification model corresponding to the CAD model cluster, so that when performing a CAD model search, the corresponding classification model is used to perform all operations. Describes the search for CAD models within CAD model clusters that do not exceed a set number of sizes.
  2. 根据权利要求1所述的CAD模型聚类及分类模型生成方法,其特征在于,所述对数据库中的所有CAD模型的向量进行聚类,得到多个不超过设定数量大小的CAD模型聚类包括:The CAD model clustering and classification model generation method according to claim 1, wherein the vectors of all CAD models in the database are clustered to obtain a plurality of CAD model clusters not exceeding a set number. include:
    将数据库中的所有CAD模型的向量作为当前待聚类CAD模型;Use the vectors of all CAD models in the database as the current CAD models to be clustered;
    对所述当前待聚类CAD模型按照不超过最大聚类数量的原则进行聚类,得到当前数量个聚类;Cluster the CAD models currently to be clustered according to the principle of not exceeding the maximum number of clusters, and obtain the current number of clusters;
    针对当前数量个聚类中的每个聚类,判断所述聚类的大小是否超过设定数量大小,如果是,则将所述超过设定数量大小的聚类作为当前待聚类CAD模型,并返回执行所述对所述当前待聚类CAD模型按照不超过最大聚类数量的原则进行聚类的操作;否则,得到一个不超过设定数量大小的聚类。For each cluster in the current number of clusters, determine whether the size of the cluster exceeds the set number. If so, use the cluster exceeding the set number as the current CAD model to be clustered, And return to perform the operation of clustering the current CAD model to be clustered according to the principle of not exceeding the maximum number of clusters; otherwise, obtain a cluster whose size does not exceed the set number.
  3. 根据权利要求2所述的CAD模型聚类及分类模型生成方法,其特征在于,进一步包括:利用聚类过程中每次迭代产生的聚类之间的包含关系构建一分层索引的CAD模型树形聚类样本;所述分层索引的CAD模型树形聚类样本包括作为叶节点的CAD模型聚类和位于所述叶节点上层的各级父节点的CAD模型聚类,每个父节点CAD模型聚类包括其各子节点的CAD模型聚类,作为叶节点的CAD模型聚类为一个不超过设定数量大小的CAD模型聚类,每个CAD模型聚类的样本由该聚 类内位于中心点的CAD模型的向量代表。The CAD model clustering and classification model generation method according to claim 2, further comprising: constructing a hierarchical index CAD model tree using inclusion relationships between clusters generated in each iteration of the clustering process. shape clustering sample; the hierarchically indexed CAD model tree clustering sample includes CAD model clustering as a leaf node and CAD model clustering of parent nodes at all levels located above the leaf node, each parent node CAD Model clustering includes the CAD model clustering of each of its sub-nodes. The CAD model clustering as a leaf node is a CAD model clustering that does not exceed the set number. The samples of each CAD model clustering are located within the cluster. Vector representation of the center point of the CAD model.
  4. 根据权利要求1至3中任一项所述的CAD模型聚类及分类模型生成方法,其特征在于,所述针对每个CAD模型聚类,利用所述CAD模型聚类内的所有CAD模型作为训练样本训练得到对应所述CAD模型聚类的分类模型,包括:The CAD model clustering and classification model generation method according to any one of claims 1 to 3, characterized in that, for each CAD model cluster, all CAD models within the CAD model cluster are used as The training samples are trained to obtain a classification model corresponding to the CAD model clustering, including:
    针对每个CAD模型聚类,利用所述CAD模型聚类内的每个CAD模型的不同视角的截图分别作为输入训练样本,所述截图与该CAD模型聚类内各CAD模型之间的似然度作为输出训练样本,训练得到对应所述CAD模型聚类的分类模型;或者包括:For each CAD model cluster, screenshots of different perspectives of each CAD model in the CAD model cluster are used as input training samples, and the likelihood between the screenshots and each CAD model in the CAD model cluster is degree is used as an output training sample to train to obtain a classification model corresponding to the CAD model clustering; or include:
    针对每个CAD模型聚类,利用所述CAD模型聚类内的每个CAD模型的包括不同视角的视频作为输入训练样本,所述CAD模型与该CAD模型聚类内各CAD模型之间的似然度作为输出训练样本,训练得到对应所述CAD模型聚类的分类模型;或者包括:For each CAD model cluster, videos including different perspectives of each CAD model in the CAD model cluster are used as input training samples, and the similarity between the CAD model and each CAD model in the CAD model cluster is The probability is used as the output training sample to train to obtain a classification model corresponding to the CAD model clustering; or include:
    针对每个CAD模型聚类,利用所述CAD模型聚类内的每个CAD模型的向量作为输入训练样本,所述CAD模型与该CAD模型聚类内各CAD模型之间的似然度作为输出训练样本,训练得到对应所述CAD模型聚类的分类模型。For each CAD model cluster, the vector of each CAD model in the CAD model cluster is used as the input training sample, and the likelihood between the CAD model and each CAD model in the CAD model cluster is used as the output Training samples are used to train and obtain a classification model corresponding to the CAD model clustering.
  5. 一种CAD模型搜索方法,其特征在于,包括:A CAD model search method is characterized by including:
    接收输入的当前CAD模型;Receive the current CAD model of the input;
    提取所述当前CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述当前CAD模型的向量;Extract the geometric information of the current CAD model, perform a structured representation of the geometric information, convert the structured geometric information into a vector of a predefined length, and obtain the vector of the current CAD model;
    基于所述当前CAD模型的向量,搜索一CAD模型聚类样本,得到与所述当前CAD模型最相似的一不超过设定数量大小的目标CAD模型聚类;所述CAD模型聚类样本包括:对一数据库中的所有CAD模型的向量进行聚类后得到的多个不超过设定数量大小的CAD模型聚类;Based on the vector of the current CAD model, search for a CAD model cluster sample to obtain a target CAD model cluster that is most similar to the current CAD model and does not exceed a set number; the CAD model cluster sample includes: After clustering the vectors of all CAD models in a database, multiple CAD model clusters that do not exceed the set number are obtained;
    将所述当前CAD模型作为一输入样本输入一对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度;所述分类模型通过将所述目标CAD模型聚类中的所有CAD模型作为训练样本训练得到;Use the current CAD model as an input sample to input a classification model corresponding to the target CAD model cluster, and obtain the likelihood of each CAD model in the current CAD model and the target CAD model cluster; the classification The model is trained by using all CAD models in the target CAD model cluster as training samples;
    根据所述当前CAD模型与所述叶节点CAD模型聚类中各CAD模型的似然度,得到目标CAD模型。According to the likelihood of each CAD model in the current CAD model and the leaf node CAD model cluster, a target CAD model is obtained.
  6. 根据权利要求5所述的CAD模型搜索方法,其特征在于,所述CAD模型聚类样本为一分层索引的CAD模型树形聚类样本;所述分层索引的CAD模型树形聚类样本包括作为叶节点的所述不超过设定数量大小的CAD模型聚类和位于所述叶节点上层的各级父节点的CAD模型聚类,每个父节点CAD模型聚类包括其各子节点的CAD模型聚类,每个CAD模型聚类的样本由该聚类内位于中心点的CAD模型的向量代表。The CAD model search method according to claim 5, wherein the CAD model clustering sample is a hierarchically indexed CAD model tree clustering sample; the hierarchical indexed CAD model tree clustering sample Including the CAD model clusters that do not exceed the set number as leaf nodes and the CAD model clusters of parent nodes at each level located above the leaf nodes. Each parent node CAD model cluster includes the CAD model clusters of its child nodes. CAD model clustering, the samples of each CAD model cluster are represented by the vector of the CAD model located at the center point within the cluster.
  7. 根据权利要求5或6所述的CAD模型搜索方法,其特征在于,所述将当前CAD模型作为一输入样本输入一对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度,包括:The CAD model search method according to claim 5 or 6, wherein the current CAD model is used as an input sample to input a classification model corresponding to the target CAD model cluster, and the current CAD model and the target CAD model are obtained. The likelihood of each CAD model in the target CAD model clustering includes:
    获取所述当前CAD模型的不同视角的截图,将所述不同视角的截图分别作为一输入样本输入对应所述目标CAD模型聚类的分类模型,得到所述截图与所述目标CAD模型聚类中各CAD模型的似然度;或者包括:Obtain screenshots of the current CAD model from different perspectives, use the screenshots from different perspectives as an input sample to input the classification model corresponding to the target CAD model clustering, and obtain the difference between the screenshot and the target CAD model clustering. The likelihood of each CAD model; or include:
    获取所述当前CAD模型的包括不同视角的视频,将所述视频作为一输入样本输入对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度;或者包括:Obtain videos of the current CAD model including different perspectives, use the video as an input sample to input a classification model corresponding to the target CAD model cluster, and obtain each of the current CAD model and the target CAD model cluster. Likelihood of the CAD model; alternatively including:
    将所述当前CAD模型的向量作为一输入样本输入对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度。The vector of the current CAD model is used as an input sample to input the classification model corresponding to the target CAD model cluster, and the likelihood of each CAD model in the current CAD model and the target CAD model cluster is obtained.
  8. 一种CAD模型聚类及分类模型生成装置,其特征在于,包括:A CAD model clustering and classification model generation device, which is characterized by including:
    第一模块,用于针对数据库中的每个CAD模型,提取所述CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述CAD模型的向量;The first module is used to extract the geometric information of the CAD model for each CAD model in the database, perform a structured representation of the geometric information, and convert the structured representation of the geometric information into a vector of predefined length, Obtain the vector of the CAD model;
    第二模块,用于对所述数据库中的所有CAD模型的向量进行聚类,得到多个不超过设定数量大小的CAD模型聚类,以便进行CAD模型搜索时,将搜索范围定位到一不超过设定数量大小的CAD模型聚类;The second module is used to cluster the vectors of all CAD models in the database to obtain multiple CAD model clusters that do not exceed a set number, so that when searching for CAD models, the search range can be positioned to a specific location. Clustering of CAD models exceeding the set number size;
    第三模块,用于针对每个CAD模型聚类,利用所述CAD模型聚类内的所有CAD模型作为训练样本训练得到对应所述CAD模型聚类的分类模型,以便进行CAD模型搜索时,利用对应的分类模型进行所述不超过设定数量大小的CAD模型聚类内的CAD模型搜索。The third module is used for each CAD model cluster, using all CAD models in the CAD model cluster as training samples to train to obtain a classification model corresponding to the CAD model cluster, so that when searching for CAD models, use The corresponding classification model performs a search for CAD models within the CAD model clusters that do not exceed the set number.
  9. 一种CAD模型搜索装置,其特征在于,包括:A CAD model search device, characterized by including:
    第四模块,用于接收输入的当前CAD模型,提取所述当前CAD模型的几何信息,并将所述几何信息进行结构化表示,将结构化表示的几何信息转换为预定义长度的向量,得到所述当前CAD模型的向量;The fourth module is used to receive the input current CAD model, extract the geometric information of the current CAD model, perform a structured representation of the geometric information, and convert the structured representation of the geometric information into a vector of predefined length to obtain The vector of the current CAD model;
    第五模块,用于基于所述当前CAD模型的向量,搜索一CAD模型聚类样本,得到与所述当前CAD模型最相似的一不超过设定数量大小的目标CAD模型聚类;所述CAD模型聚类样本包括:对一数据库中的所有CAD模型的向量进行聚类后得到的多个不超过设定数量大小的CAD模型聚类;The fifth module is used to search for a CAD model clustering sample based on the vector of the current CAD model, and obtain a target CAD model cluster that is most similar to the current CAD model and does not exceed a set number; the CAD Model clustering samples include: multiple CAD model clusters that do not exceed the set number and size obtained after clustering the vectors of all CAD models in a database;
    第六模块,用于将所述当前CAD模型作为一输入样本输入一对应所述目标CAD模型聚类的分类模型,得到所述当前CAD模型与所述目标CAD模型聚类中各CAD模型的似然度;所述分类模型通过将所述目标CAD模型聚类中的所有CAD模型作为训练样本训练得到;The sixth module is used to input the current CAD model as an input sample into a classification model corresponding to the target CAD model cluster, and obtain the similarity between the current CAD model and each CAD model in the target CAD model cluster. Probability; the classification model is obtained by training all CAD models in the target CAD model cluster as training samples;
    第七模块,用于根据所述当前CAD模型与所述叶节点CAD模型聚类中各CAD模型的似然度,得到目标CAD模型。The seventh module is used to obtain a target CAD model based on the likelihood of each CAD model in the current CAD model and the leaf node CAD model clustering.
  10. 一种计算机装置,其特征在于,包括至少一个存储器和至少一个处理器,其中:A computer device, characterized by comprising at least one memory and at least one processor, wherein:
    所述至少一个存储器用于存储计算机程序;The at least one memory is used to store a computer program;
    所述至少一个处理器用于调用所述至少一个存储器中存储的计算机程序,执行如权利要求1至4中任一项所述的CAD模型聚类及分类模型生成方法,或如权利要求5至7中任一项所述的CAD模型搜索方法。The at least one processor is configured to call a computer program stored in the at least one memory to execute the CAD model clustering and classification model generation method as claimed in any one of claims 1 to 4, or as claimed in claims 5 to 7 The CAD model search method described in any one of the above.
  11. 一种计算机可读存储介质,其上存储有计算机程序;其特征在于,所述计算机程序能够被一处理器执行并实现如权利要求1至4中任一项所述的CAD模型聚类及分类模型生成方法,或如权利要求5至7中任一项所述的CAD模型搜索方法。A computer-readable storage medium with a computer program stored thereon; characterized in that the computer program can be executed by a processor and implement the CAD model clustering and classification as claimed in any one of claims 1 to 4 A model generation method, or a CAD model search method according to any one of claims 5 to 7.
PCT/CN2022/096006 2022-05-30 2022-05-30 Cad model search method, cad model clustering and classification model generation method, apparatus and storage medium WO2023230769A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/096006 WO2023230769A1 (en) 2022-05-30 2022-05-30 Cad model search method, cad model clustering and classification model generation method, apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/096006 WO2023230769A1 (en) 2022-05-30 2022-05-30 Cad model search method, cad model clustering and classification model generation method, apparatus and storage medium

Publications (1)

Publication Number Publication Date
WO2023230769A1 true WO2023230769A1 (en) 2023-12-07

Family

ID=89026488

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/096006 WO2023230769A1 (en) 2022-05-30 2022-05-30 Cad model search method, cad model clustering and classification model generation method, apparatus and storage medium

Country Status (1)

Country Link
WO (1) WO2023230769A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118394963A (en) * 2024-06-27 2024-07-26 山东华云三维科技有限公司 Three-dimensional CAD model retrieval method, device and medium based on global features

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622478A (en) * 2012-03-02 2012-08-01 浙江大学 CAD (Computer Aided Design) modeling method for reverse engineering of complex parts based on semantic information
US20160103837A1 (en) * 2014-10-10 2016-04-14 Workdigital Limited System for, and method of, ranking search results obtained by searching a body of data records
US9443314B1 (en) * 2012-03-29 2016-09-13 Google Inc. Hierarchical conditional random field model for labeling and segmenting images
CN108491628A (en) * 2018-03-22 2018-09-04 西北工业大学 The three-dimensional CAD assembling model of product design requirement drive clusters and search method
CN109815887A (en) * 2019-01-21 2019-05-28 浙江工业大学 A kind of classification method of complex illumination servant's face image based on Multi-Agent Cooperation
CN113377984A (en) * 2021-06-08 2021-09-10 中山大学 Database-based face searching method
US20220058449A1 (en) * 2020-08-20 2022-02-24 Capital One Services, Llc Systems and methods for classifying data using hierarchical classification model

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622478A (en) * 2012-03-02 2012-08-01 浙江大学 CAD (Computer Aided Design) modeling method for reverse engineering of complex parts based on semantic information
US9443314B1 (en) * 2012-03-29 2016-09-13 Google Inc. Hierarchical conditional random field model for labeling and segmenting images
US20160103837A1 (en) * 2014-10-10 2016-04-14 Workdigital Limited System for, and method of, ranking search results obtained by searching a body of data records
CN108491628A (en) * 2018-03-22 2018-09-04 西北工业大学 The three-dimensional CAD assembling model of product design requirement drive clusters and search method
CN109815887A (en) * 2019-01-21 2019-05-28 浙江工业大学 A kind of classification method of complex illumination servant's face image based on Multi-Agent Cooperation
US20220058449A1 (en) * 2020-08-20 2022-02-24 Capital One Services, Llc Systems and methods for classifying data using hierarchical classification model
CN113377984A (en) * 2021-06-08 2021-09-10 中山大学 Database-based face searching method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118394963A (en) * 2024-06-27 2024-07-26 山东华云三维科技有限公司 Three-dimensional CAD model retrieval method, device and medium based on global features

Similar Documents

Publication Publication Date Title
CN106033426B (en) Image retrieval method based on latent semantic minimum hash
Wang et al. Trinary-projection trees for approximate nearest neighbor search
CN107209860A (en) Optimize multiclass image classification using blocking characteristic
Ferreira et al. Thesaurus-based 3D object retrieval with part-in-whole matching
CN111325245B (en) Repeated image recognition method, device, electronic equipment and computer readable storage medium
CN108595688A (en) Across the media Hash search methods of potential applications based on on-line study
CN104239553A (en) Entity recognition method based on Map-Reduce framework
CN107341210B (en) C-DBSCAN-K clustering algorithm under Hadoop platform
CN115293919B (en) Social network distribution outward generalization-oriented graph neural network prediction method and system
Chaieb et al. Fuzzy generalized median graphs computation: application to content-based document retrieval
US20230056760A1 (en) Method and apparatus for processing graph data, device, storage medium, and program product
Kuric et al. ANNOR: Efficient image annotation based on combining local and global features
CN113515656A (en) Multi-view target identification and retrieval method and device based on incremental learning
Martinet et al. A relational vector space model using an advanced weighting scheme for image retrieval
CN113869352A (en) Model training method, clothing retrieval method and related device
Zhu et al. A novel automatic image annotation method based on multi-instance learning
CN110209895B (en) Vector retrieval method, device and equipment
Parthasarathy et al. Network clustering
WO2023230769A1 (en) Cad model search method, cad model clustering and classification model generation method, apparatus and storage medium
Hao et al. Automatic image annotation based on particle swarm optimization and support vector clustering
Chum et al. Web scale image clustering
Morsillo et al. Youtube scale, large vocabulary video annotation
Dhoot et al. Efficient Dimensionality Reduction for Big Data Using Clustering Technique
CN111460088A (en) Similar text retrieval method, device and system
CN113569982B (en) Position identification method and device based on two-dimensional laser radar feature point template matching