A three-dimensional dimension measurement method, equipment and device for automobile die-casting mold
By analyzing the edge lines and grayscale values of the surface image of the automotive die-casting mold, calculating the structural complexity and dynamically adjusting the 3D scanner lens range, it solves the problem of inaccurate dimensional detection in the existing technology and achieves precise 3D dimensions of complex molds. Measurement.
Patent Information
- Application Number
- CN202410924713.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-11
AI Technical Summary
When performing three-dimensional measurements on automotive die-casting molds, the existing technology fails to consider the complex conditions of components at different locations, resulting in inaccurate dimensional detection.
By acquiring the mold surface image, analyzing the edge lines and grayscale values, calculating the structural complexity, and dynamically adjusting the lens measurement range of the 3D scanner to adapt to the complexity of different locations for accurate measurement.
It achieves accurate three-dimensional dimensional measurement of automotive die-casting molds, avoids the loss of detailed information due to fixed measurement ranges, and improves measurement accuracy.
Smart Images

Figure CN118485709B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image feature extraction, and in particular to a three-dimensional dimension measurement method, equipment and device for an automobile die-casting mold. Background Art
[0002] When using a 3D scanner to scan automotive die-casting molds, a fixed lens measurement range is usually used. For automotive die-casting molds, their component composition is relatively complex, and different positions have different spatial complexities. If a fixed lens measurement range is used for 3D scanning at each position, it is impossible to accurately scan the more complex positions, which leads to inaccurate dimensional measurement. Summary of the invention
[0003] In order to solve the technical problem that the prior art does not consider the complex situation of components at different positions when performing three-dimensional measurement on automobile die-casting molds, and uses a fixed lens measurement range for three-dimensional scanning, resulting in inaccurate size detection results, the purpose of the present invention is to provide a three-dimensional size measurement method, equipment and device for automobile die-casting molds, and the technical solutions adopted are as follows:
[0004] The present invention proposes a method for measuring the three-dimensional dimensions of an automobile die-casting mold, the method comprising:
[0005] Acquire the mold surface image at various positions of the automobile die-casting mold; the mold surface image contains multiple edge lines;
[0006] According to the position distribution between the edge lines, a plurality of line association networks in the mold surface image are obtained; according to the number of edge lines in the line association network and the area distribution, the internal complexity of each line association network is obtained; according to the cross distribution between the line association networks, the regional complexity of each line association network is obtained; according to the internal complexity and regional complexity of each line association network, the first structural complexity of the mold surface image is obtained;
[0007] The mold surface image is divided into blocks according to the gray value, the detail component blocks are screened out according to the size of the block area, and the concave structure blocks are screened out according to the gray size of the block area; the second structural complexity of the mold surface image is obtained according to the distribution of the detail component blocks and the concave structure blocks;
[0008] When three-dimensionally measuring the dimensions of each position of the automobile die-casting mold, the lens measurement range of the three-dimensional scanner at the corresponding position is adjusted according to the first structural complexity and the second structural complexity, and the size of the automobile die-casting mold is determined according to the final three-dimensional scanning result.
[0009] Furthermore, the method for obtaining the line association network includes:
[0010] The edge lines that intersect with each other are regarded as associated edge lines;
[0011] Choose any edge line as the center, use the breadth traversal algorithm to find all associated edge lines, and obtain a line association network; choose any edge line other than the edge lines in the obtained line association network as the center to continue to obtain the line association network, until each edge line corresponds to at least one of the line association networks.
[0012] Furthermore, the method for obtaining the internal complexity includes:
[0013] The minimum circumscribed rectangle of the area composed of the edge lines in the line association network is obtained, and the area ratio of the minimum circumscribed rectangle in the mold surface image is taken as the first area ratio; the internal complexity of each line association network is obtained according to the first area ratio and the number of edge lines in the line association network; the first area ratio is negatively correlated with the internal complexity, and the number of edge lines is positively correlated with the internal complexity.
[0014] Furthermore, the method for obtaining the regional complexity includes:
[0015] Select any one of the line association networks as the target line association network, and select other line association networks that intersect with the target line association network as intersecting line association networks;
[0016] Obtaining the intersection area of the minimum circumscribed rectangle of each of the intersecting line association networks and the target line association network, and taking the area ratio of the intersection area to the minimum circumscribed rectangle of the target line association network as the second area ratio;
[0017] The cumulative sum of the second area proportions corresponding to all the intersecting line association networks is used as the regional complexity of the target line association network;
[0018] The target line association network is changed to obtain the regional complexity of each line association network.
[0019] Furthermore, the method for obtaining the first structural complexity includes:
[0020] The product of the internal complexity and the regional complexity of each line-associated network is taken as the network complexity of the line-associated network; and the cumulative sum of the network complexities of all line-associated networks is taken as the first structural complexity of the mold surface image.
[0021] Furthermore, the block regions whose areas are smaller than a preset area threshold are taken as the detail component blocks; and the block regions whose overall grayscale values are smaller than a preset grayscale threshold are taken as the concave structure blocks.
[0022] Furthermore, the method for obtaining the second structural complexity includes:
[0023] The ratio of the area of all the detail component blocks to the area in the mold surface image is taken as a third area ratio; the ratio of the number of the detail component blocks in all the block areas is taken as a detail component ratio;
[0024] The product of the third area ratio, the detail component ratio and the number of block regions is used as the spatial complexity of the mold surface image;
[0025] The ratio of the area of all the concave structure blocks to the area in the mold surface image is taken as a fourth area ratio; and the second structural complexity of the mold surface image is obtained according to the fourth area ratio and the spatial complexity.
[0026] Furthermore, the adjusting the lens measurement range of the three-dimensional scanner at the corresponding position according to the first structural complexity and the second structural complexity includes:
[0027] The overall structural complexity is obtained according to the first structural complexity and the second structural complexity; the adjustment amount is obtained according to the overall structural complexity and a preset measurement adjustment range; and the preset default measurement range of the three-dimensional scanner lens is reduced according to the adjustment amount to obtain an adjusted lens measurement range.
[0028] The present invention also proposes a three-dimensional dimension measuring device for an automobile die-casting mold, the device comprising:
[0029] A mold surface image acquisition module is used to acquire mold surface images at various positions of the automobile die-casting mold; the mold surface image contains multiple edge lines;
[0030] The first structural complexity analysis module is used to obtain multiple line association networks in the mold surface image according to the position distribution between the edge lines; the internal complexity of each line association network according to the number and area distribution of the edge lines in the line association network; the regional complexity of each line association network according to the cross distribution between the line association networks; and the first structural complexity of the mold surface image according to the internal complexity and regional complexity of each line association network;
[0031] The second structural complexity analysis module is used to perform block processing on the mold surface image according to the gray value, filter out the detail component blocks according to the size of the block area, and filter out the concave structure blocks according to the gray information of the block area; and obtain the second structural complexity of the mold surface image according to the distribution of the detail component blocks and the concave structure blocks;
[0032] The lens measurement range adjustment module is used to adjust the lens measurement range of the three-dimensional scanner at the corresponding position according to the first structural complexity and the second structural complexity when performing three-dimensional size measurement on each position of the automobile die-casting mold, and determine the size of the automobile die-casting mold according to the final three-dimensional scanning result.
[0033] The present invention also proposes a three-dimensional dimension measuring device for an automobile die-casting mold, the device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements any one of the steps of a three-dimensional dimension measuring method for an automobile die-casting mold when executing the computer program.
[0034] The present invention has the following beneficial effects:
[0035] The embodiment of the present invention takes into account that the automobile die-casting mold contains many obvious complex feature areas such as connection points, support points, and stress concentration areas. For these areas, the characteristics of cross-line concentrated distribution are presented. Therefore, a line association network is obtained, and the edge line distribution in the line association network is used to detect whether there are complex feature areas at the corresponding position, and then the complexity of the first result is determined. Further considering that due to the influence of light, if a variety of sensitive areas are presented in the mold surface image at a position, it means that the component structure at this position presents obvious three-dimensionality, and there are concave and convex surfaces, etc. Therefore, the embodiment of the present invention uses gray value distribution to determine the detail component block and concave structure block, and then determines the second structural complexity. Finally, the first structural complexity and the second structural complexity are used to adjust the lens measurement range at the corresponding position. That is, the present invention determines the lens range at each position by adaptively determining the lens measurement range, performs three-dimensional scanning using the adaptive lens measurement range, and uses the final three-dimensional scanning result to determine the accurate size of the automobile die-casting mold. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A flow chart of a method for measuring the three-dimensional dimensions of an automobile die-casting mold provided by one embodiment of the present invention;
[0038] Figure 2 A structural diagram of a three-dimensional dimension measuring device for an automobile die-casting mold provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the three-dimensional dimension measurement method, equipment and device of an automobile die-casting mold proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0040] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0041] The following is a detailed description of a method, equipment and device for measuring the three-dimensional dimensions of an automobile die-casting mold provided by the present invention in conjunction with the accompanying drawings.
[0042] See also Figure 1 , which shows a flow chart of a method for measuring the three-dimensional dimensions of an automobile die-casting mold provided by an embodiment of the present invention, the method comprising:
[0043] Step S1: Acquire a mold surface image at various positions of an automobile die-casting mold; the mold surface image includes a plurality of edge lines.
[0044] The embodiment of the present invention aims to determine the optimal lens measurement range at the corresponding position before the three-dimensional scanner scans the automobile die-casting mold. For positions with higher complexity, in order to ensure the accuracy of three-dimensional scanning, a high-resolution lens with a smaller measurement range should be used to capture all the detailed areas of the mold, thereby ensuring the accuracy of dimensional measurement. Therefore, before three-dimensional scanning, it is necessary to first obtain the mold surface image at each position of the automobile die-casting mold, determine the corresponding structural complexity based on the image feature information in each mold surface image, and then determine the lens measurement range at the corresponding position.
[0045] Automotive die-casting molds are used to produce a variety of complex automotive parts. These automotive parts need to be constructed using process lines during the design and manufacturing process. That is, the combination of lines in the design and manufacturing of automotive die-casting molds is a key factor in determining the structural form of finished parts. The lines on the automotive die-casting mold not only constitute the basic framework of the mold, but also determine the collective shape, dimensional accuracy and surface quality of the finished product. Therefore, for automotive die-casting molds, the line information on its surface is important information and can be used to evaluate the complexity of the mold surface. That is, the more complex the line distribution, the more detailed information there is at that location, and the greater the surface complexity.
[0046] In a specific implementation of an embodiment of the present invention, after obtaining the mold surface image, the canny edge detection algorithm is used to obtain edge information in the image. It should be noted that in the embodiment of the present invention, a line with an obvious trend composed of continuous edge pixels is taken as an edge line, that is, an edge line needs to be continuous and the curvature between adjacent positions is similar. It should be noted that the method for determining the edge line is a technical means well known to those skilled in the art, and is not limited or elaborated here.
[0047] Step S2: obtaining multiple line association networks in the mold surface image according to the position distribution between edge lines; obtaining the internal complexity of each line association network according to the number of edge lines in the line association network and the area distribution; obtaining the regional complexity of each line association network according to the cross distribution between the line association networks; obtaining the first structural complexity of the mold surface image according to the internal complexity and regional complexity of each line association network.
[0048] For automotive die-casting molds, there may be complex areas such as connection points, support points or stress concentration areas on their surfaces. These areas determine the key functional characteristics of the finished product, and such complex areas have obvious complex line intersections, and the number of lines is large and concentrated. Therefore, by analyzing the edge line distribution in the mold surface image, it can be determined whether such complex areas exist at the corresponding position. If such complex areas exist, it means that the position requires a smaller lens range to provide clearer measurement, avoiding the loss of detail features and causing inaccurate dimensional measurement of the die-casting machine.
[0049] In order to accurately measure the edge line distribution in the mold surface image, the embodiment of the present invention determines multiple line association networks in the mold surface image according to the position distribution between the edge lines. That is, the line association network is composed of edge lines with distribution associations, where the distribution associations can be intersections, overlaps, proximity, etc. That is, a line association network can reflect the distribution of line information in a certain area in the image. In a line association network, the more edge lines there are and the smaller the area, the more concentrated and complex the line information in the corresponding area in the image is. Therefore, the internal complexity of each line association network can be determined based on the number of edge lines in the line association network and the area distribution.
[0050] Further considering that there will be a certain degree of intersection between different line association networks, if the intersection between a line association network and other line association networks is relatively strong, it means that the line association network is at an obvious key node in the mold, and there are more line information intersections at this position. The more detailed information is contained in this position, the regional complexity of each line association network can be obtained based on the intersection distribution between the line association networks. Combining the regional complexity and internal complexity of each line association network can obtain the first structural complexity of the mold surface image.
[0051] Step S3: Divide the mold surface image into blocks according to the grayscale value, filter out detail component blocks according to the size of the block area, and filter out concave structure blocks according to the grayscale size of the block area; obtain the second structural complexity of the mold surface image according to the distribution of the detail component blocks and the concave structure blocks.
[0052] In step S2, the line information of the mold surface is mainly analyzed, and the line information can characterize the structural features on the mold surface. However, if the complexity of the mold in space is to be determined, it cannot be characterized only by line information. For a three-dimensional automobile die-casting mold, because different structures are located in different spatial positions, the influence of light on different shapes of parts is different. For example, the concave area will be obviously darker due to the influence of light, while the convex area will be obviously brighter because there is no occlusion of other structures.
[0053] Because the automobile die-casting mold is usually a fixed color, and because of the material, the light has a strong grayscale representation in the mold surface image. Therefore, the embodiment of the present invention further analyzes the grayscale information in the mold surface image, and blocks the mold surface image according to the grayscale value, that is, a block area represents a grayscale information, indicating that the position points in a block area are all in the same plane. Therefore, the detail component blocks can be screened out according to the size of the block area, that is, the block area with a smaller area can be regarded as a detail component block, and the more detail component blocks there are, the more obvious complex structure there is at the corresponding position of the mold surface image and the complex structure is composed of multiple small components; further, the concave structure blocks can be screened out according to the grayscale size, because for the concave structure, it is obviously darker than other areas in the image, that is, the concave structure blocks have a smaller grayscale value, and the embodiment of the present invention uses the concave structure blocks as reference information to determine the structural complexity at the corresponding position of the image, that is, the more concave structure blocks there are, the more small components there are at the position, and then more concave surfaces are generated due to occlusion or combination, that is, the more concave structure blocks there are, the greater the complexity of the position. Therefore, the second structural complexity of the mold surface image can be obtained according to the distribution of detail component blocks and concave structure blocks.
[0054] In a specific implementation of the embodiment of the present invention, a superpixel segmentation algorithm is used to process the grayscale image of the mold surface image to obtain each block area.
[0055] Step S4: When performing three-dimensional size measurement on each position of the automobile die-casting mold, the lens measurement range of the three-dimensional scanner at the corresponding position is adjusted according to the first structural complexity and the second structural complexity, and the size of the automobile die-casting mold is determined according to the final three-dimensional scanning result.
[0056] The first structural complexity and the second structural complexity represent the surface structural complexity represented by line information and the spatial structural complexity represented by grayscale information at a position, respectively. Therefore, the lens measurement range of the 3D scanner at the corresponding position can be adjusted according to the first structural complexity and the second structural complexity. That is, the greater the complexity, the smaller the lens measurement range is required. The position is scanned with a smaller lens measurement range, thereby avoiding the loss of detail information. Finally, the final 3D scanning result can be obtained to determine the size of the automotive die-casting mold.
[0057] It should be noted that in the embodiment of the present invention, after obtaining the adjusted lens measurement range, the lens measurement range actually used can be determined by using estimation methods such as rounding up, rounding down, and rounding off, and three-dimensional scanning can be performed by setting and combining lens parameters to meet the final determined measurement range. After obtaining the final three-dimensional model, three-dimensional dimension measurement can be performed. The specific dimension measurement method is a technical means well known to those skilled in the art and will not be described in detail here.
[0058] In summary, the embodiment of the present invention obtains the mold surface image at various positions of the automobile die-casting mold, obtains the line association network in the mold surface image, and uses the edge line distribution in the line association network to detect whether there is a complex feature area at the corresponding position, thereby determining the complexity of the first result. The gray value distribution is used to determine the detail component block and the concave structure block, thereby determining the second structural complexity. Finally, the first structural complexity and the second structural complexity are used to adjust the lens measurement range at the corresponding position. An adaptive lens measurement range is used to perform three-dimensional scanning, and then the final three-dimensional scanning result is used to determine the size of the automobile die-casting mold. The present invention adaptively determines the three-dimensional scanning lens measurement range at various positions in the automobile die-casting mold by extracting image features, thereby avoiding the loss of detail information and obtaining accurate size detection results.
[0059] Preferably, in one embodiment of the present invention, the method for obtaining the line association network includes:
[0060] The edge lines that have intersections between edge lines are taken as associated edge lines. Any edge line is selected as the center, and all associated edge lines are found using the breadth traversal algorithm to obtain a line association network; any edge line other than the edge line in the obtained line association network is selected as the center to continue to obtain the line association network until each edge line corresponds to at least one line association network. It should be noted that the breadth traversal algorithm is a commonly used algorithm in graph structure, which starts from the root node and traverses the nodes of the next level step by step until the entire structure is traversed, that is, the breadth traversal algorithm is an algorithm that does not repeat the traversal step by step. For the embodiment of the present invention, that is, with an edge line as the center, the corresponding associated edge line is found, and then the associated edge line corresponding to the associated edge line is found, until the latest associated edge line found does not have an associated edge line, and the traversal is terminated to obtain a line association network. Then, any edge line in which the line association network is not determined is selected to continue to obtain, that is, the method for obtaining the entire line association network is also set based on the breadth traversal algorithm. Obtaining the line association network by this method can effectively quantify the association relationship between edge lines, and quickly and accurately determine all line association networks in the image.
[0061] Preferably, in one embodiment of the present invention, the method for obtaining internal complexity includes:
[0062] The minimum circumscribed rectangle of the area composed of edge lines in the line association network is obtained, that is, the size characteristics of the entire line association network are quantified using the minimum circumscribed rectangle area. The area ratio of the minimum circumscribed rectangle in the mold surface image is taken as the first area ratio; the internal complexity of each line association network is obtained according to the first area ratio and the number of edge lines in the line association network. The first area ratio is negatively correlated with the internal complexity, and the number of edge lines is positively correlated with the internal complexity, that is, when the first area ratio is small and the number of edge lines is large, it means that the more edge lines in the corresponding line association network are associated and the more concentrated the distribution is, the stronger the internal complexity of the line association network is.
[0063] As an example, in a specific implementation of the embodiment of the present invention, the internal complexity is expressed by the formula:
[0064] ;in is the internal complexity of the u-th line association network, is the number of edge lines in the u-th line association network, is an exponential function with a natural constant as base, is the area of the minimum circumscribed rectangle of the u-th line association network, is the area of the mold surface image at the ath position.
[0065] In the internal complexity formula, the first area ratio is negatively mapped and normalized through an exponential function with a natural constant as the base, and the number of edge lines is weighted by weight to obtain the internal complexity.
[0066] It should be noted that, in the embodiment of the present invention, the area of a region is the number of pixels in the region, which will not be described in detail in the subsequent content.
[0067] Preferably, in one embodiment of the present invention, the method for obtaining regional complexity includes:
[0068] Any one of the line association networks is selected as the target line association network, and other line association networks that intersect with the target line association network are selected as intersecting line association networks.
[0069] The intersection area of the minimum circumscribed rectangle of each intersecting line association network and the target line association network is obtained, that is, the intersection information between the two line association networks is represented by the intersection information between the minimum circumscribed rectangles. The ratio of the intersection area to the area of the minimum circumscribed rectangle of the target line association network is taken as the second area ratio. The larger the second area ratio, the stronger the intersection information of the target line association network relative to the intersecting line association network, and the stronger the complexity of the target line association network.
[0070] The cumulative sum of the second area proportions corresponding to all intersecting line association networks is used as the regional complexity of the target line association network. The regional complexity of each line association network can be obtained by changing the target line association network.
[0071] Preferably, in one embodiment of the present invention, the method for obtaining the first structural complexity includes:
[0072] The product of the internal complexity and regional complexity of each line association network is taken as the network complexity of the line association network. The cumulative sum of the network complexity of all line association networks is taken as the first structural complexity of the mold surface image. That is, for a mold surface image, the more line association networks there are and the greater the network complexity in the line association network, the stronger the surface structural complexity at the corresponding position of the mold surface image, that is, the greater the first structural complexity.
[0073] Preferably, in one embodiment of the present invention, the block area with an area smaller than a preset area threshold is used as the detail component block; the block area with an overall gray value smaller than a preset gray threshold is used as the concave structure block. The size of the preset area threshold is set to one-thirtieth of the area of the current mold surface image, and the preset gray threshold is set to the average gray value of the mold surface image. In other implementations of the embodiments of the present invention, it can be set according to the actual implementation scenario, and is not limited or elaborated here.
[0074] Preferably, in one embodiment of the present invention, the method for obtaining the second structural complexity includes:
[0075] The area ratio of all detail component blocks and the area ratio in the mold surface image is taken as the third area ratio; the number ratio of detail component blocks in all block areas is taken as the detail component ratio; the larger the third area ratio is, the larger the detail component ratio is, indicating that there are more detail components in the current mold surface image and the greater the spatial complexity. Therefore, the product of the third area ratio, the detail component ratio and the number of block areas is taken as the spatial complexity of the mold surface image.
[0076] Further considering the concave structure blocks, the area ratio of all the concave structure blocks and the area ratio in the mold surface image is taken as the fourth area ratio. The fourth area ratio indicates that the more concave structure blocks there are, the stronger the spatial complexity at the corresponding position is. Therefore, the second structural complexity of the mold surface image can be obtained according to the fourth area ratio and the spatial complexity.
[0077] As an example, in one embodiment of the present invention, the second structural complexity is expressed by a formula:
[0078] ;in is the second structural complexity of the mold surface image at the ath position, is the number of block areas in the mold surface image at the ath position, is the number of detail parts blocks in the mold surface image at the ath position, is the total area of all detail parts in the mold surface image at the ath position, is the area of the mold surface image at the ath position, is the total area of all concave structure blocks in the mold surface image at the ath position, and softmax is a normalized exponential function. is the space complexity.
[0079] In the second structural complexity formula, the fourth area ratio is normalized using a normalized exponential function and then added to 1, that is, the addition result is a magnification factor, thereby amplifying the spatial complexity.
[0080] Preferably, in one embodiment of the present invention, adjusting the lens measurement range of the three-dimensional scanner at the corresponding position according to the first structural complexity and the second structural complexity includes:
[0081] The overall structural complexity is obtained according to the first structural complexity and the second structural complexity; the adjustment amount is obtained according to the overall structural complexity and the preset measurement adjustment range, that is, the most suitable adjustment amount is determined in the measurement adjustment range according to the overall structural complexity. Because the greater the overall structural complexity, the smaller the lens measurement range is required for the corresponding position to perform three-dimensional scanning, so after determining the adjustment amount, the preset default measurement range of the three-dimensional scanner lens needs to be reduced according to the adjustment amount to obtain the adjusted lens measurement range.
[0082] As an example, in a specific implementation of the embodiment of the present invention, the process of adjusting the lens measurement range is expressed by the formula:
[0083] ;in is the lens measurement range after adjustment at the ath position, To preset the default measurement range, is the minimum measuring range, is the second structural complexity of the mold surface image at the ath position, is the first structural complexity of the mold surface image at the ath position, and softmax is a normalized exponential function.
[0084] In the lens measurement range adjustment formula, the difference between the preset default measurement range and the minimum measurement range is used as the preset measurement adjustment range; the product of the first structural complexity and the second structural complexity is used as the overall structural complexity, which is further normalized and the value is limited between 0 and 1, and then multiplied by the measurement adjustment range to obtain the adjustment amount; and the subtraction operation is used to reduce the preset default measurement range according to the adjustment amount.
[0085] The present invention also proposes a three-dimensional dimension measuring device for automobile die-casting molds, see Figure 2 , which shows a structural diagram of a three-dimensional dimension measuring device for an automobile die-casting mold provided by an embodiment of the present invention, the device comprising:
[0086] The mold surface image acquisition module 201 is used to acquire the mold surface image at various positions of the automobile die-casting mold; the mold surface image contains multiple edge lines;
[0087] The first structural complexity analysis module 202 is used to obtain multiple line association networks in the mold surface image according to the position distribution between edge lines; the internal complexity of each line association network according to the number and area distribution of edge lines in the line association network; the regional complexity of each line association network according to the cross distribution between the line association networks; and the first structural complexity of the mold surface image according to the internal complexity and regional complexity of each line association network;
[0088] The second structural complexity analysis module 203 is used to perform block processing on the mold surface image according to the gray value, filter out detail component blocks according to the size of the block area, and filter out concave structure blocks according to the gray information of the block area; and obtain the second structural complexity of the mold surface image according to the distribution of the detail component blocks and the concave structure blocks;
[0089] The lens measurement range adjustment module 204 is used to adjust the lens measurement range of the three-dimensional scanner at the corresponding position according to the first structural complexity and the second structural complexity when performing three-dimensional size measurement on each position of the automobile die-casting mold, and determine the size of the automobile die-casting mold according to the final three-dimensional scanning result.
[0090] The description of each module in a three-dimensional dimension measuring device for an automobile die-casting mold has been described in a three-dimensional dimension measuring method for an automobile die-casting mold, and will not be repeated here.
[0091] The present invention also proposes a three-dimensional dimension measuring device for an automobile die-casting mold. The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the processor implements any one of the steps of a three-dimensional dimension measuring method for an automobile die-casting mold.
[0092] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0093] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for measuring the three-dimensional dimensions of an automobile die-casting mold, characterized in that: The method comprises: Acquire the mold surface image at various positions of the automobile die-casting mold; the mold surface image contains multiple edge lines; According to the position distribution between the edge lines, a plurality of line association networks in the mold surface image are obtained; according to the number and area distribution of the edge lines in the line association network, the internal complexity of each line association network is obtained; according to the cross distribution between the line association networks, the regional complexity of each line association network is obtained; according to the internal complexity and regional complexity of each line association network, the first structural complexity of the mold surface image is obtained; The mold surface image is divided into blocks according to the gray value, the detail component blocks are screened out according to the size of the block area, and the concave structure blocks are screened out according to the gray size of the block area; the second structural complexity of the mold surface image is obtained according to the distribution of the detail component blocks and the concave structure blocks; When three-dimensionally measuring the dimensions of each position of the automobile die-casting mold, the lens measurement range of the three-dimensional scanner at the corresponding position is adjusted according to the first structural complexity and the second structural complexity, and the size of the automobile die-casting mold is determined according to the final three-dimensional scanning result.
2. The three-dimensional dimension measuring method of a die-casting mold for an automobile according to claim 1, characterized in that: The method for obtaining the line association network includes: The edge lines that intersect with each other are regarded as associated edge lines; Choose any edge line as the center, use the breadth traversal algorithm to find all associated edge lines, and obtain a line association network; choose any edge line other than the edge lines in the obtained line association network as the center to continue to obtain the line association network, until each edge line corresponds to at least one of the line association networks.
3. The method for measuring the three-dimensional dimensions of an automobile die-casting mold according to claim 1, characterized in that: The method for obtaining the internal complexity includes: The minimum circumscribed rectangle of the area composed of the edge lines in the line association network is obtained, and the area ratio of the minimum circumscribed rectangle in the mold surface image is taken as the first area ratio; the internal complexity of each line association network is obtained according to the first area ratio and the number of edge lines in the line association network; the internal complexity is negatively correlated with the first area ratio, and the internal complexity is positively correlated with the number of edge lines.
4. The method for measuring the three-dimensional dimensions of an automobile die-casting mold according to claim 3, characterized in that: The method for obtaining the regional complexity includes: Select any one of the line association networks as the target line association network, and select other line association networks that intersect with the target line association network as intersecting line association networks; Obtaining the intersection area of the minimum circumscribed rectangle of each of the intersecting line association networks and the target line association network, and taking the area ratio of the intersection area to the minimum circumscribed rectangle of the target line association network as the second area ratio; The cumulative sum of the second area proportions corresponding to all the intersecting line association networks is used as the regional complexity of the target line association network; The target line association network is changed to obtain the regional complexity of each line association network.
5. The method for measuring the three-dimensional dimensions of an automobile die-casting mold according to claim 1, characterized in that: The method for obtaining the first structural complexity includes: The product of the internal complexity and the regional complexity of each line-associated network is taken as the network complexity of the line-associated network; and the cumulative sum of the network complexities of all line-associated networks is taken as the first structural complexity of the mold surface image.
6. The method for measuring the three-dimensional dimensions of an automobile die-casting mold according to claim 1, characterized in that: The block regions whose areas are smaller than a preset area threshold are taken as the detail component blocks; and the block regions whose overall grayscale values are smaller than a preset grayscale threshold are taken as the concave structure blocks.
7. The method for measuring the three-dimensional dimensions of an automobile die-casting mold according to claim 1, characterized in that: The method for obtaining the second structural complexity includes: The ratio of the area of all the detail component blocks to the area in the mold surface image is taken as a third area ratio; the ratio of the number of the detail component blocks in all the block areas is taken as a detail component ratio; The product of the third area ratio, the detail component ratio and the number of block regions is used as the spatial complexity of the mold surface image; The ratio of the area of all the concave structure blocks to the area in the mold surface image is taken as a fourth area ratio; and the second structural complexity of the mold surface image is obtained according to the fourth area ratio and the spatial complexity.
8. The method for measuring the three-dimensional dimensions of an automobile die-casting mold according to claim 1, characterized in that: The method of adjusting the lens measurement range of the three-dimensional scanner at the corresponding position according to the first structural complexity and the second structural complexity includes: The overall structural complexity is obtained according to the first structural complexity and the second structural complexity; the adjustment amount is obtained according to the overall structural complexity and a preset measurement adjustment range; and the preset default measurement range of the three-dimensional scanner lens is reduced according to the adjustment amount to obtain an adjusted lens measurement range.
9. A three-dimensional dimension measuring device for automobile die-casting molds, characterized in that: The device comprises: A mold surface image acquisition module is used to acquire mold surface images at various positions of the automobile die-casting mold; the mold surface image contains multiple edge lines; The first structural complexity analysis module is used to obtain multiple line association networks in the mold surface image according to the position distribution between the edge lines; obtain the internal complexity of each line association network according to the number and area distribution of the edge lines in the line association network; obtain the regional complexity of each line association network according to the cross distribution between the line association networks; obtain the first structural complexity of the mold surface image according to the internal complexity and regional complexity of each line association network; The second structural complexity analysis module is used to perform block processing on the mold surface image according to the gray value, filter out the detail component blocks according to the size of the block area, and filter out the concave structure blocks according to the gray information of the block area; and obtain the second structural complexity of the mold surface image according to the distribution of the detail component blocks and the concave structure blocks; The lens measurement range adjustment module is used to adjust the lens measurement range of the three-dimensional scanner at the corresponding position according to the first structural complexity and the second structural complexity when performing three-dimensional size measurement on each position of the automobile die-casting mold, and determine the size of the automobile die-casting mold according to the final three-dimensional scanning result.
10. A three-dimensional dimension measuring device for an automobile die-casting mold, the device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of a method for measuring the three-dimensional dimensions of an automobile die-casting mold as described in any one of claims 1 to 8 are implemented.
