Precise landing method for multi-rotor drones based on flickering point light source and computer vision
By combining flickering point light sources and computer vision technology on multi-rotor drones, the problem of large landing errors of drones under GPS positioning is solved, precise landing is achieved, landing accuracy and anti-interference capabilities are improved, and it is suitable for a variety of application scenarios. .
Patent Information
- Application Number
- CN202210310313.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-03-28
AI Technical Summary
The landing technology of multi-rotor drones based on GPS positioning has large errors and is difficult to meet the requirements for precise landing in some applications, especially in scenarios where the error radius needs to be controlled within 0.2 meters.
A precise landing method based on flickering point light sources and computer vision is adopted. By installing a flickering point light source at the target landing point, and installing a camera and radar on the drone, the flickering frequency of the flickering point light source and the camera shooting frequency are used for image processing to calculate the target. The location of the landing point, establish a relationship model between the drone and the target landing point, and control the drone to move horizontally and vertically to achieve precise landing.
It improves the landing accuracy of multi-rotor UAVs. The landing position error is within the specified range. It has good anti-interference ability and has a wide range of applications, achieving precise landing of UAVs.
Smart Images

Figure CN114706420B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to a multi-rotor unmanned aerial vehicle landing technology, and in particular relates to a multi-rotor unmanned aerial vehicle precise landing method based on a flashing point light source and computer vision. Background Art
[0002] The precision landing technology of multi-rotor drones is designed to solve the problem of large errors when landing based on GPS positioning points. Generally, due to the error of GPS positioning, the landing error of multi-rotor drones based on GPS positioning may reach a radius of 3 meters or even larger. In some applications, the error between the landing point of the multi-rotor drone and the actual landing point must be controlled within a specified range, for example, the error radius is 0.2 meters. In the following, the precision landing mentioned refers to the landing technology in which the error radius of the landing point must be controlled within a specified range.
[0003] There are many application scenarios that require multi-rotor drones to land precisely. A typical application is the management of fully automated flight missions for multi-rotor drones. In this type of fully automated flight mission management application, drone users can first use software, such as setting flight waypoints, routes, and tasks required at each waypoint on the drone's remote control, and then set the GPS coordinates of the drone's landing location. After that, the drone performs the mission according to the set waypoints and routes. Once the mission is completed, the drone automatically returns to the set GPS coordinate location. In order to cooperate with the work of the ground drone automatic management system, such as storing the drone in the parking cabin through an intelligent robot, or automatically changing the battery for the drone, it is necessary to reduce the error distance between the actual landing point of the drone and the target landing location, requiring the drone to land accurately at the preset location, and the error must meet the specified requirements.
[0004] Therefore, multi-rotor UAV precision landing technology is needed to control the landing position of the UAV to meet the requirements. Summary of the invention
[0005] The object of the present invention is to provide a multi-rotor UAV precise landing method based on a flashing point light source and computer vision to improve the landing accuracy of the multi-rotor UAV.
[0006] The purpose of the present invention is achieved through the following technical solution: a multi-rotor drone precise landing method based on flashing point light source and computer vision, specifically comprising the following steps:
[0007] S1. Install a flashing point light source at the target landing point;
[0008] S2. Install a camera and a radar on the multi-rotor drone, wherein the camera is located at the center of the bottom surface of the drone;
[0009] S3, when the UAV reaches a preset height from the target landing point, the radar is started to detect the height of the UAV from the target landing point, and the camera is started to capture an image of the target landing point at the same time, and the camera captures at least one image in which the flashing point light source is in a lit state and at least one image in which the flashing point light source is in an unlit state within one shooting cycle;
[0010] S4, converting the captured image into a black and white binary image, and performing a pairwise subtraction operation to obtain a difference result image, wherein the white points in the difference result image represent the target landing point, and finding the image with the most white points from the difference result image as the target difference result image;
[0011] S5, calculating the coordinate position of the center point of all white points in the target difference result image in the image, and the coordinate position is the position of the target landing point;
[0012] S6. Establish a relationship model between the location of the UAV and the location of the target landing point, calculate the moving distance of the UAV in the horizontal x direction and the vertical y direction according to the relationship model so that the UAV is located directly above the target landing point, and then control the UAV to land at the target landing point.
[0013] The present invention can improve the landing accuracy of a multi-rotor drone, so that the landing position of the drone meets the requirements, and the present invention uses a flashing point light source to guide the drone to land, which has good anti-interference ability. In addition, the present invention is simple to implement and has a wide range of applications, and can be applied to the precise landing of various multi-rotor drones.
[0014] The flashing point light source of the present invention is located at the center of the target landing point, or multiple flashing point light sources are installed around the center of the target landing point to overcome the problem of single light source failure.
[0015] The scintillation point light source described in the present invention is near-infrared scintillation light.
[0016] The preset height of the present invention is 8m to 15m.
[0017] In order to realize that the camera captures at least one image in which the flashing point light source is in a lit state and at least one image in which the flashing point light source is in an extinguished state within one shooting cycle, in the step S3 of the present invention, the frequency of the camera capturing images is determined according to the flashing frequency of the flashing point light source:
[0018] Assume that the flashing frequency of the flashing point light source is f1, and the frequency of the camera taking images is f2, then f1 and f2 satisfy the following constraints:
[0019] f2>f1, and f1>2 and f1≠n*f1 Formula ⑴
[0020] Wherein, n is a positive integer greater than or equal to 1.
[0021] In order to speed up the processing efficiency of the captured image, f2 is determined by the following formula while satisfying the constraints required by formula (1):
[0022] f2=argmin f (f>f1,f1>2 and f≠n×f1) Formula⑵
[0023] In the step S4 of the present invention, each captured image is first converted into a grayscale image, and then the obtained grayscale image is converted into a black and white binary image.
[0024] In the step S4 of the present invention, the target difference result image is calculated by the following formula:
[0025]
[0026] Where I is the number of the target difference result image; height is the height of the image; width is the width of the image; diff i is the i-th difference result image; n is the number of difference result images; x, y are the coordinates in the image coordinate system established with the upper left corner of the image as the origin.
[0027] The present invention establishes an image coordinate system with the upper left corner of the target difference result image as the origin, the x-axis is positive to the right, and the y-axis is positive downward, and calculates the coordinate position of the center point of the white point in the target difference result image in the image:
[0028]
[0029]
[0030]
[0031] Where count is the number of white points in the image; X and Y are the coordinate positions; diff I is the target difference result image.
[0032] The relationship model between the location of the drone and the target landing point of the present invention is obtained by the following steps:
[0033] 1. Generally speaking, the target difference result image is a rectangular image. If the drone is regarded as a point mass, the drone is directly above the center of the image. Let the drone's position be A, the image center be O, and the foot of the perpendicular line from the image center to the short side be C. The coordinates of the target landing point (X, Y), the camera's viewing angle α, and the vertical height H of the drone from the target landing point are known. Figure 1As shown, the distance L between point O and point C is OC :
[0034]
[0035] 2. Calculate the actual physical length L represented by each pixel of the image pixel :
[0036]
[0037] 3. Establish an image coordinate system with the upper left corner of the target difference result image as the origin, with the x-axis pointing rightwards as positive and the y-axis pointing downwards as positive. Calculate the x-axis movement component X of the drone. horizontal and the y-axis translation component Y vertical :
[0038]
[0039]
[0040] That is, the moving distance of the drone in the x-axis direction and the y-axis direction is obtained.
[0041] The drone of the present invention is based on X horizontal and Y vertical Move the position so that it is directly above the target landing point, and then control the drone to land at the target landing point. This control method is: directly command the drone to land vertically at the target landing point, or command the drone to descend vertically for a distance, and then control the drone according to the X horizontal and Y vertical Move position, then descend vertically to the target landing point.
[0042] Compared with the prior art, the present invention has the following significant effects:
[0043] (1) The present invention can improve the landing accuracy of a multi-rotor UAV and make the landing position of the UAV meet the requirements.
[0044] (2) The present invention uses a flashing point light source to guide the UAV to land, and has good anti-interference ability.
[0045] ⑶ The present invention is supported by a reliable mathematical model and has strong stability and reliability.
[0046] (4) The present invention is simple to implement and has a wide range of applications, and can be applied to the precise landing of various multi-rotor drones. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0048] Figure 1It is a schematic diagram of a relationship model between the location of the drone and the location of the target landing point established by the present invention;
[0049] Figure 2 is the image captured by the camera;
[0050] Figure 3 Yes Figure 2 A grayscale image obtained by grayscale processing of the image captured by the camera;
[0051] Figure 4 Yes Figure 3 The black and white binary image after the image processed by medium grayscale is binarized;
[0052] Figure 5 Yes Figure 4 The difference result image after subtracting the black and white binary images in two ways;
[0053] Figure 6 is from Figure 5 The target difference result image is selected from the difference result images. DETAILED DESCRIPTION
[0054] The present invention provides a multi-rotor UAV precise landing method based on a flashing point light source and computer vision, comprising the following steps:
[0055] S1. Install a flashing point light source at the center of the target landing point. The flashing point light source is a point light source that flashes at a certain frequency. It can also be centered around the center of the target landing point, and multiple flashing point light sources are installed around the center to overcome the failure of a single light source. In order to reduce the complexity of post-image processing and computer vision processing, using near-infrared flashing light as a point light source can effectively improve the efficiency of image processing and increase the speed of computer image vision processing.
[0056] In this embodiment, a near-infrared flashing point light source with a wavelength of 980nm is installed at the center of the target landing point, and the flashing frequency of the point light source is 2, that is, in 1 second, the light source is turned on for 500ms and turned off for 500ms. A camera with a viewing angle of 65 degrees is used, and the horizontal resolution of the image taken by the camera is 1920 pixels and the vertical resolution is 1080 pixels.
[0057] S2. Install a camera at the center of the bottom of the drone to capture images of the target landing point, and install a radar to measure the height of the drone from the target landing point.
[0058] S3. When the drone flies to the area near the target landing point according to the GPS navigation information and autonomously descends to the preset height from the target landing point, the radar is activated to detect the altitude of the drone from the target landing point, and the camera is activated to capture an image of the target landing point. When the aircraft descends near the target landing point, the radar and camera are activated and the precise landing process is started when the preset altitude from the target landing point is 8m to 15m, which is an ideal empirical value. In this embodiment, the drone activates the radar and camera and starts the precise landing process when the preset altitude from the target landing point is 15m.
[0059] The main purpose of using a flashing point light source is to distinguish it from ambient light and to determine the landing point by tracking the flashing point light source. Therefore, in one cycle of the camera taking an image, it must be able to capture at least one image of the flashing point light source in the "lit" state and at least one image of the flashing point light source in the "off" state. Only in this way can the flashing light source be tracked by computer vision to determine the location of the target landing point. Therefore, it is necessary to determine the frequency of the camera's image capture based on the flashing frequency of the flashing point light source.
[0060] Assume that the flashing frequency of the flashing point light source is f1, and the frequency of the camera taking images is f2. In order to obtain at least one image of the flashing point light source in the "lit" state and at least one image of the flashing point light source in the "off" state within one shooting cycle of the camera, f1 and f2 must satisfy the following constraints:
[0061] f2>f1, and f1>2 and f1≠n*f1 Formula ⑴
[0062] Wherein, n is a positive integer greater than or equal to 1.
[0063] In order to speed up the processing efficiency of the captured image, f2 is determined by the following formula while satisfying the constraints required by formula (1):
[0064] f2=argmin f (f>f1,f1>2 and f≠n×f1) Formula⑵
[0065] In this embodiment, since f1 is 2, according to formula (2), f2 can be calculated to be 3. When the camera is started at a height of 15 meters from the target landing point, the following is obtained: Figure 2 The three color images shown (a filter was added to the camera, and the color image is only partial color), the first and second images are taken when the point light source is "lit", and the third image is taken when the point light source is "extinguished".
[0066] S4. For each image captured, first convert it into a grayscale image, such as Figure 3 As shown. Then the grayscale image is converted into a black and white binary image, as shown Figure 4 As shown, in a black and white binary image, the value 255 represents white and the value 0 represents black.
[0067] For all the binarized images, perform pairwise subtraction operations to obtain the difference result image, such as Figure 5 shown.
[0068] Under the premise that the light source flickering frequency f1 and the image shooting frequency f2 satisfy formula (2), within one shooting cycle, that is, within 1 second, there is at least one image of the flickering point light source in the "lit" state and at least one image of the flickering point light source in the "off" state. Among the difference result images obtained by performing pairwise subtraction operations on the black and white binary images, there must be at least one image that can represent the difference result image of the position of the point light source in the image. Therefore, the use of flickering point light sources can effectively eliminate the influence of ambient light on the judgment of the target landing point.
[0069] Due to the camera shake when the drone is taking images, the pixels may not completely correspond one to one when performing image subtraction, resulting in errors in the subtraction result image. To this end, the following formula is used to find the number I of the most ideal difference result image (i.e., the target difference result image) from all difference result images:
[0070]
[0071] Where I is the number of the target difference result image; height represents the height of the image, width represents the width of the image, and diff i represents the i-th difference result image, n represents a total of n difference images; x, y are the coordinates in the image coordinate system established with the upper left corner of the image as the origin. In layman's terms, formula (3) means finding the image with the most white points from all the difference result images as the target difference result image.
[0072] According to formula (3), the difference result image numbered 2 can be obtained as the target difference result image, such as Figure 6 shown.
[0073] S5, calculating the coordinate position of the center point of all white points in the target difference result image in the image, and the coordinate position is the position of the target landing point;
[0074] In order to calculate the distance between the drone and the target landing point, it is necessary to calculate the coordinate position of the target landing point in the image. However, since there are multiple white pixels representing the landing points in the target difference image, it is necessary to calculate the average position of these white pixels. Specifically, the image coordinate system is established with the upper left corner of the target difference result image as the origin, with the x-axis pointing rightward and the y-axis pointing downward. The following formula is used to calculate the center position of the white point in the target difference result image:
[0075]
[0076]
[0077]
[0078] Where count is the number of white points in the image; X and Y are the coordinate positions; diff I is the target difference result image;
[0079] against Figure 6 The target difference result image shown in the figure can be calculated according to formula (4) to obtain the position of the target landing point in the image coordinate system as (1214, 757), that is, (X, Y) = (1214, 757).
[0080] S6. Establish a relationship model between the location of the UAV and the location of the target landing point, calculate the moving distance of the UAV in the horizontal x direction and the vertical y direction according to the relationship model so that the UAV is located directly above the target landing point, and then control the UAV to land at the target landing point.
[0081] Since the camera is installed at the exact center of the drone, if the drone is regarded as a point mass, then in the image captured by the camera, the drone is located directly above the center of the image. At the same time, the (X, Y) coordinates calculated by formula (4) based on the target difference result image represent the target landing point. Therefore, by calculating the distance between the (X, Y) coordinates and the exact center of the image, the distance between the current position of the drone and the target landing point in the horizontal plane can be obtained, such as Figure 1 As shown, in the relationship model between the position of the drone and the target landing point, the following information is known: image width width, image height height, camera viewing angle α, and coordinates (X, Y) of the target landing point in the image. The vertical height H of the drone from the target landing point can be measured by the radar installed on the drone.
[0082] like Figure 1As shown, the target difference result image 2 is a rectangular image with an aspect ratio of 16:9. If UAV 1 is regarded as a point mass, UAV 1 is directly above the center of image 2. Let the position of UAV 1 be A, the target landing point be B, the center of the image be O, and the foot of the perpendicular line from the center of image 2 to the short side be C. In order to calculate the actual physical length represented by each pixel of the image, consider the right triangle AOC. The length of side AO is recorded as L AO , then L AO =H, ∠OAC = α / 2, let the length of side OC be L OC , then L OC It can be calculated by the following formula:
[0083]
[0084] In this embodiment, since the viewing angle of the camera is 65 degrees and H is 15 meters, according to formula (5), L can be calculated as OC The actual length is:
[0085]
[0086] From the perspective of the image, the edge OC has a total of width / 2 pixels, and the actual physical length of each pixel is L pixel , then L pixel It can be calculated by the following formula:
[0087]
[0088] In this embodiment, L can be calculated pixel for:
[0089]
[0090] The image coordinate system is established with the upper left corner of the target difference result image as the origin, the x-axis is positive to the right, and the y-axis is positive downward. The center point of the image, that is, the current drone is directly above the coordinates (width / 2, height / 2), and the coordinates of the target landing point are (X, Y). Let the x-axis movement component of the drone be X horizontal , y-axis moving component Y vertical , they can be calculated by the following formula:
[0091]
[0092]
[0093] In this embodiment, the distances that the drone needs to move in the horizontal and vertical directions can be calculated as:
[0094]
[0095]
[0096] In other words, the drone can reach the top of the target landing point by moving 2.54 meters in the positive direction of the x-axis and 2.17 meters in the positive direction of the y-axis of the image coordinate system.
[0097] According to the moving distance of the drone in the x-axis direction and the y-axis direction obtained by formula ⑺, there are two ways to control the drone to land at the target landing point. Method 1: The drone moves according to the X-axis direction. horizontal and Y vertical Move the position so that it is directly above the target landing point, and then directly command the drone to land. Method 2: The drone will land according to X horizontal and Y vertical Move the position so that it is directly above the target landing point, then command the drone to descend a certain vertical distance, calculate the horizontal and vertical movement distances again according to formula ⑺, and move and descend again until the landing point reaches the target landing point. The two methods have their own characteristics: method 1 has a short landing time, but weak resistance to external interference, for example, wind can cause the drone to deviate; method 2 has a long landing time, but strong resistance to external interference.
Claims
1. A multi-rotor UAV precise landing method based on flashing point light source and computer vision, characterized in that The following steps are involved: S1. Install a flashing point light source at the target landing point; S2. Install a camera and a radar on the multi-rotor drone, wherein the camera is located at the center of the bottom surface of the drone; S3, when the UAV reaches a preset height from the target landing point, the radar is started to detect the height of the UAV from the target landing point, and the camera is started to capture an image of the target landing point at the same time, and the camera captures at least one image in which the flashing point light source is in a lit state and at least one image in which the flashing point light source is in an unlit state within one shooting cycle; S4, converting the captured image into a black and white binary image, and performing a pairwise subtraction operation to obtain a difference result image, wherein the white points in the difference result image represent the target landing point, and finding the image with the most white points from the difference result image as the target difference result image; S5, calculating the coordinate position of the center point of all white points in the target difference result image in the image, and the coordinate position is the position of the target landing point; S6. Establish a relationship model between the location of the UAV and the location of the target landing point, calculate the moving distance of the UAV in the horizontal x direction and the vertical y direction according to the relationship model so that the UAV is located directly above the target landing point, and then control the UAV to land at the target landing point.
2. The multi-rotor UAV precise landing method based on flashing point light source and computer vision according to claim 1 is characterized in that: The flashing point light source is located at the center of the target landing point, or the center of the target landing point is taken as the center, and multiple flashing point light sources are installed around the center.
3. The multi-rotor UAV precise landing method based on flashing point light source and computer vision according to claim 2 is characterized in that: The scintillation point light source is near-infrared scintillation light.
4. The multi-rotor UAV precise landing method based on flashing point light source and computer vision according to claim 3 is characterized in that: The preset height is 8m to 15m.
5. The multi-rotor UAV precise landing method based on flashing point light source and computer vision according to claim 4 is characterized in that: In step S3, the frequency of the camera taking images is determined according to the flickering frequency of the flickering point light source: Assume that the flashing frequency of the flashing point light source is f1, and the frequency of the camera taking images is f2, then: f2>f1, and f1>2 and f1≠n*f1 Formula ⑴ f2=argmin f (f>f1,f1>2 and f≠n×f1) Formula ⑵ Wherein, n is a positive integer greater than or equal to 1.
6. The multi-rotor UAV precise landing method based on flashing point light source and computer vision according to claim 5 is characterized in that: In the step S4, each captured image is first converted into a grayscale image, and then the obtained grayscale image is converted into a black and white binary image.
7. The multi-rotor UAV precise landing method based on flashing point light source and computer vision according to claim 6 is characterized in that: In step S4, the target difference result image is calculated by the following formula: Where I is the number of the target difference result image; height is the height of the image; width is the width of the image; diff i is the i-th difference result image; n is the number of difference result images; x, y are the coordinates in the image coordinate system established with the upper left corner of the image as the origin.
8. The multi-rotor UAV precise landing method based on flashing point light source and computer vision according to claim 7 is characterized in that: The image coordinate system is established with the upper left corner of the target difference result image as the origin, the x-axis is positive to the right, and the y-axis is positive downward. The coordinate position of the center point of the white point in the target difference result image in the image is calculated: Where count is the number of white points in the image; X and Y are the coordinate positions; diff I is the target difference result image.
9. The multi-rotor UAV precise landing method based on flashing point light source and computer vision according to claim 8, characterized in that: The relationship model between the position of the drone and the target landing point is obtained by the following steps:
1. The target difference result image is a rectangular image. If the drone is regarded as a mass point, the drone is directly above the center of the target difference result image. Assume that the drone is located at A, the image center is O, and the foot of the perpendicular line from the image center to the short side is C. Given the coordinates of the target landing point (X, Y), the camera's viewing angle α, and the vertical height H of the drone from the target landing point, the distance L between point O and point C is OC :
2. Calculate the actual physical length L represented by each pixel of the image pixel :
3. Establish an image coordinate system with the upper left corner of the target difference result image as the origin, with the x-axis pointing rightwards as positive and the y-axis pointing downwards as positive. Calculate the x-axis movement component X of the drone. horizontal and the y-axis translation component Y vertical : That is, the moving distance of the drone in the x-axis direction and the y-axis direction is obtained.
10. The multi-rotor UAV precise landing method based on flashing point light source and computer vision according to claim 9, characterized in that: Drones according to X horizontal and Y vertical Move the position so that it is directly above the target landing point, and then control the drone to land at the target landing point. This control method is: directly command the drone to land vertically at the target landing point, or command the drone to descend vertically for a distance, and then control the drone according to the X horizontal and Y vertical Move position, then descend vertically to the target landing point.
