Inspection methods and related equipment for hardware components
By identifying and comparing the attribute features of hardware components, design errors in mold design are automatically detected, solving the problem of low efficiency in hardware component inspection in existing technologies and achieving rapid and accurate identification and correction of design errors.
Patent Information
- Application Number
- CN202211635490.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-19
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2042-12-19
AI Technical Summary
In existing technologies, the inspection of design errors in hardware components is inefficient and prone to omissions, especially in CAD mold design where it is difficult to quickly and accurately identify and correct missing, specification, and positional errors.
By identifying the hardware elements in the mold drawing, obtaining their attribute characteristics, determining the category and filtering key features, comparing them based on preset mold design rules, automatically detecting design errors, and marking the error information in the mold drawing.
It enables automatic, rapid, and accurate detection of design errors in hardware components, improving detection efficiency, reducing labor costs, and ensuring design accuracy.
Smart Images

Figure CN116305603B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mold design technology, and in particular to methods and equipment for testing hardware parts. Background Technology
[0002] Computer-aided design (CAD) mold design often involves the design of hardware components, such as screws, springs, and retaining pins. For design errors in hardware components in CAD mold drawings, such as missing parts, incorrect specifications, and incorrect placement, the industry typically uses manual visual inspection. However, manual visual inspection suffers from low efficiency and a high risk of missing components. Summary of the Invention
[0003] In view of the problems existing in the prior art, this application provides a method and related equipment for detecting hardware parts.
[0004] This application provides a method for detecting hardware component elements, including:
[0005] Identify the hardware elements in the mold drawing and obtain the attribute features of the hardware elements;
[0006] The category of the hardware component is determined based on its attribute characteristics;
[0007] The attribute features of the hardware components are filtered to determine the key features of the hardware components.
[0008] Based on preset mold design rules, the key features of hardware elements of the same category are compared to determine whether there are design errors in the hardware elements of the same category.
[0009] In some embodiments, the mold drawing includes at least one layer;
[0010] Before identifying the hardware elements in the mold drawing, the method further includes:
[0011] Obtain the identification information of the hardware component graphic elements to be identified;
[0012] The identification of hardware elements in the mold drawing includes:
[0013] The identification information of the hardware element is searched in each layer of the mold drawing to identify the hardware element.
[0014] In some embodiments, the attribute features include at least the element name of the hardware element;
[0015] The step of determining the category of the hardware component based on its attribute characteristics includes:
[0016] Based on the graphic element name, the category of the hardware graphic element is determined.
[0017] In some embodiments, the step of filtering the attribute features of the hardware component elements to determine the key features of the hardware component elements includes:
[0018] The attribute features of the hardware components are filtered based on their categories to determine their key features.
[0019] In some embodiments, determining whether a design error exists in obtaining the hardware elements of the same category includes:
[0020] If the comparison results meet the preset mold design rules, the detection result of the hardware elements of the same category is that no design error has occurred;
[0021] If the comparison result does not conform to the preset mold design rules, the detection result of the hardware element of the same category is that a design error has occurred.
[0022] In some embodiments, the method further includes:
[0023] If the detection result of hardware elements of the same category shows a design error, the design information of the hardware element with the design error is obtained; the design information includes at least the error type of the design error.
[0024] The design information is indicated in the mold drawing.
[0025] In some embodiments, the design information further includes the location information of the hardware element in which the design error occurred;
[0026] The step of marking the feature information in the mold drawing includes:
[0027] The design information is marked based on the location information.
[0028] In some embodiments, the error type of the design error is determined by the following:
[0029] If the comparison result does not conform to the preset mold design rules due to the lack of hardware elements, the error type of the design error is determined to be a design omission.
[0030] If the comparison result does not conform to the preset mold design rules and the diameter of the hardware part is abnormal, the error type of the design error is determined to be a specification design error.
[0031] If the comparison result does not conform to the preset mold design rules, and the center point of the hardware element's position coordinates is abnormal, the error type of the design error is determined to be hardware design misalignment.
[0032] In some embodiments, the attribute features include at least one of the following:
[0033] Element name;
[0034] Linear;
[0035] Layers;
[0036] color;
[0037] Location coordinates center point;
[0038] Diameter size;
[0039] The graphic element name and the line type are used to identify hardware graphic elements and determine their classification; the layer and the color are used to determine the classification of hardware graphic elements; the center point of the position coordinates and the diameter are used to determine the key features of the hardware graphic elements.
[0040] In some embodiments, the preset mold design rules are mold design rules that set the association between the category of the hardware element and the key features of the hardware element and the layer where the hardware element is located.
[0041] This application also provides a detection system for hardware component drawings, including:
[0042] The first acquisition module is used to identify the hardware elements in the mold drawing and acquire the attribute features of the hardware elements;
[0043] The first determining module is used to determine the category of the hardware component based on the attribute characteristics of the hardware component.
[0044] The second determining module is used to filter the attribute features of the hardware graphic elements and determine the key features of the hardware graphic elements.
[0045] The comparison module is used to compare the key features of hardware elements of the same category based on preset mold design rules to determine whether there are design errors in the hardware elements of the same category.
[0046] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the detection method for hardware elements as described in any of the above.
[0047] This application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the detection method for hardware elements as described in any of the above claims.
[0048] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the detection method for hardware elements as described in any of the above claims.
[0049] The hardware component detection method and related equipment provided in this application obtain the attribute features of the hardware component, filter the attribute features of the hardware component to obtain the key features of the hardware component, compare the key features of hardware components of the same category, and realize the automatic, fast and accurate detection of design errors of hardware components in the mold drawing based on the comparison results and the conformity with the preset mold design rules. Attached Figure Description
[0050] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0051] Figure 1 This is a flowchart illustrating the detection method for hardware components provided in the embodiments of this application;
[0052] Figure 2 This is a schematic diagram of hardware element recognition provided in the embodiments of this application;
[0053] Figure 3 This is a schematic diagram of the classification of hardware components provided in the embodiments of this application;
[0054] Figure 4 This is a schematic diagram of key feature extraction provided in the embodiments of this application;
[0055] Figure 5 This is a comparative diagram of key features provided in the embodiments of this application;
[0056] Figure 6 This is a schematic diagram of the error identification results provided in the embodiments of this application;
[0057] Figure 7 This is one of the schematic diagrams illustrating error markings provided in the embodiments of this application;
[0058] Figure 8 This is the second schematic diagram illustrating the error markings provided in the embodiments of this application;
[0059] Figure 9 This is a schematic diagram of the structure of the detection system for hardware components provided in the embodiments of this application;
[0060] Figure 10 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0061] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0062] Figure 1 This is a flowchart illustrating the detection method for hardware components provided in this application embodiment, as shown below. Figure 1 As shown, this application provides a method for detecting hardware component elements, the method comprising the following steps:
[0063] Step 101: Obtain the hardware elements in the mold drawing and the attribute features of the hardware elements.
[0064] Specifically, the mold drawing can be a CAD mold drawing; the mold drawing can also be a drawing designed by other software with auxiliary design functions, such as Pro / Engineer, UG NX and SolidWorks; the mold drawing can also be a drawing designed by other platforms with CAD modeling functions, such as ANSYS software.
[0065] Mold drawings contain a wide variety of graphic elements. Therefore, it is necessary to identify the hardware graphic elements in the mold drawing to obtain the hardware graphic elements. Hardware graphic elements refer to the hardware parts drawn in the mold design drawing, such as screw graphic elements, spring graphic elements, and retaining pin graphic elements.
[0066] Figure 2 This is a schematic diagram of hardware component identification provided in the embodiments of this application, such as... Figure 2 As shown, the mold drawing has layers 1, 2, and 3. Hardware element identification is performed on layers 1, 2, and 3 respectively. Hardware elements 1_A1, 1_B1, and 1_C1 are identified in layer 1 of the mold drawing; hardware elements 2_A1, 2_B1, and 2_C1 are identified in layer 2 of the mold drawing; and hardware elements 3_A1 and 3_B1 are identified in layer 3 of the mold drawing. Therefore, the hardware elements identified in the mold drawing are 1_A1, 1_B1, 1_C1, 2_A1, 2_B1, 2_C1, 3_A1, and 3_B1.
[0067] In some embodiments, the mold drawing includes at least one layer;
[0068] Before identifying the hardware elements in the mold drawing, the method further includes:
[0069] Obtain the identification information of the hardware component graphic elements to be identified;
[0070] The identification of hardware elements in the mold drawing includes:
[0071] The identification information of the hardware element is searched in each layer of the mold drawing to identify the hardware element.
[0072] Specifically, the mold drawing can have one or more layers. For example, the mold drawing includes: DB layer (lower template layer), CB layer (lower backing plate layer), and DD layer (lower mold base layer).
[0073] The identification information for hardware components is used to identify components in a mold drawing as hardware components. This identification information can be the component's name or its identifier. , ID), line type of hardware components, etc.
[0074] Search for the identification information of hardware components in each layer of the mold drawing. The components corresponding to the searched identification information are the identified hardware components.
[0075] To facilitate understanding, the following example illustrates the process of identifying hardware component elements:
[0076] For example, elements with the name "CHK" are guide pillars in the hardware, elements with the name "WJ_GD" are retaining pins in the hardware, and elements with the name "WJ_CT" are screws in the hardware. Searching for "CHK", "WJ_GD", and "WJ_CT" in each layer of the mold drawing identifies the guide pillars, retaining pins, and screws in the mold drawing.
[0077] For example, when designing a mold, an ID is assigned to each graphic element. The IDs of the hardware elements are searched in each layer of the mold drawing to identify the hardware elements in the mold drawing.
[0078] For example, the line types of hardware components are dotted lines, dashed lines, and solid lines. The search for "dotted lines", "dashed lines", and "solid lines" is conducted in each layer of the mold drawing to identify the hardware components in the mold drawing.
[0079] The hardware component detection method provided in this application embodiment achieves rapid and accurate identification of hardware component components in mold drawings by searching for their identification information.
[0080] After identifying the hardware elements in the mold drawing, the attribute characteristics of the identified hardware elements are collected.
[0081] In some embodiments, the attribute characteristics of hardware elements may include element name, line type, layer, color, center point position coordinates, and diameter.
[0082] Step 102: Determine the category of the hardware element based on its attribute characteristics.
[0083] Specifically, hardware components have a variety of different attribute characteristics, and based on these different attribute characteristics, hardware components can be divided into different categories.
[0084] Based on the different names of the hardware elements, the hardware elements can be divided into different hardware components. For example, based on "CHK", "WJ_GD", and "WJ_CT", the hardware elements can be divided into guide posts, fixing pins, and screws.
[0085] Based on the different line types of hardware elements, hardware elements can be divided into different types of hardware. For example, elements with dotted lines represent screws, elements with dashed lines represent guide posts, and elements with solid lines represent fixing pins.
[0086] Based on the different colors of the hardware elements, the hardware elements can be divided into different hardware components. For example, yellow elements represent screws, red elements represent guide posts, and green elements represent retaining pins.
[0087] Based on the different layers in which the hardware components are located, the hardware components can be divided into components of different layers. For example, based on "DB", "CB" and "DD", the hardware components can be divided into lower template layer components, lower backing plate layer components and lower mold base layer components.
[0088] In some embodiments, the attribute features include at least the element name of the hardware element;
[0089] The step of determining the category of the hardware component based on its attribute characteristics includes:
[0090] Based on the graphic element name, the category of the hardware graphic element is determined.
[0091] Specifically, classifying hardware elements based on their names allows for the categorization of hardware elements into different types. This classification method fundamentally distinguishes hardware elements and facilitates subsequent detection of design errors in hardware elements according to their different categories.
[0092] Figure 3 This is a schematic diagram of the classification of hardware components provided in the embodiments of this application, such as... Figure 3 As shown, the names of the hardware elements in layer 1 of the mold drawing are 1_A1, 1_B1, and 1_C1, respectively; the names of the hardware elements in layer 2 of the mold drawing are 2_A1, 2_B1, and 2_C1, respectively; and the names of the hardware elements in layer 3 of the mold drawing are 3_A1 and 3_B1, respectively. Based on the element names, 1_A1, 2_A1, and 3_A1 are grouped into one category; 1_B1, 2_B1, and 3_B1 are grouped into another category; and 1_C1 and 2_C1 are grouped into another category.
[0093] Step 103: Filter the attribute features of the hardware component to determine the key features of the hardware component.
[0094] After obtaining the attribute features of the hardware component, various attribute features can be filtered. The filtering criteria can be the importance of the attribute features or other suitable methods. The filtered attribute features are then used as the key features of the hardware component. Key features of hardware components include location information, dimensional information, etc. For example, the coordinates of the center point and the diameter of the hardware component.
[0095] In some embodiments, the step of filtering the attribute features of the hardware component elements to determine the key features of the hardware component elements includes:
[0096] The attribute features of the hardware components are filtered based on their categories to determine their key features.
[0097] Specifically, different categories of hardware elements may have different attribute characteristics. For different categories of hardware elements, the importance of the same attribute characteristics may also be different. Therefore, the attribute characteristics of hardware elements can be filtered according to category. After filtering, the key characteristics of hardware elements of the same category are the same.
[0098] For example, for a hardware element of category 1, the attribute features are A, B, C, D, E, and F. After filtering by importance, the key features are A, B, and C. For a hardware element of category 2, the attribute features are A, B, D, E, and F. After filtering by importance, the key features are A, B, and D. For a hardware element of category 3, the attribute features are A, D, E, and F. After filtering by importance, the key features are A, D, and E.
[0099] Figure 4 This is a schematic diagram of key feature extraction provided in the embodiments of this application, such as... Figure 4As shown, key features a1, b1, and c1 were extracted from hardware element 1_A1, 2_A1, and 3_A1; key features a2, b2, and c2 were extracted from hardware element 1_B1 and 2_B1; key features a2, b2, and c9 were extracted from hardware element 3_B1; and key features a3, b3, and c3 were extracted from hardware element 1_C1 and 2_C1.
[0100] The hardware component detection method provided in this application method filters the attribute features of hardware component components according to their categories to obtain different key features, thereby improving the accuracy of detecting design errors in hardware component components.
[0101] Step 104: Based on the preset mold design rules, compare the key features of hardware elements of the same category to determine whether there are design errors in the hardware elements of the same category.
[0102] Specifically, the key features of hardware elements within the same category are first compared to obtain the comparison results. The comparison results can show that the key features are consistent, or they can show that they are inconsistent, indicating the presence of abnormal data. Next, the comparison results are checked to see if they conform to the preset mold design rules, thus obtaining a detection result indicating whether there are design errors in the hardware elements of the same category.
[0103] In some embodiments, the preset mold design rules are mold design rules that set the association between the category of the hardware element and the key features of the hardware element and the layer where the hardware element is located.
[0104] Specifically, preset mold design rules can be mold design rules that define the relationship between the category of hardware elements and the key features of the hardware elements. For example, a preset mold design rule could be that when the hardware elements are of the same category, the center point coordinates of the elements in each layer are the same, and their diameters are similar.
[0105] Preset mold design rules can be used to define the categories of hardware elements and the relationships between the layers in which the hardware elements are located. For example, layers DB, CB, and DD all contain guide pillars, fixing pins, and screws.
[0106] Figure 5 This is a comparative diagram of key features provided in the embodiments of this application, such as... Figure 5As shown, the key features a1, b1, and c1 of hardware element 1_A1, the key features a1, b1, and c1 of 2_A1, and the key features a1, b1, and c1 of 3_A1 are compared; the key features a2, b2, and c2 of hardware element 1_B1, the key features a2, b2, and c2 of 2_B1, and the key features a2, b2, and c9 of 3_B1 are compared; the key features a1, b1, and c1 of hardware element 1_A1, the key features a1, b1, and c1 of 2_A1, and the key features a1, b1, and c1 of 3_A1 are compared; and the key features a3, b3, and c3 of hardware element 1_C1 and the key features a3, b3, and c3 of 2_C1 are compared.
[0107] In some embodiments, determining whether a design error exists in obtaining the hardware elements of the same category includes:
[0108] If the comparison results meet the preset mold design rules, the detection result of the hardware elements of the same category is that no design error has occurred;
[0109] If the comparison result does not conform to the preset mold design rules, the detection result of the hardware element of the same category is that a design error has occurred.
[0110] Specifically, the key features of hardware elements of the same category are compared, and the comparison results are checked to see if the comparison results are consistent with the preset mold design rules. If the comparison results are consistent with the preset mold design rules, it indicates that there is no design error in the hardware elements of the same category. If the comparison results are inconsistent with the preset mold design rules, it indicates that there is a design error in the hardware elements of the same category.
[0111] For example, the key features of screws, springs and retaining pins are extracted in the DB layer, CB layer and DD layer respectively. The key features are the center point position coordinates and diameter.
[0112] The fixed pin primitives extracted from the DB, CB, and DD layers are WJ_GD_DB_C1, WJ_GD_CB_C1, and WJ_GD_DD_C1. The center point coordinates of WJ_GD_DB_C1 are (4448.6, -63.7187), and the diameter is 10.
[0113] The screw primitives extracted from the DB, CB, and DD layers are WJ_CT_DB_B7, WJ_CT_CB_B7, and WJ_CT_DD_B7. The center point coordinates of WJ_CT_DB_B7 are (4840.6, -61.7187), and the diameter is 10. The center point coordinates of WJ_CT_CB_B7 are (4840.6, -61.7187), and the diameter is 10. The center point coordinates of WJ_CT_DD_B7 are (4834.18, -61.7187), and the diameter is 10.
[0114] The guide pillar primitives extracted in the DB and CB layers are CHK_33-99_DB_A1 and CHK_33-99_CB_A1, respectively. No guide pillar primitives were extracted in the DD layer. The coordinates of CHK_33-99_DB_A1 are (5610.6 -48.7187), and its diameter is 39.99. The coordinates of CHK_33-99_CB_A1 are (5610.6 -48.7187), and its diameter is 39.99.
[0115] The preset mold design rules can be that when the hardware parts are of the same type, the center point coordinates of the graphic elements in each layer are the same, the diameters are equal, and the DB, CB and DD layers all contain guide pillars, fixing pins and screws.
[0116] The center point coordinates and diameter of the three graphic elements WJ_GD_DB_C1, WJ_GD_CB_C1 and WJ_GD_DD_C1 were compared. The comparison results showed that the center point coordinates of the three graphic elements were consistent and the diameters were equal. This comparison result conforms to the preset mold design rules and no hardware graphic element design error was found.
[0117] The center point coordinates and diameter of the three graphic elements WJ_CT_DB_B7, WJ_CT_CB_B7, and WJ_CT_DD_B7 were compared. The comparison result showed that the center point coordinates of the graphic element WJ_CT_DD_B7 were inconsistent with the center point coordinates of the other two graphic elements. This comparison result did not conform to the preset mold design rules, and a design error was detected in the graphic element WJ_CT_DD_B7.
[0118] The center point coordinates and diameter of the two graphic elements CHK_33-99_DB_A1 and CHK_33-99_CB_A1 are compared. The comparison results show that the center point coordinates of the two graphic elements are the same and the diameters are equal. This comparison result does not conform to the preset mold design rules, and a design error is detected in the DD layer.
[0119] Figure 6 This is a schematic diagram of the error detection results provided in the embodiments of this application, such as... Figure 6 As shown, the error detection results indicate that there are two design errors, namely ERROR1 and ERROR2. ERROR1 is that the key feature c9 of 3_B1 is abnormal data, and ERROR2 is that the hardware element is missing in layer 3. The coordinates of ERROR1 in the mold drawing are (x1, y1, z1), and the coordinates of ERROR2 in the CAD mold drawing are (x2, y2, z2).
[0120] The hardware component detection method provided in this application can automatically, quickly and accurately detect design errors of hardware component components in mold drawings based on the comparison results and the consistency with preset mold design rules.
[0121] Hardware components in molds serve functions such as locking, guiding, and positioning. Reducing hardware component design errors can greatly reduce the occurrence of production accidents.
[0122] In some embodiments, the method for detecting the hardware component elements further includes:
[0123] If the detection result of hardware elements of the same category shows a design error, the design information of the hardware element with the design error is obtained; the design information includes at least the error type of the design error.
[0124] The design information is indicated in the mold drawing.
[0125] Specifically, when the test results of hardware elements of the same category indicate that a design error has occurred, the design information of the hardware elements with the design error is collected and recorded.
[0126] The design information should include at least the error type for the design error. Error types include omissions in design, misalignment of hardware components, and specification design errors. Specifically, NULL corresponds to omissions in design, abnormal coordinate values correspond to misalignment of hardware components, and inconsistent diameters correspond to specification design errors.
[0127] In some embodiments, the error type of the design error is determined by the following:
[0128] If the comparison result does not conform to the preset mold design rules due to the lack of hardware elements, the error type of the design error is determined to be a design omission.
[0129] If the comparison result does not conform to the preset mold design rules and the diameter of the hardware part is abnormal, the error type of the design error is determined to be a specification design error.
[0130] If the comparison result does not conform to the preset mold design rules and the center point coordinates of the hardware element are abnormal, the error type of the design error is determined to be hardware design deviation.
[0131] Specifically, in the event of a design error, the type of design error can be determined based on the reason why the comparison results do not conform to the preset mold design rules.
[0132] For example, if the comparison result does not conform to the preset mold design rules because a certain type of hardware element is missing in a certain layer, then the error type of the design error is determined to be omission design.
[0133] For example, if the comparison result does not conform to the preset mold design rules, the reason is that the diameter of a certain hardware element in a certain category is abnormal. In this case, the error type is determined to be a specification design error.
[0134] For example, if the comparison result does not conform to the preset mold design rules, the reason is that the center point coordinate of a certain hardware element in a certain category is abnormal. Then, the error type of the design error is determined to be hardware design deviation.
[0135] Design information may also include the hardware type, location information, and layer information of the hardware element corresponding to the hardware element for which the design error occurred.
[0136] Design information is marked on the mold design drawings to facilitate modifications by designers. Once the designers have corrected the design errors, the markings will be removed.
[0137] The hardware component inspection method provided in this application marks the design information, including at least the error type of the design error, in the mold design drawing, which facilitates the modification by the designer and improves the modification efficiency and accuracy.
[0138] In some embodiments, the design information further includes the location information of the hardware element in which the design error occurred;
[0139] The step of marking the design information in the mold drawing includes:
[0140] The design information is marked based on the location information.
[0141] Specifically, when the design information includes the location information of the hardware element in which the design error occurred, the design information will be marked at the location corresponding to that location information.
[0142] The labeling method can be to label one or more pieces of information from the design information. For example, the hardware type and layer information corresponding to the hardware element with the design error can be labeled; another example is to label the error type of the design error, the hardware type and layer information corresponding to the hardware element with the design error.
[0143] Figure 7 This is one of the schematic diagrams illustrating error markings provided in the embodiments of this application, such as... Figure 7 As shown, the small rectangle indicates the coordinates of the error location, "MB" indicates the template layer where the error occurred, and "WJ" indicates the type of hardware component that is faulty. "MB" and "WJ" are prominently marked near the small rectangle.
[0144] For example, there are two design errors, ERROR1 and ERROR2. The information for the design error corresponding to ERROR1 includes: the incorrect hardware type is screw, the coordinates of the location where the error occurred are (4834.18, -61.7187, 0), the layer where the error occurred is DD layer, and the error type is design misalignment. The information for the design error corresponding to ERROR2 includes: the incorrect hardware type is guide post, the coordinates of the location where the error occurred are (5610.6, -48.7187, 0), the layer where the error occurred is DD layer, and the error type is omission. Figure 8 This is the second schematic diagram illustrating error markings provided in the embodiments of this application, such as... Figure 8 As shown, the layer information where the error occurred and the type of the faulty hardware are marked at the location where the error occurred.
[0145] The hardware component detection method provided in this application marks the design information at the location corresponding to the hardware component where the design error occurs, avoiding the need for designers to search for the location of the design error, making the design error clear and obvious, and reducing the labor cost of mold design.
[0146] Figure 9 This is a schematic diagram of the structure of the detection system for hardware components provided in the embodiments of this application, as shown below. Figure 9 As shown, this application also provides a system for identifying design errors in hardware component drawings, including: a first acquisition module 901, a first determination module 902, a second determination module 903, and a comparison module 904. The modules referred to in this application can be a series of computer program instruction segments capable of performing specific functions, or functional modules formed by the cooperation of computer program instruction segments and hardware. The division of modules is a logical functional division, and in actual implementation, there can be other division methods, which this application does not limit. Wherein:
[0147] The first acquisition module 901 is used to identify the hardware elements in the mold drawing and acquire the attribute features of the hardware elements;
[0148] The first determining module 902 is used to determine the category of the hardware component based on the attribute characteristics of the hardware component.
[0149] The second determining module 903 is used to filter the attribute features of the hardware graphic elements and determine the key features of the hardware graphic elements.
[0150] The comparison module 904 is used to compare the key features of hardware elements of the same category based on preset mold design rules to determine whether there are design errors in the hardware elements of the same category.
[0151] In some embodiments, the mold drawing includes at least one layer;
[0152] The system further includes: a second acquisition module, which is used to acquire the identification information of the hardware graphic elements to be identified;
[0153] The acquisition module 901 is specifically used to: search for the identification information of the hardware element in each layer of the mold drawing, and identify the hardware element.
[0154] In some embodiments, the attribute features include at least the element name of the hardware element;
[0155] The first determining module 902 is specifically used to: determine the category of the hardware element based on the element name.
[0156] In some embodiments, the second determining module 903 is specifically used to: filter the attribute features of the hardware element based on the category of the hardware element, and determine the key features of the hardware element.
[0157] In some embodiments, the comparison module 904 is specifically used to: when the comparison result conforms to the preset mold design rules, obtain the detection result of the hardware elements of the same category as having no design error;
[0158] If the comparison result does not conform to the preset mold design rules, the detection result of the hardware element of the same category is that a design error has occurred.
[0159] In some embodiments, the system further includes: a third acquisition module and an identification module; wherein:
[0160] The third acquisition module is used to acquire the design information of the hardware element that has the design error when the detection result of the hardware element of the same category is that a design error has occurred; the design information includes at least the error type of the design error;
[0161] The marking module is used to mark the design information in the mold drawing.
[0162] In some embodiments, the design information further includes the location information of the hardware element in which the design error occurred;
[0163] The marking module is specifically used to mark the design information based on the location information.
[0164] In some embodiments, the system further includes: the third acquisition module further includes a determining unit; the determining unit is configured to:
[0165] If the comparison result does not conform to the preset mold design rules due to the lack of hardware elements, the error type of the design error is determined to be a design omission.
[0166] If the comparison result does not conform to the preset mold design rules and the diameter of the hardware part is abnormal, the error type of the design error is determined to be a specification design error.
[0167] If the comparison result does not conform to the preset mold design rules and the center point coordinates of the hardware element are abnormal, the error type of the design error is determined to be hardware design deviation.
[0168] In some embodiments, the attribute features include at least one of the following:
[0169] Element name;
[0170] Linear;
[0171] Layers;
[0172] color;
[0173] Center point coordinates;
[0174] Diameter size;
[0175] The graphic element name and the line type are used to identify hardware graphic elements and determine their classification; the layer and the color are used to determine the classification of hardware graphic elements; and the center point position coordinates and the diameter are used to determine the key features of the hardware graphic elements.
[0176] In some embodiments, the preset mold design rules are mold design rules that set the association between the category of the hardware element and the key features of the hardware element and the layer where the hardware element is located.
[0177] Specifically, the hardware component detection system provided in this application embodiment can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.
[0178] Figure 10 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application, such as... Figure 10 As shown, the electronic device may include a processor 1010, a communication interface 1020, a memory 1030, and a communication bus 1040, wherein the processor 1010, the communication interface 1020, and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 can call logical instructions in the memory 1030 to execute a method for detecting hardware components. This method includes: identifying hardware components in a mold drawing and obtaining the attribute features of the hardware components; determining the category of the hardware components based on the attribute features; filtering the attribute features of the hardware components to determine the key features of the hardware components; and comparing the key features of hardware components of the same category based on preset mold design rules to determine whether there is a design error in the hardware components of the same category.
[0179] Furthermore, the logical instructions in the aforementioned memory 1030 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a 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, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0180] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the detection method for hardware components provided by the above methods. This method includes: identifying hardware components in a mold drawing and obtaining the attribute features of the hardware components; determining the category of the hardware components based on the attribute features; filtering the attribute features of the hardware components to determine the key features of the hardware components; and comparing the key features of hardware components of the same category based on preset mold design rules to determine whether there is a design error in the hardware components of the same category. Exemplarily, the computer program product can be a program that runs independently on a computer system, or it can be a plug-in to CAD software, etc.
[0181] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements a method for detecting hardware components provided by the methods described above. This method includes: identifying hardware components in a mold drawing and obtaining attribute features of the hardware components; determining the category of the hardware components based on their attribute features; filtering the attribute features of the hardware components to determine their key features; and comparing the key features of hardware components of the same category based on preset mold design rules to determine whether design errors have occurred in the hardware components of the same category.
[0182] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0183] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0184] In the embodiments of this application, the terms "first," "second," etc., are used to distinguish similar objects, and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same class, and the number of objects is not limited; for example, the first object can be one or more.
[0185] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for detecting hardware component drawings, characterized in that, include: The identification information of the hardware component to be acquired is obtained. The identification information of the hardware component is searched in each layer of the mold drawing. The hardware component is identified and its attribute features are obtained. The mold drawing includes at least one layer. The identification information of the hardware component includes the component name, the identifier, and the line type of the hardware component. The category of the hardware component is determined based on its attribute characteristics; Based on the category of the hardware component graphic element, the attribute features of the hardware component graphic element are filtered to determine the key features of the hardware component graphic element; the attribute features include at least one of the following: graphic element name; line type; layer; color; center point position coordinates; diameter; wherein, the graphic element name and the line type are used to identify the hardware component graphic element and determine the classification of the hardware component graphic element; the layer and the color are used to determine the classification of the hardware component graphic element; the center point position coordinates and the diameter are used to determine the key features of the hardware component graphic element; Based on preset mold design rules, the key features of hardware elements of the same category are compared to determine whether there are design errors in the hardware elements of the same category. The preset mold design rules are that when the hardware categories are the same, the center point coordinates of the hardware elements in each layer are the same, the diameter is equal, and / or, the DB layer, CB layer and DD layer all contain guide pillars, fixing pins and screws.
2. The method for detecting hardware components according to claim 1, characterized in that, The attribute features include at least the graphic element name of the hardware component; The step of determining the category of the hardware component based on its attribute characteristics includes: Based on the graphic element name, the category of the hardware graphic element is determined.
3. The method for detecting hardware components according to claim 1, characterized in that, Whether the obtained hardware elements of the same category contain design errors includes: If the comparison results meet the preset mold design rules, the detection result of the hardware elements of the same category is that no design error has occurred; If the comparison result does not conform to the preset mold design rules, the detection result of the hardware element of the same category is that a design error has occurred.
4. The method for detecting hardware components according to claim 1, characterized in that, The method further includes: If the detection result of hardware elements of the same category shows a design error, the design information of the hardware element with the design error is obtained; the design information includes at least the error type of the design error. The design information is indicated in the mold drawing.
5. The method for detecting hardware components according to claim 4, characterized in that, The design information also includes the location information of the hardware component drawing where the design error occurred; The step of marking the design information in the mold drawing includes: The design information is marked based on the location information.
6. The method for detecting hardware components according to claim 4, characterized in that, The error type of the design error is determined by the following: If the comparison result does not conform to the preset mold design rules due to the lack of hardware elements, the error type of the design error is determined to be a design omission. If the comparison result does not conform to the preset mold design rules and the diameter of the hardware part is abnormal, the error type of the design error is determined to be a specification design error. If the comparison result does not conform to the preset mold design rules and the center point coordinates of the hardware element are abnormal, the error type of the design error is determined to be hardware design deviation.
7. The method for detecting hardware components according to claim 1, characterized in that, The preset mold design rules are mold design rules that set the association between the category of hardware elements and the key features of the hardware elements and the layer where the hardware elements are located.
8. A detection system for hardware component drawings, characterized in that, include: The first acquisition module acquires the identification information of the hardware component graphic elements to be acquired. It searches for the identification information of the hardware component graphic elements in each layer of the mold drawing, identifies the hardware component graphic elements, and acquires the attribute features of the hardware component graphic elements. The mold drawing includes at least one layer. The identification information of the hardware component graphic elements includes the graphic element name, the identifier of the hardware component graphic element, and the line type of the hardware component graphic element. The first determining module is used to determine the category of the hardware component based on the attribute characteristics of the hardware component. The second determining module is used to filter the attribute features of the hardware component elements based on their category, and determine the key features of the hardware component elements; the attribute features include at least one of the following: element name; line type; layer; color; center point position coordinates; diameter; wherein, the element name and the line type are used to identify the hardware component elements and determine their category; the layer and the color are used to determine the category of the hardware component elements; the center point position coordinates and the diameter are used to determine the key features of the hardware component elements; The comparison module is used to compare the key features of hardware elements of the same category based on preset mold design rules to determine whether there are design errors in the hardware elements of the same category. The preset mold design rules are that when the hardware categories are the same, the center point coordinates of the hardware elements in each layer are the same, the diameter is equal, and / or the DB layer, CB layer and DD layer all contain guide pillars, fixing pins and screws.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for inspecting hardware elements as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the detection method for hardware element design as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Automatic inspection system and method for punching mold part
CN101430725A
System and method for inspecting the parts of the stamping mold
TW200923706A
