Depth estimation method and system based on confidence grading and inter-level fusion enhancement

Through a depth estimation method based on confidence grading and inter-level fusion enhancement, depth values ​​of easy-to-identify areas are used to assist difficult areas, which solves the problem of uneven depth estimation difficulty in different areas in monocular depth estimation and improves the accuracy of depth estimation. Accuracy and quality.

CN115035172BActive Publication Date: 2024-09-06SHANDONG UNIV +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210641764.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-08
Publication Date
2024-09-06
Estimated Expiration
2042-06-08

AI Technical Summary

Technical Problem

Existing monocular depth estimation methods cannot effectively utilize the auxiliary information between different pixels, resulting in uneven difficulty of depth estimation in different areas. Especially in weak texture areas, depth estimation is difficult and error-prone, reducing the efficiency of scene estimation. quality.

Method used

A depth estimation method based on confidence grading and inter-level fusion enhancement is used to classify areas according to the depth estimation difficulty from easy to difficult through pixel grading. The depth values ​​of easily identifiable areas are used to assist in depth estimation of difficult areas. The depth map is used to estimate the depth of difficult areas. Inter-level feature enhancement is performed with the splicing and feature extraction of the confidence map, and finally input into the depth estimation network for encoding and decoding to improve the accuracy of the depth map.

Benefits of technology

Accurate regional pixel depth values ​​are used to assist difficult areas in the next stage, which reduces the difficulty of depth extraction in weak texture areas and improves the accuracy and quality of image depth estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115035172B
    Figure CN115035172B
Patent Text Reader

Abstract

The present disclosure relates to the technical field of scene depth estimation, and proposes a depth estimation method and system based on confidence grading and inter-level fusion enhancement, including: pixel grading according to the difficulty of depth estimation; extracting the depth map of each level pixel area and the confidence map corresponding to each level pixel area for each grading according to the pixel grading; splicing the depth map and confidence map of each level and superimposing them step by step to obtain the inter-level fusion confidence map, extracting features from the depth map of the pixel area of ​​the last level and the inter-level fusion confidence map as inter-level feature enhancement information; encoding the inter-level feature enhancement information and the target frame image to be detected as the input of the trained depth estimation network, and obtaining the depth map corresponding to the target frame after decoding. The present disclosure assists the difficult and error-prone area pixel depth estimation in the next stage by graded use of the easy and accurate area pixel depth values ​​of the previous stage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a technical field related to scene depth estimation, and more specifically, to a depth estimation method and system based on confidence grading and inter-level fusion enhancement. Background Art

[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.

[0003] Compared with two-dimensional vision, three-dimensional visual perception can provide depth information of the scene and has broad application prospects in many visual tasks, such as autonomous driving, three-dimensional reconstruction and augmented reality. Therefore, the depth estimation method based on monocular video has attracted widespread attention. With the development of deep learning, there are currently many depth estimation methods based on monocular video, including supervised learning methods with true depth map as the target and self-supervised learning methods with video motion generation structure as the target. This disclosure mainly focuses on the self-supervised learning method with video motion generation structure as the target.

[0004] The inventors found that the existing monocular depth estimation networks all view the pixels of different objects in the video scene without any difference, and cannot give full play to the auxiliary role between different pixels, which affects the quality of depth estimation. In fact, the scene content in the target frame of the monocular video is different, and the network has different depth estimation difficulties for different objects. For example, at the boundary of the object, when the source frame is used to reconstruct the target frame to generate a supervision signal, because the features are obvious, it is easier to match between the two, and then the depth estimation is easy and accurate. However, for smooth surfaces, such as roads, because they are weak texture areas with fewer features, it is more difficult to match between the two frames, and its depth estimation is relatively difficult and easy to make mistakes. Therefore, the existing depth estimation method hesitates to use indifferent depth estimation, which makes it relatively difficult and error-prone to estimate the area in the scene where depth estimation is difficult, thereby reducing the quality of scene estimation. Summary of the invention

[0005] In order to solve the above problems, the present disclosure proposes a depth estimation method and system based on confidence grading and inter-level fusion enhancement, which realizes pixel grading according to the difficulty of object depth estimation, and uses the easy and accurate regional pixel depth values ​​of the previous stage to assist the difficult and error-prone regional pixel depth estimation of the next stage, thereby improving the accuracy and quality of depth estimation.

[0006] In order to achieve the above objectives, the present disclosure adopts the following technical solutions:

[0007] One or more embodiments provide a depth estimation method based on confidence grading and inter-level fusion enhancement, comprising the following steps:

[0008] Pixels are graded according to the difficulty of depth estimation of the area in the target frame scene to be detected from easy to difficult;

[0009] According to the pixel classification, the depth of the area corresponding to each classification is estimated respectively, and the depth map of each level of pixel area and the confidence map corresponding to each level of pixel area are extracted;

[0010] The depth map and confidence map of each level are spliced ​​and superimposed level by level to obtain the inter-level fusion confidence map, and the depth map of the pixel area of ​​the last level and the inter-level fusion confidence map are used for feature extraction as the inter-level feature enhancement information;

[0011] The inter-level feature enhancement information and the target frame image to be detected are encoded as the input of the trained depth estimation network, and then decoded to obtain the depth map corresponding to the target frame.

[0012] One or more embodiments provide a depth estimation system based on confidence grading and inter-level fusion enhancement, including:

[0013] A classification module: configured to classify pixels according to the difficulty of depth estimation of the area in the target frame scene to be detected from easy to difficult;

[0014] A hierarchical extraction module is configured to perform depth estimation for each region corresponding to each level according to pixel levels, and extract a depth map of each level of pixel area and a confidence map corresponding to each level of pixel area;

[0015] Enhanced information superposition module: configured to splice the depth map and confidence map of each level and superimpose them level by level to obtain an inter-level fusion confidence map, and extract features from the depth map of the pixel area of ​​the last level and the inter-level fusion confidence map as inter-level feature enhancement information;

[0016] Enhancement and depth map extraction module: configured to encode the inter-level feature enhancement information and the target frame image to be detected as the input of the trained depth estimation network, and then decode it to obtain the depth map corresponding to the target frame.

[0017] An electronic device comprises a memory and a processor, and computer instructions stored in the memory and executed on the processor. When the computer instructions are executed by the processor, the steps described in the above method are completed.

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

[0019] In the present invention, by classifying depth estimation at the pixel level, first identifying easily recognizable areas, extracting confidence maps of easily recognizable areas as enhancement information to enhance the target frame image, the accurate regional pixel depth values ​​can be used to assist the difficult and error-prone regional pixel depth estimation in the next stage, thereby reducing the difficulty of depth extraction in weak texture areas and areas with fewer features and difficult depth estimation, and improving the accuracy of image depth estimation.

[0020] The advantages of the present disclosure and the advantages of additional aspects will be described in detail in the following specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The exemplary embodiments of the present disclosure and the description thereof are used to explain the present disclosure but do not constitute a limitation of the present disclosure.

[0022] Figure 1 is a block diagram of a self-supervised depth estimation network based on spatial domain information according to Embodiment 1 of the present disclosure;

[0023] Figure 2 It is a schematic diagram of the network structure of depth estimation according to pixel difficulty classification and auxiliary fusion between different levels in Example 1 of the present disclosure;

[0024] Figure 3 is a flow chart of the estimation method of Embodiment 1 of the present disclosure; DETAILED DESCRIPTION

[0025] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.

[0026] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.

[0027] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof. It should be noted that, in the absence of conflict, the various embodiments in the present disclosure and the features in the embodiments can be combined with each other. The embodiments will be described in detail below in conjunction with the accompanying drawings.

[0028] Example 1

[0029] In the technical solutions disclosed in one or more embodiments, Figure 1-Figure 3 As shown, the depth estimation method based on confidence grading and inter-level fusion enhancement includes the following steps:

[0030] Step 1: Pixel classification is performed according to the depth estimation difficulty of the area in the target frame scene to be detected from easy to difficult;

[0031] Step 2: According to the pixel classification, depth estimation is performed for the areas corresponding to each classification, and a depth map of each level of pixel area and a confidence map corresponding to each level of pixel area are extracted;

[0032] Step 3: Enhance the inter-level feature information based on the propagation and fusion of confidence: The depth map and confidence map of each level are spliced ​​and superimposed step by step to obtain the inter-level fusion confidence map, and the depth map of the pixel area of ​​the last level and the inter-level fusion confidence map are used for feature extraction as the inter-level feature enhancement information;

[0033] Step 4: Encode the inter-level feature enhancement information and the target frame image to be detected as the input of the trained depth estimation network, and then decode it to obtain the depth map corresponding to the target frame.

[0034] In this embodiment, by classifying the depth estimation at the pixel level, first identifying the easily recognizable areas, extracting the confidence map of the easily recognizable areas as enhancement information to enhance the target frame image, the accurate regional pixel depth value can be used to assist the difficult and error-prone regional pixel depth estimation in the next stage, thereby reducing the difficulty of depth extraction in weak texture areas and areas with fewer features and difficult depth estimation, and improving the accuracy of image depth estimation.

[0035] In this embodiment, the pixel classification from easy to difficult according to the depth estimation can be specifically: corner points, edges and other areas; or, it can be divided into edges and other areas. This classification method can be used for objects without corner points, such as spherical objects. In this embodiment, the first classification method is specifically described.

[0036] In some embodiments, depth estimation to obtain a depth map is achieved through a depth map extraction network. For different hierarchical pixel areas, a depth map extraction network corresponding to each level is set up respectively, and the depth map extraction network for the characteristics of the area is obtained by hierarchical training. The depth map extraction network at each level can use the same self-supervised depth estimation network. Specifically, in this embodiment, the self-supervised depth estimation network uses a self-supervised depth estimation network based on spatial domain information as a benchmark model.

[0037] In some embodiments, a self-supervised depth estimation network based on spatial information includes a depth estimation network and a posture transformation network:

[0038] Depth Estimation Network: used to estimate the depth map of the target frame;

[0039] Pose Transformation Network: used to predict the camera pose and provide self-supervision signals;

[0040] The self-supervised monocular depth estimation network provides a supervision signal by reconstructing the target frame through the source frame. Therefore, not only the depth estimation network is needed to estimate the depth map of the target frame, but also the posture transformation network is needed to predict the camera posture.

[0041] Optionally, the posture transformation network includes a feature extraction network with a residual network as the core and multiple cascaded convolutional layers. Specifically, in this embodiment, the convolutional layer can be set to three layers.

[0042] In this embodiment, Figure 1 As shown in the figure, for the posture transformation network, the monocular video target frame and source frame are first concatenated and input into the feature extraction network with the residual network as the core, and then the camera transformation posture is estimated through three convolutional layers.

[0043] Among them, the residual network uses the identity mapping method to directly add the output of the shallow network to the output of the deeper layer after two or three convolutional layers as the basic residual unit, thereby increasing the network depth without degrading network performance.

[0044] Optionally, the residual network can adopt a residual network ResNet_18, including a 7*7 convolution layer, a 3*3 maximum pooling layer, four residual convolution blocks and a global average pooling layer, wherein each residual convolution block contains more than two 3*3 convolution layers as residual units in the middle layer.

[0045] In some embodiments, the depth estimation network is specifically based on an encoder-decoder structure, including a depth encoder and a depth decoder, and an upsampling module, and the upsampling module connects each level of the depth encoder and each level of the depth decoder.

[0046] Firstly, the monocular video target frame is input into a deep encoder with a residual network as the core to obtain multi-scale deep features. The posture change network and the depth estimation network share the feature extraction network to reduce the number of network parameters.

[0047] In step 4, the decoding steps are:

[0048] Step 41: The deep features obtained after encoding are concatenated step by step to the deep features after upsampling according to the number of feature channels;

[0049] Step 42, completing the multi-scale feature fusion of spatial depth information through the convolution block: decoding the spliced ​​depth features step by step through the convolution layer and the Sigmoid activation function to obtain a multi-scale depth map;

[0050] Step 43: The multi-scale depth map is converted to a depth map of the same size as the input image through bilateral linear interpolation, and the target frame is reconstructed at the input target frame image size to obtain a depth map corresponding to the input target frame image.

[0051] Specifically, the deep features output by the depth encoder are used to reduce the number of feature channels through 3*3 convolution blocks and upsampling operations in the depth decoder. On the other hand, the shallow features are spliced ​​step by step to the deep features after upsampling according to the number of feature channels, and the multi-scale feature fusion of spatial depth information is completed through 3*3 convolution blocks. Finally, in the process of multi-scale feature fusion of spatial depth information, 3*3 convolution layers and Sigmoid activation functions are used to decode the spliced ​​deep features step by step to obtain a multi-scale depth map, and then bilateral linear interpolation is used to obtain a depth map of the same size as the input image, and the target frame is reconstructed on the input image size to provide supervision signals for monocular depth estimation network training.

[0052] The reconstruction process of the target frame is the viewpoint synthesis process, as shown in Formula 1. For each pixel position of the target frame, the depth map D t , video source frame I s With the video target frame I t The relative posture T t→s And the camera internal parameter K, calculate the corresponding source frame position coordinates, and then assign the obtained pixel value of the source frame position to the corresponding target frame position pixel value to obtain the reconstructed target frame I s→t , the supervisory signal is constructed using the reconstruction error of the target frame.

[0053] I s→t =I s <proj(D t , T t→s , K)> (1)

[0054] For the target frame reconstruction error of depth maps of different scales from different source frames, the minimum reconstruction error can be used instead of the average reconstruction error as the final optical reconstruction loss function, that is:

[0055] L p =min s pe(I t , I s→t ) s∈{-1,1} (2)

[0056] Because when some problem pixels only appear in the target frame but not in the source frame, the network can accurately predict their depth, but they cannot match the corresponding source frame pixels due to occlusion, resulting in a larger reprojection error penalty.

[0057] In addition to the optical reconstruction loss function, an edge smoothing function is also used to optimize the depth map prediction effect, where represents the depth gradient, Represents the image gradient as follows:

[0058]

[0059] In addition, self-supervised monocular depth estimation networks are usually trained under the assumption that the camera is moving and the scene in the frame is static. When the assumption is violated, such as the camera is fixed or there are moving objects in the scene, the network's depth prediction performance will be greatly affected.

[0060] In a video sequence, pixels that remain the same in adjacent frames usually represent a stationary camera, a moving object, or a low-texture area. By setting a simple binary automatic mask, u is 1 only when the reconstruction error between the reconstructed target frame and the target frame is less than the reconstruction error between the target frame and the source frame, and the network loss function contains the optical reconstruction loss function. It can effectively filter out pixels that remain unchanged from one frame to the next in the video. The effect of this is to let the network ignore objects that move at the same speed as the camera, and even ignore entire frames in monocular video when the camera stops moving. The final overall loss function L of the network training is:

[0061] L=uL P +L S (4)

[0062] The above-mentioned self-supervised depth estimation network based on spatial domain information can be used as a benchmark model for depth estimation networks at all levels. For each pixel area classification, one of the above-mentioned network structures is set respectively, and different loss functions are set for training based on pixels in specific areas of different hierarchical supervision.

[0063] The depth estimation scheme based on difficulty grading is described below.

[0064] In step 1, pixel classification is performed based on the difficulty classification of depth estimation of different objects in the target frame scene to be detected;

[0065] Specifically, in this embodiment, for different objects in the target frame scene, pixels are classified into corners, edges, and other areas according to the difficulty of depth estimation based on the richness of object texture, and scene object depth estimation is achieved in stages. During the training process, pixels in a specific area are supervised by a weighted loss function.

[0066] Specifically, a first-level corner point area depth estimation network is set for the corner point area to extract the depth value of the corner point area in the target frame image; a second-level edge area depth estimation network is set for the edge area to extract the depth value of the edge area in the target frame image.

[0067] Will be like Figure 1 The self-supervised depth estimation network based on spatial domain information is used as the benchmark model. First, the benchmark model is used to obtain the depth value of the corner point in the target frame scene of the video relatively easily and accurately.

[0068] The baseline model for the depth value at the corner point is used as the first-level corner point area depth estimation network. The loss function in the first-level network model training process includes the aforementioned optical reconstruction error L p , edge smoothing loss function L s , and design a weighted loss function L for corner area depth estimation C .

[0069] Specifically, we pay extra attention to the reconstruction error of the corner points between the target frame and the target frame reconstructed using the source frame. We can use the weighted combination of L1 and SSIM to measure the reconstruction error. For the corner point reconstruction errors from different source frames, we use the minimum reconstruction error as the final corner point loss function L C ,as follows:

[0070] L C =a(1-SSIM)(I′ s→t , I′ t ))+(1-a)||I′ s→t , I′ t || 1

[0071] Among them, I′ s→t with I′ t They all refer to the pixels at the corner points in the image.

[0072] Among them, the L1 loss function is based on comparing the differences pixel by pixel and then taking the absolute value; the SSIM (structural similarity) loss function takes into account the loss of brightness, contrast and structure indicators.

[0073] The quality of corner detection in the target frame is directly related to whether the network can accurately estimate the depth of the corner pixels. In order to accurately identify the depth of the corners in the depth map output by the first-level network, the step of corner detection is also included. Optionally, the Harris corner detection method can be used: set a local window, use the local window to move in the image to calculate the change in grayscale value, when the pixel grayscale in the area within the window changes significantly, it is considered that there is a corner in the window.

[0074] The final overall loss function for the first-level corner area depth estimation network training is: L = uL P +L S +L CThis embodiment can obtain an overall depth map of general quality and high-quality sparse corner pixel depth values ​​through the weighted supervision method.

[0075] In some embodiments, the depth of the edge region, which is difficult and error-prone in the second level, is estimated. A second-level network is constructed to accurately estimate the depth of the edge region. Similar to the first-level network, a loss function L is designed to supervise the edge depth. E , including L1 and SSIM combination to measure reconstruction error, edge depth supervision loss function L E ,as follows:

[0076] L E =a(1-SSIM)(I" s→t ,I" t ))+(1-a)||I" s→t ,I" t || 1

[0077] Among them, I″ s→t with I″ t Both refer to the pixels at the edge of the image.

[0078] The quality of edge detection in the target frame is directly related to whether the network can accurately estimate the depth of the corner pixel points. In order to accurately identify the edge depth of the second-level network output depth map, firstly, edge detection is performed on the target frame image. Optionally, the Canny edge detection method can be used. The specific steps are as follows:

[0079] Gaussian filtering is used to remove noise in the target frame image, and the Sobel operator is used to calculate the image gradient to obtain possible edges. Then, since the places where grayscale changes are relatively concentrated, non-maximum suppression is used to retain the areas with the largest grayscale changes in the gradient direction within the local range. Finally, double thresholds are used to screen out strong edge pixels.

[0080] During the training process, the overall loss function for the second-level network training is: L = uL P +L S +L E .

[0081] The depth of the entire monocular video is estimated. The third-level frame image overall recognition depth estimation network is used to estimate the depth of all areas of the frame image. At this time, since the first two levels of networks have already performed depth estimation of corners and edges, there is no need to consider corners and edges. The previous monocular depth estimation network can be used directly for learning. The overall loss function for the third-level network training is: L = uL P +L S .

[0082] In step 3, an inter-level deep feature enhancement method based on confidence propagation is used.

[0083] Specifically, in step 3, if N pixel levels are included, the depth map and the confidence map of each level are spliced ​​and superimposed level by level to obtain the inter-level fusion confidence map, including the following steps:

[0084] Step 31: splicing the first pixel-level depth map and the confidence map to obtain a first intermediate confidence map;

[0085] Step 32: The first intermediate confidence map is concatenated and fused with the confidence map of the second pixel-level pixel region to obtain an inter-level fused confidence map;

[0086] Step 33: splicing the second pixel-level depth map and the inter-level fusion confidence map to obtain a second intermediate confidence map;

[0087] Step 34, the second intermediate confidence map is spliced ​​and fused with the confidence map of the third pixel-level pixel area, and the inter-level fusion confidence map is updated according to the fusion result; according to steps 33-34, the depth map and confidence map of the next pixel level are accumulated in sequence until the depth map of the pixel area of ​​the last level and the inter-level fusion confidence map are used for feature extraction as inter-level feature enhancement information.

[0088] In this embodiment, two levels are set, including a corner pixel area and an edge pixel area. The specific process of obtaining inter-level feature enhancement information by the step-by-step superposition process is as follows:

[0089] On the basis of realizing pixel grading according to the difficulty of object depth estimation, it is important to use the easy and accurate regional pixel depth values ​​of the previous stage to assist the difficult and error-prone regional pixel depth estimation of the next stage. This embodiment adopts confidence-based propagation and fusion to enhance inter-level feature information, thereby improving the overall depth estimation quality. Specifically, the steps are as follows:

[0090] Step 3.1: After completing the first-level depth estimation according to the pixel classification and in the order from easy to difficult, the first-level network model trained is used to perform depth prediction to obtain the corner-based depth map D. 1 ;

[0091] Among them, the depth map D 1 The pixel depth values ​​in the mid-corner area are more accurate.

[0092] Step 3.2, according to the corner point coordinates provided by Harris corner point detection, the confidence of the corner point position in the depth map D1 is set to obtain the confidence map C based on the corner point depth. 1 .

[0093] Optionally, the confidence of the corner point is set to any non-zero value, otherwise it is 0;

[0094] In this embodiment, the confidence level at the corner point can be set to 1.

[0095] Step 3.3: transform the depth map D 1 and confidence map C 1 The concatenation is used as the input of the inter-level feature extraction network based on confidence propagation. After encoding and decoding, an intermediate confidence map C with the same resolution as the input is obtained. 1_p ;

[0096] like Figure 2 As shown in the figure, the inter-level feature extraction network is similar to the structure of the encoder-decoder based depth estimation network. The inter-level feature extraction network includes an encoder, a decoder and an upsampling module. On the one hand, the encoder based on the residual network outputs multi-scale inter-level depth features, which are fused according to the scale and the encoder of the next level depth estimation network. On the other hand, the deep features are reduced by the deep decoder convolution layer and upsampling operation to reduce the number of feature channels. On the other hand, the shallow features are spliced ​​to the deep features after upsampling step by step according to the number of feature channels to complete the multi-scale feature fusion of spatial depth information. Finally, the 3*3 convolution layer is used to decode the fused features to obtain the intermediate confidence map C with the same resolution as the input. 1_p .

[0097] Step 3.4: Use the trained second-level edge region depth estimation network to obtain the edge-based depth map D 2 , according to the edge coordinates provided by Canny edge detection, the confidence of the corner point position in the depth map D1 is set to obtain the confidence map C based on the edge depth 2_s ;

[0098] After completing the depth estimation of the second-level edge area, perform steps 3.1-3.3 in a similar manner to the previous stage to obtain the edge-based depth map D 2 According to the edge coordinates provided by Canny edge detection, the confidence map C based on edge depth is obtained. 2_s , where the edge is treated with a confidence of 1, otherwise it is 0.

[0099] The intermediate confidence map C obtained by using the inter-level feature extraction network based on confidence propagation 1_p Contains the depth map D 1 The more accurate depth value of the corner area provides the reliability information of the inter-level depth feature, and the confidence map C based on the edge depth 2_s It provides information on the reliability of edge depth values ​​obtained by fusion of deep features.

[0100] Step 3.5: Transform the intermediate confidence map C 1_pand the confidence map C based on edge depth 2_s Splicing, integrating the reliable information, and obtaining the inter-level fusion confidence map C 2 ;

[0101] In order to make full use of the reliability information provided by the confidence level, the intermediate confidence level graph C 1_p and the confidence map C based on edge depth 2_s The concatenated input is fed into a simple convolutional module, which contains two 3*3 convolutional layers and a RELU activation function to fuse the confidence reliability information. The network output is the inter-level fusion confidence map C. 2 .

[0102] Step 3.5: Process the second pixel level to obtain the edge depth map D 2 And the inter-level fusion confidence map C 2 The spliced ​​input is fed into the inter-level feature extraction network to obtain multi-scale inter-level depth features, which is the inter-level feature enhancement information;

[0103] Specifically, the depth of the entire monocular video is estimated, and the edge-based depth map D 2 And the inter-level fusion confidence map C 2 The spliced ​​input is input into the inter-level feature extraction network based on confidence propagation to obtain multi-scale inter-level depth features, which are used to fuse with the encoder of the depth estimation network at this stage to complete the final depth estimation of the entire scene, realize multi-level sparse pixel inter-level fusion depth estimation based on confidence propagation, and improve the overall depth estimation quality.

[0104] Furthermore, it also includes a method for training various levels of depth estimation networks for depth estimation, hierarchical training is performed for the network corresponding to each pixel-level region, and each level of depth estimation network is obtained to estimate and identify the depth map of the corresponding level pixel region. Specifically, the training process is as follows:

[0105] Step S1 is to train the first-level corner point area depth estimation network. During the training process, the corner point area depth estimation is focused on. According to the loss function in the first-level network model training process, the correctness of the corner point position depth in the obtained depth map is ensured, and the first-level corner point area depth estimation network is obtained after training.

[0106] Through the trained first-level corner area depth estimation network, the target frame image is identified to obtain the depth map D 1 And the confidence map C based on the corner depth 1 ;

[0107] Step S2 is to train the second-level edge region depth estimation network: transform the depth map D 1 and confidence map C 1The concatenation is used as the input of the inter-level feature extraction network based on confidence propagation. After encoding and decoding, an intermediate confidence map C with the same resolution as the input is obtained. 1_p ;

[0108] The depth map D 1 and confidence map C 1 The multi-scale features obtained by splicing are added to the depth encoder of the second-level edge region depth estimation network to train the second-level edge region depth estimation network. During the training process, according to the training loss function of the second-level edge region depth estimation network, the edge region depth estimation is focused on to ensure the correctness of the edge position depth in the obtained depth map, and a trained second-level edge region depth estimation network is obtained;

[0109] The target frame is detected through the trained second-level edge region depth estimation network to obtain the depth map D 2 And the confidence map C based on the corner depth 2_s ;

[0110] C 1_p With C 2_s After convolution, the edge confidence map C is obtained. 2 ;

[0111] Step S3 is to train the third-level frame image overall recognition depth estimation network to convert the depth map D 2 and confidence map C 2 The multi-scale features obtained by splicing are added to the depth encoder of the third-level frame image overall recognition depth estimation network to train the self-supervised depth estimation network to obtain the final depth map.

[0112] Example 2

[0113] Based on Embodiment 1, this embodiment provides a depth estimation system based on confidence grading and inter-level fusion enhancement, including:

[0114] A classification module: configured to classify pixels according to the difficulty of depth estimation of the area in the target frame scene to be detected from easy to difficult;

[0115] A hierarchical extraction module is configured to perform depth estimation for each region corresponding to each level according to pixel levels, and extract a depth map of each level of pixel area and a confidence map corresponding to each level of pixel area;

[0116] Enhanced information superposition module: configured to splice the depth map and confidence map of each level and superimpose them level by level to obtain an inter-level fusion confidence map, and extract features from the depth map of the pixel area of ​​the last level and the inter-level fusion confidence map as inter-level feature enhancement information;

[0117] Enhancement and depth map extraction module: configured to encode the inter-level feature enhancement information and the target frame image to be detected as the input of the trained depth estimation network, and then decode it to obtain the depth map corresponding to the target frame.

[0118] Example 3

[0119] This embodiment provides an electronic device, including a memory and a processor, and computer instructions stored in the memory and running on the processor. When the computer instructions are run by the processor, the steps described in the method of Embodiment 1 are completed.

[0120] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

[0121] Although the above describes the specific implementation methods of the present disclosure in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present disclosure. Technical personnel in the relevant field should understand that on the basis of the technical solution of the present disclosure, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present disclosure.

Claims

1. A depth estimation method based on confidence grading and inter-level fusion enhancement, characterized in that: The steps include: Pixels are graded according to the difficulty of depth estimation of the area in the target frame scene to be detected from easy to difficult; According to the pixel classification, the depth of the area corresponding to each classification is estimated respectively, and the depth map of each level of pixel area and the confidence map corresponding to each level of pixel area are extracted; The depth map and confidence map of each level are spliced ​​and superimposed level by level to obtain the inter-level fusion confidence map, and the depth map of the pixel area of ​​the last level and the inter-level fusion confidence map are used for feature extraction as the inter-level feature enhancement information; The inter-level feature enhancement information and the target frame image to be detected are encoded as the input of the trained depth estimation network, and then decoded to obtain the depth map corresponding to the target frame; For different hierarchical pixel areas, a depth map extraction network corresponding to each level is set up respectively, and the depth map extraction network for the characteristics of the area is obtained by hierarchical training respectively. The depth map extraction network of each level adopts the same self-supervised depth estimation network; The self-supervised depth estimation network includes a depth estimation network and a pose transformation network: Depth Estimation Network: used to estimate the depth map of the target frame; Pose Transformation Network: used to predict the camera pose and provide self-supervision signals; Pixels are graded from easy to difficult according to depth estimation, specifically divided into corners, edges, and other areas. A first-level corner area depth estimation network is set for the corner area to extract the depth value of the corner area in the target frame image; A second-level edge region depth estimation network is set for the edge region to extract the depth value of the edge region in the target frame image; A third-level frame image overall recognition depth estimation network is set up to perform depth estimation on all regions of the frame image.

2. The depth estimation method based on confidence grading and inter-level fusion enhancement according to claim 1, characterized in that: The pose transformation network includes a feature extraction network with a residual network as the core and multiple cascaded convolutional layers.

3. The depth estimation method based on confidence grading and inter-level fusion enhancement according to claim 1, characterized in that: The depth estimation network is specifically based on an encoder-decoder structure, including a depth encoder and a depth decoder, and an upsampling module, which connects each level of the depth encoder and each level of the depth decoder.

4. The depth estimation method based on confidence grading and inter-level fusion enhancement according to claim 1, characterized in that: The decoding method includes the following steps: The deep features obtained after encoding are concatenated step by step to the deep features after upsampling according to the number of feature channels; The multi-scale feature fusion of spatial depth information is completed through the convolution block: the multi-scale depth map is obtained by decoding the spliced ​​depth features step by step through the convolution layer and the Sigmoid activation function; The multi-scale depth map is interpolated to a depth map of the same size as the input image through bilateral linear interpolation, and the target frame is reconstructed at the input target frame image size to obtain the depth map corresponding to the input target frame image.

5. The depth estimation method based on confidence grading and inter-level fusion enhancement according to claim 1, characterized in that: The depth map and confidence map of each level are spliced ​​and superimposed level by level to obtain the inter-level fusion confidence map, including the following steps: Step 31: splicing the first pixel-level depth map and the confidence map to obtain a first intermediate confidence map; Step 32: The first intermediate confidence map is concatenated and fused with the confidence map of the second pixel-level pixel region to obtain an inter-level fused confidence map; Step 33: splicing the second pixel-level depth map and the inter-level fusion confidence map to obtain a second intermediate confidence map; Step 34: splice and fuse the second intermediate confidence map with the confidence map of the third pixel-level pixel area, and update the inter-level fusion confidence map according to the fusion result; According to step 33 to step 34, the depth map and confidence map of the next pixel level are accumulated in sequence until the depth map of the pixel area of ​​the last level and the inter-level fusion confidence map are used for feature extraction as inter-level feature enhancement information.

6. The depth estimation method based on confidence grading and inter-level fusion enhancement according to claim 1, characterized in that: The loss function for training the first-level corner area depth estimation network is the optical reconstruction error , edge smoothness loss function And the weighted loss function for depth estimation in corner areas The weighted sum of .

7. The depth estimation method based on confidence grading and inter-level fusion enhancement according to claim 1, characterized in that: The loss function for training the second-level edge region depth estimation network is: optical reconstruction error , edge smoothness loss function And the loss function for edge depth supervision The weighted sum of .

8. The depth estimation method based on confidence grading and inter-level fusion enhancement according to claim 1, characterized in that: It also includes a method for hierarchically training various levels of depth estimation networks for depth estimation, and the training process is as follows: Training the first-level corner point area depth estimation network. During the training process, for the corner point area depth estimation, according to the loss function in the first-level network model training process, the correctness of the corner point position depth in the obtained depth map is satisfied, and the trained first-level corner point area depth estimation network is obtained; Through the trained first-level corner area depth estimation network, the target frame image is identified to obtain the depth map And the confidence map based on corner depth ; Train the second-level edge region depth estimation network: The depth map and confidence map The multi-scale features obtained by splicing are added to the depth encoder of the second-level edge region depth estimation network to train the second-level edge region depth estimation network. During the training process, according to the training loss function of the second-level edge region depth estimation network, the edge region depth estimation is performed to meet the correctness of the edge position depth in the obtained depth map, and a trained second-level edge region depth estimation network is obtained; The target frame is detected through the trained second-level edge area depth estimation network to obtain the depth map And the confidence map based on corner depth ; The depth map and confidence map The concatenation is used as the input of the inter-level feature extraction network based on confidence propagation. After encoding and decoding, an intermediate confidence map with the same resolution as the input is obtained. ; The intermediate confidence map and confidence map based on corner depth After convolution, the edge confidence map is obtained. ; Train the third-level frame image overall recognition depth estimation network and transform the depth map and confidence map The multi-scale features obtained by splicing are added to the depth encoder of the third-level frame image overall recognition depth estimation network to train the self-supervised depth estimation network to obtain the final depth map.

9. The depth estimation method based on confidence grading and inter-level fusion enhancement as claimed in claim 1, characterized in that: It is divided into three levels, including corner pixel areas, edge pixel areas, and other areas in the image except corner points and edges. The specific process of obtaining inter-level feature enhancement information through the step-by-step superposition process is as follows: According to the pixel classification, in the order from easy to difficult depth estimation, after completing the first level of depth estimation, the trained first level network model is used to perform depth prediction to obtain a corner-based depth map. ; According to the corner point coordinates provided by Harris corner point detection, the confidence of the corner point position in the depth map D1 is set to obtain the confidence map based on the corner point depth. ; The depth map and confidence map The concatenation is used as the input of the inter-level feature extraction network based on confidence propagation. After encoding and decoding, an intermediate confidence map with the same resolution as the input is obtained. ; Use the trained second-level edge region depth estimation network to obtain edge-based depth maps , according to the edge coordinates provided by Canny edge detection, the confidence of the corner point position in the depth map D1 is set to obtain the confidence map based on the edge depth ; The intermediate confidence map and confidence map based on edge depth Splicing, fusing the reliable information, and obtaining the inter-level fusion confidence map .

10. A depth estimation system based on confidence grading and inter-level fusion enhancement, characterized in that: include: A classification module: configured to classify pixels according to the difficulty of depth estimation of the area in the target frame scene to be detected from easy to difficult; A hierarchical extraction module is configured to perform depth estimation for each region corresponding to each level according to pixel levels, and extract a depth map of each level of pixel area and a confidence map corresponding to each level of pixel area; Enhanced information superposition module: configured to splice the depth map and confidence map of each level and superimpose them level by level to obtain an inter-level fusion confidence map, and extract features from the depth map of the pixel area of ​​the last level and the inter-level fusion confidence map as inter-level feature enhancement information; Enhancement and depth map extraction module: configured to encode the inter-level feature enhancement information and the target frame image to be detected as input to the trained depth estimation network, and then decode to obtain the depth map corresponding to the target frame; For different hierarchical pixel areas, a depth map extraction network corresponding to each level is set up respectively, and the depth map extraction network for the characteristics of the area is obtained by hierarchical training respectively. The depth map extraction network of each level adopts the same self-supervised depth estimation network; The self-supervised depth estimation network includes a depth estimation network and a pose transformation network: Depth Estimation Network: used to estimate the depth map of the target frame; Pose Transformation Network: used to predict the camera pose and provide self-supervision signals; Pixels are graded from easy to difficult according to depth estimation, specifically divided into corners, edges, and other areas. A first-level corner area depth estimation network is set for the corner area to extract the depth value of the corner area in the target frame image; A second-level edge region depth estimation network is set for the edge region to extract the depth value of the edge region in the target frame image; A third-level frame image overall recognition depth estimation network is set up to perform depth estimation on all regions of the frame image.

11. An electronic device, characterized in that: The method comprises a memory and a processor and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the steps described in any one of the methods of claims 1 to 9 are completed.

Citation Information

Patent Citations

  • Pose estimation method based on region-level feature fusion

    CN114155406A

  • Monocular unsupervised depth estimation method based on contextual attention mechanism

    US20210390723A1

  • Method and apparatus to complement depth image

    US20220067950A1

  • Method and system for unsupervised prediction of image depth and confidence map

    US20220130062A1