Electronic device, method and program

The method predicts a confidence map for a ToF camera to selectively illuminate areas of low confidence, addressing the SNR reduction in ToF cameras, particularly in mobile devices, by reducing power consumption and improving depth measurement accuracy.

WO2024188724A1PCT designated stage expired Publication Date: 2024-09-19SONY SEMICON SOLUTIONS CORP +1

Patent Information

Application Number
PCT/EP2024/055732
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-10
Filing Date
2024-03-05
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Time-of-flight (ToF) cameras face challenges in maintaining a high signal-to-noise ratio (SNR) due to the inverse square law of active illumination, leading to reduced depth measurement precision, especially in mobile devices with limited optical power and sensor integration time, which existing methods to improve SNR, such as zone or spot illumination, often result in high power consumption.

Method used

A device and method that use a model to predict a depth map and confidence map of a scene, triggering a ToF camera to capture a sparse depth map based on the confidence map, allowing for efficient illumination and reducing power consumption while maintaining or improving SNR by selectively illuminating areas with low confidence values.

Benefits of technology

This approach reduces power consumption while maintaining or enhancing the SNR of depth measurements, allowing for more accurate depth mapping in mobile devices and other applications with limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2024055732_19092024_PF_FP_ABST
    Figure EP2024055732_19092024_PF_FP_ABST
Patent Text Reader

Abstract

A device comprising circuitry configured to determine, by a model, a first predicted depth map of a scene and a confidence map corresponding to the first predicted depth map of the scene based on a captured image; trigger a ToF camera to capture a sparse depth map of the scene based on the confidence map; and determine, based on the model, a second depth map of the scene based on the sparse depth map.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] ELECTRONIC DEVICE, METHOD AND PROGRAM

[0002] TECHNICAL FIELD

[0003] The present disclosure generally pertains to predicting a depth map of scene, specifically the triggering a ToF camera to capture a sparse depth map of a scene based on a confidence map corresponding to a first predicted depth map of the scene and the prediction of a sequence of depth maps of the scene based on feedback from the confidence map.

[0004] TECHNICAL BACKGROUND

[0005] In time-of-flight (ToF) cameras (see also reference [1]) a scene is illuminated with infrared light produced by an active illumination device (for example a fixed-frequency amplitude-modulated continuous waveform produced by an emitter in infrared band). The depth is measured by the delay of the return signal as it hits the scene and is reflected back to the ToF sensor. In indirect ToF (iToF) this delay is measured as a phase shift of correlation waveform samples computed from the return signal of an amplitude modulated continuous waveform. In direct ToF (dToF) the measurement is performed on a histogram of photon times of arrival, where the peak (or peak estimate) indicates the main echo corresponding to the actual ToF from the return signal of a pulse waveform.

[0006] A limitation of ToF cameras may be, that the signal-to-noise ratio (SNR) of the return signal affects the measurements’ precision. That is, the depth measurements’ SNR coarsely drops with the inverse square law of the active illumination as it propagates, i.e., so that Depth SNR oc Depth2(the proportionality may hold for example in iToF).

[0007] Some methods exist to partly improve Depth SNR for the same amount of total optical power, e.g., by focusing light at specific locations of a scene rather than using full-field, uniform illumination. This may be done using one or more illumination patterns that may take several forms, including, scanning lines in any orientation, on-off coded illumination masks illuminating rectangular or similarly-shaped portions of the full field of illumination (hereafter, zone illumination), or as done in LiDAR depth sensing and structured light depth sensing, so-called spot or dot patterns as generated by using vertical-cavity surface emitting laser (VCSEL) with diffractive optical elements (DOE), and so that light is focused at specific sparse coordinates (hereafter, spot illumination). This may lead to SNR gains with respect to full-field illumination and may be suitable for achieving longer range for the same amount of total optical power. However, these methods may have a high power consumption. Mobile devices and other devices may have smaller optical power budget available for exposing a scene, and may also have smaller sensor integration time, thus limiting the achievable measurements SNR.

[0008] Therefore, it is generally desirable to further reduce power consumption of a ToF camera whilst maintaining or increasing the Depth SNR.

[0009] SUMMARY

[0010] According to a first aspect the disclosure provides device comprising circuitry configured to determine, by a model, a first predicted depth map of a scene and a confidence map corresponding to the first predicted depth map of the scene based on a captured image; trigger a ToF camera to capture a sparse depth map of the scene based on the confidence map; and determine, based on the model, a second depth map of the scene based on the sparse depth map.

[0011] According to a second aspect the disclosure provides a method comprising the steps of determining, by a model, a first predicted depth map of a scene and a confidence map corresponding to the first predicted depth map of the scene based on a captured image; triggering a ToF camera to capture a sparse depth map of the scene based on the confidence map; and determining, based on the model, a second depth map of the scene based on the sparse depth map.

[0012] Further aspects are set forth in the dependent claims, the drawings and the following description.

[0013] BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Embodiments are explained by way of example with respect to the accompanying drawings, in which:

[0015] Fig. 1 shows a flowchart of a feedback depth sensing system estimating a dense depth map of scene and a confidence map of the scene based on a sparse depth map triggered by a confidence map;

[0016] Fig. 2 shows a flow chart of a projecting of a point cloud of a scene into a VIS / NIR camera image coordinate system by the coordinate projector;

[0017] Fig. 3 is a flowchart of the process of determining a dense depth map and confidence map by the (e.g. machine learning-based) model;

[0018] Fig. 4 shows a flowchart of the processing of the feedback module;

[0019] Fig. 5 shows the activation of VCSEL banks based on the activation matrix; Fig. 6 shows a sequence of improved estimated dense depth maps frame-triggered by depth and confidence maps;

[0020] Fig. 7 shows a sequence of improved estimated dense depth maps zone-triggered by depth and confidence maps;

[0021] Fig. 8 shows a training data sequence which is input into the model during a training procedure;

[0022] Fig. 9 shows inputs and outputs of the model during the training procedure;

[0023] Fig. 10 illustrates schematically the basic operational principle of a time-of-flight (ToF) camera; and

[0024] Fig. 11 schematically describes an embodiment of an electronic device which may implement the functionality of estimating a dense depth map and a confidence map as described above.

[0025] DETAILED DESCRIPTION OF EMBODIMENTS

[0026] Before a detailed description of the embodiments under reference of Fig. 1 is given, general explanations are made.

[0027] The embodiments described below in more detail disclose a device comprising circuitry that may be configured to determine, by a model, a first predicted depth map of a scene and a confidence map corresponding to the first predicted depth map of the scene based on a captured image (and, optionally, another sparse depth map of the scene); trigger a ToF camera to capture a sparse depth map of the scene (exposing specific areas) based on the confidence map; and determine, based on the model, a second depth map of the scene based on the sparse depth map.

[0028] The ToF camera may be dToF, or iToF camera or the like. Instead of an ToF camera, any other depth estimation device like LiDAR or the like may be used (LiDaR may being scanned (scanning mirror, or electronically scanned etc.) while dToF may be a full 2D array sensor one- shot capture (sometimes referred to as “flash”)).

[0029] A depth map, may be an image which comprises a depth value for each pixel, indicating the distance of the object that is captured in the corresponding pixel from the camera having captured that image. For example, a depth map may be generated based on a point cloud that is captured by a ToF camera.

[0030] A sparse depth map may be a depth map that may contain a reduced number of depth values with regards to a specific maximum number of depth values defined by a specific resolution. For example, a depth map captured by a ToF camera may be a sparse depth map with regards to the maximum resolution of the capturing ToF camera. For example, the sparse depth map may only contain depth values for 5% or 1% of the maximum resolution number of pixels. For example, a sparse depth map may comprise depth values only on a certain region of the available sensor resolution of the ToF camera. Or a sparse depth map may comprise depth values uniformly reduced over the available sensor resolution of the ToF camera.

[0031] The confidence map defines the reliability of the corresponding depth map for the frame at the same time step t. That means the confidence map may comprise a confidence value for each pixel. The confidence value for each pixel may be an estimated assessment of the reliability of corresponding depth estimate of that pixel. For example, a confidence value of the confidence map, may be a value between 0 and 1, wherein 0 indicates that there is no reliability about corresponding depth estimate of that pixel and wherein 1 indicates that there is almost certainty about reliability of corresponding depth estimate of that pixel (comparable to a probability value). The confidence map may be generated by rule-based algorithm or by a machine learning model (for example a random forest model, or a Bayesian deep neural network model, or the like).

[0032] The using of sparse depth maps to predict a dense depth map as described above may be applied for ToF as a depth sensing / ranging technology or for long-range use-cases, including 3D reconstruction of large environments, indoor and outdoor simultaneous localization and mapping (SLAM), and augmented / virtual reality (VR / AR) applications with handheld devices. It may for example, be used specifically when a camera system (for example comprising a RGB camera and a ToF camera) is moving slowly (e.g., handshake, walking, running, cleaning / ground robots, etc.) because a minimum overlap per frame may be guaranteed and therefore the confidence map at frame t is meaningful to determine illumination at a frame t+1.

[0033] The using of sparse depth maps to predict a dense depth map as described above may reduce the power consumption of a device comprising the VIS / NTR and ToF camera, for example a mobile device, by reducing the number of ToF frames captured while streaming VIS / NIR and depth data (VIS / NIR-D, for example RGB-D) data.

[0034] The model may be a traditional rule-based technique or a machine-learning-based (for example based on artificial neural networks, ANNs) algorithm (see reference given below). In another embodiment the triggering can be triggered by confidence and / or just at system / streaming startup. The machine learning-based function may or may not read on pretrained weights obtained by training, and returns depth and confidence. Circuitry may include a processor, a memory (RAM, ROM or the like), a storage, input means (mouse, keyboard, camera, etc.), output means (display (e.g. liquid crystal, (organic) light emitting diode, etc.), loudspeakers, etc., a (wireless) interface, etc., as it is generally known for electronic devices (computers, smartphones, etc.). Moreover, it may include sensors for sensing still image or video image data (image sensor, camera sensor, video sensor, etc.), for sensing a fingerprint, for sensing environmental parameters (e.g. radar, humidity, light, temperature), etc.

[0035] In some embodiments the circuitry may be configured to determine, based on the model, a sequence of predicted depth maps, comprising two or more predicted depth maps of the scene, based on the sparse depth map and iterating the process as prescribed by the confidence map and / or as the scene content changes.

[0036] In some embodiments the captured image is an image captured in the visible (VIS) or near infrared light range (NIR). The captured image may an image base on which a monocular depth can be estimated. For example, the captured image may be any arbitrary colorspace, e.g., grayscale, RGB, CMYK, LAB, etc. It may be referred to the captured image as VIS / NIR image (VIS / NIR is a known terminology in optics to indicate a specific spectral band where data is sampled).

[0037] In some embodiments the circuitry may be configured to trigger an illuminator corresponding to the ToF camera, to sparsely illuminate the scene based on the confidence map and capturing the sparse depth map of the scene based on the sparse illumination of the scene.

[0038] A ToF camera may comprise an illuminator which actively illuminates a scene with modulated light at a predetermined wavelength, for instance with some light pulses of at least one predetermined frequency generated by a timing generator. The illuminator may be a verticalcavity surface emitting laser (VCSEL), comprising a plurality of VCSEL laser banks. The laser banks (or units) of the VCSEL illuminator may be controllable (addressable) each individually or in certain groups (2 x 2 matrix over the field of illumination (Fol), 3 x 3 matrix over the field of illumination (Fol), or the like).

[0039] A sparse illumination of a ToF illuminator may be an illumination of a scene that covers less area of the scene with regards to a specific maximum coverable area by illuminator. For example, the sparse illumination of a ToF illuminator may only illuminate a reduced region of the coverable full field area of the illuminator by switching of certain parts of the illuminator or concentrating all parts of the illuminator to that reduced region. Or sparse illumination of an ToF illuminator may uniformly illuminate the coverable area in a reduced way by for example uniformly switching off every second unit of the illuminator. In VCSELs with spot patterns there are diffractive elements to create and replicate Gaussian-like beams that form the spots.

[0040] In some embodiments the circuitry may be configured to determine an activation map for the illuminator based on the confidence map, wherein the activation map, maps (i.e., downsamples and converts to control signal) the confidence map onto separately controllable units of the illuminator.

[0041] The illuminator may be a vertical -cavity surface emitting laser (VCSEL), comprising a plurality of VCSEL laser banks. The laser banks (or units) of the VCSEL illuminator may be controllable (addressable) each individually or in certain groups (2 x 2, 3 x 3 or the like). The individually addressable units of the illuminator may form a matrix with a certain resolution, which may be referred to as the (controllable) resolution of the illuminator. The resolution of the illuminator may be smaller or equal to the resolution of the confidence image, which may be equal to the VIS / NIR image. The mapping between the resolution of the confidence map and the resolution of the illuminator may be performed by the activation map.

[0042] In some embodiments the circuitry may be configured to trigger an illuminator corresponding to the ToF camera, to illuminate a part of the scene based on the confidence map and capturing the sparse depth map of the scene based on the illuminated part of the scene.

[0043] The confidence map may indicate which pixels of the estimated dense depth map are estimated with a low confidence (i.e., low reliability, low probability of being correct). These low- confidence spatial regions may coarsely indicate where additional scale information may be needed, and may serve as indicators of where the illuminator should illuminate the scene captured by the ToF camera in the next time step.

[0044] In some embodiments the circuitry may be configured to determine, by the model, the first depth map of the scene further based on another sparse depth map. The determining of the first depth map may be based on an VIS / NIR image only (i.e., monocular depth prediction) or on a VIS / NIR image and a sparse depth map i.e., depth completion).

[0045] In some embodiments the model may be an artificial neural network (ANN). For example, the ANN may be a convolutional neural network (CNN).

[0046] In some embodiments the circuitry maybe configured to determine the second depth map of the scene further based on a VIS / NIR image. This may be the same VIS / NIR image of the scene as for the first depth map or a different VIS / NIR image of the scene.

[0047] The model predicts the dense depth map based on VIS / NIR image and optionally based on a sparse depth map. The VIS / NIR image and the depth map may capture the same scene (the capture is assumed to be synchronous to VIS / NIR). The illuminated area in the second frame may in some embodiments not perfectly be coinciding with that indicated in the first frame. As the illumination may be used for scale information and synchronously with respect to the latest VIS / NIR frame, the trigger may serve to steer the illuminator into a possibly important area. In case the confidence is low due to large unexposed areas, this may be fixed at the subsequent frame.

[0048] In some embodiments the circuitry may be configured to project the first depth map of the scene, the second depth map of the scene, the sparse depth map of the scene and the VIS / NIR image into the same coordinate system.

[0049] All processed images and maps may be transformed into the same coordinate system in order to fuse and process them. There are several state-of-the-art methods to achieve that projection. For example, they may all be transformed into a global coordinate system, or into a ToF camera system or into the VIS / NIR camera system.

[0050] In some embodiments the coordinate system may be the coordinate system of the VIS / NIR camera capturing the VIS / NIR image.

[0051] In some embodiments the circuitry may be configured to determine the second depth map of the scene based on sequence of VIS / NIR images of the scene and optionally on a sequence of sparse depth maps of the scene based on the confidence map.

[0052] The depth estimation of the model may be based on a sequence of input VIS / NIR images and / or sparse depth maps. There may be a VIS / NIR image for each frame of the sequence and as well a sparse depth map for each frame of the sequence. However, there may also be a sparse depth map only for certain frames of the corresponding VIS / NIR sequence.

[0053] In some embodiments the circuitry may be configured to trigger the ToF camera to capture one or more sparse depth maps of the scene corresponding to frames of the VIS / NIR sequence, based on the confidence map.

[0054] There may also be a sparse depth map only for certain frames of the corresponding VIS / NIR sequence. Based on the confidence map there may be decided to capture a sequence of sparse depth maps to improve the depth estimation of the predicted dense depth map. The number of dots in the sparse depth map may increase with every frame of the sequence or remain constant. That means based on the confidence map it is determined an illumination sequence which needs to be exposed at the following frames of the sequence. Based on the confidence map the illuminator is controlled to illuminate the corresponding areas of the scene and the ToF camera captures a depth map.

[0055] Additionally, or instead the specific sparseness of the sparse depth maps of the sequence may be determined based on the confidence map or a sequence of confidence maps. That means based on the confidence map it is determined a spatial area of the scene which needs to be illuminated by the illuminator at the following frames of the sequence. Based on the confidence map the illuminator is controlled to illuminate the corresponding areas of the scene and the ToF camera captures a depth map.

[0056] The depth maps estimates may thereby progressively be updated, and the corresponding confidence map(s) may be used as feedback for the aforementioned illumination control.

[0057] In some embodiments the circuitry may be configured to train the model based on training data comprising an VIS / NIR image of a second scene and optionally on a sparse depth map of the second scene. The model may be an ANN, that is trained by minimizing a loss function using gradients computed via backpropagation. In some embodiments the circuitry may be configured to obtain, for the training of the model, the sparse depth map of the second scene from a dense depth map of the second scene by dropping out parts of (also referred to as masking) the dense depth map based on a confidence map predicted by the model. By dropping out parts of depth maps during training, it is simulated the behavior of the illuminator in feedback, or simulated the input resulting from the illuminator shining light only on the past confidence map.

[0058] Sequences of VIS / NIR images and optionally of sparse depth maps may be used to train the model.

[0059] In some embodiments the circuitry may be configured to train the model based on a training data comprising a sequence of VIS / NIR image frames of a second scene and optionally on sequence of a sparse depth map frames of the second scene.

[0060] That is, the model is trained with a sequence of frames (VIS / NIR frames and sparse depth map frames, at time instances t, t+1, t+2, . . ., t + N), where it is started from the assumption of knowing depth and color at all frames, with a realistic simulation model to represent the sparse depth, the color, and its noise. Then these inputs are passed to the model (the model may be a CNN model or Vision Transformer model and depending on how it is trained it it will or will not be robust to sparsity). Thereby in the training one can simulate the sparse depth, color as inputs, and the GT depth (which is known in full and can be sampled according to the illuminator activated by confidence) and also get it from the model dense confidence and depth. Therefore, one can train (or fine-tune from existing weights in some embodiments) the model using depth / color sequences that represent the behavior of the closed-loop system.

[0061] In some embodiments the circuitry may be configured to remove parts of the sequence of sparse depth map frames of the second scene from training data based on a confidence map predicted by the model; and / or obtain one or more sparse depth map frames from the sequence of sparse depth map frames of the second scene from one or more dense depth map of the second scene by dropping out parts of the one or more dense depth maps based a confidence map predicted by the model. During training the sparse depth map frames may be used at every frame of the sequence corresponding to the VIS / NIR images or only at some frames. Further, the sparse depth maps may be based on dense depth maps which may however be masked partly in order to simulate a sparse depth map and train the network accordingly. The dropping out may be determined based on a confidence map which is also determined during training of the network. The confidence map may be determined rule based or by an ANN. This process of dropping out parts of dense depth maps and / or removing parts of available depth maps is also referred to as spatial and / or temporal sub-sampling of the VIS / NIR-D frame sequence that corresponds to the addressable illumination pattern.

[0062] The embodiments described below in more detail disclose a method comprising the steps of determining, by a model, a first predicted depth map of a scene and a confidence map corresponding to the first predicted depth map of the scene based on an VIS / NIR image; triggering a ToF camera to capture a sparse depth map of the scene based on the confidence map; and determining, based on the model, a second depth map of the scene based on the sparse depth map.

[0063] In some embodiments the method may further comprise a step of determining, based on the model, a sequence of predicted depth maps, comprising two or more predicted depth maps of the scene, based on the sparse depth map by sampling regions as prescribed by the confidence map that describes the uncertainty of a depth prediction model. The methods as described herein are also implemented in some embodiments as a computer program causing a computer and / or a processor to perform the method, when being carried out on the computer and / or processor. In some embodiments, also a non-transitory computer-readable recording medium is provided that stores therein a computer program product, which, when executed by a processor, such as the processor described above, causes the methods described herein to be performed.

[0064] As described above there exist methods to increase the SNR for ToF cameras, especially used in mobile devices. However, these methods may have a high power consumption. Since mobile devices may have smaller optical power available for exposing a scene, and may also have smaller sensor integration time, thus limiting the achievable measurements SNR, other methods may be used for mobile devices.

[0065] For example, some mobile devices could adopt sensor binning to increase the SNR by averaging, while losing spatial resolution by mixing information from neighboring pixels. Other mobile devices could adopt the aforementioned methods (zone or spot illumination) to increase the SNR locally on some coordinates, while losing spatial resolution by subsampling information. In both cases, in order to retrieve resolution and yield a high accuracy depth map, it may be resorted to depth estimation algorithms that may include: monocular depth estimation (see references [2] - [5]), estimating approximate depth from pairs of VIS / NIR frames with known camera intrinsics), depth upsampling (see references [6] - [9], increasing the resolution of a densely- sampled, low-resolution depth map), or depth completion (see references

[0010] -

[0013] , increasing the resolution of a sparsely-sampled depth map). Such algorithms may be capable of fusing input information from one or more given depth measurement frames or from one or more frames from other viewing modalities such as co-located VIS / NIR sensors. An output of such algorithms may be a higher-resolution, densely sampled depth map that retrieves the detail lost during the measurement process under zone or spot illumination. The output dense depth map may additionally be estimated as well using information from more than one frame in the past with respect to the current frame. Depth estimation and depth completion are applicable to time- of-flight measurements (iToF or dToF sensors) as described for example in reference

[0010] ,

[0066] However, these methods have many disadvantages, for example high power consumption, and may not use their resources (i.e., the available power budget) on regions of a captured scene where it may be used the most efficiently, e.g., to capture complex detail or regions where scale is not straightforward to estimate by means of the aforementioned algorithms.

[0067] In the context TOF zone illumination refers to illuminating a large area of the scene with a wide and diffuse light source. This technique allows the TOF camera to capture depth information for the entire illuminated area, making it useful for applications such as 3D mapping and object detection. In the context TOF spot illumination refers to using a focused and intense light source to illuminate a specific point or object in the scene. This technique allows the TOF camera to capture highly accurate depth information for the illuminated object, making it useful for applications such as gesture recognition and object tracking.

[0068] Therefore, confidence maps corresponding to a depth map may be used within a feedback loop with an active (zone or spot) illumination unit that is entailed by iToF or dToF, in order to expose parts of the scene decided based on the (for example machine learning-based) confidence map. The confidence maps may be provided by training machine learning-based models to estimate confidence maps, either from monocular depth estimation, depth completion, (or depth upsampling algorithms which may be used for non-sparse illumination), or trained directly on previous depth maps.

[0069] Fig. 1 shows a flowchart of a feedback depth sensing system estimating a dense depth map of scene and a confidence map of the scene based on a sparse depth map triggered by a confidence map. An VIS / NIR (for example RGB) camera 101 captures an VIS / NIR image of a scene. The VIS / NIR camera 101 may be a monocular VIS / NIR sensor which provides frames at some high frame rate, e.g., 30 fps or 60 fps. An VIS / NIR image may be available at every frame for which a model 104 determines a dense depth map. An ToF camera (see Fig. 10 below) illuminates the scene with modulated light by a corresponding ToF illuminator 109 (see below for details on the control of the ToF illuminator) and captures a, potentially sparse, point cloud. A coordinate projector 103 (which may be part of the ToF camera 102) receives the point cloud and reprojects the 3D coordinates of the point cloud into the 2D camera coordinate system of the VIS / NIR camera 101. This yields a depth map (2D image) in the coordinates of the VIS / NIR camera (see Fig. 2 below for more details). The ToF camera 102 may be for example an iToF or dToF camera. The ToF camera may comprise a ToF sensor 102a and the ToF illuminator 109. The ToF camera 102 is enabled to receive a trigger signal from a feedback module 108, and to actuate it by triggering the illumination and sampling a ToF frame. In another embodiment the triggering can be triggered by confidence and / or just at system / streaming startup. The VIS / NIR camera 101 may have a higher frame rate than the ToF camera 102. The field of view of the VIS / NIR camera 101 and the ToF camera may or may not be fully overlapping, but the two cameras are assumed to overlap at least partially (the upper row of the flowchart is also referred to as “feed-forward branch”). The VIS / NIR camera 101 and the ToF camera 102 together are also referred to as VIS / NIR-D (for example RGB-D) (“D” for depth map). The depth map and the VIS / NIR image are input into a trained model 104. The model 104 may be a machine learning model, for example based on artificial neural networks (ANN). The model 104 may have trainable parameters 0. The trainable parameters 0 of the model 104 are trained during a training phase of the model. The trained model outputs an estimated dense depth map 106 and a (estimated) confidence map 107. The estimated dense depth map 106 comprises an estimated depth value for each pixel of the VIS / NIR image. The confidence map 107 comprises a confidence value for each pixel. The confidence value for each pixel is an estimated assessment of the reliability of corresponding depth estimate of that depth map of that pixel. For example, a confidence value of the confidence map, may be a value between 0 and 1, wherein 0 indicates that there is no reliability about corresponding depth estimate of that pixel and wherein 1 indicates that there is almost certainty about reliability of corresponding depth estimate of that pixel (comparable to a probability value). There may be one or more low confidence parts 107b of the confidence map 107, and one or more high confidence parts 107a of the confidence map

[0070] 107.

[0071] The frame rate of a ToF camera taking a stream of sparse depth maps can be either synchronous (i.e., at a fixed frame rate), or asynchronous (i.e., frames are obtained “on-demand”). This can be depending on how the sparse depth is triggered, as synchronous (case in which uniformly spaced captures of sparse depth at, e.g., t, t + 4, t + 8, . . .) or asynchronous (e.g., sparse depth at t+1, t+3, t+9, t+10 depending on the content being acquired and its confidence map).

[0072] The estimated depth map 106 and / or the confidence map 107 are fed back to a feedback module

[0073] 108. The feedback module 108 decides, based on the confidence map, which parts of estimated depth map should be improved and therefore, how the illuminator 109 (for example banks of VCSELs) should activate a certain illumination pattern. The feedback module may also decide based on the confidence map 107, that a sequence of sparse depth maps should be captured by the ToF camera 103. Based on the confidence map, it is decided which parts of the scene should be illuminated in a subsequent frame or multiple subsequent frames (this is determined, e.g., by setting a threshold at for example 0.5 or the like and clipping the confidence map to {0, 1 } values based on whether the confidence map at that pixel is exceeding 0.5 or not, which yields a binarized confidence map). Thereby, a feedback loop is created between the confidence map 107 provided by the model 104 and the following ToF images. The feedback loop per se grants triggering of specific illumination patterns that adapt to the confidence map 107. When the confidence is large enough, the feedback module will not send any trigger signal, and the ToF camera will be on standby, therefore not actively consuming a large amount of power. The decision of the feedback module 109 is provided downstream in form of a temporal (capture a sequence of subsequent frames) trigger signal or a spatial zone (capture a specific sparse area of the scene in the subsequent frame) trigger signal to the ToF illuminator 109, so that the ToF camera 102 captures one or more frames with illumination shaped by the low-confidence region 107b (in the spatial zone trigger case, see Fig. 7), or by using a default pattern that is activated only when the trigger is received (in the temporal trigger case, see Fig. 6), or both. This trigger signal may contain spatial information describing which areas should be illuminated, encoded in, e.g., an address for the laser bank that corresponds to a region of interest determined by the confidence estimate.

[0074] Projection of Point Cloud into VIS / NIR image coordinates

[0075] The following flow chart is based on R. Szeliski, Computer Vision: Algorithms and Applications. Cham: Springer International Publishing, 2022. doi: 10.1007 / 978-3-030-34372-9 (see chapter 2, "Camera Matrix" and related Sections).

[0076] Fig. 2 shows a flow chart of a projecting of the sparse point cloud of a scene into a VIS / NIR image coordinate system by the coordinate projector. In step 201, a sparse point cloud of a scene, which is captured by the ToF camera 102, is obtained wherein each point in this point cloud is described within a 3D global coordinate system. In step 202, predetermined projection parameters are obtained, wherein it may be assumed that the position and orientation of the VIS / NIR camera 101 as well as the ToF camera 102 are known, for example within the 3D global coordinate system: R (a rotation matrix with elements a translation vector t (with elements t , focal length fxand fyof the VIS / NIR camera’s lens and the VIS / NIR camera‘s principal point coordinates cxand cy. In step 203, the sparse point cloud is projected from the global coordinates into the coordinate system of the VIS / NIR image to obtain a sparse depth map of the scene. In step 204, the sparse depth map is output.

[0077] Depth and Confidence Estimation by the Trained Model

[0078] The model 104 performs the estimation of a dense depth map (completion and / or prediction) and the estimation of a corresponding confidence map. The model receives a VIS / NIR image of the scene and optionally a sparse depth map of the scene and estimates a dense depth map of the scene and a corresponding confidence map.

[0079] There are several models in the state of the art that may perform the estimation of a dense depth map based on an VIS / NIR image and a sparse depth map of the scene. For example, the model may be a traditional rule-based technique as described in the references [6] - [9], Furthermore, the model may be a machine-learning-based (for example based on artificial neural networks, ANNs) algorithm as for example cited in references [2],

[0011] ,

[0012] , which may be trained on large datasets of VIS / NIR and depth frame pairs. Such models / algorithms are capable of operating with a low amount of resources provided that the resolution specifications are not too high (see also references [4],

[0019] ). For the machine learning-based models, the training procedure of trainable parameters 0 may be important. This is described in more detail below with regards to Figs. 8, 9.

[0080] Further available models, grouped with regards to the depth measurement input and training procedure are:

[0081] 1. Depth estimation using sparse depth measurements (i.e., so-called depth completion) with ground truth at training time, as described in references

[0030] ,

[0012] ,

[0010] ,

[0021] ,

[0022] ,

[0082] 2. Depth estimation using sparse depth measurements (i.e., so-called depth completion) without ground truth at training time (i.e., self-supervision), as described in reference

[0011] ,

[0083] 3. Depth estimation using no depth measurements (i.e., so-called monocular depth estimation) with ground truth at training time, as described in references

[0023] ,

[0024] ,

[0084] 4. Depth estimation using no depth measurements (i.e., so-called monocular depth estimation) without ground truth at training time (i.e., self-supervision), as described in references

[0018] ,

[0026] , [2],

[0027] ,

[0085] Further, a confidence map, corresponding to the depth map, may be estimated. The confidence map comprises a confidence value for each pixel which is an estimated assessment of the reliability of corresponding depth estimate of that pixel. A confidence map may be determined within the framework of any of the above cited references for depth estimation models.

[0086] A confidence map may be a “probability” map (that is each confidence value lies between 0 and 1) or a standard deviation map or a variance map. The confidence map may encode, for each, output depth map, the amount of certainty (uncertainty) about the depth estimation for every value. For example, this could encode uncertainty as standard deviation in millimeters for each measurement when normalized in an arbitrary range. The estimation of a confidence map, based on machine learning, is for example described in references

[0014] -

[0018] and

[0028] ,

[0029] , We hereafter assume it is suitably normalized in the range 0-1.

[0087] Fig. 3 is a flowchart of the process of determining a dense depth map and confidence map by the model 104. The model may be as described in the scientific paper “Sparsity Agnostic Depth Completion”, by Conti, Andrea, et al., published in Proceedings of the IEEE / CVF Winter Conference on Applications of Computer Vision. 2023, or any other machine-learning based model cited in any of the references mentioned above. The estimation of the confidence map may be based on a confidence branch or confidence CNN (CCNN) as described in

[0029] , which estimates the confidence based on a CNN, or on any other method described in

[0018] , In step 301 the pre-trained artificial neural network (ANN) model 104 receives an VIS / NIR image of a scene with a predefined resolution of M x N pixels. In step 302, the model 104 optionally receives a sparse depth map of the scene (at least partially overlapping with the scene captured in the VIS / NIR image) with a variable resolution of K dots (when K is projected into RGB coordinates it becomes a N x M image with K nonzero elements). (In dToF for example it is reads out the macropixels so one could have, e.g., a list of dots.) The depth map image is projected in the coordinate system of VIS / NIR image (see Fig. 2). In step 303, the pretrained model estimates a dense depth map of the scene based on the VIS / NIR image and optionally on the sparse depth map (in this case it is also referred to as depth completion, since the sparse depth map is completed), with a resolution equal to the resolution of the VIS / NIR image. In step 304, the pretrained model estimates a confidence map corresponding to the estimated dense depth map. The confidence map is determined as described in reference

[0030] , that is by the CCNN method (for more details of the training of the neural network to predict the confidence, see below at Figs. 8, 9).

[0088] Feedback Module

[0089] The confidence map generated by the mode 104 is used to determine a feedback signal, encoding which parts of the estimated dense depth map are estimated with a low confidence and should be improved in a next iteration step (next frame of capturing a VIS / NIR image and a sparse depth map) by capturing a specific ToF image. Based on the confidence map, the model feedback simply annotates if there are connected areas in the confidence estimate that are too inaccurate and should be captured by ToF.

[0090] Fig. 4 shows a flowchart of the processing of the feedback module 108. The feedback module 108 receives (from model) as an input an estimated dense depth map 401 and a confidence map 402 (that is a 2D heatmap indicating reliability of the estimated depth values, as described with regards to Fig. 3 above). The confidence map 402 comprises a confidence value for each pixel, for example a floating-point value for each pixel (e.g., a probability value between 0 and 1) indicating the confidence into the corresponding depth estimation. For example, the confidence map 402 (as well as the VIS / NIR image and dense depth estimation 401) has a resolution of M x N = 192 x 256. The confidence map comprises low confidence parts 401b (dotted), and a high confidence parts 402a (dashed). The feedback module 108 binarizes the confidence map 402 and reduces the resolution to obtain a reduced resolution binary map 403 which has an intermediate resolution of Ninterx Minter= 12 x 16. Therefore, the feedback module maps the confidence map 402 onto a 12 x 16 binary map 403 (downsampling), wherein each pixel of the binary map 403 is corresponding to a 16 x 16 region (neighborhood) of the confidence map 402. The value of each of the 12 x 16 pixels of the binary map 403, is determined as the mean value or median value of the corresponding 16 x 16 confidence map pixel values. If that median value or mean value is greater or equal than a threshold cthreshoid= 0.5 the binary value of the binary map 403 is assigned 1 and otherwise 0. The resulting binary map 403 only comprises zeros (dashed boxes) or ones (white boxes). The zeros indicate a low confidence into the corresponding depth estimation and a 1 indicates a high confidence into the corresponding depth estimation. Depending on the resolution of the illuminator (for example 3 x 4 matrix of VCSEL banks) in a next step connectedness may be enforced, by running a morphological operation (e.g., closure) to create compact pixel regions. Therefore, the low confidence areas within the binary map 403 are rectangularized by creating rectangular regions and obtained a rectangular binary map 404 (for example by forming rectangular bounding boxes, defined by the outer parts each connected low confidence area of the binary map 403, or for example by forming bounding boxes that contain disconnected regions where the confidence is low). In a next step the rectangular binary map 404 is mapped onto the illuminator 109, which for example comprises a matrix of physical VCSEL banks (i.e., a further downsampling step). The illuminator may comprise a 3 x 4 matrix of physically addressable VCSEL banks. Therefore, the (rectangular) binary map 404 is mapped onto the x 4 VCSEL bank matrix, wherein each entry of the 3 x 4 VCSEL bank matrix is corresponding to an area of 4x4 pixels of the (rectangular) binary map 404. If the majority of an 4x4 pixel area of the (rectangular) binary map 404 are zeros, then the corresponding entry of a 3 x 4 activation matrix 405 (also referred to as trigger) is set to “ON”, otherwise to “OFF”. The activation matrix 405 is output to the illuminator 109.

[0091] The feedback module creates a feedback loop between the confidence map 402 (provided by the model 104) at frame t and the estimated depth map at frame t+1 based on the sparse depth map triggered at the same timestamp and shaped by the activation matrix. The feedback loop per se grants triggering of specific illumination patterns that adapt to the confidence estimate. When the confidence is large enough, the feedback module will not send any trigger signal, and the ToF camera will be on standby, therefore not actively consuming a large amount of power. In another embodiment the resolution N x M of the VIS / NIR image (and also depth image map and confidence image) may be different. Also, the resolution of the binary map 403 may be different, for example the resolution of the binary map may be equal to the resolution of the VIS / NIR image. The entries of the binary map may therefore be determined by corresponding regions (neighborhood) of any size for example of a regions of the size 1 x 1, if the resolution of the binary map is equal to the resolution of the confidence map.

[0092] In another embodiment no connectedness may be enforced onto the binary map 403 and therefore the step of the rectangular binary map 404 may be omitted and the binary map 403 may be directly mapped onto the activation matrix 405. In yet another embodiment another morphological operation than rectangularization may be performed on the binary map 403, for example (approximated) circles or triangles or other geometrical shapes may be used.

[0093] In another embodiment the threshold cthreshoidmay be chosen at different value, e.g., 0.8 or 0.2.

[0094] In another embodiment, an illuminator 109 is comprising a different number of controllable VCSEL banks (also referred to as the resolution of the illuminator). For example, the illuminator 109 may comprise as many VCSEL banks as the resolution of the confidence image and therefore no downsampling steps are necessary.

[0095] In yet another embodiment there are constraints on the addressable VCSEL banks, for example only 2 or 4 or 9 or the like VCSEL banks are addressable together.

[0096] Illumination Module

[0097] The illumination module should be able to receive trigger signals, optionally with spatial information to realize trigger sequences (see also Fig. 7 below). This could use addressable / controllable illuminator circuitry / units (see also reference

[0020] ), where the addresses are synthesized by the feedback module 108 above, compatibly with the specifications of the addressable illuminator 109.

[0098] Fig. 5 shows the activation of VCSEL banks based on the activation matrix. The activation matrix 405 triggers the corresponding VCSEL banks 501a, 501b, 501c, 50 Id of the illuminator 109.

[0099] Fig. 6 shows a sequence of improved estimated dense depth maps frame-triggered by depth and confidence maps (temporal trigger). At a frame step t, a first (only) VIS / NIR image / (t) 601 of a scene is captured and based on this VIS / NIR image / (t) only, the model 104 estimates a dense depth map £>(t) of the scene and a confidence map 602 C(t). The confidence map C(t) indicates that the estimated confidence with respect to the depth estimation is low on objects 602a and 602b (for example due to the object’s low reflectivity, or the movement of the object or camera, or the objects being in towards the background). Therefore, the feedback module 108 determines an activation matrix that triggers the illuminator 109 and the ToF camera to acquire at the next frame step t + 1 a depth map Dst + 1) 603 and also an VIS / NIR image Z (t + 1) of the full scene. The illuminator 109 may illuminate the full scene with all spots (VCSEL banks) on or with only parts of the spots uniformly distributed on. The model 104 estimates an improved dense depth map of the scene D(t + 1), based on the sparse depth map Ds(t + 1) 603 and the VIS / NIR image / (t + 1), and yields a confidence map 604 C(t + 1). The confidence map C(t + 1) indicates that the estimated confidence with respect to the depth estimation is on a medium level for the objects 604a and 604b and higher than on the confidence map 602 C(t). Therefore, the feedback module 108 determines an activation matrix that triggers the illuminator 109 and the ToF camera to acquire at the next frame step t + 2 a depth map 605 Ds(t + 2) and also an VIS / NIR image / (t + 2) of the scene. The illuminator 109 may illuminate the scene with all spots on or with only parts of the spots uniformly distributed on. The model 104 estimates an improved dense depth map D(t + 2) of the scene, based on the depth map 605 Ds(t + 2) and based on the VIS / NIR image / (t + 2) and yields a confidence map 606 C(t + 2). The confidence map C(t + 2) indicates that the estimated confidence with respect to the depth estimation is on a high level for all objects 606a and 606b and higher than on the confidence map 602 and 604.

[0100] It should be noted that because the VCSEL activation matrix may be coarse. Therefore, it will not be needed a too sharp spatial alignment between the activation matrix (decided given frame t) and the scene content (at frame t+1). This allows for a certain camera movement.

[0101] The fact that on the illumination is decided at frame t+1 given confidence at frame t means that if the frame content at frame t+1 is very different than frame t, “unnecessary” sparse depth is captured, for example in case of a greater camera movement. However, this in this case estimation of the depth will be more confident at that frame t+1.

[0102] Fig. 7 shows a sequence of improved estimated dense depth maps zone-triggered by depth and confidence maps (spatial / zone trigger). At a frame step t, a first (only) VIS / NIR image 701 of a scene is captured and based on this VIS / NIR image only, the model 104 estimates a dense depth map of the scene and a confidence map 602. The confidence map indicates that the estimated confidence with respect to the depth estimation is low on objects 702a and 702b (for example due to the object’s low reflectivity, or the movement of the object or camera, or the objects being in towards the background). Therefore, the feedback module 108 selects one of the low confidence objects (that is one of the connected low-confidence regions in the confidence map) and triggers the illuminator 109 and the ToF camera to acquire at the next frame step t + 1 a depth map 703 (and may be also an VIS / NIR image) of a part of the scene, for example of the area 703a which comprises the low confidence object 702b. The illuminator 109 may spot or zone illuminate parts of the scene (area 703a). The model 104 estimates an improved dense depth map of the scene, based on the depth map 703 (and may be also on the VIS / NIR image) and on the and a confidence map 704. The confidence map 704 indicates that the estimated confidence with respect to the depth estimation is on a medium level for high level for object 704b and on a low confidence level for object 704a. Therefore, the feedback module 108 selects the second one of the low confidence objects and triggers the illuminator 109 and the ToF camera to acquire at the next frame step t + 2 a depth map 705 (and may be also an VIS / NIR image) of a part of the scene, for example of the area 705a which comprises the low confidence object 704a. The illuminator 109 may spot or zone illuminate parts of the scene (area 705a). The model 104 estimates an improved dense depth map of the scene, based on the depth map 705 (and may be also on the VIS / NIR image) and on the confidence map 706. The confidence map 706 indicates that the estimated confidence with respect to the depth estimation is now on a high level for the objects 706a and 706b.

[0103] It should be noted in this embodiment no "object recognition" in the loop is needed because the feedback loop works based on depth and confidence estimations, not on recognizing objects.

[0104] Training of the Model

[0105] If the model 104 is machine-learning based, for example an ANN, the model is trained before it may be used in inference as described above. The training procedure may use real data, synthetic data generated from a realistic camera system model, or a mix of synthetic and real data, where the real data may be masked to avoid sampling ToF frames at every frame. The training procedure may be applied to any of the machine-learning based models recited in the “model” section above.

[0106] The procedure to train a depth estimation model 104 as described above depends on which types of inputs (depth measurements or no depth measurements) are provided to the model, and which type of labels (ground truth depth or no ground truth depth) are used by the model. However, as described for example in Conti et al.,

[0030] , there are models available which are trained on variable amounts of depth points. Therefore, as described above, four different cases may apply: 1. Depth measurements with ground truth at training time (

[0012] ,

[0010] ,

[0021] ,

[0022] ), 2. Depth measurements without ground truth at training time (

[0011] ), 3. No depth measurements with ground truth at training time (

[0023] ,

[0024] ) and / or, 4. No depth measurements without ground truth at training time (

[0018] ,

[0026] , [2],

[0027] ).

[0107] Further, the training procedure of the model may simulate the behaviour of controlling (addressable) the illumination of a scene (that is for example illuminating only parts of a scene) based on a confidence map feedback data. This may be simulated by a sub-sampling (i.e., the spatial and / or temporal dropout of specific regions of the depth map) used for training, i.e., eliminating parts of a full spot pattern from a known depth map to simulate the exposure of specific parts of the scene.

[0108] Fig. 8 shows a training data sequence which is input into the model 104 during a training procedure. The input data sequence is input at time steps t, t + 1, t + 2, t + 3, t + 4 and t + 5. At time step t a VIS / NIR (e.g. RGB) image and a depth map from a ToF sequence, with an area to illuminate 801a, is input into the model 104 as training data. The area 801a is the area where the information additional depth information is sampled (see also as described in Fig. 7). At time step t + 1 only a VIS / NIR image is input into the model 104 as training data. At time step t + 2 only a VIS / NIR image is input into the model 104 as training data. At time step t + 3 a VIS / NIR image and a depth map with an area to illuminate 801b is input into the model 104 as training data. The area 801a is the area where the information additional depth information is sampled (see also as described in Fig. 7). At time step t + 4 only a VIS / NIR image is input into the model 104 as training data. At time step t + 5 only a VIS / NIR image is input into the model 104 as training data. The depth map D at time step t and t + 3 may be a sparse depth map which may either by captured as sparse depth map or may be synthetically simulated as sparse depth map or may be obtained as sparse depth map from a dense depth map by dropping out certain parts of the depth map (see also below).

[0109] The VIS / NIR (e.g. RGB) input images of the sequence may show a moving object, like a ball as shown in Fig. 8 which moves through the scene and the depth images at instance t and t+3 capture the additional information at spatial areas where the moving object like the ball moves to.

[0110] Further, in another embodiment the input during the training procedure may be a sequence of N > 1 VIS / NIR and D (= depth, e.g., ToF data) frames, which are assumed to be captured synchronously, i.e., on the same time axis. The model 104 may estimate a depth map at a last timestamp t, wherein up to N — 1 available frames from the past are used. Thereby, any spatial and temporal sub-sampling of the VIS / NIR-D frame sequence may be used. That means any parts of the depth frames may be masked (cut out) in order to simulate a sparse depth map and / or any combination of VIS / NIR and depth maps may be used, e.g., 3 VIS / NIR images and 3 depth maps, 3 VIS / NIR frames and 1 depth map etc. In addition, sparse measurements can be reused or accumulated as current inputs if the pose update Pt-w+i °f the ToF camera is known or estimated.

[0111] Further, spatial and temporal sub-sampling of the VIS / NIR-D frame sequence may be applied during the training procedure. That means dropping out of certain parts of a training input depth map to simulate the input of a sparse depth map, based on the estimated confidence map of the model 104. Additionally, and or alternatively the sub-sampling comprises omitting of VIS / NIR images or depth maps at specific time steps, also based on the estimated confidence map of the model 104. Thereby, a depth map captured by a ToF camera working with an illumination pattern of the illuminator 109 may be simulated. The sub-sampling of the RBG-D frame sequence during training may simulate an addressable illumination pattern of the illuminator 109 (for example VCSEL banks). This sub-sampling (that is a structured dropout) is applied on simulated data, as well as on densely captured real depth maps, to emulate / simulate the effect of the depth maps captured due to an illuminator being controlled by the feedback module 104.

[0112] By applying a sequence of such sub-sampling decisions steps Figs. 6 and / or 7 may be reproduced also during training of the model 104. Further, if constraints on controllable illumination by the illuminator 109 exist, they may also be implemented during training by simulation, for example if only illuminator can control combined VSCEL blocks (e.g., 3x3 groups of lasers) or the like.

[0113] Further, depth estimation and completion (that is using also sparse depth measurements) models can also be trained based on sequences of VIS / NIR and ToF data (as little as two frames suffice, see reference

[0011] ). Further, sequences may not have constant sparsity / density (e.g.,

[0022] ), and a consistent depth estimate can be obtained with variable amounts of sparse depth data at the input.

[0114] Fig. 9 shows inputs and outputs of the model 104 during the training procedure. The model 104 receives an VIS / NIR image 902 as input. Further, the model 104 optionally receives a sparse depth map 903 as input. The sparse depth map 903 may be captured as sparse depth map or may be generated synthetically simulated as sparse depth map or may be obtained as sparse depth map from a captured dense depth map by dropping out certain parts of the depth map (see also below). The model 104 outputs the predicted dense depth map 904 and a confidence map 905. Based on the output dense depth map 904 and / or on the output confidence map 905 and on a predetermined ground truth depth map 901 (dense depth map) loss function is determined in order to adapt the weights of the model 104 (see below).

[0115] ANNs are often trained by determining a loss function between a desired output of the network and the actual output of the ANN during training. This loss function may then be used to adapt the ANN weights by applying a so-called backpropagation. For the depth estimation branch of the ANN model 104 - in the case that ground truth is available during the training procedure of the model 104 (also referred to as supervised learning) - the ground truth depth maps will be used with well-known losses described below against the estimated depth dense maps. Popular losses for depth estimation include the L±norm (Manhattan distance) or L2norm (Euclidean distance) and robust versions of the latter. In the case the no ground truth is available during the training procedure of the model 104 (also referred to as self-supervised learning or unsupervised learning), one can resort to the L2or L±norm of the photometric error between present and past VIS / NIR frames given the estimated depth and estimated pose as loss. This is also described for example in the references

[0011] , [2], Further a so-called structural similarity index measurement may be used.

[0116] With regards to learning the model 104 to determine the confidence map, there are several means of obtaining this auxiliary channel without supervision, that means there may be no ground truth confidence map, as for example described in references

[0018] ,

[0028] , This channel of the model 104 represents the uncertainty that the model 104 has with respect to the estimated depth dense map.

[0117] One embodiment of determining a loss function to learn the model 104 to accurately estimating the confidence map and the dense depth map may be taking, e.g., a distance between ground truth depth value and the estimated depth value at pixel i, and to use a separate model branch to output a variance-like coefficient of, so that one can minimize during training a confidence-weighted loss, reading:

[0118] This way, as the variance-like coefficient of, gets larger (e.g., tends to infinity), the logarithm Zo^(o2) also tends to infinity and there is a penalty in setting infinite variance (zero confidence) everywhere. Thus, the loss penalizes uncertainty while allowing for the estimation of those areas that are least similar to the ground truth depth. In this case, the confidence map would be 1 assigned as Ci C_i G [0,1]. In another embodiment ensembles of models could be taken to estimate the confidence signal by measuring the variance between outputs of each model in the ensemble (see for example Fig. 6 in reference

[0018] ).

[0119] Once a confidence map has been generated by calling the model on each of the frames of the sequence (at training or test time), the corresponding binarization map can be computed, for example as described above with regards to Fig. 4).

[0120] Further, a distinction should be made between training time and test time. At training time, ground truth depth may or may not be given, and a sequence of frames may or may not be used to compute loss terms. At test time, this information will change, i.e., the information that is by definition inaccessible to the model at inference may not be used. The inputs are assumed to be given at test time. The labels are unknown at test time, but anything that is known during training can be used as “label”.

[0121] ToF Camera & Implementation

[0122] Fig. 10 illustrates schematically the basic operational principle of a time-of-flight (ToF) camera. The ToF camera 3 captures 3D images (point clouds which are then transformed into depth maps, as described above) of a scene 15 by analyzing the time-of-flight of light from a dedicated illumination unit 18 to an object. The ToF camera 3 includes a camera, for instance an imaging sensor 1 and a processor 4. A scene 15 is actively illuminated with a modulated light 16 at a predetermined wavelength using the dedicated illuminator 109 (for example VCSEL), for instance with some light pulses of at least one predetermined frequency generated by a timing generator 5. The modulated light 16 is reflected back from objects within the scene 15. A lens 2 collects the reflected light 17 and forms an image of the objects onto the imaging sensor 1 of the camera. Depending on the distance of objects from the camera, a delay is experienced between the emission of the modulated light 16, e.g. the so-called light pulses, and the reception at the camera of those reflected light pulses 17. Distances between reflecting objects and the camera may be determined as function of the time delay observed and the speed of light constant value.

[0123] In indirect time-of-flight (iToF) cameras calculate a delay between modulated light 16 and reflected light 17 for obtaining depth measurements by sampling a correlation wave, e.g. between a demodulation signal 19 generated by the timing generator 5 and the reflected light 17 that is stored in the imaging sensor 1.

[0124] Fig. 11 schematically describes an embodiment of an electronic device which may implement the functionality of estimating a dense depth map and a confidence map as described above. Further, the electronic device may implement the functionality (training and inference) of an artificial neural network, for example an ANN that implements the model 104. The electronic device 1400 comprises a CPU 1401 as processor. The electronic device 1400 further comprises a GPU 1406 that is connected to the processor 1401. The electronic system 1400 further comprises an Ethernet interface 1404 which acts as interface for data communication with external devices. The electronic device 1400 further comprises a data storage 1402 and a data memory 1403 (here a RAM). The data memory 1403 is arranged to temporarily store or cache data or computer instructions for processing by the processor 1401. The data storage 1402 is arranged as a longterm storage, e.g., for images. The electronic device 1400 further comprises a graphical input unit. The electronic device 1400 further comprises a display interface 1410 which could be a touch screen display.

[0125] ***

[0126] It should be recognized that the embodiments describe methods with an exemplary ordering of method steps. The specific ordering of method steps is however given for illustrative purposes only and should not be construed as binding. For example, the ordering of the steps of Figs. 2 and 3 may be exchanged. Other changes of the ordering of method steps may be apparent to the skilled person.

[0127] Please note that the division of the electronic device of Fig. 11 into units is only made for illustration purposes and that the present disclosure is not limited to any specific division of functions in specific units. For instance, the units of Fig. 11 could be implemented by a respective programmed processor, field programmable gate array (FPGA) and the like.

[0128] The method can also be implemented as a computer program causing a computer and / or a processor, such as processor of Fig. 11 as discussed above, to perform the method, when being carried out on the computer and / or processor. In some embodiments, also a non-transitory computer-readable recording medium is provided that stores therein a computer program product, which, when executed by a processor, such as the processor described above, causes the method described to be performed.

[0129] All units and entities described in this specification and claimed in the appended claims can, if not stated otherwise, be implemented as integrated circuit logic, for example on a chip, and functionality provided by such units and entities can, if not stated otherwise, be implemented by software. In so far as the embodiments of the disclosure described above are implemented, at least in part, using software-controlled data processing apparatus, it will be appreciated that a computer program providing such software control and a transmission, storage or other medium by which such a computer program is provided are envisaged as aspects of the present disclosure.

[0130] Note that the present technology can also be configured as described below.

[0131] (1) A device comprising circuitry configured to determine, by a model (104), a first predicted depth map (106) of a scene and a confidence map (107) corresponding to the first predicted depth map (106) of the scene based on a captured image; trigger (108) a ToF camera (102) to capture a sparse depth map of the scene based on the confidence map (107); and determine, based on the model (104), a second depth map (106) of the scene based on the sparse depth map.

[0132] (2) The device of (1) , comprising circuitry configured to determine, based on the model, a sequence of predicted depth maps, comprising two or more predicted depth maps of the scene, based on the sparse depth map.

[0133] (3) The device of (1) or (2), wherein the captured image is an image captured in the visible or near infrared light range.

[0134] (4) The device of anyone of (1) to (3), comprising circuitry configured to trigger an illuminator (109) corresponding to the ToF camera (102), to sparsely illuminate the scene based on the confidence map (107) and capturing the sparse depth map of the scene based on the sparsely illumination of the scene.

[0135] (5) The device of (4), comprising circuitry configured to determine an activation map for the illuminator (109) based on the confidence map (106), wherein the activation map, maps the confidence map (106) onto separately controllable units of the illuminator.

[0136] (6) The device of anyone of (1) to (5), comprising circuitry configured to trigger an illuminator (109) corresponding to the ToF camera (102), to illuminate a part of the scene based on the confidence map (107) and capturing the sparse depth map of the scene based on the illuminated part of the scene. (7) The device of anyone of (1) to (6), comprising circuitry configured to determine, by the model (104), the first depth map (106) of the scene further based on another sparse depth map.

[0137] (8) The device of anyone of (1) to (7), wherein the model (104) is an artificial neural network.

[0138] (9) The device of anyone of (1) to (8), comprising circuitry configured to determine the second depth map (106) of the scene further based on a captured image.

[0139] (10) The device of anyone of (1) to (9), comprising circuitry configured to project the first depth map (106) of the scene, the second depth map (106) of the scene, the sparse depth map of the scene and the captured image into the same coordinate system.

[0140] (11) The device of (10), wherein the coordinate system is the coordinate system of a camera (102) capturing the captured image.

[0141] (12) The device of anyone of (1) to (11), comprising circuitry configured to determine the second depth map (106) of the scene based on a sequence of captured images of the scene and optionally on a sequence of sparse depth maps of the scene based on the confidence map (107).

[0142] (13) The device of (12), comprising circuitry configured to remove one or more sparse depths of the sequence of sparse depth maps of the scene based on the confidence map (107)

[0143] (14) The device of anyone of (1) to (13), comprising circuitry configured to train the model (104) based on training data comprising a captured image of a second scene and optionally on a sparse depth map of the second scene.

[0144] (15) The device of (14), comprising circuitry configured to obtain the sparse depth map of the second scene from a dense depth map of the second scene by dropping out parts of the dense depth map based on a confidence map predicted by the model (104).

[0145] (16) The device of anyone of (1) to (15), comprising circuitry configured to train the model (104) based on a training data comprising a sequence of captured image frames of a second scene and optionally on sequence of a sparse depth map frames of the second scene.

[0146] (17) The device of (16), comprising circuitry configured to remove parts of the sequence of sparse depth map frames of the second scene from training data based on a confidence map predicted by the model (104); and / or obtain one or more sparse depth map frames from the sequence of sparse depth map frames of the second scene from one or more dense depth map of the second scene by dropping out parts of the one or more dense depth maps based a confidence map predicted by the model (104).

[0147] (18) A method comprising the steps of: determining, by a model (104), a first predicted depth map (106) of a scene and a confidence map (107) corresponding to the first predicted depth map (106) of the scene based on a captured image; triggering (108) a ToF camera (102) to capture a sparse depth map of the scene based on the confidence map (107); and determining, based on the model (104), a second depth map (106) of the scene based on the sparse depth map. (19) A computer program comprising instructions which, when the program is executed by a computer, cause the computer to carry out the steps of (18).

[0148] References

[0149] [1] P. Zanuttigh, G. Marin, C. D. Mutto, F. Dominio, L. Minto, and G. M. Cortelazzo, Time- of-Flight and Structured Light Depth Cameras. Springer International Publishing, 2016. Doi: 10.1007 / 978-3-319-30973-6.

[0150] [2] V. Guizilini, R. Ambrus, S. Pillai, A. Raventos, and A. Gaidon, “3D Packing for Self- Supervised Monocular Depth Estimation,” in IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.

[0151] [3] F. Aleotti, G. Zaccaroni, L. Bartolomei, M. Poggi, F. Tosi, and S. Mattoccia, “Real-Time Single Image Depth Perception in the Wild with Handheld Devices,” Sensors, vol. 21, no. 1, p.

[0152] 15, Dec. 2020, doi: 10.3390 / s21010015.

[0153] [4] M. Poggi, F. Tosi, F. Aleotti, and S. Mattoccia, “Real-Time Self-Supervised Monocular Depth Estimation Without GPU,” IEEE Trans. Intell. Transp. Syst., pp. 1-12, 2022, doi:

[0154] 10.1109 / TITS.2022.3157265.

[0155] [5] A. Tonioni, M. Poggi, S. Mattoccia, and L. D. Stefano, “Unsupervised Domain Adaptation for Depth Prediction from Images,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 42, no. 10, pp. 2396-2409, Oct. 2020, doi: 10. 1109 / TPAMI.2019.2940948.

[0156] [6] M.-Y. Liu, O. Tuzel, and Y. Taguchi, “Joint Geodesic Upsampling of Depth Images,” in 2013 IEEE Conference on Computer Vision and Pattern Recognition, Portland, OR, USA, Jun. 2013, pp. 169-176. Doi: 10. 1109 / CVPR.2013.29.

[0157] [7] J. Park, H. Kim, Yu-Wing Tai, M. S. Brown, and I. Kweon, “High quality depth map upsampling for 3D-TOF cameras,” in 2011 International Conference on Computer Vision, Barcelona, Spain, Nov. 2011, pp. 1623-1630. Doi: 10. 1109 / ICCV.2011.6126423.

[0158] [8] D. Ferstl, C. Reinbacher, R. Ranftl, M. Ruether, and H. Bischof, “Image Guided Depth Upsampling Using Anisotropic Total Generalized Variation,” in 2013 IEEE International Conference on Computer Vision, Sydney, Australia, Dec. 2013, pp. 993-1000. Doi: 10.1109 / ICCV.2013.127.

[0159] [9] J. Park, H. Kim, Y.-W. Tai, M. S. Brown, and I. S. Kweon, “High-Quality Depth Map Upsampling and Completion for RGB-D Cameras,” IEEE Trans. Image Process., vol. 23, no. 12, pp. 5559-5572, Dec. 2014, doi: 10.1109 / TIP.2014.2361034.

[0160]

[0010] X. Jiang et al., “A Low Memory Footprint Quantized Neural Network for Depth Completion of Very Sparse Time-of-Flight Depth Maps,” in 2022 IEEE / CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), New Orleans, LA, USA, Jun. 2022, pp. 2686-2695. Doi: 10. 1109 / CVPRW56347.2022.00302.

[0161]

[0011] F. Ma, G. V. Cavalheiro, and S. Karaman, “Self-Supervised Sparse-to-Dense: Self- Supervised Depth Completion from LiDAR and Monocular Camera,” in 2019 International Conference on Robotics and Automation (ICRA), 2019, pp. 3288-3295. Doi:

[0162] 10.1109 / ICRA.2019.8793637.

[0163]

[0012] J. Park, K. Joo, Z. Hu, C.-K. Liu, and I. So Kweon, “Non-local spatial propagation network for depth completion,” in European Conference on Computer Vision, 2020, pp. 120- 136.

[0164]

[0013] Z. Chen, V. Badrinarayanan, G. Drozdov, and A. Rabinovich, “Estimating depth from rgb and sparse sensing,” in Proceedings of the European Conference on Computer Vision (ECCV), 2018, pp. 167-182.

[0165]

[0014] A. Eldesokey, M. Felsberg, and F. Khan, “Confidence Propagation through CNNs for Guided Sparse Depth Regression,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 42, no. 10, pp. 2423-2436, Oct. 2020, doi: 10. 1109 / TPAMI.2019.2929170.

[0166]

[0015] M. Poggi and S. Mattoccia, “Learning a General-Purpose Confidence Measure Based on 0(1) Features and a Smarter Aggregation Strategy for Semi Global Matching,” in 2016 Fourth International Conference on 3D Vision (3DV), Stanford, CA, USA, Oct. 2016, pp. 509-518.

[0167] Doi: 10. 1109 / 3DV.2016.61.

[0168]

[0016] M. Poggi, G. Agresti, F. Tosi, P. Zanuttigh, and S. Mattoccia, “Confidence Estimation for ToF and Stereo Sensors and Its Application to Depth Data Fusion,” IEEE Sens. J., vol. 20, no. 3, pp. 1411-1421, Feb. 2020, doi: 10. 1109 / JSEN.2019.2946591.

[0169]

[0017] M. Reynolds, J. Dobos, L. Peel, T. Weyrich, and G. J. Brostow, “Capturing Time-of- Flight data with confidence,” in CVPR 2011, Colorado Springs, CO, USA, Jun. 2011, pp. 945- 952. Doi: 10. 1109 / CVPR.2011.5995550.

[0170]

[0018] M. Poggi, F. Aleotti, F. Tosi, and S. Mattoccia, “On the Uncertainty of Self-Supervised Monocular Depth Estimation,” in 2020 IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, Jun. 2020, pp. 3224-3234. Doi:

[0171] 10.1109 / CVPR42600.2020.00329.

[0019] V. Peluso et al., “Enabling monocular depth perception at the very edge,” in 2020 IEEE / CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Seattle, WA, USA, Jun. 2020, pp. 1581-1583. Doi: 10. 1109 / CVPRW50498.2020.00204.

[0172]

[0020] K. L. Lear, “Addressable illuminator with eye-safety circuitry,” US9232592B2, Jan. 05, 2016.

[0173]

[0021] M. Jaritz, R. Charette, E. Wirbel, X. Perrotton, and F. Nashashibi, “Sparse and Dense Data with CNNs: Depth Completion and Semantic Segmentation,” in 2018 International Conference on 3D Vision (3DV), Los Alamitos, CA, USA, Sep. 2018, pp. 52-60. Doi:

[0174] 10.1109 / 3DV.2018.00017.

[0175]

[0022] V. Guizilini, R. Ambrus, W. Burgard, and A. Gaidon, “Sparse Auxiliary Networks for Unified Monocular Depth Prediction and Completion,” ArXiv210316690 Cs, Mar. 2021.

[0176]

[0023] Wofk, Diana and Ma, Fangchang and Yang, Tien- Ju and Karaman, Sertac and Sze, Vivienne, “FastDepth: Fast Monocular Depth Estimation on Embedded Systems,” in IEEE International Conference on Robotics and Automation (ICRA), 2019.

[0177]

[0024] R. Ranftl, K. Lasinger, D. Hafner, K. Schindler, and V. Koltun, “Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer,” IEEE Trans. Pattern Anal. Mach. Intell. TP AMI, 2020.

[0178]

[0025] D. Eigen, C. Puhrsch, and R. Fergus, “Depth Map Prediction from a Single Image using a Multi-Scale Deep Network,” p. 9.

[0179]

[0026] H. Cai et al., “Real-Time and Accurate Self-Supervised Monocular Depth Estimation on Mobile Device,” in Proceedings of the NeurlPS 2021 Competitions and Demonstrations Track, Jul. 2022, pp. 308-313.

[0180]

[0027] P. Ji, R. Li, B. Bhanu, and Y. Xu, “MonoIndoor: Towards Good Practice of Self- Supervised Monocular Depth Estimation for Indoor Environments.” arXiv, Jul. 27, 2021. Doi: 10.48550 / arXiv.2107.12429.

[0181]

[0028] A. Eldesokey, M. Felsberg, K. Holmquist, and M. Persson, “Uncertainty-Aware CNNs for Depth Completion: Uncertainty from Beginning to End,” in IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), Jun. 2020.

[0182]

[0029] M. Poggi and S. Mattoccia, “Learning from scratch a confidence measure,” in Proceedings of the 27thBritish Conference on Machine Vision, BMVC, 2016.

[0030] A. Conti, M. Poggi, and S. Mattoccia, “Sparsity Agnostic Depth Completion,” in Proceedings of the IEEE / CVF Winter Conference on Applications of Computer Vision (WACV), Jan. 2023, pp. 5871-5880.

Claims

CLAIMS1. A device comprising circuitry configured to determine, by a model, a first predicted depth map of a scene and a confidence map corresponding to the first predicted depth map of the scene based on a captured image; trigger a ToF camera to capture a sparse depth map of the scene based on the confidence map; and determine, based on the model, a second depth map of the scene based on the sparse depth map.

2. The device of claim 1, comprising circuitry configured to determine, based on the model, a sequence of predicted depth maps, comprising two or more predicted depth maps of the scene, based on the sparse depth map.

3. The device of claim 1, wherein the captured image is an image captured in the visible or near infrared light range.

4. The device of claim 1, comprising circuitry configured to trigger an illuminator corresponding to the ToF camera, to sparsely illuminate the scene based on the confidence map and capturing the sparse depth map of the scene based on the sparsely illumination of the scene.

5. The device of claim 4, comprising circuitry configured to determine an activation map for the illuminator based on the confidence map, wherein the activation map, maps the confidence map onto separately controllable units of the illuminator.

6. The device of claim 1, comprising circuitry configured to trigger an illuminator corresponding to the ToF camera , to illuminate a part of the scene based on the confidence map and capturing the sparse depth map of the scene based on the illuminated part of the scene.

7. The device of claim 1, comprising circuitry configured to determine, by the model, the first depth map of the scene further based on another sparse depth map.

8. The device of claim 1, wherein the model is an artificial neural network.

9. The device of claim 1, comprising circuitry configured to determine the second depth map of the scene further based on a captured image.

10. The device of claim 1, comprising circuitry configured to project the first depth map of the scene, the second depth map of the scene, the sparse depth map of the scene and the captured image into the same coordinate system.

11. The device of claim 10, wherein the coordinate system is the coordinate system of a camera capturing the captured image.

12. The device of claim 1, comprising circuitry configured to determine the second depth map of the scene based on a sequence of captured images of the scene and optionally on a sequence of sparse depth maps of the scene based on the confidence map.

13. The device of claim 12, comprising circuitry configured to remove one or more sparse depths of the sequence of sparse depth maps of the scene based on the confidence map.

14. The device of claim 1, comprising circuitry configured to train the model based on training data comprising a captured image of a second scene and optionally on a sparse depth map of the second scene.

15. The device of claim 14, comprising circuitry configured to obtain the sparse depth map of the second scene from a dense depth map of the second scene by dropping out parts of the dense depth map based on a confidence map predicted by the model.

16. The device of claim 1, comprising circuitry configured to train the model based on a training data comprising a sequence of captured image frames of a second scene and optionally on sequence of a sparse depth map frames of the second scene.

17. The device of claim 16, comprising circuitry configured to remove parts of the sequence of sparse depth map frames of the second scene from training data based on a confidence map predicted by the model; and / or obtain one or more sparse depth map frames from the sequence of sparse depth map frames of the second scene from one or more dense depth map of the second scene by droppingout parts of the one or more dense depth maps based a confidence map predicted by the model (104).

18. A method comprising the steps of: determining, by a model, a first predicted depth map of a scene and a confidence map corresponding to the first predicted depth map of the scene based on a captured image; triggering a ToF camera to capture a sparse depth map of the scene based on the confidence map; and determining, based on the model, a second depth map of the scene based on the sparse depth map.

19. A computer program comprising instructions which, when the program is executed by a computer, cause the computer to carry out the steps of claim 18.

Citation Information

Patent Citations

  • Addressable illuminator with eye-safety circuitry

    US9232592B2

  • Depth image collection apparatus, depth image fusion method and terminal device

    WO2023010559A1

Cited By

  • Depth estimation method based on binocular polarization camera and atmospheric scattering model

    CN120014013A

  • Image processing device and program

    WO2026190960A1

  • Electronic device and method

    WO2026202120A1