Rotatable dual calibration plate binocular field of view calibration method, system, device and medium

The rotatable dual calibration plate method with adaptive weighted median filtering and fixed spatial transformation constraints solves the problems of equipment layout and image noise in binocular vision calibration under non-overlapping or large fields of view, and achieves high-precision camera parameter solving and stable calibration results.

CN122966745BActive Publication Date: 2026-11-27EAST CHINA JIAOTONG UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611451998.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-18
Publication Date
2026-11-27
Estimated Expiration
2046-09-18

AI Technical Summary

Technical Problem

Under non-overlapping or large field-of-view conditions, traditional binocular vision calibration methods suffer from problems such as complex equipment layout, poor operational flexibility, insufficient adaptability of calibration board posture, and the susceptibility of calibration images to ambient light and noise, resulting in low accuracy of camera parameter solving.

Method used

A rotatable dual calibration plate is used to process images through adaptive weighted median filtering. By combining spatial distance and gray-level similarity weights, checkerboard corner points are detected and sub-pixel localization is performed. Fixed spatial transformation constraints between the coordinate systems of the dual calibration plate are established, and the camera intrinsic and extrinsic parameters are solved jointly.

Benefits of technology

It improves the quality of calibration images, reduces sub-pixel corner positioning errors, enhances the calibration board's adaptability to non-overlapping and large fields of view, improves the stability and robustness of camera extrinsic parameter solving, and enhances calibration efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122966745B_ABST
    Figure CN122966745B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of binocular vision calibration, and particularly relates to a rotatable double calibration board binocular field of view calibration method, system, device and medium; the method comprises: acquiring binocular synchronous calibration images of the rotatable double calibration board under multiple different postures; performing adaptive weighted median filtering processing on the binocular synchronous calibration images; performing chessboard corner detection and sub-pixel positioning on the calibration images after adaptive weighted median filtering processing; according to the image feature point coordinates and the known geometric dimensions of the first sub-calibration board and the second sub-calibration board, the pose parameters of the first camera and the second camera are respectively solved; based on the pose parameters between the first sub-calibration board and the second sub-calibration board in the locked state, the fixed space transformation constraint between the double calibration board coordinate systems is established, and the external parameter solving model between the first camera and the second camera is constructed; and the binocular camera internal and external parameter calibration result under the condition of non-overlapping field of view or large field of view is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of binocular vision calibration technology, and in particular to a method, system, device and medium for binocular field of view calibration with a rotatable dual calibration plate. Background Technology

[0002] Binocular vision measurement technology can acquire two-dimensional images of a target using two cameras and combine these images with the camera's intrinsic and extrinsic parameters and geometric constraints to obtain three-dimensional spatial information. It offers advantages such as non-contact operation, rapid imaging, and comprehensive acquisition of three-dimensional information. The accuracy of the binocular camera's field-of-view calibration directly affects the reliability of subsequent three-dimensional measurements, point cloud stitching, and spatial positioning results.

[0003] In practical engineering applications, limitations imposed by the size of the object being measured, installation space, sensing range, and equipment layout may result in insufficient or even complete non-overlapping fields of view between two cameras. Under non-overlapping field-of-view conditions, traditional calibration methods based on common-view feature points cannot directly obtain the shared observation features between the two cameras, significantly increasing the difficulty of solving for camera extrinsic parameters. Existing methods typically employ methods such as mirror assistance, auxiliary camera assistance, fixed targets, or fixed camera constraints to obtain indirect pose relationships. However, these methods often suffer from problems such as complex equipment layout, poor operational flexibility, and insufficient adaptability to the orientation of the calibration board.

[0004] Furthermore, during binocular calibration, the calibration image is susceptible to the effects of ambient light, sensor noise, local reflections, image blurring, and changes in the calibration board's pose. Especially in the checkerboard calibration board's edge region, noise can cause corner point positioning errors, thus affecting the accuracy of solving camera intrinsic parameters, distortion parameters, and binocular extrinsic parameters. While traditional Gaussian filtering can suppress some random noise, it easily blurs the checkerboard edges; bilateral filtering can achieve a certain degree of edge preservation, but parameter selection is sensitive and computational complexity is high, making it difficult to simultaneously achieve noise suppression, corner point detail preservation, and calibration efficiency in complex calibration scenarios.

[0005] Therefore, how to improve the quality of calibration images in complex environments and establish stable spatial constraint relationships through calibration devices with stronger structural adaptability are urgent technical problems to be solved in non-overlapping field of view or large field of view dual-target calibration. Summary of the Invention

[0006] This disclosure provides a method, system, device, and medium for binocular field-of-view calibration with a rotatable dual calibration plate to address the problems existing in the prior art. The technical solution is as follows: In a first aspect, embodiments of this disclosure provide a rotatable dual-calibration plate binocular field-of-view calibration method, comprising the following steps: S10: Acquire binocular synchronous calibration images of the rotatable dual calibration board under multiple different poses; wherein the rotatable dual calibration board includes a first sub-calibration board and a second sub-calibration board, the first sub-calibration board and the second sub-calibration board are adjusted to a target included angle and locked and fixed, and the binocular synchronous calibration images are obtained by synchronously shooting the first sub-calibration board and the second sub-calibration board with a first camera and a second camera respectively; S20: Perform adaptive weighted median filtering on the binocular synchronous calibration images: construct an initial filtering window centered on the pixel to be processed, dynamically adjust the window size according to the grayscale distribution of pixels in the window, and calculate a weighted median by combining spatial distance weights and grayscale similarity weights, to obtain calibration images after adaptive weighted median filtering; S30: Perform checkerboard corner detection and sub-pixel localization on the calibration images after adaptive weighted median filtering, to obtain image feature point coordinates of the first sub-calibration board and the second sub-calibration board corresponding to the first camera and the second camera respectively; S40: According to the image feature point coordinates and known geometric dimensions of the first sub-calibration board and the second sub-calibration board, solve for the intrinsic parameters and distortion parameters of the first camera and the second camera, as well as the pose parameters of the first sub-calibration board and the second sub-calibration board relative to the first camera and the second camera under each pose respectively; S50: Based on the pose parameters between the first sub-calibration board and the second sub-calibration board in the locked state, establish a fixed spatial transformation constraint between the dual calibration board coordinate systems, and construct an extrinsic parameter solving model between the first camera and the second camera; S60: Use the pose parameters under multiple overall spatial poses and the fixed spatial transformation constraint to jointly solve and optimize the extrinsic parameters between the first camera and the second camera, to obtain binocular camera intrinsic and extrinsic parameter calibration results under non-overlapping field of view or large field of view conditions.

[0007] Optionally, the adjustment range of the relative included angle between the first sub-calibration board and the second sub-calibration board is 90° to 150°.

[0008] Optionally, the adaptive weighted median filtering includes: S201: Construct a filtering window of initial size centered on the pixel to be filtered, and calculate the minimum grayscale value Imin, maximum grayscale value Imax, and median grayscale value Imed of the pixel set in the filtering window; S202: Perform first-level judgment: if Imin < Imed < Imax, the current window meets the filtering condition; otherwise, increase the size of the filtering window, and repeat the calculation and judgment until the filtering condition is met or the size of the filtering window reaches a preset maximum value; S203: Perform a second-level judgment: if Imin < Iij < Imax, determine that the window center pixel Iij is a non-noise point and retain its original grayscale value; otherwise, determine that the window center pixel is a noise point, and replace the grayscale value of the window center pixel with the weighted median of pixels within the window; wherein Iij is the grayscale value of the window center pixel.

[0009] Optionally, the calculation method of the weighted median is: For each pixel in the filtering window, calculate its spatial distance weight and grayscale similarity weight with respect to the window center pixel respectively, and multiply the two weights to obtain the comprehensive weight of the pixel; Sort the pixels in the filtering window according to grayscale values, accumulate the comprehensive weights of the corresponding pixels, and take the grayscale value corresponding to the point where the cumulative weight reaches half of the total weight as the weighted median.

[0010] Optionally, the spatial distance weight decreases as the spatial distance between the pixel and the window center increases; the grayscale similarity weight decreases as the grayscale difference between the pixel and the center pixel increases.

[0011] Optionally, the chessboard corner detection and sub-pixel localization include: Extract initial pixel coordinates of chessboard corners from the calibration image processed by the adaptive weighted median filtering; wherein the calibration image processed by the adaptive weighted median filtering includes a first camera calibration image and a second camera calibration image; Perform sub-pixel accuracy optimization on the initial corner coordinates based on grayscale gradient information to obtain sub-pixel level image feature point coordinates; Establish a one-to-one correspondence between the image feature point coordinates and the world coordinates in the coordinate systems of the first sub-calibration board and the second sub-calibration board.

[0012] Optionally, establishing a fixed spatial transformation constraint between the dual calibration board coordinate systems and constructing an external parameter solving model between the first camera and the second camera includes: Taking the first camera coordinate system as a reference, derive the rotation matrix and translation vector from the first camera coordinate system to the second camera coordinate system, i.e., the binocular camera external parameters, through the pose matrix of the first sub-calibration board relative to the first camera, the fixed spatial transformation matrix between the dual calibration boards, and the pose matrix of the second sub-calibration board relative to the second camera.

[0013] In a second aspect, a binocular field of view calibration system with a rotatable dual calibration board is further provided, including: The image acquisition module acquires binocular synchronous calibration images of the rotatable dual calibration plate in multiple different postures; wherein, the rotatable dual calibration plate includes a first sub-calibration plate and a second sub-calibration plate, the first sub-calibration plate and the second sub-calibration plate are adjusted to the target angle and locked in place, and the binocular synchronous calibration images are obtained by the first camera and the second camera simultaneously capturing images of the first sub-calibration plate and the second calibration plate respectively; The filtering module performs adaptive weighted median filtering on the binocular synchronous calibration image: an initial filtering window is constructed with the pixel to be processed as the center, the window size is dynamically adjusted according to the gray distribution of the pixels in the window, and the weighted median is calculated by combining the spatial distance weight and the gray similarity weight to obtain the calibration image after adaptive weighted median filtering. The feature extraction module performs checkerboard corner detection and sub-pixel localization on the calibration image after adaptive weighted median filtering to obtain the image feature point coordinates of the first sub-calibration board and the second sub-calibration board corresponding to the first camera and the second camera, respectively. The parameter solving module solves the intrinsic parameters, distortion parameters, and pose parameters of the first and second sub-calibration plates relative to the first and second cameras respectively, based on the coordinates of the image feature points and the known geometric dimensions of the first and second sub-calibration plates. The extrinsic parameter solution construction module establishes fixed spatial transformation constraints between the coordinate systems of the two calibration plates based on the pose parameters between the first and second sub-calibration plates in the locked state, and constructs the extrinsic parameter solution model between the first and second cameras. The parameter calibration module uses pose parameters under multiple overall spatial attitudes and the fixed spatial transformation constraints to jointly solve and optimize the extrinsic parameters between the first camera and the second camera, and obtains the calibration results of the binocular camera's extrinsic and extrinsic parameters under non-overlapping field of view or large field of view conditions.

[0014] Thirdly, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described rotatable dual calibration plate binocular field-of-view calibration method.

[0015] Fourthly, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the above-described rotatable dual calibration plate binocular field-of-view calibration method to generate the bit stream.

[0016] The advantages or beneficial effects of the above technical solutions include at least the following: 1) By preprocessing the calibration image through adaptive weighted median filtering, the black and white boundaries of the checkerboard pattern and corner details can be preserved while removing salt and pepper noise and Gaussian mixture noise, thus reducing the sub-pixel positioning error of corner points.

[0017] 2) The rotatable dual calibration plates are rigidly connected and the included angle is adjustable, which can improve the calibration plate's adaptability to non-overlapping fields of view, large fields of view and camera arrangement conditions in confined spaces, and avoid the problem of insufficient attitude of traditional single fixed calibration plates.

[0018] 3) By establishing fixed spatial transformation constraints between the coordinate systems of the dual calibration plates and combining them with the camera pose parameters under multiple preset attitudes for joint solution, the stability and robustness of binocular extrinsic parameter solution can be improved.

[0019] 4) By evaluating the reprojection error and rotation error under different rotation angles, a basis can be provided for the selection of calibration posture on site, thereby improving the calibration efficiency and reliability in practical engineering applications.

[0020] The above overview is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of this disclosure will become readily apparent from the accompanying drawings and the following detailed description. Attached Figure Description

[0021] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments disclosed in this disclosure and should not be construed as limiting the scope of this disclosure.

[0022] Figure 1 A flowchart of the rotatable dual calibration plate binocular field-of-view calibration method according to an embodiment of this disclosure is shown; Figure 2 A schematic diagram of a rotatable dual calibration plate in an embodiment of this disclosure is shown; Figure 3 A diagram showing the specifications of a chessboard according to an embodiment of this disclosure is displayed; Figure 4 The image shown is the calibration image after filtering in this embodiment of the present disclosure; Figure 5 The bar chart showing the bi-target calibration effect without filtering in this embodiment of the present disclosure is displayed. Figure 6 The bar chart showing the dual-target positioning effect after filtering in this embodiment of the present disclosure is displayed. Figure 7 The following diagrams show the actual effect of the rotatable dual calibration plate at different included angles in the embodiments of this disclosure; Figure 8 A block diagram of a rotatable dual calibration plate binocular field-of-view calibration system according to an embodiment of this disclosure is shown. Detailed Implementation

[0023] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the spirit or scope of this disclosure. Therefore, the drawings and description are to be considered exemplary in nature and not restrictive.

[0024] To better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some embodiments, methods, means, elements, and circuits well known to those skilled in the art are not described in detail in order to highlight the spirit of this disclosure.

[0025] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some, but not all, of the embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the protection scope of this disclosure.

[0026] This disclosure provides a rotatable dual-calibration plate binocular field-of-view calibration method, applicable to a binocular vision system consisting of a first camera and a second camera. The first and second cameras can be industrial cameras, polarization cameras, or other imaging devices capable of acquiring calibration images, such as... Figure 1 As shown, it includes the following steps: S10. Obtain binocular synchronous calibration images of the rotatable dual calibration plate in multiple different postures; wherein, the rotatable dual calibration plate includes a first sub-calibration plate and a second sub-calibration plate, the first sub-calibration plate and the second sub-calibration plate are adjusted to the target angle and locked and fixed, and the binocular synchronous calibration images are obtained by the first camera and the second camera simultaneously shooting the first sub-calibration plate and the second calibration plate respectively. S20. Perform adaptive weighted median filtering on the binocular synchronous calibration image: construct an initial filtering window centered on the pixel to be processed, dynamically adjust the window size according to the pixel grayscale distribution within the window, and calculate the weighted median by combining spatial distance weight and grayscale similarity weight to obtain the calibration image after adaptive weighted median filtering. S30. Perform checkerboard corner detection and sub-pixel localization on the calibration image after adaptive weighted median filtering to obtain the image feature point coordinates of the first sub-calibration board and the second sub-calibration board corresponding to the first camera and the second camera, respectively. S40. Based on the coordinates of the image feature points and the known geometric dimensions of the first sub-calibration plate and the second sub-calibration plate, solve for the intrinsic parameters, distortion parameters, and pose parameters of the first sub-calibration plate and the second sub-calibration plate relative to the first camera and the second camera in each pose. S50. Based on the pose parameters between the first sub-calibration board and the second sub-calibration board in the locked state, establish fixed spatial transformation constraints between the coordinate systems of the two calibration boards, and construct an external parameter solution model between the first camera and the second camera. S60. Using the pose parameters under multiple overall spatial attitudes and the fixed spatial transformation constraints, the extrinsic parameters between the first camera and the second camera are jointly solved and optimized to obtain the calibration results of the binocular camera extrinsic and extrinsic parameters under non-overlapping field of view or large field of view conditions.

[0027] Through the above embodiments, by establishing fixed spatial transformation constraints between the dual calibration plate coordinate systems and jointly solving the camera pose parameters under multiple preset attitudes, the stability and robustness of the binocular extrinsic parameter solution can be improved. The following is an exemplary description of each of the above steps: S10. Obtain binocular synchronous calibration images of the rotatable dual calibration plate in multiple different postures; wherein, as shown in the figure... Figure 2 As shown, the rotatable dual calibration plate includes a first sub-calibration plate and a second sub-calibration plate. The first and second sub-calibration plates are adjusted to a target angle and locked in place. The binocular synchronous calibration image is obtained by the first and second cameras simultaneously capturing images of the first and second sub-calibration plates, respectively. Both the first and second sub-calibration plates are provided with a checkerboard calibration pattern. The two sub-calibration plates are mounted on the same support structure, and their relative angle is adjusted by rotating a connecting piece or an angle adjustment structure. Preferably, the relative angle between the first and second sub-calibration plates is adjusted to adapt to different camera arrangement conditions. Preferably, the relative angle can be set within the range of 90° to 150°, for example, 90°, 110°, 130°, and 150°. The above angles are merely preferred examples and do not constitute a limitation on the scope of protection of this disclosure.

[0028] Because the two sub-calibration boards are rigidly connected, their spatial transformation relationship remains fixed under the same calibration posture, thus serving as a spatial constraint for non-overlapping field-of-view binocular calibration. In each calibration posture, the first and second cameras are controlled to synchronously acquire calibration images, resulting in multiple sets of binocular synchronous calibration images. For each set of images, the first camera acquires the checkerboard image of the first sub-calibration board, and the second camera acquires the checkerboard image of the second sub-calibration board. Through multi-posture acquisition, more comprehensive corner distribution and pose constraint information can be obtained. The number of different postures is no less than three sets, and in each set of postures, the overall position and tilt angle of the dual calibration boards relative to the binocular cameras are different.

[0029] S20: perform adaptive weighted median filtering on the binocular synchronous calibration image: construct an initial filtering window centered on the to-be-processed pixel, dynamically adjust the window size according to the pixel grayscale distribution in the window, and calculate a weighted median by combining spatial distance weights and grayscale similarity weights, so as to obtain a calibration image after adaptive weighted median filtering; In one embodiment, the adaptive weighted median filtering includes: S201: construct a filtering window of an initial size centered on a to-be-filtered pixel point, and calculate a minimum grayscale value Imin, a maximum grayscale value Imax, and a median grayscale value Imed of a pixel set in the filtering window; for any to-be-filtered pixel point in an image , establish a current filtering window centered on the pixel point , where N represents a window size, and represents a maximum window size threshold.

[0030] S202: perform first-level judgment: if Imin<Imed<Imax, the current window satisfies a filtering condition; otherwise, increase the filtering window size, and repeat calculation and judgment until the filtering condition is satisfied or the filtering window size reaches a preset maximum value; for a pixel set in the filtering window , define the following difference values: , where when Z1>0 and Z2<0, it indicates that the median grayscale value of the current filtering window is between the minimum grayscale value and the maximum grayscale value, and the current filtering window satisfies a further judgment condition; otherwise, increase the filtering window size N, and repeat calculation until the judgment condition is satisfied or N exceeds .

[0031] S203: perform second-level judgment: if Imin<Iij<Imax, determine that a window center pixel Iij is a non-noise point, and retain an original grayscale value thereof; otherwise, determine that the window center pixel is a noise point, and replace a grayscale value of the window center pixel with a weighted median of pixels in the window; Iij is a grayscale value of the window center pixel. Then judge the grayscale value Iij of the window center pixel, and define difference values: , when and , it indicates that the window center pixel is not a noise point, and an original pixel value Iij can be directly output; when the condition is not satisfied, determine that the window center pixel is a noise point, and use a median or a weighted median of the pixels in the window as a filtering output value.

[0032] Furthermore, to balance noise suppression and edge preservation, the weighted median can be determined based on the spatial distance weight and gray-level similarity weight of pixels within the window. For a pixel p within the window, its comprehensive weight can be expressed as: w(p) = ws(p).wg(p), In a preferred embodiment, the weighted median is calculated as follows: For each pixel within the filtering window, the spatial distance weight and gray-level similarity weight between the pixel and the center pixel of the window are calculated respectively, and the two weights are multiplied to obtain the comprehensive weight of the pixel. In a preferred embodiment, the spatial distance weight decreases as the spatial distance between the pixel and the center of the window increases; the gray-level similarity weight decreases as the gray-level difference between the pixel and the center pixel increases.

[0033] The pixels within the filtering window are sorted according to their grayscale values, and the combined weights of the corresponding pixels are accumulated. The grayscale value corresponding to the accumulated weights reaching half of the total weights is used as the weighted median.

[0034] Where ws(p) represents the spatial weight determined by the spatial distance between pixel p and the center pixel of the window, and wg(p) represents the gray-level similarity weight determined by the gray-level difference between pixel p and the center pixel of the window. The pixels within the window are weighted and sorted using these combined weights to obtain a weighted median, which is then used to replace the center pixel identified as noise. Through this two-stage judgment and weighted median replacement, this embodiment can suppress noise while preserving the black-and-white boundaries and corner details of the checkerboard pattern.

[0035] S30. Perform checkerboard corner detection and sub-pixel localization on the calibration image after adaptive weighted median filtering to obtain the image feature point coordinates of the first sub-calibration board and the second sub-calibration board corresponding to the first camera and the second camera, respectively. In a preferred embodiment, the checkerboard corner detection and sub-pixel localization include: The initial pixel coordinates of the checkerboard corner points are extracted from the calibration image after adaptive weighted median filtering; wherein, the calibration image after adaptive weighted median filtering includes a first camera calibration image and a second camera calibration image; Sub-pixel precision optimization of the initial corner coordinates is performed based on grayscale gradient information to obtain sub-pixel level image feature point coordinates. Establish a one-to-one correspondence between the coordinates of the image feature points and the world coordinates in the coordinate systems of the first and second sub-calibration plates.

[0036] In this process, adaptive weighted median filtering reduces the interference of random noise and abnormal pixels on corner point localization, thus minimizing sub-pixel localization deviation. For the checkerboard calibration board, the world coordinates of each corner point in the corresponding sub-calibration board coordinate system are known in advance. By establishing the correspondence between the image corner point coordinates and the sub-calibration board world coordinates, input data can be provided for subsequent camera parameter calculation.

[0037] S40. Based on the coordinates of the image feature points and the known geometric dimensions of the first sub-calibration plate and the second sub-calibration plate, solve for the intrinsic parameters, distortion parameters, and pose parameters of the first sub-calibration plate and the second sub-calibration plate relative to the first camera and the second camera in each pose. In one embodiment, a fixed spatial transformation constraint is established between the dual calibration plate coordinate systems, and an extrinsic parameter solution model is constructed between the first camera and the second camera, including: Using the first camera coordinate system as a reference, the rotation matrix and translation vector from the first camera coordinate system to the second camera coordinate system are derived through the pose matrix of the first sub-calibration board relative to the first camera, the fixed space transformation matrix between the two calibration boards, and the pose matrix of the second sub-calibration board relative to the second camera. These are the extrinsic parameters of the stereo camera.

[0038] The projection relationship between the world coordinate system and the image coordinate system can be described using a pinhole camera model, and its expression is as follows: , s is the scaling factor, u and v are the image coordinates, K is the camera intrinsic parameter matrix, R is the rotation matrix, and T is the translation vector. Here are the coordinates of a 3D point in the world coordinate system. The camera intrinsic parameter matrix can be represented as: , in, and These represent the effective focal lengths in the u and v directions, respectively. and The coordinates of the principal point are represented. By establishing the correspondence between the corner image coordinates and the world coordinates of the sub-calibration plates in multiple sets of calibration images, the intrinsic parameters, tangential distortion parameters, radial distortion parameters, and the rotation matrix and translation vector of each sub-calibration plate relative to the corresponding camera coordinate system of the first and second cameras can be solved respectively.

[0039] S50. Based on the pose parameters between the first sub-calibration board and the second sub-calibration board in the locked state, establish fixed spatial transformation constraints between the coordinate systems of the two calibration boards, and construct an external parameter solution model between the first camera and the second camera. like Figure 2As shown, there is a fixed rigid transformation relationship between the first sub-calibration plate and the second sub-calibration plate. The fixed spatial transformation matrix between the coordinate systems of the first and second sub-calibration plates remains unchanged under the same included angle posture because the dual calibration plate structure maintains a rigid connection. This matrix can be used to establish indirect pose constraints between the two cameras under non-overlapping fields of view.

[0040] During the global calibration of the dual-plane target, the world coordinate system can be made to coincide with the coordinate system of the first sub-calibration board, or the coordinate system of the first camera can be used as the global reference coordinate system. For the i-th preset pose, the pose relationship between the first camera and the second camera can be established through the rigid constraints of the dual calibration board.

[0041] S60. Using the pose parameters under multiple overall spatial attitudes and the fixed spatial transformation constraints, the extrinsic parameters between the first camera and the second camera are jointly solved and optimized to obtain the calibration results of the binocular camera extrinsic and extrinsic parameters under non-overlapping field of view or large field of view conditions.

[0042] Specifically, an extrinsic parameter solution model between the first camera and the second camera is constructed based on fixed spatial transformation matrices under multiple preset poses. The extrinsic parameters from the first camera to the second camera may include rotation matrices and translation vectors, or are equivalently represented as homogeneous transformation matrices.

[0043] By jointly optimizing the homogeneous transformation matrices obtained under multiple poses, the fluctuations in extrinsic parameters caused by single pose corner errors, noise, and local occlusion can be reduced, resulting in more stable binocular camera extrinsic parameters. The optimization objective can be to minimize the reprojection error between the left and right cameras, minimize the dispersion of extrinsic parameters across multiple poses, or simultaneously combine reprojection error and rotation error to construct a comprehensive objective function.

[0044] Furthermore, after obtaining the binocular field of view calibration results, the calibration results under different rotation angles can be evaluated using indicators such as reprojection error, feature point matching error, and camera rotation estimation error. Based on the evaluation results, the calibration plate rotation angle suitable for the current scene can be determined.

[0045] To verify the effectiveness of the methods described in the above embodiments, a binocular field-of-view calibration experimental device was constructed. This device includes a first camera, a second camera, a computer, a rotatable dual calibration plate, and a support structure. In the experiment, a three-dimensional target composed of two planar checkerboard calibration plates was used. The checkerboard size could be 12×9, and the square size could be 15mm×15mm. Figure 3 As shown.

[0046] like Figure 4 As shown, after filtering the calibration image, the fine noise and local gray-level unevenness in the image are suppressed, and the black and white boundaries of the checkerboard are clearer, which is beneficial for subsequent corner detection and sub-pixel localization.

[0047] like Figure 5 and Figure 6 As shown, under the same calibration data, the overall average reprojection error of the bi-target calibration without filtering is approximately 0.14 pixels; after applying the adaptive weighted median filtering method of this embodiment, the overall average reprojection error is reduced to approximately 0.08 pixels. This result demonstrates that the filtering process can improve the quality of the calibration image and enhance the stability of corner point localization and parameter solving.

[0048] like Figure 7 As shown, calibration experiments were conducted on the rotatable dual calibration plate at different included angles of 150°, 130°, 110°, and 90°. Experimental results show that the calibration results at different included angles all exhibit small reprojection errors. Specifically, the average reprojection error is approximately 0.0791 pixels at a 150° included angle, approximately 0.0793 pixels at a 130° included angle, approximately 0.0865 pixels at a 110° included angle, and approximately 0.0940 pixels at a 90° included angle. The rotation error at each angle also remains at a low level. These results demonstrate that the method disclosed in this paper possesses good attitude adaptability and calibration robustness within the range of 90° to 150°.

[0049] The experimental data described above are only used to illustrate the effectiveness of the method under specific experimental conditions and are not intended to limit the scope of protection of this disclosure. Those skilled in the art can make corresponding adjustments according to actual needs for other camera models, lens parameters, checkerboard grid specifications, included angle values, or usage environments.

[0050] Secondly, such as Figure 8 As shown, a rotatable dual-calibration-plate binocular field-of-view calibration system 100 is also provided, comprising: Image acquisition module 1 acquires binocular synchronous calibration images of the rotatable dual calibration plate in multiple different postures; wherein, the rotatable dual calibration plate includes a first sub-calibration plate and a second sub-calibration plate, the first sub-calibration plate and the second sub-calibration plate are adjusted to the target angle and locked in place, and the binocular synchronous calibration images are obtained by the first camera and the second camera simultaneously capturing images of the first sub-calibration plate and the second calibration plate respectively; Filtering module 2 performs adaptive weighted median filtering on the binocular synchronous calibration image: an initial filtering window is constructed with the pixel to be processed as the center, the window size is dynamically adjusted according to the gray distribution of the pixels in the window, and the weighted median is calculated by combining spatial distance weight and gray similarity weight to obtain the calibration image after adaptive weighted median filtering. Feature extraction module 3 performs checkerboard corner detection and sub-pixel localization on the calibration image after adaptive weighted median filtering to obtain the image feature point coordinates of the first sub-calibration board and the second sub-calibration board corresponding to the first camera and the second camera, respectively. The parameter solving module 4 solves the intrinsic parameters, distortion parameters, and pose parameters of the first and second sub-calibration plates relative to the first and second cameras respectively, based on the coordinates of the image feature points and the known geometric dimensions of the first and second sub-calibration plates. The extrinsic parameter solution construction module 5 establishes fixed spatial transformation constraints between the coordinate systems of the two calibration plates based on the pose parameters between the first and second sub-calibration plates in the locked state, and constructs the extrinsic parameter solution model between the first and second cameras. The parameter calibration module 6 uses pose parameters under multiple overall spatial attitudes and the fixed spatial transformation constraints to jointly solve and optimize the extrinsic parameters between the first camera and the second camera, and obtains the calibration results of the binocular camera extrinsic and extrinsic parameters under non-overlapping field of view or large field of view conditions.

[0051] Without creating contradictions, the modules described above in the system of this disclosure embodiment can implement any method step in the method embodiment. Each module can be implemented by independent hardware or by a processor executing a computer program stored in memory.

[0052] This disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the rotatable dual-calibration board binocular field-of-view calibration method described in the above embodiments. The electronic device can be provided as a terminal, a server, or other form of device.

[0053] This disclosure also provides a computer-readable storage medium storing a computer program / instructions and a bit stream thereon. When the program / instructions are executed by a processor, they implement the rotatable dual-calibration board binocular field-of-view calibration method described in the above embodiments to generate the bit stream. The computer-readable storage medium may be a non-volatile computer-readable storage medium.

[0054] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.

[0055] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.

[0056] The above are merely specific embodiments of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any person skilled in the art can easily conceive of various variations or substitutions within the technical scope disclosed in this disclosure, and these should all be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A rotatable dual-calibration plate binocular field-of-view calibration method, characterized in that, comprising the following steps: S10, acquiring binocular synchronous calibration images of the rotatable dual calibration plate under multiple different poses; wherein the rotatable dual calibration plate includes a first sub-calibration plate and a second sub-calibration plate, the first sub-calibration plate and the second sub-calibration plate are adjusted to a target included angle and locked and fixed, and the binocular synchronous calibration images are obtained by synchronously shooting the first sub-calibration plate and the second sub-calibration plate with a first camera and a second camera respectively; S20, performing adaptive weighted median filtering processing on the binocular synchronous calibration images: constructing an initial filtering window centered on a pixel to be processed, dynamically adjusting the window size according to the grayscale distribution of pixels in the window, and calculating a weighted median by combining a spatial distance weight and a grayscale similarity weight to obtain a calibration image after adaptive weighted median filtering processing; S30, performing checkerboard corner detection and sub-pixel positioning on the calibration image after the adaptive weighted median filtering processing, to obtain image feature point coordinates of the first sub-calibration plate and the second sub-calibration plate corresponding to the first camera and the second camera respectively; S40, according to the image feature point coordinates and known geometric dimensions of the first sub-calibration plate and the second sub-calibration plate, solving intrinsic parameters and distortion parameters of the first camera and the second camera respectively, as well as pose parameters of the first sub-calibration plate and the second sub-calibration plate relative to the first camera and the second camera under each pose; S50, based on pose parameters between the first sub-calibration plate and the second sub-calibration plate in a locked state, establishing a fixed spatial transformation constraint between coordinate systems of the dual calibration plates, and constructing an extrinsic parameter solving model between the first camera and the second camera; S60, using pose parameters under multiple overall spatial poses and the fixed spatial transformation constraint to jointly solve and optimize extrinsic parameters between the first camera and the second camera, to obtain a binocular camera intrinsic and extrinsic parameter calibration result under a non-overlapping field of view or a large field of view condition; the adaptive weighted median filtering processing includes: S201, constructing a filtering window of an initial size centered on a pixel point to be filtered, and calculating a minimum grayscale value Imin, a maximum grayscale value Imax and a median grayscale value Imed of a pixel set in the filtering window; S202, performing first-level judgment: if Imin < Imed < Imax, the current window satisfies a filtering condition; otherwise, increasing the size of the filtering window, and repeating calculation and judgment until the filtering condition is satisfied or the size of the filtering window reaches a preset maximum value; S203, performing second-level judgment: if Imin < Iij < Imax, determining that a window center pixel Iij is a non-noise point, and retaining its original grayscale value; otherwise, determining that the window center pixel is a noise point, and replacing the grayscale value of the window center pixel with a weighted median of pixels in the window; wherein Iij is the grayscale value of the window center pixel; the weighted median is calculated by: for each pixel point in the filtering window, calculating a spatial distance weight and a grayscale similarity weight between the pixel point and the window center pixel respectively, and multiplying the two weights to obtain a comprehensive weight of the pixel; sorting pixels in the filtering window according to grayscale values, accumulating comprehensive weights of corresponding pixels, and taking a grayscale value corresponding to a position where a weight cumulative value reaches half of a total weight as the weighted median; The spatial distance weight decreases as the spatial distance between the pixel and the center of the window increases; the grayscale similarity weight decreases as the grayscale difference between the pixel and the center pixel increases.

2. The rotatable dual-calibration plate binocular field-of-view calibration method as described in claim 1, characterized in that, The relative angle between the first sub-calibration plate and the second sub-calibration plate can be adjusted from 90° to 150°.

3. The rotatable dual-calibration plate binocular field-of-view calibration method as described in claim 1, characterized in that, The chessboard corner detection and sub-pixel localization include: The initial pixel coordinates of the checkerboard corner points are extracted from the calibration image after adaptive weighted median filtering; wherein, the calibration image after adaptive weighted median filtering includes a first camera calibration image and a second camera calibration image; Sub-pixel precision optimization of the initial corner coordinates is performed based on grayscale gradient information to obtain sub-pixel level image feature point coordinates. Establish a one-to-one correspondence between the coordinates of the image feature points and the world coordinates in the coordinate systems of the first and second sub-calibration plates.

4. The rotatable dual-calibration plate binocular field-of-view calibration method as described in claim 1, characterized in that, Establish fixed spatial transformation constraints between the dual calibration plate coordinate systems, and construct an external parameter solution model between the first and second cameras, including: Using the first camera coordinate system as a reference, the rotation matrix and translation vector from the first camera coordinate system to the second camera coordinate system are derived through the pose matrix of the first sub-calibration board relative to the first camera, the fixed space transformation matrix between the two calibration boards, and the pose matrix of the second sub-calibration board relative to the second camera. These are the extrinsic parameters of the stereo camera.

5. A rotatable dual-calibration-plate binocular field-of-view calibration system, characterized in that, include: The image acquisition module acquires binocular synchronous calibration images of the rotatable dual calibration plate in multiple different postures; wherein, the rotatable dual calibration plate includes a first sub-calibration plate and a second sub-calibration plate, the first sub-calibration plate and the second sub-calibration plate are adjusted to the target angle and locked in place, and the binocular synchronous calibration images are obtained by the first camera and the second camera simultaneously capturing images of the first sub-calibration plate and the second calibration plate respectively; The filtering module performs adaptive weighted median filtering on the binocular synchronous calibration image: an initial filtering window is constructed with the pixel to be processed as the center, the window size is dynamically adjusted according to the gray distribution of the pixels in the window, and the weighted median is calculated by combining the spatial distance weight and the gray similarity weight to obtain the calibration image after adaptive weighted median filtering. The feature extraction module performs checkerboard corner detection and sub-pixel localization on the calibration image after adaptive weighted median filtering to obtain the image feature point coordinates of the first sub-calibration board and the second sub-calibration board corresponding to the first camera and the second camera, respectively. The parameter solving module solves the intrinsic parameters, distortion parameters, and pose parameters of the first and second sub-calibration plates relative to the first and second cameras respectively, based on the coordinates of the image feature points and the known geometric dimensions of the first and second sub-calibration plates. The extrinsic parameter solution construction module establishes fixed spatial transformation constraints between the coordinate systems of the two calibration plates based on the pose parameters between the first and second sub-calibration plates in the locked state, and constructs the extrinsic parameter solution model between the first and second cameras. A parameter calibration module is configured to jointly solve and optimize the extrinsic parameters between the first camera and the second camera by using pose parameters under multiple overall spatial postures and the fixed spatial transformation constraint, so as to obtain a binocular camera internal and external parameter calibration result under a non-overlapping field of view or a large field of view; The adaptive weighted median filtering process includes: constructing a filtering window with an initial size centered on a pixel to be filtered, and calculating a minimum grayscale value Imin, a maximum grayscale value Imax, and a median grayscale value Imed of a pixel set within the filtering window; performing a first-level judgment: if Imin<Imed<Imax, the current window satisfies a filtering condition; otherwise, increasing the size of the filtering window, and repeating the calculation and judgment until the filtering condition is satisfied or the size of the filtering window reaches a preset maximum value; performing a second-level judgment: if Imin<Iij<Imax, determining that a window center pixel Iij is a non-noise point, and retaining an original grayscale value thereof; otherwise, determining that the window center pixel is a noise point, and replacing a grayscale value of the window center pixel with a weighted median of pixels in the window; wherein Iij is a grayscale value of the window center pixel; The weighted median is calculated by: for each pixel in the filtering window, separately calculating a spatial distance weight and a grayscale similarity weight thereof with respect to the window center pixel, and multiplying the two weights to obtain a comprehensive weight of the pixel; sorting the pixels in the filtering window according to grayscale values, and accumulating comprehensive weights of corresponding pixels, wherein a grayscale value corresponding to a time when a cumulative weight value reaches half of a total weight is used as the weighted median; the spatial distance weight decreases as a spatial distance between the pixel and the window center increases; the grayscale similarity weight decreases as a grayscale difference between the pixel and the center pixel increases.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the rotatable dual calibration board binocular field of view calibration method according to any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, The computer program / instructions, when executed by a processor, implement the rotatable dual calibration board binocular field of view calibration method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Camera high-precision calibration method based on optimal polarization angle

    CN111047649A

  • Absolute depth measurement method based on polarization microlens light field image parallax angle

    CN115375745A