Visual odometer method and system based on image depth prediction and monocular geometry
By combining image depth prediction and monocular geometry methods, the problem of low accuracy of monocular visual odometry in dynamic environments is solved, achieving higher robustness and accuracy, especially in scenes with poor texture and complex lighting changes. In this paper, a method combining depth prediction and geometric constraints is used to improve the performance of visual odometry.
Patent Information
- Application Number
- CN202410853788.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing visual odometry methods have low accuracy and insufficient robustness in scenes with poor textures, dynamic objects, and complex lighting changes. In particular, monocular visual odometry performs poorly in dynamic environments.
A visual odometry method based on image depth prediction and monocular geometry is adopted, through a combination of scale-invariant feature transformation, FLANN algorithm, epipolar geometric constraints, monocular depth prediction model, perspective N-point projection, RANSAC algorithm and local nonlinear optimization. , to achieve extreme point detection, feature matching, depth information prediction and attitude solution, improving robustness and accuracy.
Significantly improves the robustness and accuracy of monocular visual odometry in dynamic environments, avoids the effects of lack of texture and illumination changes, robustly estimates scale factors, reduces trajectory drift, and does not require additional ground truth annotation data It can run stably in extreme scenarios.
Smart Images

Figure CN118736009A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision and robot navigation, and in particular relates to a visual odometer method and system based on image depth prediction and monocular geometry. Background Art
[0002] Visual odometry is the process of estimating the trajectory of a robot based on an input image sequence. It is one of the core modules of a simultaneous localization and mapping (SLAM) system. Although the traditional geometric visual odometry method based on feature point matching has high accuracy in a controlled environment, it is prone to failure in complex scenes with poor texture, dynamic objects and changing lighting. In recent years, although end-to-end visual odometry methods based on deep learning have made some progress, they often lack geometric constraints, and their accuracy and robustness are unsatisfactory. Existing hybrid visual odometry methods integrate classic geometric models and deep learning frameworks, but they still need to be improved when dealing with complex scenes such as high dynamics and low texture. Summary of the invention
[0003] Purpose of the invention: The present invention proposes a visual odometer method and system based on image depth prediction and monocular geometry to overcome the defects of the prior art and improve the robustness and accuracy of monocular visual odometer in dynamic environments.
[0004] Technical solution: A visual odometer method based on image depth prediction and monocular geometry described in the present invention:
[0005] (1) Two consecutive image frames are input, and the scale-invariant feature transformation algorithm is used to detect and describe the local features of the image. Then, the FLANN algorithm is used to match the corresponding feature point pairs between the two frames (F i ,F j );
[0006] (2) Based on the feature matching relationship obtained in step (1), the essential matrix E is solved using the epipolar geometry constraint to obtain the relative posture transformation [R, t] of the camera, where R is the rotation matrix and t is the translation vector;
[0007] (3) Build and train a monocular depth prediction model to predict dense depth information for each frame of input image;
[0008] (4) If the number of valid depth information pairs formed by two consecutive image frames is greater than a given threshold, the scale factor s is estimated using triangulation to obtain the corrected relative posture transformation [R,st]; otherwise, step (5) is executed;
[0009] (5) The absolute attitude transformation [R, t] is solved by combining the perspective N-point projection algorithm, the RANSAC algorithm and local nonlinear optimization.
[0010] Furthermore, the implementation process of step (1) is as follows:
[0011] Through Gaussian difference kernel detection, the following formula is used to compare pixel values in different scale spaces to find extreme points as candidate key points:
[0012] D(x,y,σ)=(G(x,y,kσ)-G(x,y,σ))*I(x,y)
[0013]
[0014] Where x, y are the spatial coordinates of the image, I(x, y) represents the pixel value of the input image at point (x, y), k represents the multiple relationship between adjacent scales, and G(x, y, σ) is the Gaussian kernel at scale σ, which is used to generate different scale spaces of the input image I(x, y);
[0015] The spline interpolation method is used to fit the three-dimensional quadratic function to the key points, and then the true extreme points of the fitting function are found. Then, the points with low contrast are removed, using the following formula:
[0016]
[0017] in, is the extreme point of the interpolation function, discard Points smaller than a given threshold; when determining the main direction of each key point, the main direction is obtained by statistically analyzing the gradient histogram to make the feature rotation invariant; finally, a key point descriptor is generated, and the gradient direction histogram in its neighborhood is calculated with each key point as the center to form a 128-dimensional vector as the feature vector representation of the key point; after obtaining the feature vectors of the two images, the FLANN algorithm is used to match the corresponding feature point pairs between the image frames (F i ,f j ).
[0018] Furthermore, the step (2) is implemented by the following formula:
[0019]
[0020] Among them, E is the essential matrix, K is the camera intrinsic parameter which is a known parameter, and the relative posture transformation [R, t] of the camera is obtained by decomposing E.
[0021] Furthermore, the implementation process of step (3) is as follows:
[0022] Given the predicted depth D t and the camera pose matrix T t+1→t , reconstruct the image I t+1→t :
[0023] It+1→t =w(I t+1 ,KT t+1→ tK -1 xD t [x])
[0024] Where w(·) is a differentiable image warping function, and x represents the pixel value of a point in the image;
[0025] Using the generated I t+1→t and reference image I t , construct the following objective function:
[0026] pe(I t+1→t ,I t ) = αSSIM(I t+1→t ,I t )+(1-α)||I t+1→t -I t || 1
[0027] Among them, SSIM is the structural similarity index, and α is the weight for balancing SSIM loss and L1 loss;
[0028] For reference view I t , according to its neighboring view I t-1 ,I t+1 Reconstruct image I t+1→t ,I t-1→t ; Only the smallest pair of reference pixels and synthesized pixels in the view are calculated for the photometric error:
[0029] L p =min(pe(I t ,I t-1→t ),pe(I t ,I t+1→t ))
[0030] And introduce the edge-aware depth smoothing term L s :
[0031]
[0032] in, and Calculate the depth map D separately t The gradient magnitude in the horizontal and vertical directions makes the depth values of adjacent pixels close; and It is a weight term based on the gradient of the current view image. When the image gradient is large in the edge area, the weight term is small, allowing the depth map to be discontinuous. In the flat area with small image gradient, the weight term is large, which makes the depth map smooth. The final loss function is:
[0033] L=L p +λL s
[0034] PyTorch is used to implement and train the monocular depth prediction model.
[0035] Furthermore, the implementation process of step (4) is as follows:
[0036] For two given consecutive image frames I i and I j The corresponding feature point pairs (F i ,F j ) After normalization, we get x i and x j , reconstruct the 3D point cloud X corresponding to the second view through triangulation j :
[0037]
[0038] Among them, e 3 is the vector [0,0,1] T ;
[0039] X j Projecting back to the image plane to get depth information based on triangulation Then use the monocular depth prediction model to estimate the image I j The depth information D j , and then the depth information D j Apply flyout mask M d Get the processed depth data Search and If the number of depth information pairs is greater than a given threshold, the depth ratio is calculated. The RANSAC algorithm is introduced to perform robust fitting of noisy data:
[0040]
[0041] |r i -s|≤∈ 1
[0042] Among them, ∈ 1 is the residual threshold, and s is the scale factor.
[0043] Furthermore, the implementation process of step (5) is as follows:
[0044] Use the monocular depth prediction model to estimate the current view I i The depth information D i , then Di Apply flyout mask M d , get the processed depth data Finally, using the camera internal parameters and Calculate the view I by back-projection i The corresponding 3D point cloud coordinates X i ; From all N pairs of correspondences between 3D points and 2D pixels, use RANSAC to randomly sample the minimum internal point set and calculate the initial solution R of the pose 0 ,t 0 :
[0045]
[0046] Among them, ρ is the robust kernel function, F j Reference view I j Corresponding feature points; π is the projection function; with the initial solution R 0 ,t 0 As the starting point, a local nonlinear optimization method is used to optimize the pose solution {R * ,t *}:
[0047]
[0048] According to the optimized pose solution, the reprojection errors of all N pairs of points are calculated to determine the internal point set:
[0049] I={i||F j -π(R * ,t * ,X i )||<∈ 2} (3)
[0050] Among them, ∈ 2 is the inlier threshold; repeat the above process until the maximum number of iterations is reached or the number of inliers no longer increases, thus obtaining the optimal solution [R, t].
[0051] The present invention provides a visual odometer system based on image depth prediction and monocular geometry, comprising:
[0052] Feature detection and matching module, used to detect key points of input images and match corresponding feature points between consecutive image frames;
[0053] A 2D attitude solver, used for estimating a 2D attitude transformation of the camera based on the correspondence relationship between the feature point pairs;
[0054] Monocular depth prediction, used to predict a dense depth map for each input image frame;
[0055] A scale factor correction module, used to correct the scale factor of the 2D posture transformation using the depth information output by the depth prediction network;
[0056] A 3D attitude solver is used to directly solve the 3D attitude of the camera based on the corresponding relationship between the 3D coordinates of the feature point pairs and the 2D pixel coordinates when the scale factor correction module cannot operate.
[0057] Beneficial effects: The present invention combines the advantages of traditional geometric methods and the latest deep learning technology. It not only theoretically solves the challenges that have long plagued this field, such as scale estimation and dynamic environment adaptation, but also demonstrates excellent performance in practical applications. First, the present invention combines the classic algorithms of feature detection and geometric constraints, which can avoid the influence of complex environmental scenes such as lack of texture, dynamic objects and lighting changes. At the same time, it introduces a 2D posture solution strategy based on optical flow amplitude, which further improves the adaptability to dynamic scenes. Secondly, through the proposed novel scale factor correction method, the dense depth information output by the depth prediction network can be utilized, and the inherent scale uncertainty of the monocular visual odometer can be robustly estimated based on the RANSAC algorithm, avoiding long-term trajectory drift. Furthermore, the system's monocular depth prediction network adopts a self-supervised training method, without relying on additional ground truth annotation data. Even if it is only trained on conventional data sets, it also shows excellent generalization performance and can run stably in extreme scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a schematic diagram of the overall framework of the visual odometer system of the present invention;
[0059] Figure 2 It is a schematic diagram of calculation of the fly-out mask of the present invention;
[0060] Figure 3 The figure is a comparison chart of the experimental results when different sequences in the KITTI dataset are used as verification data; among them, Figures (a) to (k) are comparison charts of the experimental results when sequences 00 to 10 in the KITTI dataset are used as verification data. DETAILED DESCRIPTION
[0061] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0062] like Figure 1 As shown, the present invention proposes a visual odometer method based on image depth prediction and monocular geometry, comprising the following steps:
[0063] Step 1: Run the feature detection and matching module to match the corresponding feature points between consecutive image frames. The specific steps are as follows:
[0064] Input two consecutive image frames, use the scale-invariant feature transformation algorithm to detect and describe the local features of the image, and then use the FLANN algorithm to match the corresponding feature point pairs between the two frames (F i ,F j ).
[0065] The purpose of scale space extremum detection is to find key points in different scale spaces. It uses Gaussian difference kernel detection to compare pixel values in different scale spaces using the following formula to find extreme points as candidate key points:
[0066] D(x,y,σ)=(G(x,y,kσ)-G(x,y,σ))*I(x,y)
[0067]
[0068] The spline interpolation method is used to fit the three-dimensional quadratic function to the key points, and then the true extreme points (key points) of the fitting function are found. Then, the points with low contrast are removed, using the following formula:
[0069]
[0070] in, is the extreme point of the interpolation function, discard Points smaller than a given threshold; when determining the main direction of each key point, the main direction is obtained by statistically analyzing the gradient histogram to make the feature rotation invariant; finally, a key point descriptor is generated, and the gradient direction histogram in its neighborhood is calculated with each key point as the center to form a 128-dimensional vector as the feature vector representation of the key point; after obtaining the feature vectors of the two images, the FLANN algorithm is used to match the corresponding feature point pairs between the image frames (F i ,F j ).
[0071] Step 2: Solve the essential matrix E based on the epipolar geometry constraint of the 2D attitude solver to obtain the relative attitude transformation [R, t] of the camera, which satisfies:
[0072]
[0073] Among them, R is the rotation matrix, t is the translation vector, E is the essential matrix, K is the camera internal parameter which is a known parameter, and F i ,F j is the feature matching point obtained in step (1). Therefore, the relative posture transformation [R, t] of the camera can be obtained by decomposing E. The solver monitors the optical flow amplitude between consecutive frames in real time, and only decomposes the essential matrix to obtain the posture solution when the amplitude is large enough, which can avoid the interference of small-scale dynamic points.
[0074] Step 3: Build a monocular depth prediction network to predict a dense depth map for each frame of input image. First, the monocular depth model should be trained. Given the predicted depth D t and the camera pose matrix T t+1→t , we can reconstruct the image I t+1→t :
[0075] I t+1→t =w(I t+1 ,KT t+1→ tK -1 xD t [x])
[0076] Where w(·) is a differentiable image warping function and x represents the pixel value of a point in the image.
[0077] Using the generated I t+1→t and reference image I t , we can construct the following objective function:
[0078] pe(I t+1→t ,I t ) = αSSIM(I t+1→t ,I t )+(1-α)||I t+1→t -I t || 1
[0079] Among them, SSIM is the structural similarity index, which is an indicator to measure the similarity between two images, and α=0.85 is used to balance the weights of SSIM loss and L1 loss.
[0080] Specifically, if Figure 2 As shown, for reference view I t , according to his neighboring view I t-1 ,I t+1 Reconstruct image I t+1→t ,I t-1→t The present invention does not average the photometric errors between the reference pixels and the synthesized pixels in multiple views, but only calculates the photometric error between the pair of reference pixels and the synthesized pixels with the smallest error:
[0081] L p =min(pe(I t ,I t-1→t ),pe(I t ,I t+1→t ))
[0082] Finally, the edge-aware depth smoothing term L is introduced s :
[0083]
[0084] in, and Calculate the depth map D separately t The gradient magnitude in the horizontal and vertical directions makes the depth values of adjacent pixels close. and It is a weight term based on the gradient of the current view image. When the image gradient is large (such as the edge area), the weight term is small, allowing discontinuities in the depth map; in the flat area with small image gradient, the weight term is large, which makes the depth map smooth. The reason for introducing this depth smoothing term is that the predicted depth map is expected to be segmented in the edge area of the object, while remaining smooth in the internal area of the object, which is in line with the characteristics of the real scene. Through this loss term, the edge preservation and smoothness of the depth prediction can be enhanced, thereby producing a more reasonable depth estimation result.
[0085] The final loss function is: L = L p +λL s . PyTorch is used to implement and train the depth prediction model. During the training process, the Adam optimization algorithm is used, a total of 15 epochs are iterated, the learning rate is set to 0.0001, and the weight coefficient λ of the edge-aware depth smoothing regularization term is taken as 0.001. After the monocular depth model is trained, the monocular image is input into the model, and the output is the dense depth information of the current image.
[0086] Step 4: Based on the result of step (2), run the scale factor correction module, use the dense depth information of the image, use the triangulation method to estimate the scale factor s, and obtain the corrected relative posture transformation [R,st]. The specific steps are as follows:
[0087] For two given consecutive image frames I i and I j The corresponding feature point pairs (F i ,F j ) After normalization, we get x i and x j , the 3D point cloud X corresponding to the second view can be reconstructed by triangulation j :
[0088]
[0089] Among them, e 3 is the vector [0,0,1] T . X j Projecting back to the image plane to get depth information based on triangulation Then use the monocular depth prediction model to estimate the image I j The depth information D j, and then the depth information D j Apply flyout mask M d Get the processed depth data Search and If the number of depth information pairs is greater than a given threshold, the depth ratio is calculated. The RANSAC algorithm is introduced to perform robust fitting of noisy data:
[0090]
[0091] |r i -s|≤∈ 1
[0092] Among them, ∈ 1 is a suitable residual threshold. In this way, the scale factor estimate s of the visual odometer can be obtained. Based on step 2, the scale-corrected relative posture transformation [R,st] can be obtained.
[0093] Step 5: Run the 3D pose solver to accurately solve the absolute pose transformation [R, t] by combining the perspective N-point projection algorithm, the RANSAC algorithm, and local nonlinear optimization.
[0094] First, the monocular depth prediction model is used to estimate the current view I i The depth information D i , then D i Apply flyout mask M d , get the processed depth data Finally, using the camera internal parameters and Calculate the view I by back-projection i The corresponding 3D point cloud coordinates X i Next, from all N pairs of correspondences between 3D points and 2D pixels, RANSAC is used to randomly sample the minimum internal point set and calculate the initial solution R of the pose. 0 ,t 0
[0095]
[0096] Among them, ρ is the robust kernel function, F j Reference view I j The two-dimensional pixel coordinates, X i For the current view I i π is the projection function. 0 ,t 0 As the starting point, a local nonlinear optimization method is used to optimize the pose solution {R * ,t *}:
[0097]
[0098] According to the optimized pose solution, the reprojection errors of all N pairs of points are calculated to determine the internal point set:
[0099] I={i||F j -π(R * ,t * ,X i )||<∈ 2}
[0100] Here∈ 2 is the inlier threshold. Repeat the above process until the maximum number of iterations is reached or the number of inliers no longer increases, thus obtaining the optimal solution [R, t].
[0101] The present invention also proposes a visual odometer system based on image depth prediction and monocular geometry, comprising:
[0102] Feature detection and matching module, used to detect key points of input images and match corresponding feature points between consecutive image frames;
[0103] A 2D attitude solver, used for estimating a 2D attitude transformation of the camera based on the correspondence relationship between the feature point pairs;
[0104] A monocular depth prediction network, used to predict a dense depth map for each input image frame;
[0105] A scale factor correction module, used to correct the scale factor of the 2D posture transformation using the depth information output by the depth prediction network;
[0106] A 3D attitude solver is used to directly solve the 3D attitude of the camera based on the corresponding relationship between the 3D coordinates of the feature point pairs and the 2D pixel coordinates when the scale factor correction module cannot operate.
[0107] In this implementation, five evaluation indicators are used: average translation error (t_err), average rotation error (r_err), average displacement error (ATE), translation relative pose error (RPE(m)), and rotation relative pose error (RPE(°)). The KITTIOdometry Dataset contains stereo camera and lidar data of 22 real urban scenes and provides accurate Ground Truth positions. Figure 3 As shown, Figure 3(a) to (k) are 11 sequences from 00 to 10 in the KITTI dataset as evaluation data. The visual odometer system proposed in the present invention is compared with various existing methods. The compared methods include geometry-based methods (VISO2 and ORB-SLAM2) and end-to-end deep learning methods such as SC-SfM-Learner and Depth-VO-Feat, as well as DF-VO. The quantitative results are shown in Table 1, and the best results are marked in bold underline. It can be seen that the present invention has four of the five indicators that are optimal.
[0108] Table 1 Error comparison between monocular visual odometry system and various methods in KITTI dataset
[0109]
[0110]
[0111] In addition, from Figure 3 It can be seen that in the long-distance trajectory estimation without route looping (sequences 01, 02, and 08), ORB-SLAM2 will have serious drift accumulation. Despite facing multiple challenges such as dynamic obstacle movement and drastic changes in illumination, the present invention still demonstrates excellent trajectory estimation capabilities in these highly dynamic and complex scenes, with the highest degree of consistency with the ground truth trajectory.
[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A visual odometer method based on image depth prediction and monocular geometry, characterized in that: The following steps are involved: (1) Two consecutive image frames are input, and the scale-invariant feature transformation algorithm is used to detect and describe the local features of the image. Then, the FLANN algorithm is used to match the corresponding feature point pairs between the two frames (F i ,F j ); (2) Based on the feature matching relationship obtained in step (1), the essential matrix E is solved using the epipolar geometry constraint to obtain the relative posture transformation [R, t] of the camera, where R is the rotation matrix and t is the translation vector; (3) Build and train a monocular depth prediction model to predict dense depth information for each frame of input image; (4) If the number of valid depth information pairs formed by two consecutive image frames is greater than a given threshold, the scale factor s is estimated using triangulation to obtain the corrected relative posture transformation [R,st]; otherwise, step (5) is executed; (5) The absolute attitude transformation [R, t] is solved by combining the perspective N-point projection algorithm, the RANSAC algorithm and local nonlinear optimization.
2. The visual odometer method based on image depth prediction and monocular geometry according to claim 1, characterized in that: The implementation process of step (1) is as follows: Through Gaussian difference kernel detection, the following formula is used to compare pixel values in different scale spaces to find extreme points as candidate key points: d(x,y,σ)=(G(x,y,kσ)-G(x,y,σ))*I(x,y) Where x, y are the spatial coordinates of the image, I(x, y) represents the pixel value of the input image at point (x, y), k represents the multiple relationship between adjacent scales, and G(x, y, σ) is the Gaussian kernel at scale σ, which is used to generate different scale spaces of the input image I(x, y); The spline interpolation method is used to fit the three-dimensional quadratic function to the key points, and then the true extreme points of the fitting function are found. Then, the points with low contrast are removed, using the following formula: in, is the extreme point of the interpolation function, discard Points smaller than a given threshold; when determining the main direction of each key point, the main direction is obtained by statistically analyzing the gradient histogram to make the feature rotation invariant; finally, a key point descriptor is generated, and the gradient direction histogram in its neighborhood is calculated with each key point as the center to form a 128-dimensional vector as the feature vector representation of the key point; after obtaining the feature vectors of the two images, the FLANN algorithm is used to match the corresponding feature point pairs between the image frames (F i ,F j ).
3. The visual odometer method based on image depth prediction and monocular geometry according to claim 1, characterized in that: The step (2) is implemented by the following formula: Among them, E is the essential matrix, K is the camera intrinsic parameter which is a known parameter, and the relative posture transformation [R, t] of the camera is obtained by decomposing E.
4. The visual odometer method based on image depth prediction and monocular geometry according to claim 1, characterized in that: The implementation process of step (3) is as follows: Given the predicted depth D t and the camera pose matrix T t+1→t , reconstruct the image I t+1→t : I t+1→t =w(I t+1 ,KT t+1→t K -1 xD t [x]) Where w(·) is a differentiable image warping function, and x represents the pixel value of a point in the image; Using the generated I t+1→t and reference image I t , construct the following objective function: on(I t+1→t ,I t )=αSSIM(I t+1→t ,I t )+(1-α)||I t+1→t them t ||1 Among them, SSIM is the structural similarity index, and α is the weight for balancing SSIM loss and L1 loss; For reference view I t , according to its neighboring view I t-1 ,I t+1 Reconstruct image I t+1→t ,I t-1→t ; Only the smallest pair of reference pixels and synthesized pixels in the view are calculated for the photometric error: L p =min(pe(I t ,IN t-1→t ),pe(I t ,IN t+1→t )) And introduce the edge-aware depth smoothing term L s : in, and Calculate the depth map D separately t The gradient magnitude in the horizontal and vertical directions makes the depth values of adjacent pixels close; and It is a weight term based on the gradient of the current view image. When the image gradient is large in the edge area, the weight term is small, allowing the depth map to be discontinuous. In the flat area with small image gradient, the weight term is large, which makes the depth map smooth. The final loss function is: L=L p +λL s PyTorch is used to implement and train the monocular depth prediction model.
5. A visual odometer method based on image depth prediction and monocular geometry according to claim 1, characterized in that , the implementation process of step (4) is as follows: For two given consecutive image frames I i and I j The corresponding feature point pairs (F i ,F j ) After normalization, we get x i and x j , reconstruct the 3D point cloud X corresponding to the second view through triangulation j : Where e3 is the vector [0,0,1] T ; X j Projecting back to the image plane to get depth information based on triangulation Then use the monocular depth prediction model to estimate the image I j The depth information D j , and then the depth information D j Apply flyout mask M d Get the processed depth data Search and If the number of depth information pairs is greater than a given threshold, the depth ratio is calculated. The RANSAC algorithm is introduced to perform robust fitting of noisy data: |r i -s|≤v1 Among them, ∈1 is the residual threshold and s is the scale factor.
6. A visual odometer method based on image depth prediction and monocular geometry according to claim 1, characterized in that , the implementation process of step (5) is as follows: Use the monocular depth prediction model to estimate the current view I i The depth information D i , then D i Apply flyout mask M d , get the processed depth data Finally, using the camera internal parameters and Calculate the view I by back-projection i The corresponding 3D point cloud coordinates X i ; From all N pairs of correspondences between 3D space points and 2D pixels, use RANSAC to randomly sample the minimum internal point set and calculate the initial solution R0,t0 of the pose: Among them, ρ is the robust kernel function, F j Reference view I j Corresponding feature points; π is the projection function; starting from the initial solution R0, t0, the local nonlinear optimization method is used to optimize the pose solution {R * ,t * }: According to the optimized pose solution, the reprojection errors of all N pairs of points are calculated to determine the internal point set: I={i∣||F j -π(R * ,t * ,X i )||<∈2} Among them, ∈2 is the inlier threshold; repeat the above process until the maximum number of iterations is reached or the number of inliers no longer increases, thus obtaining the optimal solution [R, t].
7. A visual odometer system based on image depth prediction and monocular geometry using the method according to any one of claims 1 to 6, characterized in that: include: Feature detection and matching module, used to detect key points of input images and match corresponding feature points between consecutive image frames; A 2D attitude solver, used for estimating a 2D attitude transformation of the camera based on the correspondence relationship between the feature point pairs; Monocular depth prediction, used to predict a dense depth map for each input image frame; A scale factor correction module, used to correct the scale factor of the 2D posture transformation using the depth information output by the depth prediction network; A 3D attitude solver is used to directly solve the 3D attitude of the camera based on the corresponding relationship between the 3D coordinates of the feature point pairs and the 2D pixel coordinates when the scale factor correction module cannot operate.
Citation Information
Patent Citations
A monocular vision odometer method adopting deep learning and mixed pose estimation
CN111899280A
Pipeline change detection method based on deep learning and unmanned aerial vehicle images
CN111967337A
RGB-D visual SLAM method based on dot-line features
CN112381890A
Monocular vision odometer method fusing deep learning and geometric reasoning
CN112906766A
Design method of monocular vision odometer based on semi-direct method
CN114494150A
Cited By
Monocular vision odometer method and system based on bird's-eye view representation and differentiable weighted Procrustes solver
CN119810198A
Monocular visual odometer positioning method based on end-to-end deep learning
CN120259619A
Robot track processing method and device
CN121033150A
