A method for 3D reconstruction of underwater targets based on a suspended pan-tilt platform
By tightly coupling vision and IMU data, combined with B-spline function fitting technology, the problem of 3D reconstruction accuracy when the gimbal is suspended is solved, and high-precision 3D point cloud reconstruction is achieved under the suspended state of the underwater gimbal.
Patent Information
- Application Number
- CN202410714435.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-04
AI Technical Summary
Existing 3D reconstruction methods based on underwater gimbals are difficult to achieve high-precision 3D reconstruction when the gimbal is suspended. It is affected by deep water flow and terrain complexity, resulting in inaccurate scanning information.
Using tightly coupled vision, IMU and structured light technology, through the data fusion of the image acquisition camera and the inertial measurement unit, combined with B-spline function fitting, precise positioning and three-dimensional point cloud reconstruction in the suspended gimbal state are achieved.
It achieves the acquisition of accurate underwater three-dimensional point cloud data when the cloud platform is suspended, provides an underwater cloud platform positioning method, and ensures the accuracy and density of three-dimensional reconstruction.
Smart Images

Figure CN118298112B
Abstract
Description
Technical Field
[0001] The invention relates to the field of underwater detection, and in particular to a method for three-dimensional reconstruction of underwater targets based on a suspended pan-tilt platform. Background Art
[0002] With the continuous deepening of deep-sea resource exploration, there is an urgent need to improve the ability to perceive underwater scene targets in a refined manner. Three-dimensional reconstruction technology based on computer vision has been widely studied because it can intuitively display the optical characteristics of underwater targets, while the three-dimensional reconstruction method based on the underwater rotating gimbal and structured light imaging principle is more likely to obtain depth information and is widely used.
[0003] In recent years, underwater 3D reconstruction methods based on underwater gimbals and structured light imaging principles have been proposed, but most of them require the gimbal to be on the bottom and remain stationary. However, the deep-water environment is complex and often the gimbal cannot be stationary. Therefore, how to achieve high-precision underwater 3D reconstruction when the gimbal is shaking or even suspended has become the key to the application and promotion of the technology. The existing underwater 3D reconstruction methods based on underwater gimbals will shake due to deep water currents or uneven deep water terrain, which causes inaccurate underwater 3D scanning information. Therefore, it is particularly important to develop a 3D reconstruction algorithm that accurately locates and densely points clouds when the gimbal is in a suspended state (3D reconstruction method for underwater targets based on line structured light CN103971406A). Summary of the invention
[0004] In order to overcome the shortcomings and deficiencies in the prior art, the purpose of the present invention is to provide a three-dimensional reconstruction method for underwater scene targets based on vision, IMU and structured light; the method utilizes a tightly coupled method to realize the image acquisition camera and IMU data to achieve precise positioning of the gimbal due to shaking due to suspension; based on the positioning results and the principle of structured light imaging, a refined three-dimensional model of the underwater target can be established more accurately and densely.
[0005] The purpose of the present invention is achieved by at least one of the following technical solutions.
[0006] A method for three-dimensional reconstruction of underwater targets based on a suspended pan-tilt platform comprises the following steps:
[0007] S1. Construct an underwater target 3D reconstruction system, including a point cloud reconstruction camera, an image acquisition camera, an inertial measurement unit (IMU), a line laser, and an underwater gimbal; calibrate the internal parameters of the image acquisition camera and the point cloud reconstruction camera, the external pose relationship of the image acquisition camera and the point cloud reconstruction camera, the internal parameters of the inertial measurement unit, and the external relative pose relationship between the image acquisition camera and the inertial measurement unit; the internal parameters of the inertial measurement unit include random errors and deterministic errors;
[0008] S2. Integrate the inertial measurement unit data, extract and match the image acquisition camera data; fuse the image acquisition camera and the inertial measurement unit in a tightly coupled manner to obtain the position and posture of the image acquisition camera in the world coordinate system;
[0009] S3. Fit the sparse image acquisition camera pose using a B-spline function to obtain the continuous image acquisition camera trajectory in the world coordinate system. According to the external pose relationship between the image acquisition camera and the point cloud reconstruction camera, the disturbance of the point cloud reconstruction camera due to the suspension state can be calculated, thereby obtaining the pose of the point cloud reconstruction camera in the world coordinate system at the corresponding timestamp;
[0010] S4. The line laser emitted by the line laser irradiates the underwater target, and the point cloud reconstruction camera shoots the underwater target. The three-dimensional point cloud of the line laser position of the image taken by the point cloud reconstruction camera is obtained by using the principle of structured light imaging. The position and posture of the camera are reconstructed based on the obtained point cloud, and the three-dimensional point cloud of the line laser position of each frame of the image taken by the point cloud reconstruction camera is inserted into the world coordinate system, thereby realizing the three-dimensional reconstruction of the underwater target.
[0011] Further, in step S1, the underwater target three-dimensional reconstruction system includes a point cloud reconstruction camera, an image acquisition camera, an inertial measurement unit (IMU), a line laser, and an underwater pan-tilt platform;
[0012] The inertial measurement unit is an acceleration measurement unit, which is used for integral calculation and positioning of the position disturbance caused by the underwater gimbal due to the suspension state;
[0013] The underwater gimbal provides driving force for the point cloud reconstruction camera, the image acquisition camera and the inertial measurement unit to achieve underwater rotation;
[0014] The point cloud reconstruction camera is a grayscale camera, which is used to obtain point cloud data of underwater target scenes based on the principle of structured light imaging in conjunction with a line laser.
[0015] The image acquisition camera is a color camera used to acquire underwater RGB images of underwater target scenes, extract matching image features, and accurately position the image acquisition camera in a tightly coupled manner with the inertial measurement unit;
[0016] The point cloud reconstruction camera and the image acquisition camera collect underwater targets according to a set frequency ratio, and before collecting the underwater targets, the internal parameters and external parameters of the point cloud reconstruction camera, the image acquisition camera and the inertial measurement unit are calibrated.
[0017] Furthermore, in step S1, the image acquisition camera, the point cloud reconstruction camera and the inertial measurement unit are calibrated, including: internal distortion calibration of the image acquisition camera, internal distortion calibration of the point cloud reconstruction camera, internal parameter calibration of the inertial measurement unit, external parameter calibration of the image acquisition camera and the point cloud camera, and external parameter calibration of the image acquisition camera and the inertial measurement unit.
[0018] Furthermore, the image acquisition camera and the point cloud reconstruction camera participate in distortion calibration, specifically:
[0019] The image acquisition camera and the point cloud reconstruction camera are rigidly fixed and immersed in water, and the calibration plate is immersed in water. The image acquisition camera and the point cloud reconstruction camera continuously collect images of the calibration plate in different postures; the corner points of the calibration plate in the collected images are extracted, and the camera internal parameters are collected using the calibration image of Zhang Zhengyou Reconstructing camera intrinsics from point cloud and image acquisition camera distortion Reconstructing Camera Distortion from Point Clouds .
[0020] Furthermore, the image acquisition camera and the point cloud reconstruction camera extrinsic parameters are calibrated as follows:
[0021] The image acquisition camera and the point cloud reconstruction camera are rigidly fixed, and the same calibration plate image is collected, the calibration plate is moved, and multiple sets of images are collected repeatedly using the image acquisition camera and the point cloud reconstruction camera respectively;
[0022] According to the size and number of corner points of the calibration plate, the dual-camera extrinsic calibration is completed by Zhang Zhengyou calibration method, that is, the position relationship between the point cloud reconstruction camera and the image acquisition camera is obtained. .
[0023] Furthermore, the inertial measurement unit internal parameter calibration is specifically as follows:
[0024] Place the IMU in water for a set period of time (e.g., two hours) to continuously collect data; use the kalibr tool to calibrate the internal parameters of the IMU , including random errors and deterministic errors.
[0025] Furthermore, the image acquisition camera and the inertial measurement unit external parameter calibration are specifically as follows:
[0026] The image acquisition camera and the inertial measurement unit are rigidly fixed, and the AprilTag calibration plate is placed in front of the camera and the inertial measurement unit. The inertial measurement unit and the camera are moved in the XYZ three-axis direction with an acceleration of not less than 0.1m / s and rotated around the three axes at an angular velocity greater than 0.1rad / s to continuously acquire image data and inertial measurement unit data.
[0027] According to the size and number of corner points of the AprilTag calibration plate, Kalibr is used to calibrate the position relationship of the image acquisition camera relative to the inertial measurement unit, including the rotation matrix and translation vectors .
[0028] Furthermore, the step S2 comprises the following steps:
[0029] S2.1. Input the inertial measurement unit data for integration: The inertial measurement unit data includes linear acceleration data and angular velocity data. Integrate the inertial measurement unit data and obtain the velocity from the inertial measurement unit data from time k to time k+1. , displacement and rotation Respectively expressed as:
[0030]
[0031]
[0032]
[0033] in and They are Moment and The speed of the moment; and They are Moment and The rotation matrix at time; , They are Moment and displacement of time; is the time interval; and are respectively the acceleration and angular velocity obtained by the inertial measurement unit through integration; is the Kronecker product;
[0034] S2.2, input image acquisition camera data, extract features from the image data, and then match them with the features of the previous frame to obtain the image coordinates of the feature points on the adjacent images; obtain the estimated position of the camera through inertial measurement unit data integration and time alignment, and set the initial value of the state quantity; construct an error function, and use the least squares method to obtain the optimal estimate F of the state quantity:
[0035]
[0036] in, The term is the visual error in the image acquisition camera, , From the The rotation matrix and translation vector from the frame image coordinate system to the world coordinate system; is the coordinate of the jth feature point; For the The camera coordinate system corresponding to the frame image; is the projection function; For the The camera coordinate system corresponding to the frame image right observation; m is the total number of frames of the image acquisition camera; n is the The total number of features on the frame image; The term is the IMU constraint, and t is the corresponding Frame image timestamp; T is the corresponding Frame image timestamp; is the sampling time interval of the inertial measurement unit; , Respectively The velocity, acceleration, rotation matrix and translation vector of the frame image in the world coordinate system; are the translation vector, rotation matrix and velocity obtained by integrating the inertial measurement unit at the tth time stamp respectively;
[0037] Solve the optimal estimate F based on the least squares problem, loss function Expressed as:
[0038]
[0039] in, is the increment; is the transpose of the increment; is the high-order term of Taylor expansion; J and H are the Jacobian matrix and Hessian matrix of the loss function respectively; Ignoring the high-order terms of Taylor expansion, the loss function becomes a quadratic function, and the local extreme value and saddle point are solved according to the properties of the H matrix of the stable point with the first-order derivative of 0;
[0040] Thus, the rotation matrix of the image acquisition camera for each frame is obtained by fusing the image acquisition camera and the inertial measurement unit in a tightly coupled manner. with translation vector .
[0041] Furthermore, step S3 includes the following steps:
[0042] S3.1. Reconstructing the external pose relationship of the camera relative to the image acquisition camera using point cloud , convert the image acquisition camera pose into the point cloud reconstruction camera pose, specifically:
[0043]
[0044] in and Reconstruct the camera pose by using the point cloud at the corresponding moment of the i-th frame image of the image acquisition camera obtained by the pose relationship transformation;
[0045] S3.2. Reconstruct the camera trajectory from the point cloud As the three-dimensional trajectory control point, the three-dimensional translation trajectory is represented based on the k-order uniform B-spline function:
[0046]
[0047] Where i is the image captured by the i-th frame image acquisition camera, k is the order of the uniform B-spline function, is the B-spline function, Reconstruct the camera trajectory function for the continuous point cloud fitted by the B-spline function;
[0048] S3.3. Reconstruct the camera's rotation matrix from the point cloud is the rotation control point, in the Lie group Upper k-order cumulative form B-spline function Defined as:
[0049]
[0050] Where i is the camera image captured by the i-th frame, The e-th order corresponding factor derived from the uniform B-spline cumulative mixing matrix depends only on the order of the B-spline; The inverse of the rotation matrix of the point cloud reconstruction camera when taking the i+e-1th frame image, The rotation matrix of the point cloud reconstruction camera when taking the i+eth frame image;
[0051] S34. Based on the continuous trajectory and rotation matrix, obtain the translation vector of each frame corresponding to the timestamp of the point cloud reconstruction camera With the rotation matrix , d is the d frame of the point cloud reconstruction camera, The time corresponding to the d-th frame image of the point cloud reconstruction camera.
[0052] Furthermore, the step S4 is specifically as follows:
[0053] Calculate the 3D point of the laser line position in the point cloud reconstruction camera image , reconstruct the camera translation vector based on the point cloud With the rotation matrix , reconstruct the coordinate points of the point cloud in the camera coordinate system Transfer to the world coordinate system and get the coordinate point in the world coordinate system , specifically expressed as:
[0054]
[0055] Insert the 3D point cloud generated by reconstructing the camera image of each frame into the world coordinate system to obtain a dense point cloud of the underwater target , l Total number of camera frames to reconstruct the point cloud.
[0056] Compared with the prior art, the present invention has the following beneficial effects and advantages:
[0057] 1. The present invention can obtain accurate three-dimensional point cloud data in real time.
[0058] 2. The present invention provides a positioning method for an underwater pan / tilt platform when the pan / tilt platform is in a suspended state.
[0059] 3. The present invention can obtain accurate underwater three-dimensional point cloud data when the underwater pan / tilt platform is in a suspended state. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 This is a diagram showing the rigid fixing structure of each sensor in the underwater target 3D reconstruction system in an embodiment of the present invention;
[0061] Figure 2 Schematic diagram of the process of a method for three-dimensional reconstruction of an underwater target based on a suspended pan-tilt platform in an embodiment of the present invention;
[0062] Figure 3 The figure is a schematic diagram of the parameter calibration process of the underwater target three-dimensional reconstruction method based on the floating pan-tilt platform in an embodiment of the present invention. DETAILED DESCRIPTION
[0063] The implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0064] Example:
[0065] A method for 3D reconstruction of underwater targets based on a suspended pan-tilt platform, such as Figure 2 As shown, the following steps are included:
[0066] S1. Construct an underwater target 3D reconstruction system, including a point cloud reconstruction camera, an image acquisition camera, an inertial measurement unit (IMU), a line laser, and an underwater gimbal; calibrate the internal parameters of the image acquisition camera and the point cloud reconstruction camera, the external pose relationship of the image acquisition camera and the point cloud reconstruction camera, the internal parameters of the inertial measurement unit, and the external relative pose relationship between the image acquisition camera and the inertial measurement unit; the internal parameters of the inertial measurement unit include random errors and deterministic errors;
[0067] The underwater target three-dimensional reconstruction system includes a point cloud reconstruction camera, an image acquisition camera, an inertial measurement unit (IMU), a line laser and an underwater pan-tilt platform;
[0068] In one embodiment, the inertial measurement unit is an acceleration measurement unit with a sampling frequency of 100 Hz to 1000 Hz, which is used for integral calculation and positioning of position disturbances caused by the underwater gimbal due to the suspended state;
[0069] The underwater gimbal provides driving force for the point cloud reconstruction camera, the image acquisition camera and the inertial measurement unit to rotate underwater;
[0070] In one embodiment, the point cloud reconstruction camera is a grayscale camera with a sampling frequency of 30 Hz to 50 Hz, which is used to obtain point cloud data of underwater target scenes based on the principle of structured light imaging in cooperation with a line laser;
[0071] In one embodiment, the image acquisition camera is a color camera with a sampling frequency of 30 Hz to 50 Hz, which is used to acquire underwater RGB images of underwater target scenes, extract matching image features, and accurately position the image acquisition camera in a tightly coupled manner with an inertial measurement unit;
[0072] The point cloud reconstruction camera and the image acquisition camera collect underwater targets according to a set frequency ratio, and before collecting the underwater targets, the internal parameters and external parameters of the point cloud reconstruction camera, the image acquisition camera and the inertial measurement unit are calibrated.
[0073] In one embodiment, each sensor fixing structure in the underwater target 3D reconstruction system is as follows: Figure 1 As shown, it includes an image acquisition camera 1, a point cloud reconstruction camera 2, a line laser 3, an LED array 4 and a control cabin 5. The inertial measurement unit (IMU) is fixed on a rigid crossbar 7; the rigid crossbar 7 is fixed on an underwater gimbal 6.
[0074] Further, in step S1, if Figure 3 As shown, the image acquisition camera, the point cloud reconstruction camera and the inertial measurement unit are calibrated, including: the image acquisition camera's internal distortion calibration, the point cloud reconstruction camera's internal distortion calibration, the inertial measurement unit's internal parameter calibration, the image acquisition camera and the point cloud camera's external parameter calibration, and the image acquisition camera and the inertial measurement unit's external parameter calibration.
[0075] Furthermore, the image acquisition camera and the point cloud reconstruction camera participate in distortion calibration, specifically:
[0076] The image acquisition camera and the point cloud reconstruction camera are rigidly fixed and immersed in water, and the calibration plate is immersed in water. The image acquisition camera and the point cloud reconstruction camera continuously collect images of the calibration plate in different postures; the corner points of the calibration plate in the collected images are extracted, and the camera internal parameters are collected using the calibration image of Zhang Zhengyou Reconstructing camera intrinsics from point cloud and image acquisition camera distortion Reconstructing Camera Distortion from Point Clouds .
[0077] Furthermore, the image acquisition camera and the point cloud reconstruction camera extrinsic parameters are calibrated as follows:
[0078] The image acquisition camera and the point cloud reconstruction camera are rigidly fixed, and the same calibration plate image is collected, the calibration plate is moved, and multiple sets of images are collected repeatedly using the image acquisition camera and the point cloud reconstruction camera respectively;
[0079] According to the size and number of corner points of the calibration plate, the dual-camera extrinsic calibration is completed by Zhang Zhengyou calibration method, that is, the position relationship between the point cloud reconstruction camera and the image acquisition camera is obtained. .
[0080] Furthermore, the inertial measurement unit internal parameter calibration is specifically as follows:
[0081] The inertial measurement unit was placed in water for two hours to continuously collect data; the internal parameters of the inertial measurement unit were calibrated using the kalibr tool , including random errors and deterministic errors.
[0082] Furthermore, the image acquisition camera and the inertial measurement unit external parameter calibration are specifically as follows:
[0083] The image acquisition camera and the inertial measurement unit are rigidly fixed, and the AprilTag calibration plate is placed in front of the camera and the inertial measurement unit. The inertial measurement unit and the camera are moved in the XYZ three-axis direction with an acceleration of not less than 0.1m / s and rotated around the three axes at an angular velocity greater than 0.1rad / s to continuously acquire image data and inertial measurement unit data.
[0084] According to the size and number of corner points of the AprilTag calibration plate, Kalibr is used to calibrate the position relationship of the image acquisition camera relative to the inertial measurement unit, including the rotation matrix and translation vectors .
[0085] S2, integrating the inertial measurement unit data, extracting and matching the image acquisition camera data; fusing the image acquisition camera and the inertial measurement unit in a tightly coupled manner, and obtaining the position and posture of the image acquisition camera in the world coordinate system, including the following steps:
[0086] S2.1. Input the inertial measurement unit data for integration: The inertial measurement unit data includes linear acceleration data and angular velocity data. Integrate the inertial measurement unit data and obtain the velocity from the inertial measurement unit data from time k to time k+1. , displacement and rotation Respectively expressed as:
[0087]
[0088]
[0089]
[0090] in and They are Moment and The speed of the moment; and They are Moment and The rotation matrix at time; , They are Moment and displacement of time; is the time interval; and are respectively the acceleration and angular velocity obtained by the inertial measurement unit through integration; is the Kronecker product;
[0091] S2.2, input image acquisition camera data, extract features from the image data, and then match them with the features of the previous frame to obtain the image coordinates of the feature points on the adjacent images; obtain the estimated position of the camera through inertial measurement unit data integration and time alignment, and set the initial value of the state quantity; construct an error function, and use the least squares method to obtain the optimal estimate F of the state quantity:
[0092]
[0093] in, The term is the visual error in the image acquisition camera, , From the The rotation matrix and translation vector from the frame image coordinate system to the world coordinate system; is the coordinate of the jth feature point; For the The camera coordinate system corresponding to the frame image; is the projection function; For the The camera coordinate system corresponding to the frame image right observation; m is the total number of frames of the image acquisition camera; n is the The total number of features on the frame image; The term is the IMU constraint, and t is the corresponding Frame image timestamp; T is the corresponding Frame image timestamp; is the sampling time interval of the inertial measurement unit; , Respectively The velocity, acceleration, rotation matrix and translation vector of the frame image in the world coordinate system; are the translation vector, rotation matrix and velocity obtained by integrating the inertial measurement unit at the tth time stamp respectively;
[0094] Solve the optimal estimate F based on the least squares problem, loss function Expressed as:
[0095]
[0096] in, is the increment; is the transpose of the increment; is the high-order term of Taylor expansion; J and H are the Jacobian matrix and Hessian matrix of the loss function respectively; Ignoring the high-order terms of Taylor expansion, the loss function becomes a quadratic function, and the local extreme value and saddle point are solved according to the properties of the H matrix of the stable point with the first-order derivative of 0;
[0097] Thus, the rotation matrix of the image acquisition camera for each frame is obtained by fusing the image acquisition camera and the inertial measurement unit in a tightly coupled manner. with translation vector .
[0098] S3. Fitting the sparse image acquisition camera pose using a B-spline function to obtain a continuous image acquisition camera trajectory in the world coordinate system. The disturbance of the point cloud reconstruction camera due to the suspension state can be calculated based on the external pose relationship between the image acquisition camera and the point cloud reconstruction camera, thereby obtaining the pose of the point cloud reconstruction camera in the world coordinate system at the corresponding timestamp, including the following steps:
[0099] S3.1. Reconstructing the external pose relationship of the camera relative to the image acquisition camera using point cloud , convert the image acquisition camera pose into the point cloud reconstruction camera pose, specifically:
[0100]
[0101] in and Reconstruct the camera pose by using the point cloud at the corresponding moment of the i-th frame image of the image acquisition camera obtained by the pose relationship transformation;
[0102] S3.2. Reconstruct the camera trajectory from the point cloud As the three-dimensional trajectory control point, the three-dimensional translation trajectory is represented based on the k-order uniform B-spline function:
[0103]
[0104] Where i is the image captured by the i-th frame image acquisition camera, k is the order of the uniform B-spline function, is the B-spline function, Reconstruct the camera trajectory function for the continuous point cloud fitted by the B-spline function;
[0105] S3.3. Reconstruct the camera's rotation matrix from the point cloud is the rotation control point, in the Lie group Upper k-order cumulative form B-spline function Defined as:
[0106]
[0107] Where i is the camera image captured by the i-th frame, The e-th order corresponding factor derived from the uniform B-spline cumulative mixing matrix depends only on the order of the B-spline. The inverse of the rotation matrix of the point cloud reconstruction camera when taking the i+e-1th frame image, The rotation matrix of the point cloud reconstruction camera when the i+eth frame is taken.
[0108] S34. Based on the continuous trajectory and rotation matrix, obtain the translation vector of each frame corresponding to the timestamp of the point cloud reconstruction camera With the rotation matrix , d is the d frame of the point cloud reconstruction camera, The time corresponding to the d-th frame image of the point cloud reconstruction camera.
[0109] S4. The line laser emitted by the line laser irradiates the underwater target, and the point cloud reconstruction camera shoots the underwater target. The three-dimensional point cloud of the line laser position of the image taken by the point cloud reconstruction camera is obtained by using the principle of structured light imaging. Based on the obtained point cloud reconstruction camera posture, the three-dimensional point cloud of the line laser position of each frame of the point cloud reconstruction camera image is inserted into the world coordinate system, thereby realizing the three-dimensional reconstruction of the underwater target, as follows:
[0110] Calculate the 3D point of the laser line position in the point cloud reconstruction camera image In one embodiment, the principle and steps of calculating the three-dimensional point of the laser line position are well-known technologies. The invention patent entitled "A method for fine three-dimensional perception of underwater targets" specifically discloses the principle and steps of restoring the three-dimensional information of the laser line position pixels from the image taken by the point cloud reconstruction camera, and reconstructing the translation vector of the camera based on the point cloud. With the rotation matrix , reconstruct the coordinate points of the point cloud in the camera coordinate system Transfer to the world coordinate system and get the coordinate point in the world coordinate system , specifically expressed as:
[0111]
[0112] Insert the 3D point cloud generated by reconstructing the camera image of each frame into the world coordinate system to obtain a dense point cloud of the underwater target , l Total number of camera frames to reconstruct the point cloud.
[0113] The preferred embodiments of the present application disclosed above are only used to help understand the present invention and its core ideas. For those skilled in the art, according to the ideas of the present invention, there will be changes in specific application scenarios and implementation operations, and this specification should not be interpreted as limiting the present invention. The present invention is only limited by the claims and their full scope and equivalents.
Claims
1. A method for three-dimensional reconstruction of underwater targets based on a suspended pan-tilt platform, characterized in that: The following steps are involved: S1. Construct an underwater target three-dimensional reconstruction system, including a point cloud reconstruction camera, an image acquisition camera, an inertial measurement unit, a line laser and an underwater pan-tilt platform; calibrate the internal parameters of the image acquisition camera and the point cloud reconstruction camera, the external posture relationship of the image acquisition camera and the point cloud reconstruction camera, the internal parameters of the inertial measurement unit, and the external relative posture relationship between the image acquisition camera and the inertial measurement unit; the internal parameters of the inertial measurement unit include random errors and deterministic errors; S2, integrating the inertial measurement unit data, extracting and matching the features of the image acquisition camera data; fusing the image acquisition camera and the inertial measurement unit in a tightly coupled manner, and obtaining the position and posture of the image acquisition camera in the world coordinate system; comprising the following steps: S2.
1. Input the inertial measurement unit data for integration: The inertial measurement unit data includes linear acceleration data and angular velocity data. Integrate the inertial measurement unit data and obtain the velocity from the inertial measurement unit data from time k to time k+1. , displacement and rotation Respectively expressed as: in and They are Moment and The speed of the moment; and They are Moment and The rotation matrix at time; , They are Moment and displacement of time; is the sampling time interval; and are respectively the acceleration and angular velocity obtained by the inertial measurement unit through integration; is the Kronecker product; S2.2, input image acquisition camera data, extract features from the image data, and then match them with the features of the previous frame to obtain the image coordinates of the feature points on the adjacent images; obtain the estimated position of the camera through inertial measurement unit data integration and time alignment, and set the initial value of the state quantity; construct an error function, and use the least squares method to obtain the optimal estimate F of the state quantity: in, The term is the visual error in the image acquisition camera, , From the The rotation matrix and translation vector from the frame image coordinate system to the world coordinate system; is the coordinate of the jth feature point; For the The camera coordinate system corresponding to the frame image; is the projection function; For the The camera coordinate system corresponding to the frame image right observation; m is the total number of frames of the image acquisition camera; n is the The total number of features on the frame image; The term is the IMU constraint, and t is the corresponding Frame image timestamp; T is the corresponding Frame image timestamp; is the rotation matrix, is the sampling time interval; , Respectively The velocity, acceleration, rotation matrix and translation vector of the frame image in the world coordinate system; are the translation vector, rotation matrix and velocity obtained by integrating the inertial measurement unit at the tth time stamp respectively; Solve the optimal estimate F based on the least squares problem, loss function Expressed as: in, is the increment; is the transpose of the increment; is the high-order term of Taylor expansion; J and H are the Jacobian matrix and Hessian matrix of the loss function respectively; Ignoring the high-order terms of Taylor expansion, the loss function becomes a quadratic function, and the local extreme value and saddle point are solved according to the properties of the H matrix of the stable point with the first-order derivative of 0; The rotation matrix of the image acquisition camera for each frame is obtained by fusing the image acquisition camera and the inertial measurement unit in a tightly coupled manner. with translation vector ; S3, fitting the sparse image acquisition camera pose using a B-spline function to obtain a continuous image acquisition camera trajectory in a world coordinate system, and calculating the disturbance of the suspended state to the point cloud reconstruction camera according to the external pose relationship between the image acquisition camera and the point cloud reconstruction camera, thereby obtaining the pose of the point cloud reconstruction camera in the world coordinate system at the corresponding timestamp; comprising the following steps: S3.
1. Reconstructing the external pose relationship of the camera relative to the image acquisition camera using point cloud , convert the image acquisition camera pose into the point cloud reconstruction camera pose, specifically: in and Reconstruct the camera pose by using the point cloud at the corresponding moment of the i-th frame image of the image acquisition camera obtained by the pose relationship transformation; S3.
2. Reconstruct the camera trajectory from the point cloud As the three-dimensional trajectory control point, the three-dimensional translation trajectory is represented based on the k-order uniform B-spline function: Where i is the image captured by the i-th frame image acquisition camera, k is the order of the uniform B-spline function, is the B-spline function, Reconstruct the camera trajectory function for the continuous point cloud fitted by the B-spline function; S3.
3. Reconstruct the camera's rotation matrix from the point cloud is the rotation control point, in the Lie group Upper k-order cumulative form B-spline function Defined as: Where i is the camera image captured by the i-th frame, The e-th order corresponding factor derived from the uniform B-spline cumulative mixing matrix depends only on the order of the B-spline; The inverse of the rotation matrix of the point cloud reconstruction camera when taking the i+e-1th frame image, The rotation matrix of the point cloud reconstruction camera when taking the i+eth frame image; S34. Based on the continuous trajectory and rotation matrix, obtain the translation vector of each frame corresponding to the timestamp of the point cloud reconstruction camera With the rotation matrix , d is the d frame of the point cloud reconstruction camera, The corresponding moment of the d-th frame image of the point cloud reconstruction camera; S4. The line laser emitted by the line laser irradiates the underwater target, and the point cloud reconstruction camera shoots the underwater target. The three-dimensional point cloud of the line laser position of the image taken by the point cloud reconstruction camera is obtained by using the principle of structured light imaging. The position and posture of the camera are reconstructed based on the obtained point cloud, and the three-dimensional point cloud of the line laser position of each frame of the image taken by the point cloud reconstruction camera is inserted into the world coordinate system, thereby realizing the three-dimensional reconstruction of the underwater target.
2. The method for three-dimensional reconstruction of underwater targets based on a suspended pan-tilt platform according to claim 1, characterized in that: In step S1, the underwater target three-dimensional reconstruction system includes a point cloud reconstruction camera, an image acquisition camera, an inertial measurement unit, a line laser and an underwater pan-tilt platform; The inertial measurement unit is an acceleration measurement unit, which is used for integral calculation and positioning of the position disturbance caused by the underwater gimbal due to the suspended state; The underwater gimbal provides driving force for the point cloud reconstruction camera, the image acquisition camera and the inertial measurement unit to achieve underwater rotation; The point cloud reconstruction camera is a grayscale camera, which is used to obtain point cloud data of underwater target scenes based on the principle of structured light imaging in conjunction with a line laser. The image acquisition camera is a color camera used to acquire underwater RGB images of underwater target scenes, extract matching image features, and accurately position the image acquisition camera in a tightly coupled manner with the inertial measurement unit; The point cloud reconstruction camera and the image acquisition camera collect underwater targets according to a set frequency ratio, and before collecting the underwater targets, the internal parameters and external parameters of the point cloud reconstruction camera, the image acquisition camera and the inertial measurement unit are calibrated.
3. The method for three-dimensional reconstruction of underwater targets based on a suspended pan-tilt platform according to claim 1, characterized in that: In step S1, the image acquisition camera, the point cloud reconstruction camera and the inertial measurement unit are calibrated, including: the image acquisition camera internal distortion calibration, the point cloud reconstruction camera internal distortion calibration, the inertial measurement unit internal parameter calibration, the image acquisition camera and the point cloud camera external parameter calibration, and the image acquisition camera and the inertial measurement unit external parameter calibration.
4. The method for 3D reconstruction of underwater targets based on a suspended pan-tilt platform according to claim 3, characterized in that: The image acquisition camera and the point cloud reconstruction camera participate in the distortion calibration, specifically: The image acquisition camera and the point cloud reconstruction camera are rigidly fixed and immersed in water, and the calibration plate is immersed in water. The image acquisition camera and the point cloud reconstruction camera continuously collect images of the calibration plate in different postures; the corner points of the calibration plate in the collected images are extracted, and the camera internal parameters are collected using the calibration image of Zhang Zhengyou Reconstructing camera intrinsics from point cloud and image acquisition camera distortion Reconstructing Camera Distortion from Point Clouds .
5. The method for 3D reconstruction of underwater targets based on a suspended pan-tilt platform according to claim 3, characterized in that: The image acquisition camera and the point cloud reconstruction camera extrinsic calibration are specifically as follows: The image acquisition camera and the point cloud reconstruction camera are rigidly fixed, and the same calibration plate image is collected, the calibration plate is moved, and multiple sets of images are collected repeatedly using the image acquisition camera and the point cloud reconstruction camera respectively; According to the size and number of corner points of the calibration plate, the dual-camera extrinsic calibration is completed by Zhang Zhengyou calibration method, that is, the position relationship between the point cloud reconstruction camera and the image acquisition camera is obtained. .
6. The method for 3D reconstruction of underwater targets based on a suspended pan-tilt platform according to claim 3, characterized in that: The inertial measurement unit internal parameter calibration is specifically as follows: Place the inertial measurement unit in water for a set period of time to continuously collect data; use the kalibr tool to calibrate the internal parameters of the inertial measurement unit , including random errors and deterministic errors.
7. The method for 3D reconstruction of underwater targets based on a suspended pan-tilt platform according to claim 3, characterized in that: The image acquisition camera and the inertial measurement unit external parameter calibration are specifically as follows: The image acquisition camera and the inertial measurement unit are rigidly fixed, and the AprilTag calibration plate is placed in front of the camera and the inertial measurement unit. The inertial measurement unit and the camera are moved in the XYZ three-axis direction at an acceleration of not less than 0.1m / s and rotated around the three axes at an angular velocity greater than 0.1rad / s to continuously acquire image data and inertial measurement unit data. According to the size and number of corner points of the AprilTag calibration plate, Kalibr is used to calibrate the position relationship of the image acquisition camera relative to the inertial measurement unit, including the rotation matrix and translation vectors .
8. The method for three-dimensional reconstruction of underwater targets based on a suspended pan-tilt platform according to claim 1, characterized in that: The step S4 is specifically as follows: Calculate the 3D point of the laser line position in the point cloud reconstruction camera image , reconstruct the camera translation vector based on the point cloud With the rotation matrix , reconstruct the coordinate points of the point cloud in the camera coordinate system Transfer to the world coordinate system and get the coordinate point in the world coordinate system , specifically expressed as: Insert the 3D point cloud generated by reconstructing the camera image of each frame into the world coordinate system to obtain a dense point cloud of the underwater target , l Total number of camera frames to reconstruct the point cloud.
