Multi-camera external parameter calibration device and method based on laser line scanning

Through laser line scanning technology and stereo calibration components, the problems of large camera external parameter calibration errors and complex operations are solved, efficient and accurate camera external parameter calibration is achieved, and the efficiency and accuracy of calibration are improved.

CN118710733APending Publication Date: 2024-09-27CHINA CONSTR THIRD ENG BUREAU GRP CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410910252.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing camera external parameter calibration methods have large errors and complex operations, cannot accurately obtain the world coordinates of the calibration point, and require multiple multi-directional photography, resulting in pixel jitter errors and repeated positioning errors.

Method used

Using a multi-camera external parameter calibration device and method based on laser line scanning, the point cloud data is obtained through the mobile scanning component, the camera shooting component obtains image data, and the stereo calibration component provides calibration blocks, using line lasers and magnets to improve calibration accuracy and achieve camera external parameters. One-time calibration of parameters.

Benefits of technology

It achieves high-precision and fast camera external parameter calibration, reduces staff workload, improves calibration efficiency and accuracy, and avoids pixel jitter errors and repeated positioning errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710733A
    Figure CN118710733A
Patent Text Reader

Abstract

The invention discloses a multi-camera external parameter calibration device based on laser line scanning, and relates to the technical field of camera calibration, the multi-camera external parameter calibration device is characterized in that at least two cameras are arranged on a support frame, a mobile scanning assembly comprises a mobile frame, the mobile frame slides along the length direction of a mold table, and the mobile frame is arranged along the width direction of the mold table; a linear laser is arranged on the movable frame, the linear laser slides in the length direction of the movable frame, and due to the sliding arrangement of the linear laser and the movable frame, the linear laser obtains point cloud data of the whole mold table and all the calibration blocks at a time; compared with the prior art that one camera is arranged for multiple times of multidirectional photographing, the multiple cameras can be calibrated at the same time at a time, pixel run-out errors and repeated positioning errors caused by multiple times of photographing are avoided, and the calibration efficiency of the external parameters of the cameras is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of camera calibration, and in particular to a multi-camera extrinsic parameter calibration device and method based on laser line scanning. Background Art

[0002] In the image measurement process and machine vision applications, in order to determine the relationship between the three-dimensional geometric position of a point on the surface of a spatial object and its corresponding point in the image, a geometric model of camera imaging must be established. These geometric model parameters are camera parameters. Under most conditions, these parameters (intrinsic parameters, external parameters, distortion parameters) must be obtained through experiments and calculations. The process of solving the parameters is called camera calibration. Whether in image measurement or machine vision applications, the calibration of camera parameters is a very critical link. The accuracy of the calibration results and the stability of the algorithm directly affect the accuracy of the results produced by the camera. Therefore, doing a good job of camera calibration is a prerequisite for doing a good job of subsequent work.

[0003] The existing direct method mainly calibrates the camera extrinsic parameters through the four-point calibration method, placing four calibration points within the field of view of a single camera image, and obtaining the pixel coordinates and world coordinates of the four calibration points after taking pictures. If the detection range is relatively large, it is necessary to move the camera multiple times and in multiple ranges to take pictures, which is cumbersome and complicated. In the process of obtaining the world coordinates of the calibration points, if the existing technology uses a tape measure for direct measurement, the error is large and the world coordinates of the calibration points cannot be accurately obtained; the existing indirect approach can use the previous CNC marking process to use a CNC marking machine to draw a specific pattern on the mold table, and then move the mold table to the detection station. After positioning, use the camera to take pictures of the corner points of the specific pattern, thereby obtaining the pixel coordinates and world coordinates of the four corner points. However, this approach involves different stations, so there are repeated positioning errors and marking errors of the CNC marking machine itself. Summary of the invention

[0004] In order to overcome the defects of large error and complex operation in the above-mentioned prior art for camera extrinsic calibration, the present invention proposes a multi-camera extrinsic calibration device and method based on laser line scanning.

[0005] To achieve the above object, the present invention adopts the following technical solutions, including:

[0006] A multi-camera extrinsic parameter calibration device based on laser line scanning, comprising: a mobile scanning component, a camera shooting component and a stereo calibration component; the mobile scanning component is used to scan the entire mold platform to obtain point cloud data, the camera shooting component is used to shoot the mold platform to obtain image data, and the stereo calibration module is used to mark the position;

[0007] The camera shooting assembly comprises a support frame arranged on the mold platform, the support frame is provided with a camera, the cameras are provided with at least two cameras, the shooting range of the cameras on the mold platform is rectangular, and the shooting ranges of the two cameras on the mold platform have overlapping parts;

[0008] The stereo calibration component includes calibration blocks, which are arranged at the four corners of the rectangular shooting range of each camera;

[0009] The mobile scanning assembly includes a mobile frame, which slides along the length direction of the mold platform and is arranged along the width direction of the mold platform. A linear laser is arranged on the mobile frame, and the linear laser slides along the length direction of the mobile frame, that is, the width direction of the mold platform.

[0010] Preferably, one side of the calibration block is provided with mutually perpendicular and equally divided scale lines, the intersection of which is the scale zero point, and a magnet is provided at the center position of the other side of the calibration block, and the magnet is attracted to the mold platform.

[0011] The present invention also proposes a multi-camera extrinsic parameter calibration method based on laser line scanning, which is implemented by using the multi-camera extrinsic parameter calibration device. The calibration method includes:

[0012] S1: Use a camera to take a picture of the mold stage, obtain image data with calibration blocks, and obtain the pixel coordinates of each calibration block through the image data;

[0013] S2: Use a linear laser to move and scan the mold stage to obtain point cloud data with calibration blocks, and obtain the world coordinates of each calibration block through the point cloud data;

[0014] S3: Compare the pixel coordinates of each calibration block with the world coordinates to obtain the calibration result of the camera extrinsic parameters.

[0015] Preferably, in step S1, all cameras are used to take pictures simultaneously to obtain image data of corresponding positions, and the obtained image data is input into drawing software to obtain the pixel coordinates of each calibration block in the image.

[0016] Preferably, in step S2, the lower left corner point of the mold stage is first set as the coordinate origin of the world coordinate system, and then the mold stage is scanned using a linear laser to obtain point cloud data with calibration blocks, and finally the point cloud data is input into the point cloud processing software to obtain the world coordinates of each calibration block.

[0017] Preferably, in step S3, the pixel coordinates of each calibration block are compared with the world coordinates to obtain the calibration result of the camera extrinsic parameters, including:

[0018] S31: Mark the pixel coordinates of the calibration block as m=[uv] T, world coordinates are marked as M = [XYZ] T ;

[0019] S32: Based on the pixel coordinates of the calibration block and the world coordinates, obtain the augmented pixel coordinates of the calibration block Augmented World Coordinates Among them, augmenting pixel coordinates is to add element 1 at the end of pixel coordinates, and augmenting world coordinates is to add element 1 at the end of world coordinates;

[0020] S33: Based on the augmented pixel coordinates and augmented world coordinates of the calibration block, the simplest relationship between the pixel coordinates and the world coordinates of the calibration block is obtained:

[0021]

[0022] Among them, s is the scale factor, H is the homography matrix, and the homography matrix is ​​a transformation matrix between the coordinates of the image points of two images calculated using certain control points;

[0023] S34: Based on the pixel coordinates and world coordinates of the calibration block, obtain the homography matrix H;

[0024] S35: Obtain the camera internal parameter A, based on the formula H=A[r 1 r 2 t] to get the camera external parameters [r 1 r 2 t].

[0025] Preferably, in step S33, obtaining the simplest relationship between the pixel coordinates of the calibration block and the world coordinates includes:

[0026] S331: Set the relationship between the augmented pixel coordinates of the calibration block and the augmented world coordinates to Right now Among them, A is the camera internal parameter, [R t] is the camera external parameter, [R t] includes [r 1 r 2 r 3 t];

[0027] S332: Set the Z coordinate of the plane to be calibrated in the world coordinate system to 0, and simplify the formula in S331:

[0028] S333: A[r 1 r 2 t] Marked with the homography matrix H, the simplest relationship between the pixel coordinates and the world coordinates of the calibration block is obtained

[0029] Preferably, in step S34, obtaining the homography matrix H based on the pixel coordinates and world coordinates of the calibration block includes:

[0030] S341: Substitute the pixel coordinates and world coordinates of the calibration block into the simplest relationship between the pixel coordinates and world coordinates of the calibration block in step S333 to obtain the equation group:

[0031]

[0032] Wherein, i is the i-th equation, i=1,2,...N, N is the number of equation groups, i.e. the number of calibration blocks, N is greater than or equal to 4, ui,vi,Xi,Yi correspond to the pixel coordinates and world coordinates of the i-th calibration block;

[0033] S342: Determine the number of equation groups. When the number of equation groups is 4, solve the equation groups to obtain the homography matrix H. When the number of equation groups is greater than 4, use least squares fitting to obtain the homography matrix H.

[0034] The advantages of the present invention are:

[0035] (1) The present invention uses a linear laser to obtain the point cloud data of the entire mold platform and all calibration blocks at one time, so that multiple cameras can be calibrated at one time later, which is convenient and fast to operate with small errors.

[0036] (2) The present invention sets multiple cameras above the mold stage to capture images of the mold stage. Compared with the previous method of setting one camera to take multiple multi-directional photos, the present invention can calibrate multiple cameras at the same time, avoiding pixel jump errors and repeated positioning errors caused by multiple photos.

[0037] (3) The multi-camera extrinsic parameter calibration method of the present invention can realize image acquisition of multiple cameras at one time and realize extrinsic parameter calibration of multiple cameras at one time, which reduces the workload of staff and improves the efficiency of camera extrinsic parameter calibration.

[0038] (4) The present invention sets calibration blocks at the four corners of the shooting range of each camera on the mold platform, and the shooting ranges of the two cameras on the mold platform have overlapping parts, which provides convenience for later verification of the calibration results.

[0039] (5) One side of the calibration block of the present invention is provided with mutually perpendicular and equally divided scale lines, and the intersection point is the scale zero point. A magnet is provided at the center position of the other side of the calibration block. The magnet attracts the mold platform, so that the calibration block is not easy to slide when placed on the mold platform. The scale lines and the magnet improve the accuracy of camera calibration.

[0040] (6) The present invention utilizes the pixel coordinates of the calibration block and the world coordinates to perform extrinsic calibration on multiple cameras, thereby improving the speed of camera extrinsic calibration. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a schematic diagram of a multi-camera extrinsic parameter calibration device based on laser line scanning in the present invention;

[0042] Figure 2 This is a schematic diagram of the calibration block and camera shooting range of the present invention. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] Example 1

[0045] like Figure 1-2 As shown, Embodiment 1 of the present invention proposes a multi-camera extrinsic calibration device based on laser line scanning, comprising: a mobile scanning component, a camera shooting component and a stereo calibration component. The mobile scanning component is used to scan the entire mold platform to obtain point cloud data, the camera shooting component is used to shoot the mold platform to obtain image data, and the stereo calibration module is used to identify the position.

[0046] The camera shooting assembly includes a support frame 2 arranged on a mold platform 1, on which a camera 3 is arranged. There are at least two cameras 3, and the shooting range of the camera 3 on the mold platform is rectangular. The shooting ranges of the two cameras on the mold platform have overlapping parts. According to the shooting range of the camera, the number of the support frame is at least one.

[0047] The stereo calibration component includes a calibration block 4, which is arranged at the four corners of the rectangular shooting range of each camera 3. One side of the calibration block is provided with mutually perpendicular and equally divided scale lines, and the intersection point is the scale zero point. A magnet is arranged at the center position of the other side of the calibration block 4. The magnet is attracted to the mold stage 1, so that the calibration block 4 placed on the mold stage 1 is not easy to slide, thereby improving the accuracy of camera calibration.

[0048] Six calibration blocks can be observed within the shooting range of each camera, four of which are used to calibrate the camera, and the other two are used to verify the calibration results later.

[0049] The mobile scanning assembly includes a mobile frame 6, which slides along the length direction of the mold platform and is arranged along the width direction of the mold platform. A linear laser 7 is arranged on the mobile frame 6, and the linear laser 7 slides along the length direction of the mobile frame 6, that is, the width direction of the mold platform 1. Due to the sliding arrangement of the linear laser 7 and the mobile frame 6, the linear laser 7 can capture the point cloud data of the entire mold platform containing the calibration block 4.

[0050] In this embodiment, two support frames 2 are arranged on the mold platform, and two cameras 3 are arranged on each support frame 2. Therefore, a total of four cameras 3 and twelve calibration blocks 4 are arranged on the mold platform at the same time. Compared with the previous method of setting one camera for multiple multi-directional photographs and placing four calibration blocks each time, the embodiment of the present invention can calibrate four cameras at one time, thereby avoiding pixel jump errors and repeated positioning errors caused by multiple photographs, and improving the efficiency of camera calibration; the four cameras are named lower left, upper left, upper right, and lower right, respectively, and the calibration blocks within the shooting range of the lower left camera are numbered as calibration block 1, calibration block 2, calibration block 3, calibration block 7, calibration block 6, and calibration block 5, and the calibration blocks within the shooting range of the upper left camera, the upper right camera, and the lower right camera are numbered similarly, such as Figure 2 shown.

[0051] Example 2

[0052] Based on the above-mentioned multi-camera extrinsic parameter calibration device based on laser line scanning, Embodiment 2 of the present invention provides a multi-camera extrinsic parameter calibration method based on laser line scanning, comprising:

[0053] S1: Use a camera to take a picture of the mold stage, obtain image data with calibration blocks, and obtain the pixel coordinates of each calibration block through the image data;

[0054] S2: Use a linear laser to move and scan the mold stage to obtain point cloud data with calibration blocks, and obtain the world coordinates of each calibration block through the point cloud data;

[0055] S3: Compare the pixel coordinates of each calibration block with the world coordinates to obtain the calibration result of the camera extrinsic parameters.

[0056] In step S1 of this embodiment, four cameras are used to take pictures simultaneously to obtain image data of corresponding positions, and the obtained image data is input into drawing software to obtain the pixel coordinates of the scale zero point of each calibration block in the image;

[0057] In step S2 of this embodiment, firstly, the lower left corner point of the mold stage is set as the coordinate origin of the world coordinate system, and the mold stage is scanned by a linear laser to obtain point cloud data with calibration blocks, and the point cloud data is input into the point cloud processing software to obtain the world coordinates of the scale zero point of each calibration block;

[0058] In step S3, the pixel coordinates of each calibration block are compared with the world coordinates to obtain the calibration results of the camera extrinsic parameters, including:

[0059] S31: Marking the pixel coordinates and world coordinates of the calibration block;

[0060] The pixel coordinates of the calibration block are represented as: m = [uv] T ; (Formula 2.1)

[0061] The world coordinates of the calibration block are represented as: M = [XYZ] T ; (Formula 2.2)

[0062] S32: Based on the pixel coordinates and world coordinates of the calibration block, obtain the augmented pixel coordinates m~ and augmented world coordinates of the calibration block

[0063]

[0064] S33: Based on the augmented pixel coordinates and the augmented world coordinates of the calibration block, the simplest relationship between the pixel coordinates and the world coordinates of the calibration block is obtained:

[0065]

[0066] Where s is the scale factor, H is the homography matrix, and the homography matrix is ​​a transformation matrix between the coordinates of the image points of two images calculated using certain control points. The image point coordinates in the present invention include pixel coordinates and world coordinates.

[0067] In step S33, first, without considering the distortion factor, the camera is modeled as pinhole imaging, and the relationship between the augmented pixel coordinates and the augmented world coordinates of the calibration block is: Right now

[0068]

[0069] Among them, s is the scale factor, [R t] is the external parameter, A is the camera internal parameter, [R t] includes [r 1 r 2 r 3 t].

[0070] For different pictures, the camera intrinsic parameters remain fixed because the camera properties themselves remain unchanged.

[0071] Without loss of generality, the Z coordinate of the plane to be calibrated in the world coordinate system is set to 0, and the formula in (Equation 2.5) is simplified:

[0072]

[0073] A[r1 r 2 t] is marked with the homography matrix H, then the simplest relationship between the pixel coordinates and world coordinates of the calibration block is:

[0074]

[0075] S34: Obtain the unit matrix H based on the pixel coordinates and world coordinates of the calibration block.

[0076] S341: Substitute the pixel coordinates and world coordinates of the calibration block into the equation group:

[0077]

[0078] Wherein, i is the i-th equation, i=1,2,...N, N is the number of equation groups, i.e. the number of calibration blocks, N is greater than or equal to 4, ui,vi,Xi,Yi correspond to the pixel coordinates and world coordinates of the i-th calibration block;

[0079] S342: Determine the number of equation groups. When the number of equation groups is 4, solve the equation groups to obtain the homography matrix H. When the number of equation groups is greater than 4, use least squares fitting to obtain the homography matrix H, where least squares fitting is a digital optimization technique that finds the best function match for data by minimizing the sum of squares of errors.

[0080] S35: Obtain the camera internal parameter A, and use the formula H=A[r 1 r 2 t] to get the camera external parameters [r 1 r 2 t].

[0081] Of course, it will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, but also includes the same or similar structures that can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be regarded as exemplary and non-limiting in all respects, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present invention. Any reference numeral in a claim should not be regarded as limiting the claim to which it relates.

[0082] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

[0083] The techniques, shapes, and structural parts not described in detail in the present invention are all well-known techniques.

Claims

1. A multi-camera extrinsic calibration device based on laser line scanning, characterized in that: include: Mobile scanning component, camera shooting component and stereo calibration component; the mobile scanning component is used to scan the entire mold platform to obtain point cloud data, the camera shooting component is used to shoot the mold platform to obtain image data, and the stereo calibration module is used to mark the position; The camera shooting assembly comprises a support frame (2) arranged on a mold platform (1), a camera (3) being arranged on the support frame (2), at least two cameras (3) being arranged, a shooting range of the camera (3) on the mold platform being rectangular, and the shooting ranges of the two cameras on the mold platform having overlapping parts; The stereo calibration component comprises a calibration block (4), and the calibration block (4) is arranged at the four corners of the rectangular shooting range of each camera (3); The mobile scanning assembly comprises a mobile frame (6), the mobile frame (6) slides along the length direction of the mold platform, and the mobile frame (6) is arranged along the width direction of the mold platform, and a linear laser (7) is arranged on the mobile frame (6), and the linear laser (7) slides along the length direction of the mobile frame (6), that is, the width direction of the mold platform (1).

2. The multi-camera extrinsic calibration device based on laser line scanning according to claim 1, characterized in that: One side of the calibration block (4) is provided with mutually perpendicular and equally divided scale lines, the intersection of which is the scale zero point, and a magnet is provided at the center of the other side of the calibration block (4), and the magnet attracts the mold platform (1).

3. A multi-camera extrinsic calibration method based on laser line scanning, characterized in that: The calibration method is implemented by using the device according to any one of claims 1 to 2, and includes: S1: Use a camera to take a picture of the mold stage, obtain image data with calibration blocks, and obtain the pixel coordinates of each calibration block through the image data; S2: Use a linear laser to move and scan the mold stage to obtain point cloud data with calibration blocks, and obtain the world coordinates of each calibration block through the point cloud data; S3: Compare the pixel coordinates of each calibration block with the world coordinates to obtain the calibration result of the camera extrinsic parameters.

4. The multi-camera extrinsic calibration method based on laser line scanning as claimed in claim 3, characterized in that: In step S1, all cameras take pictures at the same time to obtain image data of corresponding positions, and the obtained image data is input into the drawing software to obtain the pixel coordinates of each calibration block in the image.

5. The multi-camera extrinsic calibration method based on laser line scanning as claimed in claim 3, characterized in that: In step S2, firstly, the lower left corner point of the mold stage is set as the coordinate origin of the world coordinate system, and then the mold stage is scanned by a linear laser to obtain point cloud data with calibration blocks, and finally the point cloud data is input into the point cloud processing software to obtain the world coordinates of each calibration block.

6. The multi-camera extrinsic calibration method based on laser line scanning as claimed in claim 3, characterized in that: In step S3, the pixel coordinates of each calibration block are compared with the world coordinates to obtain the calibration results of the camera extrinsic parameters, including: S31: Mark the pixel coordinates of the calibration block as m=[uv] T , world coordinates are marked as M = [XYZ] T ; S32: Based on the pixel coordinates of the calibration block and the world coordinates, obtain the augmented pixel coordinates of the calibration block Augmented World Coordinates Among them, augmenting pixel coordinates is to add element 1 at the end of pixel coordinates, and augmenting world coordinates is to add element 1 at the end of world coordinates; S33: Based on the augmented pixel coordinates and augmented world coordinates of the calibration block, the simplest relationship between the pixel coordinates and the world coordinates of the calibration block is obtained: Among them, s is the scale factor, H is the homography matrix, and the homography matrix is ​​a transformation matrix between the coordinates of the image points of two images calculated using certain control points; S34: Based on the pixel coordinates and world coordinates of the calibration block, obtain the homography matrix H; S35: Obtain the camera intrinsic parameter A, and obtain the camera extrinsic parameter [r1r2t] based on the formula H=A[r1r2t].

7. The multi-camera extrinsic calibration method based on laser line scanning according to claim 6, characterized in that: In step S33, the simplest relationship between the pixel coordinates and the world coordinates of the calibration block is obtained, including: S331: Set the relationship between the augmented pixel coordinates of the calibration block and the augmented world coordinates to sm=A[R t] M ,Right now Among them, A is the camera internal parameter, [R t] is the camera external parameter, and [R t] includes [r1r2r3t]; S332: Set the Z coordinate of the plane to be calibrated in the world coordinate system to 0, and simplify the formula in S331: S333: Mark A[r1r2t] with the homography matrix H to obtain the simplest relationship between the pixel coordinates of the calibration block and the world coordinates 8. The multi-camera extrinsic calibration method based on laser line scanning according to claim 6, characterized in that: In step S34, obtaining the homography matrix H based on the pixel coordinates and world coordinates of the calibration block includes: S341: Substitute the pixel coordinates and world coordinates of the calibration block into the simplest relationship between the pixel coordinates and world coordinates of the calibration block in step S333 to obtain the equation group: Wherein, i is the i-th equation, i=1,2,...N, N is the number of equation groups, i.e. the number of calibration blocks, N is greater than or equal to 4, ui,vi,Xi,Yi correspond to the pixel coordinates and world coordinates of the i-th calibration block; S342: Determine the number of equation groups. When the number of equation groups is 4, solve the equation groups to obtain the homography matrix H. When the number of equation groups is greater than 4, use least squares fitting to obtain the homography matrix H.

Citation Information

Patent Citations

  • Binocular cooperative laser based 3D scanning device and method

    CN107505324A

  • Multi-camera calibration method and device, terminal equipment and readable storage medium

    CN114004901A

  • Magnetic nail identifying and positioning device, coordinate robot and magnetic nail identifying and positioning method

    CN114509023A

  • Pipeline inner wall three-dimensional reconstruction method and system based on annular laser triangulation

    CN116310127A

  • Surface shape measurement device and surface shape measurement method

    WO2023182095A1