Method, device and equipment for reducing depth estimation model error and storage medium

By acquiring monocular images and point cloud data, generating mask data using inertial probability, and training a target depth estimation model, the problem of dynamic object influence in monocular depth estimation is solved, and more accurate dynamic scene depth estimation is achieved.

CN117474961BActive Publication Date: 2026-11-27HON HAI PRECISION INDUSTRY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210867058.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-22
Publication Date
2026-11-27
Estimated Expiration
2042-07-22

AI Technical Summary

Technical Problem

Existing monocular depth estimation models cannot effectively filter dynamic objects during training, resulting in large errors in depth estimation accuracy and an inability to correctly reconstruct the viewpoint pose transition of moving objects.

Method used

By acquiring monocular images and point cloud data, frame images are reconstructed using a preset initial depth estimation model, inertial probability is calculated and mask data is generated, and a target depth estimation model is trained based on a loss function to eliminate the influence of dynamic objects.

Benefits of technology

It significantly improves the accuracy of monocular image depth map estimation, obtains more accurate depth estimation results for dynamic scenes, and overcomes the limitation of traditional methods that can only exclude objects moving at a constant speed relative to the camera.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117474961B_ABST
    Figure CN117474961B_ABST
Patent Text Reader

Abstract

The application provides a method and device for reducing error of a depth estimation model, electronic equipment and a computer readable storage medium. The method comprises: acquiring monocular images and point cloud data of the monocular images, each monocular image comprising a target frame image and a reference frame image; reconstructing the target frame image according to the reference frame image and a preset initial depth estimation model to obtain a reconstructed frame image, so as to determine a reconstruction error of the target frame image and the reconstructed frame image; obtaining inertia probability of each pixel according to speed information of the point cloud data and pixel information of the target frame image; labeling each pixel with inertia probability higher than a preset threshold to obtain mask data; obtaining a loss function according to the reconstruction error and the mask data, and training the preset initial depth estimation model based on the loss function to obtain a target depth estimation model. The application can obtain more accurate depth estimation results of a dynamic scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer vision technology, and in particular to a method, apparatus, electronic device, and computer-readable storage medium for reducing depth estimation model errors. Background Technology

[0002] Recovering the depth information of a scene from a sequence of 2D images captured from a 3D scene is a crucial research area in computer vision. Monocular depth estimation is an important method for understanding the geometric relationships within a 3D scene. Monocular depth estimation refers to the process of processing images or videos captured by a monocular camera to obtain the corresponding depth data. Videos captured using a monocular camera are called monocular videos. When capturing monocular videos, unstable factors such as lens shake, movement of objects in the scene, and noise can cause differences between adjacent frames. These differences lead to significant jitter during monocular depth estimation, meaning that the depth data between two adjacent video frames may differ considerably.

[0003] To suppress this jitter, current deep learning methods for monocular depth estimation mainly utilize the SFM (Structure From Motion) principle. By providing the model with images from different times and viewpoints, the model infers the target depth and reconstructs the target's viewpoint image using reference images. Depth estimation with lower error will reconstruct images that are closer to the original target image. However, the similarity of the reconstructed image cannot accurately represent the degree of depth error in the following situations: moving objects do not conform to the viewpoint pose transformation of SFM and cannot be reconstructed correctly.

[0004] Existing technologies cannot completely filter out moving objects during the training of monocular depth estimation models, resulting in significant errors in the accuracy of depth estimation and preventing the model parameters from reaching their optimal level. Summary of the Invention

[0005] In view of this, the method, apparatus, electronic device and computer-readable storage medium proposed in this application for reducing depth estimation model error can ensure that the brightness difference of dynamic objects does not affect deep learning during model training, thereby reducing depth estimation error and obtaining more accurate depth estimation results for dynamic scenes.

[0006] In a first aspect, one embodiment of this application provides a method for reducing depth estimation model errors, including:

[0007] Acquire monocular images and point cloud data of the monocular images, wherein each monocular image includes a target frame image and a reference frame image;

[0008] The target frame image is reconstructed based on the reference frame image and the preset initial depth estimation model to obtain a reconstructed frame image, so as to determine the reconstruction error between the target frame image and the reconstructed frame image;

[0009] Based on the velocity information of the point cloud data and the pixel information of the target frame image, the inertial probability of each pixel is obtained;

[0010] Each pixel whose inertial probability is higher than a preset threshold is labeled to obtain mask data;

[0011] The loss function is obtained based on the reconstruction error and the mask data, and the preset initial depth estimation model is trained based on the loss function to obtain the target depth estimation model.

[0012] In one embodiment, obtaining the inertial probability of each pixel based on the velocity information of the point cloud data and the pixel information of the target frame image includes: calculating the initial inertial probability of each pixel for different point clouds based on the velocity information of the point cloud data and the pixel information of the target frame image; fusing the initial inertial probabilities of each pixel for different point clouds using a non-maximum suppression algorithm, and selecting the largest initial inertial probability as the inertial probability of each pixel.

[0013] In one embodiment, the initial inertial probability is calculated using the following formula:

[0014] P r (x)=c(x,r)s(I(x),I(r))

[0015] Among them, P r I(x) represents the initial inertial probability of each pixel for different point clouds, where x represents each pixel, r represents each point cloud, I(x) represents the color of each pixel x, I(r) represents the color of each point cloud r, c represents the proximity function, and s represents the similarity function.

[0016] In one embodiment, the step of reconstructing the target frame image based on the reference frame image and a preset initial depth estimation model to obtain a reconstructed frame image includes: performing depth estimation on the target frame image using the preset initial depth estimation model to obtain depth information of the target frame image; inputting the target frame image and the reference frame image into a preset pose estimation model to obtain camera pose change information between the target frame image and the reference frame image; and reconstructing the target frame image based on the depth information and the camera pose change information to obtain a reconstructed frame image after reconstruction of the target frame image.

[0017] In one embodiment, determining the reconstruction error between the target frame image and the reconstructed frame image includes: calculating the photometric difference between the target frame image and the reconstructed frame image, and obtaining the reconstruction error based on the photometric difference.

[0018] In one embodiment, after obtaining the trained target depth estimation model, the method further includes: acquiring a test image, the test image including a target frame and a reference frame; inferring the depth information of the target frame using the target depth model; and reconstructing the target frame based on the reference frame and the depth information to obtain a predicted depth image of the target frame.

[0019] In one embodiment, the method for acquiring the point cloud data includes: scanning the monocular image using a lidar to obtain the point cloud data of the lidar.

[0020] Secondly, one embodiment of this application provides an apparatus for reducing depth estimation model errors, comprising: an acquisition module for acquiring monocular images and point cloud data of the monocular images, each monocular image including a target frame image and a reference frame image; a reconstruction module for reconstructing the target frame image according to the reference frame image and a preset initial depth estimation model to obtain a reconstructed frame image, thereby determining the reconstruction error between the target frame image and the reconstructed frame image; a calculation module for obtaining the inertial probability of each pixel according to the velocity information of the point cloud data and the pixel information of the target frame image; a fusion module for labeling each pixel whose inertial probability is higher than a preset threshold to obtain mask data; and a training module for obtaining a loss function according to the reconstruction error and the mask data, and training the preset initial depth estimation model based on the loss function to obtain a target depth estimation model.

[0021] Thirdly, one embodiment of this application provides an electronic device, the electronic device including a processor and a memory, the memory being used to store instructions, and the processor being used to call the instructions in the memory, causing the electronic device to perform the method for reducing depth estimation model error as described in the first aspect.

[0022] Fourthly, one embodiment of this application provides a computer-readable storage medium storing computer instructions that, when executed on an electronic device, cause the electronic device to perform the method for reducing depth estimation model errors as described in the first aspect.

[0023] The method, apparatus, electronic device, and computer-readable storage medium provided in this application for reducing depth estimation model errors obtain a reconstructed frame image by using a reference frame image and a preset initial depth estimation model to determine the reconstruction error between the target frame image and the reconstructed frame image. Based on the velocity information of the point cloud data and the pixel information of the target frame image, the inertial probability of each pixel is obtained. Each pixel with an inertial probability higher than a preset threshold is labeled to obtain mask data. A loss function is obtained based on the reconstruction error and the mask data to obtain a trained target depth estimation model. The target depth estimation model trained by the above method significantly improves the accuracy of the depth map obtained when estimating depth maps of monocular images in video sequences, thereby enabling more accurate depth estimation results for dynamic scenes. Attached Figure Description

[0024] Figure 1 This is a schematic diagram illustrating an application scenario of a method for reducing depth estimation model errors according to an embodiment of this application.

[0025] Figure 2 This is a flowchart illustrating the steps of a method for reducing depth estimation model errors according to an embodiment of this application.

[0026] Figure 3 This is a flowchart illustrating the steps of a depth estimation method for a target depth estimation model according to an embodiment of this application.

[0027] Figure 4 This is a schematic diagram of the functional modules of an apparatus for reducing depth estimation model errors according to an embodiment of this application.

[0028] Figure 5 This is a schematic diagram of the architecture of an electronic device according to an embodiment of this application.

[0029] Explanation of main component symbols

[0030] Device 10 for reducing depth estimation model error

[0031] Get Module 11

[0032] Reconstruction Module 12

[0033] Calculation Module 13

[0034] Fusion Module 14

[0035] Training Module 15

[0036] Electronic devices 20

[0037] Processor 21

[0038] Memory 22

[0039] The following detailed description, in conjunction with the accompanying drawings, will further illustrate this application. Detailed implementation method:

[0040] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them.

[0041] It should be noted that, in the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the specification of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application.

[0042] It should be noted that in the embodiments of this application, the terms "first," "second," etc., are used only for descriptive purposes and should not be construed as indicating or implying relative importance, nor as indicating or implying order. Features specified as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0043] This disclosure specifically relates to the fields of computer vision and deep learning, and can be applied to image processing and image recognition scenarios. Deep learning learns the inherent patterns and representational layers of sample data. The information obtained during this learning process greatly helps in interpreting data such as text, images, and sound. The ultimate goal of deep learning is to enable machines to have analytical and learning capabilities like humans, and to recognize data such as text, images, and sound. Computer vision refers to machine vision that uses cameras and computers to replace human eyes for target recognition, tracking, and measurement, and further performs image processing to make the computer-processed images more suitable for human observation or transmission to instruments for detection. Image processing and image recognition scenarios can involve using hardware devices or software computational processing logic to recognize the images to be processed, thereby obtaining corresponding image features, and using these image features to assist in subsequent detection applications.

[0044] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of a method for reducing depth estimation model errors according to an embodiment of this application.

[0045] The method for reducing depth estimation model error provided in this embodiment is mainly applied to dynamic environments containing dynamic objects, such as... Figure 1 As shown, a dynamic object refers to an object whose position is P in the view of monocular camera O1 at one moment, but whose position is P' in the view of monocular camera O2 at the next moment. The projection point of P' in the view of monocular camera O2 is P3, and (P1,P3) is the feature point matching of the dynamic object. The feature point matching of the dynamic object (P1,P3) is different from the viewpoint transformation pose relationship obtained by the feature point matching of static objects such as (P1,P2). Most existing technologies are applied to the modeling of static objects and cannot completely filter out moving objects, resulting in a large error in the accuracy of the model.

[0046] Please see Figure 2 This is a flowchart illustrating the steps of a method for reducing depth estimation model errors according to an embodiment of this application.

[0047] Specifically, the method for reducing depth estimation model error disclosed in this embodiment may include:

[0048] S100: Acquire monocular images and point cloud data of monocular images. Each monocular image includes a target frame image and a reference frame image.

[0049] Specifically, monocular cameras, such as RGB or IR cameras, can be used to acquire monocular images of the current environment containing moving objects. Capturing environmental information using monocular cameras is advantageous due to their ease of installation, small size, and low cost, making them a promising area for depth estimation.

[0050] Specifically, the methods for acquiring point cloud data include: using lidar to scan monocular images to obtain lidar point cloud data.

[0051] Preferably, before training the preset initial depth estimation model using the target frame image and the reference frame image, the target frame image and the reference frame image can be calibrated to ensure the training effect of the subsequent preset initial depth model.

[0052] Preferably, consecutive target frame images and reference frame images can be extracted from monocular images and used as training data during the training of the preset initial depth estimation model. This helps reduce the cost of acquiring training data required for training the preset initial depth estimation model and effectively avoids relying on excessive external image information. Thus, while effectively ensuring the learning and modeling capabilities of the preset initial depth estimation model, the training cost of the model is also effectively reduced. For example, the number of target frame images and reference frame images can be one or more; this application does not limit this.

[0053] S200, the target frame image is reconstructed based on the reference frame image and the preset initial depth estimation model to obtain the reconstructed frame image, so as to determine the reconstruction error between the target frame image and the reconstructed frame image.

[0054] Specifically, the depth of the target frame image is estimated using a preset initial depth estimation model to obtain its depth information. The target frame image and a reference frame image are then input into a preset pose estimation model to obtain camera pose change information between them. Based on the depth information and camera pose change information, the target frame image is reconstructed to obtain a reconstructed frame image. The photometric difference between the target frame image and the reconstructed frame image is calculated, and the reconstruction error is obtained based on this difference. The preset pose estimation model is a mature existing technology and will not be described in detail here.

[0055] It should be noted that the luminance of an image can be understood as the brightness or darkness of the image, while the luminance difference information can be determined by the target frame image captured by the monocular camera at the previous moment and the reference frame image captured by the monocular camera at the next moment. The luminance difference information can be used to describe the error between the calculated luminance and the actual luminance during the image luminance recognition process, that is, the reconstruction error between the target frame image and the reconstructed frame image.

[0056] It should be noted that in this embodiment, any possible method can be used to determine the photometric difference between the target frame image and the reconstructed frame image, such as model matching, engineering methods, image processing methods, etc., and there are no restrictions on this.

[0057] S300 obtains the inertial probability of each pixel based on the velocity information of the point cloud data and the pixel information of the target frame image.

[0058] Specifically, based on the velocity information of the point cloud data and the pixel information of the target frame image, the initial inertia probability P of each pixel x for different point clouds r is calculated. r (x). Using the Non-Maximum Suppression (NMS) algorithm, the initial inertial probability P of each pixel x for different point clouds r is fused. r (x), select the largest initial inertia probability P. r (x) represents the inertial probability P(x) for each pixel x.

[0059] Furthermore, the initial inertia probability P r The formula for calculating (x) is:

[0060] P r (x)=c(x,r)s(I(x),I(r))

[0061] Among them, P rI(x) represents the initial inertial probability of each pixel x with respect to different point clouds r, where x represents each pixel and r represents each point cloud. I(x) represents the color of each pixel x, and I(r) represents the color of each point cloud r. c (closeness function) represents the proximity function, which follows a 2D Gaussian distribution; the closer pixel x is to the point cloud r, the higher the value of c. s (similarity function) represents the similarity function, also following a 2D Gaussian distribution; the closer the colors of pixel x and point cloud r are, the higher the value of s.

[0062] Furthermore, the initial inertial probability P(x) is calculated using the following formula:

[0063] P(x) = NMS r∈R (P r (x))

[0064] Here, the inertial probability P(x) represents the probability that pixel x belongs to a dynamic object.

[0065] S400 marks each pixel whose inertial probability is higher than a preset threshold to obtain mask data.

[0066] Specifically, based on the experimental results, a preset threshold is set, and regions where the inertia probability P(x) is higher than the preset threshold T are marked, thus obtaining mask data. Mask data allows the model to avoid the loss values ​​of dynamic objects affecting learning during training, and excludes moving objects.

[0067] S500 obtains a loss function based on the reconstruction error and mask data, and trains a preset initial depth estimation model based on the loss function to obtain a target depth estimation model.

[0068] The target depth estimation model trained by the above training method can exclude all moving objects in monocular images, overcoming the shortcomings of the original method that can only exclude objects moving at a constant speed relative to the camera, eliminating the influence of moving targets in dynamic scenes. At the same time, through iterative solution, the systematic errors existing in the preset initial depth estimation model are corrected, improving the depth estimation accuracy of the target depth estimation model.

[0069] In this embodiment, the loss function is the method for calculating the loss value, which can be:

[0070] Assuming the reconstruction error is D, the mask data is M, and the loss function is L, the relevant calculation formulas are as follows:

[0071]

[0072] Loss = DM

[0073] Wherein, the reconstruction error D is an image of size W*H, and pixel x represents the error value. The mask data M is also an image of size W*H, and pixel x∈{0,1}.

[0074] The loss function Loss is the product of the reconstruction error D and the mask data M. The result of the loss function Loss retains the error value of the reconstruction error D when the pixel value in the mask data M is 1. The average of the retained error values ​​is used as the final loss value. Based on this loss value, a preset initial depth estimation model is trained to obtain the target depth estimation model, and there are no restrictions on this.

[0075] In this embodiment, a reconstructed frame image is obtained using a reference frame image and a preset initial depth estimation model to determine the reconstruction error between the target frame image and the reconstructed frame image. Based on the velocity information of the point cloud data and the pixel information of the target frame image, the inertia probability of each pixel is obtained. Each pixel with an inertia probability higher than a preset threshold is labeled to obtain mask data. A loss function is derived based on the reconstruction error and the mask data to obtain the trained target depth estimation model, which effectively helps improve the ability of the trained target depth estimation model to represent and model the depth features of the image.

[0076] The target depth estimation model trained by the above method significantly improves the accuracy of the depth image obtained when performing depth image estimation on monocular images in video sequences, thus enabling more accurate depth estimation results for dynamic scenes.

[0077] In one embodiment, such as Figure 3 As shown, step S500 may further include:

[0078] S10, acquire the image to be tested, which includes the target frame and the reference frame.

[0079] S20, the depth information of the target frame is inferred using the target depth model.

[0080] S30, the target frame is reconstructed based on the reference frame and depth information to obtain the predicted depth image of the target frame.

[0081] Specifically, the image to be tested can be a static image or a dynamic video, without any restrictions.

[0082] In this embodiment, the target image is acquired, and consecutive target frames and reference frames are extracted from it. The target frames are then input into the target depth estimation model trained using the aforementioned method for reducing depth estimation model errors to obtain depth information for the target frames. Finally, the target frames are reconstructed based on the reference frames and depth information to obtain a predicted depth image of the target frames. Since the target depth estimation model is trained using a loss function derived from reconstruction errors and mask data, a more accurate predicted depth image is obtained when using this model to estimate the depth of the target image, resulting in more precise depth estimation results for dynamic scenes.

[0083] Any process or method description in the flowcharts of the above embodiments or otherwise described herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order according to the functions involved, as should be understood by those skilled in the art to which the embodiments of this application pertain.

[0084] Please see Figure 4 , Figure 4 This is a schematic diagram of the functional modules of a device 10 for reducing depth estimation model errors provided in an embodiment of this application.

[0085] In this embodiment, based on the same idea as the method for reducing depth estimation model error in the above embodiments, this application also provides an apparatus 10 for reducing depth estimation model error. This apparatus 10 can be used to execute the above-described method for reducing depth estimation model error. For ease of explanation, the functional block diagram of the apparatus 10 for reducing depth estimation model error only shows the parts relevant to the embodiments of this application. Those skilled in the art will understand that the illustrated structure does not constitute a limitation on the apparatus 10 for reducing depth estimation model error, and may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.

[0086] Specifically, in this embodiment, the device 10 for reducing depth estimation model error may include: an acquisition module 11, used to acquire monocular images and point cloud data of monocular images, each monocular image including a target frame image and a reference frame image; a reconstruction module 12, used to reconstruct the target frame image based on the reference frame image and a preset initial depth estimation model to obtain a reconstructed frame image, thereby determining the reconstruction error between the target frame image and the reconstructed frame image; a calculation module 13, used to obtain the inertial probability of each pixel based on the velocity information of the point cloud data and the pixel information of the target frame image; a fusion module 14, used to label each pixel whose inertial probability is higher than a preset threshold to obtain mask data; and a training module 15, used to obtain a loss function based on the reconstruction error and the mask data, and to train the preset initial depth estimation model based on the loss function to obtain a target depth estimation model.

[0087] Please see Figure 5 , Figure 5 This is a schematic diagram of an electronic device 20 provided in an embodiment of this application.

[0088] Specifically, the electronic device 20 includes a processor 21 and a memory 22. The memory 22 is used to store computer instructions, and the processor 21 is used to call the computer instructions in the memory 22 to cause the electronic device 20 to perform the steps of the method for reducing depth estimation model error as described in the above embodiments.

[0089] For example, computer instructions can be divided into one or more modules / units, one or more of which are stored in memory 22 and executed by processor 21. One or more modules / units can be a series of computer instruction segments capable of performing a specific function; these instruction segments describe the execution process of the computer instructions in electronic device 20. For example, they can be divided into... Figure 4 The module shown is the acquisition module 11, reconstruction module 12, calculation module 13, fusion module 14, and training module 15.

[0090] Electronic device 20 can be a desktop computer, laptop, handheld computer, industrial computer, tablet computer, server, or other computing device. Those skilled in the art will understand that the schematic diagram is merely an example of electronic device 20 and does not constitute a limitation on electronic device 20. It may include more or fewer components than shown in the diagram, or combine certain components, or use different components. For example, electronic device 20 may also include input / output devices, network access devices, buses, etc.

[0091] Processor 21 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, a single-chip microcomputer, or any conventional processor.

[0092] The memory 22 can be used to store computer instructions and / or modules / units. The processor 21 implements various functions of the electronic device 20 by running or executing the computer instructions and / or modules / units stored in the memory 22 and by calling the data stored in the memory 22. The memory 22 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device 20 (such as audio data), etc. In addition, the memory 22 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other non-volatile solid-state storage device.

[0093] This application also discloses a computer-readable storage medium that stores computer instructions. When the computer instructions are executed on an electronic device 20, the electronic device 20 performs the steps of the method for reducing depth estimation model errors as described in the above embodiments. The storage medium can be any medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0094] The method, apparatus, electronic device, and computer-readable storage medium provided in this application for reducing depth estimation model errors obtain a reconstructed frame image by using a reference frame image and a preset initial depth estimation model to determine the reconstruction error between the target frame image and the reconstructed frame image. Based on the velocity information of the point cloud data and the pixel information of the target frame image, the inertial probability of each pixel is obtained. Each pixel with an inertial probability higher than a preset threshold is labeled to obtain mask data. A loss function is obtained based on the reconstruction error and the mask data to obtain a trained target depth estimation model, which can effectively help improve the ability of the trained target depth estimation model to represent and model the depth features of an image. The target depth estimation model trained by the above method significantly improves the accuracy of the obtained depth image when performing depth image estimation on monocular images in a video sequence, thereby obtaining more accurate depth estimation results for dynamic scenes.

[0095] Those skilled in the art should recognize that the specific embodiments described in this specification may be given different names, and the above description is merely illustrative of the structure of this application. All equivalent or simple variations made based on the construction, features, and principles of this application are included within the scope of protection of this application. Those skilled in the art can make various modifications or additions to the described specific examples or adopt similar methods, as long as they do not deviate from the structure of this application or exceed the scope defined by the claims, and all such modifications and additions should fall within the scope of protection of this application.

Claims

1. A method for reducing depth estimation model error, characterized in that, include: Acquire monocular images and point cloud data of the monocular images, wherein each monocular image includes a target frame image and a reference frame image; The target frame image is reconstructed based on the reference frame image and the preset initial depth estimation model to obtain a reconstructed frame image, so as to determine the reconstruction error between the target frame image and the reconstructed frame image; Based on the velocity information of the point cloud data and the pixel information of the target frame image, the inertial probability of each pixel is obtained, including: calculating the initial inertial probability of each pixel for different point clouds based on the velocity information of the point cloud data and the pixel information of the target frame image; fusing the initial inertial probabilities of each pixel for different point clouds using a non-maximum suppression algorithm, and selecting the largest initial inertial probability as the inertial probability of each pixel; the formula for calculating the initial inertial probability is: ,in, Let x represent the initial inertial probability of each pixel in different point clouds, and r represent the probability of each point cloud. This represents the color of each pixel x. The color of each point cloud r is represented by 'c', the proximity function (the closer pixel x is to point cloud r, the higher the value of 'c') is, and the similarity function (the closer pixel x is to the color of point cloud r, the higher the value of 's') is; inertial probability. The calculation formula is: Among them, inertial probability Let x be the probability that pixel x belongs to a dynamic object; Each pixel whose inertial probability is higher than a preset threshold is labeled to obtain mask data; The loss function is obtained based on the reconstruction error and the mask data, and the preset initial depth estimation model is trained based on the loss function to obtain the target depth estimation model.

2. The method for reducing depth estimation model error as described in claim 1, characterized in that, The step of reconstructing the target frame image based on the reference frame image and a preset initial depth estimation model to obtain the reconstructed frame image includes: The depth information of the target frame image is obtained by performing depth estimation on the target frame image using the preset initial depth estimation model. The target frame image and the reference frame image are input into a preset pose estimation model to obtain camera pose change information between the target frame image and the reference frame image; The target frame image is reconstructed based on the depth information and the camera pose change information to obtain the reconstructed frame image.

3. The method for reducing depth estimation model error as described in claim 1, characterized in that, Determining the reconstruction error between the target frame image and the reconstructed frame image includes: calculating the photometric difference between the target frame image and the reconstructed frame image, and obtaining the reconstruction error based on the photometric difference.

4. The method for reducing depth estimation model error as described in claim 1, characterized in that, After obtaining the target depth estimation model, the method further includes: acquiring a test image, the test image including a target frame and a reference frame; inferring the depth information of the target frame using the target depth estimation model; and reconstructing the target frame based on the reference frame and the depth information to obtain a predicted depth image of the target frame.

5. The method for reducing depth estimation model error as described in claim 1, characterized in that, The method for acquiring point cloud data includes: scanning the monocular image using a lidar to obtain the point cloud data of the lidar.

6. An apparatus for reducing depth estimation model errors, characterized in that, include: The acquisition module is used to acquire monocular images and point cloud data of the monocular images, wherein each monocular image includes a target frame image and a reference frame image; The reconstruction module is used to reconstruct the target frame image based on the reference frame image and a preset initial depth estimation model to obtain a reconstructed frame image, so as to determine the reconstruction error between the target frame image and the reconstructed frame image; The calculation module is used to obtain the inertial probability of each pixel based on the velocity information of the point cloud data and the pixel information of the target frame image, including: calculating the initial inertial probability of each pixel for different point clouds based on the velocity information of the point cloud data and the pixel information of the target frame image; fusing the initial inertial probabilities of each pixel for different point clouds using a non-maximum suppression algorithm, and selecting the largest initial inertial probability as the inertial probability of each pixel; the calculation formula for the initial inertial probability is: ,in, Let x represent the initial inertial probability of each pixel in different point clouds, and r represent the probability of each point cloud. This represents the color of each pixel x. The color of each point cloud r is represented by 'c', the proximity function (the closer pixel x is to point cloud r, the higher the value of 'c') is, and the similarity function (the closer pixel x is to the color of point cloud r, the higher the value of 's') is; inertial probability. The calculation formula is: Among them, inertial probability Let x be the probability that pixel x belongs to a dynamic object; The fusion module is used to label each pixel whose inertial probability is higher than a preset threshold to obtain mask data; The training module is used to obtain a loss function based on the reconstruction error and the mask data, and to train the preset initial depth estimation model based on the loss function to obtain the target depth estimation model.

7. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory being used to store instructions, and the processor being used to invoke the instructions in the memory to cause the electronic device to perform the method for reducing depth estimation model error as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the method for reducing depth estimation model errors as claimed in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Methods, devices, media, and apparatuses of detecting moving object, and of intelligent driving control

    US20210122367A1

  • Method and apparatus of training depth estimation network, and method and apparatus of estimating depth of image

    US20210312650A1