Autonomous Landing Algorithm for Quadrotor Drones Based on Vision

In recent years, quadrotor drones have gained significant attention due to their versatility in military and civilian applications, such as surveillance, delivery, and environmental monitoring. A critical challenge in autonomous operations is achieving precise landing on ground platforms for protection, recharging, and transportation. Traditional methods like inertial navigation and GPS suffer from cumulative errors or limited accuracy, making vision-based approaches a promising alternative. In this article, I present a novel vision-based autonomous landing algorithm for quadrotor drones, leveraging a custom-designed visual marker. The algorithm enables real-time position and orientation estimation, facilitating accurate landing in two stages based on altitude.

The visual marker consists of an equilateral triangle and a concentric ring with a heading reference line, as shown in the image. This design ensures robustness and simplicity for efficient detection. The algorithm operates in two phases: at higher altitudes, the triangle is used to compute position offsets; at lower altitudes, the concentric ring and heading line determine both position and yaw angle. Experimental results demonstrate that this method achieves high accuracy and real-time performance, making it suitable for autonomous quadrotor drone systems.

Autonomous landing of quadrotor drones is essential for expanding their operational scope, especially in dynamic environments. Vision-based systems offer a cost-effective solution by extracting pose information from images without relying on external signals. However, many existing methods involve complex pattern recognition, which can hinder real-time processing. My approach addresses this by using geometric features that are easy to detect and compute, ensuring rapid response for the quadrotor drone during descent.

Visual Marker Design for Quadrotor Drone Landing

The marker is designed with a white background for high contrast, featuring a black equilateral triangle of side length \(l\) and a concentric white ring with radii \(R\) and \(r\), where \(R/r = 2\). The center includes a black semicircle and a white semicircle, forming a distinct heading reference line. This design meets key requirements: it provides necessary pose information, avoids complexity for fast recognition, and distinguishes itself from environmental clutter. The dimensions used are \(l = 30\) cm, \(R = 3\) cm, and \(r = 1.5\) cm, optimized for visibility across altitudes. The quadrotor drone’s onboard camera captures this marker, and the algorithm processes it to guide landing.

Detection and Recognition Algorithm for Quadrotor Drones

The algorithm is divided into two stages based on the quadrotor drone’s altitude. Stage 1 (higher altitude) detects the triangle for position estimation, while Stage 2 (lower altitude) uses the ring and heading line for precise pose calculation. This segmentation enhances efficiency by focusing on relevant features as the quadrotor drone descends.

Image Capture and Preprocessing

Images are captured by the quadrotor drone’s downward-facing camera and converted to grayscale. Thresholding is applied using the average gray value:

$$ \text{thresh} = \frac{\sum_{i=0}^{M-1} \sum_{j=0}^{N-1} S(i,j)}{M \times N} $$

where \(S(i,j)\) is the pixel intensity at \((i,j)\), and \(M \times N\) is the image size. The binary image is then filtered with a median filter to reduce noise, resulting in clear contours for detection.

Stage 1: Triangle Detection

Contours are extracted from the binary image and filtered based on area, with a threshold \(\varepsilon_{\text{Area-H}}\) that adapts to altitude. Similar contours are merged using criteria for centroid Euclidean distance, area ratio, and perimeter ratio:

$$ \begin{cases} \text{EuclideanDis}(\text{Centroid}_i, \text{Centroid}_j) \leq \varepsilon_{\text{EucliDis}} \\ \left| \frac{\text{Area}(\text{Contour}_i)}{\text{Area}(\text{Contour}_j)} – 1 \right| \leq \varepsilon_{\text{AreaRatio}} \\ \left| \frac{\text{Perimeter}(\text{Contour}_i)}{\text{Perimeter}(\text{Contour}_j)} – 1 \right| \leq \varepsilon_{\text{PerimeterRatio}} \end{cases} $$

The triangle is identified by its area-perimeter squared ratio:

$$ R_{\text{Area-Perimeter}} = \frac{S_{\text{triangle}}}{l_{\text{triangle}}^2} \approx 0.048 $$

where \(S_{\text{triangle}} = \frac{\sqrt{3}}{4} a_{\text{triangle}}^2\) and \(l_{\text{triangle}} = 3a_{\text{triangle}}\). A contour is selected if \(|R_{\text{Area-Perimeter}} – 0.048| \leq \varepsilon_{\text{Area-Perimeter}}\). This enables fast detection for the quadrotor drone’s initial approach.

Stage 2: Ring and Heading Line Detection

As the quadrotor drone lowers below a height threshold \(H_{\text{thresh}} = 1.5\) m, Hough circle transform detects circles with radius constraints. Multiple detections are merged based on centroid distance and radius ratio:

$$ \begin{cases} \text{EuclideanDis}(\text{Center}_i, \text{Center}_j) \leq \delta_{\text{EucliDis}} \\ \left| \frac{\text{Radius}_i}{\text{Radius}_j} – 1 \right| \leq \delta_{\text{RadiusRatio}} \end{cases} $$

The concentric ring is validated by checking the radius ratio \(R/r = 2\) and centroid proximity:

$$ \begin{cases} \text{EuclideanDis}(\text{Center}_0, \text{Center}_1) \leq \delta_{\text{DisDeter}} \\ \left| \frac{\text{Radius}_0}{\text{Radius}_1} – 2 \right| \leq \delta_{\text{RadiusDeter}} \quad \text{or} \quad \left| \frac{\text{Radius}_0}{\text{Radius}_1} – 0.5 \right| \leq \delta_{\text{RadiusDeter}} \end{cases} $$

The heading line is detected via Hough line transform within a region of interest (ROI) defined by the outer radius \(R\). Endpoints \(A(u_1, v_1)\) and \(B(u_2, v_2)\) are identified using vector cross-products to ensure they lie inside the ROI. This provides yaw angle estimation for the quadrotor drone.

Pose Estimation for Quadrotor Drone Landing

Pose estimation involves coordinate transformations from pixel to world coordinates. The quadrotor drone’s camera is aligned with its body frame, simplifying the process to compute relative position and yaw.

Coordinate Transformations

The pixel coordinates \((u, v)\) are converted to image plane coordinates \((x, y)\) using:

$$ \begin{cases} x = (u – u_0) \cdot dx \\ y = (v – v_0) \cdot dy \end{cases} $$

where \((u_0, v_0)\) is the image center, and \(dx, dy\) are pixel sizes. The camera projection relates image points to camera coordinates \((x_c, y_c, z_c)\):

$$ \begin{cases} x_c = \frac{x \cdot z_c}{f} \\ y_c = \frac{y \cdot z_c}{f} \end{cases} $$

with \(f\) as the focal length. For the quadrotor drone, height \(H\) replaces \(z_c\), yielding position errors:

$$ \begin{cases} X_{\text{error}} = \frac{H \cdot x}{f} \\ Y_{\text{error}} = \frac{H \cdot y}{f} \end{cases} $$

Stage 1 Pose Estimation

The triangle centroid \(C_1(u_{\text{triangle}}, v_{\text{triangle}})\) is compared to the image center \(P_0(u_0, v_0)\) to compute offsets, guiding the quadrotor drone’s horizontal movement.

Stage 2 Pose Estimation

The ring center \(C_2(u_{\text{circle}}, v_{\text{circle}})\) provides position offsets similarly. The yaw angle \(\theta\) is calculated from the heading line endpoints:

$$ \theta = \tan^{-1}\left( \frac{u_1 – u_2}{v_1 – v_2} \right) $$

with adjustments to ensure \(\theta \in [-\pi/2, \pi/2]\). This allows the quadrotor drone to align with the marker for landing.

Experimental Validation for Quadrotor Drone Systems

Experiments were conducted using a quadrotor drone to capture images at various altitudes. The algorithm was implemented in C++ with OpenCV on a laptop (Intel i5, 8 GB RAM). Parameters are summarized in Table 1.

Table 1: Parameter Selection for Quadrotor Drone Algorithm
Parameter Value
\(\varepsilon_{\text{Area-H}}\) 150.0
\(\varepsilon_{\text{EucliDis}}\) 5.0
\(\varepsilon_{\text{AreaRatio}}\) 0.02
\(\varepsilon_{\text{PerimeterRatio}}\) 0.02
\(\varepsilon_{\text{Area-Perimeter}}\) 0.005
\(\delta_{\text{EucliDis}}\) 5.0
\(\delta_{\text{RadiusRatio}}\) 0.05
\(\delta_{\text{DisDeter}}\) 5.0
\(\delta_{\text{RadiusDeter}}\) 0.05
\(H_{\text{thresh}}\) 1.5 m

Marker Performance Comparison

The proposed marker was compared to a standard helipad marker (H-shape with ring). Detection times are shown in Table 2, demonstrating faster processing for the quadrotor drone due to simpler geometry.

Table 2: Marker Detection Time Comparison for Quadrotor Drones
Landing Marker Number of Test Images Average Detection Time (ms) Maximum Detection Time (ms)
Standard Helipad 800 95.76 118.75
Proposed Marker 800 53.87 85.26

Stage 1 Position Estimation

Position errors were measured at altitudes from 1.5 m to 4.5 m. Results in Table 3 show low errors, ensuring reliable guidance for the quadrotor drone during initial descent.

Table 3: Position Offset Estimation in Stage 1 for Quadrotor Drones
Altitude (m) X-direction Mean Absolute Error (mm) X-direction RMSE (mm) Y-direction Mean Absolute Error (mm) Y-direction RMSE (mm)
4.5 0.78 1.05 0.26 0.38
3.5 0.99 1.07 0.11 0.13
2.5 1.86 2.02 0.41 0.47
1.5 1.39 1.47 0.81 0.94

Stage 2 Pose Estimation

At lower altitudes (0.3 m to 1.5 m), position and yaw angle errors were evaluated. Table 4 presents position errors, while Table 5 details yaw angle accuracy, with a root mean square error (RMSE) of 1.07°.

Table 4: Position Offset Estimation in Stage 2 for Quadrotor Drones
Altitude (m) X-direction Mean Absolute Error (mm) X-direction RMSE (mm) Y-direction Mean Absolute Error (mm) Y-direction RMSE (mm)
1.5 0.46 0.48 0.51 0.62
1.2 0.52 0.63 0.32 0.35
0.9 0.59 0.71 0.27 0.32
0.6 0.43 0.44 0.40 0.46
0.3 0.50 0.62 0.20 0.25
Table 5: Yaw Angle Estimation in Stage 2 for Quadrotor Drones
True Value (°) Estimated Value (°) Absolute Error (°) Relative Error (%)
-32.0 -33.02 1.02 3.20
-28.0 -25.82 2.18 7.78
-24.0 -25.46 1.46 6.10
-20.0 -18.82 1.18 5.88
-16.0 -15.42 0.58 3.61
-12.0 -12.26 0.26 2.21
-8.0 -7.31 0.69 8.68
-4.0 -4.86 0.86 21.61
4.0 2.47 1.53 38.28
8.0 7.13 0.87 10.94
12.0 11.89 0.11 0.93
16.0 17.35 1.35 8.46
20.0 21.25 1.25 6.24
24.0 24.94 0.94 3.91
28.0 27.65 0.35 1.26
32.0 32.05 0.05 0.17

RMSE for yaw angle: 1.07°.

Time Performance

Table 6 summarizes the algorithm’s runtime. Stage 1 is faster, suitable for quick descent of the quadrotor drone, while Stage 2 involves more computations but remains efficient for precise landing.

Table 6: Time Performance of the Quadrotor Drone Algorithm
Method Image Preprocessing (ms) Average Marker Detection (ms) Average Pose Estimation (ms) Total Runtime (ms)
Stage 1 4.44 53.87 0.0031 58.31
Stage 2 4.79 224.97 19.48 249.24

Conclusion

I have developed a vision-based autonomous landing algorithm for quadrotor drones using a custom visual marker. The two-stage approach leverages geometric features for efficient detection and accurate pose estimation. Experimental results confirm that the algorithm achieves low position and yaw errors with real-time performance, making it viable for practical quadrotor drone applications. Future work will focus on optimizing Stage 2 computations and integrating the algorithm into a full quadrotor drone control system for real-world deployment. This advancement contributes to the autonomy of quadrotor drones, enabling reliable landing in diverse scenarios.

Scroll to Top