Unmanned aerial vehicle monocular camera pose map optimization method

Through Gaussian difference point interest detection and LM algorithm optimization, the problem of weak edge and contrast of feature points in UAV pose map optimization is solved, achieving more stable and accurate pose estimation, and expanding the processing capabilities of discontinuous images. .

CN118674637AActive Publication Date: 2024-09-20HEFEI UNIV OF TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410771963.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-15
Publication Date
2024-09-20
Estimated Expiration
2044-06-15

AI Technical Summary

Technical Problem

The traditional drone pose map optimization method has the problem that the feature points are at the edge of the image frame and the contrast is weak, resulting in poor detection accuracy and stability, and it cannot handle discontinuous image frame data.

Method used

The Gaussian difference point interest detection method is used to blur the image frame data and build a Gaussian pyramid to eliminate low contrast and edge response feature points. The LM algorithm is used to optimize the UAV attitude parameters and expand the scope of pose map optimization.

Benefits of technology

It improves the robustness and accuracy of attitude estimation, reduces the number of iterations and calculations, can handle discontinuous image frame data, and enhances the system's robustness and optimization capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674637A
    Figure CN118674637A
Patent Text Reader

Abstract

The invention relates to the technical field of unmanned aerial vehicle pose map optimization, in particular to an unmanned aerial vehicle monocular camera pose map optimization method. Comprising the following steps: performing fuzzy processing on different image frame data, constructing a Gaussian pyramid and performing down-sampling processing; candidate feature points are determined by subtracting Gaussian blurred images of adjacent scales; accurately determining the position of the candidate feature point on the image frame; removing low-contrast candidate feature points and edge response feature points to obtain feature points; an LM algorithm is adopted for discontinuous image frame data, attitude parameters of the unmanned aerial vehicle are adjusted, and a pose image is optimized. According to the method, the Gaussian difference point interest detection process is carried out on the continuously collected image frame data, the noise in the image frame is inhibited, the noise in the image can be effectively smoothed, the processed attitude image is smoother, the gradient change is small, and the robustness of attitude estimation is improved. The pose image optimization process expands the pose image optimization range, and optimization processing can be carried out on discontinuous images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unmanned aerial vehicle pose graph optimization, and in particular to a method for optimizing a pose graph of a monocular camera of an unmanned aerial vehicle. Background Art

[0002] In the past few years, the manufacturing cost of quadcopters has continued to decline, and their performance has continued to improve, gradually achieving commercialization and personalization. However, on this platform, traditional pose graph optimization methods have many problems. For example, the feature points collected by the previous feature extraction method have problems such as feature points at the edge of the image frame and weak contrast, which produces unrealistic feature information, thus affecting the accuracy and stability of detection. In addition, the pose graph optimization method can only process a continuous segment of collected image frames, and cannot process images with discontinuous scales. Summary of the invention

[0003] The present invention discloses a method for optimizing a pose graph of a monocular camera of an unmanned aerial vehicle, and the specific method is as follows:

[0004] During the flight of the drone, the monocular camera continuously collects image frame data;

[0005] Perform Gaussian difference point interest detection on continuously acquired image frame data;

[0006] Perform pose graph optimization for discontinuous image frame data.

[0007] Furthermore, Gaussian difference point interest detection is performed on the continuously collected image frame data. The specific method is as follows:

[0008] Different image frame data are blurred, Gaussian pyramid constructed and down-sampled;

[0009] Determine the candidate feature points by subtracting Gaussian blurred images of adjacent scales;

[0010] Accurately determine the location of candidate feature points on the image frame;

[0011] Eliminate low-contrast candidate feature points and edge response feature points to obtain feature points.

[0012] Furthermore, different image frame data are subjected to blur processing, Gaussian pyramid construction and down-sampling processing. The specific methods are as follows:

[0013] Initialize the acquired image frame data;

[0014] Convolve the initialized image frame data to obtain a blurred image;

[0015] Change the blur scale to obtain several blurred images with the same resolution but different blur levels;

[0016] Construct a Gaussian pyramid using the same blurred image with the same resolution but different blur levels;

[0017] The last blurred image in the Gaussian pyramid is selected for downsampling, and the downsampled image data is used as the initial image of the next blurred image.

[0018] Furthermore, when convolving the initialized image frame data, the convolution kernel function is defined as:

[0019]

[0020] Where σ is the scale, x and y are the input images;

[0021] Convolve the image frame data I(x,y) to obtain the blurred image L(x,y,σ) formula as follows:

[0022] L(x,y,σ)=G(x,y,σ)*I(x,y)

[0023] In the formula, * represents the convolution operation;

[0024] Change the blur scale as follows:

[0025] The scale factor k of each pyramid layer is set so that the Gaussian blur scale of each layer gradually increases. The expression is as follows:

[0026] σ i =k i σ0

[0027] Where i represents the number of convolutions in the current layer;

[0028] Construct a Gaussian pyramid. The specific method is as follows:

[0029] Construct a number of blurred images with the same resolution and different blur levels into an image set;

[0030] In the same image set, starting from the bottom image, gradually increase the blur scale, and each time the blur level is increased, a new image L(x, y, σ i ), the expression is as follows:

[0031] L(x,y,σ i )=G(x,y,σ i )*I(x,y)

[0032] In the mth image set, starting from the initial image, the image is blurred multiple times to generate images of different scales L[m,n], which are expressed as follows:

[0033] L[m,n]=G(x,y,σ i)*L[n,n-1]

[0034] Where n represents the index of the current scale in the picture set, and L[m,0] is the initial image of the mth picture set;

[0035] Downsampling, the specific method is as follows:

[0036] Select the last blurred image of the Gaussian pyramid for downsampling as the initial image of the next image set. The expression is as follows:

[0037] L[m+1,0]=Downsample(L[m,n max ])

[0038] Among them, n max is the maximum label in the current image set. When m=0, L[0,0]=I(x,y) is the initial input image.

[0039] Furthermore, the candidate feature points are determined as follows:

[0040] Subtract Gaussian blurred images of different scales, and the calculation formula is as follows:

[0041] DL[m,n]=L[m,n+1]-L[m,n]

[0042] Traverse the points and select a 3×3×3 range for detection in the current scale DL[m,n], the previous scale DL[m,n-1] and the next scale DL[m,n+1] of the pixel to determine whether it is the grayscale maximum value of this area; if so, add it to the candidate feature point sequence as a local maximum.

[0043] Furthermore, the position of the candidate feature points on the image frame is accurately determined, and the specific method is as follows:

[0044] Taylor expansion is used to perform quadratic fitting on the difference Gaussian function:

[0045]

[0046] Among them, x is the displacement vector of the key point, DL is the differential Gaussian value at the key point position, and They are the gradient and Hessian matrices of DL respectively;

[0047] By solving the above equations, we can get the exact position of the key points:

[0048]

[0049] in, Used to indicate the location of candidate feature points.

[0050] Furthermore, low-contrast candidate feature points and edge response feature points are removed. The specific method is as follows:

[0051] An evaluation function is constructed through the two eigenvalues ​​of the Hessian matrix. Assume that the two eigenvalues ​​of the Hessian matrix are λ1 and λ2, and the characteristic ratio is:

[0052]

[0053] like

[0054] r <Threshold1

[0055] Wherein, Threshold1 is the first set threshold;

[0056] The candidate feature point is marked as an edge response point and removed from the candidate feature point list.

[0057] The contrast value of the feature point is calculated as follows:

[0058]

[0059] like

[0060]

[0061] Wherein, Threshold2 is the second set threshold;

[0062] If the candidate point is unstable, it is removed from the candidate point list.

[0063] Furthermore, for discontinuous image frame data, the specific method for pose graph optimization is as follows:

[0064] Calibrate discontinuous image frame data;

[0065] For continuous image frame data, a first residual function is constructed; for discontinuous image frame data, a second residual function is constructed; the first residual function r1(θ i ,θ j ) and the second residual function r2(θ i ,θ j ) is expressed as follows:

[0066]

[0067]

[0068] Among them, T(θ i ) and T(θ j) represent the relative motion transformation matrices of sensor frames i and j respectively; t2v(T) is the form of converting the corresponding translation vector and rotation vector; is the expected value of the relative posture of adjacent nodes;

[0069] The LM algorithm is used to adjust the attitude parameters of the UAV to minimize the overall value of the first residual function and the second residual function.

[0070] Furthermore, the LM algorithm is used to adjust the attitude parameters of the drone. The specific method is as follows:

[0071] Construct the Hessian approximation matrix H and gradient function g, the expressions are as follows:

[0072] H=J T J+λI

[0073] Where J is the Jacobian matrix of the residual function with respect to the posture parameters, and I is the identity matrix;

[0074] The gradient function g is expressed as follows:

[0075] g=J T r

[0076] Wherein, r is the first residual function and the second residual function;

[0077] The Hessian matrix can be approximated by using the Jacobian matrix approximation, and then solving a system of linear equations to obtain the increments required to update the posture parameters. The expression is as follows:

[0078] (J T J+λI)δθ=-J T r

[0079] Solve an increment δθ to update the posture parameters as follows:

[0080] θ←θ+δθ

[0081] The updated step size can be obtained by adding the calculated increment to the current posture parameter. The error observation function is expressed as:

[0082]

[0083] By comparing the error values ​​before and after the update, the effect of the update can be judged.

[0084] Furthermore, if the error value becomes smaller after the update, reduce the LM parameter λ and use the Newton-Gaussian method to quickly approach the optimal solution; if the error value becomes larger, manually increase the LM parameter λ to allow the algorithm to use the gradient descent method more;

[0085] The specific method is expressed as follows:

[0086] λ←λ / v

[0087] λ←λ×ν

[0088] Among them, v>1;

[0089] After iteration, if the error converges to the set range or reaches the set maximum number of iterations, the iteration is stopped and the current set of posture parameters θ is used. i Output as the optimal solution.

[0090] Due to the adoption of the above scheme, the present invention has the following beneficial effects:

[0091] 1. The process of performing Gaussian difference point interest detection on the continuously collected image frame data suppresses the noise in the image frame and can effectively smooth the noise in the image. The posture graph after processing is smoother and the gradient change is smaller, which improves the robustness of posture estimation.

[0092] 2. Gaussian blur can help extract more stable and significant features, and can extract posture features more accurately, thereby improving the accuracy of posture estimation.

[0093] 3. Gaussian blur reduces the resolution of the image frame while retaining the features, thereby reducing the number of iterations and the amount of calculation in the optimization process, and reducing the overall data storage pressure.

[0094] 4. The pose graph optimization process expands the scope of pose graph optimization, and discontinuous images can also be optimized.

[0095] 5. The LM algorithm is used to solve the optimization processing of nonlinear problems. The LM parameters significantly improve the convergence speed;

[0096] 6. Finally, it is insensitive to the requirements of initial parameters and converges effectively within a wider range of initial values, which improves the robustness of the system algorithm.

[0097] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be achieved and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0098] The accompanying drawings of the present invention are as follows.

[0099] Figure 1 Schematic diagram of the process of building an image pyramid.

[0100] Figure 2 Schematic diagram of the loss function judgment process.

[0101] Figure 3 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0102] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0103] A pose graph optimization method for a UAV monocular camera, such as Figure 3 As shown, the specific steps are as follows:

[0104] S1. During the flight of the drone, the monocular camera continuously collects image frame data.

[0105] S2. Perform Gaussian difference point interest detection on the continuously collected image frame data.

[0106] The specific processing method of step S2 is as follows:

[0107] S21. Initialization: set the input image to I(x,y); set the initial scale σ0 and scale factor k, σ0 is between 1.0 and 2.0, and 1.6 is usually selected.

[0108] The Gaussian scale-space kernel function used is defined as follows:

[0109]

[0110] S22, convolve the input image to obtain a blurred image, convolve the image I(x,y) to obtain a blurred image L(x,y,σ)

[0111] L(x,y,σ)=G(x,y,σ)*I(x,y)

[0112] * indicates a convolution operation.

[0113] Compared with the original image, the resolution of this image remains unchanged, and a high-frequency filter is performed to reduce the impact of the high-frequency components of the image.

[0114] S23, by constantly changing σ i The blur level is continuously increased by adjusting the value of

[0115] Set the scale factor k of each pyramid layer, usually The Gaussian blur scale of each layer is gradually increased:

[0116] σ i =k i σ0

[0117] Where i represents the number of convolutions in the current layer.

[0118] Then, by repeating the above steps, several images with the same resolution but different blur levels can be obtained, and a Gaussian blurred image sequence can be obtained.

[0119] S24, construct each layer in the Gaussian pyramid, such as Figure 1 As shown. A group of images after convolution is compiled into an image set. The images in an image set have the same spatial resolution but different blur scales. In the same image set, starting from the original image, the blur scale is gradually increased. Each time the blur degree is increased, a new image L(x, y, σ i ):

[0120] L(x,y,σ i )=G(x,y,σ i )*I(x,y)

[0121] In the mth image set, starting from the initial image, the image is blurred multiple times to generate images L[m,n] of different scales:

[0122] L[m,n]=G(x,y,σ i )*L[m,n-1]

[0123] Where n represents the index of the current scale in the image set, and L[m,0] is the initial image of the mth image set.

[0124] S25, downsampling, each image set selects the last blurred image in it for downsampling, and uses it as the initial image of the next image set. At this time, the image can reduce its resolution while retaining its features, and its resolution can be reduced by 1 / 4 or 1 / 2.

[0125] Initial image for the next image set:

[0126] L[m+1,0]=Downsample(L[m,n max ])

[0127] Among them, n max is the maximum label in the current image set.

[0128] Among them, when m=0, L[0,0]=I(x,y) is the initial input image.

[0129] S26, generating a Gaussian difference image and detecting candidate feature points.

[0130] After completing the set number of downsampling times, select the mth image set obtained last, and generate a Gaussian difference image by subtracting Gaussian blurred images of adjacent scales. Subtract Gaussian blurred images of different scales to eliminate the low-frequency components in the image, and the remaining frequency components are related to the image edge. The calculation formula is:

[0131] DL[m,n]=L[m,n+1]-L[m,n]

[0132] Calculate the DL blurred image, and then traverse the points in it. In the current scale DL[m,n], the previous scale DL[m,n-1] and the next scale DL[m,n+1] of the pixel point, select a 3×3×3 range for detection to determine whether it is the maximum grayscale value of this area. If so, it is added to the candidate feature point sequence as a local maximum.

[0133] S27: Locate the candidate feature points.

[0134] Among the candidate feature points, their positions on the image frame are further accurately determined. Taylor expansion is used to perform quadratic fitting on the differential Gaussian function:

[0135]

[0136] Among them, x is the displacement vector of the feature point, DL is the differential Gaussian value at the feature point position, and They are the gradient and Hessian matrices of DL respectively.

[0137] By solving the above equation, we can get the exact position of the feature point:

[0138]

[0139] Used to indicate an estimated location.

[0140] S28, eliminating low-contrast feature points and edge response feature points.

[0141] At the edge of the image, first of all, due to its incomplete neighborhood, it is impossible to determine whether there is a local extreme point; and it is easily affected by noise and interference, introducing uncertainty, thus affecting the accuracy and stability of detection; and edge points usually do not have real feature information, but are caused by the edges of certain objects or structures in the image. Therefore, when processing images, candidate feature points of edge responses are generally not considered.

[0142] Since the image gradient changes dramatically at the edge, an evaluation function can be constructed through the two eigenvalues ​​of the Hessian matrix for judgment.

[0143] Let the two eigenvalues of the Hessian matrix be λ1 and λ2 respectively, and the eigenvalue ratio be:

[0144]

[0145] Set a threshold Threshold1, which is usually small, to distinguish edge response points from interest points. If r < Threshold1, then mark this candidate feature point as an edge response point and remove it from the list of candidate feature points.

[0146] Feature points with low contrast may represent noise or unreliable regions, and their features are often not sufficient for subsequent image processing tasks, so feature points with small contrast values are removed.

[0147] The calculation formula for the contrast value of feature points is as follows:

[0148]

[0149] Set a threshold Threshold2, which is usually small. If this candidate point is considered unstable, then remove it from the list of candidate points.

[0150] The final remaining list of candidate feature points is confirmed as feature points, and the subsequent optimization algorithm is configured with their orientations.

[0151] S3. Perform pose graph optimization for discontinuous image frame data.

[0152] In step S3, motion estimation is performed through feature matching based on the feature points provided above. By continuously comparing the positions of the same feature point in different image frames, a series of pose parameters are obtained to estimate the position of the UAV body.

[0153] First, construct an observation function to visualize the error degree between the map constructed by each parameter adopted and the actual map.

[0154] Formally, this function is defined as follows:

[0155]

[0156] θ1,...,θ N : represent pose parameters;

[0157] represents the relative pose residual;

[0158] represents optimizing for the parameters θ1,...,θ N to minimize the subsequent objective function;

[0159] represents the sum of all relative pose measurements, where M is the number of relative pose measurements;

[0160] is the corresponding information matrix, usually composed of the covariance matrix of the sensor measurements;

[0161] ρ(·) is a robust cost function used to process observation residuals to reduce the impact of outliers and improve the stability and robustness of optimization.

[0162] You can choose the Huber loss function as the loss function. The judgment process is as follows Figure 2 As shown:

[0163]

[0164] r: relative attitude residual;

[0165] δ: Hyperparameter, obtained through experience or experiments.

[0166] The Huber loss function is more robust when dealing with outliers. It behaves like the mean square error when it is close to zero, and behaves like the absolute error when it is far from zero. This property enables the Huber loss function to maintain a good balance when dealing with outliers without having too much impact on the optimization process.

[0167] It includes a relative pose residual function, which is used to represent the difference between the estimated measurement value and the actual value, and optimizes the overall pose estimation by minimizing the sum of squares of all pose residuals.

[0168] A new type of residual function for discontinuous images is constructed for continuous images and discontinuous images respectively. During motion estimation, the feature points between adjacent image frames are detected to be consistent and continuous, and the discontinuous parts are specially calibrated. When optimizing to the relevant parts, this new residual function can be used for calculation in the solver.

[0169] For continuously acquired image frames, the following residual function is constructed:

[0170]

[0171] For the case of discontinuous image acquisition, the following residual function is constructed:

[0172]

[0173] in

[0174] T(θ i ) and T(θ j): represent the relative motion transformation matrix of sensor frames i and j respectively;

[0175] t2v(T): convert the corresponding vector into the form of translation vector and rotation vector;

[0176] The expected value of the relative posture of adjacent nodes;

[0177] The LM algorithm is used to iterate to adjust the posture parameters to minimize the error function.

[0178] First, select a set of initial posture parameters θ i , and set an initial LM parameter λ. A maximum number of iterations can be set manually to prevent the algorithm from looping when there is no optimal solution.

[0179] A Hessian matrix approximation matrix H and gradient function are then constructed, which enables the algorithm to smoothly transition between gradient descent and Gauss-Newton method.

[0180] The approximate matrix H is expressed as follows:

[0181] H=J T J+λI

[0182] Where J is the Jacobian matrix of the residual function with respect to the posture parameters, and I is the identity matrix.

[0183] The gradient function g is expressed as follows:

[0184] g=J T r

[0185] The Hessian matrix can be approximated by using an approximation of the Jacobian matrix, and then solving a system of linear equations to get the increments we need to update the state.

[0186] (J T J+λI)δθ=-J T r

[0187] The solution is an increment δθ, and then we update the posture parameters.

[0188] θ←θ+δθ

[0189] The current posture parameters plus the calculated increment can be used to obtain the updated step size, which guides the algorithm in which direction to move in order to minimize the observation function.

[0190] The error observation function is expressed as:

[0191]

[0192] By comparing the error values ​​before and after the update, the effect of the update can be judged.

[0193] If the error value after the update becomes smaller, reduce the LM parameter λ so that the algorithm can use the Newton-Gaussian method more to quickly approach the optimal solution; if the error value becomes larger, it means that the optimization effect is long, and you need to manually increase the LM parameter λ so that the algorithm can use the gradient descent method more, expand the search range in the search space, and find a better solution.

[0194] Specific adjustment strategies can be:

[0195] λ←λ / ν

[0196] λ←λ×ν

[0197] Where ν>1 is an artificially predefined parameter.

[0198] After each iteration, we have to make a judgment. If the error converges to the range we set, or reaches the maximum number of iterations, we stop the iteration and use the current set of pose parameters θ i Output as the optimal solution.

[0199] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for optimizing the pose graph of a monocular camera of an unmanned aerial vehicle, characterized in that: The specific method is as follows: During the flight of the drone, the monocular camera continuously collects image frame data; Perform Gaussian difference point interest detection on continuously acquired image frame data; Perform pose graph optimization for discontinuous image frame data.

2. The method for optimizing the pose graph of a monocular camera of an unmanned aerial vehicle according to claim 1, characterized in that: Gaussian difference point interest detection is performed on the continuously collected image frame data. The specific method is as follows: Different image frame data are blurred, Gaussian pyramid constructed and down-sampled; Determine the candidate feature points by subtracting Gaussian blurred images of adjacent scales; Accurately determine the location of candidate feature points on the image frame; Eliminate low-contrast candidate feature points and edge response feature points to obtain feature points.

3. The method for optimizing the pose graph of a monocular camera of an unmanned aerial vehicle according to claim 2, characterized in that: Different image frame data are blurred, Gaussian pyramids are constructed, and down-sampled. The specific methods are as follows: Initialize the acquired image frame data; Convolve the initialized image frame data to obtain a blurred image; Change the blur scale to obtain several blurred images with the same resolution but different blur levels; Construct a Gaussian pyramid using the same blurred image with the same resolution but different blur levels; The last blurred image in the Gaussian pyramid is selected for downsampling, and the downsampled image data is used as the initial image of the next blurred image.

4. The method for optimizing the pose graph of a monocular camera of an unmanned aerial vehicle according to claim 3, characterized in that: When convolving the initialized image frame data, the convolution kernel function is defined as: Where σ is the scale, x and y are the input images; Convolve the image frame data I(x,y) to obtain the blurred image L(x,y,σ) formula as follows: L(x,y,σ)=G(x,y,σ)*I(x,y) In the formula, * represents the convolution operation; Change the blur scale as follows: The scale factor k of each pyramid layer is set so that the Gaussian blur scale of each layer gradually increases. The expression is as follows: s i =k i s0 Where i represents the number of convolutions in the current layer; Construct a Gaussian pyramid. The specific method is as follows: Construct a number of blurred images with the same resolution and different blur levels into an image set; In the same image set, starting from the bottom image, gradually increase the blur scale, and each time the blur level is increased, a new image L(x, y, σ i ), the expression is as follows: L(x,y,σ i )=G(x,y,σ i )*I(x,y) In the mth image set, starting from the initial image, the image is blurred multiple times to generate images of different scales L[m,n], which are expressed as follows: L[m,n]=G(x,y,σ i )*L[m,n-1] Where n represents the index of the current scale in the picture set, and L[m,0] is the initial image of the mth picture set; Downsampling, the specific method is as follows: Select the last blurred image of the Gaussian pyramid for downsampling as the initial image of the next image set. The expression is as follows: L[m+1,0]=Downsample(L[m,n max ]) Among them, n max is the maximum label in the current image set. When m=0, L[0,0]=I(x,y) is the initial input image.

5. The method for optimizing the pose graph of a monocular camera of an unmanned aerial vehicle according to claim 2, wherein: Determine the candidate feature points. The specific method is as follows: Subtract Gaussian blurred images of different scales, and the calculation formula is as follows: DL[m,n]=L[m,n+1]-L[m,n] Traverse the points and select a 3×3×3 range for detection in the current scale DL[m,n], the previous scale DL[m,n-1] and the next scale DL[m,n+1] of the pixel to determine whether it is the grayscale maximum value of this area; if so, add it to the candidate feature point sequence as a local maximum.

6. The method for optimizing the pose graph of a drone monocular camera as claimed in claim 2, characterized in that: Accurately determine the position of the candidate feature points on the image frame. The specific method is as follows: Taylor expansion is used to perform quadratic fitting on the difference Gaussian function: Among them, x is the displacement vector of the key point, DL is the differential Gaussian value at the key point position, and They are the gradient and Hessian matrices of DL respectively; By solving the above equations, we can get the exact position of the key points: in, Used to indicate the location of candidate feature points.

7. The method for optimizing the pose graph of a drone monocular camera as claimed in claim 2, characterized in that: Eliminate low-contrast candidate feature points and edge response feature points. The specific method is as follows: An evaluation function is constructed through the two eigenvalues ​​of the Hessian matrix. Assume that the two eigenvalues ​​of the Hessian matrix are λ1 and λ2, and the characteristic ratio is: like r <Threshold1 Wherein, Threshold1 is the first set threshold; The candidate feature point is marked as an edge response point and removed from the candidate feature point list. The contrast value of the feature point is calculated as follows: like Wherein, Threshold2 is the second set threshold; If the candidate point is unstable, it is removed from the candidate point list.

8. The method for optimizing the pose graph of a drone monocular camera as claimed in claim 2, characterized in that: For discontinuous image frame data, the specific method for pose graph optimization is as follows: Calibrate discontinuous image frame data; For continuous image frame data, a first residual function is constructed; for discontinuous image frame data, a second residual function is constructed; the first residual function r1(θ i ,θ j ) and the second residual function r2(θ i ,θ j ) is expressed as follows: Among them, T(θ i ) and T(θ j ) represent the relative motion transformation matrices of sensor frames i and j respectively; t2v(T) is the form of converting the corresponding translation vector and rotation vector; is the expected value of the relative posture of adjacent nodes; The LM algorithm is used to adjust the attitude parameters of the UAV to minimize the overall value of the first residual function and the second residual function.

9. The method for optimizing the pose graph of a monocular camera of an unmanned aerial vehicle according to claim 8, characterized in that: Use the LM algorithm to adjust the drone's attitude parameters. The specific method is as follows: Construct the Hessian approximation matrix H and gradient function g, the expressions are as follows: H=J T J+λI Where J is the Jacobian matrix of the residual function with respect to the posture parameters, and I is the identity matrix; The gradient function g is expressed as follows: g=J T r Wherein, r is the first residual function and the second residual function; The Hessian matrix can be approximated by using the Jacobian matrix approximation, and then solving a system of linear equations to obtain the increments required to update the posture parameters. The expression is as follows: (J T J+λI)δθ=-J T r Solve an increment δθ to update the posture parameters as follows: θ←θ+δθ The updated step size can be obtained by adding the calculated increment to the current posture parameter. The error observation function is expressed as: By comparing the error values ​​before and after the update, the effect of the update can be judged.

10. The method for optimizing the pose graph of a drone monocular camera according to claim 9, wherein: If the error value becomes smaller after the update, reduce the LM parameter λ and use the Newton-Gaussian method to quickly approach the optimal solution; if the error value becomes larger, manually increase the LM parameter λ to allow the algorithm to use the gradient descent method more; The specific method is expressed as follows: λ←λ / v λ←λ×ν Among them, v>1; After iteration, if the error converges to the set range or reaches the set maximum number of iterations, the iteration is stopped and the current set of posture parameters θ is used. i Output as the optimal solution.

Citation Information

Patent Citations

  • Image depth estimation method and system based on CNN (Convolutional Neural Network) and depth filter

    CN108615244A

  • Pose estimation method based on RGB-D and IMU information fusion

    CN109993113A

  • Monocular vision odometer target pose detection method

    CN114964206A