Part model matching method, device and equipment and storage medium

By obtaining the contour processing time and element parameters of the part model, and using preset rules to perform similarity calculation in the part model library, the problems of inaccurate similarity caused by manual identification and high verification difficulty are solved, realizing fast and accurate similar model matching, and improving the standardization and efficiency of the processing technology.

CN116340787BActive Publication Date: 2026-06-02ZHUHAI GREE PRECISION MOLD CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHUHAI GREE PRECISION MOLD CO LTD
Filing Date
2023-04-04
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In the existing technology, the similarity recognition of three-dimensional models of plastic molds mainly relies on manual recognition, which leads to inaccurate similarity values ​​and makes it difficult and inefficient to verify similar models among a large number of models.

Method used

By obtaining the contour processing time and element parameters of the part model to be matched, similarity processing and similarity calculation are performed using a preset part model library. The target part model is determined based on preset rules, including initial and secondary screening to narrow the calculation range and improve calculation accuracy.

Benefits of technology

It enables the rapid and accurate calculation of similarity values ​​between part models, improves the standardization of mold part model processing technology and the accuracy of manufacturing process, and reduces the difficulty and time consumption of manual visual perception.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116340787B_ABST
    Figure CN116340787B_ABST
Patent Text Reader

Abstract

The application discloses a part model matching method and device, computer equipment and a storage medium. The method comprises the following steps: obtaining a to-be-matched contour machining time length corresponding to a to-be-matched part model and a to-be-matched element parameter; performing similar element processing on the to-be-matched element parameter and an element parameter corresponding to a part model to determine a similar element value corresponding to the part model; performing similarity processing based on the to-be-matched contour machining time length, the to-be-matched element parameter and the similar element value to determine a similarity value corresponding to the part model; and determining a target part model matched with the to-be-matched part model based on a preset rule according to the similarity value. The method of the application can accurately calculate the matching similarity value between part models, solves the problem that it is difficult to check similar models in a large number of models, and can quickly match and calculate the part model instance with the highest part similarity from the part model library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent process technology, and in particular to a part model matching method, apparatus, computer equipment, and storage medium. Background Technology

[0002] With the development of technology, various tools and products used in our daily production and life are closely related to plastic molds. A plastic mold is a type of combined mold used for compression molding, extrusion molding, injection molding, blow molding, and low-foaming molding. Based on the three-dimensional model of the mold and the coordinated changes of the auxiliary molding system, a series of plastic parts of different shapes and sizes can be processed. However, in current technology, the similarity recognition of three-dimensional models of plastic molds mainly relies on manual identification. Humans use their memory of past model shapes to trace and confirm the degree of similarity, ultimately determining the visual similarity between the current model and past models. This method cannot scientifically calculate an accurate similarity value between two mold part models. Moreover, traditional manual visual perception is difficult, time-consuming, and inefficient in verifying similar models in large-scale models. Summary of the Invention

[0003] This invention provides a part model matching method, apparatus, computer equipment, and storage medium, aiming to solve the problems of low accuracy of matching similarity values ​​between plastic mold part models and the difficulty of verifying similar models in large-scale models.

[0004] In a first aspect, embodiments of the present invention provide a part model matching method, comprising: obtaining a processing time for a contour to be matched and matching element parameters corresponding to a part model to be matched; performing similarity processing on the matching element parameters and the element parameters corresponding to the part model to determine a similarity value corresponding to the part model, wherein the part model is all or part of the part models in a preset part model library; performing similarity processing on the matching contour processing time, the matching element parameters, and the similarity value to determine a similarity value corresponding to the part model; and determining a target part model that matches the part model to be matched based on the similarity value according to preset rules.

[0005] Secondly, embodiments of the present invention also provide a part model matching device, comprising: an acquisition unit for acquiring a processing time for a contour to be matched and matching element parameters corresponding to a part model to be matched; a matching unit for performing similarity processing on the matching element parameters and the element parameters corresponding to the part model to determine a similarity value corresponding to the part model, wherein the part model is all or part of the part models in a preset part model library; a calculation unit for performing similarity processing on the processing time for the contour to be matched, the matching element parameters, and the similarity value to determine a similarity value corresponding to the part model; and a determination unit for determining a target part model that matches the part model to be matched based on preset rules and the similarity value.

[0006] Thirdly, embodiments of the present invention also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0007] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a processor, can implement the above-described method.

[0008] This invention provides a method, apparatus, computer device, and storage medium for matching part models. The method includes: acquiring the processing time of the contour to be matched and the parameters of the elements to be matched corresponding to the part model to be matched; performing similarity processing on the parameters of the elements to be matched and the element parameters corresponding to the part model to determine the similarity value corresponding to the part model, wherein the part model is all or part of the part models in a preset part model library; performing similarity processing on the processing time of the contour to be matched, the parameters of the elements to be matched, and the similarity value to determine the similarity value corresponding to the part model; and determining a target part model that matches the part model to be matched based on the similarity value according to preset rules. This invention uses the processing time of the contour to be matched and the parameters of the elements to be matched to match to match part models in a preset part model library for matching and filtering. It can accurately calculate the similarity value between part models, solving the problem of difficulty in traditional manual visual perception and verifying similar models in large-scale models. It can also quickly find the part model with the highest similarity from the part model library, improving the standardization of mold part model processing technology and the accuracy of model manufacturing process time. Attached Figure Description

[0009] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 This is a flowchart illustrating the part model matching method provided in an embodiment of the present invention;

[0011] Figure 2 This is a flowchart illustrating a part model matching method provided in another embodiment of the present invention;

[0012] Figure 3 A schematic diagram of a sub-process of the part model matching method provided in an embodiment of the present invention;

[0013] Figure 4 A schematic diagram of a sub-process of the part model matching method provided in an embodiment of the present invention;

[0014] Figure 5 A schematic diagram of a sub-process of the part model matching method provided in an embodiment of the present invention;

[0015] Figure 6 A schematic diagram of a sub-process of the part model matching method provided in an embodiment of the present invention;

[0016] Figure 7 A schematic diagram of a sub-process of the part model matching method provided in an embodiment of the present invention;

[0017] Figure 8 A schematic block diagram illustrating the part model matching method provided in an embodiment of the present invention;

[0018] Figure 9 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0021] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0022] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0023] Please see Figure 1 , Figure 1 This is a schematic flowchart illustrating the plastic mold part model matching similarity method provided in this embodiment of the invention. The plastic mold part model matching similarity method in this embodiment can be applied to manufacturing processes, directly using the processing method and processing time of the part model with the highest similarity, thereby improving the standardization of mold part model processing technology and the accuracy of model manufacturing process time. This invention employs a special matching and calculation method to quickly and accurately calculate the similarity percentage of the current instance part within the plastic mold part model database.

[0024] Figure 1 This is a flowchart illustrating the plastic mold part model matching similarity method provided in an embodiment of the present invention. As shown in the figure, the method includes the following steps S110-140.

[0025] S110. Obtain the machining time of the contour to be matched and the parameters of the elements to be matched corresponding to the model of the part to be matched.

[0026] In this embodiment, the part model to be matched is an instance model, and similar part models are matched based on this instance model. The processing time of the part to be matched is calculated by the application software based on the contour surface of the part to be matched; the matching element parameters are identified and recorded based on the feature data of the part model to be matched, including but not limited to the color code, material, and hole parameters of the model to be matched. Obtaining the contour processing time and matching element parameters of the part to be matched provides the basic information of the part model to be matched, providing sufficient conditions for subsequent matching and screening, and facilitating the matching of part models with higher similarity to the part model to be matched.

[0027] S120. Based on the element parameters to be matched and the element parameters corresponding to the part model, perform similarity processing to determine the similarity value corresponding to the part model, wherein the part model is all or part of the part models in the preset part model library.

[0028] In this embodiment, the preset part model library is a dataset established based on a model feature data extraction method. It includes various existing part model data, such as the contour processing time data for each part model. Similarity processing involves comparing the element parameters of the part model to be matched with those of the part models in the preset part database, and recording the total number of identical elements between each part model in the database and the part model to be matched. The ratio of the total number of identical elements to the total number of elements in each part model is used as the similarity value for each part model. A larger similarity value, closer to 1, indicates more identical elements between the part model and the part model to be matched. A similarity value of 1 indicates that the element data of the part model and the part model to be matched are completely identical. By obtaining the similarity values ​​corresponding to the part models, the similarity between the element data of each part model in the preset part model database and the element data of the part model to be matched can be clearly understood, facilitating more accurate and rapid subsequent filtering of part models in the preset part model library that have a higher similarity to the part model to be matched.

[0029] S130. Based on the processing time of the contour to be matched, the parameters of the element to be matched, and the similarity element value, similarity processing is performed to determine the similarity value corresponding to the part model.

[0030] In this embodiment, the processing time of the contour to be matched includes the processing time of all contours to be matched. The similarity value is calculated as a percentage of the total processing time of all contours to be matched in the part model to be matched and the processing time of the element parameters to be matched compared with the total processing time of all contours and the element parameters of the part model. This percentage is used as the similarity value. Specifically, the total processing time of the part model to be matched and the total processing time of the part model are obtained. The ratio of the total processing time of the two is calculated. The similarity value is weighted and calculated with the ratio of the processing time to obtain the similarity value of the part model. In summary, the part models all have similarity values ​​according to the similarity processing. The larger the similarity value of the part model, the higher the similarity between the part model and the part model to be matched. Obtaining the similarity value based on the similarity calculation can more accurately filter out the part model most similar to the part model to be matched, thereby improving the standardization of the mold part model processing technology and the accuracy of the model manufacturing process time.

[0031] S140. Based on preset rules, determine the target part model that matches the part model to be matched according to the similarity value.

[0032] In this embodiment, the preset rule is a sorting rule. Specifically, given the similarity scores of each part model, the part models are sorted from highest to lowest based on their similarity scores. The part model with the highest similarity score is the target part model. By sorting the similarity scores according to the preset rule to obtain the target part model, the part model with the highest similarity score can be obtained, solving the problem of the difficulty in traditional manual visual perception and verifying similar models in large-scale models.

[0033] The above implementation scheme is the most basic implementation scheme. As the number of part models in the preset part model library increases, the amount of calculation also increases, which may lead to a slower calculation speed and a waste of computing resources. Therefore, a better implementation scheme is provided.

[0034] Figure 2 This is a flowchart illustrating a part model matching method according to another embodiment of the present invention. Figure 2 As shown, the part model matching method in this embodiment includes steps S210-S280. Steps S210 and S260-S280 are similar to steps S110-S140 in the above embodiment, and will not be described again here. The following details the additional steps S220-S250 in this embodiment.

[0035] S210. Obtain the machining time of the contour to be matched and the parameters of the elements to be matched corresponding to the model of the part to be matched.

[0036] S220. Based on the first preset matching condition, according to the processing time of all contours to be matched and the processing time of all contours corresponding to the part models in the preset part model library, the part models in the preset part model library are initially screened and matched.

[0037] In one embodiment, such as Figure 3 As shown, step S220 may include steps S221-S223.

[0038] S221. Determine a first preset threshold range based on the processing time of all contours to be matched;

[0039] S222. Determine whether the processing time of all contours corresponding to the part models in the preset part model library is within the first preset threshold range.

[0040] S223. If the processing time of all contours corresponding to the part model is within the first preset threshold range, then the part model is determined to meet the first preset matching condition.

[0041] In this embodiment, the processing time of the contour to be matched includes the total processing time of the entire contour to be matched. The total processing time of the entire contour to be matched is the cutting time of the entire contour of the part to be matched, which is calculated by application software based on the model contour surface. The first preset threshold range is determined based on the total processing time of the entire contour to be matched. If the total processing time of the entire contour corresponding to the part model in the preset part model library is not within the first preset threshold range, then the part model does not meet the first preset matching condition. If the total processing time of the entire contour corresponding to the part model in the preset part model library is within the first preset threshold range, then the part model meets the first preset matching condition and the part model is added to the primary part model set. For example, if the current total processing time of the entire contour of the part to be matched is A_T1, then the first preset threshold range T is (A_T1±X), and the processing time unit is minutes. Specifically, if the total processing time of the entire contour of the part to be matched is 45 minutes, and the difference between the total processing time of the entire contour of the part models in the preset part model library and the total processing time of the entire contour of the part to be matched is allowed to be 2 minutes, then the minimum value of the first preset threshold range is 43 minutes and the maximum value is 47 minutes. That is, if the total processing time of the entire contour of the part model is between 43 and 47 minutes, the first preset matching condition is met, and the part model can be added to the primary part model set. By determining the first preset threshold range based on the total processing time of the entire contour of the part to be matched, parts with processing times close to the total processing time of the entire contour of the part to be matched can be filtered out, narrowing the matching range, reducing the amount of subsequent similarity value calculation, and finding the part model with the highest similarity more quickly and accurately.

[0042] S230. Add the part models that meet the first preset matching conditions to the primary part model set to obtain a partial set of part models after initial screening.

[0043] In this embodiment, the first preset matching condition is a matching condition set based on the processing time of all contours to be matched. Part models that meet the conditions are matched and filtered from the preset part model library according to the first preset matching condition, and these matching part models are added to the primary part set, resulting in a subset of part models after initial filtering. Subsequent filtering operations only need to be performed on the part models in the primary part set. By setting the first preset matching condition based on the processing time of all contours to be matched, part models that meet the matching conditions can be filtered out, narrowing the matching range, reducing the amount of subsequent similarity value calculations, and allowing for a faster and more accurate search for the part model with the highest similarity.

[0044] S240. Based on the second preset matching conditions, according to the six-directional contour processing time of the six-directional contour to be matched and the corresponding six-directional contour processing time of the part model in the primary part model set, a secondary screening and matching is performed on the part model in the primary part model set.

[0045] In one embodiment, such as Figure 4 As shown, step S240 may include steps S241-S243.

[0046] S241. Determine the second preset threshold range based on the processing time of the six-directional contour to be matched;

[0047] S242. Determine whether the six-directional contour machining time corresponding to the part model in the primary part model set is within the second preset threshold range;

[0048] S243. If the machining time of the six-axis contour corresponding to the part model is within the range of the second preset threshold, then the part model is determined to meet the second preset matching condition.

[0049] In this embodiment, the machining time of the contour to be matched includes the machining time of the six-directional contour to be matched, which is the time for the tool to perform toolpath machining in each of the six directions. The second preset threshold range is determined based on the machining time of the six-directional contour to be matched. If the machining time of the six-directional contour corresponding to the part model in the primary part set is not within the second preset threshold range, then the part model does not meet the second preset matching condition. If the machining time of the six-directional contour corresponding to the part model in the primary part set is within the second preset threshold range, then the part model meets the second preset matching condition and the part model is added to the intermediate part model set. For example, if the machining time of the six-directional contour of the part to be matched is A_TopT, A_BottomT, A_RightT, A_LeftT, A_FrontT, and A_BackT, then the first preset threshold range T is (T±Y), where the machining time for the specified direction is in minutes. Specifically, if the processing time for all six contours of the part to be matched is 45 minutes, and the difference between the processing time of the six contours of the part models in the primary part model set and the processing time of the six contours of the part to be matched is allowed to be 2 minutes, then the minimum value of the second preset threshold range is 43 minutes and the maximum value is 47 minutes. That is, if the processing time of the six contours of the part models is between 43 and 47 minutes, the second preset matching condition is met, and the part models can be added to the intermediate part model set. It should be noted that the processing time of the contours in all six directions is compared, and the part models can only be added to the intermediate part model set if the processing time of all six contours of the part models meets the second preset matching condition. By determining a second preset threshold range based on the processing time of the six-directional contour to be matched, parts with processing times similar to the processing time of the six-directional contour to be matched in the primary part model set can be filtered out. This refines the filtering process and allows for the selection of part models in the primary part model set that are closer to the part model to be matched. Furthermore, it significantly reduces computational complexity and enables more accurate calculation of the similarity values ​​between plastic mold part models. This solves the problem of the difficulty in traditional manual visual perception and verifying similar models in large-scale models.

[0050] S250. Add the part models that meet the second preset matching conditions to the intermediate part model set to obtain a partial part model after secondary screening.

[0051] In this embodiment, the second preset matching condition is set according to the processing time of the six-directional contour to be matched. The parts in the primary part set are then filtered, and the part models whose processing time of the six-directional contour meets the second preset matching condition are added to the intermediate part model set, resulting in a partial set of part models after secondary filtering. The second preset matching condition, based on the processing time of the six-directional contour to be matched, performs a secondary filtering of the part models after the initial filtering. The matching conditions are further refined based on the initial filtering, making the filtering more detailed. This allows for the selection of part models in the primary part model set that are closer to the part model to be matched, significantly reducing computational complexity and enabling more accurate calculation of the similarity values ​​between plastic mold part models. This solves the problem of the difficulty in traditional manual visual perception and verifying similar models in large-scale models.

[0052] S260. Based on the element parameters of the element to be matched and the element parameters corresponding to the part models in the intermediate part model set, perform similarity processing to determine the similarity value corresponding to the part model.

[0053] In one embodiment, such as Figure 5 As shown, step S260 may include steps S261-S264.

[0054] S261. Compare the parameters of the element to be matched with the parameters of the element models in the intermediate part model set;

[0055] S262. Obtain the total number of identical elements between the part to be matched and the part model;

[0056] S263. Perform similarity calculation by comparing the total number of identical elements with the total number of elements in the part model, and obtain the similarity value corresponding to the part model;

[0057] S264. Assign the similarity element value to the corresponding part model in the intermediate part model set.

[0058] In this embodiment, the parameters of the element to be matched are identified and recorded according to the model feature data recognition method. The parameters of the element to be matched are compared with the element parameters of the part models in the intermediate part model set, and the comparison result is recorded. The total number of identical elements between the part to be matched and the part models is obtained. A similarity coefficient is calculated between the total number of identical elements and the total number of elements in the part models, and the similarity coefficient value is assigned to the corresponding part model in the intermediate part model set. If the total number of identical elements between the part to be matched and the part models is Sn, and the total number of elements in the part models is Cn, then the formula for obtaining the similarity coefficient value is Sn / Cn. For example, if the part model to be matched has a hole with a value of 10 cm, and the part model also has a hole with a value of 10 cm, then the part model has an element feature identical to the part model to be matched. Specifically, if the element features are 15 and the part model has a total of 20 element features, and 11 of these element features are identical to those of the part model to be matched, then the similarity value between the part model and the part model to be matched is 11 / 20. If the part model has a total of 15 element features, and 15 of these element features are identical to those of the part model to be matched, then the similarity value between the part model and the part model to be matched is 15 / 15, and the similarity value is 1. In summary, the larger the similarity value of the part model, the closer it is to 1, indicating that the part model and the part model to be matched share more identical elements. If the similarity value is 1, it means that the element data of the part model and the part model to be matched are completely identical. By obtaining the similarity value corresponding to the part model, we can clearly understand the similarity between the element data of each part model in the preset part model database and the element data of the part model to be matched, which facilitates more accurate and faster subsequent filtering of part models in the preset part model database that have a higher similarity to the part model to be matched.

[0059] S270. Based on the processing time of the contour to be matched, the parameters of the elements to be matched, and the similarity element value, perform similarity processing to determine the similarity value corresponding to the part model;

[0060] In one embodiment, such as Figure 6 As shown, step S270 may include steps S271-S273.

[0061] S271. Determine the ratio of the total contour processing time to the total contour processing time of the part models in the intermediate part model set.

[0062] S272. The similarity value is obtained by processing the similarity element value corresponding to the part model and the ratio of the total contour duration according to a preset algorithm.

[0063] S273. Assign the similarity value to the corresponding part model in the intermediate part model set to obtain a similarity model set.

[0064] In this embodiment, the ratio of total contour processing time is determined based on the total processing time of all contours to be matched and the total processing time of all contours corresponding to the part models in the intermediate part model set. Specifically, the total processing time of all contours to be matched is compared with the total processing time of all contours corresponding to the part models in the intermediate part model set. The smaller total processing time is divided by the larger total processing time. If the two total processing times are equal, either value is taken. The formula for obtaining the contour processing time ratio is Ln = [Min(T / Tn) ÷ Max(T / Tn)], where Min(T / Tn) is the minimum value among the total processing time of the part to be matched and the total processing time of the part model, and Max(T / Tn) is the maximum value among the total processing time of the part to be matched and the total processing time of the part model. If the two values ​​are the same, either one can be chosen. For example, if the total processing time for all contours to be matched is 45 minutes, and the total processing time for all contours of the part model is 42 minutes, then the final ratio of total contour processing time L = 42 / 45 * 100%. The preset algorithm is to multiply the similarity value corresponding to the part model with its corresponding ratio of total contour processing time to obtain the similarity value. Specifically, the similarity value = (Sn / Cn) * Ln * 100%. For example, if the similarity value corresponding to the part model is 4 / 5 and the contour processing time is 80%, then the similarity value is: 4 / 5 * 80% * 100% = 64%. In summary, all part models in the intermediate part model set have similarity values. A similarity model set is obtained based on the part models with similarity values. It should be noted that when adding the part models to the similarity model set, the part model to be matched should be avoided to prevent inaccurate matching results. By obtaining the similarity value based on the similarity calculation, the part model most similar to the part model to be matched can be selected more accurately, thereby improving the standardization of mold part model processing technology and the accuracy of model manufacturing process time.

[0065] S280. Based on preset rules, determine the target part model that matches the part model to be matched according to the similarity value.

[0066] In one embodiment, such as Figure 7 As shown, step S280 may include steps S281-S282.

[0067] S281. Sort the similarity values ​​corresponding to each part model in the similarity model set;

[0068] S282. The part model with the highest similarity value among the sorted part models is determined as the target part model that matches the part model to be matched.

[0069] In this embodiment, by sorting the similarity values ​​of each part model in the similarity model set from high to low, the part model with the highest similarity value is set as the target part model. By filtering and determining the part model with the highest similarity, the processing time and method of the part model to be matched can be referenced to the part model, thereby reducing the processing and manufacturing time of the part model to be matched.

[0070] The above is the preferred embodiment of the present invention. The present invention still includes technical features that can replace the above embodiments. Specifically, the part models in the preset part model database can be filtered and selected using the GRB color values ​​of the part view image to obtain the primary part model set. Specifically, for example, an image M1 on a view of the part model to be matched is obtained, and the G, R, B values ​​at the points in the image are obtained by software according to a certain matrix position points, and the filtering is performed according to the GRB values.

[0071] Figure 8 This is a schematic block diagram of a part model matching device 300 provided in an embodiment of the present invention. Figure 8 As shown, corresponding to the above part model matching method, the present invention also provides a part model matching device. This part model matching device includes a unit for performing the above part model matching method, and the device can be configured in a desktop computer, tablet computer, laptop computer, or other terminal. Specifically, please refer to... Figure 8 The part model matching device includes an acquisition unit 310, a matching unit 320, a calculation unit 330, and a determination unit 340.

[0072] The acquisition unit is used to acquire the processing time of the contour to be matched and the parameters of the elements to be matched, which are corresponding to the model of the part to be matched.

[0073] The matching unit performs similarity processing on the element parameters to be matched and the element parameters corresponding to the part model to determine the similarity value corresponding to the part model, wherein the part model is all or part of the part models in the preset part model library;

[0074] In one embodiment, the matching unit 320 includes an initial matching unit and an initial set unit;

[0075] A matching unit is used to perform an initial screening and matching of the part models in the preset part model library based on a first preset matching condition and according to the processing time of all contours to be matched and the processing time of all contours corresponding to the part models in the preset part model library.

[0076] The initial set unit is used to add the part models that meet the first preset matching conditions to the initial part model set to obtain a partial set of part models after initial screening.

[0077] In one embodiment, the initial set unit is followed by a secondary matching unit and a secondary set unit;

[0078] The secondary matching unit is used to perform secondary screening and matching on the part models in the primary part model set based on the second preset matching conditions and the corresponding six-directional contour processing time of the part models in the primary part model set.

[0079] The secondary set unit is used to add the part models that meet the second preset matching conditions to the intermediate part model set to obtain a partial set of part models after secondary screening.

[0080] In one embodiment, the initial matching unit includes a first range determination unit, a first matching unit, and a first determination unit;

[0081] The first range determination unit is used to determine a first preset threshold range based on the processing time of all contours to be matched;

[0082] The first matching unit is used to determine whether the processing time of all contours corresponding to the part models in the preset part model library is within the first preset threshold range.

[0083] The first determination unit is used to determine that the part model satisfies the first preset matching condition if the processing time of all contours corresponding to the part model is within the first preset threshold range.

[0084] In one embodiment, the secondary matching unit includes a second range determination unit, a second matching unit, and a second determination unit;

[0085] The second range determination unit is used to determine the second preset threshold range based on the processing time of the six-directional contour to be matched;

[0086] The second matching unit is used to determine whether the six-directional contour processing time corresponding to the part model in the primary part model set is within the second preset threshold range.

[0087] The second determination unit is used to determine that the part model satisfies the second preset matching condition if the processing time of the six-directional contour corresponding to the part model is within the second preset threshold range.

[0088] In one embodiment, the matching unit 320 includes a comparison unit, a first acquisition unit, a first calculation unit, and a first assignment unit;

[0089] The comparison unit is used to compare the parameter of the element to be matched with the parameter of the element of the part model in the intermediate part model set;

[0090] The first acquisition unit is used to acquire the total number of identical elements between the part to be matched and the part model;

[0091] The first calculation unit is used to perform similarity calculation by comparing the total number of identical elements with the total number of elements in the part model, and to obtain the similarity value corresponding to the part model.

[0092] The first assignment unit is used to assign the similarity element value to the corresponding part model in the intermediate part model set.

[0093] The calculation unit is used to determine the similarity value corresponding to the part model by performing similarity processing based on the processing time of the contour to be matched, the parameters of the elements to be matched, and the similarity element value.

[0094] In one embodiment, the calculation unit 330 includes a second acquisition unit, a second calculation unit, and a second assignment unit;

[0095] The second acquisition unit is used to determine the ratio of the total contour processing time to the total contour processing time of the part models in the intermediate part model set.

[0096] The second calculation unit is used to process the similarity element value corresponding to the part model and the ratio of the total contour duration according to a preset algorithm to obtain a similarity value.

[0097] The second assignment unit is used to assign the similarity value to the corresponding part model in the intermediate part model set to obtain a similarity model set.

[0098] The determining unit determines the target part model that matches the part model to be matched based on the similarity value according to preset rules.

[0099] In one embodiment, the determining unit 340 includes a sorting unit and a setting unit;

[0100] The sorting unit is used to sort the similarity values ​​corresponding to each part model in the similarity model set.

[0101] The setting unit is used to set the part model with the highest similarity value among the part models as the one that matches the part model to be matched.

[0102] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned part model matching device 300 and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.

[0103] The aforementioned part model matching device can be implemented as a computer program, which can, for example, Figure 9 It runs on the computer device shown.

[0104] Please see Figure 9 , Figure 9 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 can be a terminal or a server. The terminal can be an electronic device with communication functions, such as a smartphone, tablet, laptop, desktop computer, personal digital assistant, or wearable device. The server can be a standalone server or a server cluster composed of multiple servers.

[0105] See Figure 9 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.

[0106] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a part model matching method.

[0107] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.

[0108] The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a part model matching method.

[0109] This network interface 505 is used for network communication with other devices. Those skilled in the art will understand that... Figure 8The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0110] The processor 502 is used to run a computer program 5032 stored in a memory to implement the steps of the above method.

[0111] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0112] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0113] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform the steps of the method described above.

[0114] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.

[0115] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0116] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0117] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0118] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0119] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for matching part models, characterized in that, include: Obtain the processing time of the contour to be matched and the parameters of the elements to be matched corresponding to the model of the part to be matched. The processing time of the contour to be matched is calculated based on the contour surface of the part to be matched. The similarity value of the part model is determined by performing similarity processing on the element parameters to be matched and the element parameters corresponding to the part model. The part model is all or part of the part models in the preset part model library. The similarity value is the ratio of the total number of identical elements between the part to be matched and the part model to the total number of elements of the part model. The similarity value of the part model is determined by similarity processing based on the processing time of the contour to be matched, the parameters of the elements to be matched, and the similarity element value. Based on preset rules, a target part model that matches the part model to be matched is determined according to the similarity value.

2. The method according to claim 1, characterized in that, Before the step of determining the similarity value corresponding to the part model by performing similarity processing based on the element parameters to be matched and the element parameters corresponding to the part model, wherein the part model is a subset of part models in a preset part model library, the method further includes: Based on the first preset matching condition, the part models in the preset part model library are initially screened and matched according to the processing time of all contours to be matched and the processing time of all contours corresponding to the part models in the preset part model library. The part models that meet the first preset matching conditions are added to the primary part model set to obtain a partial set of part models after initial screening.

3. The method according to claim 2, characterized in that, The processing time for the contours to be matched includes the processing time for the six-axis contours to be matched. After the step of adding the part models that meet the first preset matching conditions to the primary part model set to obtain the filtered partial part models, the process further includes: Based on the second preset matching condition, the part models in the primary part model set are subjected to secondary screening and matching according to the processing time of the six-directional contour to be matched and the processing time of the corresponding six-directional contour of the part models in the primary part model set. The part models that meet the second preset matching conditions are added to the intermediate part model set to obtain a partial set of part models after secondary screening.

4. The method according to claim 3, characterized in that, The step of performing an initial screening and matching of the part models in the preset part model library based on the first preset matching condition and the processing time of all contours to be matched corresponding to the part models in the preset part model library includes: The first preset threshold range is determined based on the processing time of all contours to be matched; Determine whether the total processing time of all contours corresponding to the part models in the preset part model library is within the first preset threshold range; If the total processing time of all contours corresponding to the part model is within the first preset threshold range, then the part model is determined to meet the first preset matching condition; and / or The step of performing a secondary screening and matching of the part models in the primary part model set based on the second preset matching conditions and the corresponding six-directional contour processing time of the part models in the primary part model set, includes: The second preset threshold range is determined based on the processing time of the six-directional contour to be matched; Determine whether the six-axis contour machining time corresponding to the part model in the primary part model set is within the second preset threshold range; If the machining time of the six-axis contour corresponding to the part model is within the second preset threshold range, then the part model is determined to meet the second preset matching condition.

5. The method according to claim 3, characterized in that, The step of determining the similarity value of the part model by performing similarity processing based on the element parameters to be matched and the element parameters corresponding to the part model in the intermediate part model set includes: The parameters of the element to be matched are compared with the parameters of the element models in the intermediate part model set; Obtain the total number of identical elements between the part to be matched and the part model; The similarity coefficient is calculated by comparing the total number of identical elements with the total number of elements in the part model, and the similarity coefficient value corresponding to the part model is obtained. The similarity element value is assigned to the corresponding part model in the intermediate part model set.

6. The method according to claim 5, characterized in that, The step of determining the similarity value corresponding to the part model by performing similarity processing based on the processing time of the contour to be matched, the parameters of the elements to be matched, and the similarity element value includes: The ratio of the total contour processing time to the total contour processing time is determined based on the total contour processing time of all contours to be matched and the total contour processing time of all contours corresponding to the part models in the intermediate part model set. The similarity value is obtained by processing the similarity element value corresponding to the part model and the ratio of the total contour duration according to a preset algorithm. The similarity value is assigned to the corresponding part model in the intermediate part model set to obtain a similarity model set.

7. The method according to claim 6, characterized in that, The steps of determining the target part model that matches the part model to be matched based on the similarity value according to preset rules include: Sort the similarity values ​​corresponding to each part model in the similarity model set; The part model with the highest similarity value among the sorted part models is determined as the target part model that matches the part model to be matched.

8. A part model matching device, characterized in that, include: The acquisition unit is used to acquire the processing time of the contour to be matched and the parameters of the elements to be matched corresponding to the model of the part to be matched. The processing time of the contour to be matched is calculated based on the contour surface of the part to be matched. The matching unit performs similarity processing on the element parameters to be matched and the element parameters corresponding to the part model to determine the similarity value corresponding to the part model. The part model is all or part of the part models in the preset part model library. The similarity value is the ratio of the total number of identical elements between the part to be matched and the part model to the total number of elements of the part model. The calculation unit is used to determine the similarity value corresponding to the part model by performing similarity processing based on the processing time of the contour to be matched, the parameters of the elements to be matched, and the similarity element value. The determining unit determines the target part model that matches the part model to be matched based on the similarity value according to preset rules.

9. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-7.

10. A storage medium, characterized in that, The storage medium stores a computer program, which includes program instructions that, when executed by a processor, can implement the method as described in any one of claims 1-7.