Frequency-stabilized unmanned aerial vehicle autonomous landing method based on nested enhanced reference code

By designing nested reference codes and combining the Apriltag detection system and dual correlation filter tracker, and using Gaussian pyramid downsampling technology, the problems of loss of reference codes and low detection frequency during the landing of the UAV are solved, and frequency stability and control signals are achieved. The stability ensures the accuracy and reliability of the autonomous landing of the drone.

CN118625833APending Publication Date: 2024-09-10DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410845354.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

During the landing process of the UAV, the reference code is lost due to the limited field of view of the camera, and the detection frequency is low, which affects the positioning accuracy and control signal stability.

Method used

Designing nested reference codes suitable for different heights, combining the Apriltag detection system and dual correlation filter tracker, using Gaussian pyramid downsampling technology to ensure that the pose detection frequency is stable at 50Hz, and fused with IMU data for autonomous landing.

Benefits of technology

It achieves the stability of the detection code at different altitudes, improves the stability of the detection frequency and control signal, and ensures the accuracy and reliability of the autonomous landing of the drone.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625833A
    Figure CN118625833A
Patent Text Reader

Abstract

The invention discloses a frequency-stabilized unmanned aerial vehicle autonomous landing method based on a nested enhanced reference code, and belongs to the field of robot vision. The method comprises the following steps: firstly, designing nested reference codes suitable for determining relative poses at different heights; secondly, the nested reference code is detected through an Apriltag detection system; thirdly, initializing and updating to obtain a final image; fourthly, using Gaussian pyramid downsampling to stabilize the detection frequency; and finally, fusing the currently published pose information and IMU data for autonomous landing of the unmanned aerial vehicle. According to the invention, corresponding codes can be detected at different heights in a way of nesting the reference codes, so that code loss is avoided. For the problems that an airborne computer is limited in computing power and low in detection frequency, a dual Correlation Filter tracking method is adopted, only the region of interest is detected, and the detection frequency of the reference code can be greatly improved. Meanwhile, the frequency can be stabilized at 50Hz. And when the detection frequency cannot reach 50HZ due to too large image area occupied by the code, detection is carried out in a pyramid downsampling mode, and finally, the frequency is stabilized at 50HZ.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of robot vision and relates to a frequency-stabilized unmanned aerial vehicle autonomous landing method based on a nested enhanced reference code. Background Art

[0002] Drones have been widely used in various fields, such as photography, post-disaster search and rescue, environmental monitoring, unmanned delivery, etc. After completing the mission in the air, autonomous landing is a very important technology. The landing process is dangerous and challenging, so it is still an open research problem.

[0003] During the autonomous landing process, accurate and reliable pose estimation is required. For pose estimation, the use of visual reference codes is effective. The emergence of autonomous landing technology for drones based on reference codes provides more possibilities for the application of drones. For example, drones can be used in search and rescue, logistics distribution, disaster monitoring and other scenarios that require drones to perform tasks autonomously. Therefore, research and development of autonomous landing technology for drones is of great significance to the development of the drone industry. However, through the analysis of the current status of the development of existing technologies [Lin J, Wang Y, Miao Z, Wang H, et al. Robust Image-Based Landing Control of a Quadrotor on an Unpredictable Moving Vehicle Using Circle Features [J]. IEEE Transactions on Automation Science and Engineering, 20.2 (2023): 1429-1440.], [Wan Hua, Wang Ziyi, Li Sheng, et al. UAV mobile platform tracking and landing based on vision guidance [J]. Journal of Navigation and Positioning, 2023, 11 (06): 129-141.], [Kumar Y, Shamsi BP, Roy SB, et al. Tracking a Planar Target Using Image-Based Visual Servoing Technique [J]. IEEE Transactions on Intelligent Vehicles, 9.9(2024): 4362-4372.], and found the following problems: (1) During the landing process of the drone, due to the limited field of view of the camera, the reference code used for positioning will gradually leave the field of view, resulting in a decrease in the final landing accuracy. (2) The limited computing power of the drone's onboard computer leads to a low detection frequency of the reference code, which affects the positioning effect. (3) As the size of the code changes within the field of view, the detection frequency also changes, which will cause the drone control signal to be unstable and jittery. Summary of the invention

[0004] In order to solve the shortcomings of existing drone autonomous landing technology and achieve the purpose of reliable performance and easy implementation, the present invention provides a frequency-stabilized drone autonomous landing method based on nested enhanced reference codes. The method can detect the corresponding codes at different altitudes by nesting reference codes to avoid code loss, and ensure the stability of the code posture release frequency during the landing process to avoid the occurrence of unstable control signals.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] A frequency-stabilized UAV autonomous landing method based on nested enhanced reference codes, the frequency-stabilized UAV autonomous landing method comprising: S1, designing a nested reference code suitable for determining relative postures at different heights; S2, detecting the reference code and posture solution; S3, initializing and updating a dual correlation filter (Dual Correlation Filter) tracker; S4, using Gaussian pyramid downsampling to stabilize the detection frequency; S5, fusing the currently released posture information with IMU data for autonomous landing of the UAV. Specifically comprising the following steps:

[0007] S1, design of nested reference codes suitable for relative pose determination at different heights

[0008] In order to enable the drone to observe the reference code at different heights during landing and calculate the relative posture, it is necessary to first design a nested reference code suitable for determining the relative posture at different heights. The nested reference code is divided into two layers: an outer code and an inner code, and the inner code is located in the blank area in the middle of the outer code. The center position of the inner code is defined as the origin of the world coordinate system O w , X under the world system w Axis and Y w The axis is parallel to the border of the inner reference code, Z w The axis is perpendicular to the inner reference code and points downward, so the world system can be expressed as O w X w Y w Z w The position of the outer code in the world system is obtained by calculating the translation between the center of the outer code and the center of the inner code. The rotation matrix of the outer code in the world system is the unit matrix.

[0009] S2, detection of reference code and pose solution, as follows:

[0010] The Apriltag detection system is used to detect the nested reference code designed in S1. Specifically, the Apriltag detection system continuously receives a new frame of image. After obtaining the first frame of image, the Apriltag detection system detects the nested reference code of the frame image and obtains four corner points. Then, the pose is calculated using these four corner points, as follows:

[0011] Define the body coordinate system O b X b Y b Z b , and the center of mass of the drone is O b is the origin, and the nose direction is X b , perpendicular to the plane of the body downward is Z b . Define the camera coordinate system O c X c Y c Z c , and the camera optical center O c The origin is Z, which coincides with the optical axis and points to the front of the camera. c , X c With Y c Parallel to the imaging plane. Define the image pixel coordinate system Ouv, with the upper left corner of the image plane as the origin, and the u axis and v axis parallel to the two sides of the image plane respectively.

[0012] In order to obtain the position of the drone in the world coordinate system and achieve landing, it is necessary to first solve the position of the camera in the world coordinate system, and use the transformation matrix of the camera coordinate system and the body coordinate system to obtain the position of the drone in the world coordinate system. In order to solve the position of the camera in the world coordinate system, it is necessary to first solve the homography matrix H. Let the intrinsic parameter matrix of the camera be K:

[0013]

[0014] Among them, f x Indicates the focal length of the camera in the horizontal direction of the image; f y Indicates the focal length of the camera in the vertical direction of the image; c x and c y Represents the coordinates of the optical center on the u-axis and v-axis of the image pixel coordinate system.

[0015] In order to transform a certain position in space to a pixel point on the image plane, the camera projection matrix K[R|t] is needed. R is the rotation of the camera in the world coordinate system, and t is the position of the camera in the world coordinate system. Then, in order to calculate a certain point p on the nested reference code in the world system w (x,y,0) is the position p in the image pixel coordinate system uv ,use

[0016]

[0017] Where R = [r 0 r 1 r 2 ] According to the above formula, the third column of the R matrix can be removed to obtain the following formula.

[0018]

[0019] Then K[r 0 r 1 t] is the homography matrix that maps points in space to the pixel plane. Since the size of the nested reference code is different in different scenes, the reference code in space can be reduced to a unit square. Then:

[0020]

[0021] Among them, [x′y′1] is the corner point of the unit square after scaling, and λ is the scaling factor. So we have

[0022]

[0023] Among them, K[r 0 'r 1 ′t] is the scaled homography matrix. The position of the camera in the world system is obtained by normalization. The position of the drone in the world system can be obtained through the camera’s external parameter matrix.

[0024] Due to the design of nested reference code in S1, when the outer reference code is in the field of view, the relative pose of the camera and the outer code is calculated, and then converted to the pose in the world coordinate system through pose transformation. When the landing height decreases and the complete outer code cannot be observed in the field of view, the relative pose of the camera and the inner code is calculated and positioned. The pose and pose output frequency of the current drone in the world system are calculated.

[0025] S3, initialize and update the dual correlation filter tracker

[0026] (a) Initialization: When the camera detects the first frame of the outer reference code, the pixel positions of the four corner points of the outer reference code in S2 are recorded, and the four pixel points are connected in pairs to obtain the position boundary box of the current outer reference code in the pixel coordinates. scale The bounding box is expanded outward to obtain the region of interest and input to the dual correlation filter tracker for initialization. The dual correlation filter tracker publishes the pose after initialization and performs the update process after detecting the next frame of nested reference code.

[0027] (b) Update: After completing the dual correlation filter initialization for the first frame of image in S3-(a), the update is performed when a new frame of image is received. The update process is the image tracking process. The region of interest is represented by a matrix, and samples are collected by cyclic shifting the region of interest. The dual correlation filter tracker is trained using ridge regression, and the circulant matrix is ​​diagonalizable in Fourier space to convert the operation of the circulant matrix into the dot product of the vector. The dual correlation filter tracker is trained using a linear kernel function to complete the update process and obtain the final image. Compared with other multi-channel filters, the dual correlation filter tracking method requires fewer matrix transposition operations, which greatly reduces the amount of calculation, improves the calculation speed, and enables the algorithm to meet real-time requirements.

[0028] S4, Gaussian pyramid image downsampling

[0029] After completing the image update in S3, determine whether the pose output frequency in S2 meets the requirement of 50HZ. If so, publish the pose and perform the benchmark code detection at the next moment. If not, perform Gaussian pyramid downsampling. The specific details are as follows:

[0030] When the pose output frequency does not reach 50HZ, the image is downsampled to reduce the resolution and increase the detection frequency. The reason why the target output frequency cannot reach 50HZ may be that the image resolution is high or the area of ​​interest occupies a large proportion of the entire image, and the nested benchmark code detection speed is slow. To this end, an image pyramid is constructed, and the bottom layer stores the new frame image with the largest size. Then, Gaussian blur is performed on the bottom layer of the image, and even rows and even columns are deleted to obtain the result after one downsampling, which is added to the Gaussian pyramid. For an image with an original resolution of M×N, after one downsampling, a sampled image with a resolution of (M / 2)×(N / 2) is obtained. Repeat the downsampling process for the image on the upper layer of the pyramid multiple times to obtain an image pyramid, and the top layer stores the image obtained by the last sampling. After the image is downsampled, the pose is released.

[0031] S5, fuses the posture information currently released by S4 with the IMU data for autonomous landing of the drone;

[0032] The data of the onboard sensor IMU is filtered through the extended Kalman filter to output the accelerometer and gyroscope information. The filtered accelerometer and gyroscope information and the posture released after S3 initialization or the posture released by S4 are filtered through the extended Kalman filter to obtain the position, speed and rotation information of the drone.

[0033] The filtered position, speed and rotation information are calculated with the expected position, speed and rotation information through the cascade position controller to obtain the expected rotation and force. The expected angular rate is calculated by the high-level attitude controller. The torque is calculated by the low-level attitude controller for the expected angular rate. The force and torque are output to the motor controller to complete the control of the drone. After that, the reference code detection is performed at the next moment.

[0034] The beneficial effects of the present invention are:

[0035] The present invention can detect the corresponding code at different heights by nesting the reference code, thus avoiding code loss. In order to solve the problem that the computing power of the onboard computer is limited and the detection frequency is low, the present invention adopts the dual correlation filter tracking method, and only detects the area of ​​interest, which can greatly improve the detection frequency of the reference code. At the same time, the technical solution of the present invention can stabilize the frequency at 50Hz, and when the image area occupied by the code is too large and the detection frequency cannot reach 50HZ, the pyramid downsampling method is used for detection, and finally the frequency is stabilized at 50HZ. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is a flow chart for obtaining relative posture in the present invention.

[0037] Figure 2 This is a design diagram of the nested reference code in the present invention.

[0038] Figure 3 This is a graph showing the change of detection frequency over time according to the present invention.

[0039] Figure 4 This is the tracking result of the dual correlation filtering outer code tracking algorithm in the present invention.

[0040] Figure 5 This is the tracking result of the dual correlation filtering inner code tracking algorithm in the present invention.

[0041] Figure 6 It is a flow chart of autonomous landing in the present invention. DETAILED DESCRIPTION

[0042] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.

[0043] A frequency-stabilized UAV autonomous landing method based on nested enhanced reference codes provides a reliable and easy-to-implement solution to the problems of low detection frequency and low landing accuracy of existing autonomous landing based on reference codes. The method of this embodiment accelerates the process of publishing the reference code posture and stabilizes the publishing frequency at 50HZ. First, after the first frame of the reference code image is detected, the area of ​​interest is obtained. Then, the Dual Correlation Filter tracking technology is used to track the area of ​​interest. When the tracking is successful, the reference code detection is only performed in the area of ​​interest to shorten the detection time. When the detection frequency does not meet the requirements, the image is pyramid downsampled to increase the detection frequency. Finally, the currently published posture information is fused with the IMU data for autonomous landing of the UAV. The specific steps are as follows:

[0044] S1, design of nested reference codes suitable for relative pose determination at different heights

[0045] Design as Figure 2 The nested reference code shown is suitable for determining relative postures at different heights, and the reference code is placed at the location where the drone needs to land. The nested reference code is divided into two layers: the outer code and the inner code, and the inner code is located in the blank area in the middle of the outer code. In this experiment, the outer code uses the reference code with ID 543 in the 36h11 family in Apriltag, with a size of 32cm×32cm, and the inner code uses the reference code with ID 1 in the 36h11 family in Apriltag, with a size of 8cm×8cm. Define the center position of the inner code as the origin of the world coordinate system O w , X under the world system w Axis and Y w The axis is parallel to the border of the inner reference code, Z w The axis is perpendicular to the inner reference code and points downward, so the world system can be expressed as O w X w Y w Z w The position of the outer code in the world system is obtained by calculating the translation between the center of the outer code and the center of the inner code. In this experiment, the centers of the two codes coincide, and the rotation matrix of the outer code in the world system is the unit matrix.

[0046] S2, detection of reference code and pose solution, as follows:

[0047] The Apriltag detection system is used to detect the nested reference code designed in S1. Specifically, after obtaining the first frame image, the Apriltag detection system is used to detect the nested reference code of the frame image to obtain four corner points, such as Figure 2 The four red dots shown are then used to solve the pose, as follows:

[0048] Define the body coordinate system Ob X b Y b Z b , and the center of mass of the drone is O b is the origin, and the nose direction is X b , perpendicular to the plane of the body downward is Z b . Define the camera coordinate system O c X c Y c Z c , and the camera optical center O c The origin is Z, which coincides with the optical axis and points to the front of the camera. c , X c With Y c Parallel to the imaging plane. Define the image pixel coordinate system Ouv, with the upper left corner of the image plane as the origin, and the u axis and v axis parallel to the two sides of the image plane respectively.

[0049] In order to obtain the position of the drone in the world coordinate system and achieve landing, it is necessary to first solve the position of the camera in the world coordinate system, and use the transformation matrix of the camera coordinate system and the body coordinate system to obtain the position of the drone in the world coordinate system. In order to solve the position of the camera in the world coordinate system, it is necessary to first solve the homography matrix H. Let the intrinsic parameter matrix of the camera be K:

[0050]

[0051] Among them, f x Indicates the focal length of the camera in the horizontal direction of the image; f y Indicates the focal length of the camera in the vertical direction of the image; c x and c y Represents the coordinates of the optical center on the u-axis and v-axis of the image pixel coordinate system. The camera intrinsic parameter matrix used in this experiment is as follows:

[0052]

[0053] In order to transform a certain position in space to a pixel point on the image plane, the camera projection matrix K[R|t] is needed. R is the rotation of the camera in the world coordinate system, and t is the position of the camera in the world coordinate system. Then, in order to calculate a point on the nested reference code in the world system, such as the point p in the upper left corner of the outer reference code in this experiment, w (-0.16,0.16,0) is the position p in the image pixel coordinate system uv ,use

[0054]

[0055] Where R = [r 0 r 1 r 2] According to the above formula, the third column of the R matrix can be removed to obtain the following formula.

[0056]

[0057] Then K[r 0 r 1 t] is the homography matrix that maps points in space to the pixel plane. Since the size of the nested reference code is different in different scenes, the reference code in space can be reduced to a unit square. Then:

[0058]

[0059] Among them, [x′y′1] is the corner point of the unit square after scaling, λ is the scaling factor, in this experiment, the scaling factor of the relative pose of the outer code is 6.25, and the scaling factor of the relative pose of the inner code is 25. Taking the calculation of the outer code as an example, there is

[0060] Among them, K[r 0 'r 1 ′t] is the scaled homography matrix. The position of the camera in the world system is obtained by normalization. The position of the drone in the world system can be obtained through the camera’s external parameter matrix.

[0061] Due to the design of nested reference code in S1, when the outer reference code is in the field of view, the relative pose of the camera and the outer code is calculated, and then converted to the pose in the world coordinate system through pose transformation. When the landing height decreases and the complete outer code cannot be observed in the field of view, the relative pose of the camera and the inner code is calculated and positioned. Calculate the pose and pose output frequency of the current drone in the world system. Figure 3 As shown in Figure 3, it is a curve showing the change of posture output frequency over time during the experiment.

[0062] S3, initialize and update the dual correlation filter tracker

[0063] (a) Initialization: When the camera detects the first frame of the outer reference code, the pixel positions of the four corner points of the outer reference code in S2 are recorded, and the four pixel points are connected in pairs to obtain the position boundary box of the current outer reference code in the pixel coordinates. scale = 1.3 Expand the bounding box outward to get the region of interest, Figure 4 The black box in the figure is the region of interest after the outer code is detected. Figure 5 The black box in the figure is the region of interest obtained when only the inner code can be detected, which is input to the dual correlation filter tracker for initialization. After the dual correlation filter tracker is initialized, it publishes the pose and performs the update process after the next frame of nested reference code is detected.

[0064] (b) Update: After completing the dual correlation filter tracker initialization for the first frame of image in S3-(a), it is updated when a new frame of image is received. The update process is the image tracking process. The region of interest is represented by a matrix, and samples are collected by cyclic shifting the region of interest. The dual correlation filter tracker is trained using ridge regression, and the circulant matrix is ​​diagonalizable in Fourier space to convert the operation of the circulant matrix into the dot product of the vector. The dual correlation filter tracker is trained using a linear kernel function to complete the update process and obtain the final image. Compared with other multi-channel filters, the dual correlation filter tracking method requires fewer matrix transposition operations, which greatly reduces the amount of calculation, improves the calculation speed, and enables the algorithm to meet real-time requirements.

[0065] S4, Gaussian pyramid image downsampling

[0066] After completing the image update in S3, determine whether the pose output frequency in S2 meets the requirement of 50HZ. If so, publish the pose and perform the benchmark code detection at the next moment. If not, perform Gaussian pyramid downsampling. The specific details are as follows:

[0067] When the pose output frequency does not reach 50HZ, the image is downsampled to reduce the resolution and increase the detection frequency. The reason why the target output frequency cannot reach 50HZ may be that when the image resolution is high or the area of ​​interest occupies a large proportion of the entire image, the nested benchmark code detection speed is slow. To this end, an image pyramid is constructed, and the bottom layer stores the new frame image with the largest size. Then, Gaussian blur is performed on the bottom layer of the image, and even rows and even columns are deleted to obtain the result after one downsampling, which is added to the Gaussian pyramid. In this experiment, the original image resolution is 848×480. For an image with a resolution of 848×480, after one downsampling, a sampled image with a resolution of 424×240 is obtained. Repeat the downsampling process for the upper layer of the pyramid multiple times to obtain an image pyramid. The top layer is the result after the second downsampling, with a resolution of 212×120. After the image is downsampled, the pose is released.

[0068] S5, fuses the posture information currently released by S4 with the IMU data for autonomous landing of the drone;

[0069] like Figure 5 The figure shows the autonomous landing process. The data of the onboard sensor IMU is passed through the extended Kalman filter to output the accelerometer and gyroscope information. The filtered accelerometer and gyroscope information and the posture information released by S3 initialization or S4 are used to obtain the position, speed and rotation information of the drone through the extended Kalman filter.

[0070] The filtered position, speed and rotation information are calculated with the expected position, speed and rotation information through the cascade position controller to obtain the expected rotation and force. The expected angular rate is calculated by the high-level attitude controller. The torque is calculated by the low-level attitude controller for the expected angular rate. The force and torque are output to the motor controller to complete the control of the drone. After that, the reference code detection is performed at the next moment.

[0071] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A frequency-stabilized UAV autonomous landing method based on nested enhanced reference codes, characterized in that: The frequency-stabilized UAV autonomous landing method comprises: S1, design of nested reference codes suitable for relative pose determination at different heights; S2, detection of reference code and pose solution; the nested reference code designed in S1 is detected by the Apriltag detection system; the Apriltag detection system continuously receives a new frame of image, and after obtaining the first frame of image, four corner points are obtained by detecting the nested reference code of the frame of image, and the pose is solved by using the four corner points; S3, initialize and update the dual correlation filter tracker to obtain the final image; S4, using Gaussian pyramid downsampling to stabilize the detection frequency; after completing the image update in S3, determine whether the pose output frequency in S2 meets the requirements, if so, publish the pose and perform the benchmark code detection at the next moment; if not, perform Gaussian pyramid downsampling; S5, the currently published posture information is fused with the IMU data for autonomous landing of the drone.

2. The method for autonomous landing of a frequency-stabilized UAV based on a nested enhanced reference code according to claim 1, characterized in that: The S1 is specifically as follows: The design is suitable for determining relative postures at different heights. The nested reference code is divided into two layers: an outer code and an inner code, and the inner code is located in the blank area in the middle of the outer code. The center position of the inner code is defined as the origin of the world coordinate system O w , X under the world system w Axis and Y w The axis is parallel to the border of the inner reference code, Z w The axis is perpendicular to the inner reference code and points downward, so the world system is represented by O w X w Y w Z w ; The position of the outer code in the world system is obtained by calculating the translation between the center of the outer code and the center of the inner code, and the rotation matrix of the outer code in the world system is the unit matrix.

3. The frequency-stabilized UAV autonomous landing method based on nested enhanced reference codes according to claim 2 is characterized in that: The S2 is specifically as follows: Define the body coordinate system O b X b Y b Z b , and the center of mass of the drone is O b is the origin, and the nose direction is X b , perpendicular to the plane of the body downward is Z b ; Define the camera coordinate system O c X c Y c Z c , and the camera optical center O c The origin is Z, which coincides with the optical axis and points to the front of the camera. c , X c With Y c Parallel to the imaging plane; define the image pixel coordinate system Ouv, with the upper left corner of the image plane as the origin, and the u axis and v axis are parallel to the two sides of the image plane respectively; First, calculate the position of the camera in the world coordinate system, and use the transformation matrix of the camera coordinate system and the body coordinate system to obtain the position of the drone in the world coordinate system to achieve landing; To solve the position of the camera in the world coordinate system, it is necessary to first solve the homography matrix H, and set the intrinsic parameter matrix of the camera to be K: Among them, f x Indicates the focal length of the camera in the horizontal direction of the image; f y Indicates the focal length of the camera in the vertical direction of the image; c x and c y Represents the coordinates of the optical center on the u-axis and v-axis of the image pixel coordinate system; In order to transform a certain position in space to a pixel point on the image plane, the camera projection matrix K[R|t] is used, where R is the rotation of the camera in the world coordinate system, R = [r0 r1 r2], and t is the position of the camera in the world coordinate system; in order to calculate a certain point p on the nested reference code in the world system w (x,y,0) is the position p in the image pixel coordinate system uv ; When the outer reference code is within the field of view, the relative pose of the camera and the outer code is calculated, and then converted to the pose in the world coordinate system through pose transformation; when the landing altitude decreases and the complete outer code cannot be observed within the field of view, the relative pose of the camera and the inner code is calculated and positioned; the pose and pose output frequency of the current drone in the world system are calculated.

4. The method for autonomous landing of a frequency-stabilized UAV based on a nested enhanced reference code according to claim 3, characterized in that: The S2 p uv for: At this time, K[r0 r1 t] is the homography matrix that maps points in space to the pixel plane; if the reference code in space is reduced to a unit square, then: Where [x′y′1] is the corner point of the unit square after scaling, and λ is the scaling factor, then: Among them, K[r0′r1′t] is the scaled homography matrix. The position of the camera in the world system is obtained through normalization processing, and the position of the drone in the world system can be obtained through the camera's external parameter matrix.

5. The method for autonomous landing of a frequency-stabilized UAV based on a nested enhanced reference code according to claim 4, characterized in that: The S3 is as follows: (a) Initialization: When the camera detects the first frame of the outer reference code, the pixel positions of the four corner points of the outer reference code in S2 are recorded, and the four pixel points are connected in pairs to obtain the position boundary box of the current outer reference code in the pixel coordinates; according to the set constant k scale Expand the bounding box outward to obtain the region of interest and input it to initialize the dual correlation filter tracker; The dual correlation filter tracker publishes the pose after initialization and performs the update process after detecting the next frame of nested reference code; (b) Update: After completing the dual correlation filter initialization for the first frame of image in (a), the update is performed when a new frame of image is received. The update process is used as the image tracking process. Samples are collected by cyclic shifting the region of interest, and the dual correlation filter tracker is trained using the ridge regression method. The circulant matrix can be diagonalized in Fourier space to convert the operation of the circulant matrix into the dot product of the vector. The dual correlation filter tracker is trained using a linear kernel function to complete the update process and obtain the final image.

6. The method for autonomous landing of a frequency-stabilized UAV based on a nested enhanced reference code according to claim 5, characterized in that: The S4 is specifically as follows: When the pose output frequency does not reach 50HZ, the image is downsampled and an image pyramid is constructed, with the new frame of the largest size stored at the bottom layer; then, Gaussian blur is performed on the bottom layer of the image, and even rows and even columns are deleted to obtain the result of a downsampling and add it to the Gaussian pyramid; the downsampling process is repeated multiple times on the image of the previous layer of the Gaussian pyramid to obtain an image pyramid, with the top layer storing the image obtained by the last sampling; after the image is downsampled, the pose is published.

7. The frequency-stabilized UAV autonomous landing method based on nested enhanced reference codes according to claim 6 is characterized in that: The S5 is specifically as follows: After the data of the onboard sensor IMU is passed through the extended Kalman filter, the accelerometer and gyroscope information is output; the filtered accelerometer and gyroscope information and the posture released after S3 initialization or the posture released by S4 are obtained through the extended Kalman filter to obtain the position, speed and rotation information of the drone; The filtered position, speed and rotation information are calculated with the desired position, speed and rotation information through a cascade position controller to obtain the desired rotation and force; The desired rotation is calculated by the high-level attitude controller to obtain the desired angular rate. The desired angular rate is calculated by the low-level attitude controller to obtain the torque, and the force and torque are output to the motor controller to complete the control of the drone. After that, the reference code detection is performed at the next moment.