Splicing method of laser scanning calibration template for horizontal motion platform

Through a dual-camera system with a horizontal motion platform and dual calibration equipment, 3D scanning is performed using dot calibration templates and camera movements, which solves the problem of difficulty in scanning large or complex-shaped objects in the existing technology, and achieves flexible and accurate 3D scanning. Data collection.

CN114004741BActive Publication Date: 2024-09-06汇像智能科技(上海)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111014435.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-09-06
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

Existing 3D data scanning technology requires the scanned objects to be small in size and regular in shape, and needs to be rotated and scanned to complete the modeling of the 3D image, which cannot adapt to the scanning of complex or large objects.

Method used

Using a horizontal motion platform and dual calibration equipment, calibration is performed through a dot calibration template and dual cameras. The camera movement is used to obtain the image point-object point pair matrix, the camera posture and transformation matrix are calculated, and the calibration template is spliced, and then 3D scanning is performed. .

Benefits of technology

It realizes 3D scanning of objects of various shapes and sizes, reduces the deviation caused by the rotation of the calibration object, simplifies the calibration process, reduces the cost, and improves the flexibility of scanning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114004741B
    Figure CN114004741B
Patent Text Reader

Abstract

The present invention relates to the field of image and data processing technology, and discloses a method for splicing a laser scanning calibration template on a horizontal motion platform, wherein the calibration template is a dot calibration template, the dots on the calibration template are arranged in an m*n array, a dual laser and a dual camera are arranged on the horizontal motion platform, the dual laser and the dual camera move synchronously on the horizontal motion platform, the calibration template falls into the field of view of the dual camera, a camera and a laser form a calibration device, and the calculation of the overall splicing matrix is ​​realized by collecting a data matrix. The present invention realizes the calibration of the calibration plate by means of camera movement through a dual calibration device, and then realizes the 3D scanning of the special body.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image and data processing, and in particular to a method for splicing a laser scanning calibration template of a horizontal motion platform. Background Art

[0002] The existing 3D data scanning and imaging principle is to scan the object with a laser transmitter, then take photos with a camera, and combine the photos into a 3D image. The above process first uses a calibration block to calibrate the data, then rotates and scans the object, and finally splices the scanned images into 3D image data.

[0003] This method requires that the scanned object is small in size and regular in shape, and can be fully illuminated by the laser when it rotates on the turntable, so that the 3D image can be modeled. Summary of the invention

[0004] The purpose of the present invention is to solve the above problems and provide a method for splicing a laser scanning calibration template on a horizontal motion platform. The calibration plate is calibrated by a dual calibration device in a camera movement manner, thereby realizing 3D scanning of a special body.

[0005] The technical solution adopted by the present invention is:

[0006] A method for splicing a laser scanning calibration template for a horizontal motion platform, characterized in that:

[0007] The calibration template is a dot calibration template, the dots on the calibration template are arranged in an m*n array, a dual laser and a dual camera are arranged on a horizontal motion platform, the dual laser and the dual camera move synchronously on the horizontal motion platform, the calibration template falls into the field of view of the dual camera, one camera and one laser constitute a calibration device, and the steps of the splicing method are as follows:

[0008] (1) The camera moves on a horizontal motion platform. At multiple predetermined time points, the camera takes photos of the calibration template to obtain the image point-object point pair matrix of the calibration template;

[0009] (2) solving the first camera posture and the second camera posture according to the image point-object point pair matrix;

[0010] (3) Transform the pixel coordinates of the dots on the calibration template into world coordinates according to the camera’s posture;

[0011] (4) The calibration template plane is used as the XOY plane, the Z axis is perpendicular to the calibration template, and the origin is the center point of the image point-object point pair matrix to establish the second camera calibration template coordinate system;

[0012] (5) Calculate the transformation matrix from the world coordinate system coordinates of the second camera to the coordinate system coordinates of the calibration template of the second camera;

[0013] (6) transforming the transformation matrix of the second camera into the constructed second camera calibration template coordinate system to form a second camera calibration template matrix;

[0014] (7) transforming the second camera calibration template matrix into a transformed second camera calibration template matrix corresponding to the position of the first camera calibration template matrix;

[0015] (8) converting the transformed second camera calibration template matrix into the world coordinate system of the second camera;

[0016] (9) splicing the second camera calibration template matrix converted to the world coordinate system of the second camera and the first camera calibration template matrix in the world coordinate system into a splicing matrix, and calculating the inverse matrix of the splicing matrix;

[0017] (10) multiplying the inverse matrix of the stitching matrix by the first camera posture matrix to obtain a new second camera posture matrix, wherein the new second camera posture matrix is ​​mirrored with the second camera posture matrix about the X-axis and the Y-axis;

[0018] (11) Calculate the transformation matrix from the second camera posture matrix to the new second camera posture matrix;

[0019] (12) Calculate the transformation matrix from the second camera posture matrix to the first camera posture matrix;

[0020] (13) Multiply the transformation matrix obtained in step (11) by the transformation matrix obtained in step (12) to obtain the overall splicing matrix.

[0021] Further, the process of step (7) is as follows:

[0022] (71) performing a mirror transformation on the second camera calibration template matrix relative to the X-axis of the second camera calibration template coordinate system;

[0023] (72) Mirror the mirrored second camera calibration template matrix relative to the Y-axis of the second camera calibration template coordinate system to obtain a transformed second camera calibration template matrix.

[0024] Further, the process of step (7) is as follows:

[0025] The second camera calibration template is rotated 180 degrees relative to the Z axis of the second camera calibration template coordinate system to obtain a transformed second camera calibration template matrix.

[0026] Furthermore, the first camera and the first laser form a first calibration device, and the second camera and the second laser form a second calibration device.

[0027] Furthermore, the first camera and the second laser form a first calibration device, and the second camera and the first laser form a second calibration device. The beneficial effects of the present invention are:

[0028] (1) Calibration is performed through the calibration template, which is simple and convenient;

[0029] (2) Fixed calibration object, suitable for various calibration objects, reducing the deviation caused by the rotation of the calibration object;

[0030] (3) We can also use software to process it, which is low-cost and easy to modify. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Attached Figure 1 is a schematic diagram of a horizontal motion laser scanning platform;

[0032] Attached Figure 2 It is a schematic diagram of the calibration template dot matrix collected by two cameras;

[0033] Attached Figure 3 It is a schematic diagram of the three-dimensional coordinate matrix calculated by two cameras;

[0034] Attached Figure 4 It is a schematic diagram of the constructed camera calibration template coordinate system;

[0035] Attached Figure 5 is a schematic diagram of the mirror transformation of the three-dimensional coordinate matrix of the second camera's point relative to the X-axis of the calibration template coordinate system;

[0036] Attached Figure 6 It is a schematic diagram of the mirror transformation of the three-dimensional coordinate matrix of the second camera's point relative to the Y-axis of the calibration template coordinate system. DETAILED DESCRIPTION

[0037] The specific implementation method of the splicing method of the laser scanning calibration template of the horizontal motion platform of the present invention is described in detail below with reference to the accompanying drawings.

[0038] See attached Figure 1, the horizontal motion platform moves the laser and camera through the slide rail set on the side of the object to be measured. During calibration, the calibration template is arranged on the side of the slide rail. The calibration template is a 5*5 array of dots. The dot spacing is determined and the reading direction can be marked. The array of the calibration template is M*N, generally dominated by an odd array. Here, the 5*5 array is taken as an example. The dot calibration template is placed on the horizontal motion laser scanning platform. There are two lasers and cameras, namely the first camera, the first laser, the second camera and the second laser. The calibration template is placed horizontally. The arrow in the calibration template image captured by the first camera points upward, and the first camera and the second camera can see the complete calibration template. In the image processing process, two combinations can be considered when calibrating two laser lines. The first combination is that the first camera and the first line laser constitute the first device, and the second camera and the second line laser constitute the second device. The second combination is that the first camera and the second line laser constitute the first device, and the second camera and the first line laser constitute the second device. Both methods can realize the technical solution of the present invention.

[0039] The first combination is used below to illustrate the stitching process of the calibration template data.

[0040] 1. Arrange the equipment according to the above requirements.

[0041] 2. The dot matrix of the calibration template captured by the first camera and the second camera. The captured images are as shown in the attached figure. Figure 2 As shown, the numbers in the figure are added artificially, where the lower left position is the image captured by the first camera, and the upper right position is the image captured by the second camera.

[0042] 3. Analyze the collected data into an image point-object point pair matrix. The obtained image point-object point pair matrix is ​​in the following form:

[0043]

[0044] where i mn represents the coordinates of the image point in the mth row and nth column, o mn Represents the coordinates of the object point at the mth row and nth column.

[0045] 4. Then, the pose of the first camera and the pose of the second camera, matPosture1 and matPosture2, are solved according to the image-object point pair matrix. The solution algorithm can be found in the literature [1]: "Lu, Chien-Ping, Hager, et al. Fastand Globally Convergent Pose Estimation from Video Images. [J]. IEEE Transactions on Pattern Analysis & Machine Intelligence, 2000".

[0046] 5. Calculate the three-dimensional coordinates of the calibration template points based on the camera posture.

[0047] The method to calculate the 3D coordinates of the calibration template dots is to transform the pixel coordinates of the dot calibration template into world coordinates according to the calibrated camera parameters. Assume that the camera intrinsic parameter matrix Camera pose matrix Then the transformation formula from pixel coordinates to world coordinates is as follows:

[0048]

[0049] in represents the pixel coordinates after distortion correction, is the obtained world coordinate.

[0050] The camera’s intrinsic parameter matrix is ​​the camera’s calibration and standard parameters, which can also be found in the literature [1]. Among them, f is the camera’s focal length, u and v are the camera’s optical axis translations. R refers to the camera’s rotation matrix, and T refers to the camera’s translation matrix.

[0051] See attached Figure 3 ,It can be seen that the dot matrix of the calibration template converted into world coordinates, the position of the matrix collected and solved by the second camera and the matrix collected and solved by the first camera are mirrored and opposite.

[0052] 6. Construct the second camera point calibration template coordinate system based on the point three-dimensional coordinate matrix.

[0053] See attached Figure 4 ,In the constructed coordinate system, the origin of the coordinate system is W22, the XOY plane is the calibration template plane, the Z-axis is perpendicular to the calibration template plane, the X-axis direction is from the center point W22 to W20, and the Y-axis is perpendicular to the X-axis and Z-axis, satisfying the left-hand coordinate system rule.

[0054] 7. Calculate the transformation matrix CvtCoord2 from the world coordinate system of the second camera to the coordinate system of the second camera point calibration template.

[0055] 8. Transform the 3D coordinate matrix of the second camera point into the constructed calibration template coordinate system. Assume that the coordinate system transformation matrix is The 3D coordinate matrix of the second camera point is: Then the three-dimensional coordinate matrix of the point after transformation to the calibration template coordinate system has the following form:

[0056] matPtBd3D2=CvtCoord2*matPt3D2 formula (3).

[0057] 9. See Appendix Figure 5, mirror the second camera point three-dimensional coordinate matrix matPtBd3D2 obtained in step 8 relative to the X-axis.

[0058] 10. See Appendix Figure 6 , mirror the three-dimensional coordinate matrix of the second camera point obtained in step 9 relative to the Y-axis.

[0059] 11. Inversely transform the three-dimensional coordinate matrix of the dots after the XY-axis mirror transformation to the original coordinate system.

[0060] Assume that the mirror transformation matrix with respect to the X-axis and Y-axis is

[0061]

[0062] The inverse transformation matrix from the camera 2 calibration template coordinate system to the world coordinate system is

[0063]

[0064] Then the transformation process is as follows:

[0065] Formula (5)=CvtCoordInv2·Imaging xy ·matPtBd3D2 formula (6).

[0066] 12. Calculate the stitching matrix matStitching from the three-dimensional coordinate matrix of the dots inversely transformed by the second camera to the three-dimensional coordinate matrix of the dots in the first camera 2To1 and its inverse matrix

[0067] 13. Multiply the inverse matrix obtained in step 12 by the first camera posture matrix obtained in step 4 to obtain the new second camera posture matrix. The new second camera posture matrix can be regarded as the mirror image of the second camera posture matPosture2 obtained in step 4 about the X-axis and Y-axis:

[0068]

[0069] 14. Calculate the transformation matrix from the second camera posture used for the laser of the second calibration device to the second camera posture obtained in step 13. Assuming that the second camera posture matrix used for the laser of the second calibration device is matPostureCalib2, the calculation formula of the transformation matrix is ​​as follows:

[0070] matCvtPosture 2To2 =matPostureI2 -1 ·matPostureCalib2 formula (8).

[0071] 15. Calculate the transformation matrix from the second camera pose obtained in step 4 to the first camera pose obtained in step 4. The transformation matrix from the second camera pose obtained in step 4 to the first camera pose obtained in step 4 is as follows:

[0072] matCrtPosture 2To1 =matPosture1 -1 ·matPosture2..........Formula (9).

[0073] 16. The overall splicing matrix is ​​the transformation matrix obtained in step 15 multiplied by the transformation matrix obtained in step 14. The calculation formula of the overall splicing matrix is ​​as follows:

[0074] matStitchingTotal 2To1 =matCvtPosture 2To1 ·matCvtPosture 2To2 ........Formula (10).

[0075] The transformations in steps (9) and (10) can be replaced by an equivalent rotation of 180 degrees around the Z-axis of the second camera calibration template coordinate system.

[0076] The calculation of the stitching matrix can calculate the three-dimensional data of the calibration template. Based on the calibration template, the data of the three-dimensional object can be collected. The dual cameras stitch the collected data into 3D data through the above method, providing a data basis for subsequent modeling and analysis.

[0077] The above is only a preferred embodiment of the present invention. It should be pointed out that ordinary technicians in this technical field can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for splicing templates for laser scanning calibration of a horizontal motion platform, characterized in that: The calibration template is a dot calibration template, the dots on the calibration template are arranged in an m*n array, a dual laser and a dual camera are arranged on a horizontal motion platform, the dual laser and the dual camera move synchronously on the horizontal motion platform, the calibration template falls into the field of view of the dual camera, one camera and one laser constitute a calibration device, and the steps of the splicing method are as follows: (1) The camera moves on a horizontal motion platform. At multiple predetermined time points, the camera takes photos of the calibration template to obtain the image point-object point pair matrix of the calibration template; (2) Calculate the first camera pose and the second camera pose according to the image point-object point pair matrix; (3) Transform the pixel coordinates of the dots on the calibration template into world coordinates according to the camera’s posture; (4) Use the calibration template plane as the XOY plane, the Z axis is perpendicular to the calibration template, and the origin is the center point of the image point-object point pair matrix to establish the second camera calibration template coordinate system; (5) Calculate the transformation matrix from the world coordinate system coordinates of the second camera to the coordinate system coordinates of the calibration template of the second camera; (6) transforming the transformation matrix of the second camera into the constructed second camera calibration template coordinate system to form a second camera calibration template matrix; (7) transforming the second camera calibration template matrix into a transformed second camera calibration template matrix corresponding to the position of the first camera calibration template matrix; (8) Converting the transformed second camera calibration template matrix into the world coordinate system of the second camera; (9) splicing the second camera calibration template matrix converted to the world coordinate system of the second camera and the first camera calibration template matrix in the world coordinate system into a splicing matrix, and calculating the inverse matrix of the splicing matrix; (10) multiplying the inverse matrix of the stitching matrix by the first camera pose matrix to obtain a new second camera pose matrix, wherein the new second camera pose matrix is ​​mirrored with the second camera pose matrix about the X-axis and the Y-axis; (11) Calculate the transformation matrix from the second camera posture matrix to the new second camera posture matrix; (12) Calculate the transformation matrix from the second camera posture matrix to the first camera posture matrix; (13) Multiply the transformation matrix obtained in step (11) by the transformation matrix obtained in step (12) to obtain the overall splicing matrix.

2. The method for splicing a laser scanning calibration template for a horizontal motion platform according to claim 1, characterized in that: The process of step (7) is as follows: (71) performing a mirror transformation on the second camera calibration template matrix relative to the X-axis of the second camera calibration template coordinate system; (72) Mirror the mirrored second camera calibration template matrix relative to the Y axis of the second camera calibration template coordinate system to obtain a transformed second camera calibration template matrix.

3. The method for splicing a laser scanning calibration template for a horizontal motion platform according to claim 1, characterized in that: The process of step (7) is as follows: The second camera calibration template is rotated 180 degrees relative to the Z axis of the second camera calibration template coordinate system to obtain a transformed second camera calibration template matrix.

4. The method for splicing a laser scanning calibration template for a horizontal motion platform according to any one of claims 1 to 3, characterized in that: The first camera and the first laser form a first calibration device, and the second camera and the second laser form a second calibration device.

5. The method for splicing templates for laser scanning calibration of a horizontal motion platform according to any one of claims 1 to 3, characterized in that: The first camera and the second laser form a first calibration device, and the second camera and the first laser form a second calibration device.