Binocular three-dimensional point detection method and device with field magnitude transmission
By combining a binocular three-dimensional probe with a high-reflective coding block and using a standard reference sphere for value transfer optimization, the problem of flexibility and limited measurement range of contact profiler equipment is solved, and high-precision and flexible measurement results are achieved.
Patent Information
- Application Number
- CN202410604305.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-27
AI Technical Summary
Existing contact profiler equipment lacks flexibility, has a limited measurement range, and cannot move the measurement reference, making it difficult to achieve large-scale, high-precision and flexible measurement.
Using a binocular three-dimensional probe combined with a highly reflective coding block and a standard reference sphere, the binocular camera is used for global pose positioning and measurement, and the standard sphere is used for value transfer to optimize the measurement results, achieving active, flexible and accurate measurement in an unconstrained range. .
It achieves the combination of binocular visual positioning and probe contact measurement, improves measurement accuracy and flexibility, solves the problem of limited measurement range and lack of flexibility, and ensures the accuracy and reliability of measurement results in a wide range.
Smart Images

Figure CN118548820A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of machine vision, and in particular to a binocular three-dimensional point detection method and device with on-site value transfer. Background Art
[0002] With the continuous advancement of industrial technology, more and more mechanical parts with high-precision surfaces are widely used in the engineering field. The surface quality and shape of these parts are crucial to their performance and service life. They usually have complex curved surfaces. When measuring, it is necessary not only to accurately measure the surface roughness, but also to be able to measure the overall profile of the part surface. Therefore, such parts require large-scale and high-precision measurement of measuring instruments.
[0003] Contact profilometers are widely used in the field of part surface profile measurement due to their many advantages, such as large measuring range, high reliability and low environmental requirements. The contact profilometers currently available can be divided into two categories: three-dimensional coordinate measuring machines and visual measurement light pens. The three-dimensional coordinate measuring machine consists of a host mechanical system and a probe system. It achieves precise measurement of the probe contact point through combined mechanical movement in the x, y, and z axes, but its measurement range is limited by the size of the mechanical device, and the body is usually very bulky and immobile, lacking flexibility. The visual measurement light pen consists of a binocular global tracker and a measuring pen with a marker point. Its characteristic is that the binocular global tracker tracks the position of the measuring pen through the marker point and then solves the coordinates of the measuring point. It has high flexibility, but its measurement range is limited by the field of view of the binocular tracker, and the tracker must be kept fixed, so the measurement process is still greatly restricted.
[0004] Currently, no effective solution has been proposed to address the defects of the above two types of contact profilometer equipment. Summary of the invention
[0005] The present invention provides a binocular three-dimensional point detection method and device with on-site value transfer to solve the technical problems of existing contact profilometer equipment such as lack of flexibility, limited measurement range and immovable measurement reference, and realize high-precision and flexible measurement in a large range of on-site areas.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] On the one hand, the present invention provides a binocular three-dimensional point detection method with on-site value transfer, which is implemented by using a binocular three-dimensional probe, wherein the binocular three-dimensional probe comprises a binocular camera and a probe, wherein one end of the probe away from the probe is rigidly connected to the binocular camera, and the binocular three-dimensional point detection method comprises:
[0008] Arrange multiple reflective coding blocks around the location of the target object and / or on the ground to form a measurement reference field; use a binocular camera to photograph the measurement reference field, and calculate the three-dimensional coordinates of the circular marking points on all coding blocks in the measurement reference field according to the photographed coding block images to establish a global reference coordinate system;
[0009] Placing a reference sphere around the target object; wherein the reference sphere is located in a measurement reference field;
[0010] Calibrate the binocular 3D probe and calculate the 3D coordinates of the probe center in the binocular camera coordinate system;
[0011] Based on the established global reference coordinate system and the calculated three-dimensional coordinates of the probe center in the binocular camera coordinate system, the target object and the reference sphere are measured respectively using a binocular three-dimensional probe;
[0012] The measurement results of the target object are corrected based on the measurement results of the reference sphere to improve the measurement accuracy.
[0013] Furthermore, when a plurality of reflective coding blocks are arranged around the location of the target object and / or on the ground to form a measurement reference field, the coding block attributes of the coding blocks used need to be pre-set; wherein, the coding block attributes include: the size of the circular marking points of the coding blocks, the arrangement order, and the encoding and decoding rules; the range size of the measurement reference field needs to ensure that it can completely cover the field of view of the binocular camera, and ensure that the binocular camera can always capture the measurement reference field during the measurement process; the spacing of the coding blocks should be as consistent as possible within the allowable error range, to ensure that the coding blocks can cover the field of view of the binocular camera, and to ensure that the binocular camera can capture multiple coding blocks during operation;
[0014] The three-dimensional coordinates of the circular marking points on all the coding blocks in the measurement reference field are calculated according to the captured coding block images to establish a global reference coordinate system, including:
[0015] Use a binocular camera to take multiple shots of all the coding blocks in the measurement reference field;
[0016] Based on the captured image of the coding block, a global reference coordinate system is established using computer vision technology; when solving the coordinates of the marker points, the marker points are identified and matched according to the set coding block attributes.
[0017] Further, placing a reference sphere around the target object includes:
[0018] When the size of the target object is smaller than the preset size threshold, a reference sphere is placed next to the target object, and the distance between the reference sphere and the target object does not exceed the preset distance;
[0019] When the size of the target object is not less than a preset size threshold, a plurality of reference spheres are placed around the target object, and the plurality of reference spheres are evenly distributed on the minimum circumscribed rectangle of the target object.
[0020] Furthermore, when a plurality of reference spheres are placed around the target object, at least one reference sphere should be placed at each of the four vertices and the midpoints of the four sides of the minimum circumscribed rectangle of the target object.
[0021] Furthermore, the calibrating of the binocular three-dimensional probe to calculate the three-dimensional coordinates of the probe center in the binocular camera coordinate system includes:
[0022] Arranging a standard cone in the measurement reference field;
[0023] The probe of the probe is placed in a standard cone to ensure that the center of the probe is fixed. The binocular camera posture is changed multiple times to shoot the measurement reference field. According to the shooting results, the three-dimensional coordinates of the probe center in the binocular camera coordinate system are solved based on the constraint condition that the probe center remains unchanged in the dual coordinate system. Among them, the probe center remains unchanged in the dual coordinate system means that when the binocular camera posture is changed for calibration, the coordinates of the probe center remain unchanged in both the global reference coordinate system and the binocular camera coordinate system. According to the constraint, calibrating the binocular three-dimensional probe includes:
[0024] Assume that the coordinate of the probe center in the global reference coordinate system is P g =[x g ,y g ,z g ] T , the coordinates in the binocular camera coordinate system are P c =[x c ,y c ,z c ] T , the rotation direction vector around the x-axis when the 3D point in the binocular camera coordinate system is converted to the global coordinate system The rotation direction vector around the y-axis when the 3D point in the binocular camera coordinate system is converted to the global coordinate system The rotation direction vector around the z-axis when the 3D point in the binocular camera coordinate system is converted to the global coordinate system are all unit vectors, and are mutually orthogonal; the camera pose is in, It indicates the translation amount in the x-axis direction when the 3D point in the binocular camera coordinate system is converted to the global coordinate system. It indicates the translation amount in the y-axis direction when the three-dimensional point in the binocular camera coordinate system is converted to the global coordinate system. It indicates the translation amount in the z-axis direction when the three-dimensional point in the binocular camera coordinate system is converted to the global coordinate system; according to the posture transformation relationship:
[0025] P g =R i P c +t i (1)
[0026] The calibration error term is obtained from formula (1):
[0027]
[0028] Assume that in formula (2) P = [x c ,y c ,z c ,x g ,y g ,z g ] T , construct the least squares problem:
[0029]
[0030] In the formula, n is the number of calibration poses;
[0031] Solve equation (3) to get the calibration result P * , calculate the three-dimensional coordinates of the probe center in the binocular camera coordinate system and the global reference coordinate system, and complete the calibration of the binocular three-dimensional probe.
[0032] Furthermore, the target object and the reference sphere are measured respectively using a binocular three-dimensional probe, including:
[0033] During measurement, the probe head contacts the point to be measured on the surface of the object to be measured, and the binocular camera captures the measurement reference field;
[0034] The position and posture of the binocular camera in the global reference coordinate system are calculated according to the circular marker points captured by the binocular camera; wherein the object to be measured refers to the target object to be measured or the reference sphere;
[0035] According to the calculated position and posture of the binocular camera in the global reference coordinate system, combined with the calibrated three-dimensional coordinates of the probe center in the binocular camera coordinate system, the coordinates of the probe center in the global reference coordinate system are calculated to complete the measurement of the point to be measured and obtain the three-dimensional coordinates of the point to be measured; wherein, the method for obtaining the three-dimensional coordinates of the point to be measured is as follows: let the position and posture of the binocular camera in the global reference coordinate system be (R, t), and the three-dimensional coordinates of the probe center in the binocular camera coordinate system be P c , then the final three-dimensional coordinates of the point to be measured are P r =RP c +t.
[0036] Furthermore, the method of calculating the position and posture of the binocular camera in the global reference coordinate system according to the circular marker points photographed by the binocular camera includes:
[0037] Assume that the three-dimensional coordinates of the marker point in the binocular camera coordinate system are p = {p1, p2, ... p n}, the coordinates of the corresponding point in the global reference coordinate system are q={q1,q2,...q n}, the centroids of the two groups of points are and Then the centroid coordinates of the two groups of points are p'={p i '|p i '=p i -μ p} and q'={q i '|q i '=q i -μ q}, where p i is the three-dimensional coordinate of the i-th landmark in the binocular camera coordinate system; q i is the three-dimensional coordinate of the i-th marker point in the global reference coordinate system; i = 1, 2, ..., n; n is the number of marker poses;
[0038] Calculating the Matrix And perform SVD decomposition:
[0039] W=U∑V T (4)
[0040] Among them, U and V are unitary matrices obtained by SVD decomposition of matrix W, ∑ is a non-negative real diagonal matrix obtained by decomposition; T represents the transpose of the matrix;
[0041] Then the rotation matrix from the binocular camera to the global reference coordinate system is:
[0042] R=UV T (5)
[0043] The translation vector is:
[0044] t=μ q -Rμ p (6)
[0045] At this point, the calculation of the binocular camera pose is completed.
[0046] Furthermore, the measurement result of the target object is corrected based on the measurement result of the reference sphere, including:
[0047] When only one reference sphere is placed, the diameter of the reference sphere is used as the value transfer reference to correct the measurement result of the target object;
[0048] When multiple reference spheres are placed, the distance between the centers of the reference spheres is used as the reference for value transfer to correct the measurement results of the target object.
[0049] Furthermore, when only one reference sphere is placed, the reference sphere diameter is used as a value transfer reference to correct the measurement result of the target object, including:
[0050] Assume that the original measurement result of the reference sphere is M = {P i |P i =(x i ,y i ,z i ),i=1,2,...,m}, where x i ,y i ,z i is the three-dimensional coordinate of the i-th measuring point; m is the number of measuring points;
[0051] Perform a fourth-order polynomial correction on the measurement result M:
[0052]
[0053] In the formula, l i For each measuring point P i The distance to the global coordinate system; A1, A2, A3, A4 are the polynomial correction coefficients for the x-axis coordinates; B1, B2, B3, B4 are the correction coefficients for the y-axis coordinates; C1, C2, C3, C4 are the correction coefficients for the z-axis coordinates; the measurement error term for the reference sphere radius is:
[0054]
[0055] In the formula, is the nominal radius of the reference sphere; r is the probe radius; a, b, c are the three-dimensional coordinates of the center of the reference sphere;
[0056] Construct a least squares problem:
[0057]
[0058] Where, k = (A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4) is the coefficient of the polynomial to be solved;
[0059] Find the optimal solution of function F After the correction coefficient is obtained, the measurement result of the target object is corrected using the correction coefficient to complete the global optimization based on value transfer.
[0060] Furthermore, when placing multiple reference spheres, the distance between the sphere centers of the reference spheres is used as a reference for value transfer to correct the measurement result of the target object, including:
[0061] Assume that the original measurement results at the center of multiple reference spheres are N = {C i |C i =(X i ,Y i ,Z i ),i=1,2,...,s}; where X i ,Y i ,Z i is the measured coordinates of the center of the i-th sphere; s is the number of reference spheres;
[0062] Perform a fourth-order polynomial correction on the measurement result N:
[0063]
[0064] Where, L i is the measured distance from the center of the reference sphere to the origin of the global reference coordinate system; A1, A2, A3, A4 are the polynomial correction coefficients for the x-axis coordinates; B1, B2, B3, B4 are the correction coefficients for the y-axis coordinates; C1, C2, C3, C4 are the correction coefficients for the z-axis coordinates; the measurement error term for the distance from the center of the reference sphere is:
[0065]
[0066] Where, d i is the nominal sphere center distance from each reference sphere to the origin of the global reference coordinate system; i = 1, 2, ..., s;
[0067] Construct a least squares problem:
[0068]
[0069] Where, k = (A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4) is the coefficient of the polynomial to be solved;
[0070] Find the optimal solution of function F After the correction coefficient is obtained, the measurement result of the target object is corrected using the correction coefficient to complete the global optimization based on value transfer.
[0071] On the other hand, the present invention also provides a binocular three-dimensional point detection device with on-site value transfer, comprising: a binocular camera, a probe, a standard cone, a high-reflective encoding block and a workstation;
[0072] The binocular camera is rigidly connected to the probe; during the measurement process, the binocular camera photographs the high-reflective coding block, and the probe contacts the measurement target object; data communication is achieved between the binocular camera and the workstation;
[0073] The binocular camera captures the image of the highly reflective coding block and transmits it to the workstation;
[0074] The standard cone is fixed in the effective range of the measurement reference field and is used to calibrate the binocular three-dimensional probe and calculate the three-dimensional coordinates of the probe head in the binocular camera coordinate system;
[0075] The workstation includes the following functional modules:
[0076] Coded block decoding module: used to extract the two-dimensional pixel coordinates of the marker points in the coded block captured by the binocular camera, and decode the unique coded value of each coded block:
[0077] Landmark point calculation module: matches the landmark points in the left and right images captured by the binocular camera according to the coding values of the coding blocks, and calculates the three-dimensional coordinates of the landmark points in the binocular camera coordinate system in combination with the binocular camera calibration parameters;
[0078] Binocular camera pose calculation module: performs 3D-3D matching of the marker points and the measurement reference field according to the 3D coordinates of the marker points, and calculates the pose of the binocular camera in the global reference coordinate system;
[0079] Measuring point coordinate calculation module: The measuring point coordinates are calculated based on the binocular camera posture and the probe center calibration coordinates.
[0080] On the other hand, the present invention further provides an electronic device, comprising a processor and a memory; wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the above method.
[0081] In yet another aspect, the present invention further provides a computer-readable storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the above method.
[0082] The beneficial effects brought about by the technical solution provided by the present invention include at least:
[0083] The present invention provides a binocular three-dimensional point detection method with on-site measurement value transfer. Unlike traditional probes that are limited by the effective field of view of the positioning device, this method uses a binocular camera for global high-precision reverse positioning, realizing the combination of binocular visual positioning and probe contact measurement. The designed binocular three-dimensional probe can perform active and flexible measurements without constraints; at the same time, the method introduces an on-site measurement value transfer method based on a standard reference sphere, globally optimizes the measurement results, suppresses and corrects measurement errors, and ensures that the measurement results are accurate and reliable within a large measurement range. Specifically, the binocular three-dimensional point detection method with on-site measurement value transfer provided by the present invention establishes a measurement reference field by pasting a highly reflective coding block on a stable object, uses a binocular camera to shoot marker points to achieve global posture positioning, combines the probe center to calibrate the coordinates, and realizes the solution of the surface measurement points of the target object to be measured. Finally, the measurement points are globally optimized according to the measurement results of the standard sphere to improve the final measurement accuracy. The present invention uses a highly reflective coding block to greatly increase the measurement range and realize flexible contact measurement. At the same time, it introduces an on-site measurement value transfer method based on a standard reference sphere, which solves the disadvantages of limited measurement range and lack of measurement flexibility of existing contact profilometers while ensuring measurement accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.
[0085] Figure 1 It is a schematic diagram of the execution flow of a binocular three-dimensional point detection method with on-site value transfer provided by an embodiment of the present invention;
[0086] Figure 2 It is a schematic diagram of a measurement reference field established by using a highly reflective coding block provided by an embodiment of the present invention;
[0087] Figure 3 Schematic diagram of introducing a standard ball as a benchmark for on-site measurement value transfer provided by an embodiment of the present invention; wherein (a) is a schematic diagram of introducing one standard ball as a benchmark for on-site measurement value transfer; (b) is a schematic diagram of introducing multiple standard balls as benchmarks for on-site measurement value transfer;
[0088] Figure 4 is a schematic diagram of binocular three-dimensional probe calibration provided by an embodiment of the present invention;
[0089] Figure 5 Schematic diagram of the structure of a binocular three-dimensional probe provided by an embodiment of the present invention;
[0090] Figure 6 This is a schematic diagram of binocular three-dimensional probe contact measurement provided by an embodiment of the present invention;
[0091] Figure 7 Schematic diagram of binocular posture solution provided by an embodiment of the present invention;
[0092] Figure 8 It is a system block diagram of an electronic device provided by an embodiment of the present invention.
[0093] Description of reference numerals:
[0094] 1. Binocular lens; 2. Probe; 3. Probe; 4. Handle. DETAILED DESCRIPTION
[0095] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0096] First of all, it should be noted that in the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplarily" is intended to present the concept in a concrete way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0097] First embodiment
[0098] This embodiment provides a binocular three-dimensional point detection method with on-site measurement value transfer, which is implemented using a binocular three-dimensional probe. The algorithm part includes binocular three-dimensional probe calibration, binocular camera posture solution and measurement result correction based on a standard sphere and other algorithms. The hardware part includes the design of a binocular three-dimensional probe device: a binocular camera, a probe, a standard cone, a high-reflective encoding block, a workstation and its functional modules.
[0099] like Figure 5 As shown, the binocular three-dimensional probe proposed in this embodiment includes: a binocular camera with a binocular lens 1 and a probe 2, wherein the end of the probe 2 away from the probe 3 is rigidly connected to the binocular camera; and the binocular camera is provided with a handle 4 for the operator to hold. The device uses a binocular camera for global positioning, and has higher accuracy and robustness than a monocular camera; the operator uses the handle for mobile contact measurement, and the measurement process is simple and flexible, with the advantages of light weight, small size, and easy to carry and operate. In addition, probes of different sizes and materials can be replaced according to specific measurement requirements to adapt to various measurement tasks.
[0100] The execution process of the binocular 3D point detection method is as follows: Figure 1As shown, the following steps are included:
[0101] S1, multiple highly reflective coding blocks are arranged around the location of the target object and / or on the ground as measurement positioning references, and the multiple highly reflective coding blocks are arranged to form a measurement reference field; and a binocular camera is used to photograph the measurement reference field, and the three-dimensional coordinates of all circular marking points in the measurement reference field are calculated according to the coding block images photographed by the camera, and a global reference coordinate system is established;
[0102] Among them, it should be noted that this method uses a binocular three-dimensional probe to perform contact measurement on the object to be measured. In S1, it is necessary to pre-paste the high-reflective coding block on a stable object to construct a measurement reference field, which is used for positioning reference during the binocular three-dimensional probe measurement process. In order to ensure that the binocular three-dimensional probe can always capture the reference field during the measurement process and make the captured image valid, illustratively, this embodiment stipulates that the arrangement of the measurement reference field should have the following requirements: 1. The circular marker point size, arrangement order, encoding and decoding rules of the high-reflective coding block and other coding block attributes should be set in advance to make the marker points in the captured image easy to match, so as to improve the solution efficiency and increase the robustness; when solving the marker point coordinates, the marker points should be identified and matched according to the set coding block attributes. 2. The size of the measurement reference field range should be designed according to the size of the object to be measured, the field of view of the binocular camera, and the working distance, to ensure that the binocular camera field of view is fully covered and that the camera can always capture the reference field during the measurement process. 3. The spacing of the highly reflective coding blocks should be as uniform as possible to ensure that the coding blocks can cover the camera's field of view and that the camera can capture at least 9 coding blocks within the working range. In addition, after the measurement reference field is arranged, a binocular camera should be used to capture the reference field to solve the three-dimensional coordinates of all marker points. For example, the SFM technology in computer vision can be used to establish a global reference coordinate system. When the binocular camera captures the reference field image to solve the three-dimensional coordinates of the circular marker point, each marker point should be photographed at least 3 times to form a multi-view constraint to improve the solution accuracy and ensure the integrity and accuracy of the solution; it can be understood that the above requirements are a reference condition for arranging the measurement reference field and are not a limitation on the reference field layout.
[0103] Figure 2 A schematic diagram of a measurement reference field arrangement provided in an embodiment of the present invention. This embodiment shows in the schematic diagram that highly reflective coding blocks are pasted on walls and the ground to complete the arrangement of the measurement reference field. The coding blocks should be pasted on stable objects such as walls and the ground, and the distance between the coding blocks should be uniform and consistent. The arrangement range is expanded according to the measurement range to ensure that the measurement range of the binocular 3D probe is not constrained.
[0104] S2, placing a standard reference sphere around the target object to be measured, so as to realize on-site measurement value transfer during the measurement process and optimize the final measurement result; wherein the reference sphere is located in the measurement reference field;
[0105] Among them, it should be noted that in S2, when placing the standard reference sphere for value transfer, it should be planned according to the specific size and spatial position of the object to be measured, specifically: the diameter of the selected standard sphere should be within the range of 100mm±15mm; when the size of the object to be measured is small (the size is less than 1m×1m×1m), only one standard sphere is placed, and the diameter of the standard sphere is used as the value transfer reference, and the final measurement result is globally optimized. At this time, the distance between the standard sphere and the object to be measured should not be too large (no more than 200mm) to ensure the effectiveness of the value transfer of the standard sphere diameter; when the size of the object to be measured is large (the size is greater than 1m×1m×1m), multiple standard spheres are placed on the minimum circumscribed rectangle of the object to be measured, and the distance between the sphere centers of the standard spheres is used as the value transfer reference to globally optimize the final measurement result; at this time, a total of 8 standard spheres are placed at the four vertices of the minimum circumscribed rectangle and the midpoints of the four sides to ensure complete coverage and constraints of the target measurement interval. Of course, it is understandable that the number of standard spheres can be additionally increased according to on-site needs, and this embodiment does not make specific limitations on this.
[0106] Figure 3 Two schematic diagrams of the placement of standard reference spheres are provided for the embodiments of the present invention, wherein (a) shows the case where one standard sphere is used to constrain the object to be measured when its size is less than 1m×1m×1m; (b) shows the case where eight standard spheres are used to constrain the object to be measured when its size is greater than 1m×1m×1m. In the case shown in (a), the radius of the standard sphere is used as the value transfer reference to optimize the measurement point results; in the case shown in (b), the distance between the center points of the standard spheres is used as the value transfer reference to optimize the measurement point results. Of course, the above method is a reference for the placement of standard spheres, and can be appropriately adjusted according to site conditions during actual operation, and is not used as a limitation on placement here.
[0107] S3, calibrate the binocular 3D probe and calculate the 3D coordinates of the probe center in the binocular camera coordinate system;
[0108] It should be noted that the above S3 needs to complete the calibration of the binocular three-dimensional probe, that is, to calculate the coordinates of the probe head center in the binocular camera coordinate system. Figure 4As a possible implementation method, in a known measurement reference field, place the probe probe in a standard cone to ensure that the probe center is fixed, and change the binocular camera posture at least 5 times to shoot the measurement reference field to obtain the corresponding calibration posture. Based on the constraint condition of "the probe center remains unchanged in the dual coordinate system", the three-dimensional coordinates of the probe center in the binocular camera coordinate system are solved. The constraint of "the probe center remains unchanged in the dual coordinate system" means that when changing the camera posture for calibration, the coordinates of the probe center remain unchanged in both the global reference coordinate system and the binocular camera coordinate system; according to this constraint, the calibration method is as follows:
[0109] Assume that the coordinate of the probe center in the global coordinate system is P g =[x g ,y g ,z g ] T , the coordinates in the binocular camera coordinate system are P c =[x c ,y c ,z c ] T , the camera pose is Among them, x g ,y g ,z g are the x, y, and z coordinates of the probe center in the global coordinate system; c ,y c ,z c is the x, y, z coordinate value of the probe center in the binocular camera coordinate system; according to the pose definition, R i is the rotation matrix part of the i-th calibration pose of the binocular camera, To form the rotation matrix R i The 9 matrix elements of Represents the rotation direction vector around the x-axis when the 3D point in the binocular camera coordinate system is converted to the global coordinate system. Represents the rotation direction vector around the y-axis, Represents the rotation direction vector around the z-axis, are all unit vectors, and are mutually orthogonal; t i is the translation vector part of the i-th calibration pose of the binocular camera, To form the translation vector t i The three vector elements of Represents the translation amount in the x-axis direction when the 3D point in the binocular camera coordinate system is converted to the global coordinate system. Represents the amount of translation in the y-axis direction, Represents the translation in the z-axis direction; according to the posture transformation relationship:
[0110] P g =Ri P c +t i (1)
[0111] The calibration error term can be obtained from formula (1):
[0112]
[0113] Assume that in formula (2) P = [x c ,y c ,z c ,x g ,y g ,z g ] T , construct the least squares problem:
[0114]
[0115] Where n is the number of calibration poses, is the translation vector part of the i-th calibration pose of the binocular camera, which has the same meaning as in formula (1);
[0116] Solving equation (3), we can get the calibration result P * , calculate the three-dimensional coordinates of the probe center in the binocular camera coordinate system and the global reference coordinate system, and complete the calibration of the binocular three-dimensional probe.
[0117] It should be emphasized that the calibration mentioned here specifically refers to the calculation of the probe center coordinates, which is different from the calibration of the general three-dimensional equipment for posture (that is, rotation matrix and translation vector).
[0118] S4, based on the established global reference coordinate system and the calculated three-dimensional coordinates of the probe center in the binocular camera coordinate system, the target object is measured using a binocular three-dimensional probe;
[0119] in, Figure 6 A schematic diagram of binocular contact measurement is provided for an embodiment of the present invention. During measurement, the probe probe contacts the surface of the object to be measured, and the binocular camera captures the measurement reference field. The position and posture of the binocular camera in the global reference coordinate system is calculated based on the photographed circular mark points. Based on the global position and posture of the binocular camera and the calibrated camera coordinates of the probe center, the coordinates of the probe center in the global coordinate system can be calculated, and the three-dimensional coordinates of the measuring point on the surface of the target to be measured can be obtained to complete the measurement of the measuring point.
[0120] The three-dimensional coordinates of the measuring points on the surface of the measured target are obtained as follows:
[0121] Assume that the position of the binocular camera in the global reference coordinate system is (R, t), and the three-dimensional coordinates of the probe center in the binocular camera coordinate system are Pc , then the final three-dimensional coordinates of the point to be measured are P r =RP c +t.
[0122] Among them, it should be noted that the above S4 needs to be positioned by taking images through a binocular camera, that is, the coding block is photographed by the binocular camera to solve its position and posture in the global coordinate system, specifically including: solving the three-dimensional coordinates of these landmarks in the binocular camera coordinate system according to the calibration parameters of the binocular camera, and finally performing 3D-3D matching with the measurement reference field to solve the position and posture of the binocular camera in the global coordinate system.
[0123] like Figure 7 As shown, a binocular camera posture solution method provided by an embodiment of the present invention is specifically as follows:
[0124] Assume that the three-dimensional coordinates of the marker point in the binocular camera coordinate system are p = {p1, p2, ... p n}, the coordinates of the corresponding point in the global reference coordinate system are q={q1,q2,...q n ], the centroids of the two groups of points are and Then the centroid coordinates of the two groups of points are p'={p i '|p i '=p i -μ p} and q'={q i '|q i '=q i -μ q}; where p i (i=1,2,...,n) is the three-dimensional coordinate of the i-th marker point in the binocular camera coordinate system; q i (i=1,2,...,n) is the three-dimensional coordinate of the i-th marker point in the global reference coordinate system;
[0125] Calculating the Matrix And perform SVD decomposition:
[0126] W=U∑V T (4)
[0127] Among them, U and V are unitary matrices obtained by SVD decomposition of matrix W, and ∑ is a non-negative real diagonal matrix obtained by decomposition.
[0128] Then the rotation matrix from the binocular camera to the global reference coordinate system is:
[0129] R=UV T (5)
[0130] The translation vector is:
[0131] t=μ q -Rμ p (6)
[0132] At this point, the calculation of the binocular camera pose is completed.
[0133] S5, after completing the measurement of the target object, measure the reference sphere;
[0134] S6, after completing the measurement of the reference sphere, globally optimize the probe measurement result of the target object based on the measurement result of the reference sphere, realize on-site measurement value transfer, so as to improve the measurement accuracy;
[0135] Among them, the above S6 is a global optimization process of the probe measurement results based on the measurement results of the standard ball, that is, "optimization process based on value transfer", and its specific implementation process is as follows:
[0136] (1) When only one standard ball is placed and the nominal radius is used for optimization, the original measurement result of the reference sphere is assumed to be M = {P i |P i =(x i ,y i ,z i ),i=1,2,…,m}, where x i ,y i ,z i are the three-dimensional coordinates of each measuring point; m is the number of measuring points; the measurement result M is corrected by a fourth-order polynomial:
[0137]
[0138] In the formula, l i For each measuring point P i The distance to the global coordinate system; A1, A2, A3, A4 are the polynomial correction coefficients for the x-axis coordinates; B1, B2, B3, B4 are the correction coefficients for the y-axis coordinates; C1, C2, C3, C4 are the correction coefficients for the z-axis coordinates; the measurement error term for the reference sphere radius is:
[0139]
[0140] In the formula, is the nominal radius of the reference sphere; r is the probe radius; (a, b, c) are the three-dimensional coordinates of the center of the reference sphere;
[0141] Construct a least squares problem:
[0142]
[0143] Where, k = (A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4) is the coefficient of the polynomial to be solved;
[0144] Find the optimal solution of function F After obtaining the correction coefficient, it can be substituted into formula (7) to correct the measurement result and complete the global optimization based on value transfer.
[0145] (2) When multiple standard balls are placed (eight balls are used as an example in this embodiment), the ball center distance is used for optimization. The specific implementation process is as follows: Assume that the original measurement results at the centers of the eight reference spheres are N = {C i |C i =(X i ,Y i ,Z i ),i=1,2,…,8}; where X i ,Y i ,Z i is the measured three-dimensional coordinates of the center of the i-th sphere;
[0146] Perform a fourth-order polynomial correction on the measurement result N:
[0147]
[0148] Where, L i is the measured distance from the center of the reference sphere to the origin of the global reference coordinate system; A1, A2, A3, A4 are the polynomial correction coefficients for the x-axis coordinates; B1, B2, B3, B4 are the correction coefficients for the y-axis coordinates; C1, C2, C3, C4 are the correction coefficients for the z-axis coordinates; the measurement error term for the distance from the center of the reference sphere is:
[0149]
[0150] Where, d i (i=1,2,...,8) is the nominal sphere center distance from each reference sphere to the origin of the global reference coordinate system;
[0151] Construct a least squares problem:
[0152]
[0153] Where, k = (A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4) is the coefficient of the polynomial to be solved;
[0154] Find the optimal solution of function F After obtaining the correction coefficient, the measurement result can be corrected by correcting the coordinates of the sphere center according to formula (10), thus completing the global optimization based on value transfer.
[0155] In summary, this embodiment provides a binocular three-dimensional point detection method with on-site measurement value transfer. Unlike traditional probes that are limited by the effective field of view of the positioning device, this method uses a binocular camera for global high-precision reverse positioning, realizing the combination of binocular visual positioning and probe contact measurement. The designed binocular three-dimensional probe can perform active and flexible measurements without constraints; at the same time, the method introduces an on-site measurement value transfer method based on a standard reference sphere, globally optimizes the measurement results, suppresses and corrects measurement errors, and ensures that the measurement results are accurate and reliable within a large measurement range. Specifically, the binocular three-dimensional point detection method with on-site measurement value transfer establishes a measurement reference field by pasting a highly reflective coding block on a stable object, uses a binocular camera to shoot marker points to achieve global posture positioning, combines the probe center to calibrate the coordinates, and realizes the solution of the surface measurement points of the target object to be measured. Finally, the measurement points are globally optimized according to the measurement results of the standard sphere to improve the final measurement accuracy. This method uses highly reflective coding blocks to significantly increase the measurement range and realize flexible contact measurement. At the same time, it introduces an on-site measurement value transfer method based on a standard reference sphere. While ensuring measurement accuracy, it solves the shortcomings of existing contact profilometers, such as limited measurement range and lack of measurement flexibility.
[0156] Second embodiment
[0157] This embodiment provides a binocular three-dimensional point detection device with on-site value transfer, the binocular three-dimensional point detection device includes: a binocular camera, a probe, a standard cone, a high-reflective encoding block and a workstation;
[0158] The binocular camera is rigidly connected to the probe, such as Figure 5 As shown; during the measurement process, the binocular camera shoots the highly reflective coding block, and the probe contacts the measurement target object. Figure 6 As shown; data communication is achieved between the binocular camera and the workstation;
[0159] The binocular camera captures the image of the highly reflective coding block and transmits it to the workstation;
[0160] The standard cone is fixed in the effective range of the measurement reference field and is used to calibrate the binocular three-dimensional probe and calculate the three-dimensional coordinates of the probe head in the binocular camera coordinate system;
[0161] The workstation includes the following functional modules:
[0162] Coded block decoding module: extracts the two-dimensional pixel coordinates of the landmark points in the coded blocks captured by the binocular camera, and decodes the unique coded value of each coded block:
[0163] Landmark point calculation module: matches the landmark points in the left and right images captured by the binocular camera according to the coding values of the coding blocks, and calculates the three-dimensional coordinates of the landmark points in the binocular camera coordinate system in combination with the binocular camera calibration parameters;
[0164] Binocular camera pose calculation module: perform 3D-3D matching of the marker points and the measurement reference field according to the 3D coordinates of the marker points, and calculate the pose of the binocular camera in the global reference coordinate system, such as Figure 7 As shown;
[0165] Measuring point coordinate calculation module: The measuring point coordinates are calculated based on the binocular camera posture and the probe center calibration coordinates.
[0166] Among them, it should be noted that the binocular three-dimensional point detection device with on-site measurement value transfer provided in this embodiment corresponds to the binocular three-dimensional point detection method with on-site measurement value transfer provided in the above-mentioned first embodiment; wherein, the functions implemented by each functional module in the binocular three-dimensional point detection device with on-site measurement value transfer provided in this embodiment correspond one-to-one to each process step in the binocular three-dimensional point detection method with on-site measurement value transfer provided in the above-mentioned first embodiment; therefore, they will not be repeated here.
[0167] Third embodiment
[0168] This embodiment provides an electronic device, such as Figure 8 As shown, the electronic device includes: a processor and a memory; wherein the processor and the memory can be connected via a communication bus; the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method of the first embodiment. In addition, the electronic device may also include a transceiver, the processor and the transceiver can be connected via a communication bus, and the transceiver is used to communicate with other devices.
[0169] Next, combine Figure 8 The following is a detailed introduction to the various components of the electronic device:
[0170] Among them, the processor is the control center of the electronic device, and the electronic device may include multiple processors, each of which may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may be a processor or a general term for multiple processing elements. For example, the processor is one or more central processing units (CPUs), or other general-purpose processors, application specific integrated circuits (ASICs), or one or more integrated circuits configured to implement an embodiment of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (field programmable gate arrays, FPGAs), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor may execute various functions of the electronic device by running or executing software programs stored in the memory and calling data stored in the memory.
[0171] In a specific implementation, as an embodiment, the processor may include one or more CPUs, such as Figure 8 The CPU0 and CPU1 shown in the figure are, of course, only exemplary.
[0172] The memory is used to store the software program for executing the solution of the present invention, and the execution is controlled by the processor. The specific implementation method can refer to the above method embodiment and will not be repeated here.
[0173] Optionally, the memory may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be integrated with the processor or exist independently and accessed through the interface circuit ( Figure 8 (not shown) is coupled to the processor, which is not specifically limited in this embodiment of the present invention.
[0174] The transceiver may include a receiver and a transmitter ( Figure 8 The receiver is used to implement the receiving function, and the transmitter is used to implement the sending function. The transceiver can be integrated with the processor or exist independently and communicate with the electronic device through the interface circuit ( Figure 8 (not shown) is coupled to the processor, which is not specifically limited in this embodiment of the present invention.
[0175] In addition, it should be noted that Figure 8 The structure of the electronic device shown in the figure does not constitute a limitation on the device, and the actual device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In addition, the technical effects achieved by the electronic device when executing the method of the first embodiment above can refer to the technical effects described in the first embodiment above, so they are not repeated here.
[0176] Fourth embodiment
[0177] This embodiment provides a computer-readable storage medium, which stores at least one instruction, and the instruction is loaded and executed by a processor to implement the method of the first embodiment. The computer-readable storage medium may be a ROM, a random access memory, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc. The instructions stored therein may be loaded by a processor in a terminal to execute the method.
[0178] In addition, it should be noted that the present invention can be provided as a method, an apparatus or a computer program product. Therefore, the embodiment of the present invention can be in the form of a full or partial hardware embodiment, a full or partial software embodiment or an embodiment combining software and hardware. Moreover, when implemented using software, the embodiment of the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center containing one or more available media sets. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium. The semiconductor medium may be a solid state hard disk.
[0179] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0180] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0181] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements. In addition, the term "and / or" is only an association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, wherein A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding. "At least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can be represented by: a, b, c, ab, ac, bc or abc, where a, b, c can be single or plural.
[0182] In addition, it can be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0183] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0184] In several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of functional modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0185] If the method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0186] Finally, it should be noted that the above is only a preferred embodiment of the present invention. It should be pointed out that although the preferred embodiment of the present invention has been described, for ordinary technicians in this technical field, once the basic creative concept of the present invention is known, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the protection scope of the present invention. Therefore, the attached claims are intended to be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the embodiments of the present invention.
Claims
1. A binocular three-dimensional point detection method with on-site value transfer, characterized in that: The binocular three-dimensional probe is used for implementation. The binocular three-dimensional probe includes a binocular camera and a probe. One end of the probe away from the probe is rigidly connected to the binocular camera. The binocular three-dimensional point detection method with on-site value transfer includes: Arrange multiple reflective coding blocks around the location of the target object and / or on the ground to form a measurement reference field; use a binocular camera to photograph the measurement reference field, and calculate the three-dimensional coordinates of the circular marking points on all coding blocks in the measurement reference field according to the photographed coding block images to establish a global reference coordinate system; Placing a reference sphere around the target object; wherein the reference sphere is located in a measurement reference field; Calibrate the binocular 3D probe and calculate the 3D coordinates of the probe center in the binocular camera coordinate system; Based on the established global reference coordinate system and the calculated three-dimensional coordinates of the probe center in the binocular camera coordinate system, the target object and the reference sphere are measured respectively using a binocular three-dimensional probe; The measurement results of the target object are corrected based on the measurement results of the reference sphere to improve the measurement accuracy.
2. The binocular three-dimensional point detection method with on-site value transfer according to claim 1, characterized in that: When a plurality of reflective coding blocks are arranged around the location of the target object and / or on the ground to form a measurement reference field, the coding block attributes of the coding blocks used need to be pre-set; wherein, the coding block attributes include: the size of the circular marking points of the coding blocks, the arrangement order, and the encoding and decoding rules; the range size of the measurement reference field needs to ensure that it can completely cover the field of view of the binocular camera, and ensure that the binocular camera can always capture the measurement reference field during the measurement process; the spacing of the coding blocks should be as consistent as possible within the allowable error range, to ensure that the coding blocks can cover the field of view of the binocular camera, and to ensure that the binocular camera can capture multiple coding blocks during operation; The three-dimensional coordinates of the circular marking points on all the coding blocks in the measurement reference field are calculated according to the captured coding block images to establish a global reference coordinate system, including: Use a binocular camera to take multiple shots of all the coding blocks in the measurement reference field; Based on the captured image of the coding block, a global reference coordinate system is established using computer vision technology; when solving the coordinates of the marker points, the marker points are identified and matched according to the set coding block attributes.
3. The binocular three-dimensional point detection method with on-site value transfer according to claim 1, characterized in that: Placing a reference sphere around the target object comprises: When the size of the target object is smaller than the preset size threshold, a reference sphere is placed next to the target object, and the distance between the reference sphere and the target object does not exceed the preset distance; When the size of the target object is not less than a preset size threshold, a plurality of reference spheres are placed around the target object, and the plurality of reference spheres are evenly distributed on the minimum circumscribed rectangle of the target object.
4. The binocular three-dimensional point detection method with on-site value transfer as claimed in claim 3, characterized in that: When multiple reference spheres are placed around the target object, at least one reference sphere should be placed at each of the four vertices and the midpoints of the four sides of the minimum circumscribed rectangle of the target object.
5. The binocular three-dimensional point detection method with on-site value transfer according to claim 1, characterized in that: The calibrating of the binocular three-dimensional probe to calculate the three-dimensional coordinates of the probe center in the binocular camera coordinate system includes: Arranging a standard cone in the measurement reference field; The probe of the probe is placed in a standard cone to ensure that the center of the probe is fixed. The binocular camera posture is changed multiple times to shoot the measurement reference field. According to the shooting results, the three-dimensional coordinates of the probe center in the binocular camera coordinate system are solved based on the constraint condition that the probe center remains unchanged in the dual coordinate system. Among them, the probe center remains unchanged in the dual coordinate system means that when the binocular camera posture is changed for calibration, the coordinates of the probe center remain unchanged in both the global reference coordinate system and the binocular camera coordinate system. According to the constraint, calibrating the binocular three-dimensional probe includes: Assume that the coordinate of the probe center in the global reference coordinate system is P g =[x g ,y g ,z g ] T , the coordinates in the binocular camera coordinate system are P c =[x c ,y c ,z c ] T , the rotation direction vector around the x-axis when the 3D point in the binocular camera coordinate system is converted to the global coordinate system The rotation direction vector around the y-axis when the 3D point in the binocular camera coordinate system is converted to the global coordinate system The rotation direction vector around the z-axis when the 3D point in the binocular camera coordinate system is converted to the global coordinate system are all unit vectors, and are mutually orthogonal; the camera pose is in, It indicates the translation amount in the x-axis direction when the 3D point in the binocular camera coordinate system is converted to the global coordinate system. It indicates the translation amount in the y-axis direction when the three-dimensional point in the binocular camera coordinate system is converted to the global coordinate system. It indicates the translation amount in the z-axis direction when the three-dimensional point in the binocular camera coordinate system is converted to the global coordinate system; according to the posture transformation relationship: P g =R i P c +t i (1) The calibration error term is obtained from formula (1): set up P = [x c ,y c ,z c ,x g ,y g ,z g ] T , construct the least squares problem: In the formula, n is the number of calibration poses; Solve equation (3) to get the calibration result P * , calculate the three-dimensional coordinates of the probe center in the binocular camera coordinate system and the global reference coordinate system, and complete the calibration of the binocular three-dimensional probe.
6. The binocular three-dimensional point detection method with on-site value transfer according to claim 1, characterized in that: The method of using a binocular three-dimensional probe to measure the target object and the reference sphere respectively includes: During measurement, the probe head contacts the point to be measured on the surface of the object to be measured, and the binocular camera captures the measurement reference field; The position and posture of the binocular camera in the global reference coordinate system are calculated according to the circular marker points captured by the binocular camera; wherein the object to be measured refers to the target object to be measured or the reference sphere; According to the calculated position and posture of the binocular camera in the global reference coordinate system, combined with the calibrated three-dimensional coordinates of the probe center in the binocular camera coordinate system, the coordinates of the probe center in the global reference coordinate system are calculated to complete the measurement of the measured point and obtain the three-dimensional coordinates of the measured point in the global reference coordinate system.
7. The binocular three-dimensional point detection method with on-site value transfer according to claim 6, characterized in that: The method of calculating the position and posture of the binocular camera in the global reference coordinate system according to the circular marker points photographed by the binocular camera includes: Assume that the three-dimensional coordinates of the marker point in the binocular camera coordinate system are p = {p1, p2, ... p n }, the coordinates of the corresponding point in the global reference coordinate system are q={q1,q2,...q n }, the centroids of the two groups of points are and Then the centroid coordinates of the two groups of points are p'={p′ i |p′ i =p i -μ p } and q'={q′ i |q′ i =q i -μ q }, where p i is the three-dimensional coordinate of the i-th landmark in the binocular camera coordinate system; q i is the three-dimensional coordinate of the i-th marker point in the global reference coordinate system; i = 1, 2, ..., n; n is the number of marker poses; Calculating the Matrix And perform SVD decomposition: W=U∑V T (4) Among them, U and V are unitary matrices obtained by SVD decomposition of matrix W, ∑ is a non-negative real diagonal matrix obtained by decomposition; T represents the transpose of the matrix; Then the rotation matrix from the binocular camera to the global reference coordinate system is: R=UV T (5) The translation vector is: t=μ q -Rμ p (6) At this point, the calculation of the binocular camera pose is completed.
8. The binocular three-dimensional point detection method with on-site value transfer as claimed in claim 3, characterized in that: The correcting the measurement result of the target object based on the measurement result of the reference sphere includes: When only one reference sphere is placed, the diameter of the reference sphere is used as the value transfer reference to correct the measurement result of the target object; When multiple reference spheres are placed, the distance between the centers of the reference spheres is used as the reference for value transfer to correct the measurement results of the target object.
9. The binocular three-dimensional point detection method with on-site value transfer according to claim 8, characterized in that: When only one reference sphere is placed, the reference sphere diameter is used as a value transfer reference to correct the measurement result of the target object, including: Assume that the original measurement result of the reference sphere is M = {P i |P i =(x i ,y i ,z i ),i=1,2,...,m}, where x i ,y i ,z i is the three-dimensional coordinate of the i-th measuring point; m is the number of measuring points; Perform a fourth-order polynomial correction on the measurement result M: In the formula, l i For each measuring point P i The distance to the global coordinate system; A1, A2, A3, A4 are the polynomial correction coefficients for the x-axis coordinates; B1, B2, B3, B4 are the correction coefficients for the y-axis coordinates; C1, C2, C3, C4 are the correction coefficients for the z-axis coordinates; the measurement error term for the reference sphere radius is: In the formula, is the nominal radius of the reference sphere; r is the probe radius; a, b, c are the three-dimensional coordinates of the center of the reference sphere; Construct a least squares problem: Where, k = (A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4) is the coefficient of the polynomial to be solved; Find the optimal solution of function F After the correction coefficient is obtained, the measurement result of the target object is corrected using the correction coefficient to complete the global optimization based on value transfer.
10. The binocular three-dimensional point detection method with on-site value transfer according to claim 8, characterized in that: When placing multiple reference spheres, the distance between the sphere centers of the reference spheres is used as a value transfer reference to correct the measurement result of the target object, including: Assume that the original measurement results at the center of multiple reference spheres are N = {C i |C i =(X i ,Y i ,Z i ),i=1,2,...,s}; where X i ,Y i ,Z i is the measured coordinates of the center of the i-th sphere; s is the number of reference spheres; Perform a fourth-order polynomial correction on the measurement result N: Where, L i is the measured distance from the center of the reference sphere to the origin of the global reference coordinate system; A1, A2, A3, A4 are the polynomial correction coefficients for the x-axis coordinates; B1, B2, B3, B4 are the correction coefficients for the y-axis coordinates; C1, C2, C3, C4 are the correction coefficients for the z-axis coordinates; the measurement error term for the distance from the center of the reference sphere is: Where, d i is the nominal sphere center distance from each reference sphere to the origin of the global reference coordinate system; i = 1, 2, ..., s; Construct a least squares problem: Where, k = (A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4) is the coefficient of the polynomial to be solved; Find the optimal solution of function F After the correction coefficient is obtained, the measurement result of the target object is corrected using the correction coefficient to complete the global optimization based on value transfer.
Citation Information
Cited By
Single-scale field calibration method
CN119228908A
