Aperture scanning measurement method, device, equipment and storage medium
By detecting the line contact characteristics between the ball and the small hole and processing three-dimensional data, the problems of incomplete data and environmental interference in small hole measurement are solved, the accurate measurement of the hole diameter and hole center is achieved, and the detection efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202510859410.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-09-16
AI Technical Summary
Existing scanning technology has problems when measuring small holes, such as incomplete data, low measurement accuracy due to complex geometric shapes, and interference from ambient light, making it difficult to accurately measure the aperture and hole center.
The linear contact characteristics between the detection ball and the hole to be inspected are adopted, and the three-dimensional data of the detection ball and the hole are obtained through a three-dimensional scanning device. The hole radius and the hole center position are determined using the standard radius of the detection ball, and the three-dimensional vector matrix and distance vector matrix are constructed for correction.
It improves the accuracy and efficiency of small hole measurement, reduces environmental interference, ensures the accuracy of scanning data, and improves the adaptability and accuracy of 3D scanning equipment.
Smart Images

Figure CN120651126A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of precision measurement technology, and in particular to an aperture scanning measurement method, device, equipment and storage medium. Background Art
[0002] In the fields of precision manufacturing and inspection, traditional measurement methods (using contact-based measuring tools like internal micrometers and coordinate measuring machines) pose challenges when measuring small holes, including inconvenience and damage to the hole walls. In recent years, non-contact measurement technologies, such as 3D scanning, have been increasingly adopted for small hole measurement. These technologies, which acquire 3D surface data through high-precision optical scanning, offer advantages such as fast measurement speed, high accuracy, and no damage to the object being measured.
[0003] However, existing scanning technologies still have some problems when measuring small holes. On the one hand, the size of the small holes is small, and the blue light scanning equipment has difficulty accurately capturing the complete information of the hole wall due to the diffraction effect, resulting in incomplete scanning data, which affects the subsequent data processing and fitting accuracy. On the other hand, the geometric shape of the small holes is complex, especially the threaded holes. The spiral grooves of the holes reflect light in a disorderly manner, resulting in the breakage of the three-dimensional point cloud data, making it impossible to generate a continuous triangulated model, and further reducing the measurement accuracy. On the other hand, when scanning small holes, optical scanning equipment is easily interfered by factors such as ambient light and surface reflection, which in turn causes problems such as data noise and scanning data distortion. Summary of the Invention
[0004] Embodiments of the present invention provide an aperture scanning measurement method, apparatus, equipment, and storage medium, which utilize at least the linear contact characteristics between a detection ball and the hole to be detected to convert difficult-to-measure hole wall features into a scannable surface profile of the ball to be detected, thereby achieving accurate measurement of the diameter of the hole to be detected and the position of the hole center, thereby improving detection efficiency and enhancing detection accuracy.
[0005] In a first aspect, an embodiment of the present invention provides an aperture scanning measurement method, comprising at least the following steps:
[0006] At least one detection ball that meets the preset conditions is placed on the hole to be detected;
[0007] Acquiring three-dimensional data of the detection ball and the hole to be detected using a three-dimensional scanning device;
[0008] The hole radius and the hole center position of the hole to be inspected are determined based at least on the three-dimensional data and the standard radius of the inspection sphere.
[0009] Optionally, before determining the hole radius and the hole center position of the hole to be inspected based at least on the three-dimensional data and the standard radius of the inspection sphere, the method further includes:
[0010] At least set the coordinate system of the object to be measured as the only world coordinate system.
[0011] Optionally, determining the hole radius and the hole center position of the hole to be inspected based at least on the three-dimensional data and a standard radius of the inspection sphere specifically includes:
[0012] Determine the first center coordinates and the center radius of the detection sphere at least by using the three-dimensional data and the standard radius;
[0013] determining the second sphere center coordinates of the detection sphere at least based on the three-dimensional data, the first sphere center coordinates and the standard radius;
[0014] The hole radius and the hole center position are determined based on at least the second spherical center coordinates.
[0015] Optionally, determining the second sphere center coordinates of the detection sphere at least based on the three-dimensional data, the first sphere center coordinates, and the standard radius specifically includes:
[0016] At least calculating the distance from the three-dimensional data to the center of the first sphere center coordinate;
[0017] Constructing a three-dimensional vector matrix and a distance vector matrix based on the three-dimensional data, the first sphere center coordinates, the sphere center distance and the standard radius;
[0018] determining a correction amount of the spherical center coordinates based at least on the three-dimensional vector matrix and the distance vector matrix;
[0019] The second spherical center coordinates are determined based on the first spherical center coordinates and the correction amount.
[0020] Optionally, determining the hole radius and the hole center position based at least on the second spherical center coordinates specifically includes:
[0021] determining the plane where the hole to be detected is located based at least on the second spherical center coordinates;
[0022] Determining a plane distance from the second sphere center coordinate to the plane;
[0023] determining the hole radius based on at least the standard radius and the plane distance;
[0024] The hole center position is determined at least based on the second spherical center coordinates and the plane distance.
[0025] In a second aspect, an embodiment of the present invention further provides an aperture scanning measurement device, comprising at least:
[0026] A small hole insertion module is used to place at least a detection ball that meets preset conditions on the hole to be detected;
[0027] A three-dimensional scanning module, configured to obtain three-dimensional data of the detection ball and the hole to be detected using a three-dimensional scanning device;
[0028] A data confirmation module is used to determine the hole radius and the hole center position of the hole to be detected based on at least the three-dimensional data and the standard radius of the detection sphere.
[0029] Optionally, it also includes:
[0030] The coordinate construction module is used to at least set the coordinate system of the object to be measured as a unique world coordinate system.
[0031] Optionally, the data confirmation module is specifically used to:
[0032] The first center coordinates and the center radius of the detection sphere are determined at least by the three-dimensional data and the standard radius; and the second center coordinates of the detection sphere are determined at least based on the three-dimensional data, the first center coordinates and the standard radius; and the hole radius and the hole center position are determined at least based on the second center coordinates.
[0033] In a third aspect, an embodiment of the present invention further provides an electronic device comprising a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the aperture scanning measurement method described in the first aspect are executed.
[0034] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the aperture scanning measurement method described in the first aspect.
[0035] The technical solution provided by the embodiment of the present invention is as follows: first, a detection ball that meets at least preset conditions is placed on the hole to be detected; second, three-dimensional data of the detection ball and the hole to be detected is obtained using a three-dimensional scanning device; finally, the hole radius and the hole center position of the hole to be detected are determined based on at least the three-dimensional data and the standard radius of the detection ball.
[0036] It can be seen that, on the one hand, the embodiment of the present invention utilizes the line contact characteristics between the detection ball and the hole to be detected to convert the difficult-to-measure hole wall features into the scannable surface contour of the ball to be detected, so as to realize the accurate measurement of the diameter of the hole to be detected and the position of the hole center, which is beneficial to improving the detection efficiency and improving the detection accuracy; on the other hand, the embodiment of the present invention introduces the detection ball as an auxiliary measurement tool, which is simple to operate while reducing the interference of the environment on the equipment, ensuring the accuracy of the scanning data, and is beneficial to improving the accuracy of the three-dimensional scanning equipment in measuring small holes and improving the adaptability of detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0038] Figure 1 This is a flow chart of an aperture scanning measurement method provided by an embodiment of the present invention;
[0039] Figure 2 is a flow chart of another aperture scanning measurement method provided by an embodiment of the present invention;
[0040] Figure 3 This is a schematic diagram of hole radius confirmation provided by an embodiment of the present invention;
[0041] Figure 4 1 is a schematic structural diagram of an aperture scanning measurement device provided by an embodiment of the present invention;
[0042] Figure 5 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] To make the objectives, technical solutions, and advantages of this application more clear, this application will be further described in detail below with reference to the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0044] The terms used in the examples of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a," "the," and "the" used in the examples of this application and the appended claims are also intended to include plural forms, and unless the context clearly indicates otherwise, "a plurality" generally includes at least two.
[0045] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0046] It should be understood that although the terms first, second, third, etc. may be used to describe in the embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
[0047] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.
[0048] It should also be noted that the terms "include," "comprises," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a product or device comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such product or device. In the absence of further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the product or device comprising the element.
[0049] It should be noted in particular that any symbols and / or numbers in the specification that are not marked in the accompanying drawings are not drawing marks.
[0050] Figure 1 This is a flow chart of an aperture scanning measurement method provided by an embodiment of the present invention. This embodiment is at least applicable to the measurement scenario of the instrument aperture. The aperture scanning measurement method can be, but is not limited to, executed by the aperture scanning measurement device in the embodiment of the present invention as the execution subject, and the execution subject can be implemented in software and / or hardware. Figure 1 As shown, the aperture scanning measurement method includes at least the following steps:
[0051] S1. Place at least one detection ball that meets preset conditions on the hole to be detected.
[0052] The detection ball may be a magnetic ball, and the preset condition may be that the diameter is slightly larger than the diameter of the hole to be detected. In this embodiment, the preset condition may be that the diameter of the magnetic ball satisfies the following formula:
[0053] D1=D2+2*Δ;
[0054] In the formula, D1 represents the diameter of the magnetic ball, D2 represents the diameter of the hole to be detected, Δ represents the preset gap, and Δ is usually taken as 0.1*D2. It can be understood that if the diameter of the hole to be detected is 1 cm, a magnetic ball with a diameter of 1.2 cm can be selected to ensure that the magnetic ball can be tightly attached to the hole to be detected through magnetic attraction. When selecting a magnetic ball, a magnetic ball with a regular and complete shape, a standard radius and a flawless surface should be selected. This embodiment preferably uses a magnetic ball made of a neodymium iron boron magnet (nickel-plated surface for corrosion protection). It can be seen that the magnetic strength of the neodymium iron boron magnet is not less than 300MT, so the stability of the magnetic ball adsorption can be ensured during the scanning process. In addition, a matte coating can also be sprayed on the surface of the magnetic ball to reduce the reflectivity of the magnetic ball to light and reduce the mirror reflection interference of the three-dimensional scanning equipment during the scanning process.
[0055] S2. Use a three-dimensional scanning device to obtain three-dimensional data of the detection ball and the hole to be detected.
[0056] The 3D scanning device can be any optical scanning device, with a blue light scanning device being preferred in this embodiment. The 3D data can be point cloud data of the surface of the test sphere. During scanning, the optical scanning device's light source intensity and scanning angle can be adjusted to reduce interference from ambient light and surface reflections on the scanned data, thereby ensuring scanning accuracy. Furthermore, because the diameter of the test sphere is larger than the diameter of the hole to be inspected, the blue light scanning device can accurately capture the features of the test sphere's wall, improving the integrity of the data scan.
[0057] S3. Determine the hole radius and the hole center position of the hole to be inspected based at least on the three-dimensional data and the standard radius of the inspection sphere.
[0058] The standard radius may be the radius of the detection ball itself, and the hole radius may refer to the radius of the hole to be detected.
[0059] The technical solution provided in this embodiment is as follows: first, at least a detection ball that meets preset conditions is placed on the hole to be detected; second, three-dimensional data of the detection ball and the hole to be detected is obtained using a three-dimensional scanning device; finally, the hole radius and the hole center position of the hole to be detected are determined based on at least the three-dimensional data and the standard radius of the detection ball.
[0060] It can be seen that, on the one hand, this embodiment utilizes the line contact characteristics between the detection ball and the hole to be detected to convert the difficult-to-measure hole wall features into the scannable surface contour of the ball to be detected, so as to achieve accurate measurement of the diameter of the hole to be detected and the position of the hole center, which is beneficial to improving detection efficiency and improving detection accuracy; on the other hand, this embodiment introduces the detection ball as an auxiliary measurement tool, which is easy to operate while reducing environmental interference on the equipment, ensuring the accuracy of the scanning data, improving the accuracy of the three-dimensional scanning equipment in measuring small holes, and improving the adaptability of detection.
[0061] Based on the above embodiments or implementation methods, Figure 2 This is a flow chart of another aperture scanning measurement method provided by an embodiment of the present invention. This embodiment is supplemented based on the above embodiment. Figure 2 As shown, the aperture scanning measurement method includes at least the following steps:
[0062] S1. Place at least one detection ball that meets preset conditions on the hole to be detected.
[0063] S2. Use a three-dimensional scanning device to obtain three-dimensional data of the detection ball and the hole to be detected.
[0064] S4. At least set the coordinate system of the object to be measured as the only world coordinate system.
[0065] The object to be tested can be a component or part requiring inspection, having at least one inspection hole on its surface. For example, the object to be tested can be a foot pedal bracket for a commercial vehicle. The world coordinate system can be the system's absolute coordinate system. Before establishing other coordinate systems, the coordinates of all three-dimensional data are determined relative to the origin of this coordinate system. Setting the coordinate system of the object to be tested as the only world coordinate system can be understood as setting the coordinates of the object to be tested to the position of the world coordinate system, thereby aligning the coordinate systems of the object to be tested with the world coordinate system. In one possible implementation, inspectors can also construct a world coordinate system based on the reference hole of the object to be tested, thereby aligning the coordinate systems of the object to be tested with the world coordinate system, thereby improving the accuracy of subsequent calculations. The reference hole can be a hole selected as the dimensional reference in a hole-based fit system. The tolerance zone of the reference hole is fixed and unchanging. The design of the reference hole is typically based on the principles of Geometric Dimensioning and Tolerancing (GD&T).
[0066] S31. Determine the first center coordinates of the detection sphere at least by using the three-dimensional data and the standard radius.
[0067] The first sphere center coordinates may be the initial coordinates of the detection sphere center calculated for the first time. In one possible implementation, the initial radius of the detection sphere may also be calculated. It is understood that the calculated initial radius often has a certain error, and thus the initial radius is only for the reference of the tester. It is known that the first sphere center coordinates and the initial radius can be confirmed by fitting the sphere equation using the Random Sample Consensus (RANSAC) algorithm:
[0068] ;
[0069] In the formula, x, y and z are the collected point cloud data (i.e. three-dimensional data), x o 、yo and z o The coordinates of the first sphere center in the three coordinate axis directions are expressed in sequence. Correspondingly, the coordinates of the first sphere center can also be expressed as (x o ,y o , z o ), r o It is understood that the three point cloud data can be connected together to confirm a triangulated model. After the triangulated model is generated, the first sphere center coordinates can be calculated by fitting the sphere equation through the RANSAC algorithm.
[0070] As can be seen, when calibrating point cloud data, multiple sets of point cloud data are generated to continuously build triangulated models. Consequently, multiple sets of sphere center coordinate data are obtained based on these continuous triangulated models. Furthermore, the RANSAC algorithm filters these multiple sets of sphere center coordinate data to generate a set of inliers. Based on this set of inliers, the first sphere coordinates are corrected to remove noise interference introduced during data collection and improve detection accuracy.
[0071] S32. Determine the second sphere center coordinates of the detection sphere based on at least the three-dimensional data, the first sphere center coordinates and the standard radius.
[0072] In a specific implementation, optionally, step S32 specifically includes:
[0073] (32-1) Calculate at least the distance from the three-dimensional data to the center of the first sphere coordinate.
[0074] The center distance of the first sphere center coordinate can be calculated using the following formula:
[0075] ;
[0076] Where, (x i ,y i , z i ) is the set of in-library points screened by the RANSAC algorithm, r i Correspondingly, since there are multiple sets of three-dimensional data and corresponding first sphere center coordinates, there are also multiple sphere center distances.
[0077] (32-2) Construct a three-dimensional vector matrix and a distance vector matrix based on the three-dimensional data, the coordinates of the first sphere center, the sphere center distance and the standard radius.
[0078] Among them, the three-dimensional vector matrix can be expressed as:
[0079] ;
[0080] In the formula, x1, y1, z1, x1, etc. represent the coordinates of multiple sets of sphere center coordinate data on different coordinate axes. It can be understood that x1, y1, and z1 can form a single sphere center coordinate data set, namely (x1, y1, z1). It can be seen that the more sphere center coordinate data sets, the more accurate the subsequent second sphere center coordinate calculation result.
[0081] The distance vector matrix can be expressed as:
[0082] ;
[0083] Where r1, r2, etc. represent the sphere center distance r calculated based on multiple sets of sphere center coordinate data. i . r std Indicates the standard radius of the selected detection sphere.
[0084] (32-3) Determine the correction amount of the sphere center coordinates based on at least the three-dimensional vector matrix and the distance vector matrix.
[0085] The purpose of calculating the correction amount is to correct the error in the calculated coordinates of the sphere center caused by external factors when collecting data. In this embodiment, the correction amount can be solved by the least squares method:
[0086] ;
[0087] Right now, ;
[0088] Where, represents the correction amount, Indicates the correction amount in the x-axis direction of the first sphere center coordinate, Indicates the correction amount in the y-axis direction of the first sphere center coordinate, Indicates the correction amount in the z-axis direction of the first sphere center coordinate.
[0089] (32-4) Determine the second spherical center coordinates based on the first spherical center coordinates and the correction amount.
[0090] Among them, step (32-4) can be expressed as:
[0091] ;
[0092] Where, O ball represents the coordinates of the second sphere center, O ball It can also be expressed as (x b ,y b , z b ). o The above processing can significantly remove the influence of noise on the calculation of the second sphere center coordinates and improve the calculation accuracy.
[0093] S33. Determine the hole radius and the hole center position based on at least the second sphere center coordinates.
[0094] In another specific implementation, optionally, step S33 specifically includes:
[0095] (33-1) Determine the plane where the hole to be detected is located based on at least the second sphere center coordinates.
[0096] Among them, after the coordinates of the second sphere center are determined, the coordinates of the second sphere center and the coordinates of the center of the hole to be detected in the two coordinate axis directions in the world coordinate system are consistent, which can be understood as the coordinates being coaxial. For example, if the X axis of the world coordinate system represents the horizontal direction, the Y axis represents the vertical direction, and the Z axis is perpendicular to the plane where the X axis and Y axis are located, if the axis direction of the hole to be detected is the Z axis direction, then the coordinates of the second sphere center and the coordinates of the hole to be detected on the X axis and Y axis are consistent. The plane where the small hole is located is thus fitted:
[0097] .
[0098] Where a, b, c, and d are known constants, and a, b, and c are not all 0. x, y, and z are the coordinate variables of any point on the plane.
[0099] (33-2) Determine the plane distance from the coordinates of the second sphere center to the plane.
[0100] The plane distance from the second sphere center coordinate to the plane can be confirmed by at least the following methods:
[0101] ;
[0102] Where l represents the plane distance.
[0103] (33-3) The hole radius is determined based on at least the standard radius and the plane distance.
[0104] in, Figure 3 This is a schematic diagram of hole radius confirmation provided by an embodiment of the present invention. Figure 3 As shown, the hole radius can be determined by the following formula:
[0105] ;
[0106] Where, Indicates the hole radius.
[0107] (33-4) Determine the hole center position based on at least the second spherical center coordinates and the plane distance.
[0108] The hole center position can be determined by the following formula:
[0109] ;
[0110] Where, Indicates the position of the hole center, the coordinate is (x c ,y c , z c ).
[0111] The technical solution provided in this embodiment first places at least one detection ball that meets preset conditions on the hole to be inspected. Furthermore, a three-dimensional scanning device is used to acquire three-dimensional data of the detection ball and the hole to be inspected. Furthermore, at least the coordinate system of the object to be inspected is set as a unique world coordinate system. Furthermore, at least the first center coordinate of the detection ball is determined using the three-dimensional data and a standard radius. Furthermore, at least the distance from the three-dimensional data to the first center coordinate is calculated. Furthermore, a three-dimensional vector matrix and a distance vector matrix are constructed based on the three-dimensional data, the first center coordinate, the center distance, and the standard radius. Furthermore, a correction value for the center coordinate is determined based on at least the three-dimensional vector matrix and the distance vector matrix. Furthermore, a second center coordinate is determined based on the first center coordinate and the correction value. Furthermore, the plane in which the hole to be inspected is located is determined based on at least the second center coordinate. Furthermore, a planar distance from the second center coordinate to the plane is determined. Furthermore, the radius of the hole is determined based on at least the standard radius and the planar distance. Finally, the position of the center of the hole is determined based on at least the second center coordinate and the planar distance.
[0112] It can be seen that, on the one hand, the embodiment of the present invention utilizes the line contact characteristics between the detection ball and the hole to be detected to convert the difficult-to-measure hole wall features into a scannable surface contour of the ball to be detected, and constructs a three-dimensional vector matrix and a distance vector matrix to correct the preliminarily calculated first ball center position, so as to achieve accurate measurement of the diameter of the hole to be detected and the hole center position, which is beneficial to improving detection efficiency and improving detection accuracy; on the other hand, the embodiment of the present invention introduces the detection ball as an auxiliary measurement tool, which is easy to operate while reducing the interference of the environment on the equipment, ensuring the accuracy of the scanning data, and is beneficial to improving the accuracy of the three-dimensional scanning equipment when measuring small holes, and improving the adaptability of detection; on the other hand, this embodiment can adjust the light source intensity of the three-dimensional scanning equipment according to the surface material and reflection characteristics of the hole to be detected during the scanning process using the three-dimensional equipment, so as to reduce the interference of surface reflection on the scanning data, and adjust the light source angle of the three-dimensional scanning equipment to form an optimal incident angle with the surface of the hole to be detected, so as to reduce the interference of ambient light on the scanning data.
[0113] Figure 4 This is a schematic diagram of the structure of an aperture scanning measurement device provided by an embodiment of the present invention. This embodiment is at least applicable to the measurement scenario of the instrument aperture, and the aperture scanning measurement device can be implemented in software and / or hardware. Figure 4 As shown, the aperture scanning measurement device 100 at least includes:
[0114] The small hole placement module 110 is used to place at least a detection ball that meets preset conditions on the hole to be detected.
[0115] The three-dimensional scanning module 120 is used to obtain three-dimensional data of the detection ball and the hole to be detected by using a three-dimensional scanning device.
[0116] The data confirmation module 130 is configured to determine the hole radius and the hole center position of the hole to be inspected based at least on the three-dimensional data and the standard radius of the inspection sphere.
[0117] Optionally, it also includes:
[0118] The coordinate construction module is used to at least set the coordinate system of the object to be measured as a unique world coordinate system.
[0119] Optionally, the data confirmation module 130 is specifically configured to:
[0120] At least the first center coordinates of the detection sphere are determined through three-dimensional data; and, at least the second center coordinates of the detection sphere are determined based on the three-dimensional data, the first center coordinates and the standard radius; and, at least the hole radius and the hole center position are determined based on the second center coordinates.
[0121] Optionally, the data confirmation module 130 is further specifically configured to:
[0122] At least calculate the center distance from the three-dimensional data to the first center coordinate; and, construct a three-dimensional vector matrix and a distance vector matrix based on the three-dimensional data, the first center coordinate, the center distance and the standard radius; and, determine the correction amount of the center coordinate based on at least the three-dimensional vector matrix and the distance vector matrix; and, determine the second center coordinate based on the first center coordinate and the correction amount.
[0123] Optionally, the data confirmation module 130 is further specifically configured to:
[0124] Determine the plane where the hole to be detected is located based on at least the second spherical center coordinates; and determine the planar distance from the second spherical center coordinates to the plane; and determine the hole radius based on at least the standard radius and the planar distance; and determine the hole center position based on at least the second spherical center coordinates and the planar distance.
[0125] The technical solution provided in this embodiment is as follows: first, a detection ball that meets preset conditions is placed on the hole to be detected through the small hole insertion module; second, the three-dimensional data of the detection ball and the hole to be detected is obtained by using a three-dimensional scanning device through the three-dimensional scanning module; finally, the hole radius and the hole center position of the hole to be detected are determined based on the three-dimensional data and the standard radius of the detection ball through the data confirmation module.
[0126] It can be seen that, on the one hand, this embodiment utilizes the line contact characteristics between the detection ball and the hole to be detected to convert the difficult-to-measure hole wall features into the scannable surface contour of the ball to be detected, so as to achieve accurate measurement of the diameter of the hole to be detected and the position of the hole center, which is beneficial to improving detection efficiency and improving detection accuracy; on the other hand, this embodiment introduces the detection ball as an auxiliary measurement tool, which is simple to operate while reducing environmental interference on the equipment, ensuring the accuracy of the scanning data, and is beneficial to improving the accuracy of the three-dimensional scanning equipment when measuring small holes, thereby improving the adaptability of detection.
[0127] An embodiment of the present invention further provides an electronic device, Figure 5 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 5 The electronic device 1000 includes a processor 1001 and a memory 1002. The memory 1002 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 1001, the steps in any one of the above-mentioned aperture scanning measurement methods are executed. Through the above-mentioned technical solution, the processor 1001 and the memory 1002 are interconnected and communicate with each other via a communication bus and / or other forms of connection mechanisms (not shown). The memory 1002 stores a computer program executable by the processor. When the electronic device 1000 is running, the processor 1001 executes the computer program to execute the aperture scanning measurement method in any optional implementation of the above-mentioned embodiment to at least achieve the following functions: at least placing a detection ball that meets preset conditions on the hole to be detected; using a three-dimensional scanning device to obtain three-dimensional data of the detection ball and the hole to be detected; and determining the hole radius and hole center position of the hole to be detected based on at least the three-dimensional data and the standard radius of the detection ball.
[0128] An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aperture scanning measurement method provided in all the embodiments of the invention of this application: at least placing a detection ball that meets preset conditions on the hole to be detected; using a three-dimensional scanning device to obtain three-dimensional data of the detection ball and the hole to be detected; and determining the hole radius and hole center position of the hole to be detected based on at least the three-dimensional data and the standard radius of the detection ball.
[0129] Any combination of one or more computer-readable media may be employed. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0130] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0131] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0132] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0133] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for aperture scanning measurement, characterized in that: At least the following steps are included: At least one detection ball that meets the preset conditions is placed on the hole to be detected; Acquiring three-dimensional data of the detection ball and the hole to be detected using a three-dimensional scanning device; The hole radius and the hole center position of the hole to be inspected are determined based at least on the three-dimensional data and the standard radius of the inspection sphere.
2. The aperture scanning measurement method according to claim 1, characterized in that: Before determining the hole radius and the hole center position of the hole to be inspected based at least on the three-dimensional data and the standard radius of the inspection sphere, the method further includes: At least set the coordinate system of the object to be measured as the only world coordinate system.
3. The aperture scanning measurement method according to claim 1, characterized in that: The determining of the hole radius and the hole center position of the hole to be inspected based at least on the three-dimensional data and the standard radius of the inspection sphere specifically includes: Determining first spherical center coordinates of the detection sphere at least by using the three-dimensional data; determining the second sphere center coordinates of the detection sphere at least based on the three-dimensional data, the first sphere center coordinates and the standard radius; The hole radius and the hole center position are determined based on at least the second spherical center coordinates.
4. The aperture scanning measurement method according to claim 3, characterized in that: The determining the second sphere center coordinates of the detection sphere at least based on the three-dimensional data, the first sphere center coordinates and the standard radius specifically includes: At least calculating the distance from the three-dimensional data to the center of the first sphere center coordinate; Constructing a three-dimensional vector matrix and a distance vector matrix based on the three-dimensional data, the first sphere center coordinates, the sphere center distance and the standard radius; determining a correction amount of the spherical center coordinates based at least on the three-dimensional vector matrix and the distance vector matrix; The second spherical center coordinates are determined based on the first spherical center coordinates and the correction amount.
5. The aperture scanning measurement method according to claim 3, characterized in that: The determining of the hole radius and the hole center position based on at least the second spherical center coordinates specifically includes: determining the plane where the hole to be detected is located based at least on the second spherical center coordinates; Determining a plane distance from the second sphere center coordinate to the plane; determining the hole radius based on at least the standard radius and the plane distance; The hole center position is determined at least based on the second spherical center coordinates and the plane distance.
6. An aperture scanning measurement device, characterized in that: At least: A small hole insertion module is used to place at least a detection ball that meets preset conditions on the hole to be detected; A three-dimensional scanning module, configured to obtain three-dimensional data of the detection ball and the hole to be detected using a three-dimensional scanning device; A data confirmation module is used to determine the hole radius and the hole center position of the hole to be detected based on at least the three-dimensional data and the standard radius of the detection sphere.
7. The aperture scanning measurement device according to claim 6, characterized in that: Also includes: The coordinate construction module is used to at least set the coordinate system of the object to be measured as a unique world coordinate system.
8. The aperture scanning measurement device according to claim 6, characterized in that: The data confirmation module is specifically used for: The first center coordinates and the center radius of the detection sphere are determined at least by the three-dimensional data and the standard radius; and the second center coordinates of the detection sphere are determined at least based on the three-dimensional data, the first center coordinates and the standard radius; and the hole radius and the hole center position are determined at least based on the second center coordinates.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the aperture scanning measurement method according to any one of claims 1 to 5 are executed.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the aperture scanning measurement method according to any one of claims 1 to 5 is implemented.