A method and system for estimating the depth of marine targets in open sea scenes

Through camera attitude correction and lidar data matching, combined with sea antenna information, the problem of poor depth estimation in sea surface scenes is solved, and high-precision and stable depth estimation of sea targets is achieved, which is suitable for complex sea surface environments.

CN118334099BActive Publication Date: 2024-09-24HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410754143.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-24
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

Existing depth estimation methods based on images and point cloud data perform poorly in sea surface scenes, especially sparse point cloud data caused by illumination changes, reflections, specular reflections and sea clutter noise, and cannot effectively solve the real water surface of ships. Environmental awareness needs.

Method used

Through camera attitude correction, point cloud data transformation and lidar data matching, combined with sea and sky information, the depth of sea targets is estimated, camera swing is eliminated, the corrected camera picture is obtained, and the depth of near sea surface objects using lidar is used to detect distant sea surface objects. Depth estimation.

Benefits of technology

It improves the stability and accuracy of depth estimation, obtains denser depth information, reduces the impact of sensor jitter, expands the scope of application, and enhances the accuracy and robustness of depth perception in sea scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334099B
    Figure CN118334099B
Patent Text Reader

Abstract

The invention discloses a method and system for estimating the depth of a target on the sea in an open sea scene. The method comprises: S1. obtaining a homography matrix #imgabs0# to eliminate camera swing and obtain a corrected camera image; S2. clustering point cloud data to obtain nearby sea surface objects; S3. detecting objects of interest in an image with a detector, and matching the clustered objects with the detected objects of interest, and then directly obtaining the depths of some objects in the image according to the matching results, and obtaining the camera height by using the depths of these objects to obtain the depths of distant sea surface objects; the system comprises a camera attitude correction module, a camera coordinate system conversion module, a camera height estimation module and a depth estimation module; the invention is based on point cloud and monocular image data and utilizes environmental priors specific to sea surface scenes to accurately estimate the depths of sea surface objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method and system for estimating the depth of a marine target in an open sea scene. Background Art

[0002] Existing scene depth estimation methods can be divided into three categories: 1) based on image data, 2) based on lidar point cloud data, and 3) based on fused image and point cloud data.

[0003] The hardware equipment of the image-based method is simple, low-cost, and can obtain dense depth maps, which has greater application potential. The image-based method can be divided into estimation methods based on binocular or multi-eye images and monocular images. The binocular image method uses stereo matching technology to obtain the left and right eye disparity map, and further obtains the image depth map through parameters such as baseline and focal length. The use of this algorithm requires a sufficiently long baseline between the cameras, that is, there is a certain distance, which is likely to exceed 2m, which requires sufficient space for the carrier to deploy the double-sided ranging system. Secondly, the binocular ranging system usually has certain restrictions on the parallax of objects between different views. Therefore, a binocular ranging system is usually only applicable to a specific depth range. For example, a baseline of 2m can only measure the distance of objects with a depth of 200-240m; the monocular image-based method usually assumes that the front and back frames do not change much, and will use the consistency of the front and back frames of the video for depth estimation or training. However, when the camera is installed on the ship, due to the influence of waves, the ship shakes, which in turn causes the camera sensor to shake, which results in a large difference between the front and back frames of the pictures taken by the camera, which will have a huge impact on the stability and accuracy of the depth estimation.

[0004] The method based on point cloud data uses active ranging equipment such as LiDAR, which has the advantages of being unaffected by lighting conditions, all-weather estimation and high accuracy. After scanning for a week using the time-of-flight method, some sparse point cloud data will be obtained, and then the sparse point cloud will be depth-completed to obtain complete depth information; this method can only obtain a few surface points of nearby targets, so the depth information it gives is very sparse. Based on the method of fusing point cloud data and image data, the dense depth map is directly learned using the powerful nonlinear expression ability of neural networks, which often obtains better results. However, this method usually obtains dense depth maps by using image information to complete point cloud data, so it is very dependent on the initial point cloud data of LiDAR. However, the point cloud data of LiDAR can only measure nearby objects, so this method performs poorly in long-distance areas without point cloud data and is not suitable for large sea scenes.

[0005] Intelligent ships are the key direction of future ship development, and sea scene depth estimation is the basis for intelligent ship perception and decision-making. Compared with ground scenes, sea scenes are more complex, with problems such as changeable weather and lighting, a large range of working scenes, and a large number of dynamic targets. This brings the following challenges to existing image or point cloud-based depth estimation algorithms: Since there are a large number of surface targets in sea images, this brings a large number of pathological areas such as lighting changes, reflections, and mirror reflections to the images, making image-based depth estimation algorithms perform poorly in these areas; sea surface environment perception requires surrounding scenes in a large range, which makes point cloud data more sparse and contains more noise, which directly affects the point cloud depth completion results. Therefore, the existing research methods are not suitable for the environmental perception problem of real water surface scenes of ships and boats. Summary of the invention

[0006] In view of this, the present invention provides a method and system for estimating the depth of a marine target in an open sea scene, so as to at least solve the problem that the prior art is not suitable for environmental perception of a real water surface scene of a ship.

[0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] A method for estimating the depth of a marine target in an open sea scene comprises the following steps:

[0009] S1. Camera attitude correction: for each original camera image, estimate the camera attitude based on the sea-sky line, and use the camera attitude and camera intrinsic parameters to obtain the homography matrix , through the homography matrix Eliminate camera swing and obtain calibrated camera images;

[0010] S2. transform the point cloud data into the camera coordinate system, cluster the point cloud data, obtain the coordinates of nearby sea surface objects, and record their depth as z;

[0011] S3. Detect all objects of interest in the calibrated camera image and align them with nearby sea surface objects found by the lidar. If at least one object of interest in the image is successfully aligned with a nearby sea surface object found by the lidar, the pixel coordinates of the object of interest are recorded. The camera coordinates are converted into camera coordinates expressed with a known depth z, the camera height is obtained according to the camera coordinates expressed with a known depth z, and the depth of the distant sea surface object is obtained according to the camera height.

[0012] Preferably, the specific content of S1 includes:

[0013] The normal to the sea level Perpendicular to the camera coordinate system The camera posture when it is flat is taken as the standard posture of the camera;

[0014] Identify the position of the sea-sky line in the image, segment the sea-sky line accurately, and find the equation of the sea-sky line in the pixel coordinate system of the current camera, which is recorded as:

[0015] (1)

[0016] Calculate the normal to the sea level in the camera coordinate system , using the image center , camera focal length and the left and right endpoints of the sea-sky line and , calculate the direction of the vector connecting the origin of the camera coordinate system and the left and right endpoints of the sea-sky line in the camera coordinate system:

[0017] (2)

[0018] (3)

[0019] in, and is the camera intrinsic parameter matrix The parameters in the , represent the scaling factor, ;

[0020] Since the sea-sky line is at infinity, the normal to the sea level is and The cross product of :

[0021] (4)

[0022] Normal through sea level , using Euler angles to describe the camera posture:

[0023] (5)

[0024] (6)

[0025] in, Roll angle, is the pitch angle;

[0026] The rotation of the camera around the normal of the sea level does not affect the depth estimation result, record the yaw angle is zero, using the roll angle and pitch angle The rotation matrix is ​​recorded as , and then use the camera internal parameters to find the homography matrix for correcting camera swing for:

[0027] (7)

[0028] Using the homography matrix Correct camera raw images.

[0029] Preferably, the specific contents of obtaining the pixel coordinates of the object of interest include:

[0030] Detect each object of interest in the rectified camera image using the target detection algorithm, expand the returned detection frame, and extract the sub-image framed by the expanded detection frame;

[0031] Use the segmentation algorithm to find the waterline in the sub-image and obtain the intersection of the waterline and the detection box and , using the intersection and midpoint Represents the pixel coordinates of the object in the image.

[0032] Preferably, the specific content of converting the pixel coordinates of the object of interest into the camera coordinates represented by the known depth z includes:

[0033] Using the camera intrinsic matrix The pixel coordinates of the object of interest Transform to the normalized plane:

[0034] (8)

[0035] in, ;

[0036] The camera coordinates of nearby sea surface objects expressed with known depth z are: (9)

[0037] in, and is the camera intrinsic parameter matrix The parameters in the , represent the scaling factors, .

[0038] Preferably, in S3, the camera height is obtained according to the camera coordinates represented by the known depth z, and the specific contents of obtaining the depth of the distant sea surface object according to the camera height include:

[0039] Using the known depth z, jointly estimate the camera height: (10)

[0040] Among them, the pixel coordinates of nearby sea surface objects are , is the ordinate of the center of the image, is the depth of nearby sea surface objects relative to the camera imaging plane;

[0041] Using the camera height, the depth of distant sea objects is obtained as:

[0042] (11)

[0043] Among them, the pixel coordinates of distant sea objects are , Indicates the depth of the desired object on the distant sea surface.

[0044] A system for estimating the depth of a marine target in an open sea scene, comprising:

[0045] The camera attitude correction module is used to estimate the camera attitude based on the sea-sky line for each original camera image, and obtain the homography matrix using the camera attitude and camera intrinsic parameters. , through the homography matrix Eliminate camera swing and obtain calibrated camera images;

[0046] The camera coordinate system conversion module is used to transform the point cloud data into the camera coordinate system, cluster the point cloud data, and obtain the position of the nearby sea surface object, wherein the nearby sea surface object is an object of interest with a known depth, and the depth is z;

[0047] The camera height estimation module is used to detect all objects of interest in the calibrated camera image and determine whether the nearby sea surface objects found by the lidar are the same as the objects of interest in the calibrated camera image. If so, the pixel coordinates of the objects of interest are calculated. Convert to camera coordinates expressed by known depth z, and obtain the camera height according to the camera coordinates expressed by known depth z;

[0048] The depth estimation module is used to obtain the corresponding depth of distant sea surface objects based on the camera height and the pixel coordinates of the objects.

[0049] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a method and system for estimating the depth of a marine target in an open sea scene, which has the following beneficial effects:

[0050] Firstly, compared with the algorithm based on monocular image, the violent shaking of the sensor brings less disturbance to the present invention. Compared with the algorithm based on binocular image or multi-eye image, there is no problem of camera placement space and blind spot of vision. Secondly, compared with the algorithm based on point cloud data only, the present invention can obtain denser depth information without noise such as sea clutter. Thirdly, compared with the algorithm based on fusion of different data, the present invention has a wide range of application and higher stability. Finally, the present invention utilizes the property that all sea surface objects are on the same horizontal plane and the prior information of sea-sky line, and has higher accuracy and stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 A schematic diagram of a flow chart of a method for estimating the depth of a target at sea in an open sea scenario provided by the present invention;

[0053] Figure 2 A schematic diagram of camera intrinsic parameters and camera and laser radar extrinsic parameters provided in an embodiment of the present invention;

[0054] Figure 3 A standard camera posture diagram provided by an embodiment of the present invention;

[0055] Figure 4 A schematic diagram of the position of the sea-sky line in a picture provided by an embodiment of the present invention;

[0056] Figure 5 A schematic diagram of searching for interesting sea surface objects in a picture provided by an embodiment of the present invention;

[0057] Figure 6 A sea surface target imaging model diagram when the camera is in a standard posture provided by an embodiment of the present invention;

[0058] Figure 7 A schematic diagram of the principle of obtaining the depth of distant sea surface objects according to the camera height provided in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0060] The present invention provides a method for estimating the depth of a target at sea in an open sea scene. Figure 1 As shown, the following steps are included:

[0061] S1. Camera attitude correction: for each original camera image, estimate the camera attitude based on the sea-sky line, and use the camera attitude and camera intrinsic parameters to obtain the homography matrix , through the homography matrix Eliminate camera swing and obtain calibrated camera images;

[0062] S2. transform the point cloud data into the camera coordinate system, cluster the point cloud data, obtain the coordinates of nearby sea surface objects, and record their depth as z;

[0063] S3. Detect all objects of interest in the calibrated camera image and align them with nearby sea surface objects found by the lidar. If at least one object of interest in the image is successfully aligned with a nearby sea surface object found by the lidar, the pixel coordinates of the object of interest are recorded. The camera coordinates are converted into camera coordinates expressed with a known depth z, the camera height is obtained according to the camera coordinates expressed with a known depth z, and the depth of the distant sea surface object is obtained according to the camera height.

[0064] It should be noted that:

[0065] The present invention is applicable to the depth estimation of sea scene based on shipborne equipment. After the camera and laser radar are installed on the ship, their data are used to estimate the depth of the sea surface target relative to the camera in real time. Figure 2 As shown in the figure, when installing the camera and lidar, the lidar and camera need to be jointly calibrated to estimate the four intrinsic parameters of the camera and form the camera intrinsic parameter matrix ;

[0066] The relative transformation relationship between the laser radar coordinate system and the camera coordinate system is obtained, which is recorded as the transformation matrix :

[0067] (14)

[0068] (15)

[0069] Once the equipment is installed, the calibration process only needs to be completed once. If the equipment is redeployed, it needs to be recalibrated.

[0070] If the camera is completely parallel to the sea surface, then the sea surface normal is perpendicular to the camera coordinate system. plane, record this posture as the standard posture of the camera, such as Figure 3 As shown. At the same time, the pixel position of the sea-sky line in the picture will pass through the main point of the picture and be horizontal with the picture. If the ship is completely stable on the sea, the camera will always be in the standard posture. However, during the actual navigation of the ship, due to various factors such as wind and waves, the ship will sway and deviate from the standard posture. At this time, the deflection angle of the camera is calculated according to the coordinates of the sea-sky line in the picture and the picture is corrected.

[0071] During the process of matching and aligning all the objects of interest in the camera image after detection and correction by S3 with the nearby sea surface objects discovered by the lidar, if none of them are matched, this set of point cloud image data is ignored or the depth calculated last time is directly used.

[0072] In order to further implement the above technical solution, the specific contents of S1 include:

[0073] The normal to the sea level Perpendicular to the camera coordinate system The camera posture when it is flat is taken as the standard posture of the camera;

[0074] Identify the position of the sea-sky line in the image, segment the sea-sky line accurately, and find the equation of the sea-sky line in the pixel coordinate system of the current camera, which is recorded as: (1)

[0075] Calculate the normal to the sea level in the camera coordinate system , using the image center , camera focal length and the left and right endpoints of the sea-sky line and , calculate the direction of the vector connecting the origin of the camera coordinate system and the left and right endpoints of the sea-sky line in the camera coordinate system:

[0076] (2)

[0077] (3)

[0078] in, and is the camera intrinsic parameter matrix The parameters in the , represent the scaling factor, ;

[0079] Since the sea-sky line is at infinity, the normal to the sea level is and The cross product of :

[0080] (4)

[0081] Normal through sea level , using Euler angles to describe the camera posture:

[0082] (5)

[0083] (6)

[0084] in, Roll angle, is the pitch angle;

[0085] The rotation of the camera around the normal of the sea level does not affect the depth estimation result, record the yaw angle is zero, using the roll angle and pitch angle The rotation matrix is ​​recorded as , and then use the camera internal parameters to find the homography matrix for correcting camera swing for:

[0086] (7)

[0087] Using the homography matrix Correct camera raw images.

[0088] It should be noted that:

[0089] In this embodiment, a target detection algorithm is used to identify the position of the sea-sky line in the image, and then the sea-sky line is accurately segmented to obtain the equation of the sea-sky line in the pixel coordinate system of the current camera.

[0090] The sea-sky line is the prior information unique to the sea surface relative to the land scene, such as Figure 4 As shown, after accurately identifying the sea-sky line in the image, the center of the image and the focal length of the camera are used. and the left and right endpoints of the sea-sky line, and calculate the direction of the vector connecting the camera coordinate origin and the left and right endpoints of the sea-sky line in the camera coordinate system.

[0091] In order to further implement the above technical solution, the specific contents of obtaining the pixel coordinates of the object of interest include:

[0092] Detect each object of interest in the rectified camera image using the target detection algorithm, expand the returned detection frame, and extract the sub-image framed by the expanded detection frame;

[0093] Use the segmentation algorithm to find the waterline in the sub-image and obtain the intersection of the waterline and the detection box and , using the intersection and midpoint Represents the pixel coordinates of the object in the image.

[0094] In order to further implement the above technical solution, the specific content of converting the pixel coordinates of the object of interest into the camera coordinates represented by the known depth z includes:

[0095] Using the camera intrinsic matrix The pixel coordinates of the object of interest Transform to the normalized plane:

[0096] (8)

[0097] in, ;

[0098] The camera coordinates of nearby sea surface objects expressed with known depth z are:

[0099] (9)

[0100] in, and is the camera intrinsic parameter matrix The parameters in the , represent the scaling factors, .

[0101] It should be noted that:

[0102] Since lidar can often measure the accurate depth of nearby objects, the coordinates of nearby objects in the camera coordinate system can be converted to camera coordinates expressed using a known depth z.

[0103] In order to further implement the above technical solution, the specific contents of obtaining the camera height according to the camera coordinates represented by the known depth z in S3 and obtaining the depth of the distant sea surface object according to the camera height include:

[0104] Using the known depth z, jointly estimate the camera height:

[0105] (10)

[0106] Among them, the pixel coordinates of nearby sea surface objects are , is the ordinate of the center of the image, is the depth of nearby sea surface objects relative to the camera imaging plane;

[0107] Using the camera height, the depth of distant sea objects is obtained as:

[0108] (11)

[0109] Among them, the pixel coordinates of distant sea objects are , Indicates the depth of the desired object on the distant sea surface.

[0110] It should be noted that:

[0111] Since the water lines of all sea surface targets are in the same plane, if the camera is in a standard posture, then for all sea surface targets within the camera's field of view, Figure 6 Imaging model shown.

[0112] In a specific implementation process, if there is no nearby sea surface object, the camera height at the previous time point can be taken as the current camera height.

[0113] In formula (10), is the ordinate of the nearby sea surface object on the normalized plane, according to Figure 7 The similarity principle of the middle triangle is calculated. , the same as formula (11).

[0114] Often there are multiple nearby surface objects of known depth, so their average can be used to obtain a more robust result.

[0115] A system for estimating the depth of a marine target in an open sea scene, comprising:

[0116] The camera attitude correction module is used to estimate the camera attitude based on the sea-sky line for each original camera image, and obtain the homography matrix using the camera attitude and camera intrinsic parameters. , through the homography matrix Eliminate camera swing and obtain calibrated camera images;

[0117] The camera coordinate system conversion module is used to transform the point cloud data into the camera coordinate system, cluster the point cloud data, and obtain the position of the nearby sea surface object, wherein the nearby sea surface object is an object of interest with a known depth, and the depth is z;

[0118] The camera height estimation module is used to detect all objects of interest in the calibrated camera image and determine whether the nearby sea surface objects found by the lidar are the same as the objects of interest in the calibrated camera image. If so, the pixel coordinates of the objects of interest are calculated. Convert to camera coordinates expressed by known depth z, and obtain the camera height according to the camera coordinates expressed by known depth z;

[0119] The depth estimation module is used to obtain the corresponding depth of distant sea surface objects based on the camera height and the pixel coordinates of the objects.

[0120] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for estimating the depth of a marine target in an open sea scene, characterized in that: The following steps are involved: S1. Camera posture correction: for each original camera image, estimate the camera posture according to the sea-sky line, and use the camera posture and camera intrinsic parameters to obtain the homography matrix H, and eliminate the camera swing through the homography matrix H to obtain the corrected camera image; S2. transform the point cloud data into the camera coordinate system, cluster the point cloud data, obtain the coordinates of nearby sea surface objects, and record their depth as z; S3. Detect all objects of interest in the calibrated camera image and align them with nearby sea surface objects discovered by the lidar. If at least one object of interest in the image is successfully aligned with the nearby sea surface object discovered by the lidar, convert the pixel coordinates P = (u, v, 1) of the object of interest into camera coordinates expressed by a known depth z, obtain the camera height based on the camera coordinates expressed by the known depth z, and obtain the depth of the distant sea surface object based on the camera height; The specific contents of obtaining the pixel coordinates of the object of interest include: Detect each object of interest in the rectified camera image using the target detection algorithm, expand the returned detection frame, and extract the sub-image framed by the expanded detection frame; The waterline is found in the sub-image using a segmentation algorithm, and the intersection points P1 and P2 of the waterline and the detection frame are obtained. The midpoint P = (u, v, 1) of the intersection points P1 and P2 is used to represent the pixel coordinates of the object in the image. The details of converting the pixel coordinates of the object of interest to the camera coordinates expressed with a known depth z include: The camera intrinsic parameter matrix k is used to transform the pixel coordinates of the object of interest P = (u, v, 1) to the normalized plane: The camera coordinates of nearby sea surface objects expressed with known depth z are: P C =(xz,yz,z) (2) Among them, f x and f y is the parameter in the camera intrinsic parameter matrix k, indicating the scale factor, In S3, the camera height is obtained according to the camera coordinates represented by the known depth z, and the specific contents of obtaining the depth of the distant sea surface object according to the camera height include: Using the known depth z, jointly estimate the camera height: Among them, the pixel coordinates of the nearby sea surface object are (u1,v1,1), y c is the ordinate of the image center, Z1 is the depth of nearby sea surface objects relative to the camera imaging plane; Using the camera height, the depth of distant sea objects is obtained as: Among them, the pixel coordinates of the distant sea surface object are (u2,v2,1), and Z2 represents the depth of the distant sea surface object.

2. The method for estimating the depth of a target at sea in an open sea scene according to claim 1, characterized in that: The specific contents of S1 include: The camera posture when the normal line n of the sea level is perpendicular to the XOZ plane of the camera coordinate system is taken as the standard camera posture; Identify the position of the sea-sky line in the image, segment the sea-sky line accurately, and find the equation of the sea-sky line in the pixel coordinate system of the current camera, which is recorded as: Au+Bv=C (5) Calculate the normal n of the sea level in the camera coordinate system, using the image center (x c ,y c ), the focal length of the camera f and the left and right endpoints of the sea-sky line (x1, y1) and (x2, y2), calculate the direction of the vector connecting the origin of the camera coordinate system and the left and right endpoints of the sea-sky line in the camera coordinate system: Among them, f x and f y is the parameter in the camera intrinsic parameter matrix k, indicating the scale factor, Since the sea-sky line is at infinity, the normal to the sea level is the cross product of v2 and v1: <h2 style=";text-align:left;direction:ltr">n = v2 × v1 = (n1,n2,n3)<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> (8) The camera pose is described by Euler angles through the normal n of the sea surface: Among them, α is the roll angle, β is the pitch angle; The normal rotation of the camera around the sea level does not affect the depth estimation result. The yaw angle γ is recorded as zero. The rotation matrix is ​​obtained by using the roll angle α and the pitch angle β and recorded as R. Then, the homography matrix H used to correct the camera swing is obtained by using the camera intrinsic parameters: H=kRk -1 (11) Use the homography matrix H to correct the original camera image.

3. A system for estimating the depth of a marine target in an open sea scene, based on a method for estimating the depth of a marine target in an open sea scene according to any one of claims 1 to 2, characterized in that: include: The camera attitude correction module is used to estimate the camera attitude according to the sea-sky line for each original camera image, and obtain the homography matrix H using the camera attitude and camera intrinsic parameters. The homography matrix H is used to eliminate the camera swing and obtain the corrected camera image. The camera coordinate system conversion module is used to transform the point cloud data into the camera coordinate system, cluster the point cloud data, and obtain the position of the nearby sea surface object, wherein the nearby sea surface object is an object of interest with a known depth, and the depth is z; The camera height estimation module is used to detect all objects of interest in the calibrated camera image and determine whether the nearby sea surface objects found by the lidar are the same as the objects of interest in the calibrated camera image. If so, the pixel coordinates P = (u, v, 1) of the object of interest are converted into camera coordinates expressed with a known depth z, and the camera height is obtained according to the camera coordinates expressed with a known depth z; The depth estimation module obtains the corresponding depth based on the camera height and the pixel coordinates of distant sea surface objects.