Study of Underwater Large-Target Localization Based on Binocular Camera and Laser Rangefinder

<jats:p>Currently, for underwater close-range large-target localization, visual localization techniques fail since large targets completely occupy the camera’s field of view at ultraclose ranges. To address the issue, a multi-stage optical localization method combining a binocular camera and a single-point laser rangefinder is proposed in this paper. The proposed method comprises three parts. First, the imaging model of the underwater camera is modified, and a laser rangefinder is used to further correct the underwater calibration results of the binocular camera. Second, YOLOv8 is applied to recognize the targets to prepare for target localization. Third, extrinsic calibration of the binocular camera and laser rangefinder is performed, and a Kalman filter is employed to fuse the target position information measured by the binocular camera and laser rangefinder. The experimental results show that, compared with using a binocular camera alone, the proposed method can accurately and stably locate the target at close ranges with an average error of only 2.27 cm, without the risk of localization failure, and reduces binocular localization error by 90.57%.</jats:p>

section_content: With the continuous exploration of marine environments, underwater object detection technology has been widely used in autonomous navigation [1], obstacle avoidance of underwater vehicles [2], and various underwater detection tasks [3]. 

Most underwater localization technologies rely on acoustic signals, optical signals, and electromagnetic signals. In acoustic localization [4, 5], electroacoustic conversion is used to measure the propagation time and orientation of acoustic waves based on the propagation characteristics of acoustic waves in water. These measurements are used to determine the position of underwater objects. Sonar has a long detection range and is not affected by water turbidity [6]. In electromagnetic localization [7, 8], underwater objects are localized by measuring the abnormal magnetic field generated by the superposition of underwater magnetic material in the geomagnetic field. This method has a unique advantage in detecting underwater low-noise submarines, iron, or strong magnetic objects buried on the sea floor. Optical localization mainly refers to visual localization [9]. In this approach, optical imaging is applied to obtain target images, and a visual locating algorithm is used to obtain the position of targets in the images, which are high resolution and contain rich information. Visual localization has become an important technology for underwater object observation, recognition, and manipulation. 

However, the popular technologies cannot fully satisfy the requirements for locating large underwater targets at close ranges, probably within 5 m, and they all have their own limitations. Acoustic localization is commonly used for medium-and long-range target localization, and its detection range is correlated with the frequency of the sound wave and ranges from hundreds to thousands of meters. Electromagnetic localization can be interrupted by an existing environmental magnetic field, and this technique is suitable for the rough localization of targets [6]. Optical localization can achieve high-precision localization at close ranges underwater. However, large targets at ultraclose ranges will fill the camera's field of view, resulting in visual localization failure. Inspired by autonomous driving [10] on land, we incorporate a single-point laser rangefinder to address the issue that visual localization fails at ultraclose ranges. A camera is used to recognize and locate large targets at close ranges, and a laser rangefinder is used to locate large targets at ultraclose ranges. 

Many studies have been conducted on underwater visual localization. Zhang et al. [11] estimated the relative distance between a spherical target and a monocular camera by extracting the radius dimension of the target contour in the image plane. Xu et al. [12] proposed a method of relative position estimation using multiple ArUco markers [13], in which the information extracted by multiple markers was fused to improve the localization accuracy. Arturo et al. [14] identified augmented reality (AR) markers to obtain the relative positions of underwater vehicles and markers. Li et al. [15] proposed a redundant localization method that combined monocular and binocular vision. They first used the P3P (perspective three-point) question [16] to locate the array light source via monocular vision, then used binocular vision to locate the light source again, and finally fused the information regarding the two positions. Wang et al. [17] used two cameras to locate an underwater circular target according to the binocular ranging principle. Meng et al. [18] extracted color features to recognize a target and then located the target through binocular vision. Zhong et al. [19] applied binocular vision to identify three centrosymmetric navigation lamps and estimate relative positions. 

Few studies have been conducted on underwater laser applications. Chris et al. 

[20] used a CCD camera and two-line lasers for distance measurement of multiple positions of underwater targets in a scenario where acoustic and visual detection were difficult. Takashi [21] et al. used a camera and two single-point lasers to measure the distance between the target and the ocean floor and estimate the pitching state of an underwater vehicle. In the literature [22] [23] [24], the application of an underwater laser scanner was described; however, this scanner greatly differed from a laser rangefinder. 

The visual localization method using navigation lamps and markers is mainly suitable for underwater autonomous docking, in which the lamps or markers are placed in advance. In this study, the position of the target is unknown, and no markers or lamps are used. A binocular camera can achieve target localization without external objects. Therefore, a binocular camera and a single-point laser rangefinder are selected as the optical localization devices for underwater vehicles for large, close-range targets. The main innovations of this study can be summarized as follows:
section_name: Introduction

section_content: A method that utilizes a laser rangefinder to aid in calibrating the camera is designed to significantly enhance the accuracy of binocular camera calibration.
section_name: •

section_content: A multi-stage optical localization method that combines a binocular camera and a laser rangefinder is designed to achieve stable and accurate target localization. 

The remainder of this study is organized as follows: Section 2 describes the underwater optical localization system and the different stages of underwater close-range large-target localization. Section 3 details the specific implementation of the optical localization method for close-range large-target localization. Section 4 presents the experimental results of underwater close-range large-target localization. Section 5 concludes the paper.
section_name: •

section_name: Design of the Optical Localization System

section_content: The underwater optical localization system is composed of a target perception module and an image processing module. As shown in Figure 1a, the target perception module contains a binocular camera and a laser rangefinder. The baseline length of the binocular camera is 63 mm, the focal length is 2. 8 mm, and the maximum field of view is 90 • (H) × 60 • (V) × 100 • (D). The measuring range of the binocular camera on land is 0. 1 m-15 m. Different wavelengths absorb light to different degrees underwater, with the blue-green wavelengths absorbing the least underwater [25]. In the literature [26], the power of a red laser is about ten times that of a green laser, but the high absorption of the red wavelength severely limits the maximum detection range. Considering this effect, underwater lidar also selects blue-green light as the operating wavelength to effectively minimize the absorption of light by water [27]. Therefore, the green band wavelength is selected for the laser rangefinder in the study. The measuring frequency of the laser rangefinder is 3 Hz, the measuring range is 0. 05 m-5 m, and the measuring accuracy is ±3 mm. The image processing module uses a Jetson Xavier industrial computer to deploy the deep convolutional neural network model YOLOv8. In the optical localization system, the video stream collected by the binocular camera is transmitted to the Jetson Xavier processor through a USB cable, which is used to detect the target, the relative position of the target is calculated, and the position information is published through the ROS node. The laser rangefinder returns distance information and this information is also published through the ROS node. The companion computer receives the target information obtained from the binocular camera and laser rangefinder for further processing. The localization system is mounted on an underwater vehicle manipulator system (FAUVMS). FAUVMS, developed by the Shenyang Institute of Automation, is a novel underwater intervention system with manipulators as its core. It validates underwater interventions from vehicle-based to manipulator-based operations. It consists primarily of an underwater vehicle and two heavy-load electric manipulators with a forward operating range of up to 630 mm, as shown in Figure 1b. The underwater trajectory tracking and manipulation performance has been demonstrated in previous experiments. More details about FAUVMS are provided in [28]. The intervention task for FAUVMS is to recognize (primarily large) underwater targets and manipulate them at close ranges. In this case, distinctive features are lacking because the target fully fills the field of view of the binocular camera in the manipulation process; as a result, the binocular camera cannot locate the target and visual localization fails. A novel underwater localization method is urgently needed to address this issue.
section_name: Description of the Optical Localization System

section_content: The localization process of the optical localization system for a close-range large target is shown in Figure 2. In the first stage, after the target enters the field of view of the binocular camera, FAUVMS begins to recognize and locate the target and adjust its attitude to make the binocular camera face the target. In the second stage, as FAUVMS gradually approaches the target, the laser rangefinder also begins to work, and the binocular camera and laser rangefinder jointly locate the target. In the third stage, when the large target fills the field of view of the binocular camera, the binocular camera fails to locate the target. At this point, the laser rangefinder independently locates the target until FAUVMS reaches the operating area of the target.
section_name: Different Target Localization Stages

section_content: The specific implementation of the optical localization method proposed in this study is shown in Figure 3. First, considering the influence of the waterproof cover and water, the binocular camera is calibrated underwater. Next, a laser rangefinder is used to correct the underwater calibration results to further improve the underwater binocular ranging accuracy. Then, the image dataset of the target is collected underwater. The deep learning method YOLOv8 is adopted to teach the model to recognize the target and provide pixel coordinates for subsequent target localization. The localization of large underwater closerange targets is divided into three stages. In the first stage, the binocular camera is used to locate the target independently. In the second stage, the binocular camera and laser rangefinder are used to jointly locate the target. To align the coordinate systems of the binocular camera and laser rangefinder, the laser rangefinder and binocular camera are extrinsically calibrated. The target position information obtained by the binocular and laser rangefinder is fused using the Kalman filter (KF). In the third stage, the laser rangefinder locates the target independently. Finally, experiments are conducted in the pool to verify the effectiveness of the scheme.
section_name: Methods

section_content: The relationship between the three-dimensional information of any point in space and the corresponding point in the image can be obtained by calibrating the binocular camera. The camera calibration accuracy directly determines the reliability of the binocular ranging results. However, the underwater binocular camera often requires a waterproof layer, which causes light to refract many times during propagation, so the pinhole imaging model used on land is not suitable for underwater imaging. In this study, the underwater imaging model is modified to conform to the pinhole imaging model, and then a laser rangefinder is applied to further correct the camera parameters.
section_name: Laser Rangefinder-Assisted Camera Calibration

section_content: The pinhole camera model is commonly adopted to represent the imaging principle of cameras. The imaging models of monocular and binocular cameras are the same. As shown in Figure 4a, the size of the image changes as the pinhole plane moves forward and backward. The pinhole camera model is shown as follows:

where f represents the focal length of the camera, Z represents the distance from the hole to the object, X represents the length of the object, and x represents the length of the object on the image plane. For convenience, the transformation process from the world coordinate system to the pixel coordinate system is represented in Figure 4b. Transformation between the world coordinate system and the camera coordinate system can be achieved through coordinate system rotation and translation, as shown in Equation (2). 

where R represents the 3 × 3 rotation matrix, T represents the translation vector, and P(X c, Y c, Z c ) and P(X w, Y w, Z w ) represent world coordinates and camera coordinates of point P, respectively. The relationship between the camera coordinates and image coordinates is shown in Equation ( 3 ), which can be expressed in matrix form, as shown in Equation ( 4 ). 

where P(x, y) represent image coordinates of point P, and ( f x, f y ) represent the focal length of the camera. The relationship between the image coordinates and pixel coordinates is shown in Equation ( 5 ), which can be expressed in matrix form, as shown in Equation ( 6 ). 

where P(u, v) represent pixel coordinates of point P, and (c x, c y ) represent the pixel coordinates in the center of the image. Finally, the transformation relationship between the world coordinate system and the pixel coordinate system can be derived as follows:

where M 1 and M 2 represent the internal and external parameter matrices of the camera, respectively.
section_name: Camera Imaging Model

section_content: Zhang's calibration method [29] is a popular, highly accurate camera calibration method that is often used in land camera calibration. This method is used to calibrate the binocular camera in this study. The appropriate acquisition number of the checkerboard is 18 pairs [30]. To improve the calibration results, 64 pairs of images are collected on land and underwater. The calibration results for the binocular camera on land and underwater are shown in Table 1. 1, only f x /d x and f y /d y change greatly between the calibration results on land and those underwater except for k 1 and k 2, which are radial distortion parameters used to eliminate image distortion. d x and d y are the physical size of a single pixel, which does not change, so the parameter that changes the most is the focal length. To compare the effects of the land and underwater calibration results on binocular ranging, the land and underwater camera calibration results are used for underwater ranging. The binocular ranging is performed within 0. 1 m to 1. 3 m. Each distance is measured five times and the standard variance approximates 0. The ranging results are shown in Figure 5. In Figure 5, the calibration results on land are applied to underwater binocular ranging, and the ranging error is very large and grows linearly. The reason is the binocular camera is not affected by light refraction when calibrated on land, but underwater light refraction cannot be ignored. When the underwater calibration results are applied to underwater binocular ranging, the ranging error is clearly lower, but it still increases as the distance increases and also grows linearly. When the distance is 1. 3 m, the ranging error reaches 0. 1 m. 

Ideally, the slopes of these three lines should match the slope of the black line, but in practice, only the slope of the laser rangefinder always approaches the ideal slope. A comparison between the calibration results for land and underwater water reveals that the most important parameter is the focal length. Moreover, in the literature [31], the largest difference between the camera calibration results after considering the multilayer refraction of underwater light and the calibration results obtained by using Zhang's calibration method is also the focal length. Therefore, the focal length is the key factor for improving binocular underwater ranging. 

To correct the focal length of the camera, the underwater imaging model of the camera is analyzed. The main difference between binocular camera on land and underwater is that binocular cameras must be placed in waterproof covers when used underwater. Light enters the waterproof cover from the water and then enters the camera from the waterproof cover, undergoing two refractions. Therefore, the underwater imaging model no longer conforms to the pinhole camera model. To ensure that the underwater imaging model remains consistent with the pinhole camera model, the underwater imaging model is modified as shown in Figure 6. The waterproof cover is only 2 mm thick, and the refraction of the waterproof cover to the light can be ignored because the thin waterproof cover does not change the light's final direction and only induces a negligible radial shift [32]. In Figure 6, the light starts from the three-dimensional point P and is affected by water refraction. The pixel coordinates of point P on the real image plane are (u, v). If refraction is not considered, the pixel coordinates of point P on virtual image plane I are (u 1, v 1 ). The pixel coordinates obtained without considering refraction are clearly inconsistent with the actual pixel coordinates. Therefore, the dotted line l 1 is extended to find the coordinates (u 2, v 2 ) that agree with the coordinates (u, v). The current focal length changes and is called the virtual focal length f ′. Then, the sources of binocular ranging errors are further analyzed. The schematic diagram of the binocular ranging principle is shown as in Figure 7. According to the triangle similarity principle, we can obtain

Then, we further obtain

where (x lx r ) represents the difference between the x values of point P in the image coordinate system of the left and right cameras, called the disparity. Equation (10) shows that Z w in world coordinates is directly related to disparity and focal length. The camera calibration is calculated according to the pinhole camera mode and does not take water refraction into account. In Figure 6, point P corresponds to (u a, v a ) according to this calibration; however, it actually corresponds to (u, v). The incorrect pixel coordinates cause the incorrect image coordinates. The disparity calculated from the image coordinates directly affects the calculation of Z w. Therefore, the binocular camera still has error after underwater calibration. However, in Figure 6, considering the effect of refraction to approximate the underwater imaging model as a pinhole model, a virtual focal length f ′ is constructed so that the P point correctly corresponds to (u, v), which can eliminate the error. Therefore, the calculation of the unknown f ′ is key. The modified underwater imaging model is shown as

According to Equation ( 5 ), f ′

x and f ′ y can be further expressed as

where (X w, Y w, Z w ) represent the world coordinates of point P, P(x u, y v ) represent the image coordinates corresponding to the pixel coordinates P(u, v), ∆d represents the distance difference between the actual lens and the virtual lens, which is very small and can be ignored, and f
section_name: Modified Model for Underwater Imaging

section_content: x and f ′ y represent the virtual focal lengths in the x and y directions, respectively. 

P(X w, Y w, Z w ) is difficult to obtain using a binocular camera. However, it can be obtained more easily by using a laser rangefinder and combining the position relationship between the laser rangefinder and the binocular camera. The detailed derivation of the position relationship is described in Section 3. 3. 1. Finally, the virtual focal length can be obtained to correct the camera calibration result.
section_name: ′

section_content: Target recognition is the key step in target localization. In the traditional target recognition method, the target is recognized by learning from artificially extracted features. This method exhibits strong real-time performance but can be easily impacted by different environments. In target recognition based on deep learning, information from pixel-level raw data to abstract semantic concepts is extracted layer by layer, which gives this method an outstanding advantage in extracting global features and context information from images. As a result, this method is greatly adaptable to target recognition in different environments. 

The YOLO [33] [34] [35] series is used to input the image directly into the detection model and output the results. The main advantages of this series are its simple structure, small size, and fast speed. The most recent YOLO version is YOLOv8 [36], which has a higher recognition accuracy, smaller size, and faster speed than the previous version. Due to its limited computing resource requirements and high real-time performance, lightweight YOLOv8n is selected for the target recognition method in this study. 

The dataset for underwater targets is collected in different pools and under different light conditions, as shown in Figure 8a. The state of the target in the dataset is relatively rich. The aspect ratio, position, and size of the target pixel in the dataset are constantly changing. The dataset is randomly divided into a training set, a test set, and a validation set at a ratio of 8:1:1. The number of training rounds is set to 50, and the number of single training images is set to 4. The dataset is enhanced using the mosaic method. where TP represents the number of samples that are predicted to be positive and are actually positive, FP represents the number of samples that are predicted to be positive but are actually negative, and FN represents the number of samples that are predicted to be negative but are actually positive. In this study, AP is used to evaluate the recognition effect of the YOLOv8 model. AP is the average accuracy of different recall rates and is represented on the PR curve as the area enclosed by the PR curve. The IoU is the intersection of the real box and the predicted box. IoU = 0. 5 indicates that the target is considered detected at IoU greater than 0. 5. As shown in Figure 9, when IoU is 0. 5, the AP of YOLOv8 for target recognition reaches 0. 982, which shows that YOLOv8 performs well in underwater target recognition.
section_name: Underwater Target Recognition

section_content: The localization of close-range large targets by the optical localization system consists of three stages. The flow chart of this process is shown in Figure 10. The condition of entering the second stage is determined by whether the laser rangefinder works, and the condition of entering the third stage is determined by whether the binocular ranging fails. The localization schemes of the three stages can be switched smoothly to effectively complete close-range large-target localization by the optical localization system.
section_name: Localization of Large Targets Underwater

section_content: To achieve multisensor fusion, the coordinate systems of the binocular camera and laser rangefinder must be consistent. However, the relative position relationship between the binocular camera and laser rangefinder is unknown, and coordinate transformation cannot be performed directly. After the binocular camera and laser rangefinder are fixed, whether on land or underwater, their position relationship does not change. The binocular camera is not accurate underwater but is accurate on land. Therefore, we determine the transformation relationships of the binocular camera and laser rangefinder on land. The laser rangefinder leaves a laser spot on the target. This spot can be detected by the binocular camera as a feature point, and the world coordinates of the point can thereby be obtained. The position of the laser spot is represented in the coordinate system of the laser rangefinder and the binocular camera, so the transformation relationship between the two coordinates can be identified. 

The laser spot recognition method is shown in Figure 11. Due to the high brightness of the laser spot, the image is transferred from the BGR color space to the gray space and flipped, and the gray value is used to recognize the laser spot for the first time. The laser spot is approximately a circle, so circularity is used for the second recognition. The pixel area of the laser spot is within a fixed range, so the pixel area size of the laser spot is used for the third recognition. As shown in Figure 12, the laser spot can be stably recognized by the binocular camera underwater by using this method. 

According to the relationship between the monocular camera and laser rangefinder in the literature [37], we establish a relationship diagram between the binocular camera and laser rangefinder, as shown in Figure 13a. The laser spot on the checkerboard can be recognized by the binocular camera; thus, the camera coordinates of the laser spot can be obtained. The laser rangefinder returns only one distance value, L. As shown in Figure 13b, the distance value of the laser rangefinder can be transformed into coordinates in the binocular camera coordinate system. The camera coordinates of the laser spot are expressed as

where (X c, Y c, Z c ) represent the camera coordinates of the laser spot, (cosθ x, cosθ y, cosθ z ) represent the angles between the laser ray and the axis of the camera coordinate, and (t x, t y, t z ) represent the translation vector between the camera origin and the laser rangefinder. 

As shown in Figure 13b, cosθ x, cosθ y, and cosθ z satisfy Equation (15). Therefore, the camera coordinates of the laser spot are further expressed as

In Figure 13a, the pixel coordinates of the laser spot are (u, v). According to Equations ( 4 ) and ( 6 ), the relationship between the distance L and the pixel coordinates (u, v) is expressed as

where ( f x, f y ) represents the focal length of the camera, (d x, d y ) represent the physical size of a single pixel in the x and y directions, and (c x, c y ) represent the pixel coordinates of the center of the image. At different distances where the laser spot can be recognized by the camera, Equations ( 17 ) and ( 18 ) are stacked, and the unknowns (cosθ x, cosθ y, cosθ z, t x, t y, t z ) are solved.
section_name: Extrinsic Calibration of Binocular Camera and Laser Rangefinder

section_content: • First stage of target localization. 

The principle of binocular ranging is shown in Figure 7. According to Figure 7 and to Equation (10), we continue to further obtain

where f represents the focal length of the camera, and y l is the y values of point P in the image coordinate systems of the left camera, and P(X w, Y w, Z w ) represent the world coordinates of point P. 

In this study, the left camera coordinate system is set as the world coordinate system, and P(X w, Y w, Z w ) and P(X c, Y c, Z c ) are the same. Therefore, the distance estimation of the first stage can be expressed as

The center of the target anchor frame in target recognition is taken as the target positioning point in this stage. To prevent a single-point measurement from deviating, the point and its four neighbors are measured simultaneously. The median distance of these five points is considered the distance.
section_name: Distance Estimation Based on the Binocular Camera and Laser Rangefinder

section_content: Second stage of target localization. 

In this stage, where the binocular camera and laser rangefinder work together, FAU-VMS acquires two types of distance information about the target. The measurement principle of the laser rangefinder is based on the time difference between laser emission and reception, which differs from the principle of the binocular camera. Therefore, to locate the target more reliably, the distances obtained by the binocular camera and laser rangefinder are fused by the KF. Before distance fusion, the localization frequency of the binocular camera must be kept consistent with that of the laser rangefinder. The distances measured by the binocular camera and laser rangefinder are set to D 21 and D 22, respectively, and k is the Kalman gain in the range [0, 1]. Then, the fused distance D 2 is shown as

The standard deviation of D 2 is set to σ, and the standard deviations of D 21 and D 22 are set to σ 1 and σ 2, respectively. Then, the variance of D 2 can be expressed as

Considering that D 21 and D 22 are independent of each other, we further obtain

To minimize the variance of D 2, the derivative of Equation ( 23 ) with respect to k is set to 0. The Kalman gain k is solved as

Finally, the fused distance D 2 of the binocular camera and laser rangefinder is calculated as

Notably, the binocular camera takes the laser spot on the target as the target positioning point in this stage. The distance returned by the laser rangefinder can be fused with the distance calculated by the binocular camera only after this distance is converted into camera coordinates.
section_name: •

section_content: Third stage of target localization. 

In this stage, the laser rangefinder is used to estimate the distance of the target. This process also requires converting the distance returned by the laser rangefinder into camera coordinates and using Equation (20) to calculate the distance to the target, as shown
section_name: •

section_content: The laser rangefinder-assisted camera calibration experiment and the large-target localization experiment are conducted in a standing pool that is 3 m × 2 m × 1. 2 m with no disturbances. The positions of the binocular camera and laser rangefinder are fixed to each other. The underwater calibration of the binocular camera is completed, and the initial calibration parameters are obtained. The laser attenuates underwater, and different water qualities affect the degree of laser attenuation. Therefore, after the laser rangefinder is placed in water, it must be corrected. To ensure the convenience of relative distance measurement during the experiment, FAUVMS is fixed in the pool.
section_name: Experiment and Analysis

section_content: The distances returned by the laser rangefinder and the world coordinates of the laser spot acquired by the binocular camera are collected at 0. 5 m, 1. 0 m, 1. 5 m, 2. 0 m, and 2. 5 m on land. L and spot coordinates are all measured five times and then the average is taken. Some data are shown in Table 2. The unknowns can be solved using Equations ( 3 ) and ( 4 ), as shown in Table 3. In the pool, we measure the distance of the checkerboard at different distances five times. Finally, we correct the laser rangefinder until it works in the pool. The underwater ranging effect of the laser rangefinder is shown in Table 4, and the ranging error is very small. The distance returned by the laser rangefinder is transformed into coordinates in the world coordinate system underwater according to Equation (14). The binocular camera is used to recognize the laser spot and obtain the pixel coordinates of the spot. According to Equation (12), the focal lengths f ′ x and f ′ y can be calculated from the world and pixel coordinates of the laser spot. These lengths are calculated every 0. 1 m within 1. 0 m to 2. 2 m. The calculated results are partially shown in Table 5. x and f ′ y are roughly distributed around a certain value. The recognized range of the laser spot is a circular area. The world coordinates of the laser spot are obtained using the center of this area as the pixel coordinates. However, the pixel coordinates of the laser spot are not always accurate; the changed world coordinates significantly affect f 6. Error b and Error a represent the binocular ranging errors before and after correction, respectively. The ranging error and standard deviation curves of both are shown in Figure 14. The binocular ranging error is significantly reduced after the focal length correction. The average error changes from 0. 184 m to 0. 017 m, a reduction of 90. 57%, which demonstrates the effectiveness of the laser rangefinder in assisting binocular camera calibration.
section_name: Experiments on Camera Calibration Assisted by Laser Rangefinder

section_content: In this study, the field of view of the binocular camera is filled only when the target with a 1 m diameter is 0. 5 m away from the camera. To facilitate underwater experiments, a 0. 34 m diameter floating ball is used as a substitute for the large target. We acquire floating ball images under different water quality and light conditions and train the network to obtain the weight model file after training with YOLOv8. Then, we deploy YOLOv8 on the NVIDIA Jeston NX of the FAUVMS platform to complete the preparation before target localization. 

Experiments are conducted in the range of 0. 2 m-2. 2 m. The distance from the floating ball from 1. 3 m to 2. 2 m is set as the first stage, and the distance from the floating ball from 0. 6 m to 1. 2 m is set as the second stage. To prevent FAUVMS from colliding with the target while disposing of it, a safety distance of at least 0. 2 m is maintained between the two, so the minimum distance of the method is set to 0. 2 m, so the distance from the floating ball from 0. 2 m to 0. 5 m is set as the third stage. In the first stage, the binocular camera is used for distance estimation experiments at distances of 1. 3 m, 1. 4 m, 1. 5 m, 1. 6 m, 1. 7 m, 1. 8 m, 1. 9 m, 2. 0 m, and 2. 1 m. In the second stage, the binocular camera and laser rangefinder are used for distance estimation experiments at 0. 6 m, 0. 7 m, 0. 8 m, 0. 9 m, 1. 0 m, 1. 1 m, and 1. 2 m, and the fused result of the laser rangefinder and the binocular camera is considered the distance. In the third stage, assuming that the floating ball fills the field of view of the binocular camera and the binocular ranging fails, the laser rangefinder alone is used for the distance estimation experiment at 0. 2 m, 0. 3 m, 0. 4 m, and 0. 5 m. The three stages of floating ball localization are shown in Figure 15. 

Since the floating ball is spherical, precisely placing the floating ball at the specified distance when it moves is difficult. The checkerboard is placed in front of the floating ball perpendicular to the ground and tangent to the floating ball. The thickness of the checkerboard is only 2 mm, so the checkerboard can be ignored. The distance between the binocular camera and the checkerboard is considered the distance between the binocular camera and the floating ball. In this way, the floating ball can be placed precisely at the specified distance. Each distance is measured eight times and the standard deviation is calculated and found to be relatively minimal. The errors between all averages and the real distance are also calculated. The experimental results of the relative distance estimation in the three stages are shown in Tables 7 8 9. A more intuitive comparison is shown in Figure 16. To satisfy FAUVMS that it can intervene at the designated position of the target, the proposed method needs to achieve target localization accuracy within at least 10 cm. Figure 16 shows that the proposed method can meet the need and estimate the relative distance of the floating ball more accurately and stably in the three stages. As illustrated in Figure 16b, in the first stage, as the distance increases, the distance error of the binocular camera increases, but the maximum error is only approximately 7 cm. The error jump occurs because the distance measurement method of the binocular camera, in which disparity is used to calculate distance, is not very stable. In the second stage, errors are within 2 cm, excluding the error at 1. 1 m, which reaches 3. 4 cm. The outlier is caused by the instability of the binocular camera in recognizing the laser spot, but the error in the distance returned by the laser rangefinder is small. Compared with that in the second stage, the error in the third stage is higher, and an error jump occurs, but all the errors remain within 5 cm. The errors increase because the floating ball is round. As the distance decreases, the position of the laser spot in the floating ball deviates, so the error becomes larger. In addition, the error jump is caused by protrusions on the floating ball surface. Overall, the average error of the three stages is only 2. 27 cm. The proposed method can effectively achieve the localization of large underwater targets in close range.
section_name: Experiment on Underwater Close-Range Large-Target Localization

section_content: In this paper, for underwater close-range large-target localization, we propose a multistage optical localization method that combines a binocular camera and a laser rangefinder. To improve the underwater ranging accuracy of the binocular camera, we modify the imaging model of the underwater camera to ensure that it continually fits the pinhole camera model, and we further improve the underwater calibration results of the binocular camera by using a laser rangefinder. To achieve accurate underwater target recognition, we adopt YOLOv8 to train the target image dataset from different pools and under different light conditions. The test results show that the AP(Average Precision) of the target reaches 0. 982 when IoU(Intersection over Union) = 0. 5. To align the coordinate systems of the binocular camera and laser rangefinder, we extrinsically calibrate the binocular camera and laser rangefinder. For target localization, we divide the localization process into three stages and the distances obtained by the binocular camera and laser rangefinder are fused via the KF. The pool experiment is conducted on the FAUVMS platform. 

The experimental results show that the proposed method can work stably and effectively in the localization of large underwater close-range targets. The average distance error is only 2. 27 cm, and the maximum error approaches 7 cm in the three stages. Compared with the method using a binocular camera alone, the proposed method does not exhibit localization failure when facing large targets at close ranges, and the error in underwater binocular localization is reduced by 90. 57%. 

In this study, the experiments are conducted in a static clear water pool and are not attempted in a turbulent underwater environment. In this environment, in addition to the effects of water and lighting conditions, the target image may be blurred and the laser rangefinder may work unstably, which impacts target localization. Therefore, in future work, we will further investigate the proposed method's capability to adapt to challenging water and light conditions as well as turbulent environments.
section_name: Conclusions

section_content: Acknowledgments: Thanks to all the reviewers for their contributions to improving the quality of this paper.

section_content: Funding: This research was funded by the Youth Innovation Promotion Association, Chinese Academy of Sciences ( 2023208 ), and the fundamental research project of SIA. 

Institutional Review Board Statement: Not applicable.

section_name: Data Availability Statement:

section_content: The data can be obtained from the corresponding author.
section_name: Data Availability Statement:

section_name: Conflicts of Interest:

section_content: Author Contributions: Conceptualization, Q. Z. and Q. T. ; methodology, W. X. and Q. T. ; writingoriginal draft preparation, W. X. ; writing-review and editing, W. X., X. Z. and Q. T. ; funding acquisition, Q. T. All authors have read and agreed to the published version of the manuscript. 

Informed Consent Statement: Not applicable.

section_content: The authors declare no conflicts of interest.
section_name: Conflicts of Interest: