Multi-layered import measurement system and method thereof
The measurement system, which imports multiple layers, generates multi-layer measurement templates and performs coordinate transformation, solving the problem of low measurement efficiency in existing technologies and enabling fast and accurate measurement of part machining precision and detection of multiple geometric features.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-15
- Publication Date
- 2026-03-20
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, making it difficult to quickly and accurately measure the machining accuracy of parts.
The measurement system, which uses a multi-layer import mechanism, analyzes the geometric features of the drawings through a feature extraction module, creates multiple layers through a layer setting module, synchronizes the geometric features to each layer through a feature editing module, performs coordinate transformation through a part alignment module, and determines the 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 CN115222956B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of intelligent manufacturing equipment industry, and particularly relates to a multi-layer import measurement system and a measurement method thereof. BACKGROUND
[0002] Computer numerical control (CNC) machining is a kind of precision machining based on computer digital control, which generates CNC program based on CAD drawing designed by computer aided design (CAD) software and processes parts.
[0003] Generally speaking, the measuring equipment with the function of measuring two-dimensional size and / or the function of measuring three-dimensional size is usually used in combination with the CAD drawing to analyze the parts to determine whether the processed parts are qualified, that is, whether the precision of the processed parts meets the design requirements of the CAD drawing. In the prior art, the CAD drawing is usually imported in a single-layer manner to generate a measurement template with a single layer and then analyze the parts. The CAD drawing is imported into the measuring equipment and its geometric features are extracted, then layers are created and the geometric features to be measured are assigned to the layers to obtain a measurement template with a single layer, and then the measuring equipment measures the parts based on the measurement template with a single layer to analyze whether the processing precision of the parts meets the requirements.
[0004] However, for different types of geometric features, in order to accurately measure the information corresponding to the geometric features on the parts, different environmental parameters need to be set to measure the parts. Since the prior art only has single-layer import, when the number of geometric features included in the CAD drawing is large, if the processing precision of the information corresponding to all the geometric features on the parts is to be measured completely to determine whether it meets the design requirements, the CAD drawing needs to be imported into the measuring equipment multiple times and the above process needs to be repeated, which is time-consuming and the operation steps are too cumbersome. SUMMARY
[0005] The present application is proposed in view of the above-mentioned prior art, and aims to provide a measurement system and a measurement method thereof, which can generate a measurement template with multiple layers and quickly measure whether the processing precision of the parts meets the preset requirements based on the measurement template with multiple layers.
[0006] The first aspect of the present application provides a multi-layer import measurement system, comprising: a processing device for data processing of a drawing of a part, and a measurement device for obtaining a photographed image of the part, the processing device comprising a feature extraction module, a layer setting module, a feature editing module, a part alignment module, and a matching module, the feature extraction module being configured to extract geometric features in the drawing; the layer setting module being configured to create a plurality of layers, each layer in the plurality of layers having different environmental parameters; the feature editing module being configured to synchronize at least one of the geometric features to each layer based on a preset rule; the part alignment module being configured to create a first coordinate system located in the drawing and a second coordinate system located in the photographed image, and to perform coordinate conversion on the geometric features of each layer based on the first coordinate system and the second coordinate system to obtain a measurement template comprising the plurality of layers; and the matching module being configured to determine whether the machining precision of the part meets a preset requirement based on the measurement template.
[0007] According to the multi-layer import measurement system of the present application, the feature extraction module can analyze the drawing to extract geometric features of the drawing, then the layer setting module can create a plurality of layers having different environmental parameters, the feature editing module can synchronize at least one geometric feature to each layer based on a preset rule, and the part alignment module can create a first coordinate system located in the drawing and a second coordinate system located in the photographed image, and can perform coordinate conversion on the geometric features of each layer based on the first coordinate system and the second coordinate system to obtain a measurement template comprising the plurality of layers, thereby generating a measurement template comprising a plurality of layers based on the drawing, and quickly and accurately measuring the part based on the measurement template to determine whether the machining precision of the part is qualified, and the multi-layer import measurement system of the present application can realize batch detection of multiple types of geometric features.
[0008] In addition, in the multi-layer import measurement system of the first aspect of the present application, optionally, the feature extraction module is further configured to obtain stitching information of a measurement area, and the measurement device measures the part based on the stitching information to obtain the photographed image. In this case, the measurement device stitches pictures obtained by multiple shootings in the shooting area based on the stitching information, thereby facilitating complete obtaining of the photographed image of the part by picture stitching when the area of the measurement area is large.
[0009] Additionally, in the multi-layer introduction measurement system of the first aspect of the present application, optionally, the measurement device comprises an adjustment module and a shooting module, the adjustment module is configured to adjust the shooting environment of the part based on different environmental parameters, and the shooting module shoots the part multiple times to obtain multiple shooting images corresponding to the multiple layers one by one. In this case, the measurement system obtains multiple shooting images corresponding to the multiple layers one by one and compares the edge contour corresponding to the geometric feature in each shooting image with the geometric feature, so as to facilitate the judgment of whether the machining precision of the part meets the preset requirements.
[0010] Additionally, in the multi-layer introduction measurement system of the first aspect of the present application, optionally, the multiple shooting images comprise a first shooting image for creating the second coordinate system and multiple second shooting images for judging the machining precision, and the number of the multiple second shooting images is not less than the number of the layers. In this case, each second shooting image can have a corresponding layer, and each second shooting image is identified and measured in sequence based on the layer features of each layer to enable complete measurement of the part.
[0011] Additionally, in the multi-layer introduction measurement system of the first aspect of the present application, optionally, the environmental parameters comprise at least one of a light source, an exposure time, and a Z-axis position. In this way, by setting different light sources, exposure times, and Z-axis positions, each layer can have different environmental parameters.
[0012] Additionally, in the multi-layer introduction measurement system of the first aspect of the present application, optionally, the geometric features of each layer are coordinate-transformed based on the first coordinate system and the second coordinate system to obtain layer features corresponding to the geometric features one by one, and a measurement template with the layers is formed. In some examples, the geometric features of each layer can be coordinate-transformed based on the first coordinate system and the second coordinate system to obtain layer features corresponding to the geometric features one by one, and a measurement template with the layers 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 shooting image, that is, the positional relationship can be the same, and then the part can be directly measured based on the measurement template to judge whether the machining precision of the part meets the preset requirements, thereby improving the measurement efficiency of the measurement system on the part.
[0013] In addition, in the multi-layer import measurement system according to the first aspect of the present application, optionally, the first coordinate system is created based on the first feature group or the second feature group of the geometric features, a first image feature group matched with the first feature group or a second image feature group matched with the second feature group is obtained in the first captured image, and the second coordinate system is created based on the first image feature group or the second image feature group. In this case, the reference for establishing the first coordinate system and the reference for establishing the second coordinate system can correspond to each other, and thus the coordinate transformation principle required for coordinate transformation of the geometric features of each layer can be obtained more conveniently.
[0014] In addition, in the multi-layer import measurement system according to the first aspect of the present application, optionally, the processing device comprises an identification module configured to identify the first captured image to obtain the first image feature group or the second image feature group and identify the plurality of second captured images to obtain image features whose positions match the positions of the layer features. In this case, when the part is measured based on the 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 a plurality of second captured images, and the identification module can identify the plurality of 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 the layer features can be directly compared.
[0015] In addition, in the multi-layer import measurement system according to the first aspect of the present application, optionally, the matching module is configured to determine whether the machining precision of the part meets the preset requirement based on the degree of difference between the image features and the layer features. In this case, after the image features and the layer features are matched one by one, the layer features can be used as a judgment reference to quickly determine whether the image features are within the error range, and thus whether the machining precision of the part meets the preset requirement can be determined based on this.
[0016] The second aspect of the present application provides a measurement method of multi-layer import, comprising: extracting geometric features of a drawing; creating a plurality of layers and setting environmental parameters of the plurality of layers, and assigning at least one of the geometric features to each layer of the plurality of layers according to a preset rule; creating a first coordinate system located at the drawing, taking a part matching the drawing to obtain a taken image of the part, and creating a second coordinate system located at the taken image; performing coordinate conversion on the geometric features of each layer based on the first coordinate system and the second coordinate system to obtain a measurement template comprising the each layer; and determining whether the machining precision of the part meets a preset requirement based on the measurement template.
[0017] According to the present application, a measurement system and a measurement method thereof can be provided, which can generate a measurement template of multiple layers and quickly measure whether the machining precision of a part meets a preset requirement based on the measurement template of multiple layers. BRIEF DESCRIPTION OF DRAWINGS
[0018] The present application will now be further explained in detail only by way of example with reference to the accompanying drawings.
[0019] Figure 1 is a schematic diagram of a scene of a measurement system related to the present embodiment example.
[0020] Figure 2 is a structural block diagram of a measurement system related to the present embodiment example.
[0021] Figure 3 is a schematic diagram of a drawing related to the present embodiment example.
[0022] Figure 4 is a display interface schematic diagram of a feature extraction module related to the present embodiment example.
[0023] Figure 5 is a schematic diagram of splicing information related to the present embodiment example.
[0024] Figure 6 is a schematic diagram of a coordinate conversion principle related to the present embodiment example.
[0025] Figure 7 is a flowchart of a measurement method related to the present embodiment example.
[0026] Figure 8 is a flowchart of step S400 related to the present embodiment example.
[0027] Figure 9 is a flowchart of step S600 related to the present embodiment example. DETAILED DESCRIPTION
[0028] Hereinafter, a preferred embodiment of the present disclosure will be described in detail with reference to the accompanying drawings. In the following description, identical components are assigned with identical reference numerals, and repetitive explanation will be omitted. In addition, the drawings are merely schematic ones, and the ratio of the size between the components or the shape of the components and the like can be different from the actual ones.
[0029] It should be noted that the terms "comprising" and "having" and any variations thereof, such as a process, a method, a system, a product, or an apparatus including or having a series of steps or units, are not necessarily limited to those steps or units clearly listed, but can include or have other steps or units that are not clearly listed or inherent to the process, the method, the product, or the apparatus.
[0030] In addition, the subheadings and the like involved in the following description of the present disclosure are not intended to limit the content or the scope of the present disclosure, but merely serve as a reading prompt. Such subheadings cannot be understood as used for dividing the content of the article, and the content under the subheading should not be limited only within the scope of the subheading.
[0031] The embodiment of the present disclosure relates to a multi-layer imported measurement system and a measurement method thereof, which can generate a multi-layer measurement template based on a drawing and determine whether the machining precision of a part is qualified based on the measurement template. Through the measurement system and the measurement method thereof designed by the embodiment, it can quickly and accurately measure whether the machining precision of the part meets the requirements. In addition, through the multi-layer imported measurement system and the measurement method thereof of the embodiment, batch detection of multiple types of geometric features can be realized.
[0032] The multi-layer imported measurement system and the measurement method thereof related to the embodiment can also be referred to as, for example, a system and a measurement method thereof for importing a drawing in a measurement device, a measurement system and a measurement method thereof with multi-layer comparison, and the like. It should be noted that each name is used to represent the multi-layer imported measurement system and the measurement method thereof related to the embodiment, and should not be understood as limiting.
[0033] Figure 1 is a schematic diagram of a scene showing the measurement system 1 related to the embodiment example. Figure 2 is a structural block diagram showing the measurement system 1 related to the embodiment example.
[0034] The first aspect of the embodiment provides a measurement system 1 for multi-layer import, which can be referred to as the measurement system 1 hereinafter. In the embodiment, a drawing can be imported into the measurement system 1, the measurement system 1 processes the drawing and outputs a measurement template with multiple layers, and then the measurement system 1 can analyze a part 30 processed according to the drawing based on the measurement template with multiple layers to determine whether the processing precision of the part 30 meets the preset requirements. In some examples, the measurement system 1 can be any system relying on computer screen measurement technology and having a spatial geometry operation function. In particular, the measurement system 1 can be applied to any system for two-dimensional plane measurement. For example, the measurement system 1 can be an image measuring instrument as shown in Figure 1 The embodiment is not limited thereto, and the measurement system 1 can be any system for measuring the two-dimensional size of the part 30. In other examples, the measurement system 1 can also be applied to any system for three-dimensional plane measurement. For example, it can be a flash measuring instrument, a profile measuring instrument, or a microscopic topography measuring instrument.
[0035] The measurement system 1 involved in the embodiment can include a processing device 10 and a measuring device 20 (see Figure 1 ). The processing device 10 can be used to process the drawing. The measuring device 20 can be used to obtain a photographed 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 processed according to the drawing, that is, the processing device 10 can be used to process the drawing of the part 30.
[0036] In some examples, the drawing can have a specific format. In some examples, the specific format can include a DXF format. The DXF format generally refers to a CAD data file format for data exchange between AutoCAD and other software. The drawing based on the DXF format can generate a CNC assembly language for numerical control processing, and then a numerical control machine tool can process the part 30 based on the CNC assembly language. In some examples, the drawing can have geometric features for forming a graph. For example, the drawing can have points and / or lines, and the points and / or lines are connected to form a contour or appearance for expressing a required part.
[0037] In the embodiment, the measurement system 1 can be used for multi-layer import of the drawing with a specific format. In some examples, the multi-layer import can refer to generating a measurement template with multiple layers based on the drawing, and measuring the part 30 based on the measurement template with multiple layers. The geometric features of the drawing are included in each layer. In this case, the measurement system 1 can collect all the geometric features included in the drawing in the same measurement template, and can quickly and efficiently complete the measurement analysis of the part 30 in the case of a large number of geometric features.
[0038] The following describes in detail how the measurement system 1 involved in this embodiment implements multi-layer import.
[0039] Figure 3 This is a schematic diagram showing the drawings involved in this embodiment example.
[0040] 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.
[0041] 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.
[0042] 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.
[0043] 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.
[0044] Figure 4 This is a schematic diagram showing the interface of the feature extraction module 110 involved in this embodiment example.
[0045] 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.
[0046] In some examples, the measurement region S can be obtained by frame selecting the region including the geometric features. See Figure 4 In some examples, the display interface of the feature extraction module 110 can 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 can also include a navigation area. The navigation area can include a “import file” button and a “frame select region” button. The “import file” button can be used to import the drawing into the feature extraction module 110. The “frame select region” button can be used to frame the measurement region S. For example, the region to be measured can be selected as the measurement region S by clicking the “frame select region” button. In this case, the measurement region S can be framed or drawn by using a mouse, a keyboard, or a pen, etc. In this case, the measurement system 1 can obtain the measurement region S in the drawing, and then can obtain the shooting region when the part 30 is shot based on the measurement region S, so that the measurement system 1 can accurately obtain the position of the part 30 and shoot the part 30 according to the shooting region.
[0047] In some examples, the measurement region S can be a regular geometric shape. For example, it can be a rectangle, a direction, a circle, a polygon, etc. In other examples, the measurement region S can also be an arbitrary irregular shape. In some examples, the measurement region S can be the smallest region including all the geometric features. In this case, the effective measurement of the part 30 can be improved, in other words, when the part 30 is shot, the blank area in the shooting region other than the part 30 can be reduced.
[0048] Figure 5 is a schematic diagram showing the splicing information involved in the example of the present embodiment.
[0049] In the present embodiment, the feature extraction module 110 can also be configured to obtain the splicing information of the measurement region S, and the measurement device 20 can measure the part 30 based on the splicing information to obtain the shooting image. In this case, the measurement device 20 splices the pictures obtained by multiple shooting in the shooting region based on the splicing information, so that the shooting image of the part 30 can be obtained completely by splicing the pictures when the area of the measurement region S is large.
[0050] In some examples, the splicing information can be obtained based on the shape of the measurement region S. In other examples, the splicing information can be obtained based on the size of the measurement region S. The splicing information can include a plurality of single views. See Figure 5 For example, when the shape of the measurement region S is a rectangle, and its width is H and its height is V. The splicing information can be represented as formula (1):
[0051]
[0052] wherein m represents the number of splicing in the width direction, n represents the number of splicing in the height direction, H represents the width of the measurement region S, V represents the width of the measurement region S, a represents the size of the overlap of adjacent view fields in the width direction, b represents the size of the overlap of adjacent view fields in the height direction, and A represents the size of a single view field.
[0053] In the present embodiment, the photographing region can be a region having the same shape and size as the measurement region S. The photographing region can be a region obtained when the measurement device 20 photographs the part 30. For example, if the measurement region S is a rectangle of HxV, the photographing region is also a rectangle of HxV, and the splicing information of the photographing region is the same as that of the measurement region S. The measurement device 20 photographs the part 30 in multiple single view fields based on the splicing information to obtain a photographed image. In some examples, the overlapping regions of the multiple single view fields that appear repeatedly can be deleted to splice the photographed image. Thus, the measurement device 20 can accurately measure the part 30 based on the specific values of the splicing information to obtain the photographed image. In some examples, after the geometric features of the drawing are extracted, multiple layers can be created and at least one geometric feature can be synchronized to each layer.
[0054] In the present embodiment, the processing device 10 can include a layer setting module 120. The layer setting module 120 can be configured to create multiple layers. In some examples, at least one layer can be created in the layer setting module 120. For example, a first layer, a second layer, …, an Nth layer, and the like can be created.
[0055] In some examples, the layer setting module 120 can also be configured to set the environmental parameters of the multiple layers. Each layer of the multiple layers can have different environmental parameters. In some examples, the environmental parameters can include at least one of the light source intensity, the exposure time, and the Z-axis position. Thus, by setting different light sources, exposure times, and Z-axis positions, each layer can have different environmental parameters.
[0056] In some examples, the light source can include multiple 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.
[0057] In some examples, the Z-axis position can be the height position of the photographing lens 222 for photographing the part 30. By adjusting the Z-axis position, the height position of the photographing lens 222 relative to the part 30 can be adjusted. Thus, the environmental parameters can be changed.
[0058] In some examples, creating multiple layers can be referred to as creating multiple layer containers. The multiple layer containers can be referred to as a container set. The environment parameters of the layers can be set according to actual measurement requirements. In other words, the measurement system 1 involved in the present embodiment can create multiple layers in the same file. In some examples, each layer in the multiple layers can have different environment parameters. Thus, the processing device 10 can obtain multiple layers with different environment parameters.
[0059] In some examples, the environment parameters set for each layer can be related to the geometric features synchronized to the layer. In other examples, the environment parameters set for each layer can be related to the edge profile of the captured image.
[0060] In some examples, the navigation area of the layer setting module 120 can include a layer environment setting unit. The layer environment setting unit can include the setting options of the above-mentioned environment parameters. In some examples, after setting the above-mentioned environment parameters in the layer environment setting unit, a new layer can be created by clicking the "add" button. In some examples, the newly added layer can be displayed in the layer display area of the layer setting module 120. In some examples, the above-mentioned settings can be repeated in the layer environment setting unit to obtain multiple layers with different environment parameters. For example, when two layers, a first layer and a second layer, need to be created, the above-mentioned settings of environment parameters and adding layers can be repeated.
[0061] In some examples, the navigation area of the layer setting module 120 can also include a layer list unit. The newly added layers can be displayed in the layer list unit in the form of a list. In other words, after the environment parameters are set, clicking the "add" button will add a layer in the layer list unit. For example, the newly created first layer and second layer can be displayed in the layer list unit.
[0062] In some examples, the newly created multiple layers can be blank layers. In some examples, a blank layer can be a layer that does not include any geometric features.
[0063] In some examples, after creating multiple layers, the geometric features included in the drawing can be synchronized to each layer. In the present embodiment, the geometric features can be synchronized to each layer through the feature editing module 130.
[0064] As described above, the processing device 10 further comprises a feature editing module 130. In the present embodiment, the feature editing module 130 can be configured to synchronize at least one geometric feature to each layer. In this case, the processing device 10 can obtain a plurality of layers with different geometric features, and further obtain a measurement template comprising each layer. In some examples, the measurement template can be a template comprising each layer, and each layer comprises different geometric features. For example, it can be assumed that the geometric features are respectively a first feature, a second feature, a third feature, a fourth feature, a fifth feature, and so on. If the first feature and the third feature have been synchronized to a first layer, the first feature and the third feature will not be synchronized to other layers. In this way, each layer can have different geometric features. In other words, the same feature can only be synchronized to one layer.
[0065] In other examples, the geometric features synchronized to each layer can be the same. In this case, the measurement information of the same feature under different layers can be obtained, and further the comprehensive measurement information of the feature can be obtained based on the measurement information of the same feature under different layers. For example, the average of the measurement information under a plurality of layers can be taken as the comprehensive measurement information of the feature.
[0066] As described above, in some examples, the environmental parameters of each layer can be related to the edge profile of the captured image. In some examples, each edge profile corresponding to a geometric feature included in the part 30 needs to be captured under a specific environmental parameter to make it present a clear edge profile in the captured image. In this case, the measurement accuracy of the edge profile of the part can be improved while accurately extracting the size information of the edge profile.
[0067] In some examples, at least one geometric feature can be synchronized to each layer based on a preset rule. In some examples, the preset rule can be that the edge profiles corresponding to the geometric features synchronized to the same layer can present clear edge profiles under the same environmental parameters. For example, it is assumed that the edge profiles corresponding to the first feature and the fifth feature in the part 30 can present clear edge profiles in the captured image under the same environmental parameters, the first feature and the fifth feature can be synchronized to the same layer. In this way, the measurement efficiency of the measurement template can be improved.
[0068] In some examples, the navigation area of the feature editing module 130 can include a feature editing unit. The feature editing unit can be used to synchronize the geometric features to the respective layers. In some examples, the feature editing unit can include buttons of "feature selection" and "layer option". In some examples, the "feature selection" button can be clicked and the "all features" option can be selected in the drop-down box, the "layer option" button can be clicked and a newly created layer can be selected in the drop-down box, for example, the first layer or the second layer can be selected. Then the desired geometric features can be selected in the all features and the "OK" button can be clicked to assign the desired geometric features and the dimension annotations associated therewith to the relevant layer. Thus, the measurement system 1 can generate a measurement template with multiple layers.
[0069] In the present embodiment, the measurement system 1 can measure the part 30 based on the measurement template with multiple layers to determine whether the machining precision of the part 30 meets the preset requirements.
[0070] Specifically, as described above, the captured image can be obtained by the measurement device 20. In some examples, the measurement device 20 can capture the part 30 based on the measurement template to obtain the captured image. In some examples, the measurement device 20 can capture the part 30 based on the respective layers of the measurement template to obtain the captured image. For example, the captured image matching the first layer can be obtained based on the first layer.
[0071] In some examples, the measurement device 20 can include an adjusting module 210 and a capturing module 220. The adjusting module 210 can be configured to adjust the capturing environment of the part 30 based on different environmental parameters. The capturing module 220 can capture the part 30 multiple times to obtain multiple captured images corresponding to the multiple layers one by one. In this case, the measurement system 1 obtains multiple captured images corresponding to the multiple layers one by one and compares the edge profile corresponding to the geometric feature in each captured image with the geometric feature, thereby facilitating the determination of whether the machining precision of the part 30 meets the preset requirements.
[0072] Participation Figure 1 In some examples, the capturing module 220 can include a carrying platform 221 and a capturing lens 222. The carrying platform 221 can be used to carry the part 30. The capturing lens 222 can be used to capture the part 30.
[0073] In some examples, the carrying platform 221 can be movable. For example, it can make two-dimensional motion in the plane perpendicular to the capturing lens 222. If there are m splicing numbers in the width direction of the measurement area S, the capturing lens 222 can capture the part 30 m times in a single field of view through the movement of the carrying platform 221. The measurement in the length direction is the same. Thus, a complete captured image can be obtained.
[0074] In some examples, in order to match the positions of the drawing and the photographed image to facilitate measuring whether the precision of the part 30 meets the preset requirement, the geometric features can also be subjected to coordinate conversion. In some examples, matching the positions of the drawing and the photographed image can refer to that the coordinate information of the geometric features in the drawing and the edge contour of the photographed image in the same coordinate system can be the same. Thus, the photographed image obtained by the measuring device 20 can be directly used for comparison with the drawing. In some examples, the process of coordinate conversion can be referred to as part alignment.
[0075] Figure 8 is a schematic diagram illustrating the principle of coordinate conversion involved in the example of the present embodiment.
[0076] In the present embodiment, the processing device 10 can 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 each layer to the photographed image. In this case, it can be facilitated to subsequently directly measure the part 30 based on the measurement template to determine whether the machining precision of the part 30 meets the preset requirement, thereby improving the measurement efficiency of the measuring system 1 on the part 30.
[0077] In the present 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 in the drawing. The second coordinate system can be located in the photographed image. In some examples, the part alignment module 140 can perform coordinate transformation on the geometric features of each layer based on the first coordinate system and the second coordinate system.
[0078] As described above, the measuring device 20 can be used to obtain a plurality of photographed images. In some examples, when part alignment is required, the plurality of photographed images can include a first photographed image and a plurality of second photographed images. The first photographed image can be used to create the second coordinate system.
[0079] In some examples, the first coordinate system can be created based on the first feature group or the second feature group of the geometric features. In some examples, a first image feature group matching the first feature group or a second image feature group matching the second feature group can be obtained in the first photographed image, and the second coordinate system can be created based on the first image feature group or the second image feature group. In this case, the reference for establishing the first coordinate system and the reference for establishing the second coordinate system can correspond to each other, thereby being able to more conveniently obtain the coordinate transformation principle required when the geometric features of each layer are subjected to coordinate transformation.
[0080] In the embodiment, the first feature group can include points and lines, and the second feature group can include lines and lines. In some examples, the first coordinate system can be created based on the feature group including points and lines in the drawing. In some examples, the first coordinate system can be created based on the feature group including lines and lines in the drawing. In other examples, the first coordinate system can also be established based on the 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 as the same coordinate system. In other examples, the first coordinate system can be arbitrarily set.
[0081] In some examples, the part alignment module 140 can create the first coordinate system in the drawing, then send a control signal to the measuring device 20 to make the measuring device 20 take a picture of the part 30 to obtain a first photographed image, then create a second coordinate system in the first photographed image, and finally 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.
[0082] In some examples, the geometric features of each layer can be coordinate-transformed based on the first coordinate system and the second coordinate system to obtain layer features corresponding to the geometric features one-to-one, and a measurement template with 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 photographed image, that is, the positional relationship can be the same, and thus it can be convenient for subsequent measurement of the part 30 based on the measurement template to determine whether the machining precision of the part 30 meets the preset requirements, thereby improving the measurement efficiency of the measuring system 1 on the part 30.
[0083] In some examples, the coordinate transformation principle of the geometric features relative to the photographed image can be established in the part alignment module 140, and then the layer features of the geometric features under the photographed image can be obtained based on the coordinate transformation principle.
[0084] In the embodiment, the part alignment module 140 can be configured to obtain the rotation angle and the translation vector required for coordinate transformation based on the first coordinate system and the second coordinate system, and perform coordinate transformation on the geometric features based on the rotation angle and the translation vector to obtain the coordinate information of the geometric features in the second coordinate system. In this case, when the first coordinate system and the second coordinate system are created, the rotation angle and the translation vector required for coordinate transformation can be obtained, and for the geometric features of each layer, only a coordinate transformation based on the rotation angle and the translation vector is required to obtain the coordinate information of the geometric features in the second coordinate system, thereby quickly and efficiently obtaining a measurement template of multiple layers.
[0085] Referring to Figure 6, let the first coordinate system be X'O'Y', and the second coordinate system be XOY. In some examples, the coordinate conversion principle can satisfy formula (2):
[0086]
[0087] wherein x and y represent coordinate information of the geometric feature transformed into the second coordinate system, x' and y' represent coordinate information of the geometric feature P in the first coordinate system, θ represents a rotation angle, and a and b represent translation vectors.
[0088] In some examples, the display interface of the part alignment module 140 can include a display unit for displaying a graphic or a geometric feature, and a navigation area for performing operations in the part alignment module 140. In some examples, the navigation area of the part alignment module 140 can include a coordinate system setting unit and a part alignment unit. The coordinate system setting unit can be used to create a first coordinate system and / or a second coordinate system. The part alignment unit can be used to convert the geometric feature in the first coordinate system into the second coordinate system.
[0089] In some examples, in the coordinate system setting unit, the created layer can be selected in the drop-down box of the established layer, at which time the geometric feature just assigned to this layer can be seen. Then the first coordinate system is created, the "manual alignment" option is checked, and the "complete" button is clicked to create the first coordinate system.
[0090] In some examples, the part alignment function can be performed in the part alignment module 140. In the navigation area, the "edit template" button is clicked, and the "part alignment" is selected in the right-click pop-up menu in the customer area, at which time the part 30 can be measured to obtain a first captured image, and then the second coordinate system is created in the first captured image. Then the "part alignment" is executed in the right-click pop-up menu, and finally the measurement template is saved. In some examples, the process of coordinate conversion of the geometric feature can be the second execution of "part alignment", that is, before saving the measurement template.
[0091] As described above, the plurality of captured images can include a first captured image for creating a second coordinate system. In some examples, the plurality of captured images can also include a plurality of second captured images. The plurality of second captured images can be used to judge the machining precision of the part 30. In some examples, the number of the plurality of second captured images can be no less than the number of the layers. In this case, each second captured image can have a corresponding layer, and each second captured image can be identified and measured based on the layer features of each layer to enable complete measurement of the part 30.
[0092] In some examples, the shooting angle of the first shooting image and the plurality of second shooting images can be the same. Thus, the part 30 can be directly measured based on the coordinate-converted measurement template.
[0093] In the embodiment, the processing device 10 can further include an identification module 150 (see Figure 2 ). The identification module 150 can be configured to identify the shooting images to obtain image information. In some examples, the identification module 150 can be configured to identify the first shooting image to obtain the first image feature group or the second image feature group. Thus, the second coordinate system can be created based on the first image feature group or the second image feature group.
[0094] In some examples, the identification module 150 can be configured to identify the plurality of second shooting images to obtain image features (the edge profiles described above). The positions of the image features can match the positions of the layer features. In this case, when the part 30 is measured based on the measurement template, the measurement device 20 sets different shooting environments for the part 30 based on the environmental parameters of the respective layers of the measurement template to obtain the plurality of second shooting images, and the identification module 150 can identify the plurality of second shooting images to obtain image features corresponding to the layer features of the respective layers. Since the positions of the image features match the positions of the layer features, the image features and the layer features can be directly compared.
[0095] In the embodiment, the processing device 10 can further include a matching module 160 (see Figure 2 ). The matching module 160 can be used to determine whether the machining precision of the part 30 meets the preset requirement. Specifically, the matching module 160 can be configured to determine whether the machining precision of the part 30 meets the preset requirement based on the difference between the image features and the layer features. In this case, after the image features and the layer features are matched one by one, the layer features can be used as a judgment basis to quickly determine whether the image features are within the error range, and then the machining precision of the part 30 can be determined based on this to determine whether the machining precision of the part 30 meets the preset requirement.
[0096] In some examples, the preset requirement can be a tolerance of a geometric feature, which can be a dimensional tolerance, a location and orientation tolerance, or / and a shape tolerance. The matching module 160 can be used to determine whether the error of the size of the image features of the shooting image compared to the size of the image features is within the tolerance range. If the error is within the tolerance range, it can be determined that the part 30 meets the preset requirement. If the error is outside the tolerance range, the machining precision of the part 30 does not meet the preset requirement. Thus, it can be quickly determined whether the machining precision of the machined part 30 is qualified.
[0097] In the embodiment, the processing device 10 can further include a display module 170 (seeFigure 2 The display module 170 can be used to display interface information of the remaining modules. An operator can operate the operating system involved in the present embodiment through the display module 170 to achieve the above-mentioned content. In other examples, the processing device 10 can not include the display module 170. An operator can operate the measurement system 1 based on the built-in code layer.
[0098] The second aspect of the present embodiment provides a measurement method for multi-layer import, which can be referred to as a measurement method hereinafter. In some examples, the measurement method can be a method applied to any one of the measurement systems 1 described above to generate a measurement template with multiple layers and determine whether the machining precision of the part 30 meets the preset requirements based on the measurement template.
[0099] Figure 7 is a flowchart showing the measurement method involved in the example of the present embodiment.
[0100] Referring to Figure 7 , the measurement method involved in the second aspect of the present embodiment can include extracting geometric features of a 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 precision of the part 30 meets the preset requirements based on the measurement template (step S800).
[0101] In some examples, in step S200, the feature extraction module 110 can be used to extract geometric features of a drawing. For example, the feature extraction module 110 can parse the drawing to obtain geometric features. In some examples, in some examples, the feature extraction module 110 can extract each geometric feature in the drawing, the size of each geometric feature, and the tolerance data, etc.
[0102] In some examples, the measurement area S can also be obtained in step S200. In some examples, the splicing information of the measurement area S can also be obtained in step S200.
[0103] Figure 8 is a flowchart showing step S400 involved in the example of the present embodiment.
[0104] In the measurement method involved in the present embodiment, in step S400, multiple layers can be created and at least one geometric feature can be synchronized to each layer. Referring to Figure 8 , in some examples, step S400 can include creating multiple layers (step S420) and synchronizing at least one geometric feature to each layer (step S440).
[0105] Specifically, in step S420, the plurality of layers can be created in the layer creation module. In some examples, the environment parameters of the layers can also be set in the layer creation module. The layers can have different environment parameters.
[0106] In some examples, in step S440, the at least one geometric feature can be synchronized to the layers in the feature editing module 130. In some examples, the geometric features synchronized to the layers can not be the same. In some examples, the at least one geometric feature can be synchronized to the layers based on preset rules.
[0107] Figure 9 is a flow chart showing step S600 involved in the example of the present embodiment.
[0108] As described above, the measurement method involved in the present embodiment also includes obtaining a measurement template (step S600).
[0109] Specifically, referring to Figure 9 , obtaining a measurement template (step S600) can include creating a first coordinate system in a drawing (step S620), obtaining a photographed image (step S640), creating a second coordinate system in the photographed image (step S660), and performing coordinate conversion on geometric features of the layers based on the first coordinate system and the second coordinate system to obtain a measurement template (step S680).
[0110] In some examples, in step S620, the first coordinate system in the drawing can be created. 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.
[0111] In some examples, in step S640, the photographed image can be obtained. The photographed image can be obtained by photographing the part 30 matching the drawing. Here, matching can mean that the part 30 is processed according to the drawing. In some examples, after the first coordinate system is created in the part alignment module 140, the part 30 can be photographed based on the measurement device 20 to obtain a first photographed image.
[0112] In some examples, in step S660, a second coordinate system can be created on the captured image. In the present embodiment, when the part 30 is measured to obtain the captured image, the second coordinate system can be created on the captured image. In some examples, the second coordinate system can be created by the part alignment module 140. In other words, the part alignment module 140 can also be configured to create a second coordinate system on the drawing. Specifically, when the part 30 is captured by the measuring device 20 to obtain the first captured image, the recognition module 150 can recognize the first captured image to obtain a set of image features that match the set of features on which the first coordinate system is created. Then, the part alignment module 140 can create the second coordinate system based on the set of image features.
[0113] In some examples, in step S680, the geometric features of each layer can be coordinate-converted based on the first coordinate system and the second coordinate system to obtain a measurement template. Specifically, the geometric features of each layer are coordinate-converted based on the first coordinate system and the second coordinate system to obtain layer features that correspond one-to-one to the geometric features. In some examples, coordinate-converting the geometric features of each layer can be converting the coordinate information of the geometric features of each layer to the coordinate system in the first captured image. The principle of coordinate conversion is described above and will not be repeated here. In some examples, after the geometric features of each layer are coordinate-converted, the measurement template described above, i.e., the measurement template with multiple layers, can be formed.
[0114] In some examples, step S600 can be included when part alignment is required. In some examples, if part alignment is not required, step S600 can not be included, and the measurement template can be obtained after step S400 ends. In some examples, if the geometric features in the drawing match the positions of the image features in the first captured image, step S600 can not be required. In other words, if the coordinate information of the geometric features remains unchanged after coordinate conversion, step S600 can not be required.
[0115] In some examples, in step S800, it can be judged whether the machining precision of the part 30 meets the preset requirement based on the measurement template. Specifically, in some examples, after the measurement template is generated, the part 30 can be measured based on the measurement template to judge whether the machining precision of the part 30 meets the preset requirement. In some examples, the measurement device 20 can take multiple pictures of the part 30 based on the multiple layers included in the measurement template to obtain multiple second pictures. The recognition module 150 can recognize the multiple second pictures to obtain recognition features. In some examples, the recognition features of each second picture can correspond to the layer features of each layer one by one. The matching module 160 can judge 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, it can be judged that the part 30 meets the preset requirement. If the error is outside the tolerance range, the machining precision of the part 30 does not meet the preset requirement. Thus, it can be quickly judged whether the machining precision of the machined part 30 is qualified.
[0116] The present disclosure also relates to a computer device, which can include a memory and a processor, the memory storing a computer program, and the processor implementing any of the above computing methods when executing the computer program.
[0117] The present disclosure also relates to a computer-readable storage medium, which can store at least one instruction, and the at least one instruction can be executed by a processor to implement the above computing method. Those skilled in the art can understand that all or part of the steps in the above examples of the computing method can be instructed by a program (instruction) to complete the related hardware, and the program (instruction) can be stored in a computer-readable memory (storage medium), which can include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0118] According to the multi-layer imported measurement system 1 and the measurement method thereof of the present disclosure, the feature extraction module 110 can analyze the drawing to extract the geometric features of the drawing, 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 a preset rule, and the part alignment module 140 can create a first coordinate system of the drawing and a second coordinate system of the photographed image and can perform coordinate conversion 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, the measurement template including multiple layers 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 precision of the part 30 is qualified. Through the measurement system 1 and the measurement method thereof designed by the present embodiment, it can be quickly and accurately measured whether the machining precision of the part 30 meets the requirements. Moreover, through the multi-layer imported measurement system 1 and the measurement method thereof of the present embodiment, batch detection of multiple types of geometric features can be realized.
[0119] Although the present disclosure is specifically described above in combination with the drawings and examples, it can be understood that the above description does not limit the present disclosure in any form. Those skilled in the art can modify and change the present disclosure as needed without departing from the essential spirit and scope of the present disclosure, and these modifications and changes all fall within the scope of the present disclosure.
Claims
1. A measurement system for importing multiple layers, characterized in that, include: A processing device for processing part drawings and a measuring device for obtaining photographic images of the part are provided. The processing device includes a feature extraction module, a layer setting module, a feature editing module, a part alignment module, a recognition module, and a matching module. The feature extraction module is configured to extract geometric features from the drawings. The layer setting module is configured to create multiple layers, each layer having different environmental parameters. The multiple layers are photographic images obtained by taking multiple photographs of the part based on different environmental parameters. The photographic images include a first photographic image and a second photographic image used to determine machining accuracy. The feature editing module is configured to synchronize at least one geometric feature to each layer based on preset rules. The part alignment module is configured to create a first coordinate system located on the drawings and a second coordinate system located on the first photographic image. Based on the first and second coordinate systems, coordinate transformation is performed on the geometric features of each layer to obtain layer features corresponding one-to-one with the geometric features, and a measurement template with each layer is formed. The recognition module is configured to recognize the second photographic image to obtain image features. 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.
2. The measurement system according to claim 1, characterized in that, The feature extraction module is also 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.
3. The measurement system according to claim 1 or 2, characterized in that, 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. The imaging module takes multiple pictures of the part to obtain multiple images that correspond one-to-one with the multiple layers.
4. The measurement system according to claim 3, characterized in that, The multiple captured images include the first captured image used to create the second coordinate system and multiple second captured images used to determine the processing accuracy, wherein the number of multiple second captured images is not less than the number of layers.
5. The measurement system according to claim 1, characterized in that, The environmental parameters include at least one of the following: light source, exposure time, and Z-axis position.
6. The measurement system according to claim 1, characterized in that, The first coordinate system is created based on the first feature group or the second feature group of the geometric features. A first image feature group that matches the first feature group or a second image feature group that matches the second feature group is obtained in the first captured image. The 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.
7. The measurement system according to claim 6, characterized in that, The recognition module is configured to recognize the first captured image to obtain the first image feature group or the second image feature group, and to recognize multiple second captured images to obtain image features, wherein the position of the image features matches the position of the layer features.
8. A measurement method for importing multiple layers, characterized in that, The measurement method includes: extracting geometric features from a drawing; creating multiple layers and setting environmental parameters for the multiple layers; 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, the picture image including a first picture image and a second picture image for judging machining accuracy; creating a second coordinate system located on the first 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 layer features corresponding one-to-one with the geometric features, and forming a measurement template with each layer; recognizing the second picture image to obtain image features; and judging whether the machining accuracy of the part meets preset requirements based on the degree of difference between the image features and the layer features.
Citation Information
Patent Citations
Multi-type workpieces batch visual measuring system and method
CN109357630A
Control method and system for measuring equipment, equipment and medium
CN112947804A