Inertial / multi-dimensional vision joint positioning method

Through the inertial/multi-dimensional vision joint positioning method, combined with the matching of point features and line features, a visual point-line-inertia joint optimization model is constructed, which solves the problem of limited satellite positioning in complex urban environments and low positioning accuracy in weak texture environments, and achieves High-precision and robust autonomous navigation.

CN117109568BActive Publication Date: 2024-10-15BEIJING AUTOMATION CONTROL EQUIP INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311075535.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-24
Publication Date
2024-10-15
Estimated Expiration
2043-08-24

AI Technical Summary

Technical Problem

In complex urban environments, traditional satellite-based positioning technology is limited. Especially in weak texture environments, point feature matching for visual navigation is difficult to achieve high-precision positioning.

Method used

Using the inertia/multi-dimensional vision joint positioning method, by extracting point features and line features, construct a minimum reprojection model, combined with inertial pre-integration calculation, construct a visual point line-inertia joint optimization model, perform Jacobian matrix calculation and status update, update Camera pose and 3D map point coordinates.

Benefits of technology

It improves the accuracy of autonomous navigation in weak texture scenes, solves the problem of sparse point features that are difficult to locate, and maintains navigation and positioning under fast motion, improving the robustness in urban scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117109568B_ABST
    Figure CN117109568B_ABST
Patent Text Reader

Abstract

The present invention provides an inertial / multi-dimensional vision joint positioning method, which includes: extracting point features and completing point feature matching; extracting line features and completing line feature matching; constructing a minimum reprojection model, and obtaining the camera pose according to the matching of the point features and line features; performing inertial pre-integration calculation, and constructing a visual point-line-inertial joint optimization model; completing the Jacobian matrix calculation and state update of the visual point-line-inertial joint optimization model, and updating the camera pose and three-dimensional map point coordinates. The technical solution can maintain navigation positioning in a visual loss scene, and further improves the robustness of autonomous navigation in urban scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of inertial / vision navigation, and relates to an inertial / multi-dimensional vision joint positioning method, in particular to an inertial / multi-dimensional vision joint positioning method for urban scenes. Background Art

[0002] With the development of intelligent science and technology, autonomous navigation technology for unmanned equipment has gradually become a hot research direction in the field of navigation. Traditional methods rely on satellites to obtain real-time positions to complete positioning. However, in typical urban complex environments such as buildings, alleys, and indoors, satellite denials occur frequently, and traditional satellite-based positioning technology is subject to many restrictions, and GPS equipment may even fail to work properly.

[0003] With the rapid development of visual sensor technology, computer technology and artificial intelligence technology, computer vision-based recognition and positioning technology has become a new navigation method, and visual navigation has begun to occupy a place in the field of autonomous navigation. Visual sensors have the characteristics of concealment, lightness, low power consumption and low price, so using visual sensors for navigation has great advantages.

[0004] Visual navigation can often achieve good tracking results and high positioning accuracy in areas with rich textures. However, point feature-based methods are difficult to extract enough feature points in weak texture environments or feature points are unevenly distributed, which greatly reduces the tracking and positioning accuracy. Therefore, it is extremely urgent to carry out research on high-precision and high-robust navigation and positioning technology in ground environments. Summary of the invention

[0005] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.

[0006] To this end, the present invention provides an inertial / multi-dimensional vision joint positioning method.

[0007] The technical solution of the present invention is as follows:

[0008] According to one aspect, an inertial / multi-dimensional vision joint positioning method is provided, the joint positioning method comprising:

[0009] Extract point features and complete point feature matching;

[0010] Extract line features and complete line feature matching;

[0011] Constructing a minimization reprojection model, and obtaining the camera pose according to the matching of the point features and the line features;

[0012] Perform inertia pre-integration calculation and construct a visual point-line-inertia joint optimization model;

[0013] Complete the Jacobian matrix calculation and state update of the visual point-line-inertial joint optimization model, and update the camera pose and 3D map point coordinates.

[0014] Furthermore, a parameter-optimized LSD line feature extraction method is used to extract line features, wherein in the LSD line feature extraction method, s=0.5, d=0.6 are designed, wherein s is a scale parameter used to scale each layer of the pyramid image, and d is a minimum density threshold representing the minimum number of points in the region growing fitting rectangular box.

[0015] Furthermore, the LSD line feature extraction method also includes:

[0016] Set the minimum line length threshold Where W I and H I Respectively represent the width and height of the image, η is the scale parameter;

[0017] The design detects that straight line segments are filtered when their length is below the threshold.

[0018] Furthermore, the extracted line features are processed as follows:

[0019] If adjacent straight line segments are on the same straight line, that is, if S1(l1,l2)·S2(l1,l2)≥1 is satisfied, then the adjacent straight line segments are merged;

[0020]

[0021] Among them, S2(l1,l2) represents the distance similarity, S1(l1,l2) represents the direction consistency, ∠(l1,l2) represents the angle difference of the straight line segment, and d max (l1,l2) represents the maximum distance from the endpoint of a straight line segment to the straight line where another straight line segment is located, σ a and σ p is the standard deviation of the setting.

[0022] Furthermore, the extracted feature points are screened as follows:

[0023] The rectangular area of ​​pixels formed by the endpoints of the line segments is judged, and if there are feature points located on the feature lines, the redundant feature points are removed.

[0024] Furthermore, the following method is used for line feature matching:

[0025] Based on the extracted line features, an improved line feature matching method is used to complete feature matching based on geometric constraint-assisted descriptor matching, and false matches are eliminated, including:

[0026] Initially establish a line matching set;

[0027] The best matching line segment is selected by using the bidirectional nearest neighbor combined with the ratio test;

[0028] Based on the selected optimal matching line segment, the false matches are further eliminated by measuring the support of other line matches for the corresponding map line of this line feature;

[0029] Furthermore, the best matching line segment is selected by using the bidirectional nearest neighbor combined with the ratio test, which specifically includes:

[0030] 1) The mth detected straight line segment of the i-th key frame is recorded as calculate The nearest neighbor line segment feature on the jth key frame and suboptimal nearest neighbor line segment features

[0031] 2) Perform a ratio test to calculate the distance between the two line segment feature descriptors and determine whether there is a large difference. If the difference is large, Denoted as the preferred matching segment, where ρ is the ratio threshold and d represents the distance between two feature descriptors;

[0032] 3) Perform optimal distance screening on the preferred matching line segments obtained in step 2) to determine whether they meet D max is the upper limit of the feature distance. If it is satisfied, Make it The best matching line segment of ;

[0033] 4) Filter out all the optimal line segment matching pairs according to steps 1) to 3).

[0034] Furthermore, the optimal matching line segment selected is further eliminated by measuring the support of other line matches for the map line corresponding to the line feature, specifically including:

[0035] For any selected optimal line matching pair After triangulation, the map lines are recorded as

[0036] Assume there is line matching Will Project to the kth key frame to get the projected straight line segment And measure the projected straight line segment and If the similarity of When right Provides support; wherein, function S1() represents angle similarity, and function S2() represents position similarity; is the kth key frame The best matching line segment of ;

[0037] A design line matching pair is considered a correct match only if it has at least 2 votes in support within 5 key frames, otherwise it is considered a wrong match and the corresponding matching pair and map line are deleted.

[0038] Furthermore, the functions S1() and S2() are designed in the following manner:

[0039] Assume two straight line segments l1 and l2, where the two straight line segments satisfy:

[0040]

[0041] Among them, ∠(l1,l2) represents the angle difference of the straight line segment, d max (l1,l2) represents the maximum distance from the endpoint of a straight line segment to the straight line where another straight line segment is located, σ a and σ p is the standard deviation of the setting.

[0042] Furthermore, the constructing of the minimizing reprojection model and obtaining the camera pose according to the matching of the point features and the line features specifically includes:

[0043] Construct a minimization reprojection error model of feature points;

[0044] Minimizing reprojection error model for construction line features;

[0045] By combining the minimized reprojection errors of all feature points and line features on any i-th image frame, the pose of the camera in the i-th frame is obtained iteratively to achieve visual tracking.

[0046] Furthermore, the pose of the camera at the i-th frame is obtained by iteratively solving the following formula:

[0047]

[0048] in, represents the minimized reprojection error of the feature point of the i-th key frame, j represents the map point ID, the image corresponds to a total of m map points, X j is the coordinate of the 3D map point in the world coordinate system, p ij represents the X on the i-th key image frame j The corresponding pixel observation point, K represents the camera intrinsic parameter matrix, represents the camera pose in the i-th frame, r l Represents the minimized reprojection of line features, k represents the kth pair of line matches, and the frame image has at most n pairs of line matches.

[0049] Furthermore, the inertia pre-integration calculation is performed to construct a visual point-line-inertia joint optimization model, including:

[0050] Solve the IMU pre-integration increment according to the motion measurement state of the inertial sensor, and construct the inertial residual according to the IMU pre-integration increment and the IMU rotation, velocity and translation;

[0051] A visual point-line-inertia joint optimization model is constructed according to the inertia residual, the minimized reprojection error model of the feature points and the minimized reprojection error model of the line features.

[0052] Furthermore, a visual point-line-inertia joint optimization model is constructed according to the inertia residual, the minimization reprojection error model of the feature points and the minimization reprojection error model of the line features in the following manner:

[0053] Given n key frames, their state set is Represents the pose estimation of the nth key frame, the set of 3D points they observe and map line collection The visual point-line-inertia joint optimization model constructed in this way is as follows:

[0054]

[0055] Among them, i represents the i-th key frame, the inertial residual includes k frames in total, Σ represents the covariance matrix, represents the set of camera frames that can observe map points, represents the set of camera frames that can observe the map line, ρ Hub Represents the robust kernel function. b is the inertia residual, is the minimized reprojection error of the feature points; r l is the minimized reprojection error of the line features.

[0056] Furthermore, the Jacobian matrix of the visual point-line-inertial joint optimization model includes the Jacobian matrix corresponding to the visual point feature, the Jacobian matrix corresponding to the IMU residual part, and the Jacobian matrix corresponding to the visual line feature, wherein the Jacobian matrix corresponding to the visual line feature is as follows:

[0057]

[0058] in,

[0059]

[0060] Represents the pose transformation matrix from the b system to the camera coordinate system in the i-th key frame; Represents the pose transformation matrix from the world coordinate system to the b system in the i-th key frame, including R bw is the rotation matrix, t bw is the translation vector, Represents the pose transformation matrix from the b system to the world coordinate system in the i-th key frame, including R wb is the rotation matrix, t wb is the translation vector, a 3D straight line in the world coordinate system where d w yes The direction vector, n w yes The normal vector to the plane determined by the coordinate origin.

[0061] According to another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0062] The above technical solution achieves matching positioning by comprehensively extracting point and line features. On the one hand, it increases line features to solve the problem of too few point features making it difficult to locate, and adopts a specific method to extract and match line features, greatly improving the accuracy. On the other hand, it increases observation constraints and establishes a projection error model based on point-line matching, which improves the accuracy of autonomous navigation in weak texture scenes and solves the problem of sparse point features in weak texture scenes making it difficult to locate, providing the necessary technical foundation for realizing intelligent navigation. At the same time, the solution of the present invention also constructs a visual point-line-inertial joint optimization model to address the problem of easy tracking loss in fast motion, completes the derivation of the Jacobian matrix, forms complementary advantages of sensors, and can maintain navigation positioning in visual loss scenes, further improving the robustness of autonomous navigation in urban scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The included drawings are used to provide a further understanding of the embodiments of the present invention, which constitute a part of the specification, are used to illustrate the embodiments of the present invention, and together with the text description, explain the principles of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0064] Figure 1 It is a schematic diagram of the method flow of an embodiment of the present invention. DETAILED DESCRIPTION

[0065] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0066] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0067] Unless otherwise specifically stated, the relative arrangement of the parts and steps described in these embodiments, numerical expressions and numerical values ​​do not limit the scope of the present invention. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be regarded as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0068] like Figure 1 As shown, in one embodiment of the present invention, an inertial / multi-dimensional vision joint positioning method is provided, and the joint positioning method includes:

[0069] Step 1: Extract point features and complete point feature matching;

[0070] Step 2: Extract line features and complete line feature matching;

[0071] Step 3: construct a minimum reprojection model, and obtain the camera pose according to the matching of the point features and the line features;

[0072] Step 4: Perform inertia pre-integration calculation and construct a visual point-line-inertia joint optimization model;

[0073] Step 5: Complete the Jacobian matrix calculation and state update of the visual point-line-inertial joint optimization model, and update the camera pose and 3D map point coordinates.

[0074] In the embodiment of the present invention, an ORB-based feature extraction method can be used to extract point features, and a descriptor-based matching method can be used to complete point feature matching. When the ORB-based feature extraction method is used to extract point features, the improved Fast corner points are used as feature points, and the feature points are rotationally invariant.

[0075] In the embodiment of the present invention, a descriptor-based matching method may be used to complete point feature matching, specifically including:

[0076] For each feature point, an improved BRIEF descriptor is used, and the uniform speed model motion estimation in ORB-SLAM2 is used to define the projection area of ​​the previous frame image on the current frame image;

[0077] Then, the Hamming distances of the feature point pair descriptors are compared in the projection area, and the feature point pair with the smallest distance is selected as the matching point pair;

[0078] Extract all matching point pairs of the previous and next frame images to complete point feature matching.

[0079] It can be seen that the embodiment of the present invention realizes matching positioning by comprehensively extracting point and line features. On the one hand, it increases line features to solve the problem of too few point features making it difficult to locate; on the other hand, it increases observation constraints and establishes a projection error model based on point-line matching, thereby improving the accuracy of autonomous navigation in weak texture scenes and solving the problem of sparse point features in weak texture scenes making it difficult to locate, thus providing the necessary technical foundation for realizing intelligent navigation. At the same time, the embodiment of the present invention also constructs a visual point-line-inertial joint optimization model to address the problem of easy tracking loss in fast motion states, completes the derivation of the Jacobian matrix, forms complementary advantages of sensors, and can maintain navigation positioning in visual loss scenes, further improving the robustness of autonomous navigation in urban scenes.

[0080] In the above embodiment, in order to further improve the positioning accuracy, a parameter-optimized LSD line feature extraction method is used to extract line features, wherein in the LSD line feature extraction method, s=0.5, d=0.6 are designed, wherein s is a scale parameter used to scale each layer of the pyramid image, and d is the minimum density threshold, representing the minimum number of points in the region growing fitting rectangular box.

[0081] Preferably, the LSD line feature extraction method further comprises:

[0082] Set the minimum line length threshold Where W I and H IRespectively represent the width and height of the image, η is the scale parameter;

[0083] The design detects that straight line segments are filtered when their length is below the threshold.

[0084] That is, the embodiment of the present invention adopts an improved LSD line feature extraction method to extract line features. Specifically, the LSD method based on OpenCV is currently the most common method for realizing line segment feature extraction, but the line detection of this method is time-consuming, which seriously affects the real-time performance of the navigation and positioning system. This embodiment refers to the idea of ​​the PL-VINS system, and improves the line segment extraction method by screening line segment length and time-consuming parameters, thereby improving the real-time performance of the navigation system. Among them, in the process of tracking large ground scene images, there are line segment features of different lengths. The pose estimation based on line features should focus on longer straight line segments because they are easy to match and more likely to appear in subsequent frames. This embodiment sets the shortest line length threshold Where W I and H I Respectively represent the width and height of the image, η is the ratio parameter, set η = 0.125, and the detected straight line segment is filtered when its length is lower than this threshold. By filtering short straight lines, the line detection efficiency is greatly improved.

[0085] In addition, the LSD method detects regions with similar gradients through region growing, and each region will be fitted by a rectangle. The embodiment of the present invention determines that the key parameters affecting the time consumption of line detection are s and d. Setting s = 0.5 and d = 0.6 can ensure that the detection accuracy is maintained while minimizing the time consumption.

[0086] In the above embodiment, in order to further reduce the computational complexity of feature matching and improve the real-time performance of the algorithm, the method further includes performing the following processing on the extracted line features:

[0087] If adjacent straight line segments are on the same straight line, that is, if S1(l1,l2)·S2(l1,l2)≥1 is satisfied, then the adjacent straight line segments are merged;

[0088]

[0089] Among them, S2(l1,l2) represents the distance similarity, S1(l1,l2) represents the direction consistency, ∠(l1,l2) represents the angle difference of the straight line segment, and d max (l1,l2) represents the maximum distance from the endpoint of a straight line segment to the straight line where another straight line segment is located, σ a and σ p is the standard deviation of the setting.

[0090] That is, the embodiment of the present invention further performs feature screening and elimination of redundant features on the extracted line features. If adjacent straight line segments are on the same straight line, that is, satisfying S1(l1,l2)·S2(l1,l2)≥1, the line segments will be merged to further reduce invalid calculations and improve the accuracy of feature matching.

[0091] Furthermore, in order to further eliminate redundant feature points and improve the efficiency of feature matching, the method further includes screening the extracted feature points as follows:

[0092] The rectangular area of ​​pixels formed by the endpoints of the line segments is judged, and if there are feature points located on the feature lines, the redundant feature points are removed.

[0093] In the above embodiment, in order to further improve the accuracy of feature matching and reduce mismatching, a bidirectional nearest neighbor combined ratio test is used to select the best matching line segment, specifically including:

[0094] 1) The mth detected straight line segment of the i-th key frame is recorded as calculate The nearest neighbor line segment feature on the jth key frame and suboptimal nearest neighbor line segment features

[0095] 2) Perform a ratio test to calculate the distance between the two line segment feature descriptors and determine whether there is a large difference. If the difference is large, Denoted as the preferred matching segment, where ρ is the ratio threshold and d represents the distance between two feature descriptors;

[0096] 3) Perform optimal distance screening on the preferred matching line segments obtained in step 2) to determine whether they meet D max is the upper limit of the feature distance. If it is satisfied, Make it The best matching line segment of ;

[0097] 4) Filter out all the optimal line segment matching pairs according to steps 1) to 3).

[0098] That is, in order to further improve the accuracy of feature matching and reduce mismatching, the embodiment of the present invention proposes an improved line feature matching method, which combines LBD feature descriptors and projection similarity to perform line segment matching. First, a line matching set is initially established using LBD feature description. A bidirectional nearest neighbor combined with a ratio test is used, and a sufficiently large difference is required between the feature distance of the optimal match and the feature distance of the next nearest neighbor match.

[0099] Preferably, Dmax =25,ρ=0.6.

[0100] Furthermore, the optimal matching line segment selected is further eliminated by measuring the support of other line matches for the map line corresponding to the line feature, specifically including:

[0101] For any selected optimal line matching pair After triangulation, the map lines are recorded as

[0102] Assume there is line matching Will Project to the kth key frame to get the projected straight line segment And measure the projected straight line segment and If the similarity of When right Provides support; wherein, function S1() represents angle similarity, and function S2() represents position similarity; is the kth key frame The best matching line segment of ;

[0103] A design line matching pair is considered a correct match only if it has at least 2 votes in support within 5 key frames, otherwise it is considered a wrong match and the corresponding matching pair and map line are deleted.

[0104] Among them, the function S1() and the function S2() are designed in the following way:

[0105] Assume two straight line segments l1 and l2, where the two straight line segments satisfy:

[0106]

[0107] Where ∠(l1,l2) represents the angle difference of the straight line segments, d max (l1,l2) represents the maximum distance from the endpoint of a straight line segment to the straight line where another straight line segment is located, σ a and σ p is the standard deviation of the setting.

[0108] Specifically, to further eliminate false matches, the geometric constraints between line matches are considered, and the projection similarity of line features is used to test the correctness of line matches. False matches are further eliminated by measuring the support of other line matches for the map line corresponding to this line feature. Assuming two straight line segments l1 and l2, this embodiment uses angle similarity S1 and position similarity S2 to measure the similarity of the two straight line segments:

[0109]

[0110] Where ∠(l1,l2) represents the angle difference of the straight line segments, d max (l1,l2) represents the maximum distance from the endpoint of a straight line segment to the straight line where another straight line segment is located, σ a and σ p is the standard deviation of the setting.

[0111] Then for the line matching pair After triangulation, the map lines are recorded as On the other hand, assuming there is a line matching Therefore, Project to the kth keyframe and measure the projected straight line segment and If the similarity is satisfied When right Support is provided. A line match is considered a correct match only if it has at least 2 votes within 5 keyframes. Otherwise, it is considered a wrong match and the corresponding match pair and map line are deleted.

[0112] It can be seen that the embodiment of the present invention proposes an improved line feature matching method to address the problem of low positioning accuracy in complex urban scenes, which can eliminate false matches in a large range of scenes and obtain more accurate line segment matching pairs.

[0113] In the above embodiment, the construction of the minimization reprojection model and the acquisition of the camera pose according to the matching of the point features and the line features specifically include:

[0114] Construct a minimization reprojection error model of feature points;

[0115] Minimizing reprojection error model for construction line features;

[0116] By combining the minimized reprojection errors of all feature points and line features on any i-th image frame, the pose of the camera in the i-th frame is obtained iteratively to achieve visual tracking.

[0117] In the embodiment of the present invention, the position and posture of the camera at the i-th frame is obtained by iteratively solving the following formula:

[0118]

[0119] in, represents the minimized reprojection error of the feature point of the i-th key frame, j represents the map point ID, the image corresponds to a total of m map points, X j is the coordinate of the 3D map point in the world coordinate system, p ij represents the X on the i-th key image frame j The corresponding pixel observation point, K represents the camera intrinsic parameter matrix, represents the camera pose in the i-th frame, r l Represents the minimized reprojection of line features, k represents the kth pair of line matches, and the frame image has at most n pairs of line matches.

[0120] Specifically, in order to construct a minimal reprojection model, the camera pose is obtained based on the matching of point features and line features. The specific steps are as follows:

[0121] According to the results of point feature and line feature matching, a multi-dimensional visual reprojection error minimization model is constructed. For visual navigation, there are mainly three coordinate systems involved: image coordinate system, camera coordinate system and world coordinate system. This paper defines the camera coordinate system as c system and the world coordinate system as w system. Inertial sensors mainly involve inertial coordinate system (body) represented as b system.

[0122] (1) Constructing a minimal reprojection model of feature points

[0123] By projecting the 3D map points in the world coordinate system to the image coordinate system, an error model between the observed pixel points and the estimated projected pixel points can be established.

[0124] Through the camera intrinsic parameters, two pixel points can be converted from the image coordinate system to the camera coordinate system. The pixel point in the image coordinate system is defined as p, which can be expressed as p = (u, v); the feature point in the c coordinate system is defined as P, which can be expressed as P = (x, y, z). The coordinate system conversion formula is as follows:

[0125]

[0126] K represents the camera intrinsic parameter matrix, where f is the camera focal length, including f x and f y , c represents the camera plane center point offset, including c x and c y .

[0127] The conversion between the camera coordinate system and the world coordinate system involves the camera's navigation pose matrix T, which includes two parts: rotation matrix and translation. The coordinate in the world coordinate system is represented as X, so the feature point in the c coordinate system can be represented as: P = TX.

[0128] The reprojection error based on visual point features is to solve the difference between the observed value and the estimated value in the image coordinate system. For the i-th key frame, minimize the reprojection error It can be expressed as the following formula:

[0129]

[0130] Where j represents the map point ID, X j is the coordinate of the 3D map point in the world coordinate system, p ijrepresents the X on the i-th key image frame j The corresponding pixel observation point, the pose matrix is ​​expressed as Represents the transformation from the world coordinate system corresponding to the i-th key frame to the camera coordinate system, R cw is the rotation matrix, t cw is the translation vector and the depth is π.

[0131] (2) Minimization reprojection model of construction line features

[0132] In order to use line features for tracking and mapping, it is necessary to define the observation model and reprojection error of line features. For the pinhole camera model, its intrinsic parameter matrix is For the i-th key frame, the Plücker coordinates are used, so the 3D straight line under the camera system is where d c yes The direction vector, n c yes The normal vector to the plane determined by the coordinate origin.

[0133] The line segment in the world coordinate system The transformation can be expressed as:

[0134]

[0135] The 2D line l projected onto the image can be expressed as:

[0136]

[0137] in represents the intrinsic parameter matrix for line projection. As can be seen from the above formula, the coordinates of the projected line l are only related to the line The normal vector n to the epipolar plane determined by the camera optical center c Geometrically, any straight line in the polar plane, regardless of its direction, will be projected onto the same straight line segment.

[0138] Given a straight line The projection l, assuming that the endpoints of the detected straight line segment are s = (u s ,v s ) and e=(u e ,v e ),straight line The reprojection error is defined as the distance from the detection endpoint to the projected line segment l:

[0139]

[0140] By combining the minimized reprojection error of all feature points and line features on the i-th image frame, the formula is as follows:

[0141]

[0142] Obtain the camera's position in the i-th frame through iterative solution Implement visual tracking.

[0143] In the above embodiment, the inertia pre-integration calculation is performed to construct a visual point-line-inertia joint optimization model, including:

[0144] Solve the IMU pre-integration increment according to the motion measurement state of the inertial sensor, and construct the inertial residual according to the IMU pre-integration increment and the IMU rotation, velocity and translation;

[0145] A visual point-line-inertia joint optimization model is constructed according to the inertia residual, the minimized reprojection error model of the feature points and the minimized reprojection error model of the line features.

[0146] That is, in order to solve the problem of easy tracking loss in fast motion state, the embodiment of the present invention constructs a visual point-line-inertia joint optimization model.

[0147] In the embodiment of the present invention, the inertia residual can be constructed in the following manner:

[0148] For pure inertial motion, from time i to time j, the rotation, velocity and translation satisfy the following equations:

[0149] Among them, R wbi Indicates the rotation from the body coordinate system to the world coordinate system at time i, R wbj Indicates the rotation from the body coordinate system to the world coordinate system at time j. is the angular velocity measured by the sensor, is the measured acceleration, g is the acceleration due to gravity, and are the zero position of the gyroscope and the zero position of the accelerometer at time k, respectively, and v i 、v j and v k are the initial speed values ​​at time i, time j and time k respectively, Δt is the time from time i to time k, Δt ij is the time from time i to time j, R wbk represents the rotation from the body coordinate system to the world coordinate system at time k, p i is the translation at time i, p j is the translation at time j.

[0150] By extracting the IMU integral accumulation from time i to time j, the pre-integration increment of the IMU motion measurement state can be obtained:

[0151]

[0152] in, is the pre-integrated increment of the rotation amount between time j and time i, is the pre-integrated increment of the velocity at time j compared with time i, is the pre-integrated increment of the translation between time j and time i, is the zero position of the gyroscope at time i, is the zero position of the accelerometer at time i, ΔR bibk is the pre-integrated increment of the rotation between time k and time i, Δv ik It is the pre-integrated increment of the velocity at time k compared with time i.

[0153] Inertia residual r b The definition consists of three parts, among which: is the rotation residual from time i to time j, is the velocity residual from time i to time j, is the translation residual from time i to time j. According to the above pre-integrated increment, rotation, velocity and translation, the inertia residual is as follows:

[0154]

[0155] In the above embodiment, the visual point-line-inertia joint optimization model is constructed according to the inertia residual, the minimization reprojection error model of the feature points and the minimization reprojection error model of the line features in the following manner:

[0156] Given n key frames, their state set is Represents the pose estimation of the nth key frame, the set of 3D points they observe and map line collection The visual point-line-inertia joint optimization model constructed in this way is as follows:

[0157]

[0158] Among them, i represents the i-th key frame, the inertial residual includes k frames in total, Σ represents the covariance matrix, represents the set of camera frames that can observe map points, represents the set of camera frames that can observe the map line, ρ Hub Represents the robust kernel function. b is the inertia residual, is the minimized reprojection error of the feature points; r l is the minimized reprojection error of the line features.

[0159] In addition, those skilled in the art know that the Jacobian matrix of the visual point-line-inertial joint optimization model should include the Jacobian matrix corresponding to the visual point features, the Jacobian matrix corresponding to the IMU residual part, and the Jacobian matrix corresponding to the visual line features. In order to accurately obtain the Jacobian matrix of the visual point-line-inertial joint optimization model, the Jacobian corresponding to the visual point features and the IMU residual part can be constructed with reference to the derivation in the algorithm ORB-SLAM3. The embodiment of the present invention is not described in detail here. In order to accurately obtain the Jacobian of the line segment error part, the specific method is as follows:

[0160] Map line reprojection error r l For pose ∈ i The Jacobian matrix of is derived according to the chain rule as follows:

[0161]

[0162]

[0163]

[0164] in They are the Jacobian of the line segment reprojection error to the projected straight line segment, and the Jacobian of the projected straight line segment to the camera system map line. is the Jacobian of the camera pose relative to the camera's map line. have

[0165]

[0166] in, Represents the pose transformation matrix from the b system to the camera coordinate system in the i-th key frame; Represents the pose transformation matrix from the world coordinate system to the b system in the i-th key frame, including R bw is the rotation matrix, t bw is the translation vector, Represents the pose transformation matrix from the b system to the world coordinate system in the i-th key frame, including R wb is the rotation matrix, t wb is the translation vector, a 3D straight line in the world coordinate system where d w yes The direction vector, n w yes The normal vector to the plane determined by the coordinate origin.

[0167] Visual inertial mode, the pose adopts (R wb ,-t bw ). Using R wb The right perturbation of , so Jacobi The derivation is as follows:

[0168]

[0169] In addition, after solving the Jacobian matrix of each error model, the nonlinear optimization framework g2o is used to iterate the Levenberg-Marquardt method until the error function value is less than the set value, and the optimized pose estimation, scene map points and map lines are obtained. Finally, the state of the corresponding frame is updated according to the solution results.

[0170] According to another embodiment, a computer device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned visual tracking method when executing the computer program.

[0171] In summary, in order to improve the reliability and stability of navigation results in ground environments, the embodiments of the present invention propose an inertial / multi-dimensional vision joint positioning method for urban scenes (inertial sensors are not affected by motion states and environment, and can provide stable motion observation information when visual tracking is lost, while visual sensors can suppress the shortcomings of long-term divergence of inertial sensors, forming complementary advantages). On the one hand, the problem of sparse features and difficult positioning in weak texture scenes is alleviated by comprehensive extraction of point and line features for joint matching and positioning; on the other hand, for scenes with drastic changes in lighting and rapid movement, the state errors of inertia and vision are deeply coupled, thereby further improving the navigation positioning accuracy and robustness in complex urban scenes.

[0172] Features described and / or illustrated above for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with or used in place of features in other embodiments.

[0173] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, integers, steps or components, but does not exclude the presence or addition of one or more other features, integers, steps, components or combinations thereof.

[0174] The above method of the present invention can be implemented by hardware, or by hardware combined with software. The present invention relates to such a computer-readable program, which, when executed by a logic component, enables the logic component to implement the above-mentioned device or component, or enables the logic component to implement the above-mentioned various methods or steps. The present invention also relates to a storage medium for storing the above program, such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory, etc.

[0175] The many features and advantages of these embodiments are apparent from this detailed description, and thus the appended claims are intended to cover all such features and advantages of these embodiments that fall within their true spirit and scope. Furthermore, since numerous modifications and changes will readily occur to those skilled in the art, it is not intended that the embodiments of the invention be limited to the exact construction and operation illustrated and described, but rather all suitable modifications and equivalents falling within the scope thereof are intended to be covered.

[0176] Parts of the present invention that are not described in detail are well known to those skilled in the art.

Claims

1. An inertial / multi-dimensional vision joint positioning method, It is characterized in that The joint positioning method comprises: Extract point features and complete point feature matching; Extract line features and complete line feature matching; Constructing a minimization reprojection model, and obtaining the camera pose according to the matching of the point features and the line features; Perform inertia pre-integration calculation and construct a visual point-line-inertia joint optimization model; Complete the Jacobian matrix calculation and state update of the visual point-line-inertial joint optimization model, and update the camera pose and 3D map point coordinates; The extracted line features are also processed as follows: If adjacent straight line segments are on the same straight line, then S 1 (l 1 ,l 2 )·S 2 (l 1 ,l 2 )≥1, the adjacent straight line segments are merged; Among them, S 2 (l 1 ,l 2 ) represents the distance similarity, S 1 (l 1 ,l 2 ) indicates directional consistency, ∠(l 1 ,l 2 ) represents the angle difference of the straight line segment, d max (l 1 ,l 2 ) represents the maximum distance from the endpoint of a straight line segment to the straight line where another straight line segment is located, σ a and σ p is the standard deviation of the setting.

2. The inertial / multi-dimensional vision joint positioning method according to claim 1, It is characterized in that The line features are extracted by using a parameter-optimized LSD line feature extraction method, wherein in the LSD line feature extraction method, s=0.5, d=0.6 are designed, wherein s is a scale parameter used to scale each layer of the pyramid image, and d is a minimum density threshold representing the minimum number of points in the region growing fitting rectangle.

3. The inertial / multi-dimensional vision joint positioning method according to claim 2, It is characterized in that The LSD line feature extraction method also includes: Set the minimum line length threshold Where W I and H I Respectively represent the width and height of the image, η is the scale parameter; The design detects that straight line segments are filtered when their length is below the threshold.

4. The inertial / multi-dimensional vision joint positioning method according to claim 1, It is characterized in that The extracted feature points are also screened as follows: The rectangular area of ​​pixels formed by the endpoints of the line segments is judged, and if there are feature points located on the feature lines, the redundant feature points are removed.

5. The inertial / multi-dimensional vision joint positioning method according to claim 1, It is characterized in that The following method is used for line feature matching: Based on the extracted line features, an improved line feature matching method is used to complete feature matching based on geometric constraint-assisted descriptor matching, and false matches are eliminated, including: Initially establish a line matching set; The best matching line segment is selected by using the bidirectional nearest neighbor combined with the ratio test; Based on the selected optimal matching line segment, the false matches are further eliminated by measuring the support of other line matches for the map line corresponding to this line feature.

6. The inertial / multi-dimensional vision joint positioning method according to claim 5, It is characterized in that The best matching line segment is selected by combining the bidirectional nearest neighbor and ratio test, including: 1) The mth detected straight line segment of the i-th key frame is recorded as calculate The nearest neighbor line segment feature on the jth key frame and suboptimal nearest neighbor line segment features 2) Perform a ratio test to calculate the distance between the two line segment feature descriptors and determine whether there is a large difference. If the difference is large, Denoted as the preferred matching segment, where ρ is the ratio threshold and d represents the distance between two feature descriptors; 3) Perform optimal distance screening on the preferred matching line segments obtained in step 2) to determine whether they meet D max is the upper limit of the feature distance. If it is satisfied, Make it The best matching line segment of ; 4) Filter out all the optimal line segment matching pairs according to steps 1) to 3).

7. The inertial / multi-dimensional vision joint positioning method according to claim 6, It is characterized in that Based on the selected best matching line segment, by measuring the support of other line matches for the map line corresponding to the line feature, further eliminating the mismatch, specifically including: For any selected optimal line matching pair After triangulation, the map lines are recorded as Assume there is line matching Will Project to the kth key frame to get the projected straight line segment And measure the projected straight line segment and If the similarity of When right Provides support; among them, the function S 1 () represents the angle similarity, function S 2 () represents position similarity; is the kth key frame The best matching line segment of ; A design line matching pair is considered a correct match only if it has at least 2 votes in support within 5 key frames, otherwise it is considered a wrong match and the corresponding matching pair and map line are deleted.

8. The inertial / multi-dimensional vision joint positioning method according to claim 7, It is characterized in that The function S is designed in the following way 1 () and function S 2 (): Assume that two straight line segments l 1 and l 2 , where the two straight line segments satisfy: Among them, ∠(l 1 ,l 2 ) represents the angle difference of the straight line segment, d max (l 1 ,l 2 ) represents the maximum distance from the endpoint of a straight line segment to the straight line where another straight line segment is located, σ a and σ p is the standard deviation of the setting.

9. An inertial / multi-dimensional vision joint positioning method according to any one of claims 5 to 8, It is characterized in that The constructing of the minimization reprojection model and obtaining the camera pose according to the matching of the point features and the line features specifically include: Construct a minimization reprojection error model of feature points; Minimizing reprojection error model for construction line features; By combining the minimized reprojection errors of all feature points and line features on any i-th image frame, the pose of the camera in the i-th frame is obtained iteratively to achieve visual tracking.

10. The inertial / multi-dimensional vision joint positioning method according to claim 9, It is characterized in that The pose of the camera in the i-th frame is obtained by iteratively solving the following formula: in, represents the minimized reprojection error of the feature point of the i-th key frame, j represents the map point ID, the image corresponds to a total of m map points, X j is the coordinate of the 3D map point in the world coordinate system, p ij represents the X on the i-th key image frame j The corresponding pixel observation point, K represents the camera intrinsic parameter matrix, represents the camera's position in the i-th frame, r l Represents the minimized reprojection of line features, k represents the kth pair of line matches, and the frame image has at most n pairs of line matches.

11. The inertial / multi-dimensional vision joint positioning method according to claim 10, It is characterized in that The inertia pre-integration calculation is performed to construct a visual point-line-inertia joint optimization model, including: Solve the IMU pre-integration increment according to the motion measurement state of the inertial sensor, and construct the inertial residual according to the IMU pre-integration increment and the IMU rotation, velocity and translation; A visual point-line-inertia joint optimization model is constructed according to the inertia residual, the minimized reprojection error model of the feature points and the minimized reprojection error model of the line features.

12. The inertial / multi-dimensional vision joint positioning method according to claim 11, It is characterized in that The visual point-line-inertia joint optimization model is constructed according to the inertia residual, the minimization reprojection error model of the feature points and the minimization reprojection error model of the line features in the following manner: Given n key frames, their state set is Represents the pose estimation of the nth key frame, the set of 3D points they observe and map line collection The visual point-line-inertia joint optimization model constructed in this way is as follows: Among them, i represents the i-th key frame, the inertial residual includes k frames in total, Σ represents the covariance matrix, represents the set of camera frames that can observe map points, represents the set of camera frames that can observe the map line, ρ Hub represents the robust kernel function, r b is the inertia residual, is the minimized reprojection error of the feature points; r l is the minimized reprojection error of the line features.

13. The inertial / multi-dimensional vision joint positioning method according to claim 12, It is characterized in that The Jacobian matrix of the visual point-line-inertial joint optimization model includes the Jacobian matrix corresponding to the visual point feature, the Jacobian matrix corresponding to the IMU residual part, and the Jacobian matrix corresponding to the visual line feature, wherein the Jacobian matrix corresponding to the visual line feature is as follows: in, Represents the pose transformation matrix from the b system to the camera coordinate system in the i-th key frame; Represents the pose transformation matrix from the world coordinate system to the b system in the i-th key frame, including R bw is the rotation matrix, t bw is the translation vector, Represents the pose transformation matrix from the b system to the world coordinate system in the i-th key frame, including R wb is the rotation matrix, t wb is the translation vector, a 3D straight line in the world coordinate system where d w yes The direction vector, n w yes The normal vector to the plane determined by the coordinate origin.

14. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, in, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 13 are implemented.