A multi-band underwater active binocular camera calibration method, system, device and storage medium

By employing a multi-band calibration method, combined with underwater refraction models and light attenuation characteristics, initial calibration is performed in air and then recalibrated underwater. This addresses the impact of the complexity of the underwater environment on camera imaging, thereby improving the calibration accuracy and 3D reconstruction capabilities of the underwater active binocular camera.

CN123160675APending Publication Date: 2026-11-24SHENZHEN GUANGJIAN TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510670109.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

The complexity of the underwater environment makes it difficult for traditional calibration methods to meet the requirements of high-precision 3D reconstruction. Factors such as light refraction, scattering, and absorption affect the camera's imaging quality. Single-band imaging is severely affected by the underwater environment. Calibration results on the surface cannot be directly applied underwater. The structured light projection mode varies and is affected by the water body. The generation of underwater monocular reference surfaces is complex.

Method used

A multi-band calibration method is adopted. Initial calibration is performed in air, and the intrinsic parameters, extrinsic parameters and structured light intrinsic parameters of the binocular camera are calculated separately. Considering the effect of underwater refraction, recalibration is performed underwater to generate a mapping matrix. Reference surfaces are generated at different shooting distances. Considering underwater light attenuation and distortion, pose parameters are optimized using Snell's law and the Levenberg-Marquardt algorithm.

Benefits of technology

It improves the calibration accuracy and stability of the underwater active binocular camera, enhances the system's adaptability in complex underwater environments, expands the close-range reconstruction range, and ensures image quality and the accuracy of 3D reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160675A_ABST
    Figure CN123160675A_ABST
Patent Text Reader

Abstract

A multi-band underwater active binocular camera calibration method, system, device, and storage medium, wherein the method includes: S1: projecting structured light onto a calibration plate in air using different bands, obtaining a first left image and a first right image through the left and right cameras respectively, and calibrating the intrinsic and extrinsic parameters of the underwater binocular camera; S2: calibrating the right structured light on the surface; S3: projecting structured light onto the calibration plate underwater using different bands, completing the calibration of the relative positional relationship between the left camera and the glass cover plate, and the relative positional relationship between the right camera and the glass cover plate; S4: calculating the mapping matrix from the original image to the image satisfying binocular calculation for different bands underwater; S5: capturing planes at different underwater distances as reference planes for underwater left and right monocular camera calibration, generating reference plane information satisfying monocular calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of calibration technology, specifically to a calibration method, system, device, and storage medium for a multi-band underwater active binocular camera. Background Technology

[0002] Underwater detection technology is of great significance in fields such as marine resource development, environmental monitoring, and military reconnaissance. Active binocular cameras, by projecting structured light and combining it with binocular vision principles, can achieve high-precision 3D scene reconstruction and are one of the key technologies for underwater detection. However, the complexity of the underwater environment (such as light refraction, scattering, and absorption) severely affects camera imaging quality, making traditional calibration methods difficult to meet practical needs. Specific problems are as follows:

[0003] Underwater refraction affects calibration accuracy: Underwater cameras are typically equipped with glass covers to protect the equipment, but light undergoes multiple refractions as it travels from water into the glass and then into the air, resulting in nonlinear image distortion. Traditional calibration methods do not consider this complex refraction model, leading to significant errors in the calibration results.

[0004] Single-band imaging is severely affected by underwater environmental interference: different wavelengths of light attenuate to varying degrees when propagating in water (e.g., blue light attenuates less, while red light attenuates more). Single-band imaging is easily affected by factors such as water turbidity and suspended particles, making feature point extraction difficult and reducing calibration reliability.

[0005] Calibration results from surface water cannot be directly applied to underwater environments: existing calibration methods are mostly performed in air, but the optical characteristics of the underwater environment differ significantly from those in air. Directly applying surface calibration parameters to underwater scenarios introduces systematic errors, leading to a decrease in the accuracy of 3D reconstruction.

[0006] Underwater structured light projector positioning is challenging because the projection pattern of structured light projectors changes underwater, and different wavelengths of structured light are affected by the water to varying degrees. Traditional structured light positioning methods do not consider the multi-wavelength characteristics underwater and cannot accurately establish the geometric relationship between the camera and the projector.

[0007] Generating an underwater monocular reference surface is complex: the underwater environment lacks natural planar reference objects, and planar imaging at different distances varies significantly due to refraction and scattering. Generating an underwater monocular reference surface suitable for different wavebands and distances is a key challenge for achieving high-precision calibration.

[0008] The above background information is provided only to aid in understanding the inventive concept and technical solution of this invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above information was disclosed on the filing date of this patent application, the above background information should not be used to evaluate the novelty and inventiveness of this application. Summary of the Invention

[0009] To this end, this invention is based on an active binocular camera, which is suitable for both close-range and long-range measurements. For light of different wavelengths, initial calibration is performed on the water to calculate the intrinsic and extrinsic parameters of the binocular camera and the intrinsic and extrinsic parameters of the monocular structured light, respectively. Then, recalibration is performed underwater, and the final mapping matrix is ​​obtained by taking into account the effect of refraction. This greatly improves the accuracy of the underwater active binocular camera, makes subsequent depth calculation more convenient, and can expand the reconstruction range at close range.

[0010] In a first aspect, the present invention provides a multi-band underwater active binocular camera calibration method, characterized in that it includes:

[0011] Step S1: In the air, project structured light onto the calibration plate using the first wavelength, and obtain the first left image and the first right image through the left camera and the right camera respectively, to perform the intrinsic and extrinsic parameter calibration of the underwater binocular camera; In the air, project structured light onto the calibration plate using the second wavelength, and obtain the second left image and the second right image through the left camera and the right camera respectively, to perform the intrinsic and extrinsic parameter calibration of the underwater binocular camera;

[0012] Step S2: Locate the left structure on the water based on the parameters of the first left image, the second left image, the left camera, and the projector; locate the right structure on the water based on the parameters of the first right image, the second right image, the right camera, and the projector.

[0013] Step S3: Underwater, the projector projects structured light onto the calibration plate using the first wavelength band, and the left and right cameras respectively obtain a third left image and a third right image. Underwater, the projector projects structured light onto the calibration plate using the second wavelength band, and the left and right cameras respectively obtain a fourth left image and a fourth right image. Combining the first left image, the first right image, the calibration results of the left structured light above water, and the calibration results of the right structured light above water, the relative positional relationship between the left camera and the glass cover plate, and the relative positional relationship between the right camera and the glass cover plate are calibrated.

[0014] Step S4: Calculate the first mapping matrix of the first band underwater from the original image to the stereo computing image and the second mapping matrix of the second band underwater from the original image to the stereo computing image;

[0015] Step S5: Use the first band and the second band to capture images of the plane at different underwater distances, respectively, as reference surfaces for underwater left and right single-target positioning, and generate reference surface information that satisfies the single-target calculation.

[0016] Optionally, the multi-band underwater active binocular camera calibration method is characterized in that the projection power of the projector in the first band and the second band can be automatically adjusted according to the light intensity of the underwater environment.

[0017] Optionally, the multi-band underwater active binocular camera calibration method is characterized in that the calculation of the first mapping matrix and the second mapping matrix is ​​based on an underwater imaging model, which takes into account the refractive index of water, the attenuation characteristics of underwater light, and the imaging distortion of the camera.

[0018] Optionally, the multi-band underwater active binocular camera calibration method is characterized in that, in steps S1 and S3, the placement position and angle of the calibration plate remain consistent underwater and in air.

[0019] Optionally, the multi-band underwater active binocular camera calibration method is characterized in that the relative positional relationship calibration in step S3 includes:

[0020] Step S31: Establish an underwater light refraction model based on Snell's law;

[0021] Step S32: Infer the relative pose of the camera and the glass by using the image offset caused by the glass cover.

[0022] Step S33: Optimize pose parameters using the Levenberg-Marquardt algorithm.

[0023] Optionally, the multi-band underwater active binocular camera calibration method is characterized in that the generation of the first mapping matrix and the second mapping matrix in step S4 includes:

[0024] Step S41: Extract feature point pairs of the calibration board in different bands;

[0025] Step S42: Calculate the affine transformation parameters for underwater imaging;

[0026] Step S43: Construct a nonlinear polynomial mapping model that includes color difference compensation.

[0027] Optionally, the multi-band underwater active binocular camera calibration method is characterized in that the reference surface information generation in step S5 includes:

[0028] Step S51: Establish underwater monocular three-dimensional reconstruction models for the first band and the second band respectively;

[0029] Step S52: Fuse binocular parallax information with monocular depth information;

[0030] Step S53: Generate a 3D point cloud reference surface with refraction compensation.

[0031] Secondly, the present invention provides a multi-band underwater active binocular camera calibration system for implementing the multi-band underwater active binocular camera calibration method described in any of the preceding claims, characterized in that it includes:

[0032] The first calibration module is used to project structured light onto the calibration board in the air at a first wavelength, and obtain a first left image and a first right image through the left and right cameras respectively, to perform intrinsic and extrinsic parameter calibration of the underwater binocular camera; and to project structured light onto the calibration board in the air at a second wavelength, and obtain a second left image and a second right image through the left and right cameras respectively, to perform intrinsic and extrinsic parameter calibration of the underwater binocular camera.

[0033] The first calculation module is used to perform underwater left structure cursor positioning based on the parameters of the first left image, the second left image, the left camera, and the projector; and to perform underwater right structure cursor positioning based on the parameters of the first right image, the second right image, the right camera, and the projector.

[0034] The second calibration module projects structured light onto the calibration plate underwater using the first wavelength band, and obtains a third left image and a third right image through the left camera and the right camera, respectively. Underwater, the module projects structured light onto the calibration plate underwater using the second wavelength band, and obtains a fourth left image and a fourth right image through the left camera and the right camera, respectively. Combining the first left image, the first right image, the calibration results of the left structured light above water, and the calibration results of the right structured light above water, the module completes the calibration of the relative positional relationship between the left camera and the glass cover plate, and the relative positional relationship between the right camera and the glass cover plate.

[0035] The second calculation module is used to calculate the first mapping matrix of the first band underwater from the original image to the stereo calculation image and the second mapping matrix of the second band underwater from the original image to the stereo calculation image.

[0036] The third calculation module is used to generate reference surface information that satisfies monocular calculation by taking images of the plane at different underwater distances using the first band and the second band, respectively, as reference surfaces for underwater left and right monocular positioning.

[0037] Thirdly, the present invention provides a multi-band underwater active binocular camera calibration device, characterized in that it comprises:

[0038] processor;

[0039] A memory in which executable instructions of the processor are stored;

[0040] The processor is configured to perform the steps of any of the preceding multi-band underwater active binocular camera calibration methods by executing the executable instructions.

[0041] Fourthly, the present invention provides a computer-readable storage medium for storing a program, characterized in that, when the program is executed, it implements the steps of the multi-band underwater active binocular camera calibration method described in any of the preceding claims.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] This invention enhances anti-interference capabilities through multi-band calibration. In steps S1 and S3, calibration is performed using the first and second bands, respectively. Different bands of light exhibit varying attenuation characteristics in water; multi-band fusion effectively overcomes interference caused by underwater light absorption and scattering. When a particular band is significantly affected by water turbidity or suspended particles, another band can be used as a supplement to ensure accurate extraction of feature points, thereby improving the stability and reliability of the calibration.

[0044] This invention improves accuracy through step-by-step calibration both above and below water. First, the intrinsic and extrinsic parameters of the underwater binocular camera, as well as the structural cursor, are calibrated in air. Then, the underwater calibration is performed using the above-water calibration results. This step-by-step calibration method fully utilizes the advantages of a stable and less-interfered calibration environment in air, obtaining more accurate initial parameters. During underwater calibration, by establishing an underwater refraction model and combining it with the above-water calibration results, distortions caused by light refraction in the glass cover and water can be effectively compensated, significantly improving calibration accuracy compared to traditional direct underwater calibration methods.

[0045] This invention optimizes image quality using a targeted mapping matrix. In step S4, mapping matrices are calculated for the first and second wavebands to transform the original underwater image into an image suitable for binocular calculation. Since the refraction and distortion of different wavebands differ underwater, calculating the mapping matrices separately allows for precise correction of each waveband image, making the image more suitable for binocular calculation and thus improving the accuracy of binocular matching. This provides high-quality image data for subsequent underwater 3D reconstruction.

[0046] This invention enhances system adaptability by utilizing multi-distance reference surfaces. In step S5, single-target calibration reference surface information is generated by capturing images at different underwater distances. In underwater detection scenarios, the camera's working distance may vary, resulting in different light propagation characteristics and image distortion levels at different distances. By generating multi-distance reference surfaces, the system can adapt to calibration requirements at different depths and working distances, enhancing its versatility and adaptability in complex underwater environments and broadening the application scenarios of multi-band underwater active binocular cameras.

[0047] This invention provides a systematic calibration process to ensure overall performance. It covers a complete process from camera parameter calibration and structural cursor calibration to underwater environment correction, image mapping matrix calculation, and single-target calibration reference surface generation. Each step works in tandem, progressively addressing various issues in the calibration process of underwater active binocular cameras, ensuring the camera's overall performance in underwater environments, and providing reliable technical support for high-precision underwater detection and 3D reconstruction.

[0048] This invention calibrates both the binocular camera and the structured light camera simultaneously, and can supplement the depth of the binocular camera at close range by using the structured light depth, thereby increasing the range of depth reconstruction at close range and expanding the reconstruction range at close range. Attached Figure Description

[0049] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort. Other features, objects, and advantages of the present invention will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings:

[0050] Figure 1 This is a flowchart illustrating the steps of a multi-band underwater active binocular camera calibration method in an embodiment of the present invention.

[0051] Figure 2 This is a flowchart illustrating the steps for calibrating a relative position relationship in an embodiment of the present invention;

[0052] Figure 3 This is a flowchart illustrating the steps involved in generating a first mapping matrix and a second mapping matrix in an embodiment of the present invention.

[0053] Figure 4 This is a flowchart illustrating the steps involved in generating reference surface information in an embodiment of the present invention.

[0054] Figure 5 This is a schematic diagram of the field of view of an active binocular camera in an embodiment of the present invention;

[0055] Figure 6 This is a schematic diagram of the structure of a multi-band underwater active binocular camera calibration system according to an embodiment of the present invention;

[0056] Figure 7 This is a schematic diagram of the structure of a multi-band underwater active binocular camera calibration device according to an embodiment of the present invention; and

[0057] Figure 8This is a schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention. Detailed Implementation

[0058] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention. These all fall within the scope of protection of the present invention.

[0059] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0060] This invention provides a multi-band underwater active binocular camera calibration method, which aims to solve the problems existing in the prior art.

[0061] The technical solutions of the present invention and how they solve the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will now be described with reference to the accompanying drawings.

[0062] This invention is based on an active binocular camera, which is suitable for both close-range and long-range measurements. For light of different wavelengths, it performs initial calibration on the water to calculate the intrinsic and extrinsic parameters of the binocular camera and the monocular structured light, respectively. Then, it performs recalibration underwater and takes into account the effect of refraction to obtain the final mapping matrix. This greatly improves the accuracy of the underwater active binocular camera, makes subsequent depth calculation more convenient, and can expand the reconstruction range at close range.

[0063] Figure 1 This is a flowchart illustrating the steps of a multi-band underwater active binocular camera calibration method according to an embodiment of the present invention. Figure 1 As shown, the steps of a multi-band underwater active binocular camera calibration method in an embodiment of the present invention include:

[0064] Step S1: In the air, project structured light onto the calibration plate using the first wavelength, and obtain the first left image and the first right image through the left camera and the right camera respectively, to perform the calibration of the intrinsic and extrinsic parameters of the underwater binocular camera; In the air, project structured light onto the calibration plate using the second wavelength, and obtain the second left image and the second right image through the left camera and the right camera respectively, to perform the calibration of the intrinsic and extrinsic parameters of the underwater binocular camera.

[0065] In this step, the operation is first conducted in the air, where structured light is projected onto the calibration plate using a first wavelength. Then, a left camera and a right camera are used to capture images of the calibration plate illuminated by the structured light, thus obtaining a first left image and a first right image. The left and right cameras are of the same model and have the same exposure parameters.

[0066] Next, in the same air environment, the system switched to the second band, and the projector once again projected structured light to illuminate the calibration plate. The left and right cameras then took pictures, resulting in the second left image and the second right image.

[0067] Then, using the obtained first left image, first right image, second left image, and second right image, the intrinsic and extrinsic parameters of the underwater binocular camera are calibrated. The camera's intrinsic parameters mainly describe its inherent properties, such as focal length and principal point position, which determine the projection relationship between points in 3D space and points on the image plane. The extrinsic parameters describe the camera's position and attitude in the world coordinate system, including the translation vector (representing the camera's position in the world coordinate system) and the rotation matrix (representing the camera's orientation). These intrinsic and extrinsic parameters are calculated using specific calibration algorithms (such as the Zhang Zhengyou calibration method) based on the known positions of feature points on the calibration board in the images, as well as the actual size and position information of the calibration board.

[0068] This step obtains the intrinsic and extrinsic parameters of the binocular camera in an underwater environment, providing basic parameters for subsequent underwater calibration and calculations, enabling accurate association and conversion between points in the image and points in the actual space.

[0069] Step S2: Locate the left structure on the water based on the parameters of the first left image, the second left image, the left camera, and the projector; locate the right structure on the water based on the parameters of the first right image, the second right image, the right camera, and the projector.

[0070] In this step, the cursor positions for the left and right structures above water are determined separately.

[0071] During the underwater left-side structured light calibration, based on the first and second left images obtained in step S1, and combined with relevant parameters of the left camera and projector (such as camera intrinsics, projector projection angle, light field distribution, etc.), a specific structured light calibration algorithm is used to perform underwater left-side structured light calibration. This process mainly establishes the correspondence between the structured light pattern projected by the projector and the image captured by the left camera. For example, it determines the specific position and shape of the structured light fringes in the left camera image, and their mapping relationship with the projector parameters. It also determines the relative relationship between the left camera and the projector regarding structured light in the underwater environment, so that the structured light information can be accurately used to obtain the three-dimensional information of the object in subsequent calculations.

[0072] Similarly, when calibrating the right structured light beam on the water, the calibration is performed based on the first and second right images, as well as the parameters of the right camera and the projector. A suitable algorithm is then used to determine the characteristics of the structured light projected by the projector in the right camera image and its relationship with the projector. This establishes an accurate correspondence between the right camera and the projector regarding structured light in the water environment, providing accurate structured light information for subsequent underwater binocular calculations.

[0073] Step S3: Underwater, the projector projects structured light onto the calibration plate using the first wavelength band, and the left and right cameras respectively obtain a third left image and a third right image. Underwater, the projector projects structured light onto the calibration plate using the second wavelength band, and the left and right cameras respectively obtain a fourth left image and a fourth right image. Combining the first left image, the first right image, the calibration results of the left structured light above water, and the calibration results of the right structured light above water, the relative positional relationship between the left camera and the glass cover plate, and the relative positional relationship between the right camera and the glass cover plate are calibrated.

[0074] In this step, the entire camera system is placed in an underwater environment. The first waveband is used to project structured light onto the calibration plate, and the left and right cameras take pictures respectively to obtain the third left image and the third right image.

[0075] Then, switching to the second band, the projector again projects structured light onto the calibration plate, and the left and right cameras capture the fourth left image and the fourth right image.

[0076] Combining the first left and first right images obtained in step S1, and the calibration results of the left and right structure lights above water obtained in step S2, the relative positions of the left camera and the glass cover are calculated and determined using appropriate algorithms by analyzing the changes in structured light and the differences in camera imaging in these images. This is because light refraction occurs when passing through the glass cover in the underwater environment, affecting camera imaging. Therefore, it is necessary to calibrate the relative positions of the cameras and the glass cover for accurate image correction and processing in the future.

[0077] This step can accurately determine the relative positional relationship between the camera and the glass cover in the underwater environment, providing parameters to eliminate the influence of the glass cover on imaging, so that the underwater images can be processed and analyzed more accurately to obtain more precise three-dimensional information.

[0078] Step S4: Calculate the first mapping matrix of the first band underwater from the original image to the stereo image and the second mapping matrix of the second band underwater from the original image to the stereo image.

[0079] In this step, for the first band, the geometric transformation relationship between the original underwater images (such as the third left image, the third right image, etc.) and the images that meet the requirements for stereo computing is analyzed. By considering factors such as the characteristics of underwater light propagation and the relative positions of the camera and the glass cover, a specific algorithm (such as a perspective-based algorithm) is used to calculate the first mapping matrix from the original image to the image that meets the requirements for stereo computing. This mapping matrix describes how to transform the pixels in the original image to obtain an image suitable for stereo matching and 3D reconstruction calculations.

[0080] Similarly, for the second band, based on relevant underwater images (such as the fourth left image, the fourth right image, etc.), a second mapping matrix is ​​calculated from the original image to the image that satisfies the stereo computing requirements.

[0081] This step yields mapping matrices for the two bands underwater, from the original image to a suitable image for binocular computation. These matrices can then be used to transform underwater images, thereby improving the accuracy and reliability of binocular computation and enabling more accurate acquisition of the object's three-dimensional information.

[0082] Step S5: Use the first band and the second band to capture images of the plane at different underwater distances, respectively, as reference surfaces for underwater left and right single-target positioning, and generate reference surface information that satisfies the single-target calculation.

[0083] In this step, in the underwater environment, the plane is photographed at different distances using the first and second wavebands respectively, and these photographed planes are used as reference surfaces for underwater left and right single-target positioning.

[0084] For each reference plane captured in a specific wavelength band, its features in the images from the left and right cameras are analyzed, including its position, shape, and edges. Specific algorithms are used to process and extract this information to generate reference plane information suitable for monocular computation. This information includes the coordinate representation of the reference plane in the image and the geometric relationship between the reference plane and the camera, enabling accurate object localization and measurement in subsequent monocular computations.

[0085] This step generates the reference surface information required for underwater left and right monocular positioning, providing an accurate reference for monocular calculations. This allows for more effective use of the monocular camera in underwater environments for object detection, recognition, and 3D information acquisition, improving the overall underwater application capabilities and accuracy of the camera system.

[0086] In some embodiments, the projection power of the projector in the first and second wavebands can be automatically adjusted according to the light intensity of the underwater environment.

[0087] In underwater environments, lighting conditions vary greatly due to factors such as depth, water turbidity, and weather conditions. Light intensity decreases rapidly with increasing depth, and suspended particles in the water also absorb and scatter light, making it difficult to maintain stable light intensity. If the projector maintains a fixed projection power under different light intensities, it may not be able to provide the camera with clear and effective structured light images.

[0088] When the underwater ambient light intensity is low, if the projector power is insufficient, the imaging effect will be poor after the structured light is projected onto the calibration plate or object. The structured light stripes in the image acquired by the camera may be blurry, making it difficult to accurately extract feature points, thus affecting the accuracy of calibration and subsequent acquisition of 3D information. On the other hand, when the light intensity is strong, if the projector power is too high, the image may be overexposed, which will also result in the loss of image details and structured light information.

[0089] Based on this, the projector has the function of automatically adjusting the projection power in the first and second wavebands according to the underwater ambient light intensity. It monitors the underwater ambient light conditions in real time through a built-in light intensity sensor and transmits the monitoring data to the control system. The control system analyzes the difference between the current light intensity and the ideal lighting conditions required for imaging based on preset algorithms and rules, and then adjusts the projector power in the two wavebands. For example, when the light intensity is detected to be weak, the control system automatically increases the projector power to enhance the brightness of the structured light, ensuring that the camera can capture a clear structured light image; when the light intensity is strong, it reduces the projector power to avoid overexposure of the image and ensure that the structured light stripes are clearly distinguishable.

[0090] This automatic adjustment function enables the multi-band underwater active binocular camera to obtain high-quality images in complex and ever-changing underwater environments, ensuring the accuracy and stability of camera calibration. It also provides a reliable data foundation for subsequent applications such as underwater 3D reconstruction, object detection and recognition based on calibration results, thereby improving the adaptability and practicality of the entire camera system in underwater scenarios.

[0091] In some embodiments, the calculation of the first mapping matrix and the second mapping matrix is ​​based on an underwater imaging model that takes into account the refractive index of water, the attenuation characteristics of underwater light, and the imaging distortion of the camera.

[0092] Water has a refractive index of approximately 1.33, unlike air. When light enters a camera lens from water, it refracts, causing a discrepancy between the actual position of an object in the image and its real-world location. When calculating the mapping matrix, the underwater imaging model takes the refractive index of water into account, using optical principles such as Snell's law to accurately calculate the propagation path of refracted light. Based on this, the positions of pixels in the image are adjusted to correct the offset caused by refraction, making the position of objects in the image closer to reality and improving the accuracy of subsequent binocular calculations.

[0093] Underwater light is attenuated due to absorption and scattering by the water, and the degree of attenuation is related to the wavelength of the light and the underwater propagation distance. Different wavelengths of light attenuate differently underwater, including both the first and second wavelengths. Underwater imaging models utilize theories such as the Beer-Lambert law, combined with experimentally measured attenuation parameters of different wavelengths of light in specific underwater environments, to adjust information such as image brightness and contrast. This compensates for issues such as reduced image brightness and blurred details caused by light attenuation, making the image quality more suitable for binocular computing and providing higher-quality image data for accurate calculation of the mapping matrix.

[0094] During the imaging process, cameras experience radial and tangential distortion due to lens optical characteristics, leading to straight-line distortion and object shape distortion in the image. The underwater imaging model establishes a distortion model and calculates the camera's distortion parameters using known feature points on a calibration board. When calculating the mapping matrix, these distortion parameters are used to perform anti-distortion processing on the image, restoring the distorted image to a normal image. This eliminates the influence of the camera's own imaging distortion on the image, ensuring that the mapping matrix accurately reflects the true geometric transformation relationships of the image in the underwater environment. This provides a reliable foundation for subsequent image transformation and binocular computing based on the mapping matrix.

[0095] In some embodiments, in steps S1 and S3, the placement position and angle of the calibration plate remain consistent underwater and in air.

[0096] Camera calibration calculates camera intrinsic and extrinsic parameters using known feature point information on a calibration board, establishing a correspondence between image pixel coordinates and real-world coordinates. If the position or angle of the calibration board changes underwater or in air, the position of the same feature point in the image will also change under different environments. Since the calculation of camera parameters depends on the correspondence between the feature point's position in the image and its actual spatial position, changes in position and angle disrupt the established correspondence, leading to deviations in the calculated camera parameters. Maintaining consistent placement of the calibration board ensures that the reference point for feature point imaging remains the same under different environments, guaranteeing a stable and reliable correspondence used in the calculation process.

[0097] The function of this embodiment is demonstrated as follows:

[0098] To ensure consistency in parameter calculations: During air calibration, the obtained camera intrinsic and extrinsic parameters, as well as the structural calibration results, are based on a calibration plate at a specific position and angle. During underwater calibration, keeping the calibration plate's position and angle constant allows for comparison and calculation of underwater and airborne imaging based on the same benchmark. This enables subsequent analyses of differences between underwater and surface imaging, and calculations of the relative position of the underwater camera and the glass cover, to more accurately eliminate interference from changes in the calibration plate's position and angle. The calculation results more realistically reflect the impact of the underwater environment on camera imaging, thereby improving calibration accuracy.

[0099] Simplifying the calculation process: If the calibration plate is placed at different positions and angles underwater and in air, calculating underwater parameters requires not only considering the impact of underwater environmental factors on imaging but also handling the complex transformations caused by changes in the calibration plate's position and angle, significantly increasing the difficulty and complexity of the calculations. Maintaining a consistent placement of the calibration plate allows for the direct use of existing calibration results and calculation methods in air, simplifying the calculation steps in the underwater calibration process, improving calibration efficiency, and reducing the possibility of errors introduced by complex calculations.

[0100] Figure 2 This is a flowchart illustrating the steps for calibrating a relative positional relationship in an embodiment of the present invention. Figure 2 As shown, the steps for relative positional relationship calibration in an embodiment of the present invention include:

[0101] Step S31: Establish an underwater light refraction model based on Snell's law.

[0102] In this step, Snell's law describes the refraction of light as it travels from one medium to another: n1·sin(θ1) = n2·sin(θ2), where n1 and n2 are the refractive indices of the two media, and θ1 and θ2 are the angle of incidence and the angle of refraction, respectively. In an underwater environment, light undergoes two refractions as it travels from water (refractive index approximately 1.33) into a glass cover (refractive index approximately 1.5) and then into air (refractive index approximately 1.0).

[0103] Based on the known positions of feature points on the calibration plate and the camera's imaging position, a mathematical model of the light propagation path is established using Snell's law. This model considers the change in the refraction angle of light at the water-glass-air interface, as well as the relationship between the refraction point position and the thickness of the glass cover plate and the camera position. Through the principles of geometric optics, the three-dimensional world coordinates of the feature points are linked to the pixel coordinates in the camera image.

[0104] This step constructs a theoretical model of underwater light propagation, providing a mathematical basis for subsequently deducing the relative position of the camera and the glass cover by using image offset.

[0105] Step S32: Infer the relative pose of the camera and the glass by using the image offset caused by the glass cover.

[0106] In this step, the calibration board images taken in air (without the effect of glass cover refraction) and underwater (with the effect of glass cover refraction) are compared, and the pixel coordinate differences of feature points in the two environments are extracted to obtain the image offset.

[0107] Using the light refraction model established in step S31, combined with the image offset, the relative pose (rotation matrix R and translation vector t) between the camera and the glass cover is calculated in reverse. Specifically, the pose parameters are iteratively adjusted by minimizing the error between the image points predicted by the model and the actual observation points until the error meets the convergence condition. A preliminary estimate of the relative positional relationship between the camera and the glass cover is then obtained, providing initial values ​​for subsequent optimization.

[0108] Step S33: Optimize pose parameters using the Levenberg-Marquardt algorithm.

[0109] In this step, the error function E(R,t) is defined as the sum of squares error between the coordinates of the calibration board feature points predicted by the model and the actual observed coordinates.

[0110] Iterative Optimization of the Levenberg-Marquardt Algorithm: The Levenberg-Marquardt algorithm is a nonlinear optimization method that combines the advantages of gradient descent and Gauss-Newton methods. It iteratively updates the pose parameters (R,t) to gradually reduce the error function E. The specific steps are as follows:

[0111] Calculate the Jacobian matrix J of the error function with respect to the parameter (R,t);

[0112] The iteration step size is adjusted according to the damping factor λ, and the parameter (R,t)←(R,t)-(JTJ+λI)-1JTe is updated, where e is the error vector;

[0113] Evaluate the error function value under the new parameters. If the error decreases, accept the update and decrease λ; otherwise, reject the update and increase λ.

[0114] Repeat the above steps until the error converges or the maximum number of iterations is reached.

[0115] The accuracy of the relative pose parameters between the camera and the glass cover is improved by optimizing the algorithm, thereby reducing calibration errors.

[0116] Figure 3 This is a flowchart illustrating the steps involved in generating a first mapping matrix and a second mapping matrix according to an embodiment of the present invention. Figure 3 As shown, the steps for generating a first mapping matrix and a second mapping matrix in an embodiment of the present invention include:

[0117] Step S41: Extract feature point pairs of the calibration board in different bands.

[0118] In this step, the third left image, the third right image, the fourth left image, and the fourth right image were acquired underwater in the first and second wavebands, respectively. These images were captured by the left and right cameras after the projector projected structured light onto the calibration plate in different wavebands.

[0119] Appropriate feature point extraction algorithms, such as SIFT (Scale Invariant Feature Transform), SURF (Speeded Robust Feature Transform), or Harris corner detection algorithm, are used to detect feature points on the calibration board in images of different spectral bands. These feature points are usually points on the calibration board with obvious geometric features or grayscale changes, such as corners and intersections of the calibration board.

[0120] By using feature descriptors and matching algorithms, corresponding feature point pairs are found between images in different spectral bands. For example, when using the SIFT algorithm, a feature descriptor is generated for each feature point, and then the similarity between the descriptors is compared to determine the matching feature point pairs. This yields a set of feature point pairs for the calibration board in different spectral bands.

[0121] This step provides the data foundation for subsequent calculation of affine transformation parameters and construction of the mapping model. Accurate extraction of feature point pairs is crucial to ensuring the accuracy of the mapping matrix.

[0122] Step S42: Calculate the affine transformation parameters for underwater imaging.

[0123] In this step, affine transformation is a linear transformation in two-dimensional space, which can be represented as a combination of translation, rotation, scaling, and shearing. Its mathematical expression is:

[0124]

[0125] Where (x, y) are the coordinates of a point in the original image, (x′, y′) are the coordinates of a point in the transformed image, and a ij These are the linear transformation coefficients, t x and t y It is the translation amount.

[0126] Using the feature point pairs extracted in step S41, the parameters of the affine transformation are solved using optimization algorithms such as the least squares method. Specifically, the coordinates of the feature point pairs are substituted into the affine transformation equations to construct an overdetermined system of equations, and then the optimal affine transformation parameters are determined by minimizing the sum of squared errors.

[0127] This step obtains the affine transformation relationship of underwater imaging from the original image to a preliminarily transformed image, and preliminarily corrects geometric deformations such as translation, rotation, and scaling of the image.

[0128] Step S43: Construct a nonlinear polynomial mapping model that includes color difference compensation.

[0129] In this step, when light of different wavelengths propagates underwater, the varying absorption and scattering characteristics of water can cause chromatic aberration in the images. This means that the color and brightness of the same object can differ in images of different wavelengths. Furthermore, the complexity of the underwater environment can also lead to nonlinear geometric distortions in the images.

[0130] Nonlinear polynomial mapping model: To simultaneously compensate for chromatic aberration and nonlinear geometric distortion, a nonlinear polynomial mapping model is constructed. This model can typically be represented as a high-order polynomial function, for example:

[0131]

[0132] Where (x, y) are the coordinates of a point in the image after affine transformation, and (x′, y′) are the coordinates of a point in the final stereo computed image. ij and b ij These are polynomial coefficients.

[0133] The affine-transformed image obtained in step S42 is compared with the ideal image that satisfies binocular computation. Using feature point pairs and other image information, the parameters of the polynomial model are solved using a nonlinear optimization algorithm (such as the Levenberg-Marquardt algorithm). During the solution process, color difference information is also considered, for example, by comparing the color histograms of images in different bands to compensate for the color difference.

[0134] This step constructs a model that can accurately describe the mapping relationship between the original image and the binocular computed image after affine transformation in underwater imaging, while compensating for chromatic aberration and nonlinear geometric distortion, and finally obtains the first mapping matrix and the second mapping matrix.

[0135] Figure 4 This is a flowchart illustrating the steps involved in generating reference surface information according to an embodiment of the present invention. Figure 4 As shown, in an embodiment of the present invention, a step for generating reference surface information includes:

[0136] Step S51: Establish underwater monocular three-dimensional reconstruction models for the first band and the second band respectively.

[0137] In this step, using underwater images captured at different wavebands (first and second wavebands), feature extraction algorithms such as SIFT (Scale Invariant Feature Transform) and SURF (Speed-Up Robust Feature Rendering) are applied to detect representative feature points in the monocular images. These feature points are typically regions in the image with significant grayscale changes, such as corner points and edge points.

[0138] Based on the camera intrinsic parameters (such as focal length, principal point position, etc.) calibrated in previous steps (such as step S1), and considering the characteristics of the underwater environment, a camera model suitable for underwater monocular imaging is determined. Underwater, due to factors such as light refraction, the camera's imaging will change, requiring corresponding adjustments to the camera model.

[0139] Monocular 3D reconstruction typically relies on the principle of triangulation. By capturing images of the same object from different locations, the coordinates of feature points in 3D space are calculated by utilizing the differences in the positions of feature points in different images, combined with the camera's intrinsic and extrinsic parameters (such as camera position and orientation). In underwater environments, the refraction of light as it propagates through media such as water and camera lenses needs to be considered, requiring corrections to the triangulation calculations.

[0140] By combining the extracted feature points, the determined camera model, and the calculated 3D coordinates, underwater monocular 3D reconstruction models are established for the first and second wavebands, respectively. These models can describe the mapping relationship between pixels in images captured by the monocular camera and points in 3D space at the corresponding wavebands.

[0141] This step establishes a model for each band that can acquire 3D information from monocular images, providing a foundation for subsequent fusion of binocular parallax information and generation of 3D point cloud reference surfaces.

[0142] Step S52: Fuse binocular parallax information with monocular depth information.

[0143] In this step, the calibration of the binocular camera and the calculation of relevant parameters have been completed through steps S1-S4. Using the images captured by the left and right cameras, a stereo matching algorithm (such as block matching algorithm, semi-global matching algorithm, etc.) is used to calculate the disparity of corresponding points in the images. Disparity refers to the difference in horizontal position of corresponding points of the same object in the left and right camera images. Disparity is inversely proportional to the distance from the object to the camera, and the depth information of the object can be calculated based on the disparity.

[0144] Using the underwater monocular 3D reconstruction model established in step S51, depth information of objects is extracted from the monocular image. The calculation of monocular depth information is usually based on image cues such as texture, shadows, and occlusion, combined with the camera model and the 3D coordinates of feature points.

[0145] A suitable fusion algorithm is used to fuse binocular disparity information and monocular depth information. Common fusion methods include weighted averaging and Kalman filtering. For example, in the weighted averaging method, different weights are assigned to the binocular disparity information and monocular depth information based on their reliability, and then the two are weighted and summed to obtain more accurate depth information.

[0146] This step combines the advantages of binocular parallax information and monocular depth information to improve the accuracy and reliability of depth information, providing richer and more accurate data for generating more precise 3D point cloud reference surfaces.

[0147] Step S53: Generate a 3D point cloud reference surface with refraction compensation.

[0148] In this step, in the underwater environment, light travels from an object to the camera through media such as water and glass covers. Due to the different refractive indices of these media, the light refracts, causing a deviation between the actual position of the object and the position reflected in the camera image. Based on the underwater light refraction model established in the previous step (such as step S3), and combined with the fused depth information, the impact of light refraction on the object's position is calculated, and corresponding compensation is performed.

[0149] By combining the refraction-compensated depth information with the pixel coordinates of the image, and using 3D reconstruction algorithms (such as triangulation-based methods), each pixel in the 2D image is mapped into 3D space to generate a 3D point cloud. A 3D point cloud is a collection of a large number of 3D spatial points, each point representing a location on the surface of an object.

[0150] The generated 3D point cloud is processed by extracting planar information from it using a plane fitting algorithm (such as least squares plane fitting) to generate a 3D point cloud reference surface with refraction compensation. This reference surface can be used as a reference for underwater left and right single-target positioning for subsequent object detection, localization, and other tasks.

[0151] This step generates a 3D point cloud reference surface that takes into account the effects of underwater light refraction, providing an accurate and reliable reference for underwater single-target positioning and improving the accuracy and stability of the underwater camera system in monocular calculations.

[0152] In some embodiments, in step S5, at least one of the reference surfaces is at a distance from the binocular camera that is less than the minimum measurement distance of the binocular camera.

[0153] In this step, the stereo camera has a minimum measurement distance limitation in its design and operating principle; only by exceeding this range can relatively accurate measurement results be obtained. The minimum measurement distance of a stereo camera refers to the closest limit at which the camera can accurately measure the distance to an object under normal operating conditions. Figure 5 In this context, 'h' represents the minimum measurement distance. However, in practical underwater applications, the target object to be measured may be located within the minimum measurement distance of the binocular camera. Setting at least one reference surface smaller than the minimum measurement distance extends the calibration range to near-field areas that are difficult to cover with conventional measurements. This overcomes the measurement distance limitations of the binocular camera itself, enabling the camera to perform effective image processing and data calculation based on calibration results even in close-range scenarios. Monocular structured light, on the other hand, only needs to compare the captured image with the reference surface when calculating depth. Therefore, when the reference surface is close, the measurement accuracy of monocular structured light at close range can be improved, allowing for depth measurements in areas that binocular cameras cannot reach.

[0154] like Figure 5 As shown, for an active stereo camera, it can only acquire depth information within range b, and cannot acquire information within ranges a and c. a is the field of view that the left camera can obtain but the right camera cannot, and c is the field of view that the right camera can obtain but the left camera cannot. Since ranges a and c can be obtained using monocular structured light, the field of view of the stereo camera is extended. The calibration in this embodiment can improve the accuracy of monocular structured light at close range.

[0155] Improving close-range measurement accuracy: When the target is within the minimum measurement distance of a binocular camera, conventional calibration methods struggle to guarantee measurement accuracy due to factors such as imaging characteristics and parallax calculation. Introducing a close-range reference surface allows for targeted correction of imaging errors and distortions during close-range shooting through calibration and analysis. The reference surface information generated based on this surface provides more realistic parameters for monocular calculations in close-range scenarios, thereby improving the measurement accuracy of close-range targets and meeting the application needs of underwater close-range target detection and micro-object recognition.

[0156] Achieving compatibility at both near and far distances: The underwater environment is complex, and target objects are distributed across a wide range of distances, from tiny organisms close to the camera to underwater structures at a greater distance. By setting at least one reference surface smaller than the minimum measurement distance, and combining it with other reference surfaces at different distances, a calibration system covering a wide range of distances can be constructed. This allows underwater binocular cameras to perform accurate calculations and analyses based on the corresponding reference surface information, regardless of whether the target is at close or far distance, achieving compatible use in both near and far distance scenarios and enhancing the camera's adaptability and versatility in various underwater applications.

[0157] Figure 6 This is a schematic diagram of a multi-band underwater active binocular camera calibration system according to an embodiment of the present invention. Figure 6 As shown, an embodiment of the present invention provides a multi-band underwater active binocular camera calibration system comprising:

[0158] The first calibration module is used to project structured light onto the calibration board in the air at a first wavelength, and obtain a first left image and a first right image through the left and right cameras respectively, to perform intrinsic and extrinsic parameter calibration of the underwater binocular camera; and to project structured light onto the calibration board in the air at a second wavelength, and obtain a second left image and a second right image through the left and right cameras respectively, to perform intrinsic and extrinsic parameter calibration of the underwater binocular camera.

[0159] The first calculation module is used to perform underwater left structure cursor positioning based on the parameters of the first left image, the second left image, the left camera, and the projector; and to perform underwater right structure cursor positioning based on the parameters of the first right image, the second right image, the right camera, and the projector.

[0160] The second calibration module projects structured light onto the calibration plate underwater using the first wavelength band, and obtains a third left image and a third right image through the left camera and the right camera, respectively. Underwater, the module projects structured light onto the calibration plate underwater using the second wavelength band, and obtains a fourth left image and a fourth right image through the left camera and the right camera, respectively. Combining the first left image, the first right image, the calibration results of the left structured light above water, and the calibration results of the right structured light above water, the module completes the calibration of the relative positional relationship between the left camera and the glass cover plate, and the relative positional relationship between the right camera and the glass cover plate.

[0161] The second calculation module is used to calculate the first mapping matrix of the first band underwater from the original image to the stereo calculation image and the second mapping matrix of the second band underwater from the original image to the stereo calculation image.

[0162] The third calculation module is used to generate reference surface information that satisfies monocular calculation by taking images of the plane at different underwater distances using the first band and the second band, respectively, as reference surfaces for underwater left and right monocular positioning.

[0163] Specifically, the first calibration module projects structured light onto the calibration board in air using the first and second wavebands, respectively. Images are then acquired by the left and right cameras, completing the calibration of the intrinsic and extrinsic parameters of the underwater binocular camera. This is the fundamental step of the entire calibration system, providing basic parameter information of the camera in air for subsequent underwater calibration and calculations. Utilizing the specific pattern formed by the structured light projected onto the calibration board, images are captured by the camera. Based on the characteristics of the structured light pattern in the images and the known information of the calibration board, classic camera calibration methods such as the Zhang Zhengyou calibration method are used to calculate the camera's intrinsic parameters (such as focal length and principal point coordinates) and extrinsic parameters (such as the camera's rotation and translation parameters).

[0164] The first calculation module performs underwater left and right structured light calibrations based on the images acquired by the first calibration module and the parameters of the left camera, right camera, and projector. This module primarily aims to further determine the relationship between structured light and the cameras, providing more detailed parameters for underwater calibration. Based on the projection principle of structured light and the camera imaging model, by analyzing the distribution and characteristics of structured light in the images and combining this with the calibrated camera parameters, the module calculates the transformation relationship between the structured light plane and the camera coordinate system, such as the equation of the structured light plane and the mapping relationship of structured light fringes in the camera images.

[0165] The second calibration module projects structured light onto the calibration board underwater using first and second wavebands to acquire corresponding images. Combining the results from the first calibration module and the first calculation module, it calibrates the relative positions between the left camera and the glass cover, as well as between the right camera and the glass cover. The effects of light refraction by the glass cover in the underwater environment are considered to determine the relative pose of the cameras and the glass cover. First, underwater images are affected by the refractive index of water, light attenuation, and the glass cover. An underwater light refraction model (e.g., based on Snell's law) is established, and the image offset caused by the glass cover is used to infer the relative pose of the cameras and the glass cover. Optimization algorithms (such as the Levenberg-Marquardt algorithm) may be used to optimize the pose parameters to improve calibration accuracy.

[0166] The second computation module calculates the mapping matrices for the first and second bands underwater, from the original images to images suitable for stereoscopic computation. These mapping matrices are used to convert the original underwater images into images suitable for stereoscopic computation, eliminating various distortions and errors in the underwater imaging process. Typically, feature point pairs on the calibration board are first extracted at different bands, then the affine transformation parameters for underwater imaging are calculated, and finally, a nonlinear polynomial mapping model incorporating chromatic aberration compensation is constructed. Through these steps, a mapping relationship can be established between the original image coordinate system and the ideal stereoscopic computation image coordinate system, thus obtaining the corresponding mapping matrices.

[0167] The third calculation module generates reference surface information for monocular calculation by capturing images of the underwater plane at different distances using the first and second wavebands. This reference surface information serves as the reference surface for underwater left and right monocular camera calibration. This reference surface information is crucial for the calibration of the underwater monocular camera and subsequent target detection and localization tasks. First, underwater monocular 3D reconstruction models are established for the first and second wavebands respectively. Then, binocular parallax information and monocular depth information are fused, and finally, a 3D point cloud reference surface with refraction compensation is generated. Through these steps, a 3D reference surface that considers underwater light refraction and camera imaging characteristics is obtained, providing an accurate calibration reference for the underwater monocular camera.

[0168] The first calibration module provides the basic parameters of the camera in air for the entire system, serving as the foundation for calibration and calculations in all subsequent modules. Based on the results of the first calibration module, the first calculation module further determines the relationship between the structured light and the camera, preparing for underwater calibration.

[0169] Based on the first calibration module and the first calculation module, the second calibration module, combined with underwater images, completes the calibration of the relative positional relationship between the camera and the glass cover, providing key pose parameters for subsequent calculation of the mapping matrix and generation of reference surface information.

[0170] The second calculation module uses the calibration results from the previous module to calculate the mapping matrix for image conversion, providing accurate image data for binocular calculation.

[0171] The third calculation module integrates information from all the preceding modules, including camera parameters, structural calibration results, the relative positions of the camera and the glass cover, and the mapping matrix, to generate reference surface information that satisfies monocular calculations, providing a complete reference for underwater monocular calibration. The various modules are interdependent and progressively advance, jointly completing the calibration task of the multi-band underwater active binocular camera.

[0172] This embodiment is based on an active binocular camera, which is suitable for both close-range and long-range measurements. For light of different wavelengths, initial calibration is performed on the water to calculate the intrinsic and extrinsic parameters of the binocular camera and the intrinsic and extrinsic parameters of the monocular structured light. The camera is then recalibrated underwater, and the final mapping matrix is ​​obtained by taking into account the effect of refraction. This greatly improves the accuracy of the underwater active binocular camera, makes subsequent depth calculation more convenient, and can expand the reconstruction range at close range.

[0173] This invention also provides a multi-band underwater active binocular camera calibration device, including a processor and a memory storing executable instructions for the processor. The processor is configured to execute steps of a multi-band underwater active binocular camera calibration method by executing the executable instructions.

[0174] As described above, this embodiment is based on an active binocular camera, which is suitable for both close-range and long-range measurements. For light of different wavelengths, initial calibration is performed on the water to calculate the intrinsic and extrinsic parameters of the binocular camera and the intrinsic and extrinsic parameters of the monocular structured light, respectively. Then, recalibration is performed underwater. By taking into account the effect of refraction, the final mapping matrix is ​​obtained, which greatly improves the accuracy of the underwater active binocular camera, makes subsequent depth calculation more convenient, and can expand the reconstruction range at close range.

[0175] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, collectively referred to herein as a "circuit," "module," or "platform."

[0176] Figure 7 This is a schematic diagram of a multi-band underwater active binocular camera calibration device according to an embodiment of the present invention. The following refers to... Figure 7 To describe an electronic device 600 according to this embodiment of the present invention. Figure 7 The electronic device 600 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0177] like Figure 7 As shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including storage unit 620 and processing unit 610), a display unit 640, etc.

[0178] The storage unit stores program code, which can be executed by the processing unit 610 to perform the steps described in the section on a multi-band underwater active binocular camera calibration method of this specification, according to various exemplary embodiments of the present invention. For example, the processing unit 610 can perform actions such as... Figure 1 The steps are shown in the figure.

[0179] Storage unit 620 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 6201 and / or cache memory 6202, and may further include a read-only memory (ROM) 6203.

[0180] Storage unit 620 may also include a program / utility 6204 having a set (at least one) program module 6205, such program module 6205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a grid environment.

[0181] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0182] Electronic device 600 can also communicate with one or more external devices 700 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 600, and / or with any device that enables electronic device 600 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 650. Furthermore, electronic device 600 can also communicate with one or more meshes (e.g., local area network (LAN), wide area network (WAN), and / or public meshes, such as the Internet) via mesh adapter 660. Mesh adapter 660 can communicate with other modules of electronic device 600 via bus 630. It should be understood that, although... Figure 7 As not shown in the diagram, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.

[0183] This invention also provides a computer-readable storage medium for storing a program that, when executed, implements the steps of a multi-band underwater active binocular camera calibration method. In some possible implementations, various aspects of the invention can also be implemented as a program product comprising program code that, when run on a terminal device, causes the terminal device to execute the steps described in the foregoing section on a multi-band underwater active binocular camera calibration method according to various exemplary embodiments of the invention.

[0184] As shown above, this embodiment is based on an active binocular camera, which is suitable for both close-range and long-range measurements. For light of different wavelengths, initial calibration is performed on the water to calculate the intrinsic and extrinsic parameters of the binocular camera and the intrinsic and extrinsic parameters of the monocular structured light, respectively. Then, recalibration is performed underwater. By taking into account the effect of refraction, the final mapping matrix is ​​obtained, which greatly improves the accuracy of the underwater active binocular camera, makes subsequent depth calculation more convenient, and can expand the reconstruction range at close range.

[0185] Figure 8 This is a schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present invention. (Reference) Figure 8 As shown, a program product 800 for implementing the above-described method according to an embodiment of the present invention is described. This product may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0186] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0187] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0188] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of mesh, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0189] This embodiment is based on an active binocular camera, which is suitable for both close-range and long-range measurements. For light of different wavelengths, initial calibration is performed on the water to calculate the intrinsic and extrinsic parameters of the binocular camera and the intrinsic and extrinsic parameters of the monocular structured light. The camera is then recalibrated underwater, and the final mapping matrix is ​​obtained by taking into account the effect of refraction. This greatly improves the accuracy of the underwater active binocular camera, makes subsequent depth calculation more convenient, and can expand the reconstruction range at close range.

[0190] The various embodiments described in this specification are presented in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0191] The specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.

Claims

1. A calibration method for a multi-band underwater active binocular camera, characterized in that, include: Step S1: In the air, project structured light onto the calibration plate using the first wavelength, and obtain the first left image and the first right image through the left camera and the right camera respectively, to perform the intrinsic and extrinsic parameter calibration of the underwater binocular camera; In the air, project structured light onto the calibration plate using the second wavelength, and obtain the second left image and the second right image through the left camera and the right camera respectively, to perform the intrinsic and extrinsic parameter calibration of the underwater binocular camera; Step S2: Locate the left structure on the water based on the parameters of the first left image, the second left image, the left camera, and the projector; locate the right structure on the water based on the parameters of the first right image, the second right image, the right camera, and the projector. Step S3: Underwater, the projector projects structured light onto the calibration plate using the first wavelength band, and the left and right cameras respectively obtain a third left image and a third right image. Underwater, the projector projects structured light onto the calibration plate using the second wavelength band, and the left and right cameras respectively obtain a fourth left image and a fourth right image. Combining the first left image, the first right image, the calibration results of the left structured light above water, and the calibration results of the right structured light above water, the relative positional relationship between the left camera and the glass cover plate, and the relative positional relationship between the right camera and the glass cover plate are calibrated. Step S4: Calculate the first mapping matrix of the first band underwater from the original image to the stereo computing image and the second mapping matrix of the second band underwater from the original image to the stereo computing image; Step S5: Use the first band and the second band to capture images of the plane at different underwater distances, respectively, as reference surfaces for underwater left and right single-target positioning, and generate reference surface information that satisfies the single-target calculation.

2. The method for calibrating a multi-band underwater active binocular camera according to claim 1, characterized in that, The projection power of the projector in the first and second wavebands can be automatically adjusted according to the light intensity of the underwater environment.

3. The multi-band underwater active binocular camera calibration method according to claim 1, characterized in that, The calculation of the first mapping matrix and the second mapping matrix is ​​based on an underwater imaging model that takes into account the refractive index of water, the attenuation characteristics of underwater light, and the imaging distortion of the camera.

4. The multi-band underwater active binocular camera calibration method according to claim 1, characterized in that, In steps S1 and S3, the placement position and angle of the calibration plate remain consistent underwater and in air.

5. The method for calibrating a multi-band underwater active binocular camera according to claim 1, characterized in that, The relative positional relationship calibration in step S3 includes: Step S31: Establish an underwater light refraction model based on Snell's law; Step S32: Infer the relative pose of the camera and the glass by using the image offset caused by the glass cover. Step S33: Optimize pose parameters using the Levenberg-Marquardt algorithm.

6. The method for calibrating a multi-band underwater active binocular camera according to claim 1, characterized in that, The generation of the first and second mapping matrices in step S4 includes: Step S41: Extract feature point pairs of the calibration board in different bands; Step S42: Calculate the affine transformation parameters for underwater imaging; Step S43: Construct a nonlinear polynomial mapping model that includes color difference compensation.

7. The calibration method for a multi-band underwater active binocular camera according to claim 1, characterized in that, The generation of reference surface information in step S5 includes: Step S51: Establish underwater monocular three-dimensional reconstruction models for the first band and the second band respectively; Step S52: Fuse binocular parallax information with monocular depth information; Step S53: Generate a 3D point cloud reference surface with refraction compensation.

8. A multi-band underwater active binocular camera calibration system, used to implement the multi-band underwater active binocular camera calibration method according to any one of claims 1 to 7, characterized in that, include: The first calibration module is used to project structured light onto the calibration board in the air at a first wavelength, and obtain a first left image and a first right image through the left and right cameras respectively, to perform intrinsic and extrinsic parameter calibration of the underwater binocular camera; and to project structured light onto the calibration board in the air at a second wavelength, and obtain a second left image and a second right image through the left and right cameras respectively, to perform intrinsic and extrinsic parameter calibration of the underwater binocular camera. The first calculation module is used to perform underwater left structure cursor positioning based on the parameters of the first left image, the second left image, the left camera, and the projector; and to perform underwater right structure cursor positioning based on the parameters of the first right image, the second right image, the right camera, and the projector. The second calibration module projects structured light onto the calibration plate underwater using the first wavelength band, and obtains a third left image and a third right image through the left camera and the right camera, respectively. Underwater, the module projects structured light onto the calibration plate underwater using the second wavelength band, and obtains a fourth left image and a fourth right image through the left camera and the right camera, respectively. Combining the first left image, the first right image, the calibration results of the left structured light above water, and the calibration results of the right structured light above water, the module completes the calibration of the relative positional relationship between the left camera and the glass cover plate, and the relative positional relationship between the right camera and the glass cover plate. The second calculation module is used to calculate the first mapping matrix of the first band underwater from the original image to the stereo calculation image and the second mapping matrix of the second band underwater from the original image to the stereo calculation image. The third calculation module is used to generate reference surface information that satisfies monocular calculation by taking images of the plane at different underwater distances using the first band and the second band, respectively, as reference surfaces for underwater left and right monocular positioning.

9. A calibration device for a multi-band underwater active binocular camera, characterized in that, include: processor; A memory in which executable instructions of the processor are stored; The processor is configured to perform the steps of the multi-band underwater active binocular camera calibration method according to any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium for storing a program, characterized in that, When the program is executed, it implements the steps of the multi-band underwater active binocular camera calibration method according to any one of claims 1 to 7.