Method for measuring a part based on multiple layers, computer device and storage medium
The measurement system, which imports multiple layers, generates multi-layer measurement templates, solving the problems of cumbersome operation and time consumption caused by single-layer import in existing technologies. This enables fast and accurate measurement of part machining precision and detection of multiple geometric features.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHOTEST TECH INC
- Filing Date
- 2022-07-15
- Publication Date
- 2026-06-09
AI Technical Summary
In existing technologies, measurement methods based on single-layer import require multiple imports of CAD drawings when processing multiple geometric features, resulting in cumbersome and time-consuming operations, and making it impossible to quickly and accurately determine the machining accuracy of parts.
The measurement system, which uses a multi-layer import mechanism, parses drawings through a feature extraction module, creates multiple layers with different environmental parameters through a layer setting module, synchronizes geometric features to each layer through a feature editing module, performs coordinate transformation through a part alignment module, and determines machining accuracy through a matching module. Finally, it generates a multi-layer measurement template and performs rapid measurement.
It enables rapid and accurate measurement of part machining precision, supports batch inspection of multiple geometric features, and improves measurement efficiency and accuracy.
Smart Images

Figure CN122176331A_ABST
Abstract
Description
[0001] This application is a divisional application of the patent application filed on July 15, 2022, with application number 2022108321077, entitled "Measurement System and Measurement Method for Multi-Layer Import". Technical Field
[0002] This invention relates to the intelligent manufacturing equipment industry, specifically to a method, computer equipment, and storage medium for measuring parts based on multiple layers. Background Technology
[0003] Computer numerical control (CNC) machining is a type of precision machining based on computer digital control. It uses CAD drawings designed with computer-aided design (CAD) software to generate CNC programs and perform part machining.
[0004] Generally, measuring equipment with two-dimensional and / or three-dimensional measurement capabilities is used in conjunction with CAD drawings to analyze parts and determine whether the machined parts are qualified, that is, whether the accuracy of the machined parts meets the design requirements of the CAD drawings. In existing technology, CAD drawings are typically imported as a single layer to generate a measurement template with a single layer for part analysis. The CAD drawings are imported into the measuring equipment, their geometric features are extracted, layers are created, and the geometric features to be measured are assigned to the layers to obtain a measurement template with a single layer. The measuring equipment then measures and analyzes the parts based on this single-layer measurement template to determine whether the machining accuracy of the parts meets the requirements.
[0005] However, for different types of geometric features, to accurately measure the corresponding information on the part, different environmental parameters need to be set for measuring the part. Since the existing technology only has single-layer import, when the number of geometric features included in the CAD drawing is large, if it is necessary to completely measure whether the machining accuracy of the information corresponding to all geometric features on the part meets the design requirements, the CAD drawing needs to be imported into the measuring device multiple times and the above process needs to be repeated, which is time-consuming and the operation steps are too cumbersome. Summary of the Invention
[0006] The present invention is proposed in view of the above-mentioned state of the prior art, and its purpose is to provide a measurement system and measurement method that can generate multi-layer measurement templates and quickly measure whether the machining accuracy of a part meets the preset requirements based on the multi-layer measurement templates.
[0007] The first aspect of this invention provides a multi-layer import measurement system, comprising: a processing device for processing data from a drawing of a part, and a measurement device for obtaining a captured image of the part. The processing device includes a feature extraction module, a layer setting module, a feature editing module, a part alignment module, and a matching module. The feature extraction module is configured to extract geometric features from the drawing; the layer setting module is configured to create multiple layers, each layer having different environmental parameters; the feature editing module is configured to synchronize at least one geometric feature to each layer based on a preset rule; the part alignment module is configured to create a first coordinate system located on the drawing and a second coordinate system located on the captured image, and to perform coordinate transformation on the geometric features of each layer based on the first and second coordinate systems to obtain a measurement template including each layer; the matching module is configured to determine whether the machining accuracy of the part meets preset requirements based on the measurement template.
[0008] According to the multi-layer import measurement system of the present invention, the feature extraction module can parse the drawing to extract the geometric features of the drawing. Then, the layer setting module can create multiple layers with different environmental parameters. The feature editing module can synchronize at least one geometric feature to each layer based on preset rules. The part alignment module can create a first coordinate system located on the drawing and a second coordinate system of the captured image, and can perform coordinate transformation on the geometric features of each layer based on the first coordinate system and the second coordinate system to obtain a measurement template including each layer. Thus, a measurement template including multiple layers can be generated based on the drawing, and the part can be quickly and accurately measured based on the measurement template to determine whether the machining accuracy of the part is qualified. Furthermore, the multi-layer import measurement system of the present invention can realize batch detection of multiple types of geometric features.
[0009] Furthermore, in the multi-layer import measurement system according to the first aspect of the present invention, optionally, the feature extraction module is further configured to obtain stitching information of the measurement area, and the measuring device measures the part based on the stitching information to obtain the captured image. In this case, the measuring device stitches together images obtained by taking multiple shots within the shooting area based on the stitching information, which is beneficial for obtaining a complete captured image of the part by image stitching when the area of the measurement area is large.
[0010] Furthermore, in the multi-layer import measurement system according to the first aspect of the present invention, optionally, the measuring device includes an adjustment module and an imaging module. The adjustment module is configured to adjust the imaging environment of the part based on different environmental parameters, and the imaging module takes multiple pictures of the part to obtain multiple images corresponding one-to-one with the multiple layers. In this case, the measurement system obtains multiple images corresponding one-to-one with the multiple layers and compares the edge contours corresponding to the geometric features in each image with the geometric features, thereby facilitating the determination of whether the machining accuracy of the part meets the preset requirements.
[0011] Furthermore, in the multi-layer import measurement system according to the first aspect of the present invention, optionally, the multiple captured images include a first captured image for creating the second coordinate system and multiple second captured images for determining the machining accuracy, wherein the number of the multiple second captured images is not less than the number of layers. In this case, each second captured image can have a corresponding layer, and by sequentially identifying and measuring each second captured image based on the layer features of each layer, a complete measurement of the part can be achieved.
[0012] Furthermore, in the multi-layer import measurement system according to the first aspect of the present invention, optionally, the environmental parameters include at least one of a light source, exposure time, and Z-axis position. Thus, by setting different light sources, exposure times, and Z-axis positions, each layer can have different environmental parameters.
[0013] Furthermore, in the multi-layer import measurement system according to the first aspect of the present invention, optionally, coordinate transformation is performed on the geometric features of each layer based on the first coordinate system and the second coordinate system to obtain layer features corresponding one-to-one with the geometric features, and a measurement template having each layer is formed. In some examples, coordinate transformation can be performed on the geometric features of each layer based on the first coordinate system and the second coordinate system to obtain layer features corresponding one-to-one with the geometric features, and a measurement template having each layer is formed. In this case, the drawing composed of the layer features obtained by coordinate transformation of the geometric features of each layer can match the position of the captured image, that is, the positional relationship can be the same, which facilitates subsequent direct measurement of the part based on the measurement template to determine whether the machining accuracy of the part meets the preset requirements, thereby improving the measurement efficiency of the measurement system for the part.
[0014] Furthermore, in the multi-layer import measurement system according to the first aspect of the present invention, optionally, a first coordinate system is created based on a first feature group or a second feature group of the geometric features; a first image feature group matching the first feature group or a second image feature group matching the second feature group is obtained in the first captured image; and a second coordinate system is created based on the first image feature group or the second image feature group. The first feature group includes points and lines, and the second feature group includes lines and lines. In this case, the reference objects for establishing the first coordinate system and the reference objects for establishing the second coordinate system can correspond, thereby making it easier to obtain the coordinate transformation principle required for coordinate transformation of the geometric features of each layer.
[0015] Furthermore, in the multi-layer import measurement system according to the first aspect of the present invention, optionally, the processing device includes an identification module, which is configured to identify the first captured image to obtain a first image feature group or a second image feature group, and to identify the plurality of second captured images to obtain image features, wherein the position of the image features matches the position of the layer features. In this case, when measuring a part based on a measurement template, the measurement device sets different shooting environments for the part based on the environmental parameters of each layer of the measurement template to obtain multiple second captured images. The identification module can then identify the multiple second captured images to obtain image features corresponding to the layer features of each layer. Since the position of the image features matches the position of the layer features, the image features and layer features can be directly compared.
[0016] Furthermore, in the multi-layer import measurement system according to the first aspect of the present invention, optionally, the matching module is configured to determine whether the machining accuracy of the part meets preset requirements based on the degree of difference between the image features and the layer features. In this case, after matching the image features and layer features one by one, using the layer features as the judgment benchmark, it is possible to quickly determine whether the image features are within the error range, and thus determine whether the machining accuracy of the part meets the preset requirements.
[0017] A second aspect of the present invention provides a measurement method for importing multiple layers, the measurement method comprising: extracting geometric features from a drawing; creating multiple layers and setting environmental parameters for the multiple layers, and assigning at least one of the geometric features to each of the multiple layers according to a preset rule; creating a first coordinate system located on the drawing, taking a picture of a part matching the drawing to obtain a picture image of the part, and creating a second coordinate system located on the picture image; performing coordinate transformation on the geometric features of each layer based on the first coordinate system and the second coordinate system to obtain a measurement template including each layer; and determining whether the machining accuracy of the part meets preset requirements based on the measurement template.
[0018] According to the present invention, a measurement system and method are provided that can generate a multi-layered measurement template and quickly measure whether the machining accuracy of a part meets the preset requirements based on the multi-layered measurement template. Attached Figure Description
[0019] The invention will now be explained in further detail by way of example only with reference to the accompanying drawings.
[0020] Figure 1 This is a schematic diagram illustrating a scenario of the measurement system involved in this embodiment example.
[0021] Figure 2 This is a block diagram illustrating the structure of the measurement system involved in this embodiment example.
[0022] Figure 3 This is a schematic diagram showing the drawings involved in this embodiment example.
[0023] Figure 4 This is a schematic diagram showing the display interface of the feature extraction module involved in this embodiment example.
[0024] Figure 5 This is a schematic diagram illustrating the splicing information involved in this embodiment example.
[0025] Figure 6 This is a schematic diagram illustrating the coordinate transformation principle involved in this embodiment example.
[0026] Figure 7 This is a flowchart illustrating the measurement method involved in this embodiment example.
[0027] Figure 8 This is a flowchart illustrating step S400 involved in this embodiment example.
[0028] Figure 9 This is a flowchart illustrating step S600 involved in this embodiment example. Detailed Implementation
[0029] Hereinafter, preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In the following description, the same reference numerals are used for the same components, and repeated descriptions are omitted. Furthermore, the drawings are merely schematic diagrams, and the proportions of the components or the shapes of the components may differ from actual figures.
[0030] It should be noted that the terms "comprising" and "having" and any variations thereof in this disclosure, such as a process, method, system, product, or device that includes or has a series of steps or units, are not necessarily limited to those steps or units that are explicitly listed, but may include or have other steps or units that are not explicitly listed or that are inherent to such processes, methods, products, or devices.
[0031] Furthermore, the subheadings and similar terms used in the following description of this disclosure are not intended to limit the content or scope of this disclosure; they are merely intended to serve as reading prompts. Such subheadings should not be construed as dividing the content of the article, nor should the content under a subheading be limited to the scope of that subheading.
[0032] This disclosure relates to a multi-layer import measurement system and method, which can generate multi-layer measurement templates based on drawings and determine whether the machining accuracy of parts is up to standard based on these templates. The measurement system and method designed in this embodiment can quickly and accurately measure whether the machining accuracy of parts meets the requirements. Furthermore, the multi-layer import measurement system and method of this embodiment can achieve batch inspection of multiple geometric features.
[0033] The multi-layer import measurement system and method described in this embodiment can also be referred to as, for example, a system and method for importing drawings into a measuring device, or a measurement system and method with multi-layer comparison, etc. It should be noted that these names are used to indicate the multi-layer import measurement system and method described in this embodiment and should not be construed as limiting.
[0034] Figure 1 This is a schematic diagram illustrating a scenario of the measurement system 1 involved in this embodiment example. Figure 2 This is a block diagram illustrating the structure of the measurement system 1 according to this embodiment example.
[0035] This embodiment provides a multi-layered measurement system 1, hereinafter referred to as the measurement system 1. In this embodiment, drawings can be imported into the measurement system 1. The measurement system 1 processes the data from the drawings and outputs a multi-layered measurement template. Then, the measurement system 1 can analyze the part 30 processed according to the drawings based on the multi-layered measurement template to determine whether the processing accuracy of the part 30 meets preset requirements. In some examples, the measurement system 1 can be any system relying on computer screen measurement technology and possessing spatial geometric calculation capabilities. In particular, the measurement system 1 can be any system applied to two-dimensional plane measurement. For example, the measurement system 1 can be as follows: Figure 1 The image measuring instrument shown is an example of a measurement system. However, this embodiment is not limited to this; the measuring system 1 can be any system used to measure the two-dimensional dimensions of part 30. In other examples, the measuring system 1 can also be any system applied to the purpose of three-dimensional planar measurement. For example, it can be an instrument such as a flash measuring instrument, a profile measuring instrument, or a microscopic topography measuring instrument.
[0036] The measurement system 1 involved in this embodiment may include a processing device 10 and a measuring device 20 (see...). Figure 1 The processing device 10 can be used to process the data of the drawing. The measuring device 20 can be used to obtain a photographic image of the part 30. It should be noted that the drawing and the part 30 are matched. In other words, the part 30 is manufactured according to the drawing, that is, the processing device 10 can be used to process the data of the drawing of the part 30.
[0037] In some examples, the drawings may have a specific format. In some examples, this specific format may include DXF format. DXF format typically refers to a CAD data file format used for data exchange between AutoCAD and other software. Drawings based on DXF format can generate CNC assembly language for CNC machining, and then CNC machine tools can machine part 30 based on this CNC assembly language. In some examples, the drawings may have geometric features used to form the graphics. For example, the drawings may have points and / or lines, and the connections between points and lines form the outline or appearance of the desired part.
[0038] In this embodiment, the measurement system 1 can be used to import multiple layers of drawings with a specific format. In some examples, multi-layer import may refer to generating a multi-layer measurement template based on the drawing, and then measuring the part 30 based on the multi-layer measurement template. The geometric features of the drawing are included in each layer. In this case, the measurement system 1 can concentrate all the geometric features included in the drawing in a single measurement template, enabling rapid and efficient measurement analysis of the part 30 even with a large number of geometric features.
[0039] The following describes in detail how the measurement system 1 involved in this embodiment implements multi-layer import.
[0040] Figure 3 This is a schematic diagram showing the drawings involved in this embodiment example.
[0041] As described above, the measurement system 1 according to the first aspect of this embodiment may include a processing device 10 and a measuring device 20. See also Figure 2 In some examples, the processing device 10 may include a feature extraction module 110, a layer setting module 120, and a feature editing module 130. The feature extraction module 110 can be used to extract geometric features from a drawing. The layer setting module 120 can be used to create at least one new layer. The feature editing module 130 can be used to assign geometric features to the various layers. Thus, a measurement template with multiple layers can be generated.
[0042] In this embodiment, the feature extraction module 110 can be configured to extract geometric features from the drawing. For example, the drawing can be parsed to obtain geometric features.
[0043] The measurement system 1 according to the first aspect of this embodiment can process data from any simple or complex drawing to obtain a multi-layered measurement template. In some examples, the drawing may be symmetrical. In other examples, the drawing may be asymmetrical.
[0044] join Figure 3 The following is based on Figure 3 Using the drawings shown as an example, the measurement system 1 involved in this embodiment will be described. In some examples, the measurement system 1 can be as follows: Figure 3 The drawing import processing apparatus 10 shown includes a feature extraction module 110 that can extract geometric features from the drawing. In some examples, the geometric features extracted by the feature extraction module 110 may include lines and / or points that form the graphic. In some examples, the feature extraction module 110 can also be configured to extract data such as dimensions and tolerances of the geometric features. In some examples, the feature extraction module 110 can extract data such as the dimensions and tolerances of each geometric feature in the drawing.
[0045] Figure 4 This is a schematic diagram showing the interface of the feature extraction module 110 involved in this embodiment example.
[0046] In this embodiment, the feature extraction module 110 can also be configured to obtain the measurement region S. In some examples, the measurement region S may be a region including geometric features. In some examples, the measurement system 1 may obtain the shooting area when taking a picture of the part 30 to obtain the captured image based on the measurement region S.
[0047] In some examples, the measurement region S can be obtained by selecting a region that includes geometric features. See also Figure 4 In some examples, the display interface of the feature extraction module 110 may include a feature display area Q. The feature display area Q can be used to display the extracted geometric features. In some examples, the display interface of the feature extraction module 110 may also include a navigation area. The navigation area may include an "Import File" button and a "Select and Define Area" button. The "Import File" button can be used to import drawings into the feature extraction module 110. The "Select and Define Area" button can be used to select the measurement area S. For example, the area to be measured can be selected as the measurement area S by clicking the "Select and Define Area" button. The measurement area S can be selected or drawn using tools such as a mouse, keyboard, or drawing tool. In this case, the measurement system 1 can obtain the measurement area S in the drawing, which facilitates the subsequent measurement of part 30 by obtaining the shooting area when taking pictures of part 30 based on the measurement area S. Thus, the measurement system 1 can accurately obtain the position of part 30 and take pictures of part 30 based on the shooting area.
[0048] In some examples, the measurement area S can be a regular geometric shape. For example, it can be a rectangle, a circle, a polygon, or other regular shapes. In other examples, the measurement area S can also be any irregular shape. In some examples, the measurement area S can be the smallest area that includes all geometric features. In this case, the effective measurement of part 30 can be improved; in other words, when photographing part 30, the blank area outside part 30 in the photographing area can be reduced.
[0049] Figure 5 This is a schematic diagram illustrating the splicing information involved in this embodiment example.
[0050] In this embodiment, the feature extraction module 110 can also be configured to obtain stitching information of the measurement area S, and the measuring device 20 can measure the part 30 based on the stitching information to obtain a captured image. In this case, the measuring device 20 stitches together images obtained by taking multiple shots within the shooting area based on the stitching information, which is beneficial for obtaining a complete captured image of the part 30 by image stitching when the area of the measurement area S is large.
[0051] In some examples, stitching information can be obtained based on the shape of the measurement region S. In other examples, stitching information can be obtained based on the size of the measurement region S. The stitching information may consist of individual fields of view. See also Figure 5 For example, when the measurement area S is rectangular in shape, with a width of H and a height of V, the stitching information can be expressed as formula (1): (1) Where m represents the number of stitches in the width direction, n represents the number of stitches in the height direction, H represents the width of the measurement area S, V represents the width of the measurement area S, a represents the overlap size of adjacent fields of view in the width direction, b represents the overlap size of adjacent fields of view in the height direction, and A represents the size of a single field of view.
[0052] In this embodiment, the imaging area can be an area with the same shape and size as the measurement area S. The imaging area can be the area acquired when the measuring device 20 photographs the part 30. For example, if the measurement area S is... When the shape is rectangular, the shooting area is also... The measuring device 20 takes multiple single-view images of the part 30 based on the stitching information to obtain captured images. In some examples, overlapping areas that appear repeatedly in multiple single-view images can be removed to stitch together the captured images. Thus, the measuring device 20 can accurately measure the part 30 based on the specific values of the stitching information to obtain captured images. In some examples, after extracting the geometric features of the drawing, multiple layers can be created and at least one geometric feature can be synchronized to each layer.
[0053] In this embodiment, the processing device 10 may include a layer setting module 120. The layer setting module 120 may be configured to create multiple layers. In some examples, at least one layer may be created in the layer setting module 120. For example, multiple layers such as a first layer, a second layer, ..., an Nth layer may be created.
[0054] In some examples, the layer settings module 120 can also be configured to set environmental parameters for multiple layers. Each layer in the multiple layers can have different environmental parameters. In some examples, environmental parameters may include at least one of light source intensity, exposure time, and Z-axis position. Thus, by setting different light sources, exposure times, and Z-axis positions, each layer can have different environmental parameters.
[0055] In some examples, the light source can include various types such as bottom light, surface light, coaxial light, and zero-degree light. Different environmental parameters can be obtained by setting different types of light sources. In other examples, different environmental parameters can be obtained by adjusting the intensity of the same type of light source. For example, different environmental parameters can be obtained by adjusting the intensity of the bottom light.
[0056] In some examples, the Z-axis position can be the height position of the camera lens 222 that captures images of part 30. Adjusting the Z-axis position allows adjustment of the height of the camera lens 222 relative to part 30. This, in turn, allows for changes to environmental parameters.
[0057] In some examples, creating multiple layers can be referred to as creating multiple layer containers. Multiple layer containers can be referred to as a container set. The environmental parameters of each layer are set according to the actual measurement requirements. In other words, the measurement system 1 according to this embodiment can create multiple layers in the same file. In some examples, each layer in the multiple layers can have different environmental parameters. Therefore, the processing device 10 is able to obtain multiple layers with different environmental parameters.
[0058] In some examples, the environmental parameters set for each layer can be related to the geometric features synchronized to the layer. In other examples, the environmental parameters set for each layer can be related to the edge contours of the captured image.
[0059] In some examples, the navigation area of the layer settings module 120 may include a layer environment setting unit. This unit may include options for setting the aforementioned environment parameters. In some examples, after setting the environment parameters in the layer environment setting unit, clicking the "Add" button will create a new layer. In some examples, the newly added layer may be displayed in the layer display area of the layer settings module 120. In some examples, the above settings can be repeated in the layer environment setting unit to obtain multiple layers with different environment parameters. For example, when creating two layers, a first layer and a second layer, simply repeat the environment parameter settings and add the layers.
[0060] In some examples, the navigation area of the layer settings module 120 may also include a layer list cell. Newly added layers can be displayed as a list in the layer list cell. In other words, after the environment parameters are set, clicking the "Add" button will add a layer to the layer list cell. For example, newly created first and second layers can be displayed in the layer list cell.
[0061] In some examples, newly created multiple layers can be blank layers. In some examples, blank layers can be layers that do not contain any geometric features.
[0062] In some examples, after creating multiple layers, the geometric features included in the drawing can be synchronized to each layer. In this embodiment, the geometric features can be synchronized to each layer through the feature editing module 130.
[0063] As described above, the processing apparatus 10 also includes a feature editing module 130. In this embodiment, the feature editing module 130 can be configured to synchronize at least one geometric feature to each layer. In this case, the processing apparatus 10 can obtain multiple layers with different geometric features, and thus obtain a measurement template including the aforementioned layers. In some examples, the measurement template can be a template including layers, and each layer includes different geometric features. For example, it can be assumed that the geometric features are a first feature, a second feature, a third feature, a fourth feature, a fifth feature, etc. If the first feature and the third feature have already been synchronized to the first layer, then the first feature and the third feature will not be synchronized to other layers. Thus, the geometric features of each layer can be different. In other words, the same feature can only be synchronized to one layer.
[0064] In other examples, the geometric features synchronized to each layer can be the same. In this case, it is possible to obtain measurement information of the same feature under different layers, and then obtain comprehensive measurement information of the feature based on the measurement information of the same feature under different layers. For example, the average value of the measurement information under multiple layers can be used as the comprehensive measurement information of the feature.
[0065] As mentioned above, in some examples, the environmental parameters set for each layer can be related to the edge contours of the captured image. In some examples, each edge contour corresponding to a geometric feature included in part 30 needs to be captured under specific environmental parameters to ensure that it presents a clear edge contour in the captured image. In this case, the measurement accuracy of the part's edge contours can be improved while accurately extracting the dimensional information of the edge contours.
[0066] In some examples, at least one geometric feature can be synchronized to various layers based on preset rules. In some examples, the preset rules can be that the edge contours corresponding to the geometric features synchronized to the same layer can present a clear edge contour under the same environmental parameters. For example, assuming that the edge contours corresponding to the first and fifth features in part 30 can present a clear edge contour in the captured image under the same environmental parameters, then the first and fifth features can be synchronized to the same layer. This improves the measurement efficiency of the measurement template.
[0067] In some examples, the navigation area of the feature editing module 130 may include feature editing units. These units can be used to synchronize geometric features across different layers. Each feature editing unit may include "Feature Selection" and "Layer Options" buttons. In some examples, clicking the "Feature Selection" button and selecting "All Features" from the dropdown menu, then clicking the "Layer Options" button and selecting a new layer from the dropdown menu (e.g., selecting the first or second layer), allows the desired geometric feature to be selected from all features. Clicking the "OK" arrow button then assigns the desired geometric feature and its associated dimensions to the relevant layers. Thus, the measurement system 1 can generate a measurement template with multiple layers.
[0068] In this embodiment, the measurement system 1 can measure the part 30 based on a multi-layer measurement template to determine whether the machining accuracy of the part 30 meets the preset requirements.
[0069] Specifically, as described above, the captured images can be obtained using the measuring device 20. In some examples, the measuring device 20 can capture images of the part 30 based on a measuring template. In some examples, the measuring device 20 can capture images of the part 30 based on individual layers of the measuring template. For example, an image matching the first layer can be obtained based on the first layer.
[0070] In some examples, the measuring device 20 may include an adjustment module 210 and an imaging module 220. The adjustment module 210 can be configured to adjust the imaging environment of the part 30 based on different environmental parameters. The imaging module 220 can take multiple images of the part 30 to obtain multiple images corresponding to multiple layers. In this case, the measuring system 1 obtains multiple images corresponding to multiple layers and compares the edge contours corresponding to geometric features in each image with the geometric features, thereby facilitating the determination of whether the machining accuracy of the part 30 meets the preset requirements.
[0071] join Figure 1 In some examples, the imaging module 220 may include a support platform 221 and an imaging lens 222. The support platform 221 may be used to support the part 30. The imaging lens 222 may be used to photograph the part 30.
[0072] In some examples, the support platform 221 can be movable. For example, it can move in two dimensions on a plane perpendicular to the camera lens 222. If there are m stitches in the width direction of the measurement area S, the camera lens 222 can capture m single-field images of the part 30 by moving the support platform 221. The same applies to measurements in the length direction. Thus, a complete image can be obtained.
[0073] In some examples, to match the positions of the drawing and the captured image for measuring whether the accuracy of part 30 meets preset requirements, the geometric features can be transformed using coordinates. In some examples, matching the positions of the drawing and the captured image means that the geometric features in the drawing and the edge contours of the captured image have the same coordinate information in the same coordinate system. Therefore, the captured image obtained by the measuring device 20 can be directly used for comparison with the drawing. In some examples, the coordinate transformation process can be called part alignment.
[0074] Figure 8 This is a schematic diagram illustrating the coordinate transformation principle involved in this embodiment example.
[0075] In this embodiment, the processing device 10 may further include a part alignment module 140 (see...) Figure 2 In some examples, the part alignment module 140 can be used to transform the coordinate information of the geometric features in the aforementioned layers into the captured image. In this case, it is convenient to directly measure the part 30 based on the measurement template to determine whether the machining accuracy of the part 30 meets the preset requirements, thereby improving the measurement efficiency of the measurement system 1 for the part 30.
[0076] In this embodiment, the part alignment module 140 can be configured to create a first coordinate system and a second coordinate system. The first coordinate system can be located on the drawing paper, and the second coordinate system can be located on the captured image. In some examples, the part alignment module 140 can perform coordinate transformations on the geometric features of each layer based on the first and second coordinate systems.
[0077] As described above, the measuring device 20 can be used to acquire multiple images. In some examples, when part alignment is required, the multiple images may include a first image and multiple second images. The first image can be used to create a second coordinate system.
[0078] In some examples, a first coordinate system can be created based on a first feature set or a second feature set of geometric features. In other examples, a first image feature set matching the first feature set or a second image feature set matching the second feature set can be obtained from a first captured image, and a second coordinate system can be created based on the first or second image feature set. In this case, the reference objects for establishing the first coordinate system and the reference objects for establishing the second coordinate system can correspond, thus making it easier to obtain the coordinate transformation principles required for coordinate transformation of the geometric features of each layer.
[0079] In this embodiment, the first feature group may include points and lines, and the second feature group may include lines and lines. In some examples, a first coordinate system can be created based on feature groups including points and lines in the drawing. In some examples, a first coordinate system can be created based on feature groups including lines and lines in the drawing. In other examples, a first coordinate system can also be established based on geometric features in each layer. Since the geometric features in each layer are synchronized based on the geometric features in the drawing, whether the first coordinate system is created in each layer or in the drawing, it can be considered the same coordinate system. In other examples, the first coordinate system can be arbitrarily set.
[0080] In some examples, the part alignment module 140 can create a first coordinate system in the drawing, then send a control signal to the measuring device 20 to take a picture of the part 30 to obtain a first image, then create a second coordinate system in the first image, and finally perform coordinate transformation on the geometric features of each layer based on the first and second coordinate systems to obtain a measurement template including each layer.
[0081] In some examples, coordinate transformation can be performed on the geometric features of each layer based on a first coordinate system and a second coordinate system to obtain layer features that correspond one-to-one with the geometric features, and a measurement template with each layer can be formed. In this case, the drawing composed of the layer features obtained by coordinate transformation of the geometric features of each layer can match the position of the captured image, that is, the positional relationship can be the same. This makes it easier to directly measure the part 30 based on the measurement template to determine whether the machining accuracy of the part 30 meets the preset requirements. Thus, the measurement efficiency of the measurement system 1 for the part 30 can be improved.
[0082] In some examples, the coordinate transformation principle of geometric features relative to the captured image can be established in the part alignment module 140, and then the layer features of geometric features under the captured image can be obtained based on the coordinate transformation principle.
[0083] In this embodiment, the part alignment module 140 can be configured to obtain the rotation angle and translation vector required for coordinate transformation based on a first coordinate system and a second coordinate system, and to perform coordinate transformation on the geometric features based on the rotation angle and translation vector to obtain the coordinate information of the geometric features in the second coordinate system. In this case, the rotation angle and translation vector required for coordinate transformation can be obtained after the first coordinate system and the second coordinate system are created. For the geometric features of each layer, only a coordinate transformation based on the rotation angle and translation vector is needed to obtain their coordinate information in the second coordinate system. Thus, multi-layer measurement templates can be obtained quickly and efficiently.
[0084] See Figure 6 Let the first coordinate system be The second coordinate system is In some examples, the coordinate transformation principle can satisfy formula (2): (2) in, and This represents the coordinate information of the geometric feature transformed to the second coordinate system. and This represents the coordinate information of geometric feature P in the first coordinate system. Indicates the rotation angle. and This represents the translation vector.
[0085] In some examples, the display interface of the part alignment module 140 may include display units for displaying graphics or geometric features, and a navigation area for operating within the part alignment module 140. In some examples, the navigation area of the part alignment module 140 may include a coordinate system setting unit and a part alignment unit. The coordinate system setting unit may be used to create a first coordinate system and / or a second coordinate system. The part alignment unit may be used to transform geometric features in the first coordinate system to the second coordinate system.
[0086] In some examples, when setting up the coordinate system cells, you can select the layer you just created from the drop-down menu of the layer you created. At this point, you can see the geometric features that were just assigned to this layer. Then, create the first coordinate system by checking the "Manual Alignment" option and clicking the "Finish" button.
[0087] In some examples, the part alignment function can be performed in the part alignment module 140. Click the "Edit Template" button in the navigation area, right-click in the client area, and select "Part Alignment" from the pop-up menu. At this point, part 30 can be measured to obtain a first image, and then a second coordinate system can be created in the first image. Next, right-click again and select "Part Alignment" from the pop-up menu, and finally save the measurement template. In some examples, the coordinate transformation process for the geometric features can be performed a second time, i.e., before saving the measurement template.
[0088] As described above, multiple captured images may include a first captured image used to create a second coordinate system. In some examples, the multiple captured images may also include multiple second captured images. These multiple second captured images can be used to determine the machining accuracy of part 30. In some examples, the number of multiple second captured images may be no less than the number of layers. In this case, each second captured image can have a corresponding layer, and by sequentially identifying and measuring each second captured image based on the layer features of each layer, a complete measurement of part 30 can be achieved.
[0089] In some examples, the first captured image and multiple second captured images can be taken from the same angle. This allows for direct measurement of part 30 based on the coordinate-transformed measurement template.
[0090] In this embodiment, the processing device 10 may further include an identification module 150 (see [link to relevant documentation]). Figure 2 The recognition module 150 can be configured to recognize captured images to obtain image information. In some examples, the recognition module 150 can be configured to recognize a first captured image to obtain a first image feature group or a second image feature group. Thus, a second coordinate system can be created based on the first image feature group or the second image feature group.
[0091] In some examples, the recognition module 150 can be configured to recognize multiple second-captured images to obtain image features (the edge contours described above). The positions of the image features can be matched with the positions of the layer features. In this case, when measuring part 30 based on a measurement template, the measuring device 20 sets different shooting environments for part 30 based on the environmental parameters of each layer of the measurement template to obtain multiple second-captured images. The recognition module 150 can then recognize the multiple second-captured images to obtain image features corresponding to the layer features of each layer. Since the positions of the image features match the positions of the layer features, the image features and layer features can be directly compared.
[0092] In this embodiment, the processing device 10 may further include a matching module 160 (see...) Figure 2 The matching module 160 can be used to determine whether the machining accuracy of part 30 meets preset requirements. Specifically, the matching module 160 can be configured to determine whether the machining accuracy of part 30 meets preset requirements based on the degree of difference between image features and layer features. In this case, after matching the image features and layer features one by one, using the layer features as the judgment benchmark, it is possible to quickly determine whether the image features are within the error range, and thus determine whether the machining accuracy of part 30 meets preset requirements.
[0093] In some examples, the preset requirement can be a tolerance of geometric features, such as dimensional tolerance, geometric tolerance, or / and form tolerance. The matching module 160 can be used to determine whether the error between the size of the image feature in the captured image and the actual size of the image feature is within the tolerance range. If the error is within the tolerance range, it can be determined that part 30 meets the preset requirement. If the error is outside the tolerance range, the machining accuracy of part 30 does not meet the preset requirement. Thus, it is possible to quickly determine whether the machining accuracy of the machined part 30 is qualified.
[0094] In this embodiment, the processing device 10 may further include a display module 170 (see [link]). Figure 2 The display module 170 can be used to display interface information of the other modules. The operator can operate the operating system involved in this embodiment through the display module 170 to achieve the above-described content. In some other examples, the processing device 10 may not include the display module 170. The operator can operate the measurement system 1 based on the built-in code layer.
[0095] The second aspect of this embodiment provides a measurement method for importing multiple layers, which can be simply referred to as the measurement method. In some examples, the measurement method may be a method applied to any of the above-described measurement systems 1 to generate a measurement template with multiple layers and to determine whether the machining accuracy of part 30 meets preset requirements based on the measurement template.
[0096] Figure 7 This is a flowchart illustrating the measurement method involved in this embodiment example.
[0097] See Figure 7 The measurement method involved in the second aspect of this embodiment may include extracting geometric features of the drawing (step S200), creating multiple layers and synchronizing at least one geometric feature to each layer (step S400), obtaining a measurement template (step S600), and determining whether the machining accuracy of part 30 meets the preset requirements based on the measurement template (step S800).
[0098] In some examples, in step S200, the feature extraction module 110 can be used to extract the geometric features of the drawing. For example, the feature extraction module 110 can parse the drawing to obtain geometric features. In some examples, the feature extraction module 110 can extract data such as each geometric feature in the drawing, the dimensions of each geometric feature, and tolerances.
[0099] In some examples, the measurement region S can also be obtained in step S200. In some examples, the stitching information of the measurement region S can also be obtained in step S200.
[0100] Figure 8 This is a flowchart illustrating step S400 involved in this embodiment example.
[0101] In the measurement method of this embodiment, in step S400, multiple layers can be created and at least one geometric feature can be synchronized to each layer. See also Figure 8 In some examples, step S400 may include creating multiple layers (step S420) and synchronizing at least one geometric feature to the various layers (step S440).
[0102] Specifically, in step S420, multiple layers can be created in the layer creation module. In some examples, environment parameters for each layer can also be set in the layer creation module. Each layer can have different environment parameters.
[0103] In some examples, in step S440, at least one geometric feature can be synchronized to each layer in the feature editing module 130. In some examples, the geometric features synchronized to each layer may be different. In some examples, at least one geometric feature can be synchronized to each layer based on preset rules.
[0104] Figure 9 This is a flowchart illustrating step S600 involved in this embodiment example.
[0105] As described above, the measurement method involved in this embodiment also includes obtaining a measurement template (step S600).
[0106] Specifically, see Figure 9 Obtaining the measurement template (step S600) may include creating a first coordinate system located in the drawing (step S620), obtaining the captured image (step S640), creating a second coordinate system located in the captured image (step S660), and performing coordinate transformation on the geometric features of each layer based on the first and second coordinate systems to obtain the measurement template (step S680).
[0107] In some examples, a first coordinate system located in the drawing can be created in step S620. Specifically, the first coordinate system can be created in the part alignment module 140. In some examples, the first coordinate system can be created based on a feature group including lines and lines, or lines and points.
[0108] In some examples, a captured image can be obtained in step S640. The captured image may be obtained by photographing the part 30 that matches the drawing. Here, "matching" may mean that the part 30 is manufactured according to the drawing. In some examples, after the part alignment module 140 creates the first coordinate system, the part 30 can be photographed based on the measuring device 20 to obtain the first captured image.
[0109] In some examples, a second coordinate system located on the captured image can be created in step S660. In this embodiment, when the part 30 is measured to obtain a captured image, a second coordinate system can be created on the captured image. In some examples, the second coordinate system can be created in the part alignment module 140. In other words, the part alignment module 140 can also be configured to create a second coordinate system located on the drawing. Specifically, when the part 30 is captured based on the measuring device 20 to obtain a first captured image, the recognition module 150 can recognize the first captured image to obtain an image feature set that matches the feature set used to create the first coordinate system. Then, the part alignment module 140 can create a second coordinate system based on the aforementioned image feature set.
[0110] In some examples, in step S680, coordinate transformation can be performed on the geometric features of each layer based on a first coordinate system and a second coordinate system to obtain a measurement template. Specifically, coordinate transformation is performed on the geometric features of each layer based on the first and second coordinate systems to obtain layer features that correspond one-to-one with the geometric features. In some examples, the coordinate transformation of the geometric features of each layer can be performed by converting the coordinate information of the geometric features of each layer to the coordinate system of the first captured image. The principle of coordinate transformation is as described above and will not be repeated here. In some examples, the above-mentioned measurement template can be formed after the geometric features of each layer have undergone coordinate transformation, that is, a measurement template with multiple layers.
[0111] In some examples, step S600 may be included when part alignment is required. In some examples, if part alignment is not required, step S600 may be omitted, and the measurement template can be obtained after step S400. In some examples, if the geometric features in the drawing match the positions of the image features in the first captured image, step S600 is not required. In other words, if the coordinate information of the geometric features remains unchanged after coordinate transformation, step S600 is not required.
[0112] In some examples, in step S800, the machining accuracy of part 30 can be determined based on the measurement template to see if it meets the preset requirements. Specifically, in some examples, after generating the measurement template, part 30 can be measured based on the measurement template to determine if its machining accuracy meets the preset requirements. In some examples, the measuring device 20 can take multiple photos of part 30 based on multiple layers included in the measurement template to obtain multiple second-image photos. The recognition module 150 can recognize the multiple second-image photos to obtain recognition features. In some examples, the recognition features of each second-image photo can correspond one-to-one with the layer features of each layer. The matching module 160 can determine whether the difference between the image features and the layer features is within the tolerance range based on the one-to-one correspondence. If the error is within the tolerance range, part 30 can be determined to meet the preset requirements. If the error is outside the tolerance range, the machining accuracy of part 30 does not meet the preset requirements. Thus, it is possible to quickly determine whether the machining accuracy of the machined part 30 is qualified.
[0113] This disclosure also relates to a computer device that may include a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement any of the above-described computation methods.
[0114] This disclosure also relates to a computer-readable storage medium that can store at least one instruction, which, when executed by a processor, implements the above-described computational method. Those skilled in the art will understand that all or part of the steps in the computational method described above can be implemented by a program (instruction) instructing related hardware. This program (instruction) can be stored in a computer-readable storage medium, which may include: a flash drive, read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0115] According to the multi-layer import measurement system 1 and its measurement method disclosed herein, the feature extraction module 110 can parse the drawing to extract its geometric features. Then, the layer setting module 120 can create multiple layers with different environmental parameters. The feature editing module 130 can synchronize at least one geometric feature to each layer based on preset rules. The part alignment module 140 can create a first coordinate system on the drawing and a second coordinate system on the captured image, and can perform coordinate transformation on the geometric features of each layer based on the first and second coordinate systems to obtain a measurement template including each layer. Thus, a multi-layer measurement template can be generated based on the drawing, and the part 30 can be quickly and accurately measured based on the measurement template to determine whether the machining accuracy of the part 30 is qualified. Through the measurement system 1 and its measurement method designed in this embodiment, it is possible to quickly and accurately measure whether the machining accuracy of the part 30 meets the requirements. Furthermore, through the multi-layer import measurement system 1 and its measurement method of this embodiment, batch detection of multiple types of geometric features can be achieved.
[0116] While the present disclosure has been specifically described above in conjunction with the accompanying drawings and examples, it is to be understood that the foregoing description does not limit the present disclosure in any way. Those skilled in the art can make modifications and variations to the present disclosure as needed without departing from its essential spirit and scope, and all such modifications and variations shall fall within the scope of the present disclosure.
Claims
1. A method for measuring parts based on multiple layers, characterized in that, include: Extract the geometric features from the drawing of the part; Create multiple layers and set the environmental parameters of the multiple layers, and assign at least one of the geometric features to each of the multiple layers according to a preset rule to obtain a measurement template including each of the layers; Based on the environmental parameters, the parts that match the drawings are photographed to obtain photographic images of the parts; based on the measurement template and the photographic images, it is determined whether the machining accuracy of the parts meets the preset requirements.
2. The method for measuring parts based on multiple layers according to claim 1, characterized in that, The captured image includes a first captured image, and the method further includes: creating a first coordinate system located on the drawing and a second coordinate system located on the first captured image; performing coordinate transformation on the geometric features of each layer based on the first coordinate system and the second coordinate system to obtain layer features that correspond one-to-one with the geometric features.
3. The method for measuring parts based on multiple layers according to claim 2, characterized in that, The captured images include multiple second captured images used to determine the processing accuracy, and the number of the multiple second captured images is not less than the number of layers.
4. The method for measuring parts based on multiple layers according to claim 1, characterized in that, Also includes: The shooting environment for the parts is adjusted based on different environmental parameters; The part is photographed multiple times to obtain multiple images that correspond one-to-one with the multiple layers.
5. The method for measuring parts based on multiple layers according to claim 1, characterized in that, The preset rule is that the edge contours corresponding to the geometric features synchronized to the same layer should present clear edge contours under the same environmental parameters.
6. The method for measuring parts based on multiple layers according to claim 2, characterized in that, The method further includes: creating a first coordinate system based on a first feature group or a second feature group of the geometric features; obtaining a first image feature group that matches the first feature group or a second image feature group that matches the second feature group in the first captured image; and creating a second coordinate system based on the first image feature group or the second image feature group, wherein the first feature group includes points and lines, and the second feature group includes lines and lines.
7. The method for measuring parts based on multiple layers according to claim 6, characterized in that, The captured images include multiple second captured images, and the method further includes: identifying the first captured image to obtain a first image feature group or a second image feature group, and identifying multiple second captured images to obtain image features, wherein the position of the image features matches the position of the layer features.
8. The method for measuring parts based on multiple layers according to claim 7, characterized in that, The step of determining whether the machining accuracy of the part meets the preset requirements based on the measurement template and the captured image includes: determining whether the machining accuracy of the part meets the preset requirements based on the degree of difference between the layer features and the image features.
9. A computer device, characterized in that, It includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction that, when executed by a processor, implements the method as described in any one of claims 1 to 8.