A method for estimating real-time deviation of UAV taxiing based on visual geometry inference
By using visual geometric reasoning, a multi-coordinate system model and camera calibration are constructed to generate a bird's-eye view. By combining runway parallel constraints and the vanishing point method to fit the heading deviation, the problem of insufficient accuracy and robustness in UAV taxiing guidance is solved, and high-precision heading deviation estimation and system safety are improved.
Patent Information
- Application Number
- CN202611442207.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2046-09-17
AI Technical Summary
Existing UAV ground taxiing guidance methods are insufficient in terms of accuracy and robustness, especially in situations where GPS signals are blocked or complex scenarios make it difficult to achieve high-precision heading deviation estimation.
A visual geometric reasoning-based approach is adopted. By constructing a multi-coordinate system geometric model, calibrating camera parameters, generating a bird's-eye view, and using runway parallel constraint fitting to calculate the lateral offset, the heading deviation angle is estimated by combining the vanishing point method and the bird's-eye view fitting method. Finally, a smooth estimate is output through confidence-weighted time-series filtering.
It improves the accuracy and robustness of UAV taxiing deviation estimation, enables high-precision heading deviation estimation in complex scenarios, reduces estimation noise, and improves system safety.
Smart Images

Figure CN122963182B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the technical field of computer vision and UAV navigation, specifically relating to a real-time estimation method for UAV gliding deviation based on visual geometric reasoning. Background Technology
[0002] With the rapid development of UAV technology, fixed-wing UAVs are increasingly widely used in military reconnaissance, material transportation, and aerial surveying. However, the autonomous guidance of fixed-wing UAVs during the taxiing phase at airports still faces significant challenges. Unlike the autonomous flight phase in the air, the tolerance for lateral deviations during the taxiing phase is extremely low. UAVs must taxi along the runway centerline, and deviations exceeding the prescribed range may cause them to veer off the runway at high speeds, resulting in safety accidents.
[0003] Traditional UAV ground taxiing guidance primarily relies on GPS positioning and manual remote control. However, GPS in airport environments is often affected by signal blockage, multipath effects, and electromagnetic interference, resulting in positioning errors of several meters, making it difficult to meet the requirements of high-precision taxiing guidance. While differential GPS (DGPS) and real-time dynamic positioning (RTK) can improve accuracy to the centimeter level, they rely on ground reference station infrastructure, leading to high deployment costs and making them difficult to implement in remote or field airports. Inertial navigation systems (INS), although offering high short-term accuracy, suffer from accumulated errors, causing positioning drift during prolonged taxiing.
[0004] Vision-based runway detection methods offer a low-cost, self-contained guidance scheme. Existing methods mainly fall into two categories: one is based on traditional image processing methods, which use Hough transform, edge detection, etc. to extract runway lines, but lacks robustness in complex scenes such as low contrast and shadow occlusion; the other is based on deep learning methods, which directly regress runway line parameters through convolutional neural networks, improving detection accuracy, but still mainly remains at the detection level and fails to convert the detection results into accurate bias estimates for the controller. Summary of the Invention
[0005] To address the aforementioned shortcomings in existing technologies, this invention provides a real-time estimation method for UAV taxiing deviation based on visual geometric reasoning. This method solves the problems of insufficient accuracy in heading deviation estimation, estimation failure when runway lines are obstructed, and high noise in frame-by-frame estimation.
[0006] To achieve the aforementioned objectives, the present invention employs the following technical solution: a real-time estimation method for UAV gliding deviation based on visual geometric reasoning, comprising the following steps: S1. Construct a multi-coordinate system geometric model for estimating the gliding deviation of the UAV and calibrate the camera parameters; S2. Based on the camera parameters, perform inverse perspective transformation on the runway line detection results to generate a bird's-eye view; S3. In the bird's-eye view coordinate system, calculate the lateral offset based on the joint fitting of runway parallel constraints; S4. The vanishing point method and the bird's-eye view fitting method are combined to estimate the heading deviation angle; S5. Calculate the coordinates of the look-ahead point based on visual confidence. S6. Based on the lateral offset, heading deviation angle and look-ahead coordinates, perform confidence-weighted time-series filtering to output a smooth estimate.
[0007] Furthermore, S1 includes the following sub-steps: S11. Coordinate system definition: The world coordinate system W takes a fixed point on the Earth's surface as its origin. The axis points vertically upwards, and the runway coordinate system R takes the projection of the UAV directly below onto the runway centerline as its dynamic origin. The axis is along the positive direction of the runway centerline. The axis perpendicular to the runway is to the left as positive. The axis is perpendicular to the ground and points upwards; the camera coordinate system C has its origin at the camera's optical center. The optical axis is oriented towards the ground. axis, The axes are parallel to the row and column directions of the image, respectively. The pixel coordinate system I has its origin at the top left corner of the image, with the u-axis pointing horizontally to the right and the v-axis pointing vertically downwards. The transformation relationship between the coordinate systems is as follows: In the formula, Let these be the pixel coordinates of the point in the pixel coordinate system. Let the point be the three-dimensional coordinates in the camera coordinate system. Let the coordinates of the point be the three-dimensional coordinates in the body coordinate system. For the camera intrinsic parameter matrix, For fixed external parameters from the body to the camera, The transformation from the world to the organism. Let the point be the three-dimensional coordinates in the world coordinate system; S12, Camera Intrinsic Parameter Calibration: Solving the camera intrinsic parameter matrix by minimizing the reprojection error and distortion coefficient vector : In the formula, The equivalent focal length in the horizontal direction. The equivalent focal length in the vertical direction is... The radial distortion coefficient is used to describe the most significant radial deformation in the lens edge region. To correct for radial distortion coefficients with higher degrees of radial distortion, To further correct higher-order radial distortion coefficients far from the image center region, The tangential distortion coefficient describes the shift caused by the lens optical center not perfectly coinciding with the image center. This refers to the tangential distortion coefficient, which is offset in another direction due to the lens optical center not perfectly coinciding with the image center. The column coordinates of the principal points of the intrinsic parameter matrix. The row coordinates of the principal points of the intrinsic parameter matrix; Distortion correction is performed on all input raw distorted images to generate corrected distortion-free images. : In the formula, This is the raw, distorted image directly output from the camera. It is a distortion correction function; S13. Calculate the rotation matrix of the world coordinate system: Constructing the rotation matrix from camera to body based on installation parameters : In the formula, The pitch angle, For roll angle, Rotation angle around the Y-axis The basic rotation matrix, Rotation angle around the X-axis The basic rotation matrix; Rotation matrix from camera to body Rotation matrix of the machine body to the world coordinate system Chain multiplication yields the rotation matrix from the camera to the world coordinate system. : In the formula, Used to describe the complete rotation from the camera to the world, transforming any direction vector observed in the camera to the ground coordinate system.
[0008] Furthermore, S2 includes the following sub-steps: S21. Calculate the homography matrix: Construct the ground homography matrix based on world coordinates and translation vectors. : In the formula, World coordinate system The representation of the unit direction vector of the axis in the camera coordinate system. World coordinate system The representation of the unit direction vector of the axis in the camera coordinate system, let the translation vector be... Let be the position of the camera's optical center in the world coordinate system, where For the camera's optical center in the world coordinate system Offset in the axial direction For the camera's optical center in the world coordinate system Offset in the axial direction For the camera's optical center in the world coordinate system Offset in the axial direction It is the transpose symbol; S22. Conversion from image pixel coordinates to ground coordinates: pixel coordinates Preprocessing is performed, including removing radial and tangential distortions, to generate preprocessed pixel coordinates. Then, the image plane coordinates are back-projected onto the normalized plane using the intrinsic parameter matrix to generate normalized image plane coordinates. : Utilize the ground Constraints, Solving for Depth Scale Factor : In the formula, , and Rotation matrix The three elements in the third row; Calculate ground coordinates : S23. Generate a bird's-eye view: Based on the method of converting image pixel coordinates to ground coordinates, the runway line detection results are subjected to inverse perspective transformation and converted into a set of physical coordinate points in a bird's-eye view coordinate system. ; The specific method of inverse perspective transformation is as follows: Calculate the pixel coordinates of the bird's-eye view Output grayscale value : In the formula, The input image is after distortion correction. This is a homogeneous representation of the pixel coordinates of the bird's-eye view. Indicates bilinear interpolation; Pixel coordinates of the bird's-eye view Mapping back to the corresponding floating-point pixel coordinates in the original perspective input image : .
[0009] Furthermore, S3 includes the following sub-steps: S31. Parallel constraint combined linear fitting, calculate the optimal fitting parameters: Joint least squares estimation is used, and a common slope is fitted to the left and right runway lines. Let the set of ground coordinate points of the left runway line be... The set of ground coordinate points for the right runway line is The joint objective function is as follows: In the formula, The common slope of the left and right runway lines. The intercept of the left runway line, This is the intercept of the right runway line. and For the left runway line The ground physical coordinates of each detection point after inverse perspective transformation. , This represents the total number of valid detection points along the left runway line. and For the right runway line Ground physical coordinates of each detection point , The total number of valid detection points on the right runway line. , and Taking the partial derivatives of each and setting them to zero, we get... Closed-form solution Optimal intercept estimate of the left runway line Optimal intercept estimate of the right runway line : In the formula, This represents the average lateral coordinates of all points along the left runway line. This represents the average lateral coordinates of all points along the right runway line. The average Y-coordinate of all detection points on the left runway line. The average Y-coordinate of all detection points on the right runway line; S32. Perform a runway width consistency check based on the optimal fitting parameters: Geometric rationality verification is performed based on the optimal fitting parameters to prevent incorrect detection of runway width due to runway line misdetection. The specific expression is: Set allowable error and runway standard values Determine whether it satisfies If yes, proceed to S34; otherwise, proceed to S33. S33. Calculate the lateral offset based on the optimal fitting parameters: Calculate the x-coordinate of the centerline directly below the drone. Then, the lateral offset of the UAV can be calculated. : S34. Calculate the lateral offset through unilateral occlusion degradation processing: judge and If the condition is met, then both sides are deemed unreliable, and the lateral offset of the UAV in this frame is determined. Using the lateral offset of the drone from the previous moment, the visual confidence of the current frame is adjusted. ; If not, then determine If the conditions are met, then the left runway line is deemed reliable, and unilateral compensation is performed using the left runway line. Let: In the formula, This is the drone's offset. The visual confidence score for the current frame. This indicates that the confidence level in a one-sided compensation scenario is 60% of that in a normal bilinear detection scenario. If not, then the right runway line is deemed reliable, and unilateral compensation is performed using the right runway line. Let: .
[0010] Furthermore, S4 includes the following sub-steps: S41. Calculate the heading deviation angle using the vanishing point method: Perform RANSAC robust straight-line fitting on the left and right runway lines respectively. The intersection of the two lines is the vanishing point. The specific expression is: In the formula, This is the linear coefficient vector of the left runway line in pixel coordinates. This is the linear coefficient vector of the right runway line in pixel coordinates. This is the first normal vector component of the left runway line. This is the second normal vector component of the left runway line. The offset term for the left runway line. This is the first normal vector component of the right runway line. This is the second normal vector component of the right runway line. The offset term for the right runway line; The vanishing point pixel coordinates are obtained by normalizing the homogeneous coordinates: In the formula, The pixel column coordinates of the vanishing point. The pixel row coordinates of the vanishing point; Heading deviation angle calculated based on vanishing point The specific expression is: S42. Calculate the heading deviation angle using the bird's-eye view fitting method: Heading deviation angle calculated using the bird's-eye view fitting method The specific expression is: S43. Calculate the adaptive fusion weights: Calculate adaptive fusion weights The specific expression is: In the formula, Image width, Image height, To obtain the minimum value; S44. Calculate the final heading deviation angle through weighted fusion: Calculate the final heading deviation angle The specific expression is: .
[0011] Furthermore, S5 includes the following sub-steps: S51. Adaptive look-ahead distance calculation: Calculate the look-ahead distance of the current frame The specific expression is: In the formula, For the minimum look-ahead distance, For speed adaptive coefficient, This represents the drone's current gliding speed. This is the confidence level compensation coefficient. The visual confidence level of the current frame; S52. Calculation of look-ahead coordinates: The unit vector of the runway centerline in the bird's-eye view coordinate system The specific expression is: Foresight coordinates The specific expression is: Lateral deviation from the lookout point to the runway centerline The specific expression is: In the formula, Let x be the horizontal coordinate of the centerline at the look-ahead point. , The intercept of the runway centerline. Let x be the horizontal coordinate of the look-ahead point. The vertical coordinate of the look-ahead point.
[0012] Furthermore, S6 includes the following sub-steps: S61. Calculate the smoothed value by applying a confidence-weighted sliding window filter to the lateral offset, heading deviation angle, and look-ahead coordinates: For each frame, starting from the current frame, use the nearest... N The frame's lateral offset and the visual confidence of each frame are used to perform a time-decay and confidence-weighted sliding window filter to calculate the smoothed value of the lateral offset. : In the formula, For the first Horizontal offset of the frame For the current frame, For the number of steps to rewind time, For exponential decay time weighting, The attenuation coefficient is... For the first Visual confidence of a frame; Apply time decay and confidence-weighted sliding window filtering to the heading deviation angle, and calculate the filtered smooth value of the heading deviation angle. : In the formula, For the first The heading deviation angle of the frame; Apply time decay and confidence-weighted sliding window filtering to the lookahead coordinates and calculate the filtered smoothing value of the lookahead coordinates. : In the formula, For the first The coordinates of the lookahead point of the frame; S62. Perform abnormal frame determination based on the filtered smoothing value: If the lateral offset and heading deviation angle of the current frame meet any of the following abnormal conditions, then the current frame is determined to be an abnormal frame, and the current frame is set to an abnormal frame. Lateral offset filter smoothing value ; The abnormal conditions include: In the formula, For the current frame The lateral offset, For the first The frame's lateral offset filtering smoothing value. The threshold for determining lateral offset anomalies. For the current frame The heading deviation angle, For the first The smoothed value of the frame's heading deviation angle filter. The threshold for determining abnormal heading deviation; S63. Calculate the overall reliability score: Calculate the overall reliability score for the current frame. : In the formula, As the first weighting coefficient, This is the second weighting coefficient. This is the third weighting coefficient. For the most recent N The mean detection confidence score output by the frame runway line detector. To determine the degree to which the runway geometric constraints are satisfied. The score is given for inter-frame temporal consistency. In the formula, To obtain the maximum value; S64, Output Smoothing Estimation: Output smoothing estimate, for direct use by the correction controller, output smoothing estimate. The specific expression is: .
[0013] The beneficial effects of this invention are as follows: (1) In the first stage, this invention establishes an accurate mapping relationship between the pixel coordinate system and the runway coordinate system through multi-coordinate system geometric modeling and rigorous camera calibration. By using the ground plane assumption, a single-lens camera can complete the reasoning of three-dimensional spatial position, which solves the problem of large deviation estimation error caused by the unclear definition of coordinate system in traditional methods.
[0014] (2) In the second stage, this invention innovatively introduces the parallel constraint of the runway lines into the straight line fitting process and uses the joint least squares method to estimate the common slope of the left and right runway lines simultaneously. Compared with the independent fitting method, it has stronger robustness in occlusion and noise scenarios. Especially when one runway line is not visible, the centerline is inferred by using the prior of the standard runway width, realizing the adaptive degradation processing of the estimation method for different occlusion levels.
[0015] (3) In the third stage, this invention proposes for the first time an adaptive fusion heading estimation strategy combining the vanishing point method and the bird's-eye view fitting method: the vanishing point method utilizes the principle of parallel line convergence, is insensitive to near occlusion but is limited by the vanishing point's boundary; the bird's-eye view fitting method is well-adapted to large angle deviations but is greatly affected by the quality of near images. The two methods achieve optimal estimation in various scenarios through adaptive fusion based on reliability weights of the vanishing point boundary distance.
[0016] (4) In the fourth stage, the present invention proposes a confidence-time dual-weight sliding window filtering strategy, which introduces the frame-by-frame confidence of visual detection as a weight factor into the temporal filtering, ensuring that the impact of low-quality detection frames on the estimation results matches their reliability, and significantly reduces estimation noise compared to pure time-weighted filtering.
[0017] (5) In the fifth stage, the present invention uses an adaptive look-ahead distance strategy to comprehensively consider the two factors of the UAV's gliding speed and visual confidence. When the vision deteriorates, the look-ahead distance is automatically extended, which is equivalent to introducing visual quality feedback at the control level. This makes the correction controller automatically tend to a conservative strategy when the visual conditions are poor, thereby improving the system's safety. Attached Figure Description
[0018] Figure 1 This is a flowchart of a real-time estimation method for UAV gliding deviation based on visual geometric reasoning according to the present invention.
[0019] Figure 2 This is a schematic diagram of a multi-coordinate system geometric model according to an embodiment of the present invention.
[0020] Figure 3 This is a schematic diagram illustrating the principle of inverse perspective transformation and the generation of a bird's-eye view in an embodiment of the present invention.
[0021] Figure 4 This is a schematic diagram of the runway parallel constraint joint straight line fitting and lateral offset calculation in an embodiment of the present invention. Detailed Implementation
[0022] The specific embodiments of the present invention are described below to enable those skilled in the art to understand the present invention. However, it should be understood that the present invention is not limited to the scope of the specific embodiments. For those skilled in the art, various changes are obvious as long as they are within the spirit and scope of the present invention as defined and determined by the appended claims. All inventions utilizing the concept of the present invention are protected.
[0023] like Figure 1 As shown, in one embodiment of the present invention, a real-time estimation method for UAV gliding deviation based on visual geometric reasoning includes the following steps: S1. Construct a multi-coordinate system geometric model for estimating the gliding deviation of the UAV and calibrate the camera parameters; S2. Based on the camera parameters, perform inverse perspective transformation on the runway line detection results to generate a bird's-eye view; S3. In the bird's-eye view coordinate system, calculate the lateral offset based on the joint fitting of runway parallel constraints; S4. The vanishing point method and the bird's-eye view fitting method are combined to estimate the heading deviation angle; S5. Calculate the coordinates of the look-ahead point based on visual confidence. S6. Based on the lateral offset, heading deviation angle and look-ahead coordinates, perform confidence-weighted time-series filtering to output a smooth estimate.
[0024] S1 includes the following steps: S11. Coordinate system definition: In this embodiment, the transformation relationship between the four coordinate systems is as follows: Figure 2 As shown, the world coordinate system W takes a fixed point on the Earth's surface as its origin. The axis is vertically upward. The axis is the vertical axis of the world coordinate system W, and the runway coordinate system R takes the projection of the UAV directly below the runway centerline as its dynamic origin. The axis is along the positive direction of the runway centerline. The axis is the horizontal axis of the runway coordinate system. The axis perpendicular to the runway is to the left as positive. The axis is the vertical axis (R) of the runway coordinate system. The axis is perpendicular to the ground and pointing upwards. The axis is the vertical axis of the runway coordinate system R, and the camera coordinate system C has its origin at the camera's optical center. The optical axis is oriented towards the ground. The axis is the vertical axis of the camera coordinate system C. axis, The axes are parallel to the row and column directions of the image, respectively. The axis is the horizontal axis of the camera coordinate system C. The axes are the vertical axis of the camera coordinate system C, and the pixel coordinate system I has its origin at the top left corner of the image, with the horizontal axis to the right and the vertical axis downwards. The transformation relationship between the coordinate systems is as follows: In the formula, Let these be the pixel coordinates of the point in the pixel coordinate system. Let the point be the three-dimensional coordinates in the camera coordinate system. Let the coordinates of the point be the three-dimensional coordinates in the body coordinate system. For the camera intrinsic parameter matrix, For fixed external parameters from the body to the camera, The transformation from the world to the aircraft body is determined by the aircraft's attitude. Let the point be the three-dimensional coordinates in the world coordinate system; S12, Camera Intrinsic Parameter Calibration: The Zhang calibration method is adopted, which uses a standard checkerboard target to acquire calibration images from multiple angles. The specific method is as follows: Solving the camera intrinsic parameter matrix by minimizing the reprojection error and distortion coefficient vector : In the formula, The equivalent focal length in the horizontal direction. The equivalent focal length in the vertical direction is... The radial distortion coefficient is used to describe the most significant radial deformation in the lens edge region. To correct for radial distortion coefficients with higher degrees of radial distortion, To further correct higher-order radial distortion coefficients far from the image center region, The tangential distortion coefficient describes the shift caused by the lens optical center not perfectly coinciding with the image center. This refers to the tangential distortion coefficient, which is offset in another direction due to the lens optical center not perfectly coinciding with the image center. The column coordinates of the principal points of the intrinsic parameter matrix. The row coordinates of the principal points of the intrinsic parameter matrix; After calibration, distortion correction is performed on all input raw distorted images to generate corrected distortion-free images. : In the formula, This is the raw, distorted image directly output from the camera. The distortion correction function; in this embodiment, the corrected distortion-free image As the distortion-corrected input image This is the input prerequisite for the subsequent S2 inverse perspective transformation and S4 line fitting.
[0025] S13. Calculate the rotation matrix of the world coordinate system: Constructing the rotation matrix from camera to body based on installation parameters : In the formula, The pitch angle, For roll angle, Rotation angle around the Y-axis The basic rotation matrix is used to describe the coordinate transformation caused by the camera's pitch angle. Rotation angle around the X-axis The basic rotation matrix is used to describe the coordinate transformation caused by the camera roll mounting angle; Rotation matrix from camera to body Rotation matrix of the machine body to the world coordinate system Chain multiplication yields the rotation matrix from the camera to the world coordinate system. : In the formula, This describes the complete rotation from the camera to the world, transforming any direction vector observed from the camera to the ground coordinate system. In this embodiment, It is constructed in real time from the aircraft's current yaw, pitch, and roll angles, describing the real-time rotation from the aircraft to the world. Describes the fixed rotation from the camera to the body, after the two are cascaded. It directly describes the complete rotation from the camera to the world, transforming any direction vector observed in the camera to the ground coordinate system.
[0026] refer to Figure 3 This step transforms the runway line detection results in the pixel coordinate system to the ground coordinate system at the real physical scale. S2 includes the following sub-steps: S21. Calculate the homography matrix: Construct the ground homography matrix based on world coordinates and translation vectors. : In the formula, World coordinate system The representation of the unit direction vector of the axis in the camera coordinate system. World coordinate system The representation of the unit direction vector of the axis in the camera coordinate system, in this embodiment, is based on the fact that the ground plane satisfies... Therefore, the intersection point of the ray emitted from the camera center and the ground can be uniquely determined by the homography matrix. Let the rotation matrix from the camera to the world coordinate system be... , , and All are three-dimensional column vectors. World coordinate system The representation of the unit direction vector of the axis in the camera coordinate system, i.e., the world coordinate system. The direction corresponds to the orientation in the camera coordinate system. World coordinate system The representation of the unit direction vector of the axis in the camera coordinate system. World coordinate system The representation of the unit direction vector of the axis in the camera coordinate system, let the translation vector be... Let be the position of the camera's optical center in the world coordinate system, where For the camera's optical center in the world coordinate system Offset in the axial direction For the camera's optical center in the world coordinate system Offset in the axial direction For the camera's optical center in the world coordinate system Offset in the axial direction It is the transpose symbol; Since all points on the ground plane satisfy 3D world coordinates Degenerate into two dimensions , corresponding The components are always zero and naturally cancel each other out; therefore, the homography matrix only needs to be zero. , and These three columns can fully describe the mapping from image coordinates to ground coordinates.
[0027] S22. Conversion from image pixel coordinates to ground coordinates: pixel coordinates Preprocessing is performed, including removing radial and tangential distortions, to generate preprocessed pixel coordinates. Then, the image plane coordinates are back-projected onto the normalized plane using the intrinsic parameter matrix to generate normalized image plane coordinates. : In the above formula, for The inverse matrix is used to eliminate the effects of focal length scaling and principal point offset, and to convert the pixel coordinates... Convert to normalized image plane coordinates and Normalized coordinates are equivalent to the imaging coordinates when the focal length is assumed to be 1, eliminating differences in camera models and serving as the standard intermediate representation for subsequent 3D geometric calculations.
[0028] Utilize the ground Constraints, Solving for Depth Scale Factor : In the formula, , and Rotation matrix The three elements in the third row are the column vectors. The transpose of this equation yields: The geometric meaning of the above formula is that the normalized ray direction is in The projection component on the axis is at its maximum when the camera is looking down vertically; it approaches zero when the ray is horizontal. , The camera's installation height is the point at which the ray originates from the camera's optical center and travels to the ground. Depth scaling factor required for intersection .
[0029] Calculate ground coordinates : In the formula, The inverse of the rotation matrix is equal to its transpose, requiring very little computation, and it rotates the normalized camera coordinates to the world coordinate system; depth scaling factor Scale the normalized direction vector to the actual physical distance; subtract The project completes the translation of the coordinate system origin, ultimately obtaining the physical coordinates of the ground point in the runway coordinate system. The Z component is always 0, which is consistent with the ground plane assumption.
[0030] S23. Generate a bird's-eye view: Based on the method of converting image pixel coordinates to ground coordinates, the runway line detection results are subjected to inverse perspective transformation and converted into a set of physical coordinate points in a bird's-eye view coordinate system. , where the coordinate unit is meters; In this embodiment, the physical coordinate point set in the bird's-eye view coordinate system is used instead. The process is as follows: Assuming a total of [number] tests were detected on the left runway line. Image coordinates A total of [number] were detected on the right runway line. Image coordinates The set of ground coordinate points for the left runway line is calculated point by point. : In the formula, This describes the method for converting image pixel coordinates to ground coordinates in S22. and For the left runway line The ground physical coordinates of each detection point after inverse perspective transformation. , This represents the total number of valid detection points along the left runway line. and For the right runway line Ground physical coordinates of each detection point , The total number of valid detection points for the right runway line is given, and similarly, the set of ground coordinate points for the right runway line is obtained. .
[0031] While batch-transforming the detection points, an inverse perspective transformation is performed on the entire input image to generate a complete bird's-eye view image for visualization and auxiliary detection. The specific method of the inverse perspective transformation is as follows: Because forward mapping can create holes, the core idea for generating a bird's-eye view is reverse mapping. Instead of pushing every pixel of the original perspective view into the bird's-eye view, it iterates through the pixel coordinates of the bird's-eye view. ,pass The pixel's grayscale value is obtained by reverse-looking up its corresponding floating-point coordinates in the original perspective image and then performing bilinear interpolation sampling. This involves calculating the pixel coordinates in the bird's-eye view. Output grayscale value : In the formula, The input image, after distortion correction, is the source image for the runway line detection results. The runway line detection results are from... The extracted track line pixel coordinates This is a homogeneous representation of pixel coordinates in a bird's-eye view. Setting the third dimension to 1 is the standard way to write homogeneous coordinates, allowing matrix multiplication to simultaneously perform linear transformations and translations. Indicates bilinear interpolation; Pixel coordinates of the bird's-eye view Mapping back to the corresponding floating-point pixel coordinates in the original perspective input image : .
[0032] By dividing by homogeneous components After normalization, non-integer floating-point pixel coordinates are obtained. The weighted average of the four integer neighboring pixels around the floating-point coordinates is then used to eliminate the jaggedness introduced by the inverse mapping and ensure image quality.
[0033] In S3, the lateral offset is the most direct input error signal for the UAV's autonomous taxiing correction controller, describing the lateral distance of the UAV's current position relative to the runway centerline. (Reference) Figure 4 The core idea of this step is that in the bird's-eye view coordinate system generated in S2, the runway lines have been corrected to approximately parallel vertical line segments. The x-coordinate of the midpoint between two parallel lines is the centerline position, and the distance between the centerline x-coordinate and the UAV's fuselage centerline is the lateral offset. Compared to directly estimating the offset in the original perspective view, the advantage of the bird's-eye view coordinate system is that the coordinate unit is the actual physical distance offset, which can be directly input into the controller; the parallel constraint is explicitly valid in the bird's-eye view, facilitating joint estimation using slope consistency constraints. S3 includes the following sub-steps: S31. Parallel constraint combined linear fitting, calculate the optimal fitting parameters: In a bird's-eye view coordinate system, the left and right runway lines ideally satisfy a strict parallel constraint, meaning they have the same slope. This embodiment employs joint least squares estimation and simultaneously fits a common slope to the left and right runway lines. Let the set of ground coordinate points for the left runway line be... The set of ground coordinate points for the right runway line is The joint objective function is as follows: In the formula, The slope is the common slope of the left and right runway lines, and the parallel constraint determines that the two lines share the same slope value. The intercept of the left runway line, in physical terms, is the lateral position of the left runway line relative to the centerline of the drone fuselage; The intercept of the right runway line is the right runway line at... The x-coordinate of the location, and For the left runway line The ground physical coordinates of each detection point after inverse perspective transformation. , This represents the total number of valid detection points along the left runway line. and For the right runway line Ground physical coordinates of each detection point , The total number of valid detection points on the right runway line. , and Taking the partial derivatives of each and setting them to zero, we get... Closed-form solution Optimal intercept estimate of the left runway line Optimal intercept estimate of the right runway line : In the formula, This represents the average lateral coordinates of all points along the left runway line, indicating the overall lateral position of the left runway line. This represents the average lateral coordinates of all points along the right runway line, indicating the overall lateral position of the right runway line. This represents the average Y-coordinate of all detection points along the left runway line, i.e., the average distance between the sampling points along the runway direction. This is the mean Y-coordinate of all detection points on the right runway line. The key advantage of joint fitting over independent fitting is that when the left runway line is partially obscured, independent fitting suffers from large slope estimation errors due to fewer samples and greater noise on the left line. Joint fitting utilizes a large number of reliable points on the right line to help determine the common slope, while only a few points are needed to accurately estimate the intercept on the left line. This significantly improves robustness in occluded scenarios; S32. Perform a runway width consistency check based on the optimal fitting parameters: Obtain the optimal intercept estimate for the left runway line. Optimal intercept estimate of the right runway line Afterwards, before calculating the lateral offset, the geometric rationality of the detection results must be verified to prevent incorrect runway line detection, such as misidentifying ground markings or shadow edges as runway lines, or outputting incorrect offsets due to severe occlusion causing abnormal intercept estimation. The specific expression is: Set up an error detection mechanism to determine whether the requirements are met. , As the allowable error threshold, If the value is the standard value for the runway, proceed to S34; otherwise, proceed to S33. In this embodiment, a detection mechanism with permissible error is used to determine whether the width is abnormal. If the width is abnormal, it is considered to be triggered, indicating that the current spacing between the left and right runway lines does not meet the preset runway width range, and the combination of the two intercepts is no longer reliable. Therefore, it enters S34 to judge the validity of the intercept estimate and the runway width calculated from the left and right intercepts. This intercepts geometrically unreasonable results before calculating the lateral offset, and moves the trigger point of the confidence scoring mechanism to the fitting stage, rather than waiting until the output layer to find the abnormality, thereby ensuring the quality of subsequent inputs. S33. Calculate the lateral offset based on the optimal fitting parameters: Calculate the x-coordinate of the centerline directly below the drone. Then, the lateral offset of the UAV can be calculated. : The above formula is obtained by the arithmetic mean of the left and right intercepts, which is the defining conclusion of the centerline intercept of parallel lines; when the drone is exactly directly above the centerline, , Therefore ; When the center line is on the right side of the drone, it means the drone is off to the left. At that time, the drone veered to the right.
[0034] In this embodiment, Describe where the centerline is and the drone's offset. Describe how much the drone has deviated from its original position. This indicates that the drone is veering to the left. It indicates a rightward lean.
[0035] S34, Unilateral occlusion degradation treatment: judge and If the condition is met, then both sides are deemed unreliable, indicating that the optimal intercept estimates for the left and right runway lines are unreliable, and the lateral offset of the UAV in this frame is considered unreliable. Using the lateral offset of the drone from the previous moment, the visual confidence of the current frame is adjusted. At this point, it is extremely low. The value ensures that the weight of the extrapolation estimate in the S6 filter is almost negligible, preventing error accumulation from misleading the controller when there is no visual input for a long time.
[0036] If not, then determine If the conditions are met, then the left runway line is deemed reliable, and unilateral compensation is performed using the left runway line. Let: In the formula, The visual confidence score for the current frame. This indicates that the confidence level in a one-sided compensation scenario is 60% of that in a normal bilinear detection scenario. If not, then the right runway line is deemed reliable, and unilateral compensation is performed using the right runway line. Let: In S4, the heading deviation angle describes the angle between the current flight direction of the UAV and the direction of the runway centerline. It is the second core input of the correction controller. Unlike the lateral offset, the heading deviation describes the angle of deviation. Together, they constitute a complete deviation state vector.
[0037] Estimating heading deviation angles using either method alone has limitations: the vanishing point method utilizes the perspective principle that parallel runway lines converge at a point in the image, offering high accuracy for clear distant scenes, but it becomes completely ineffective when the vanishing point extends beyond the image boundary; the bird's-eye view fitting method directly measures the slope of the runway lines in the bird's-eye view, independent of whether the vanishing point is within the image, and adapts well to large deviations, but is significantly affected by the quality of nearby images and occlusion. This step addresses these complementary characteristics by proposing an adaptive fusion strategy. It calculates the distance from the vanishing point to the image boundary in real time as a reliability weight, dynamically determining the contribution ratio of the two methods to achieve optimal estimation across the entire deviation range. S4 includes the following sub-steps: S41. Calculate the heading deviation angle using the vanishing point method: The vanishing point method is based on perspective geometry principles. Parallel runway lines converge at the vanishing point when extended to infinity in an image. The degree to which the vanishing point deviates from the image's central axis directly quantifies the heading deviation. In this embodiment, RANSAC robust straight-line fitting is performed on the left and right runway lines respectively. The intersection of the two lines is the vanishing point. The specific expression is: In the formula, This is the linear coefficient vector of the left runway line in pixel coordinates. Let be the vector of line coefficients for the right runway line in pixel coordinates. Each line is represented by the general formula. This is the first normal vector component of the left runway line. The second normal component of the left runway line describes the orientation of the line. The offset term for the left runway line determines the position of the line in the image. This is the first normal vector component of the right runway line. This is the second normal vector component of the right runway line. The offset term for the right runway line. and Cross product result It belongs to a three-dimensional homogeneous column vector. Its first two components are the unnormalized values of the vanishing point coordinates, and the third component is the normalization factor, which is equal to the magnitude of the cross product of the direction vectors of the two lines. When the two lines are parallel, this value is zero. The vanishing point pixel coordinates are obtained by normalizing the homogeneous coordinates: In the formula, The pixel column coordinates of the vanishing point. These are the pixel row coordinates of the vanishing point; together they describe the location of the vanishing point in the image. Heading deviation angle calculated based on vanishing point The specific expression is: When the drone travels along the runway centerline, the vanishing point lies precisely on the horizontal centerline of the image. , When the drone veers to the left, the vanishing point shifts to the right. , The opposite is true when it leans to the right.
[0038] S42. Calculate the heading deviation angle using the bird's-eye view fitting method: Bird's-eye view fitting is suitable for scenarios with large deviations or obvious near-end features. In the bird's-eye view coordinate system, the runway direction has been corrected to be nearly vertical, and the common slope of the left and right runway lines is... The heading deviation angle directly reflects the alignment between the drone and the runway, calculated using a bird's-eye view fitting method. The specific expression is: When the drone is perfectly aligned, The runway lines are almost vertical. When the drone veers to the right For finite positive values, When the drone veers to the left Negative value .
[0039] Bird's-eye view fitting is not limited by whether the vanishing point is within the image range, making it suitable for scenarios with large deviations. However, when the runway line near the drone is obscured, small sampling points with the Y coordinate are missing. The estimation error is relatively large.
[0040] S43. Calculate the adaptive fusion weights: Both methods have their limitations and require dynamic weight allocation based on the current scene. The reliability of the vanishing point method depends on whether the vanishing point is within the effective range of the image; therefore, the reliability is quantified by the distance of the vanishing point from the image boundary. The reliability of the vanishing point method depends on whether the vanishing point is within the effective range of the image, and adaptive fusion weights are calculated accordingly. The specific expression is: In the formula, Image width, Image height, To achieve the minimum value; when the distance from the vanishing point to the image boundary is greater than 10% of the image size, The vanishing point method is completely reliable; however, when the vanishing point is outside the image, , The entire process was done using a bird's-eye view method. This resulted in... Then, the two heading estimation results can be weighted and fused according to this weight.
[0041] S44. Calculate the final heading deviation angle through weighted fusion: Calculate the final heading deviation angle The specific expression is: .
[0042] When the runway lines clearly extend to the far end Heading estimation mainly relies on the vanishing point method; however, in foggy weather when distant objects are blurred, →0 It automatically switches to the bird's-eye view method.
[0043] S5 includes the following steps: S51. Adaptive look-ahead distance calculation: The look-ahead distance for the current frame is calculated by comprehensively considering two factors: the drone's taxiing speed and the visual confidence level of the current frame. Specifically, the look-ahead distance is the physical distance from the look-ahead point along the runway direction to the drone's current position. The specific expression is: In the formula, The minimum look-ahead distance is defined as the lower bound of the look-ahead distance, ensuring that the controller can still anticipate a certain distance forward even when stationary or at low speeds, preventing control oscillations caused by tracking points being too close. Its value is adjusted based on the UAV's size and minimum braking capability. This is the speed adaptive coefficient, describing the rate at which the look-ahead distance increases with speed. The faster the speed, the more far the path information needs to be predicted in advance. The larger the value, the more sensitive it is to speed. The current gliding speed of the drone is obtained from the onboard speed sensor or optical flow estimation. The confidence compensation coefficient describes the extent of the additional increase in look-ahead distance when visual quality deteriorates. The visual confidence score for the current frame is determined by comprehensively considering the number of runway line detection points, the RANSAC in-point ratio, and the width consistency score. This indicates the highest testing quality. This indicates that the detection has completely failed. The term converts confidence level into degree of degradation; the worse the visual perception, the larger the compensation term and the longer the look-ahead distance. S52. Calculation of look-ahead coordinates: The unit vector of the runway centerline in the bird's-eye view coordinate system The specific expression is: Foresight coordinates The specific expression is: Lateral deviation from the lookout point to the runway centerline The specific expression is: In the formula, Let x be the horizontal coordinate of the centerline at the look-ahead point. , The intercept of the runway centerline. Let x be the horizontal coordinate of the look-ahead point. Here is the longitudinal coordinate of the look-ahead point. In this embodiment, The meaning is in the vertical position The lateral coordinates of the runway centerline at the location of the look-ahead point (i.e., the location of the look-ahead point). Calculating the lateral deviation from the look-ahead point to the runway centerline is to convert the visual detection results into a pre-aiming error that the controller can directly use, enabling the UAV to correct its gliding direction smoothly and in advance, avoiding lag or oscillation caused by relying solely on the deviation of the current position.
[0044] In S6, this step first performs a double-weighted sliding window filter on the current frame to obtain a provisional smoothing value, then uses dynamic anomaly detection to determine whether to adopt this value, and finally outputs a reliability score. S6 includes the following sub-steps: S61. Calculate the smoothed value by applying a confidence-weighted sliding window filter to the lateral offset, heading deviation angle, and look-ahead coordinates: For each frame, starting from the current frame, use the nearest... N The frame's lateral offset and the visual confidence of each frame are used to perform a time-decay and confidence-weighted sliding window filter to calculate the smoothed value of the lateral offset. : In the formula, For the first Horizontal offset of the frame This is the current frame, directly output by S3, and has not yet been filtered. In this embodiment, the number of time backtracking steps is... N Frames N The value determines the system's temporal memory depth and the sliding window length. N Indicates the continuous components participating in the current filter. N frame, N A larger value results in better smoothing but slower response. Its value is tuned based on the desired level of timing smoothing and control bandwidth requirements. For exponential decay time weighting, The larger and older the historical frame, the smaller the weight decay; recent frames have higher weights, and distant frames have lower weights. The attenuation coefficient controls the attenuation rate of historical frame weights. The larger the value, the stronger the dominance of near-frames, the more sensitive the system is to the latest estimate, but the weaker its noise resistance. For the first The visual confidence of a frame is such that historical frames with better detection quality account for a higher proportion in the weighted average. The advantage of dual weighting here is that... The smaller the size, the longer the time period, and The smaller the value, the worse the detection quality of the historical frames; the overall weight... The lower the value, the smaller its contribution to the current estimate. Compared to pure temporal decay filtering, this mechanism can automatically suppress the influence of low-quality frames and maintain estimation stability in visually degraded scenarios. Parameters N and It can be independently tuned according to the device model and scenario, with no coupling between the two. Complete the... After filtering, the heading deviation angle and forward-looking perspective Perform the same filtering structure to output the smoothed heading deviation angle and look-ahead point. Apply time decay and confidence-weighted sliding window filtering to the heading deviation angle and calculate the filtered smoothed value of the heading deviation angle. : In the formula, For the first The heading deviation angle of the frame is the heading deviation angle estimated by S4; Apply time decay and confidence-weighted sliding window filtering to the lookahead coordinates and calculate the filtered smoothing value of the lookahead coordinates. : In the formula, For the first The lookahead coordinates of the frame are obtained from the lookahead coordinates calculated by S52, and their two components are... and Performing scalar filtering separately is equivalent to filtering the entire vector; the three quantities share the same set of parameters. N , and Each quantity filter is independent and does not interfere with the others.
[0045] S62. Perform abnormal frame determination based on the filtered smoothing value: If the lateral offset and heading deviation angle of the current frame meet any of the following abnormal conditions, it is determined to be an abnormal frame, will not participate in the timing update, and the current frame will be... Lateral offset filter smoothing value Record abnormal frame flags for subsequent confidence scoring; two thresholds. , All values are positive and can be determined independently based on the aircraft's dynamic parameters and camera frame rate.
[0046] The abnormal conditions include: In the formula, For the current frame The lateral offset is directly output by S3 and has not been filtered. For the first The frame's lateral offset is filtered and smoothed; using the smoothed result as a reference can suppress the cumulative propagation of noise. The threshold for lateral offset anomaly detection is determined by the UAV's maximum lateral acceleration and the inter-frame time interval, reflecting the physical upper limit of lateral position achievable between adjacent frames. For the current frame The heading deviation angle is output by S4. For the first The smoothed value of the frame's heading deviation angle filter. The threshold for judging abnormal heading deviation is determined by the maximum yaw rate of the UAV and the inter-frame time interval. S63. Calculate the overall reliability score: To provide a global quality metric for the downstream error correction controller, this method linearly combines three dimensions—detection confidence, geometric constraints, and temporal consistency—to obtain a comprehensive reliability score for the current frame. This score is then used by the error correction controller to assess the estimation quality. Specifically, the comprehensive reliability score for the current frame is calculated... : In the formula, As the first weighting coefficient, This is the second weighting coefficient. This is the third weighting coefficient. For the most recent N The mean detection confidence score output by the frame runway line detector directly reflects the average quality of the detection results under the current visual conditions. It is natively output by the front-end detection network and requires no additional calculation. This factor, representing the degree to which runway geometric constraints are satisfied, can effectively identify frames with strong texture interference. The score is given for inter-frame temporal consistency. The closer the value is to 1, the more reliable the current output is; the downstream correction controller can then decide to adopt a three-level correction strategy: normal, degraded, or failed.
[0047] In the formula, To obtain the maximum value; S64, Output Smoothing Estimation: Output smoothing estimate, for direct use by the correction controller, output smoothing estimate. The specific expression is: .
[0048] In the description of this invention, the above are merely preferred embodiments and are not intended to limit the scope of protection of this invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A real-time estimation method for UAV gliding deviation based on visual geometric reasoning, characterized in that, Includes the following steps: S1. Construct a multi-coordinate system geometric model for estimating the gliding deviation of the UAV and calibrate the camera parameters; S2. Based on the camera parameters, perform inverse perspective transformation on the runway line detection results to generate a bird's-eye view; S3. In the bird's-eye view coordinate system, calculate the lateral offset based on the joint fitting of runway parallel constraints; S4. The vanishing point method and the bird's-eye view fitting method are combined to estimate the heading deviation angle; S5. Calculate the coordinates of the look-ahead point based on visual confidence. S6. Based on the lateral offset, heading deviation angle and look-ahead coordinates, perform confidence-weighted time-series filtering to output a smooth estimate; S3 includes the following steps: S31. Parallel constraint combined linear fitting, calculate the optimal fitting parameters: Joint least squares estimation is used, and a common slope is fitted to the left and right runway lines. Let the set of ground coordinate points of the left runway line be... The set of ground coordinate points for the right runway line is The joint objective function is as follows: In the formula, The common slope of the left and right runway lines. The intercept of the left runway line, This is the intercept of the right runway line. and For the left runway line The ground physical coordinates of each detection point after inverse perspective transformation. , This represents the total number of valid detection points along the left runway line. and For the right runway line Ground physical coordinates of each detection point , The total number of valid detection points on the right runway line. , and Taking the partial derivatives of each and setting them to zero, we get... Closed-form solution Optimal intercept estimate of the left runway line Optimal intercept estimate of the right runway line : In the formula, This represents the average lateral coordinates of all points along the left runway line. This represents the average lateral coordinates of all points along the right runway line. The average Y-coordinate of all detection points on the left runway line. The average Y-coordinate of all detection points on the right runway line; S32. Perform a runway width consistency check based on the optimal fitting parameters: Geometric rationality verification is performed based on the optimal fitting parameters to prevent incorrect detection of runway width due to runway line misdetection. The specific expression is: Set allowable error and runway standard values Determine whether it satisfies If yes, proceed to S34; otherwise, proceed to S33. S33. Calculate the lateral offset based on the optimal fitting parameters: Calculate the x-coordinate of the centerline directly below the drone. Then, the lateral offset of the UAV can be calculated. : S34. Calculate the lateral offset through unilateral occlusion degradation processing: judge and If the condition is met, then both sides are deemed unreliable, and the lateral offset of the UAV in this frame is determined. Using the lateral offset of the drone from the previous moment, the visual confidence of the current frame is adjusted. ; If not, then determine If the conditions are met, then the left runway line is deemed reliable, and unilateral compensation is performed using the left runway line. Let: In the formula, This is the drone's offset. The visual confidence score for the current frame. This indicates that the confidence level in a one-sided compensation scenario is 60% of that in a normal bilinear detection scenario. If not, then the right runway line is deemed reliable, and unilateral compensation is performed using the right runway line. Let: S4 includes the following steps: S41. Calculate the heading deviation angle using the vanishing point method: Perform RANSAC robust straight-line fitting on the left and right runway lines respectively. The intersection of the two lines is the vanishing point. The specific expression is: In the formula, This is the linear coefficient vector of the left runway line in pixel coordinates. This is the linear coefficient vector of the right runway line in pixel coordinates. This is the first normal vector component of the left runway line. This is the second normal vector component of the left runway line. The offset term for the left runway line. This is the first normal vector component of the right runway line. This is the second normal vector component of the right runway line. The offset term for the right runway line; The vanishing point pixel coordinates are obtained by normalizing the homogeneous coordinates: In the formula, The pixel column coordinates of the vanishing point. The pixel row coordinates of the vanishing point; Heading deviation angle calculated based on vanishing point The specific expression is: S42. Calculate the heading deviation angle using the bird's-eye view fitting method: Heading deviation angle calculated using the bird's-eye view fitting method The specific expression is: S43. Calculate the adaptive fusion weights: Calculate adaptive fusion weights The specific expression is: In the formula, Image width, Image height, To obtain the minimum value; S44. Calculate the final heading deviation angle through weighted fusion: Calculate the final heading deviation angle The specific expression is: S6 includes the following steps: S61. Calculate the smoothed value by applying a confidence-weighted sliding window filter to the lateral offset, heading deviation angle, and look-ahead coordinates: For each frame, starting from the current frame, use the nearest... N The frame's lateral offset and the visual confidence of each frame are used to perform a time-decay and confidence-weighted sliding window filter to calculate the smoothed value of the lateral offset. : In the formula, For the first Horizontal offset of the frame For the current frame, For the number of steps to rewind time, For exponential decay time weighting, The attenuation coefficient is... For the first Visual confidence of a frame; Apply time decay and confidence-weighted sliding window filtering to the heading deviation angle, and calculate the filtered smooth value of the heading deviation angle. : In the formula, For the first The heading deviation angle of the frame; Apply time decay and confidence-weighted sliding window filtering to the lookahead coordinates and calculate the filtered smoothing value of the lookahead coordinates. : In the formula, For the first The coordinates of the lookahead point of the frame; S62. Perform abnormal frame determination based on the filtered smoothing value: If the lateral offset and heading deviation angle of the current frame meet any of the following abnormal conditions, then the current frame is determined to be an abnormal frame, and the current frame is set to an abnormal frame. Lateral offset filter smoothing value ; The abnormal conditions include: In the formula, For the current frame The lateral offset, For the first The frame's lateral offset filtering smoothing value. The threshold for determining lateral offset anomalies. For the current frame The heading deviation angle, For the first The smoothed value of the frame's heading deviation angle filter. The threshold for determining abnormal heading deviation; S63. Calculate the overall reliability score: Calculate the overall reliability score for the current frame. : In the formula, As the first weighting coefficient, This is the second weighting coefficient. This is the third weighting coefficient. For the most recent N The mean detection confidence score output by the frame runway line detector. To determine the degree to which the runway geometric constraints are satisfied. The score is given for inter-frame temporal consistency. In the formula, To obtain the maximum value; S64, Output Smoothing Estimation: Output smoothing estimate, for direct use by the correction controller, output smoothing estimate. The specific expression is: 。 2. The real-time estimation method for UAV gliding deviation based on visual geometric reasoning according to claim 1, characterized in that, S1 includes the following steps: S11. Coordinate system definition: The world coordinate system W takes a fixed point on the Earth's surface as its origin. The axis points vertically upwards, and the runway coordinate system R takes the projection of the UAV directly below onto the runway centerline as its dynamic origin. The axis is along the positive direction of the runway centerline. The axis perpendicular to the runway is to the left as positive. The axis is perpendicular to the ground and points upwards; the camera coordinate system C has its origin at the camera's optical center. The optical axis is oriented towards the ground. axis, The axes are parallel to the row and column directions of the image, respectively. The pixel coordinate system I has its origin at the top left corner of the image, with the u-axis pointing horizontally to the right and the v-axis pointing vertically downwards. The transformation relationship between the coordinate systems is as follows: In the formula, Let these be the pixel coordinates of the point in the pixel coordinate system. Let the point be the three-dimensional coordinates in the camera coordinate system. Let the coordinates of the point be the three-dimensional coordinates in the body coordinate system. For the camera intrinsic parameter matrix, For fixed external parameters from the body to the camera, The transformation from the world to the organism. Let the point be the three-dimensional coordinates in the world coordinate system; S12, Camera Intrinsic Parameter Calibration: Solving the camera intrinsic parameter matrix by minimizing the reprojection error and distortion coefficient vector : In the formula, The equivalent focal length in the horizontal direction. The equivalent focal length in the vertical direction is... The radial distortion coefficient is used to describe the most significant radial deformation in the lens edge region. To correct for radial distortion coefficients with higher degrees of radial distortion, To further correct higher-order radial distortion coefficients far from the image center region, The tangential distortion coefficient describes the shift caused by the lens optical center not perfectly coinciding with the image center. This refers to the tangential distortion coefficient, which is offset in another direction due to the lens optical center not perfectly coinciding with the image center. The column coordinates of the principal points of the intrinsic parameter matrix. The row coordinates of the principal points of the intrinsic parameter matrix; Distortion correction is performed on all input raw distorted images to generate corrected distortion-free images. : In the formula, This is the raw, distorted image directly output from the camera. It is a distortion correction function; S13. Calculate the rotation matrix of the world coordinate system: Constructing the rotation matrix from camera to body based on installation parameters : In the formula, The pitch angle, For roll angle, Rotation angle around the Y-axis The basic rotation matrix, Rotation angle around the X-axis The basic rotation matrix; Rotation matrix from camera to body Rotation matrix of the machine body to the world coordinate system Chain multiplication yields the rotation matrix from the camera to the world coordinate system. : In the formula, Used to describe the complete rotation from the camera to the world, transforming any direction vector observed in the camera to the ground coordinate system.
3. The real-time estimation method for UAV gliding deviation based on visual geometric reasoning according to claim 2, characterized in that, S2 includes the following steps: S21. Calculate the homography matrix: Construct the ground homography matrix based on world coordinates and translation vectors. : In the formula, World coordinate system The representation of the unit direction vector of the axis in the camera coordinate system. World coordinate system The representation of the unit direction vector of the axis in the camera coordinate system, let the translation vector be... Let be the position of the camera's optical center in the world coordinate system, where For the camera's optical center in the world coordinate system Offset in the axial direction For the camera's optical center in the world coordinate system Offset in the axial direction For the camera's optical center in the world coordinate system Offset in the axial direction It is the transpose symbol; S22. Conversion from image pixel coordinates to ground coordinates: pixel coordinates Preprocessing is performed, including removing radial and tangential distortions, to generate preprocessed pixel coordinates. Then, the image plane coordinates are back-projected onto the normalized plane using the intrinsic parameter matrix to generate normalized image plane coordinates. : Utilize the ground Constraints, Solving for Depth Scale Factor : In the formula, , and Rotation matrix The three elements in the third row; Calculate ground coordinates : S23. Generate a bird's-eye view: Based on the method of converting image pixel coordinates to ground coordinates, the runway line detection results are subjected to inverse perspective transformation and converted into a set of physical coordinate points in a bird's-eye view coordinate system. ; The specific method of inverse perspective transformation is as follows: Calculate the pixel coordinates of the bird's-eye view Output grayscale value : In the formula, The input image is after distortion correction. This is a homogeneous representation of the pixel coordinates of the bird's-eye view. Indicates bilinear interpolation; Pixel coordinates of the bird's-eye view Mapping back to the corresponding floating-point pixel coordinates in the original perspective input image : 。 4. The real-time estimation method for UAV gliding deviation based on visual geometric reasoning according to claim 3, characterized in that, S5 includes the following steps: S51. Adaptive look-ahead distance calculation: Calculate the look-ahead distance of the current frame The specific expression is: In the formula, For the minimum look-ahead distance, For speed adaptive coefficient, This represents the drone's current gliding speed. This is the confidence level compensation coefficient. The visual confidence level of the current frame; S52. Calculation of look-ahead coordinates: The unit vector of the runway centerline in the bird's-eye view coordinate system The specific expression is: Forward coordinates The specific expression is: Lateral deviation from the lookout point to the runway centerline The specific expression is: In the formula, Let x be the horizontal coordinate of the centerline at the look-ahead point. , The intercept of the runway centerline. Let x be the horizontal coordinate of the look-ahead point. The vertical coordinate of the look-ahead point.
Citation Information
Patent Citations
Attention guidance-based airport runway line detection method
CN121170742A
Visual trajectory identification and deviation correction method for mobile robot
CN122015833A
