A method for estimating a measure of reliability of a metric distance estimate between a camera and at least one point of its environment
By combining depth inference and SLAM algorithms, the reliability of depth estimation for each pixel is calculated using images acquired by the camera, solving the reliability problem of 3D structure estimation in mobile systems. This enables accurate distance estimation without relying on expensive sensors, making it suitable for applications such as mobile robots.
Patent Information
- Application Number
- CN202280015284.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-02-16
- Filing Date
- 2022-02-10
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-02-10
AI Technical Summary
In existing technologies, mobile systems such as autonomous vehicles struggle to accurately estimate the three-dimensional structure of their environment without relying on expensive and bulky laser or LiDAR sensors. Furthermore, deep learning-based deep inference algorithms are unreliable when processing unknown data, failing to meet the requirements of high-safety-level autonomous applications.
By combining depth inference algorithms and simultaneous localization and mapping (SLAM) algorithms, the reliability of depth estimation for each pixel is calculated using continuous images acquired by the camera. Different techniques are used to verify and calibrate the results of the depth inference algorithm to ensure reliability.
It achieves accurate and reliable distance estimation between the camera and environmental points without relying on expensive sensors, making it suitable for critical applications such as mobile robots, ensuring the reliability and security of distance estimation.
Smart Images

Figure CN116848552B_ABST
Abstract
Description
Technical Field
[0001] The technical field of this invention is the technical field of methods for estimating the distance between a moving camera and at least one point in its environment, and more specifically, the technical field of methods for estimating a measure of the reliability of such distance estimation.
[0002] This invention relates to a method for estimating the reliability of a metric distance estimate between a moving camera and each point in the environment imaged by the camera. The invention also relates to a method for controlling a mobile robot or mobile vehicle, including the steps of an estimation method. Background Technology
[0003] In the context of navigation for mobile systems, especially autonomous vehicles, knowledge of the three-dimensional structure of the surrounding environment is crucial for enabling the system to account for obstacles and plan a safe trajectory.
[0004] Traditionally, this knowledge has been acquired using onboard active sensors on the system, such as laser or LIDAR (light detection and ranging) sensors. However, these sensors are expensive, power-intensive, and bulky, and therefore not compatible with all types of mobile systems. Furthermore, these sensors may not provide information on all points in the scene, and therefore may fail to detect obstacles.
[0005] To overcome these problems, deep inference algorithms, typically based on deep learning, are known to be used to analyze images of the system environment acquired by the system's onboard cameras. These algorithms allow for the estimation of the metric distance between the camera and the point represented on that pixel for each pixel of the image. However, a drawback of this type of algorithm is its inability to alert for potential errors, such as when it must process unknown types of data. This limitation makes this technique virtually unusable in autonomous applications requiring high levels of security.
[0006] To overcome this problem, methods have been developed to estimate the reliability of algorithmic estimations; however, these methods are based on the same techniques used in deep inference algorithms and therefore potentially suffer from the same reliability issues.
[0007] Therefore, it is necessary to know the reliability of the estimated three-dimensional structure of the scene surrounding the system without resorting to expensive and bulky equipment. Summary of the Invention
[0008] The present invention provides a solution to the problems previously discussed by enabling reliable measurements of metric distance estimates between the system and each object in its environment as imaged by the system's cameras, without resorting to equipment incompatible with airborne operations.
[0009] A first aspect of the invention relates to a method for estimating the reliability of a metric distance estimate between a moving camera and each point in an environment imaged by the camera, comprising the steps of:
[0010] - A continuous image of the environment is acquired by the camera, which includes a reference image, where each pixel of the reference image corresponds to a point in the environment;
[0011] - Use a depth inference algorithm on the reference image to obtain a dense depth map that associates a first depth estimate with each pixel of the reference image, where the depth corresponds to the distance between the camera and the point represented on the pixel;
[0012] - Use a simultaneous localization and mapping algorithm on consecutive images acquired by a moving camera to obtain a sparse depth map that associates a second depth estimate with each of multiple pixels in a reference image;
[0013] - For each pixel of the reference image, a measure of the reliability of the first depth estimate associated with that pixel is calculated based on the dense depth map and the sparse depth map.
[0014] With this invention, a depth inference algorithm provides a first depth estimate for each pixel of a reference image, and thus enables estimation of the distance between the camera and each object represented in the reference image. Each first depth estimate is associated with a metric of reliability, indicating the level of confidence that can be placed in the estimate. The metric of reliability is based on a second depth estimate provided by a simultaneous localization and mapping (SMR) algorithm or a SLAM algorithm for some pixels in the reference image. Unlike neural network-based depth inference algorithms, SLAM algorithms use the geometrical standard of the image acquired by the camera and the camera's displacement to provide their estimates. Therefore, the first and second depth estimates are based on different techniques, and the second depth estimate does not suffer from the same reliability problems as the first depth estimate. Furthermore, the uncertainty of the second depth estimate can be obtained via the SLAM algorithm, and thus the reliability of the second depth estimate can be controlled to ensure that the metric of reliability associated with the first depth estimate is based on the second depth estimate itself, which is itself reliable.
[0015] The invention can then be used in critical applications such as mobile robots, where it is essential to know when the distance estimation used is unreliable in order to adjust the trajectory calculation accordingly.
[0016] In addition to the features just discussed in the preceding paragraphs, the estimation method according to the first aspect of the invention may have one or more additional features among the following features, considered individually or in any technically possible combination.
[0017] According to a first alternative embodiment, the estimation method according to the invention further includes the step of determining a linear model between dense depth maps and sparse depth maps.
[0018] For a given pixel, depth inference algorithms estimate the metric distance between the camera and the object represented on the pixel, while SLAM algorithms estimate the non-metric distance, which is the distance proportional to the metric distance.
[0019] Therefore, if there are no anomalies in the estimates provided by the depth inference algorithm, a linear model exists between the set of second depth estimates and the corresponding set of first estimates. The linear model—that is, the fact that the scaling factor (also called the scaling coefficient) between dense and sparse depth maps cannot be determined—means that anomalies in the operation of the depth inference algorithm can be detected.
[0020] If the scaling factor can be computed, then it is possible to compare the first depth estimate with the corresponding second depth estimate (measured by multiplying it by the estimated scaling factor).
[0021] According to a first sub-alternative embodiment of the first alternative embodiment, the step of determining the linear model further includes the following sub-steps:
[0022] - Estimate the scaling factor between dense depth maps and sparse depth maps based on a first depth estimate and a second depth estimate associated with each pixel in a set of pixels selected from multiple pixels;
[0023] - For each pixel in the pixel set, the residual error is calculated based on the estimated scaling factor and the first and second depth estimates associated with that pixel;
[0024] - Calculate the mean of the residual errors below the first error threshold;
[0025] - Perform a normality test on residual errors below the error threshold;
[0026] - If the absolute value of the mean is greater than the first mean threshold or if the normality test is negative, stop the method and assign the minimum metric reliability to each pixel of the reference image.
[0027] Therefore, the optimal linear model is estimated, and then its effectiveness is tested.
[0028] Points with excessively large residual errors are considered outliers. If the residual errors of non-outlier points do not follow a normal distribution with a mean of zero, a measure of minimum reliability is assigned. Under nominal conditions, a measure of reliability can be calculated.
[0029] According to a first alternative embodiment of the first sub-alternative embodiment, the step of estimating the scaling factor is further performed based on a history of depth estimation, which includes a first depth estimate and a second depth estimate obtained for at least one image previously acquired by the camera.
[0030] Therefore, it is possible to estimate the scaling factor based on estimates made at several acquisition times and thus on a larger dataset, since the linear model is constant, i.e., it is the same at every acquisition time.
[0031] According to a second alternative embodiment of a first sub-alternative embodiment compatible with a first alternative embodiment, the step of determining a linear model further includes the following steps: if the ratio between the number of pixels with residual errors greater than a first error threshold and the number of pixels in the pixel set is greater than a first outlier threshold, stop the method and assign a minimum reliability metric to each pixel of the reference image.
[0032] Points with excessively large residual errors are considered outliers. If their proportion is too high, the depth inference algorithm and the SLAM algorithm are considered inconsistent, and therefore a metric for minimum reliability is assigned. A metric for reliability can be calculated under nominal conditions.
[0033] According to a second sub-alternative embodiment of the first alternative embodiment, the step of determining the linear model includes the following sub-steps:
[0034] -For each iteration in a set of iterations:
[0035] - Divide the pixels of the set of pixels selected from multiple pixels into a first sample and a second sample;
[0036] - Estimate the scaling factor based on the first depth estimate and the second depth estimate associated with each pixel of the first sample;
[0037] - The residual error is calculated based on the estimated scaling factor and the first and second depth estimates associated with each pixel in the second sample;
[0038] - Calculate the average of the residual errors below the second error threshold;
[0039] - Calculate the variance of the scaling factor estimated over a set of iterations;
[0040] - If the variance of the estimated scaling factor is greater than the first variance threshold, stop the method and assign a minimum reliability metric to each pixel of the reference image;
[0041] - Otherwise, calculate the mean and variance of the average residual error calculated over this set of iterations;
[0042] - If the mean of the calculated residual error is greater than the second mean threshold, or if the variance of the calculated residual error is greater than the second variance threshold, then stop the method and assign a minimum reliability metric to each pixel of the reference image.
[0043] Therefore, at each iteration, the optimal linear model is estimated on the pixels of the first sample, and the residual error is calculated on the second sample that does not overlap with the first sample. This means that the pixels used to estimate the scaling factor are not used to test the scaling factor estimate.
[0044] Points with excessively large residual errors are considered outliers and are not used to test scaling factor estimates.
[0045] If the estimated scaling factor or the residual error calculated over all iterations differs too much, assign the measure of minimum reliability.
[0046] According to a second alternative embodiment, the estimation method according to the present invention further includes the following steps:
[0047] - Fuse the sparse depth map with data from the inertial cell to obtain a metric sparse depth map that associates the second metric depth estimate with each of the multiple pixels;
[0048] - For each pixel in the set of pixels selected from multiple pixels, the residual error is calculated based on the first depth estimate and the second metric depth estimate associated with that pixel;
[0049] - If the ratio between the number of pixels with residual error greater than the third error threshold and the total number of pixels is greater than the second outlier threshold, then stop the method and assign a minimum reliability metric to each pixel of the reference image.
[0050] Therefore, the second depth estimate can be directly compared with the first depth estimate.
[0051] According to a first alternative embodiment or a second embodiment of the first embodiment, the pixel set is selected by randomly sampling from a plurality of pixels in a reference image or by randomly sampling from a plurality of pixels in a region of a reference image for each region of the reference image.
[0052] Random sampling ensures that unintentional biases are not introduced into the selected points. Sampling by image intervals ensures that the points are correctly distributed within the image.
[0053] According to a second alternative embodiment or second embodiment of the first embodiment, the simultaneous localization and mapping algorithm further provides a second depth estimate uncertainty for each of the plurality of pixels, and selects a set of pixels from the plurality of pixels that satisfy uncertainty conditions depending on the uncertainty of the second depth estimate associated with that pixel.
[0054] According to a third alternative embodiment compatible with the first and second alternative embodiments, the simultaneous localization and mapping algorithm further provides uncertainty for a second depth estimate for each of the plurality of pixels, and the step of calculating a metric for reliability includes the following sub-steps:
[0055] - For each of the multiple pixels, the residual error is calculated based on the estimated scaling factor and the first depth estimate and the second depth estimate associated with that pixel, or based on the first depth estimate and the second metric depth estimate associated with that pixel;
[0056] - For each of the multiple pixels, a measure of coherence that depends on the residual error is calculated;
[0057] - For each pixel that does not belong to multiple pixels, the coherence metric is associated by interpolation from the coherence metric associated with the pixels in the multiple pixels;
[0058] - For each pixel of the reference image, a measure of reliability is calculated based on a measure of coherence and the uncertainty of the second depth estimate associated with that pixel.
[0059] Therefore, the measure of reliability is based on a comparison between the first and second depth estimates of the pixel, which is made comparable by taking into account scaling factors or data from the inertial unit, and on the other hand, based on the uncertainty of the second depth estimate, and thus taking into account the reliability of the second depth estimate in order to calculate the reliability of the first depth estimate.
[0060] According to a fourth alternative embodiment compatible with the first, second, and third alternative embodiments, the estimation method according to the invention further includes the step of calculating a measure of density for each pixel of the reference image, comprising the following sub-steps:
[0061] - For each of the multiple pixels, assign a measure of the maximum density;
[0062] - For each pixel that does not belong to multiple pixels, the obtained density metric is assigned by interpolation from the density metric associated with the pixels in the multiple pixels.
[0063] Therefore, for each pixel, the density metric is derived from the pixel density of the multiple pixels already involved in the calculation of the reliability associated with that pixel.
[0064] A second aspect of the invention relates to a method for controlling a mobile robot or mobile vehicle, comprising the steps of an estimation method according to the invention.
[0065] A third aspect of the invention relates to a system for implementing the estimation method or control method according to the invention, comprising a camera and a calculator.
[0066] According to an alternative embodiment, the system according to the invention further includes an inertial unit.
[0067] A fourth aspect of the invention relates to a computer program product comprising instructions which, when executed on a computer, cause the computer to implement the steps of the estimation method or the control method according to the invention.
[0068] The invention and its various applications will be better understood by reading the following description and by viewing the accompanying drawings. Attached Figure Description
[0069] The accompanying drawings are illustrated by way of indication and do not limit the purpose of the invention in any way.
[0070] - Figure 1 This is a block diagram illustrating the sequence of steps in the estimation method according to the present invention.
[0071] - Figure 2 This is a block diagram illustrating the sequence of steps in a first alternative embodiment of the fourth step of the estimation method according to the present invention.
[0072] - Figure 3 This is a block diagram illustrating the sequence of steps in a second alternative embodiment of the fourth step of the estimation method according to the present invention.
[0073] - Figure 4 This is a block diagram illustrating the sequence of steps in a third alternative embodiment of the fourth step of the estimation method according to the present invention.
[0074] - Figure 5 This is a block diagram illustrating the sequence of steps in the fifth step of the estimation method according to the present invention.
[0075] - Figure 6 A schematic diagram of the system according to the present invention is shown. Detailed Implementation
[0076] Unless otherwise stated, the same element appearing in different figures has a single reference numeral.
[0077] The first aspect of the invention relates to a method for estimating the reliability of a metric distance estimate between a camera and each point in an environment imaged by a moving camera, i.e., a method for obtaining a three-dimensional structure of at least a portion of the scene around the camera associated with at least one reliability map.
[0078] A second aspect of the invention relates to a method for controlling a mobile robot or mobile vehicle, comprising the steps of an estimation method according to a first aspect of the invention.
[0079] A third aspect of the invention relates to a system for implementing the estimation method or control method according to the invention.
[0080] [ Figure 6 ] Figure 6 A schematic diagram of the system 200 according to the present invention is shown.
[0081] System 200 includes, for example, autonomous land, air or sea vehicles, mobile robots or drones.
[0082] System 200 includes camera 201 and calculator 202.
[0083] System 200 may also include inertial unit 203.
[0084] exist Figure 6 In this system, system 200 is an unmanned aerial vehicle (UAV) that includes camera 201, calculator 202, and inertial unit 203.
[0085] [ Figure 1 ] Figure 1 This is a block diagram illustrating the sequence of steps in the estimation method 100 according to the present invention.
[0086] The first step 101 in method 100 includes: camera 201 acquiring continuous images of its environment, i.e., a series of images acquired in a continuous acquisition time.
[0087] Each image is, for example, an RGB image (red, green, blue) or a grayscale image.
[0088] The continuous image includes the reference image acquired at acquisition time t.
[0089] The reference image is composed of images in a series of images, such that the acquisition time t is neither the acquisition time corresponding to the first image in the series of images acquired, nor the acquisition time corresponding to the last image in the series of images acquired.
[0090] Each pixel of the reference image is associated with a point in the environment of camera 201.
[0091] The second step 102 of method 100 includes: obtaining a dense depth map from the reference image obtained in the first step 101 using a depth inference algorithm.
[0092] An example of a deep inference algorithm is found in Michel Moukari, Sylvaine Picard, Simon and Frédéric Jurie described this in their publication "Deep multi-scale architectures for monocular depth estimation" presented at the 25th IEEE International Conference on Image Processing in 2018.
[0093] "Depth map of an image acquired by a camera" means an image in which at least one pixel is associated with depth, and "depth" means the distance between the camera and the object represented on the corresponding pixel of the acquired image.
[0094] Distance can be metric or non-metric, and depth can be metric or non-metric.
[0095] Non-metric distances are proportional to metric distances, meaning that there is a unique scaling factor or scaling factor between each non-metric distance and its corresponding metric distance. This scaling factor is a non-zero real scalar.
[0096] A "dense depth map" refers to a depth map in which each pixel is associated with a depth.
[0097] In the dense depth map obtained in the second step 102, each pixel is associated with a first depth estimate as a metric.
[0098] Therefore, the second step 102 makes it possible to obtain a vector that associates the first depth estimate with the x-coordinate of each pixel.
[0099] Deep inference algorithms are implemented, for example, using neural networks.
[0100] The third step 103 of method 100 includes: using a simultaneous localization and mapping (SLAM) algorithm to obtain a sparse depth map of the reference image acquired in the first step 101.
[0101] Qiang Fu et al.’s publication, “FastORB-SLAM: a Fast ORB-SLAM Method with Coarse-to-Fine Descriptor Independent Keypoint Matching,” describes an example of a simultaneous localization and mapping (SMR) algorithm.
[0102] To calculate the depth map on the reference image, the SLAM algorithm uses the continuous images acquired by the moving camera 201 in the first step 101, as well as the displacement of the camera 201 during the acquisition of the continuous images by the camera 201.
[0103] A "sparse depth map" refers to a depth map in which only a few pixels are associated with depth.
[0104] In the sparse depth map obtained in the third step 103, each of the multiple pixels is associated with a second depth estimate, while no depth estimate is obtained for other pixels, i.e., for pixels that do not belong to the multiple pixels.
[0105] Multiple pixels can include all or some of the pixels in the reference image.
[0106] The second depth estimate is non-metric. Therefore, there is a scaling factor between the non-metric distance of the second depth estimate and the metric distance of the first depth estimate.
[0107] Therefore, the third step 103 makes it possible to obtain a vector that associates the second depth estimate with the x-coordinate of each of the multiple pixels.
[0108] The fourth steps 104a, 104b, and 104c of method 100 include three alternative embodiments.
[0109] In order to implement the first alternative embodiment 104a or the second alternative embodiment 104b of the fourth step 104, the system 200 may not include the inertial unit 203.
[0110] In order to enable the third alternative embodiment 104c of the fourth step 104, the system 200 includes an inertial unit 203.
[0111] In either the first alternative embodiment 104a or the second alternative embodiment 104b, the fourth step includes: determining a linear model between the dense depth map obtained in the second step 102 and the sparse depth map obtained in the third step 103.
[0112] [ Figure 2 ] Figure 2 This is a block diagram illustrating the sequence of steps in a first alternative embodiment 104a of the fourth step of the method 100 according to the present invention.
[0113] The first sub-step 1041a of the first alternative embodiment 104a of the fourth step includes: estimating the scaling factor between the dense depth map obtained in the second step 102 and the sparse depth map obtained in the third step 103.
[0114] The scaling factor is estimated based at least on a first depth estimate and a second depth estimate associated with each pixel in a set of pixels selected from a plurality of pixels, the set of pixels being at least a portion of which a second depth estimate has been obtained in the third step 103.
[0115] The pixel set may include, for example, q pixels randomly selected from a plurality of pixels, or, for each region of the image, q / R pixels randomly selected from a plurality of pixels in a given region of the reference image obtained in the first step 101, wherein the image comprises R regions. R is, for example, equal to 9.
[0116] These regions are, for example, evenly distributed in the reference image or distributed in the lower two-thirds of the reference image.
[0117] q, for example, corresponds to the number of pixels between 20% and 50% of the total number of pixels in a plurality of pixels.
[0118] A set of pixels can also correspond to multiple pixels.
[0119] A pixel set includes, for example, pixels among a plurality of pixels that satisfy an uncertain condition.
[0120] In the third step 103, the SLAM algorithm also provides the uncertainty of the second depth estimate for each pixel in the multiple pixels, i.e., the vector. It correlates the uncertainty of the second depth estimate with the x-coordinate of each of the multiple pixels.
[0121] For example, the uncertainty of the second depth estimate can be provided by applying the method described in "Inverse depth parameterization for monocular SLAM" by Civera, Javier, and Andrew J. Davison (IEEE Transactions on Robotics 24.5 (2008): 932-945).
[0122] For a given pixel, the uncertainty condition depends on the uncertainty of the second depth estimate associated with that pixel.
[0123] For example, a pixel satisfies an uncertainty condition if one of a plurality of pixels is associated with an uncertainty in the minimum second depth estimate, or if the uncertainty in the second depth estimate associated with that pixel is less than an uncertainty threshold. The uncertainty threshold is, for example, 0.2 meters.
[0124] In a first exemplary embodiment of the present invention, the scaling factor is estimated only based on a first depth estimate and a second depth estimate associated with each pixel in the pixel set.
[0125] In this case, the first sub-step 1041a is equivalent to estimating the scaling factor α, which minimizes the following criterion:
[0126]
[0127] in: It is a vector of the first depth estimate for each pixel in the pixel set obtained in the second step 102, and It is a vector of the second depth estimate for each pixel in the set of pixels obtained in the third step 103.
[0128] therefore, Vectors corresponding to pixels that are simplified to a set of pixels That is, the first depth estimate from which pixels that do not belong to the pixel set have been removed, and therefore Vectors corresponding to pixels that are simplified to a set of pixels That is, a second depth estimate from which pixels that do not belong to the pixel set have been removed.
[0129] In a second exemplary embodiment of the invention, a scaling factor is further estimated based on a history of depth estimates, including a first depth estimate and a second depth estimate obtained for at least one image previously acquired by camera 201, wherein the at least one image was acquired at an acquisition time prior to the acquisition time t of the image acquired at the first step 101.
[0130] This history includes, for example, a first depth estimate and a second depth estimate for the last k images acquired by camera 201 (i.e., for images acquired at k acquisition times prior to acquisition time t).
[0131] In this case, the first sub-step 1041a is therefore equivalent to estimating the scaling factor α, such that:
[0132]
[0133] in: It includes a vector of the first depth estimate for each pixel in the pixel set obtained for the image acquired at time tk, and It is a vector that includes a second depth estimate for each pixel in the set of pixels obtained for the image acquired at time tk.
[0134] Regardless of the exemplary embodiment, the scaling factor is robustly estimated, for example, by the RANSAC method, iterative weighted least squares method, or M-estimator method.
[0135] The first sub-step 1041a thus allows the estimated scaling factor to be obtained.
[0136] The second sub-step 1042a of the first alternative embodiment 104a of the fourth step includes: calculating the residual error of each pixel in the pixel set.
[0137] The residual error depends on the scaling factor estimated in the first sub-step 1041a and the first and second depth estimates associated with the pixels for which the residual error is calculated.
[0138] For example, the residual error ε of pixel x (t) (x) is calculated as follows:
[0139]
[0140] in: This is the first depth estimate for pixel x. It is a second depth estimate for pixel x, and The scaling factor is estimated in the first sub-step 1041a.
[0141] Optionally, each residual error calculated in the second sub-step 1042a is then compared with a predefined first error threshold. The first error threshold is, for example, a ratio. in This represents the average value of the second depth estimate provided by the SLAM algorithm in the third step 103, and the ratio is between 0.01 and 0.1.
[0142] If the number of pixels in the pixel set whose residual error is greater than the first error threshold, divided by the total number of pixels in the pixel set (i.e., the ratio between the number of pixels in the pixel set whose residual error is greater than the first error threshold and the total number of pixels in the pixel set), is greater than the first outlier threshold, then the first condition C1a is verified and step 1047 of the stop method 100 is executed. Otherwise, the third sub-step 1043a and the fourth sub-step 1044a of the first alternative embodiment 104a of the fourth step are executed.
[0143] The first outlier threshold is, for example, 0.55.
[0144] When step 1047 of stopping method 100 is executed, a measure of minimum reliability is assigned to each pixel of the reference image.
[0145] For example, if the possible values for the reliability metric are between -1 and 1, then during step 1047 of stopping the method, a reliability metric equal to -1 is assigned to each pixel of the reference image.
[0146] The third sub-step 1043a of the first alternative embodiment 104a of the fourth step includes: calculating the mean of the residual error that is less than the first error threshold calculated in the second sub-step 1042a.
[0147] The fourth sub-step 1044a of the first alternative embodiment 104a of the fourth step includes performing a normality test on the residual error calculated in the second sub-step 1042a that is below the first error threshold.
[0148] "Perform a normality test on the data" means to perform a test to check whether the data follows a normal distribution.
[0149] The normality tests used are, for example, the D'Agostino-Pearson test, which is based on measurements of skewness and kurtosis.
[0150] If the absolute value of the mean calculated in the third sub-step 1043a is greater than the first mean threshold, or if the normality test performed in the fourth sub-step 1044a is negative (i.e., if the residual errors below the first error threshold do not follow a normal distribution), then the second condition C2a is verified and step 1047 of the stopping method 100 is executed, that is, the metric of minimum reliability is assigned to each pixel of the reference image. Otherwise, step 105 of the method 100 is executed.
[0151] The first mean threshold is, for example, 0.1.
[0152] [ Figure 3 ] Figure 3 This is a block diagram illustrating the sequence of steps in a second alternative embodiment 104b of the fourth step of the method 100 according to the present invention.
[0153] For each iteration in a set of iterations that includes multiple iterations (i.e., multiple times), the first sub-step 1041b, the second sub-step 1042b, the third sub-step 1043b, and the fourth sub-step 1044b of the second alternative embodiment 104b of the fourth step are performed.
[0154] A set of iterations may have an iteration count of, for example, 10.
[0155] The first sub-step 1041b includes: dividing the pixels of the set of pixels selected from multiple pixels into a first sample and a second sample.
[0156] The partitioning may be random or depend on the uncertainty of a second depth estimate associated with the pixel.
[0157] For example, the pixel set is determined as described above in the first sub-step 1041a of the first alternative embodiment 104a for the fourth step. In the case of determining by random sampling, q corresponds, for example, to a number of pixels between 10% and 20% of the total number of pixels.
[0158] The second sub-step 1042b includes estimating the scaling factor between the dense depth map obtained in the second step 102 and the sparse depth map obtained in the third step 103.
[0159] The scaling factor is estimated based on the first depth estimate and the second depth estimate associated with each pixel of the first sample.
[0160] The second sub-step 1042b is equivalent to estimating the scaling factor α, such that:
[0161]
[0162] in: It is a vector containing the first depth estimate for each pixel of the first sample, and It is a vector that includes a second depth estimate for each pixel of the first sample.
[0163] therefore, Vector corresponding to the pixels simplified to the first sample That is, the first depth estimate from which pixels that do not belong to the first sample have been removed, and therefore Vector corresponding to the pixels simplified to the first sample That is, a second depth estimate from which pixels that do not belong to the first sample have been removed.
[0164] Scaling factors can be robustly estimated, for example, using RANSAC methods, iterative weighted least squares methods, or M-estimators.
[0165] The third sub-step 1043b includes: calculating the residual error for each pixel of the second sample.
[0166] The residual error depends on the scaling factor estimated in the second sub-step 1042b and the first and second depth estimates associated with the pixels for which the residual error is calculated.
[0167] For example, the residual error ε of pixel x (t) (x) is calculated as follows:
[0168]
[0169] in: This is the first depth estimate for pixel x. It is the second depth estimation for pixel x, and The scaling factor is estimated in the second sub-step 1042b.
[0170] Then, each residual error calculated in the third sub-step 1043b is compared with a predefined second error threshold. The second error threshold is, for example, 0.5.
[0171] The fourth sub-step 1044b includes: calculating the mean of the residual errors that are less than the second error threshold calculated in the third sub-step 1043b.
[0172] Once the first sub-step 1041b, the second sub-step 1042b, the third sub-step 1043b, and the fourth sub-step 1044b have been executed for each iteration of the set of iterations, the fifth sub-step 1045b of the second alternative embodiment 104b of the fourth step is executed.
[0173] The fifth sub-step 1045b includes: calculating the variance of the scaling factor estimated in the second sub-step 1042b over the set of iterations.
[0174] If the variance calculated in the fifth sub-step 1045b is greater than the first variance threshold, then the first condition C1b is verified, and step 1047 of the stopping method 100 is executed. Otherwise, the sixth sub-step 1046b of the second alternative embodiment 104b of the fourth step is executed.
[0175] The first variance threshold is, for example, 0.2.
[0176] The sixth sub-step 1046b includes: calculating the mean and variance of the average values calculated in the fourth sub-step 1044b over the set of iterations.
[0177] If the mean calculated in the sixth sub-step 104b is greater than the second mean threshold, or if the variance calculated in the sixth sub-step 104b is greater than the second variance threshold, then the second condition C2b is verified, and step 1047 of stopping method 100 is executed. Otherwise, step 105 of method 100 is executed.
[0178] The second mean threshold is, for example, 0.1.
[0179] The second variance threshold is, for example, 0.2.
[0180] [ Figure 4 ] Figure 4 This is a block diagram illustrating the sequence of steps in a third alternative embodiment 104c of the fourth step of the method 100 according to the present invention.
[0181] The first sub-step 1041c of the third alternative embodiment 104c of the fourth step includes: obtaining a metric sparse depth map by fusing the sparse depth map and data from the inertial unit 203.
[0182] The first sub-step 1041c is performed, for example, by the technique described in the publication “Fusion of IMU and vision for absolute scale estimation in monocular SLAM” by Nützi, Gabriel et al. (Journal of Intelligent and Robotic Systems 61.1-4 (2011):287-299).
[0183] In the metric sparse depth map obtained in the first sub-step 1041c, each of the multiple pixels is associated with a second metric depth estimate.
[0184] Therefore, the first sub-step 1041c makes it possible to obtain the vector. It associates the second metric depth estimate with the x-coordinate of each pixel in a plurality of pixels.
[0185] The second sub-step 1042c of the third alternative embodiment 104c of the fourth step includes: calculating the residual error of the pixel based on a first depth estimate and a second metric depth estimate associated with each pixel in a set of pixels selected from a plurality of pixels.
[0186] For example, the pixel set is determined as described above in the first sub-step 1041a of the first alternative embodiment 104a for the fourth step. In the case of determining by random sampling, q corresponds, for example, to a number of pixels between 10% and 20% of the total number of pixels.
[0187] Residual error ε of pixel x (t) (x) is calculated as follows, for example:
[0188]
[0189] in This is the first depth estimate for pixel x. It is a second metric for depth estimation of pixel x.
[0190] Then, each residual error calculated in the second sub-step 1042c is compared with a predefined third error threshold. The third error threshold is, for example, 0.5.
[0191] If the ratio of the number of pixels in the pixel set whose residual error is greater than the third error threshold to the total number of pixels in the pixel set (i.e., the ratio of the number of pixels in the pixel set whose residual error is greater than the third error threshold to the total number of pixels in the pixel set) is greater than the second outlier threshold, then the first condition C1c is verified and step 1047 of the stop method 100 is executed. Otherwise, step 105 of the method 100 is executed.
[0192] The second outlier threshold is, for example, 0.55.
[0193] The fifth step 105 includes: calculating a measure of the reliability of the first depth estimate associated with each pixel for each pixel, based on the dense depth map obtained in the second step 102 and the sparse depth map obtained in the third step 103.
[0194] [ Figure 5 ] Figure 5 This is a block diagram illustrating the sequence of steps in the fifth step 105 of the method 100 according to the present invention.
[0195] The first sub-step 1051 includes: calculating the residual error for each of the multiple pixels.
[0196] When the first alternative embodiment 104a or the second alternative embodiment 104b of the fourth step 104 has been performed, the residual error is calculated based on the estimated scaling factor and the first depth estimate and the second depth estimate associated with the pixel.
[0197] The residual error ε of pixel x in a plurality of pixels (t) (x) is calculated as follows, for example:
[0198]
[0199] in: This is the first depth estimate for pixel x. It is a second depth estimate for pixel x, and It is the estimated scaling factor.
[0200] The scaling factor estimated in the second alternative embodiment 104b of the fourth step of the method 100 according to the invention corresponds to the mean of the scaling factor estimated in the second sub-step 1042b over the set of iterations.
[0201] When the third alternative embodiment 104c of the fourth step 104 has been performed, the residual error is calculated based on the first depth estimate and the second metric depth estimate associated with the pixel.
[0202] The residual error ε of pixel x in a plurality of pixels (t) (x) is calculated as follows, for example:
[0203]
[0204] in It is the first depth estimate for pixel x, and It is a second metric for depth estimation of pixel x.
[0205] The second sub-step 1052 includes: calculating a measure of coherence for each of the plurality of pixels.
[0206] The measure of coherence is calculated based on residual error and the uncertainty of possible second depth estimation associated with pixels.
[0207] Coherence measures of the coherence of pixels xi in a plurality of pixels (t) It can be calculated as follows:
[0208]
[0209] Where: ε (t) (x i ) is the residual error associated with pixel xi among multiple pixels.
[0210] Coherence measures of the coherence of pixels xi in a plurality of pixels (t) It can also be calculated as follows:
[0211]
[0212] and:
[0213]
[0214] in: It is the uncertainty of the second depth estimate associated with pixel xi among multiple pixels.
[0215] The third sub-step 1053 includes: obtaining a measure of coherence for each pixel that does not belong to the plurality of pixels by interpolating from a measure of coherence associated with a pixel among the plurality of pixels calculated in the second sub-step 1052.
[0216] For a pixel x that does not belong to multiple pixels, the measure of coherence is Coherence. (t) (x) is calculated as follows, for example:
[0217]
[0218] Where: x i φ is a pixel belonging to multiple pixels, φ is a radial basis function, such as Gaussian, linear, polynomial or quadratic basis functions, and N is the number of pixels in the multiple pixels.
[0219] If the semantic segmentation of the reference image is known, then the coherence measure of pixels x that do not belong to multiple pixels is Coherence. (t) (x) is calculated as follows, for example:
[0220]
[0221] and:
[0222] C(x,x i If classe(x) = 1, then classe(x) = classe(x) i )
[0223] Otherwise = 0
[0224] The fourth sub-step 1054 of the fifth step 105 includes: obtaining a measure of reliability for each pixel of the reference image.
[0225] The measure of reliability depends on the measure of coherence and the uncertainty of the second depth estimate associated with the pixel.
[0226] Fiab, a measure of the reliability of pixel x (t) The calculation is as follows:
[0227] Fiab (t) (x)=Coher (t) (x) If Conf (t) (x)≥0
[0228] Otherwise = -1.
[0229] The method 100 according to the invention may further include a sixth step 106, which includes: for each pixel of the reference image, calculating a measure of density related to the number of pixels of a plurality of pixels involved in the calculation of a measure of reliability associated with the pixel obtained in the fifth step 105.
[0230] The sixth step 106 includes a first sub-step 1061, which includes: assigning a metric of maximum density to each of the plurality of pixels.
[0231] For example, the measure of maximum density is 100.
[0232] The sixth step 106 includes a second sub-step 1062, which includes: obtaining a measure of the density of each pixel that does not belong to the plurality of pixels by interpolating from a measure of density associated with the pixels of the plurality of pixels obtained in the first sub-step 1061.
[0233] A measure of the density of pixels x that do not belong to multiple pixels. (t) (x) is calculated as follows, for example:
[0234]
[0235] Where: x i It refers to pixels belonging to multiple pixels, where φ is the radial basis function, such as Gaussian, linear, polynomial, or multiple quadratic basis functions, and w i It depends on the parameters determined by the function φ, where N is the number of pixels in the multiple pixels, and w is a coefficient.
[0236] w is, for example, 1 / N.
[0237] Parameter w i For example, it can be determined by the method described in the publication “A Krylov subspace algorithm for multiquadric interpolation in many dimensions” by Faul, AC, G. Goodsell and MJDPowell (Journal of Numerical Analysis of the Society for Mathematics and Its Applications 25.1 (2005): 1-24).
[0238] If the semantic segmentation of the reference image is known, then the density measure I of pixels x that do not belong to multiple pixels is... (t) (x) is calculated as follows, for example:
[0239]
[0240] and:
[0241] C(x,x i If classe(x) = 1, then classe(x) = classe(x) i )
[0242] Otherwise = 0
Claims
1. A method (100) for estimating the reliability of a metric distance estimate between a moving camera (201) and each point in the environment imaged by the camera (201), comprising the steps of: - A continuous image of the environment is acquired by a camera (201), the continuous image including a reference image, each pixel of the reference image corresponding to a point (101) in the environment. - A depth inference algorithm is used on the reference image to obtain a dense depth map that associates a first depth estimate with each pixel of the reference image, the first depth estimate corresponding to the distance between the camera and the point represented on that pixel, the first depth estimate being a metric (102). - A simultaneous localization and mapping algorithm is used on consecutive images acquired by a moving camera (201) to obtain a sparse depth map that associates a second depth estimate with each of a plurality of pixels in a reference image, the second depth estimate being nonmetric (103). - Determine the linear model between dense and sparse depth maps (104a), including the following sub-steps: The scaling factor between the dense depth map and the sparse depth map is estimated based on a first depth estimate and a second depth estimate associated with each pixel in a set of pixels selected from multiple pixels (1041a). For each pixel in the pixel set, the residual error is calculated based on the estimated scaling factor and the first and second depth estimates associated with that pixel (1042a). Calculate the mean of the residual errors below the first error threshold (1043a). Perform a normality test (1044a) on residual errors below the first error threshold. If the absolute value of the mean is greater than the first mean threshold or if the normality test is negative (C2a), then the method is stopped and a minimum reliability metric is assigned to each pixel of the reference image (1047). - For each pixel of the reference image, a measure of the reliability of the first depth estimate associated with that pixel is calculated based on the dense depth map and the sparse depth map (105).
2. The method (100) according to claim 1, characterized in that... The step of estimating the scaling factor (1041a) is further performed based on the history of depth estimation, which includes a first depth estimate and a second depth estimate obtained for at least one image previously acquired by the camera (201).
3. The method (100) according to claim 1, characterized in that... The step of determining the linear model (104a) further includes the following steps: if the ratio between the number of pixels with residual error greater than a first error threshold and the number of pixels in the pixel set is greater than a first outlier threshold (C1a), the method is stopped and a minimum reliability metric is assigned to each pixel of the reference image (1047).
4. The method (100) according to any one of claims 1 to 3, characterized in that... The set of pixels is selected by randomly sampling from multiple pixels in a reference image or by randomly sampling from multiple pixels in a region of the reference image for each region of the reference image.
5. The method (100) according to any one of claims 1 to 3, characterized in that... The simultaneous localization and mapping algorithm also provides uncertainty of a second depth estimate for each of the multiple pixels, and selects a set of pixels from the multiple pixels that satisfy the uncertainty condition depending on the uncertainty of the second depth estimate associated with that pixel. A pixel satisfies the uncertainty condition when the uncertainty of the second depth estimate associated with one of the multiple pixels is less than the uncertainty threshold.
6. The method (100) according to any one of claims 1 to 3, characterized in that... The simultaneous localization and mapping algorithm also provides uncertainty for a second depth estimate for each of the multiple pixels, and the step (105) of calculating a measure of reliability includes the following sub-steps: - For each of the multiple pixels, the residual error is calculated based on the estimated scaling factor and the first depth estimate and the second depth estimate associated with that pixel, or based on the first depth estimate and the second metric depth estimate associated with that pixel (1051). - For each of the multiple pixels, a measure of coherence that depends on the residual error is calculated (1052). - For each pixel that does not belong to multiple pixels, the coherence measure is associated by interpolation from the coherence measure associated with the pixels in the multiple pixels (1053). - For each pixel of the reference image, a measure of reliability is calculated based on a measure of coherence and the uncertainty of the second depth estimate associated with that pixel (1054).
7. The method (100) according to any one of claims 1 to 3, characterized in that... It also includes a step (106) of calculating a metric of density for each pixel of the reference image, comprising the following sub-steps: - For each of the multiple pixels, the measure of the maximum density is associated (1061). - For each pixel that does not belong to multiple pixels, the density measure is assigned by interpolation from the density measure associated with that pixel among the multiple pixels (1062).
8. A method for controlling a mobile robot or mobile vehicle, comprising the steps of the estimation method (100) according to any one of the preceding claims.
9. A system (200) for implementing the estimation method (100) according to any one of claims 1 to 7 or the method according to claim 8, comprising a camera (201) and a calculator (202).
10. The system (200) according to claim 9, characterized in that... It also includes an inertial unit (203).
11. A computer program product comprising instructions which, when executed on a computer, cause the computer to perform the steps of the estimation method (100) according to any one of claims 1 to 7 or the steps of the method according to claim 8.
Citation Information
Patent Citations
Mapping space using multi-directional camera
CN108369743A
Monocular camera based dense reconstruction method of 3D scene
CN108416840A
