Laser-vision heterogeneous measurement data registration error correction method
By establishing the least squares optimization model of the conversion matrix and off-line calibration scale factors, the problem of low registration accuracy caused by the scale difference between the laser tracker and the visual camera is solved, high-precision heterogeneous measurement data registration is achieved, and large-scale Measurement accuracy of end position of processing robot.
Patent Information
- Application Number
- CN202410776943.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-18
AI Technical Summary
The difference in scale between the laser tracker and the vision camera results in low registration accuracy, making it difficult to achieve high-precision measurement of the end position of a large-scale processing robot.
By establishing a least squares optimization model of the transformation matrix, the scale factor between the vision camera and the laser tracker is calibrated offline, and the transformation matrix is measured and solved online to correct the scale difference between the measurement equipment and improve the registration accuracy of the global data.
It effectively reduces the registration error of global data, improves the measurement accuracy of the end position of a large-scale processing robot, and has broad engineering application prospects.
Smart Images

Figure CN118794340A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of large-size measurement and relates to a laser-vision heterogeneous measurement data registration error correction method. Background Art
[0002] The end-point posture measurement of large-scale aviation component processing robots has become one of the key core technologies in the field of aviation manufacturing. Laser trackers are widely used for high-precision measurement of robot posture due to their large measurement range and high single-point measurement accuracy. However, due to the serious line of sight obstruction in the robot processing area and the fact that the component measurement reference point is often only located in a local area, the traditional laser real-time tracking measurement method is difficult to directly apply to complex measurement conditions. The combined measurement method of visual online measurement and laser offline positioning is an effective means to achieve high-precision positioning of the end-point posture of large-scale processing robots. In order to obtain the posture of the robot end relative to the processed component, it is necessary to align each local coordinate system to the global coordinate system. Therefore, it is of great significance to study the data registration method between the visual camera and the laser tracker for the measurement of the robot posture.
[0003] Regarding the registration of the local coordinate system to the global coordinate system, Chengdu Aircraft Industry (Group) Co., Ltd. proposed a laser tracker transfer method based on measurement adjustment optimization in its patent "Laser Tracker Transfer Method", patent number ZL201510680999.3. This method optimizes the local coordinates with a pre-calibrated geometric length, thereby improving the local measurement accuracy of each point. Finally, the registration accuracy of the global data is improved by improving the measurement accuracy of the common points. However, this method requires the geometric distance between each common point to be measured in advance. As the number of common points increases, the measurement cost increases, so it is only applicable to working conditions with a small number of common points. The Institute of Microelectronics of the Chinese Academy of Sciences proposed a registration method for the laser tracker coordinate system and the visual coordinate system based on EPnP in its patent "Real-time Conversion Method for Laser Tracker Coordinate System", patent number ZL202311336959.8. This method calculates the transformation matrix through the camera's internal parameters, the pixel coordinates of the common point centroid, and the three-dimensional coordinates of the common point centroid measured by the laser tracker. However, the calculation process of the EPnP algorithm itself is complex and requires nonlinear optimization to improve accuracy. When the number of common points is large, the calculation cost is high.
[0004] To this end, the present invention proposes a laser-vision heterogeneous measurement data registration error correction method to address the problem of low registration accuracy caused by the scale difference between a laser tracker and a vision camera. Summary of the invention
[0005] The technical problem to be solved by the present invention is the problem of low registration accuracy caused by the scale difference between the laser tracker and the visual camera. A laser-vision heterogeneous measurement data registration error correction method is invented. By correcting the registration error between the measuring devices, the registration error of the global data is reduced to ensure the measurement accuracy of the terminal position of a large-scale processing robot. The method first establishes an optimization model of the conversion matrix, then calibrates the scale factor between the visual camera and the laser tracker offline, and finally measures and solves the conversion matrix online. The method corrects the registration error caused by the scale difference between the measuring devices, improves the registration accuracy of the global data, and has broad application prospects.
[0006] The technical solution of the present invention:
[0007] A laser-vision heterogeneous measurement data registration error correction method, firstly introduces the scale factor between the laser tracker and the visual camera, and establishes the least squares optimization model of the conversion matrix; then, reasonably arranges multiple measurement mark points in a certain space and uses them as common points to ensure that the common points are within the measurement range of the laser tracker and binocular vision, respectively, and uses the laser tracker and the visual camera to measure the common points offline, and calibrates the scale factor; finally, uses binocular vision to measure the common points at the measurement station, solves the conversion matrix between the visual measurement coordinate system and the laser tracker measurement coordinate system according to the previous optimization model, and registers the three-dimensional coordinates in the visual measurement coordinate system to the laser tracker measurement coordinate system. The specific steps of this method are as follows:
[0008] The first step is to establish a transformation matrix optimization model
[0009] As different measuring instruments, laser trackers and binocular vision have great differences in their measuring principles, measuring ranges, and measuring accuracy. In terms of measuring principle, the laser tracker establishes a spherical coordinate system by measuring the distance from the target point to the origin of the laser tracker coordinate system and the horizontal and vertical angles of the target point, and calculates the three-dimensional coordinates of the target point. Binocular vision is based on the parallax principle, and calculates the three-dimensional coordinates of the target point through the pixel coordinates of the corresponding points in the two images. In terms of measuring range, laser trackers are used for global measurement, and binocular vision is used for local measurement. In terms of measuring accuracy, the ranging error of the laser interferometer system can reach ±0.5μm / m, and the measurement accuracy of the laser tracker is much higher than that of the binocular vision.
[0010] Due to various differences between the two measuring instruments, there are scale differences in the measurement data of the two, namely:
[0011] ΔP L ~N(μ,σ 2 )(1)
[0012] ΔP V ~N(kμ,(kσ) 2 )(2)
[0013] Among them, ΔP L is the measurement error of the laser tracker, ΔP V is the measurement error of binocular vision, and k is the scale factor of the two;
[0014] Considering that the scale factors of the two will affect the registration accuracy, the following transformation matrix optimization model is constructed:
[0015]
[0016] Among them, l i is the 3D coordinate of the ith common point measured by the laser tracker, v i is the three-dimensional coordinate of the ith common point measured by binocular vision at the measuring station, R v-l , T v-l They are the rotation matrix and translation matrix from the visual measurement coordinate system to the laser tracker measurement coordinate system;
[0017] Step 2: Offline calibration of scale factors
[0018] In the measurement space, n measurement mark points are arranged reasonably as common points (P1, P2, ..., P n ), ensure that the common point is within the measurement range of the laser tracker and binocular vision, the binocular vision is 1 to 2 meters away from the common point, and the binocular vision is 2 to 3 meters away from the laser tracker, as the calibration station; then use the laser tracker and binocular vision to measure the 3D coordinates of all common points;
[0019] Through the three-dimensional coordinate data of the above common points, a seven-parameter transformation model is established to calibrate the scale factor k:
[0020]
[0021] in, Indicates that the origin of the visual measurement coordinate system is translated first Then rotate around its own z axis Y-axis rotation x-axis rotation Coincident with the laser tracker measurement coordinate system; represents the coordinates of the i-th common point measured by binocular vision at the calibration station;
[0022] Formula (4) is solved by least squares iteration to obtain the scale factor k;
[0023] The third step is to solve the transformation matrix
[0024] Transfer the binocular vision to the measuring station, calibrate the distance between the station and the measuring station to 0.5m, and ensure that the common points are within the measurement range of the binocular vision. Use the binocular vision to measure the three-dimensional coordinates of all common points at the measuring station;
[0025] Solve the centroid coordinates of the common point in the visual measurement coordinate system and the laser tracker measurement coordinate system respectively, and process the three-dimensional coordinates into centroids:
[0026]
[0027] First, solve the initial values R and T of the rotation matrix and translation matrix from the visual measurement coordinate system to the laser tracker measurement coordinate system; the relative position relationship between each common point is unchanged, so the common point centroid processing can separate the translation matrix T, and establish a registration model related only to the rotation matrix R:
[0028] l i '=Rv i ' (7)
[0029] Construct a least squares optimization model to solve the rotation matrix R that minimizes the data registration error:
[0030]
[0031] To facilitate the solution, a transition matrix H is constructed and the singular value decomposition is performed:
[0032]
[0033] Where Σ is a diagonal matrix, and the diagonal elements are the singular values σ of the matrix H k , U and V are third-order matrices;
[0034] Then the rotation matrix R that satisfies formula (5) is:
[0035] R=VU T (10)
[0036] The translation matrix can be obtained using the coordinates of the centroid of the common point:
[0037]
[0038] Then, according to the optimization model in (1), the final rotation matrix and translation matrix from the visual measurement coordinate system to the laser tracker measurement coordinate system are solved:
[0039] R v-l = kR, T v-l =kT (12)
[0040] By solving R v-l and Tv-l The measurement data in the visual camera measurement coordinate system is registered to the laser tracker measurement coordinate system to achieve high-precision registration of heterogeneous measurement data.
[0041] The beneficial effect of the present invention is that the method fully considers the influence of scale difference on the registration accuracy, calibrates the scale factor using the seven-parameter conversion method, and introduces the scale factor into the optimization of the transformation matrix. By reducing the registration error between measuring devices, the registration error of the global measurement data is reduced, and it can be quickly applied to measurement site practice to ensure the measurement accuracy of the terminal posture of a large range of processing robots, and has broad engineering application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flow chart of the laser-vision heterogeneous measurement data registration error correction method.
[0043] Figure 2 It is a schematic diagram of the scale factor calibration experiment of the vision-laser tracker.
[0044] In the figure: 1- binocular vision measurement equipment, 2- laser tracker, 3- component to be processed, 4- common point, 9 in total, P1-P9. DETAILED DESCRIPTION
[0045] The specific implementation of the present invention is described in detail below in conjunction with the technical scheme and the accompanying drawings.
[0046] The laser tracker used in this implementation has a measurement range of 60m and a measurement uncertainty of ±15μm+μm / m; a mirror laser target ball is used as the laser target ball; there are 9 public measurement points (P1-P9), which are arranged near the position of the component to be processed, with a distribution range of approximately 55cm×40cm. When the laser tracker is measured, the laser target ball is fixed on the target base; when the binocular vision is measured, the visual marker point is pasted on the surface of the target base. The distance between the laser tracker and the point to be measured is about 3m, and the field of view of the binocular camera is about 400mm×400mm. The experimental scene for scale factor calibration is as follows: Figure 2 As shown in Figure 2, the binocular camera is transferred to the measurement position over a large range, which is the experimental scenario for solving the transformation matrix.
[0047] The present invention first establishes a least squares optimization model of the conversion matrix, and then arranges common measurement points P1-P9 on the component to be processed, ensuring that the common points are within the measurement range of binocular vision and laser tracker, respectively using laser tracker and binocular vision to measure the common points, and calibrating the scale factor between the laser tracker and binocular vision; finally, binocular vision is used to measure the common points at the measurement station, and according to the previously established optimization model, the conversion matrix from the visual measurement coordinate system to the laser tracker coordinate system is solved. The flow chart of the method is as follows: Figure 1 As shown, the specific steps of the method are as follows:
[0048] The first step is to calibrate the scale factor
[0049] Arrange 9 measuring points on the component to be processed as common points (P1, P2, ..., P9), and then use the laser tracker and visual camera to measure the 3D coordinates of all the common points respectively to obtain the 3D coordinate sets l, v of the common points. c :
[0050]
[0051] The three-dimensional coordinate set l, v of the common point c A seven-parameter conversion model is established according to formula (4), and the scale factor k is calibrated offline through least squares iteration.
[0052] The second step is to measure the common points and solve the transformation matrix
[0053] Binocular vision measures common points at the measuring station and obtains the three-dimensional coordinate set of the common points:
[0054] v=[x v,1 y v,1 z v,1 ...x v,9 y v,9 z v,9 ] T (14)
[0055] Referring to the transformation matrix optimization method of formula (3), the three-dimensional coordinate sets of the common points l and v are centroided according to formulas (5) and (6) to obtain l i ' and v i '(i=1,2,…,9), then establish the least squares optimization model according to formula (8), construct the transition matrix H according to formula (9), and perform singular value decomposition on it. Then solve the transformation parameters according to formula (10), formula (11) and formula (12), so as to complete the registration from the visual measurement coordinate system to the laser tracker measurement coordinate system.
[0056] The coordinates of the common point in this example in the laser tracker measurement coordinate system are:
[0057] Table 1 Coordinates of common points measured by laser tracker
[0058]
[0059]
[0060] In the scale factor calibration phase, the coordinates of the common point measured by binocular vision are:
[0061] Table 2 Coordinates of common points measured by binocular vision at the calibration station
[0062]
[0063] The calibration result of the scale factor is 1.0004
[0064] In the transformation matrix solution stage, the coordinates of the common point measured by binocular vision are:
[0065] Table 3 Coordinates of common points measured by binocular vision at the measurement station
[0066]
[0067] The rotation matrix R from the corrected visual measurement coordinate system to the laser tracker measurement coordinate system v-l and the translation matrix T v-l as follows:
[0068]
[0069] T v-l =[-796.280-972.205-497.773] T (16)
[0070] By calculating the coordinate transformation parameters from the visual measurement coordinate system to the laser tracker measurement coordinate system, the data in the visual measurement coordinate system is aligned to the laser tracker measurement coordinate system, thus realizing the heterogeneous measurement data alignment based on scale factor.
[0071] The present invention corrects the registration error between measuring devices. This method fully takes into account the problem of low registration accuracy caused by the scale difference between different measuring devices, and can effectively reduce the registration error between heterogeneous measurement data, thereby improving the registration accuracy from the local coordinate system to the global coordinate system, so as to ensure the measurement accuracy of the end position of a large-scale processing robot, and has broad application prospects in the field of large-size measurement.
Claims
1. A laser-vision heterogeneous measurement data registration error correction method, characterized in that: Here are the steps: The first step is to establish a transformation matrix optimization model As different measuring instruments, laser trackers and binocular vision have great differences in their measuring principles, measuring ranges, and measuring accuracy. In terms of measuring principles, laser trackers establish a spherical coordinate system by measuring the distance from the target point to the origin of the laser tracker coordinate system and the horizontal and vertical angles of the target point, and calculate the three-dimensional coordinates of the target point. Binocular vision is based on the principle of parallax, and calculates the three-dimensional coordinates of the target point through the pixel coordinates of corresponding points in two images. In terms of measuring range, laser trackers are used for global measurement, and binocular vision is used for local measurement. In terms of measuring accuracy, the laser tracker's measurement accuracy is much higher than that of binocular vision. Due to various differences between the two measuring instruments, there are scale differences in the measurement data of the two, namely: ΔP L ~N(μ,σ 2 (1) ΔP V ~N(km,(kσ) 2 )(2) Among them, ΔP L is the measurement error of the laser tracker, ΔP V is the measurement error of binocular vision, and k is the scale factor of the two; Considering that the scale factors of the two will affect the registration accuracy, the following transformation matrix optimization model is constructed: Among them, l i is the 3D coordinate of the ith common point measured by the laser tracker, v i is the three-dimensional coordinate of the ith common point measured by binocular vision at the measuring station, R v-l 、T v-l They are the rotation matrix and translation matrix from the visual measurement coordinate system to the laser tracker measurement coordinate system; Step 2: Offline calibration of scale factors In the measurement space, n measurement mark points are arranged reasonably as common points (P1, P2, ..., P n ), ensure that the common point is within the measurement range of the laser tracker and binocular vision, the binocular vision is 1 to 2 meters away from the common point, and the binocular vision is 2 to 3 meters away from the laser tracker, as the calibration station; then use the laser tracker and binocular vision to measure the 3D coordinates of all common points; Through the three-dimensional coordinate data of the above common points, a seven-parameter transformation model is established to calibrate the scale factor k: in, Indicates that the origin of the visual measurement coordinate system is translated first Then rotate around its own z axis Y-axis rotation x-axis rotation Coincident with the laser tracker measurement coordinate system; represents the coordinates of the i-th common point measured by binocular vision at the calibration station; Formula (4) is solved by least squares iteration to obtain the scale factor k; The third step is to solve the transformation matrix Transfer the binocular vision to the measuring station, calibrate the distance between the station and the measuring station to 0.5m, and ensure that the common points are within the measurement range of the binocular vision. Use the binocular vision to measure the three-dimensional coordinates of all common points at the measuring station; Solve the centroid coordinates of the common point in the visual measurement coordinate system and the laser tracker measurement coordinate system respectively, and process the three-dimensional coordinates into centroids: First, solve the initial values R and T of the rotation matrix and translation matrix from the visual measurement coordinate system to the laser tracker measurement coordinate system; the relative position relationship between each common point is unchanged, so the common point centroid processing can separate the translation matrix T, and establish a registration model related only to the rotation matrix R: l i '=Rv i ' (7) Construct a least squares optimization model to solve the rotation matrix R that minimizes the data registration error: To facilitate the solution, a transition matrix H is constructed and the singular value decomposition is performed: Where Σ is a diagonal matrix, and the diagonal elements are the singular values σ of the matrix H k , U and V are third-order matrices; Then the rotation matrix R that satisfies formula (5) is: R=VU T (10) The translation matrix can be obtained using the coordinates of the centroid of the common point: Then, according to the optimization model in (1), the final rotation matrix and translation matrix from the visual measurement coordinate system to the laser tracker measurement coordinate system are solved: R v-l =kR,T v-l =kT (12) By solving R v-l and T v-l The measurement data in the visual camera measurement coordinate system is registered to the laser tracker measurement coordinate system to achieve high-precision registration of heterogeneous measurement data.
Citation Information
Cited By
Spatial error calibration method for binocular vision system
CN117804334A
Binocular vision system space error calibration method
CN117804334B
Structural layout optimization method of multi-target spatial pose resolving device
CN122528479A
