Method for reconstructing consistent 3D scene of farmland based on global pose constraint

By using a global pose constraint method, combined with RTK location data and feature matching, a globally consistent reconstruction method for farmland 3D scenes is constructed, which solves the problem of accumulated errors in incremental reconstruction and achieves high-precision farmland 3D reconstruction.

CN117115334BActive Publication Date: 2026-11-24GUANGDONG POLYTECHNIC NORMAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310590890.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-23
Publication Date
2026-11-24
Estimated Expiration
2043-05-23

AI Technical Summary

Technical Problem

In existing methods for 3D reconstruction of farmland, the incremental reconstruction approach leads to cumulative errors in pose estimation for each frame, resulting in low reconstruction accuracy and an inability to achieve global consistency.

Method used

A global attitude constraint-based approach is adopted. Farmland scene images and their RTK position data are collected by UAVs, and feature extraction and matching are performed to construct a cost function with global consistency constraints. Combined with RTK position data, the 3D reconstruction objective function is optimized to eliminate the cumulative error of attitude estimation.

Benefits of technology

It achieves globally consistent reconstruction of farmland 3D scenes, improves reconstruction accuracy, avoids cumulative errors in pose estimation, and ensures the accuracy of farmland scene maps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117115334B_ABST
    Figure CN117115334B_ABST
Patent Text Reader

Abstract

This invention proposes a method for consistent reconstruction of 3D farmland scenes based on global attitude constraints, belonging to the technical field of 3D scene reconstruction. It involves collecting farmland scene images and their corresponding RTK position data using a UAV, then performing feature extraction and feature point matching to determine the inter-frame constraint relationship between the current frame and multiple neighboring frames. Based on the inter-frame constraint relationship, a cost function for global attitude consistency constraints is constructed and solved to determine the global consistency attitude constraints for all frames, eliminating the cumulative error in each attitude estimation. Finally, based on the global consistency attitude constraints and RTK position data, an incremental 3D consistency reconstruction optimization objective function is constructed and solved to obtain the globally consistent farmland scene image frame positions and attitudes, avoiding farmland scene errors and achieving consistent reconstruction of the farmland 3D scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of three-dimensional scene reconstruction, and more specifically, to a method for consistent reconstruction of three-dimensional farmland scenes based on global pose constraints. Background Technology

[0002] Simultaneous Localization and Mapping (SLAM) technology can help reconstruct the three-dimensional structure of a scene in real time and present information more efficiently and intuitively than traditional methods such as text, images, and videos.

[0003] Visual SLAM technology can be implemented using the feature point method, which involves extracting salient image features from each image, matching feature points in consecutive image frames using invariant feature descriptions, robustly recovering the camera pose and structure using epipolar geometry, and then using associated features to complete visual fusion computation and pose optimization based on minimizing projection error. These extracted salient features can be clustered to describe the entire image for loop closure detection.

[0004] With the development of agricultural research, the demand for mapping and reconstructing farmland scenes is gradually increasing. Three-dimensional reconstruction of farmland scenes plays an important role in studying remote monitoring of crop growth patterns, predicting crop yields, and identifying weeds in fields. Current farmland scene mapping and reconstruction is based on image sequences captured by UAVs, combined with incremental reconstruction using RTK data. Specifically, using visual SLAM technology, the pose of each frame is obtained by constraints from its neighboring image frames: assuming the flight path image whose pose is to be estimated is the current frame, SIFT (scale-invariant feature transform) feature points are extracted from it and its neighboring image frames. Pairwise feature point matching is then performed between the current frame and its neighboring frames to determine the association relationship and construct the constraint relationship between the current frame and its neighboring images. Then, based on the pose of the neighboring frames and the constraint relationship, the pose of the current frame is calculated using the PNP algorithm, and the pose of the current frame is optimized through local constraint relationships. Finally, triangulation is used to reconstruct the three-dimensional farmland scene. In this approach, each current frame is constrained only by a few of its associated neighboring frames. When the neighboring frames constrain all image frames in the current scene, the recovered pose has global consistency, resulting in high accuracy between the reconstructed pose and the 3D farmland scene map. However, in practice, for computational efficiency, smaller neighborhood windows are typically used, such as 4, 8, or at most 12 neighborhoods. This leads to the accumulation of pose errors within the neighborhood window for each frame's pose estimation, further resulting in a large cumulative error between the final pose estimation of the current frame and the reconstructed scene, leading to a significant discrepancy with the actual farmland scene. Summary of the Invention

[0005] To address the issues of large errors and low accuracy in traditional incremental farmland 3D reconstruction methods, this invention proposes a consistent farmland 3D scene reconstruction method based on global attitude constraints. This method eliminates the cumulative errors in attitude estimation for each frame, accurately estimates the pose of flight path image frames, and introduces global consistency attitude constraints to improve the accuracy of farmland scene 3D reconstruction.

[0006] To achieve the above-mentioned technical effects, the technical solution of the present invention is as follows:

[0007] A method for consistent reconstruction of 3D farmland scenes based on global pose constraints includes the following steps:

[0008] S1. Based on the planned flight path, use drones to collect images of farmland scenes and their corresponding RTK location data;

[0009] S2. Extract features from all collected farmland scene images to obtain feature points for all farmland scene images;

[0010] S3. Based on the RTK location data corresponding to each farmland scene image, construct the neighborhood relationship of each farmland scene image to determine the neighborhood images of the current frame farmland scene image;

[0011] S4. Match the feature points of the current frame's farmland scene image with the feature points of all neighboring images to obtain feature matching relationships, and construct inter-frame constraint relationships based on the feature matching relationships;

[0012] S5. Construct and solve the cost function of global attitude consistency constraints based on the inter-frame constraint relationship to determine the global attitude consistency constraints for all frames;

[0013] S6. Based on the global consistency attitude constraint, an incremental three-dimensional consistency reconstruction optimization objective function is constructed and solved to obtain the position and attitude of three-dimensional spatial points in the farmland scene and the frame images of the farmland scene collected by the UAV, thus obtaining the three-dimensional farmland scene.

[0014] According to the above technical solution, the globally consistent 3D farmland scene structure and the position and attitude of each corresponding farmland scene image are restored. Based on the farmland scene images and their corresponding RTK position data collected by UAV, feature extraction and feature point matching are performed to determine the inter-frame constraint relationship between the current frame and multiple neighboring frames. Based on the inter-frame constraint relationship, a cost function for global attitude consistency constraint is constructed and solved to determine the global consistency attitude constraint of all frames, eliminating the cumulative error in each attitude estimation. Finally, based on the global consistency attitude constraint and RTK position data, an incremental 3D consistency reconstruction optimization objective function is constructed and solved to obtain the globally consistent farmland scene image frame position and attitude, avoiding farmland scene errors and realizing consistent reconstruction of the farmland 3D scene.

[0015] Preferably, the SIFT feature extraction algorithm is used to extract features from all the collected farmland scene images.

[0016] Preferably, under the planned flight path, the number of farmland scene images collected by the UAV is n, and the RTK position corresponding to the current frame of the farmland scene image is P. c ={X c Y c Z c}, the RTK position corresponding to any other frame of the farmland scene image is: P i ={X i Y i Z i}, i = 1, 2, ..., n, i ≠ c, then the RTK position P corresponding to the farmland scene image in the current frame is... c RTK position P corresponding to any other frame of farmland scene image i RTK distance d between ci for:

[0017]

[0018] Sort the distances between the RTK position of the current frame's farmland scene image and the RTK positions of all other frames' farmland scene images, and select the top k rank farmland scene images as the neighborhood images of the current frame. The resulting neighborhood image is denoted as:

[0019] N c ={I c1 I c2 , ..., I ck}

[0020] Among them, I ck This represents the k-th neighboring image that forms a neighborhood relationship with the farmland scene image in the current frame; ultimately, the image pair is constructed as follows:

[0021]

[0022] Among them, I c This represents the farmland scene in the current frame.

[0023] Preferably, the Fast Nearest Neighbor Ratio (FLANN) method is used to match the feature points of the current frame's farmland scene image with the feature points of all neighboring images, filtering out the feature matching relationships between the current frame's farmland scene image and all neighboring images. The resulting matching pairs are denoted as N. match :N match ={n c,c1 n c,c2 ,…,n c,ck}, where n c,ck This represents the number of matching pairs between the current frame's farmland scene image c and its k-th neighboring image.

[0024] Using the above-mentioned technical methods, incorrect matching relationships are filtered out, and correct matches are selected, which saves more computing resources.

[0025] Preferably, the constraint relationship is a triplet constraint, which is constructed by randomly selecting two neighboring farmland scene images and the current frame farmland scene image to save computing resources.

[0026] Preferably, let the two randomly selected frames of farmland scene images be I i and I j Based on feature matching relationships and epipolar set constraints, the relative rotation relationship {R} between two frames of farmland scene images and the current frame of farmland scene image is calculated. ij R jc R ci}, where R ij Represents two frames of farmland scene images I i and I j The relative rotation between them, R jc Image I representing a farmland scene j With the current frame farmland scene image I c The relative rotation between them, R ci Indicates the current frame of the farmland scene image I c With frame farmland scene image I i Relative rotation between them;

[0027] Let the global rotation matrix of the triple be denoted as {R}. c ,R i ,R j The estimated relationship between any two frames is measured using the Frobenius norm, expressed as:

[0028]

[0029] Where, log(R) = [ω] X ,ω=θn, where ω is the axis-angle representation; ω is a three-dimensional Lie algebra vector []. X Let θ represent an antisymmetric matrix, where n is the unit direction vector and θ is the angle.

[0030] The cost function expression for the constructed global attitude consistency constraint is as follows:

[0031]

[0032] in, This represents a globally consistent attitude constraint. Represents the estimated residual, denoted as image I. i ,I j Global rotation R i ,R j and relative rotation R ij The difference between them is expressed as:

[0033]

[0034] when With R ij When they are completely equal, The result is a 3×3 identity matrix I. 3×3 Then we have:

[0035]

[0036] in, The weight values ​​are represented; the cost function is solved iteratively using the Gauss-Newton method to obtain the parameters to be estimated {R}. c R i ,R j},by Using the initial value, the incremental value {ΔR} is calculated through iterative optimization. c ,ΔR i ,ΔR j}, adjust {R c ,R i ,R j To minimize the cost function, we determine the globally consistent absolute pose of all frames of farmland scene images.

[0037] Preferably, The number of matching features n was also taken into account. ij and estimated residuals The weight constraint expression for the impact on the cost function is:

[0038]

[0039] Two frames of farmland scene images I iand I j The more feature matches between them, the higher the weight value. The larger the value, the greater the difference between the global rotation and the relative rotation, and the greater the weight. The smaller.

[0040] Preferably, the three-dimensional spatial points of the farmland scene image jointly observed by the current frame and neighboring images are defined as: P = {L1, L2, ..., L...} m}, The position of the corresponding two-dimensional matching point on the j-th frame of the farmland scene image is Let T be the position and orientation of the j-th frame image. j =[R j ,t j The residual is:

[0041]

[0042] Where K represents the parameters within the camera captured by the drone. P represents the position of the camera's optical center. j This indicates the RTK position corresponding to the j-th frame of the farmland scene image;

[0043] If there are k associated frames containing m commonly observed 3D spatial points, then the incremental 3D reconstruction objective equation for the current farmland scene image is:

[0044]

[0045] The variables to be estimated are attitude T and three-dimensional spatial point P. The objective equation includes visual constraints and RTK constraints. The visual constraints represent the reprojection error constructed by projecting the three-dimensional spatial point onto the corresponding image plane based on the estimated UAV camera attitude. The RTK constraints represent the constraint relationship between the currently estimated UAV position and the actual absolute coordinate position of the UAV in the geographic coordinate system, that is, the error between the estimated position and the true position.

[0046] Preferably, based on globally consistent attitude constraints, the incremental 3D consistent reconstruction optimization objective function is as follows:

[0047]

[0048] in, Let f represent the global consistency pose constraint corresponding to the j-th frame of the farmland scene image. * (R j ,t j ,P) represents the global consistency attitude constraint. This represents the weight value.

[0049] By employing the aforementioned techniques, we can avoid the cumulative drift of pose in each frame of the farmland scene image, thereby reducing the error in the final reconstructed scene.

[0050] Preferably, the incremental three-dimensional consistent reconstruction optimization objective function is solved iteratively using the Gauss-Newton method or the Levenberg-Marquardt method to obtain the position and orientation of the three-dimensional spatial points in the farmland scene and the frame images of the farmland scene collected by the UAV, and the three-dimensional farmland scene is reconstructed from the three-dimensional spatial points in the farmland scene.

[0051] Compared with the prior art, the beneficial effects of the technical solution of the present invention are:

[0052] This invention proposes a method for consistent reconstruction of 3D farmland scenes based on global attitude constraints. It utilizes farmland scene images acquired by UAVs and their corresponding RTK position data. Feature extraction and vital sign point matching are then performed to determine the inter-frame constraint relationships between the current frame and multiple neighboring frames. A cost function for global attitude consistency constraints is constructed and solved based on these inter-frame constraint relationships to determine the global consistency attitude constraints for all frames, eliminating the cumulative error in each attitude estimation. Finally, based on the global consistency attitude constraints and RTK position data, an incremental 3D consistency reconstruction optimization objective function is constructed and solved to obtain the globally consistent farmland scene image frame positions and attitudes, avoiding farmland scene errors and achieving consistent reconstruction of the 3D farmland scene. Attached Figure Description

[0053] Figure 1 This is a flowchart illustrating the consistent reconstruction method for 3D farmland scenes based on global attitude constraints proposed in Embodiment 1 of the present invention.

[0054] Figure 2 A schematic diagram illustrating the flight path of the UAV collecting images of farmland scenes as proposed in Embodiment 1 of the present invention;

[0055] Figure 3 This diagram illustrates the inter-frame constraints of farmland scene images collected by a drone as proposed in Embodiment 2 of the present invention. Detailed Implementation

[0056] The accompanying drawings are for illustrative purposes only and should not be construed as limiting the scope of this patent.

[0057] To better illustrate this embodiment, some parts of the accompanying drawings may be omitted, enlarged, or reduced, and do not represent the actual dimensions;

[0058] It is understandable to those skilled in the art that some well-known details may be omitted from the accompanying drawings.

[0059] The technical solution of the present invention will be further described below with reference to the accompanying drawings and embodiments.

[0060] The positional relationships depicted in the accompanying drawings are for illustrative purposes only and should not be construed as limiting this patent.

[0061] Example 1

[0062] This embodiment proposes a consistent reconstruction method for 3D farmland scenes based on global pose constraints. The implementation flowchart of this method is as follows: Figure 1 See Figure 1 The method includes the following steps:

[0063] S1. Based on the planned flight path, use drones to collect images of farmland scenes and their corresponding RTK location data; see [link / reference] Figure 2 The route shown Figure 2 Each "circle" in the image represents a frame of a farmland scene captured by a drone, and the corresponding RTK location data can be obtained using an RTK real-time dynamic positioning system.

[0064] S2. Extract features from all collected farmland scene images to obtain feature points for all farmland scene images;

[0065] In this embodiment, the SIFT feature extraction algorithm is used to extract features from all the acquired farmland scene images. Assuming that Q feature points are extracted from any given farmland scene image, that is, Q SIFT feature descriptor vectors are used to represent each farmland scene image. This significantly reduces computation time and improves the accuracy of data association between images.

[0066] S3. Based on the RTK location data corresponding to each farmland scene image, construct the neighborhood relationship of each farmland scene image to determine the neighborhood images of the current frame farmland scene image;

[0067] In this embodiment, assuming the number of farmland scene images collected by the UAV along the planned flight path is n, and the RTK position corresponding to the current frame of the farmland scene image is P. c ={X c ,Y c Z c}, the RTK position corresponding to any other frame of the farmland scene image is: P i ={X i ,Y i Z i If},=1,2,…,,≠c, then the RTK position P corresponding to the farmland scene image in the current frame is... c RTK position P corresponding to any other frame of farmland scene image i RTK distance d between ci for:

[0068]

[0069] Sort the distances between the RTK position of the current frame's farmland scene image and the RTK positions of all other frames' farmland scene images, and select the top k rank farmland scene images as the neighborhood images of the current frame. The resulting neighborhood image is denoted as:

[0070] N c ={I c1 ,I c2 ,…,I ck}

[0071] Among them, I ck This represents the k-th neighboring image that forms a neighborhood relationship with the farmland scene image in the current frame; ultimately, the image pair is constructed as follows:

[0072]

[0073] Among them, I c This represents the farmland scene in the current frame.

[0074] S4. Match the feature points of the current frame's farmland scene image with the feature points of all neighboring images to obtain feature matching relationships, and construct inter-frame constraint relationships based on the feature matching relationships;

[0075] In this embodiment, the Fast Nearest Neighbor Ratio (FLANN) method is used to match the feature points of the current frame's farmland scene image with the feature points of all neighboring images, filtering out the feature matching relationships between the current frame's farmland scene image and all neighboring images. The resulting matching pairs are denoted as N. match :N match =n c,c1 ,n c,c2 ,…,n c,ck}, where n c,ck This represents the number of matching pairs between the current frame's farmland scene image c and its k-th neighboring image.

[0076] The specific process is as follows:

[0077] Let farmland scene image I c One feature point extracted is Corresponding neighborhood image I c1 The two feature points extracted are respectively The corresponding matching scores are respectively Use a proportional threshold th to filter out incorrect matching pairs if the following conditions are met:

[0078]

[0079] This indicates that Correct match, and Incorrect matches are eliminated, and accurate matches are selected. In practice, a proportional threshold of th = 0.8 is selected to filter out incorrect matches. This allows us to obtain the feature matching relationships between all neighboring images and the current frame's farmland scene image. Thus, incorrect matches are eliminated, and correct matches are selected, saving computational resources. Then, based on the feature matching relationships, inter-frame constraint relationships are constructed, and step S5 is executed.

[0080] S5. Construct and solve the cost function of global attitude consistency constraints based on the inter-frame constraint relationship to determine the global attitude consistency constraints for all frames;

[0081] S6. Based on the global consistency attitude constraint, an incremental three-dimensional consistency reconstruction optimization objective function is constructed and solved to obtain the position and attitude of three-dimensional spatial points in the farmland scene and the frame images of the farmland scene collected by the UAV, thus obtaining the three-dimensional farmland scene.

[0082] Overall, this embodiment aims to restore the globally consistent 3D farmland scene structure and the position and pose of each corresponding frame of the farmland scene image. Based on farmland scene images and their corresponding RTK position data collected by UAVs, feature extraction and feature point matching are performed to determine the inter-frame constraint relationship between the current frame and multiple neighboring frames. Based on the inter-frame constraint relationship, a cost function for global pose consistency constraints is constructed and solved to determine the global consistency pose constraints for all frames, eliminating the cumulative error in each pose estimation. Finally, based on the global consistency pose constraints and RTK position data, an incremental 3D consistency reconstruction optimization objective function is constructed and solved to obtain the globally consistent farmland scene image frame position and pose, avoiding farmland scene errors and achieving consistent reconstruction of the farmland 3D scene.

[0083] Example 2

[0084] In this embodiment, the inter-frame constraint relationship constructed based on feature matching relationship in step S4 will be explained, as follows: Figure 3 As shown, this embodiment selects a current frame of farmland scene image along the drone's flight path and constructs a star-shaped group constraint, that is, assuming the current frame is the "circle" shown. Figure 3 The "arrow" in the diagram represents the flight path, and the four neighboring farmland scene images closest to the RTK are shown in the surrounding circles. Normally, the matching constraint between the current frame farmland scene image and these four neighboring frame farmland scene images is the strongest. However, in order to save computing resources, this embodiment randomly selects two frames of farmland scene images from the four neighboring frames and constructs a triplet constraint with the current frame farmland scene image.

[0085] Let I be two randomly selected frames of farmland scene images. i and I jBased on feature matching relationships and epipolar set constraints, the relative rotation relationship {R} between two frames of farmland scene images and the current frame of farmland scene image is calculated. ij R jc R ci}, where R ij Represents two frames of farmland scene images I i and I j The relative rotation between them, R jc Image I representing a farmland scene j With the current frame farmland scene image I c The relative rotation between them, R ci Indicates the current frame of the farmland scene image I c With frame farmland scene image I i Relative rotation between them;

[0086] Assume two frames of farmland scene images I i and I j There exists a pair of matching feature points, denoted as... The camera intrinsic parameters are denoted as K; assuming the relative motion between farmland scene images is [R] ij ,t ij ], R ij Indicates relative rotation, t ij This indicates a relative translation, i.e., from image I j Coordinate system transformation to image I i Relative motion of coordinate systems.

[0087] The epipolar geometric constraints are as follows:

[0088] The extracted feature points are back-projected into three-dimensional space:

[0089] Based on the motion transformation relationship, we have: Multiplying both sides by the relative translation, we have: Multiply both sides simultaneously Then we have: Based on multiple feature matching relationships, solving the above equations allows us to calculate the relative motion [R]. ij ,t ij ];

[0090] Let the global rotation matrix of the triple be denoted as {R}. c ,R i ,R j The estimated relationship between any two frames is measured using the Frobenius norm, expressed as:

[0091]

[0092] Where, log(R) = [ω]X ,ω=θn, where ω is the axis-angle representation; ω is a three-dimensional Lie algebra vector []. X Let θ represent an antisymmetric matrix, where n is the unit direction vector and θ is the angle.

[0093] The cost function expression for the constructed global attitude consistency constraint is as follows:

[0094]

[0095] in, This represents a globally consistent attitude constraint. Represents the estimated residual, denoted as image I. i ,I j Global rotation R i ,R j and relative rotation R ij The difference between them is expressed as:

[0096]

[0097] when With R ij When they are completely equal, The result is a 3×3 identity matrix I. 3×3 Then we have:

[0098]

[0099] in, The weight values ​​are represented; the cost function is solved iteratively using the Gauss-Newton method to obtain the parameters to be estimated {R}. c ,R i ,R j},by Using the initial value, the incremental value {ΔR} is calculated through iterative optimization. c ,ΔR i ,ΔR j}, adjust {R c ,R i ,R j To minimize the cost function, we determine the globally consistent absolute pose of all frames of farmland scene images.

[0100] In this embodiment, The number of matching features n was also taken into account. ij and estimated residuals The weight constraint expression for the impact on the cost function is:

[0101]

[0102] Two frames of farmland scene images I i and I jThe more feature matches between them, the higher the weight value. The larger the value, the greater the difference between the global rotation and the relative rotation, and the greater the weight. The smaller.

[0103] Example 3

[0104] Traditional incremental 3D reconstruction methods estimate the pose and orientation of the current frame of a farmland scene image by performing joint optimization calculations based on the constraint relationships of neighboring frames. Let the 3D spatial points of the farmland scene image jointly observed by the current frame and neighboring images be: P = L1, L2, ..., L m}, The position of the corresponding two-dimensional matching point on the j-th frame of the farmland scene image is Let T be the position and orientation of the j-th frame image. j =R j ,t j The residual is:

[0105]

[0106] Where K represents the parameters within the camera captured by the drone. P represents the position of the camera's optical center. j This indicates the RTK position corresponding to the j-th frame of the farmland scene image;

[0107] If there are k associated frames containing m commonly observed 3D spatial points, then the incremental 3D reconstruction objective equation for the current farmland scene image is:

[0108]

[0109] The variables to be estimated are attitude T and three-dimensional spatial point P. The objective equation includes visual constraints and RTK constraints. The visual constraints represent the reprojection error constructed by projecting the three-dimensional spatial point onto the corresponding image plane based on the estimated UAV camera attitude. The RTK constraints represent the constraint relationship between the currently estimated UAV position and the actual absolute coordinate position of the UAV in the geographic coordinate system, that is, the error between the estimated position and the true position.

[0110] Clearly, because RTK can provide centimeter-level positioning with globally consistent absolute geographic coordinates, traditional incremental 3D reconstruction methods can recover relatively accurate absolute positions. However, due to the constraints of incremental reconstruction, the position and pose estimation of the current frame of the farmland scene image heavily depends on the constraints of neighboring frames. When there are pose errors in neighboring frames of the farmland scene image, these errors accumulate in all associated frames, resulting in significant shifts in the poses of all the finally estimated frames, and causing considerable inconsistencies in the reconstructed agricultural 3D scene map.

[0111] To overcome the above problems, this embodiment constructs an incremental 3D consistent reconstruction optimization objective function based on global consistency attitude constraints and combined with RTK absolute geolocation:

[0112]

[0113] in, Let f represent the global consistency pose constraint corresponding to the j-th frame of the farmland scene image. * (R j ,t j ,P) represents the global consistency attitude constraint. This represents the weight value.

[0114] Then, by using the Gauss-Newton method or the Levenberg-Marquardt method, the incremental 3D consistent reconstruction optimization objective function is solved iteratively to obtain the position and orientation of the 3D spatial points in the farmland scene and the frame images of the farmland scene collected by the UAV. The 3D farmland scene is then reconstructed from the 3D spatial points in the farmland scene.

[0115] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. Those skilled in the art can make other variations or modifications based on the above description. It is neither necessary nor possible to exhaustively describe all embodiments here. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the claims of the present invention.

Claims

1. A method for consistent reconstruction of a 3D scene of a farmland based on global pose constraints, characterized in that, Includes the following steps: S1. Based on the planned flight path, use drones to collect images of farmland scenes and their corresponding RTK location data; S2. Extract features from all collected farmland scene images to obtain feature points for all farmland scene images; use the SIFT feature extraction algorithm to extract features from all collected farmland scene images; S3. Based on the RTK location data corresponding to each farmland scene image, construct the neighborhood relationship of each farmland scene image to determine the neighborhood images of the farmland scene image in the current frame; Suppose that, under the planned flight path, the number of farmland scene images collected by the UAV is n, and the RTK position corresponding to the current frame of the farmland scene image is . The RTK location corresponding to any other frame of the farmland scene image is: The RTK position corresponding to the current frame of the farmland scene image. RTK position corresponding to any other frame of farmland scene image RTK distance between for: Sort the RTK position corresponding to the current frame of farmland scene image by distance from the RTK positions corresponding to all other frames of farmland scene images, and then sort the top-ranked positions. k Other frames of farmland scene images are used as neighborhood images of the current frame. The resulting neighborhood image is denoted as: in, The first element that forms a neighborhood relationship with the current frame's farmland scene graph. k Each neighborhood image; ultimately, the image pair is constructed as follows: in, This represents the farmland scene in the current frame; S4. Match the feature points of the current frame farmland scene image with the feature points of all neighboring images to obtain feature matching relationships, and construct inter-frame constraint relationships based on the feature matching relationships; The Fast Nearest Neighbor Ratio (FLANN) method is used to match feature points of the current frame's farmland scene image with feature points of all neighboring images. This process filters out feature matching relationships between the current frame's farmland scene image and all neighboring images, and the resulting matching pairs are denoted as follows: : ,in, Indicates the relationship between the current frame farmland scene image c and the first frame. k The number of matching pairs in a neighborhood image; S5. Construct and solve the cost function of global attitude consistency constraints based on the inter-frame constraint relationship to determine the global attitude consistency constraints for all frames; S6. Based on the global consistency attitude constraint, an incremental three-dimensional consistency reconstruction optimization objective function is constructed and solved to obtain the position and attitude of three-dimensional spatial points in the farmland scene and the frame images of the farmland scene collected by the UAV, thus obtaining the three-dimensional farmland scene.

2. The method for consistent reconstruction of 3D farmland scenes based on global attitude constraints according to claim 1, characterized in that, The constraint relationship is a triplet constraint, which is constructed by randomly selecting two neighboring farmland scene images and the current farmland scene image.

3. The method for consistent reconstruction of farmland 3D scenes based on global attitude constraints according to claim 2, characterized in that, Let two randomly selected frames of farmland scene images be respectively Based on feature matching relationships and epipolar set constraints, the relative rotation relationship between two frames of farmland scene images and the current frame of farmland scene image is calculated. ,in, Represents two frames of farmland scene images Relative rotation between them Represents a frame of farmland scene image With the current frame of farmland scene image Relative rotation between them Represents the current frame of the farmland scene image. Images of farmland scenes Relative rotation between them; Let the global rotation matrix of the triple be denoted as . The estimated relationship between any two frames is measured using the Frobenius norm, expressed as: in, , Represented by the axis angle; A three-dimensional Lie algebra vector Indicates an antisymmetric matrix, Unit direction vector, For angle; The cost function expression for the constructed global attitude consistency constraint is as follows: in, This represents a globally consistent attitude constraint. This represents the estimated residual, expressed as an image. Global rotation and relative rotation The difference between them is expressed as: when and When they are completely equal, The result is unit array Then we have: in, The weight values ​​are represented; the cost function is solved iteratively using the Gauss-Newton method to obtain the parameters to be estimated. ,by Using the initial value, the incremental value is calculated through iterative optimization. ,Adjustment This minimizes the cost function and determines the globally consistent absolute pose of all frames of farmland scene images.

4. The method for consistent reconstruction of farmland 3D scenes based on global attitude constraints according to claim 3, characterized in that, The number of matching features was also taken into account. and estimated residuals The weight constraint expression for the impact on the cost function is: Two frames of farmland scene images The more feature matches between them, the higher the weight value. The larger the value, the greater the difference between the global rotation and the relative rotation, and the greater the weight. The smaller.

5. The method for consistent reconstruction of farmland 3D scenes based on global attitude constraints according to claim 3, characterized in that, Let the three-dimensional spatial points of the farmland scene jointly observed by the current frame's farmland scene image and neighboring images be: , In the The position of the corresponding two-dimensional matching point on the frame farmland scene image is Let the first The position and orientation of the frame image are denoted as The residual is: Where K represents the parameters within the camera captured by the drone. Indicates the position of the camera's optical center. Indicates the first The RTK location corresponding to the frame of the farmland scene image; If it exists k Given *m* associated frames containing *m* commonly observed 3D spatial points, the incremental 3D reconstruction objective equation for the current farmland scene image is: Among them, the variable to be estimated is attitude. and three-dimensional space points The objective equation includes visual constraints and RTK constraints. Visual constraints represent the reprojection error constructed by projecting 3D spatial points onto the corresponding image plane based on the estimated UAV camera pose. RTK constraints represent the constraint relationship between the currently estimated UAV position and the actual absolute coordinate position of the UAV in the geographic coordinate system, i.e., the error between the estimated position and the true position.

6. The method for consistent reconstruction of 3D farmland scenes based on global pose constraints according to claim 5, characterized in that, Based on the globally consistent attitude constraint, the incremental 3D consistent reconstruction optimization objective function is constructed as follows: in, This represents the global consistency pose constraint corresponding to the j-th frame of the farmland scene image. This represents a globally consistent attitude constraint. This represents the weight value.

7. The method for consistent reconstruction of farmland 3D scenes based on global pose constraints according to claim 6, characterized in that, By iteratively solving the incremental 3D consistency reconstruction optimization objective function using the Gauss-Newton method or the Levenberg-Marquardt method, the positions and orientations of 3D spatial points in the farmland scene and the frame images of the farmland scene collected by the UAV are obtained, and the 3D farmland scene is reconstructed from the 3D spatial points in the farmland scene.

Citation Information

Patent Citations

  • Three-dimensional model dynamic updating method based on visual perception

    CN114494582A

  • Pose determination method and related device

    WO2022161386A1