Precise monocular depth estimation method based on plane and parallax measurement

Through methods based on plane and parallax measurements, combined with a self-supervised network framework, the problem of relying on ground-truth depth and stereo settings in monocular depth estimation is solved, efficient and accurate depth estimation is achieved, the problem of scale ambiguity is overcome, and automatic Vision system performance of driving vehicles.

CN118644537AActive Publication Date: 2024-09-13HEFEI JIMU XINGYUAN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410689858.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-13
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

Existing technologies rely on expensive ground-truth depth supervision or stereoscopic settings that must be calibrated in monocular depth estimation, cannot effectively utilize unlabeled videos for training, and self-supervised methods have scale ambiguity issues that affect accuracy.

Method used

An accurate monocular depth estimation method based on plane and disparity measures is adopted, through motion decomposition and plane definition, source image distortion and motion cancellation, residual disparity processing and depth prediction, combined with a self-supervised monocular depth estimation network framework, using known Camera height and translation predict 2D image motion of 3D points, enabling depth reconstruction.

Benefits of technology

It achieves efficient resolution of the scale ambiguity problem without relying on additional sensor ground truth data, improving the accuracy and stability of depth estimation without the need to estimate the complete rigid motion of the camera.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644537A
    Figure CN118644537A
Patent Text Reader

Abstract

The invention discloses an accurate monocular depth estimation method based on plane and parallax measurement, comprising motion decomposition and plane definition: based on plane parallax decomposition, decomposing motion in an image into two parts of plane homography and residual parallax; source image distortion and motion counteracting: the source image is distorted according to the defined plane homography to counteract the motion of the plane; residual parallax processing and depth prediction: after the source image is distorted, analyzing and processing residual image motion; and implementing and integrating: integrating the optimized algorithm into a visual system of the automatic driving vehicle, and testing and verifying in an actual environment. Two-dimensional image motion caused by a three-dimensional point is calculated by constructing a neural network, predicting depth and camera translation, and the two-dimensional image motion is used for reconstructing a target image in a self-supervised monocular method. We efficiently solve the problem of scale ambiguity and do not require ground live data from additional sensors.
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 an accurate monocular depth estimation method based on plane and disparity metrics. Background Art

[0002] Understanding the three-dimensional structure of a scene is relatively easy for humans. We can easily infer our surroundings and break them down into distinct objects. This ability is crucial for autonomous vehicles to navigate diverse environments. Training deep networks to estimate depth has proven successful in computer vision research.

[0003] However, many of these methods are supervised and require expensive ground truth depth to implement. Another approach uses a stereo setup that must be carefully calibrated. Both methods cannot leverage the large amount of readily available unlabeled videos for training. On the other hand, self-supervised monocular depth estimation methods that do not rely on stereo supervision do not suffer from these limitations and have begun to approach the level of supervised or stereo methods in practice. Summary of the Invention

[0004] The purpose of the present invention is to overcome the shortcomings of the existing technology. To achieve the above purpose, an accurate monocular depth estimation method based on plane and disparity measurement is adopted to solve the problems raised in the above background technology.

[0005] An accurate monocular depth estimation method based on planar and disparity metrics, comprising the following steps:

[0006] Step S1, motion decomposition and plane definition: Based on plane parallax decomposition, a plane is defined, and the motion in the image is decomposed into two parts: plane homography and residual parallax. The homography is used to represent the plane motion from the source image to the target image.

[0007] Step S2, source image distortion and motion cancellation: distorting the source image according to the defined plane homography to cancel the motion of the plane;

[0008] Step S3, residual disparity processing and depth prediction: after the source image is warped, the remaining image motion is analyzed and processed;

[0009] Step S4, implementation and integration: Integrate the optimized algorithm into the vision system of the autonomous driving vehicle and test and verify it in a real environment.

[0010] As a further solution of the present invention, the specific steps of plane parallax decomposition include:

[0011] Define π to represent a 3D plane, where H represents aligning π on the target image I t and source image I sHomography transformation between; set p and p' to represent the 3D point coordinate system x = [X, Y, Z] in I t and I s projection on;

[0012] Transform p′ through the homography transformation H to obtain the image point p w :

[0013] p w ~Hp′

[0014] By s Perform the transformation to obtain the aligned image I w , so that the plane π matches between them, then p w The displacement between and p is calculated as:

[0015]

[0016] Where K is the intrinsic parameter matrix of the camera, t = [tx, ty, tz] is the target image I t and source image I s The translation vector between c is the distance from the source view camera to the plane Π; the structure is represented by γ = Zh, where h is the distance from point x to Π; when x is on the plane Π, that is, h = 0, then p w =p;

[0017] The design is based on a self-supervised monocular depth estimation network framework, which includes a deep network for estimating depth and a posture network for estimating the translation between frames; the posture network receives the source image and the image I s , I w , and outputs the translation vector t; the deep network receives the target image I t , and output I t Depth map

[0018] For each pixel p = [x, y], such that Represents its estimated depth, using the camera intrinsic parameters and the estimated depth to back-project p to obtain the corresponding 3D point In the camera coordinate system, the formula is:

[0019]

[0020] The following relationship is obtained:

[0021]

[0022] Where N is the normal vector of the plane π, Yes The estimated distance to plane π, Is the estimation of the structural variable γ; obtain the reconstructed target image I t All the parameters required by aligning the image I w Transform to get

[0023] For I t For each pixel p on the image, we calculate p based on the depth and translation predicted by the two networks. w , then inverse transform I w and obtain To rebuild I t :

[0024]

[0025] By minimizing I t and to monitor the differences between

[0026] Perform preprocessing steps on the dataset to obtain aligned images;

[0027] By using the road as the plane π, a homography is calculated for each pair of consecutive frames, and the frames are transformed according to the calculated homography to obtain a target image I t and source image I s Calculate a homography H, and then transform I according to H s Perform the transformation to obtain the transformed source image I w .

[0028] As a further solution of the present invention: the specific steps of the self-supervised monocular depth estimation network framework include:

[0029] Design a monocular depth estimation network framework based on the U-Net architecture, using the ResNet pre-trained on ImageNet as the encoder of the depth estimation network;

[0030] Using the same architecture as the current monocular depth estimation network, the depth is estimated by multiplying the output of the last sigmoid layer by the predicted maximum depth value, where the depth network starts with a single target image I t Takes as input and outputs a depth estimate for each pixel;

[0031] The second network receives the transformed source image I w and target image I t As input, and outputting only the translation vector between views, the network is similar to a pose network, where the output is a three-element vector representing the translation;

[0032] Define the self-supervised training loss of the network and define the photometric loss function as a linear combination of L1 distance and structural similarity to minimize the target image I t and reconstructed image The difference between , the photometric loss is defined as follows:

[0033]

[0034] For each target image, two aligned images are used, one obtained by deforming the previous frame and the other by deforming the next frame; the per-pixel minimum reprojection error is introduced, and the minimum value of Lphoto for each pixel of the aligned images across the previous and next frames is calculated;

[0035] Define Lsmooth as an edge-based smoothness loss to encourage depth prediction to be locally smooth;

[0036] The total loss function is then a combination of Lsmooth and Lphoto averaged over all N pixels, and the formula is:

[0037]

[0038] Among them, min represents the calculation of the minimum value of the alignment frame between the previous frame and the next frame, and λ is a hyperparameter used to control the impact of the loss term.

[0039] Compared with the prior art, the present invention has the following technical effects:

[0040] Using the above techniques, we generate metrically accurate depth estimates using the known camera height. Unlike previous methods that rely on estimating the full rigid motion of the camera, our approach only requires estimating the camera's translation. Using two neural networks, we predict both depth and camera translation. Given the camera height, we can compute the induced 2D image motion of 3D points and use it to reconstruct the target image in a self-supervised monocular approach. We efficiently resolve scale ambiguity without requiring ground truth data from additional sensors. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings:

[0042] Figure 1 A schematic diagram of the steps of the monocular depth estimation method according to the embodiment disclosed in this application;

[0043] Figure 2 This is a schematic diagram of plane parallax decomposition according to an embodiment disclosed in this application. DETAILED DESCRIPTION

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making creative efforts are within the scope of protection of the present invention.

[0045] Please refer to Figure 1 and Figure 2 In an embodiment of the present invention, a method for accurate monocular depth estimation based on plane and disparity measurement includes the following steps:

[0046] In this embodiment, we specifically propose a method for predicting a scaled depth map without using any ground truth depth supervision. The method consists of two key parts: 1. Planar disparity decomposition; 2. Scaled monocular depth estimation neural network;

[0047] Step S1, motion decomposition and plane definition: Based on plane parallax decomposition, a plane is defined, and the motion in the image is decomposed into two parts: plane homography and residual parallax. The homography is used to represent the plane motion from the source image to the target image.

[0048] Step S2, source image distortion and motion cancellation: distorting the source image according to the defined plane homography to cancel the motion of the plane;

[0049] Step S3, residual disparity processing and depth prediction: after the source image is warped, the remaining image motion is analyzed and processed;

[0050] Step S4, implementation and integration: Integrate the optimized algorithm into the vision system of the autonomous driving vehicle and test and verify it in a real environment.

[0051] In this embodiment, the specific steps of plane parallax decomposition include:

[0052] Define π to represent a 3D plane, where H represents aligning π on the target image I t and source image I s Homography transformation between; set p and p' to represent the 3D point coordinate system x = [X, Y, Z] in I t and I s projection on;

[0053] Transform p′ through the homography transformation H to obtain the image point p w :

[0054] p w ~Hp′

[0055] We omit the step of converting to homogeneous coordinates. Note that bys Perform the transformation to obtain the aligned image I w , so that the plane π matches between them, then p w The displacement between and p is calculated as:

[0056]

[0057] Where K is the intrinsic parameter matrix of the camera, t = [tx, ty, tz] is the target image I t and source image I s The translation vector between c is the distance from the source view camera to the plane Π; the structure is represented by γ = Zh, where h is the distance from point x to Π; when x is on the plane Π, that is, h = 0, then p w =p;

[0058] According to the typical design, a self-supervised monocular depth estimation network framework is designed, which includes a deep network for estimating depth and a pose network for estimating the translation between frames; it should be noted that, unlike other methods, we do not need to estimate the rotation between the two views. Specifically, the pose network receives the source image and the image I s , I w , and outputs the translation vector t; the deep network receives the target image I t , and output I t Depth map

[0059] For each pixel p = [x, y], such that Represents its estimated depth, using the camera intrinsic parameters and the estimated depth to back-project p to obtain the corresponding 3D point In the camera coordinate system, the formula is:

[0060]

[0061] Therefore, if Figure 2 As shown on the right side, the following relationship is obtained:

[0062]

[0063] Where N is the normal vector of the plane π, Yes The estimated distance to plane π, and is an estimate of the structural variable γ; therefore, we obtain the reconstructed target image I t All the parameters required by aligning the image I w Transform to get

[0064] For It For each pixel p on the image, we calculate p based on the depth and translation predicted by the two networks. w , then inverse transform I w and obtain To rebuild I t :

[0065]

[0066] By minimizing I t and to monitor the differences between

[0067] In order to obtain aligned images, preprocessing steps are performed on the dataset to obtain aligned images;

[0068] By using the road as the plane π, a homography is calculated for each pair of consecutive frames, and the frames are transformed according to the calculated homography to obtain a target image I t and source image I s Calculate a homography H, and then transform I according to H s Perform the transformation to obtain the transformed source image I w .

[0069] In this embodiment, the specific steps of the self-supervised monocular depth estimation network framework include:

[0070] The specific steps of the monocular depth estimation neural network with scale are:

[0071] Design a monocular depth estimation network framework based on the U-Net architecture, using the ResNet pre-trained on ImageNet as the encoder of the depth estimation network;

[0072] For the decoder, we use the same architecture as the current monocular depth estimation network, and estimate the depth directly by multiplying the output of the last sigmoid layer by 250, that is, the predicted maximum depth value, instead of estimating the disparity as in the general architecture. t takes as input, and outputs a depth estimate for each pixel (the output of our depth decoder is at a scale in meters);

[0073] The second network receives the transformed source image I w and target image I t As input, and outputting only the translation vector between views, the network is similar to the pose network, except that in our case the output is a three-element vector representing the translation, and the scale is in meters;

[0074] The self-supervised training loss for the network is defined as:

[0075] Define the self-supervised training loss of the network and define the photometric loss function as a linear combination of L1 distance and structural similarity (SSIM) to minimize the target image I t and reconstructed image The difference between , the photometric loss is defined as follows:

[0076]

[0077] Here, we set α = 0.85. Note that for each target image, the two aligned images, one is obtained by deforming the previous frame, and the other is obtained by deforming the next frame; the per-pixel minimum reprojection error is introduced, and the minimum value of Lphoto for each pixel of the aligned images across the previous frame and the next frame is calculated;

[0078] Define Lsmooth as an edge-based smoothness loss to encourage depth prediction to be locally smooth;

[0079] The total loss function is then a combination of Lsmooth and Lphoto averaged over all N pixels, and the formula is:

[0080]

[0081] Among them, min represents the calculation of the minimum value of the alignment frame between the previous frame and the next frame, and λ is a hyperparameter used to control the impact of the loss term.

[0082] Beneficial effects:

[0083] Traditional self-supervised monocular depth estimation suffers from scale ambiguity, which affects accuracy;

[0084] The new method combines plane geometry and disparity metrics to improve the accuracy of depth estimation;

[0085] Aligning camera frames by a common ground plane eliminates the effect of rotational components;

[0086] Use independent neural networks to predict depth and camera translation separately to improve prediction accuracy;

[0087] Based on the known camera height assumption, the target image is reconstructed to further improve the accuracy and stability of depth estimation.

[0088] Although the embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and variations may be made to these embodiments without departing from the principles and spirit of the present invention. The scope of the present invention is defined by the appended claims and their equivalents, and all should be included within the scope of protection of the present invention.

Claims

1. An accurate monocular depth estimation method based on plane and disparity metrics, characterized in that: The following steps are involved: Step S1, motion decomposition and plane definition: Based on plane parallax decomposition, a plane is defined, and the motion in the image is decomposed into two parts: plane homography and residual parallax, wherein the homography is used to represent the plane motion from the source image to the target image; Step S2, source image distortion and motion offset: distort the source image according to the defined plane homography to offset the motion of the plane; Step S3, residual parallax processing and depth prediction: after the source image is distorted, the remaining image motion is analyzed and processed; Step S4, implementation and integration: Integrate the optimized algorithm into the vision system of the autonomous driving vehicle and test and verify it in a real environment.

2. The method for accurate monocular depth estimation based on plane and disparity metrics according to claim 1, characterized in that: The specific steps of plane parallax decomposition include: Define Π to represent a 3D plane, where H represents aligning Π on the target image I t and source image I s Homography transformation between; set p and p' to represent the 3D point coordinate system x = [X, Y, Z] in I t and I s projection on Transform p′ through the homography transformation H to obtain the image point p w : p w ~Hp′ By s Transform and get the aligned image I w , so that the plane Π matches between them, then p w The displacement between and p is calculated as: Where K is the intrinsic parameter matrix of the camera, t = [tx, ty, tz] is the target image I t and source image I s The translation vector between c is the distance from the source view camera to the plane Π; the structure is represented by γ = Zh, where h is the distance from point x to Π; where, when x is on the plane Π, that is, h = 0, then p w =p; A monocular depth estimation network framework based on self-supervision is designed. The framework includes a deep network for estimating depth and a posture network for estimating translation between frames. The posture network receives the source image and the image I s ,I w , and outputs the translation vector t; the deep network receives the target image I t , and output I t Depth map For each pixel p = [x, y], such that Represents its estimated depth, using the camera intrinsics and the estimated depth to backproject p to obtain the corresponding 3D point In the camera coordinate system, the formula is: The following relationship is obtained: Where N is the normal vector of the plane Π, Yes The estimated distance to plane Π, is an estimate of the structural variable γ; obtain the reconstructed target image I t All the parameters required are obtained by aligning the image I w Transform to get For I t For each pixel p on the image, we calculate p based on the depth and translation predicted by the two networks. w , and then inverse transform I w and obtain To rebuild I t : By minimizing I t and to monitor the differences between Perform preprocessing steps on the dataset to obtain aligned images; By using the road as the plane Π, a homography is calculated for each pair of consecutive frames, and the frames are transformed according to the calculated homography to obtain a uniform distribution of the target image I t and source image I s Calculate a homography H, and then transform I according to H s Transform and obtain the transformed source image I w .

3. The method for accurate monocular depth estimation based on plane and disparity metrics according to claim 2, characterized in that: The specific steps of the monocular depth estimation network framework based on self-supervision include: Design a monocular depth estimation network framework based on the U-Net architecture, and use the ResNet pre-trained on ImageNet as the encoder of the depth estimation network; Using the same architecture as the current monocular depth estimation network, the depth is estimated by multiplying the output of the last sigmoid layer by the predicted maximum depth value, where the depth network starts with a single target image I t Takes as input and outputs a depth estimate for each pixel; The second network receives the transformed source image I w and the target image I t As input, and outputting only the translation vector between views, the network is similar to the pose network, where the output is a three-element vector representing the translation; Define the self-supervised training loss of the network and define the photometric loss function as a linear combination of L1 distance and structural similarity to minimize the target image I t and reconstruct the image The difference between , the photometric loss is defined as follows: For each target image, two aligned images, one obtained by deforming the previous frame and the other obtained by deforming the next frame, are introduced, and the minimum value of Lphoto for each pixel of the aligned images across the previous frame and the next frame is calculated; Define Lsmooth as an edge-based smoothness loss to encourage depth prediction to be locally smooth; The total loss function is then a combination of Lsmooth and Lphoto averaged over all N pixels, and the formula is: Among them, min means calculating the minimum value of the alignment frame between the previous frame and the next frame, and λ is a hyperparameter used to control the impact of the loss term.

Citation Information

Patent Citations

  • Visual odometer method based on image depth estimation

    CN111369608A

  • Unsupervised monocular depth estimation method based on edge feature learning

    CN115760943A

  • Unsupervised monocular endoscope image depth estimation method based on illumination variation separation

    CN117152198A