Unmanned aerial vehicle operation optimization method and system based on nest image processing
Through Nest image processing technology, combined with natural light and infrared light image analysis, optimized landing parameters are provided, which solves the problem of potential safety hazards of drone takeoff and landing, improves the safety and positioning accuracy of the power line inspection system, and ensures unmanned The machine operates normally in various environments.
Patent Information
- Application Number
- CN202410876588.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-27
AI Technical Summary
The existing power line drone inspection system has safety hazards during takeoff and landing. It fails to effectively consider factors such as insufficient clearance above the aircraft nest and abnormal weather, resulting in docking failure and threatening normal inspection work.
Using a drone operation optimization method based on nest image processing, the drone locates its own position and the nest position, collects and analyzes natural light and infrared light images, and provides dual landing parameters to ensure the safe takeoff and landing of the drone. Use pre-stored images and QR code feature point matching to adjust the camera angle and flight parameters to achieve optimized landing of the drone.
It improves the safety and positioning accuracy of the drone when it returns home, and can ensure the safe landing of the drone within the position deviation range to a great extent. The applicability and safety are also effective in the presence of abnormal weather or obstacles. landing, enhancing the reliability of the system.
Smart Images

Figure CN118707989A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of unmanned aerial vehicles, and in particular relates to a method and system for optimizing the operation of unmanned aerial vehicles based on machine nest image processing. Background Art
[0002] In the power industry, ensuring the normal operation of power lines and timely detecting potential problems are crucial to the stability of energy supply. Traditional power line inspections usually rely on manual inspections, but this approach has many challenges, such as high work risks, low efficiency, and high labor costs. The introduction of drone technology provides innovative solutions for power line inspections, especially in achieving automation and intelligence.
[0003] The current automatic inspection of power lines by drones has developed towards full automation and intelligence. The drones usually live in the nests on the towers, take off from the nests at regular intervals, inspect the power lines according to the pre-planned routes and plans, and then cooperate with the nests to land safely in the nests, without the need for human intervention.
[0004] At present, there are still some safety hazards in the fully automatic inspection method. For example, when taking off, the lack of clearance above the nest due to the growth of trees and other conditions is not taken into account, and the docking failure due to smoke or other factors during landing. These unsafe factors threaten the normal inspection work of the drone.
[0005] Patent document CN113342046A discloses a method for optimizing transmission line drone inspection paths based on an ant colony algorithm, including: obtaining geographic information data of transmission lines and poles and towers; obtaining inspection drone parameters, pole tower physical data, and wireless network coverage areas; marking poles and towers in satellite map images, and marking contour lines in satellite map images; calculating the effective link distance of the drone and the lowest altitude of the pole tower inspection task point; drawing the effective link area for drone inspection in the satellite map image; superimposing the wireless network coverage area, pole tower markings, and the effective link area for drone inspection on the highway map, and setting the take-off and landing points of the inspection drone; establishing a transmission line drone inspection path planning model; and solving to obtain the optimal drone inspection path set. Patent document CN116719339A discloses a power line inspection control method and system based on drones, which includes the following steps: S1. Obtain inspection tasks, control drones to collect the pole tower position coordinate information within the inspection area corresponding to all inspection tasks; S2. Generate multiple inclined flight routes corresponding to the inspection tasks based on the pole tower position coordinate information; S3. Control the drone to fly according to the multiple inclined flight routes, and collect point cloud data corresponding to the inclined flight routes during the flight, and generate flight routes based on the point cloud data; S4. Perform altitude tests on all flight routes to obtain the optimal flight route corresponding to the inspection tasks; S5. Obtain the target inspection task, match the optimal flight route corresponding to the target inspection task, and control the drone to perform inspection according to the optimal flight route. The above method focuses on the entire process of drones used for line inspection, and does not pay enough attention to the safety of drone takeoff and landing.
[0006] Therefore, how to provide an optimization method that can effectively ensure the safety of drone take-off and landing is an urgent problem to be solved by technicians in this field. Summary of the invention
[0007] In view of the defects existing in the prior art, the present invention provides a method and system for optimizing the operation of unmanned aerial vehicles based on drone nest image processing.
[0008] In a first aspect, the present invention provides a method for optimizing the operation of a drone based on drone nest image processing, comprising: The UAV locates its own position coordinates, and combines the position coordinates of the machine nest to give the first landing parameters for the UAV to land; Based on the UAV's own position coordinates and the position coordinates of the nest, the nest image is collected; Based on the pre-stored image of the nest, the nest image is identified and analyzed, and the second landing parameter of the UAV is given; Optimize the operation of the UAV based on the first landing parameter and the second landing parameter, and provide the actual landing parameters of the UAV; The UAV lands in the nest according to the actual landing parameters.
[0009] Furthermore, the first landing parameter, the second landing parameter and the actual landing parameter all include a target altitude, a target flight speed and a target attitude.
[0010] Among them, the UAV's own position coordinates and the position coordinates of the machine nest (the position coordinates pre-stored in the machine nest) are both coordinates in the geocentric coordinate system.
[0011] Furthermore, the UAV operation optimization method also includes: Collecting a takeoff path image at the location of the nest that matches the takeoff path of the UAV; The UAV identifies and analyzes the take-off path image and takes off from the nest when there are no obstacles in the take-off path image.
[0012] Furthermore, a takeoff path image matching the takeoff path of the drone at the location of the nest is collected, including: Collect the voltage status of the drone; When the voltage status of the UAV is normal, the machine nest collects a takeoff path image that matches the takeoff path of the UAV and sends the takeoff path image to the UAV.
[0013] Furthermore, the UAV identifies and analyzes the take-off path image and takes off when there are no obstacles in the take-off path image, including: The drone identifies the takeoff path image based on a pre-built image classification model to determine whether the takeoff path image is an image that only contains the sky; When it is determined that the take-off path image is an image containing only the sky, a normal signal is sent to the aircraft nest; The machine nest receives the normal signal and opens its cover, sending a take-off command to the drone; The drone takes off from the nest after receiving the take-off command.
[0014] Furthermore, the UAV locates its own position coordinates, and combines the position coordinates of the machine nest to give the first landing parameters for the UAV to land, including: Based on the satellite station and the pre-stored nest position coordinates, the current position coordinates of the drone are obtained; According to the position coordinates pre-stored in the machine nest and the current position coordinates of the UAV, the current position of the UAV relative to the machine nest is obtained; According to the preset orientation and the current orientation of the drone relative to the machine nest, the orientation to be adjusted of the drone at the current altitude is obtained; The drone maintains the current flight speed and flies to the preset position in the direction to be adjusted; Obtain the first coordinate of the drone at a preset position, and determine the flight parameters of the drone flying to the preset height in combination with the preset height of the drone relative to the nest and the current attitude information of the drone; The drone flies to a preset altitude according to the flight parameters, and obtains the location coordinates of the drone after the drone reaches a preset orientation and a preset altitude; According to the drone position coordinates obtained after the drone reaches the preset orientation and preset altitude, and the landing strategy of the drone, the first landing parameters of the drone are given.
[0015] Furthermore, based on the self-position coordinates of the UAV and the position coordinates of the nest, the nest image is collected, including: The drone locates its own position coordinates after reaching the preset direction and preset altitude; According to the self-position coordinates of the drone after reaching the preset orientation and preset altitude, and the position coordinates pre-stored in the nest, the height difference between the drone and the nest is obtained; According to the height difference between the drone and the nest, as well as the current attitude information of the drone, the required rotation angle of the camera when the drone's camera is aimed at the nest is given; The UAV adjusts the camera according to the rotation angle required when the camera is aimed at the machine nest and takes the image of the machine nest.
[0016] Furthermore, according to the height difference between the drone and the nest, and the current attitude information of the drone, the rotation angle required for the camera of the drone to be aimed at the nest is given, including: After the drone reaches the preset position and the preset altitude, it locates its own position coordinates and the position coordinates pre-stored by the nest, and obtains the relative distance between the drone and the nest; According to the height difference and relative distance between the UAV and the machine nest, as well as the current attitude information of the UAV, the rotation angle of the UAV to face the machine nest is obtained; According to the relative attitude information of the camera with respect to the drone body and the rotation angle of the drone when it rotates toward the nest, the rotation angle required for the camera to be aimed at the nest is obtained.
[0017] Further, the machine nest image includes a natural light image and an infrared light image, and the pre-stored pattern includes a pre-stored QR code pattern and a pre-stored infrared light pattern; Based on the pre-stored image of the nest, the nest image is identified and analyzed, and the second landing parameters for the UAV landing are given, including: Perform QR code detection on natural light images and give a detection result of whether there is a QR code in the natural light image; When there is a two-dimensional code in the natural light image, feature point matching is performed between the two-dimensional code in the natural light image and a pre-stored two-dimensional code pattern, and a first homography transformation matrix is given; Based on the first homography transformation matrix and the center point coordinates of the pre-stored QR code pattern, a second landing parameter for the UAV to land is given; When there is no QR code in the natural light image, feature point matching is performed on the infrared light image and the pre-stored infrared light pattern, and the machine nest area is detected, and a second homography transformation matrix in the machine nest area is given; Based on the second homography transformation matrix and the center point coordinates of the pre-stored infrared light pattern, a second landing parameter for the UAV to land is given.
[0018] Furthermore, feature point matching is performed on the two-dimensional code in the natural light image and the pre-stored two-dimensional code pattern, and a first homography transformation matrix is given, including: Perform feature point detection on the two-dimensional code in the natural light image and the pre-stored two-dimensional code pattern, and provide a corresponding relationship between the feature points of the two-dimensional code in the natural light image and the feature points of the pre-stored two-dimensional code pattern; From all pairs of feature points that have corresponding relationships, four pairs of feature points are randomly selected for a predetermined number of times and each time for analysis and processing, and a corresponding natural light homography transformation matrix is given; The natural light homography transformation matrix with the largest number is selected from all natural light homography transformation matrices to obtain a first homography transformation matrix.
[0019] Furthermore, based on the first homography transformation matrix and the center point coordinates of the pre-stored QR code pattern, a second landing parameter for the drone to land is given, including: Calculate the coordinates of the center point of the pre-stored QR code pattern in the reference coordinate system where the drone is currently located according to the first homography transformation matrix and the coordinates of the center point of the pre-stored QR code pattern; According to the coordinates of the center point of the pre-stored QR code pattern in the reference coordinate system where the drone is currently located, and the camera coordinates of the drone, the offset of the drone relative to the center point of the pre-stored QR code pattern is obtained; According to the offset of the drone relative to the center point of the pre-stored two-dimensional code pattern and in combination with the landing strategy of the drone, a second landing parameter for the drone landing is obtained.
[0020] Among them, the camera coordinates of the drone are obtained through the positional relationship between the camera and the drone body, as well as the coordinates of the drone (the coordinates of the drone body).
[0021] Further, according to the first homography transformation matrix and the coordinates of the center point of the pre-stored two-dimensional code pattern, the coordinates of the center point of the pre-stored two-dimensional code pattern in the reference coordinate system where the drone is currently located are calculated, including: According to the coordinates of the center point of the pre-stored two-dimensional code pattern, as well as the intrinsic parameter matrix and the extrinsic parameter matrix of the camera, the coordinates of the center point of the pre-stored two-dimensional code pattern in the camera coordinate system are obtained; Obtaining the coordinates of the center point of the pre-stored QR code pattern in the camera coordinate system of the current drone according to the first homography transformation matrix and the coordinates of the center point of the pre-stored QR code pattern in the camera coordinate system; According to the coordinates of the center point of the pre-stored QR code pattern in the camera coordinate system of the current drone, as well as the intrinsic parameter matrix and extrinsic parameter matrix of the camera, the coordinates of the center point of the pre-stored QR code pattern in the reference coordinate system where the drone is currently located are obtained.
[0022] Furthermore, feature point matching is performed on the infrared light image and the pre-stored infrared light pattern, and the machine nest area is detected, and a second homography transformation matrix in the machine nest area is given, including: Performing feature point detection on the infrared light image and the pre-stored infrared light pattern, and providing a corresponding relationship between the feature points of the infrared light image and the feature points of the pre-stored infrared light pattern; The pre-built machine nest detection model is used to detect the machine nest area in the infrared light image and the pre-stored infrared light pattern, and the characteristic points in the machine nest area in any infrared image are screened out; Based on the selected feature points and the correspondence between the feature points of the infrared light image and the feature points of the pre-stored infrared light pattern, a pair of feature points corresponding to the selected feature points is given; From all given pairs of feature points, four pairs of feature points are randomly selected for a predetermined number of times and each time for analysis and processing, and a corresponding infrared light homography transformation matrix is given; The infrared light homography transformation matrix with the largest number is selected from all the infrared light homography transformation matrices to obtain a second homography transformation matrix.
[0023] Furthermore, based on the second homography transformation matrix and the center point coordinates of the pre-stored infrared light pattern, a second landing parameter for the drone landing is given, including: The coordinates of the center point of the pre-stored infrared light pattern in the reference coordinate system where the drone is currently located are calculated according to the second homography transformation matrix and the coordinates of the center point of the pre-stored infrared light pattern; According to the coordinates of the center point of the pre-stored infrared light pattern in the reference coordinate system where the drone is currently located, and the camera coordinates of the drone, an offset of the drone relative to the center point of the pre-stored infrared light pattern is obtained; According to the offset of the UAV relative to the center point of the pre-stored infrared light pattern and in combination with the landing strategy of the UAV, a second landing parameter for the UAV landing is obtained.
[0024] The center of the pre-stored infrared light pattern coincides with the center of the top surface of the machine nest.
[0025] Further, according to the second homography transformation matrix and the coordinates of the center point of the pre-stored infrared light pattern, the coordinates of the center point of the pre-stored infrared light pattern in the reference coordinate system where the drone is currently located are calculated, including: According to the coordinates of the center point of the pre-stored infrared light pattern, and the intrinsic parameter matrix and the extrinsic parameter matrix of the camera, the coordinates of the center point of the pre-stored infrared light pattern in the camera coordinate system are obtained; Obtaining the coordinates of the center point of the pre-stored infrared light pattern in the camera coordinate system of the current drone according to the second homography transformation matrix and the coordinates of the center point of the pre-stored infrared light pattern in the camera coordinate system; According to the coordinates of the center point of the pre-stored infrared light pattern in the camera coordinate system of the current drone, as well as the intrinsic parameter matrix and extrinsic parameter matrix of the camera, the coordinates of the center point of the pre-stored infrared light pattern in the reference coordinate system where the drone is currently located are obtained.
[0026] Among them, the center point coordinates of the pre-stored QR code pattern and the center point coordinates of the pre-stored infrared light pattern are both coordinates in the geocentric coordinate system or the world coordinate system, the coordinates of the drone and the camera coordinates of the drone are both coordinates in the world coordinate system, and the current reference coordinate system of the drone is the world coordinate system.
[0027] Furthermore, the operation of the UAV is optimized based on the first landing parameter and the second landing parameter, and actual landing parameters of the UAV landing are given, including: Compare the difference between the first landing parameter and the second landing parameter with the error threshold range and provide a comparison result; When the difference between the first landing parameter and the second landing parameter is within the error threshold range, the average value of the first landing parameter and the second landing parameter is used as the actual landing parameter of the UAV.
[0028] In a second aspect, the present invention further provides a system using the above-mentioned drone operation optimization method, comprising: The positioning and parameter determination module is used to locate the position coordinates of the UAV and, combined with the position coordinates of the machine nest, give the first landing parameters for the UAV to land; The machine nest image acquisition module is used to acquire the machine nest image based on the UAV's own position coordinates and the position coordinates of the machine nest; The recognition and analysis module is used to recognize and analyze the image of the machine nest based on the pre-stored image of the machine nest, and provide the second landing parameter of the UAV landing; An actual parameter determination module, which is used to optimize the operation of the UAV based on the first landing parameter and the second landing parameter, and provide actual landing parameters for the landing of the UAV; The drone adjustment module is used to control the drone to land in the nest according to the actual landing parameters.
[0029] Furthermore, the drone operation optimization system also includes: A path image acquisition module, which is used to acquire a takeoff path image at the location of the machine nest that matches the takeoff path of the UAV; The image analysis module is used to identify and analyze the take-off path image, and control the UAV to take off from the nest when there are no obstacles in the take-off path image.
[0030] Furthermore, the image analysis module includes: The drone identifies the takeoff path image based on a pre-built image classification model to determine whether the takeoff path image is an image that only contains the sky; When it is determined that the take-off path image is an image containing only the sky, a normal signal is sent to the aircraft nest; The machine nest receives the normal signal and opens its cover, sending a take-off command to the drone; The drone takes off from the nest after receiving the take-off command.
[0031] The positioning and parameter determination module also includes: Based on the satellite station and the pre-stored nest position coordinates, the current position coordinates of the drone are obtained; According to the position coordinates pre-stored in the machine nest and the current position coordinates of the UAV, the current position of the UAV relative to the machine nest is obtained; According to the preset orientation and the current orientation of the drone relative to the machine nest, the orientation to be adjusted of the drone at the current altitude is obtained; The drone maintains the current flight speed and flies to the preset position in the direction to be adjusted; Obtain the first coordinate of the drone at a preset position, and determine the flight parameters of the drone flying to the preset height in combination with the preset height of the drone relative to the nest and the current attitude information of the drone; The drone flies to a preset altitude according to the flight parameters, and obtains the location coordinates of the drone after the drone reaches a preset orientation and a preset altitude; According to the drone position coordinates obtained after the drone reaches the preset orientation and preset altitude, and the landing strategy of the drone, the first landing parameters of the drone are given.
[0032] The machine nest image acquisition module also includes The drone locates its own position coordinates after reaching the preset direction and preset altitude; According to the self-position coordinates of the drone after reaching the preset orientation and preset altitude, and the position coordinates pre-stored in the nest, the height difference between the drone and the nest is obtained; According to the height difference between the drone and the nest, as well as the current attitude information of the drone, the required rotation angle of the camera when the drone's camera is aimed at the nest is given; The UAV adjusts the camera according to the rotation angle required when the camera is aimed at the machine nest and takes the image of the machine nest.
[0033] The recognition and analysis module also includes: Perform QR code detection on natural light images and give a detection result of whether there is a QR code in the natural light image; When there is a two-dimensional code in the natural light image, feature point matching is performed between the two-dimensional code in the natural light image and a pre-stored two-dimensional code pattern, and a first homography transformation matrix is given; Based on the first homography transformation matrix and the center point coordinates of the pre-stored QR code pattern, a second landing parameter for the UAV to land is given; When there is no QR code in the natural light image, feature point matching is performed on the infrared light image and the pre-stored infrared light pattern, and the machine nest area is detected, and a second homography transformation matrix in the machine nest area is given; Based on the second homography transformation matrix and the center point coordinates of the pre-stored infrared light pattern, a second landing parameter for the UAV to land is given.
[0034] The actual parameter determination module also includes: Compare the difference between the first landing parameter and the second landing parameter with the error threshold range and provide a comparison result; When the difference between the first landing parameter and the second landing parameter is within the error threshold range, the average value of the first landing parameter and the second landing parameter is used as the actual landing parameter of the UAV.
[0035] The present invention provides a method and system for optimizing the operation of a drone based on drone nest image processing, which at least has the following beneficial effects: (1) When the drone lands, dual confirmation is performed through navigation positioning and camera positioning to achieve operational optimization during the landing of the drone, so that the drone can land within a certain range of position offset, which can greatly improve the safety of the drone when it returns to its home.
[0036] (2) When performing camera positioning, the positioning accuracy can be improved by collecting natural light images and positioning based on the QR code. In addition, by collecting natural light images and infrared light images at the same time, when the natural light camera cannot take pictures normally due to abnormal weather such as heavy fog or abnormal conditions such as tree branches blocking the view, the infrared light image can be used to verify the landing position, further improving the safety and applicability of camera positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A flowchart of a method for optimizing the operation of a drone based on drone nest image processing provided by the present invention; Figure 2 A flowchart of a drone taking off in a certain embodiment of the present invention; Figure 3 A flow chart of a first landing parameter is provided for a certain embodiment provided by the present invention; Figure 4A flowchart of obtaining the current position coordinates of a drone in an embodiment provided by the present invention; Figure 5 A flowchart of collecting an image of a machine nest according to an embodiment of the present invention; Figure 6 A flow chart of a second landing parameter is provided for a certain embodiment provided by the present invention; Figure 7 A flowchart of a first homography transformation matrix is provided for a certain embodiment of the present invention; Figure 8 A flow chart of a second landing parameter is provided for a certain embodiment provided by the present invention; Fig. 9 A schematic diagram of a UAV operation optimization system based on drone nest image processing provided by the present invention. DETAILED DESCRIPTION
[0038] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0040] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.
[0041] like Figure 1 As shown, the present invention provides a method for optimizing the operation of a UAV based on a nest image processing, comprising: When the drone lands, the drone locates its own position coordinates, and combines the position coordinates of the machine nest to give the first landing parameters of the drone; wherein the drone locates its own position coordinates through the RTK device; Based on the UAV's own position coordinates and the position coordinates of the nest, the nest image is collected; Based on the pre-stored image of the nest, the nest image is identified and analyzed, and the second landing parameter of the UAV is given; Optimize the operation of the UAV based on the first landing parameter and the second landing parameter, and provide the actual landing parameters of the UAV; The UAV lands in the nest according to the actual landing parameters.
[0042] Among them, the first landing parameter, the second landing parameter and the actual landing parameter all include the target altitude, target flight speed and target attitude, that is, the altitude, speed and attitude of the UAV when it starts to land.
[0043] Drone operation optimization methods also include: When the UAV takes off, a take-off path image matching the take-off path of the UAV is collected at the position of the machine nest; specifically, the machine nest takes a take-off path image matching the take-off path of the UAV directly above it, and then transmits the take-off path image to the UAV through the image transmission device; The UAV identifies and analyzes the take-off path image and takes off from the nest when there are no obstacles in the take-off path image.
[0044] Collect takeoff path images at the nest location that match the takeoff path of the drone, including: Collect the voltage status of the drone; When the voltage state of the drone is less than the full load voltage, the drone transmits an alarm message to the machine nest, which can further check the drone's own condition; When the voltage status of the drone is normal, the drone sends a normal status report to the machine nest. After receiving the report that the voltage of the drone is normal, the machine nest drives its own camera to collect a takeoff path image that matches the takeoff path of the drone, and transmits the takeoff path image to the drone via the 4G / 5G network.
[0045] like Figure 2 As shown, the UAV identifies and analyzes the take-off path image and takes off when there are no obstacles in the take-off path image, including: The drone recognizes the takeoff path image based on a pre-built image classification model to determine whether the takeoff path image is an image that only contains the sky; wherein the pre-built image classification model is trained using the YOLOV5 model; When it is determined that the take-off path image is not an image that only includes the sky, a report that an abnormal situation exists is sent to the aircraft nest; when it is determined that the take-off path image is an image that only includes the sky, a normal signal is sent to the aircraft nest; The machine nest receives the normal signal and opens its cover, sending a take-off command to the drone; The drone takes off from the nest after receiving the take-off command.
[0046] like Figure 3 As shown, the UAV locates its own position coordinates, and combines the position coordinates of the machine nest to give the first landing parameters of the UAV landing, including: Based on the satellite station and the pre-stored nest position coordinates, the current position coordinates of the drone are obtained; According to the position coordinates pre-stored in the machine nest and the current position coordinates of the UAV, the current position of the UAV relative to the machine nest is obtained; According to the preset orientation and the current orientation of the drone relative to the machine nest, the orientation to be adjusted of the drone at the current altitude is obtained; The drone maintains the current flight speed and flies to the preset position in the direction to be adjusted; Obtain the first coordinate of the drone at a preset position, and determine the flight parameters of the drone flying to the preset height in combination with the preset height of the drone relative to the nest and the current attitude information of the drone; The drone flies to a preset altitude according to the flight parameters, and obtains the location coordinates of the drone after the drone reaches a preset orientation and a preset altitude; The first landing parameters of the drone are given according to the drone position coordinates obtained after the drone reaches the preset orientation and preset altitude, as well as the landing strategy and current attitude information of the drone.
[0047] The preset position is directly above the nest, the preset height is 10-30m, and the attitude information includes yaw angle, pitch angle and roll angle. The landing strategy includes the duration of the drone landing, accuracy requirements, acceleration, instantaneous speed, angle, etc. The drone first lands at a height of 20 meters from the nest to collect images and identify them, and then gradually decelerates and lands until it lands on the nest.
[0048] Based on the satellite station and the pre-stored nest position coordinates, the current position coordinates of the drone are obtained, including: The UAV observes and receives data from satellite stations, and at the same time receives data from base stations or virtual base stations; The drone performs differential analysis based on the data from the two sources to obtain its current position coordinates; Specifically, Figure 4 As shown, based on the satellite station and the pre-stored nest position coordinates, the current position coordinates of the drone are obtained, including: The UAV observes the satellite station through the observation component and obtains the three-dimensional coordinates of the UAV relative to the satellite station; Obtain the three-dimensional coordinates of the machine nest relative to the satellite station, and perform difference calculation with the three-dimensional coordinates of the UAV relative to the satellite station to obtain the position offset of the UAV relative to the machine nest; Get the position coordinates pre-stored by the machine nest, and combine them with the position offset to get the current position coordinates of the drone; satisfy the following relationship: L s =L n +L2-L1 Where, L s is the current position coordinate of the drone, L n are the position coordinates pre-stored by the machine nest, L2 are the three-dimensional coordinates of the UAV relative to the satellite station, and L1 are the three-dimensional coordinates of the machine nest relative to the satellite station.
[0049] According to the position coordinates pre-stored in the nest and the current position coordinates of the drone, the current position of the drone relative to the nest is obtained, including: According to the positional relationship between the drone's camera and the observation component, as well as the drone's current position coordinates, the drone's camera coordinates are obtained; According to the camera coordinates of the UAV and the position coordinates pre-stored in the machine nest, the current position of the camera position of the UAV relative to the machine nest is obtained.
[0050] According to the preset orientation and the current orientation of the drone relative to the nest, the direction of the drone to be adjusted at the current altitude is obtained, including: Based on the position coordinates pre-stored in the machine nest, the position coordinates of the machine nest in the vertical direction at the same height as the UAV are obtained; According to the position coordinates of the machine nest in the vertical direction at the same height as the UAV and the camera coordinates of the UAV, the direction to be adjusted of the UAV is obtained.
[0051] like Figure 5 As shown, based on the self-position coordinates of the UAV and the position coordinates of the nest, the nest image is collected, including: The drone locates its own position coordinates after reaching the preset direction and preset altitude; According to the self-position coordinates of the drone after reaching the preset orientation and preset altitude, and the position coordinates pre-stored in the nest, the height difference between the drone and the nest is obtained; According to the height difference between the drone and the nest, as well as the current attitude information of the drone, the required rotation angle of the camera when the drone's camera is aimed at the nest is given; The drone adjusts the camera according to the rotation angle required when the camera is aimed at the nest and takes an image of the nest. When adjusting the rotation angle of the camera, the natural light camera and the infrared camera are adjusted at the same time; in addition, the natural light camera and the infrared camera can have the same initial angle, so that the same angle can be directly adjusted during adjustment to complete subsequent shooting.
[0052] The UAV has a natural light camera and an infrared camera, which are used to capture natural light images and infrared images respectively. The nest image includes the natural light image and the infrared image, and the pre-stored patterns include pre-stored QR code patterns and pre-stored infrared patterns.
[0053] According to the height difference between the drone and the nest, and the current attitude information of the drone, the rotation angle required for the drone's camera to be aimed at the nest is given, including: After the drone reaches the preset position and the preset altitude, it locates its own position coordinates and the position coordinates pre-stored by the nest, and obtains the relative distance between the drone and the nest; According to the height difference and relative distance between the UAV and the machine nest, as well as the current attitude information of the UAV, the rotation angle of the UAV to face the machine nest is obtained; According to the relative attitude information of the camera with respect to the drone body and the rotation angle of the drone when it rotates toward the nest, the rotation angle required for the camera to be aimed at the nest is obtained.
[0054] like Figure 6 As shown, based on the pre-stored image of the nest, the nest image is identified and analyzed, and the second landing parameters for the landing of the UAV are given, including: The YOLOV5 algorithm is used to detect QR codes in natural light images, and the detection result of whether there are QR codes in natural light images is given; When there is a two-dimensional code in the natural light image, feature point matching is performed between the two-dimensional code in the natural light image and a pre-stored two-dimensional code pattern, and a first homography transformation matrix is given; Based on the first homography transformation matrix and the center point coordinates of the pre-stored QR code pattern, a second landing parameter for the UAV to land is given; When there is no QR code in the natural light image, feature point matching is performed on the infrared light image and the pre-stored infrared light pattern, and the machine nest area is detected, and a second homography transformation matrix in the machine nest area is given; Based on the second homography transformation matrix and the center point coordinates of the pre-stored infrared light pattern, a second landing parameter for the UAV to land is given.
[0055] Among them, when the YOLOV5 algorithm is used to detect QR codes in natural light images, it only detects and identifies whether there is a QR code in the natural light image, but does not accurately identify what the QR code represents.
[0056] like Figure 7 As shown, feature point matching is performed on the two-dimensional code in the natural light image and the pre-stored two-dimensional code pattern, and a first homography transformation matrix is given, including: The Loftr network is used to detect the feature points of the QR code in the natural light image and the pre-stored QR code pattern, and the corresponding relationship between the feature points of the QR code in the natural light image and the feature points of the pre-stored QR code pattern is given; From all pairs of feature points that have corresponding relationships, four pairs of feature points are randomly selected for a predetermined number of times and each time for analysis and processing, and a corresponding natural light homography transformation matrix is given; The natural light homography transformation matrix with the largest number is selected from all natural light homography transformation matrices to obtain a first homography transformation matrix.
[0057] The feature point with a corresponding relationship is point P0 in the natural light image, and its corresponding point in the pre-stored QR code pattern is detected by the Loftr network as P'0, that is, the camera photographs point P'0 in the pre-stored QR code pattern as point P0. The preset number of times is 50.
[0058] Each time four pairs of feature points are analyzed and processed, the corresponding natural light homography transformation matrix is given, including: Perform perspective transformation on the four pairs of feature points to obtain a coefficient matrix that satisfies the following relationship:
[0059] In the formula, a, b are four pairs of feature points, (x i ,y i ) is the coordinate of the i-th feature point of the QR code in the natural light image, (x' i , y' i ) is the coordinate of the i-th feature point of the pre-stored two-dimensional code pattern, and A is the coefficient matrix; Perform singular value decomposition on the coefficient matrix to obtain a right singular matrix that satisfies the following relationship:
[0060] Where U is the left singular matrix, Σ is the diagonal matrix, V is the right singular matrix, and T is the matrix transpose; According to the last column of the right singular matrix, the natural light homography transformation matrix is obtained, which satisfies the following relationship:
[0061] Where H is the natural light homography transformation matrix.
[0062] like Figure 8 As shown, based on the first homography transformation matrix and the center point coordinates of the pre-stored QR code pattern, the second landing parameters for the drone landing are given, including: According to the first homography transformation matrix and the coordinates of the center point of the pre-stored QR code pattern, the coordinates of the center point of the pre-stored QR code pattern in the reference coordinate system where the drone is currently located are calculated; the following relationship is satisfied: b'=Ha T Wherein, b' is the coordinate of the pre-stored QR code pattern in the reference coordinate system where the drone is currently located, and a is the coordinate of the pre-stored QR code pattern; According to the coordinates of the center point of the pre-stored QR code pattern in the reference coordinate system where the drone is currently located, and the camera coordinates of the drone, the offset of the drone relative to the center point of the pre-stored QR code pattern is obtained; According to the offset of the drone relative to the center point of the pre-stored two-dimensional code pattern and in combination with the landing strategy of the drone, a second landing parameter for the drone landing is obtained.
[0063] According to the first homography transformation matrix and the coordinates of the center point of the pre-stored QR code pattern, the coordinates of the center point of the pre-stored QR code pattern in the reference coordinate system where the drone is currently located are calculated, including: According to the coordinates of the center point of the pre-stored two-dimensional code pattern, as well as the intrinsic parameter matrix and the extrinsic parameter matrix of the camera, the coordinates of the center point of the pre-stored two-dimensional code pattern in the camera coordinate system are obtained; Obtaining the coordinates of the center point of the pre-stored QR code pattern in the camera coordinate system of the current drone according to the first homography transformation matrix and the coordinates of the center point of the pre-stored QR code pattern in the camera coordinate system; According to the coordinates of the center point of the pre-stored QR code pattern in the camera coordinate system of the current drone, as well as the intrinsic parameter matrix and extrinsic parameter matrix of the camera, the coordinates of the center point of the pre-stored QR code pattern in the reference coordinate system where the drone is currently located are obtained.
[0064] The infrared image and the pre-stored infrared pattern are matched with feature points and the machine nest area is detected, and the second homography transformation matrix in the machine nest area is given, including: The feature points of the infrared image and the pre-stored infrared pattern are detected through the Loftr network, and the corresponding relationship between the feature points of the infrared image and the feature points of the pre-stored infrared pattern is given; The pre-built machine nest detection model is used to detect the machine nest area in the infrared light image and the pre-stored infrared light pattern, and the characteristic points in the machine nest area in any infrared image are screened out; Based on the selected feature points and the correspondence between the feature points of the infrared light image and the feature points of the pre-stored infrared light pattern, a pair of feature points corresponding to the selected feature points is given; From all given pairs of feature points, four pairs of feature points are randomly selected for a predetermined number of times and each time for analysis and processing, and a corresponding infrared light homography transformation matrix is given; The infrared light homography transformation matrix with the largest number is selected from all the infrared light homography transformation matrices to obtain a second homography transformation matrix.
[0065] Among them, the pre-built machine nest detection model is obtained by training the YOLOV5 model. Any infrared image refers to any one of the infrared light images collected by the drone camera and the pre-stored infrared light pattern. The given infrared light homography transformation matrix is obtained in the same way as the natural light homography transformation matrix, that is, the infrared light homography transformation matrix corresponding to each selection of four pairs of feature points is obtained through perspective transformation and singular value decomposition.
[0066] Based on the second homography transformation matrix and the center point coordinates of the pre-stored infrared light pattern, the second landing parameters for the drone landing are given, including: The coordinates of the center point of the pre-stored infrared light pattern in the reference coordinate system where the drone is currently located are calculated according to the second homography transformation matrix and the coordinates of the center point of the pre-stored infrared light pattern; According to the coordinates of the center point of the pre-stored infrared light pattern in the reference coordinate system where the drone is currently located, and the camera coordinates of the drone, an offset of the drone relative to the center point of the pre-stored infrared light pattern is obtained; According to the offset of the UAV relative to the center point of the pre-stored infrared light pattern and in combination with the landing strategy of the UAV, a second landing parameter for the UAV landing is obtained.
[0067] Based on the first landing parameter and the second landing parameter, the UAV operation is optimized and the actual landing parameters of the UAV are given, including: Compare the difference between the first landing parameter and the second landing parameter with the error threshold range and provide a comparison result; When the difference between the first landing parameter and the second landing parameter is within the error threshold range, the average value of the first landing parameter and the second landing parameter is used as the actual landing parameter of the UAV.
[0068] If the difference between the first landing parameter and the second landing parameter is not within the error threshold range, an alarm operation is performed to remind the staff to perform a manual landing operation.
[0069] When the drone lands in the nest according to the actual landing parameters, the drone sends a landing command to the nest. After receiving the landing command, the nest opens the cover. After the drone lands in the nest, the nest closes its cover and charges the drone.
[0070] like Fig. 9 As shown, the present invention also provides a system using the above-mentioned UAV operation optimization method, comprising: The positioning and parameter determination module is used to locate the position coordinates of the UAV and, combined with the position coordinates of the machine nest, give the first landing parameters for the UAV to land; The machine nest image acquisition module is used to acquire the machine nest image based on the UAV's own position coordinates and the position coordinates of the machine nest; The recognition and analysis module is used to recognize and analyze the image of the machine nest based on the pre-stored image of the machine nest, and provide the second landing parameter of the UAV landing; An actual parameter determination module, which is used to optimize the operation of the UAV based on the first landing parameter and the second landing parameter, and provide actual landing parameters for the landing of the UAV; The drone adjustment module is used to control the drone to land in the nest according to the actual landing parameters.
[0071] Furthermore, the drone operation optimization system also includes: A path image acquisition module, which is used to acquire a takeoff path image at the location of the machine nest that matches the takeoff path of the UAV; The image analysis module is used to identify and analyze the take-off path image, and control the UAV to take off from the nest when there are no obstacles in the take-off path image.
[0072] Furthermore, the image analysis module includes: The drone identifies the takeoff path image based on a pre-built image classification model to determine whether the takeoff path image is an image that only contains the sky; When it is determined that the take-off path image is an image containing only the sky, a normal signal is sent to the aircraft nest; The machine nest receives the normal signal and opens its cover, sending a take-off command to the drone; The drone takes off from the nest after receiving the take-off command.
[0073] The positioning and parameter determination module also includes: Based on the satellite station and the pre-stored nest position coordinates, the current position coordinates of the drone are obtained; According to the position coordinates pre-stored in the machine nest and the current position coordinates of the UAV, the current position of the UAV relative to the machine nest is obtained; According to the preset orientation and the current orientation of the drone relative to the machine nest, the orientation to be adjusted of the drone at the current altitude is obtained; The drone maintains the current flight speed and flies to the preset position in the direction to be adjusted; Obtain the first coordinate of the drone at a preset position, and determine the flight parameters of the drone flying to the preset height in combination with the preset height of the drone relative to the nest and the current attitude information of the drone; The drone flies to a preset altitude according to the flight parameters, and obtains the location coordinates of the drone after the drone reaches a preset orientation and a preset altitude; According to the drone position coordinates obtained after the drone reaches the preset orientation and preset altitude, and the landing strategy of the drone, the first landing parameters of the drone are given.
[0074] The machine nest image acquisition module also includes The drone locates its own position coordinates after reaching the preset direction and preset altitude; According to the self-position coordinates of the drone after reaching the preset orientation and preset altitude, and the position coordinates pre-stored in the nest, the height difference between the drone and the nest is obtained; According to the height difference between the drone and the nest, as well as the current attitude information of the drone, the required rotation angle of the camera when the drone's camera is aimed at the nest is given; The UAV adjusts the camera according to the rotation angle required when the camera is aimed at the machine nest and takes the image of the machine nest.
[0075] The recognition and analysis module also includes: Perform QR code detection on natural light images and give a detection result of whether there is a QR code in the natural light image; When there is a two-dimensional code in the natural light image, feature point matching is performed between the two-dimensional code in the natural light image and a pre-stored two-dimensional code pattern, and a first homography transformation matrix is given; Based on the first homography transformation matrix and the center point coordinates of the pre-stored QR code pattern, a second landing parameter for the UAV to land is given; When there is no QR code in the natural light image, feature point matching is performed on the infrared light image and the pre-stored infrared light pattern, and the machine nest area is detected, and a second homography transformation matrix in the machine nest area is given; Based on the second homography transformation matrix and the center point coordinates of the pre-stored infrared light pattern, a second landing parameter for the UAV to land is given.
[0076] The actual parameter determination module also includes: Compare the difference between the first landing parameter and the second landing parameter with the error threshold range and provide a comparison result; When the difference between the first landing parameter and the second landing parameter is within the error threshold range, the average value of the first landing parameter and the second landing parameter is used as the actual landing parameter of the UAV.
[0077] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for optimizing the operation of a drone based on drone nest image processing, characterized in that: include: The UAV locates its own position coordinates, and combines the position coordinates of the machine nest to give the first landing parameters for the UAV to land; Based on the UAV's own position coordinates and the position coordinates of the nest, the nest image is collected; Based on the pre-stored image of the nest, the nest image is identified and analyzed, and the second landing parameter of the UAV is given; Optimize the operation of the UAV based on the first landing parameter and the second landing parameter, and provide the actual landing parameters of the UAV; The UAV lands in the nest according to the actual landing parameters.
2. The method for optimizing the operation of a UAV according to claim 1, characterized in that: Also includes: Collecting a takeoff path image at the location of the nest that matches the takeoff path of the UAV; The drone identifies the takeoff path image based on a pre-built image classification model to determine whether the takeoff path image is an image that only contains the sky; When it is determined that the take-off path image is an image containing only the sky, a normal signal is sent to the aircraft nest; The machine nest receives the normal signal and opens its cover, sending a take-off command to the drone; The drone takes off from the nest after receiving the take-off command.
3. The method for optimizing the operation of a UAV according to claim 1, characterized in that: The drone locates its own position coordinates, and combined with the position coordinates of the machine nest, gives the first landing parameters for the drone to land, including: Based on the satellite station and the pre-stored nest position coordinates, the current position coordinates of the drone are obtained; According to the position coordinates pre-stored in the machine nest and the current position coordinates of the UAV, the current position of the UAV relative to the machine nest is obtained; According to the preset orientation and the current orientation of the drone relative to the machine nest, the orientation to be adjusted of the drone at the current altitude is obtained; The drone maintains the current flight speed and flies to the preset position in the direction to be adjusted; Obtain the first coordinate of the drone at a preset position, and determine the flight parameters of the drone flying to the preset height in combination with the preset height of the drone relative to the nest and the current attitude information of the drone; The drone flies to a preset altitude according to the flight parameters, and obtains the location coordinates of the drone after the drone reaches a preset orientation and a preset altitude; According to the drone position coordinates obtained after the drone reaches the preset orientation and preset altitude, and the landing strategy of the drone, the first landing parameters of the drone are given.
4. The method for optimizing the operation of a UAV according to claim 3, characterized in that: Based on the UAV's own position coordinates and the position coordinates of the nest, the nest image is collected, including: The drone locates its own position coordinates after reaching the preset direction and preset altitude; According to the self-position coordinates of the drone after reaching the preset orientation and preset altitude, and the position coordinates pre-stored in the nest, the height difference between the drone and the nest is obtained; According to the height difference between the drone and the nest, as well as the current attitude information of the drone, the required rotation angle of the camera when the drone's camera is aimed at the nest is given; The UAV adjusts the camera according to the rotation angle required when the camera is aimed at the machine nest and takes the image of the machine nest.
5. The method for optimizing the operation of a UAV according to claim 1, characterized in that: The machine nest image includes a natural light image and an infrared light image, and the pre-stored pattern includes a pre-stored QR code pattern and a pre-stored infrared light pattern; Based on the pre-stored image of the nest, the nest image is identified and analyzed, and the second landing parameters for the UAV landing are given, including: Perform QR code detection on natural light images and give a detection result of whether there is a QR code in the natural light image; When there is a two-dimensional code in the natural light image, feature point matching is performed between the two-dimensional code in the natural light image and a pre-stored two-dimensional code pattern, and a first homography transformation matrix is given; Based on the first homography transformation matrix and the center point coordinates of the pre-stored QR code pattern, a second landing parameter for the UAV to land is given; When there is no QR code in the natural light image, feature point matching is performed on the infrared light image and the pre-stored infrared light pattern, and the machine nest area is detected, and a second homography transformation matrix in the machine nest area is given; Based on the second homography transformation matrix and the center point coordinates of the pre-stored infrared light pattern, a second landing parameter for the UAV to land is given.
6. The method for optimizing the operation of a UAV according to claim 5, characterized in that: The feature points of the two-dimensional code in the natural light image and the pre-stored two-dimensional code pattern are matched, and the first homography transformation matrix is given, including: Perform feature point detection on the two-dimensional code in the natural light image and the pre-stored two-dimensional code pattern, and provide a corresponding relationship between the feature points of the two-dimensional code in the natural light image and the feature points of the pre-stored two-dimensional code pattern; From all pairs of feature points that have corresponding relationships, four pairs of feature points are randomly selected for a predetermined number of times and each time for analysis and processing, and a corresponding natural light homography transformation matrix is given; The natural light homography transformation matrix with the largest number is selected from all natural light homography transformation matrices to obtain a first homography transformation matrix.
7. The method for optimizing the operation of a UAV according to claim 6, characterized in that: Based on the first homography transformation matrix and the center point coordinates of the pre-stored QR code pattern, the second landing parameters for the drone landing are given, including: Calculate the coordinates of the center point of the pre-stored QR code pattern in the reference coordinate system where the drone is currently located according to the first homography transformation matrix and the coordinates of the center point of the pre-stored QR code pattern; According to the coordinates of the center point of the pre-stored QR code pattern in the reference coordinate system where the drone is currently located, and the camera coordinates of the drone, the offset of the drone relative to the center point of the pre-stored QR code pattern is obtained; According to the offset of the drone relative to the center point of the pre-stored two-dimensional code pattern and in combination with the landing strategy of the drone, a second landing parameter for the drone landing is obtained.
8. The method for optimizing the operation of a drone according to any one of claims 5 to 7, characterized in that: The infrared image and the pre-stored infrared pattern are matched with feature points and the machine nest area is detected, and the second homography transformation matrix in the machine nest area is given, including: Performing feature point detection on the infrared light image and the pre-stored infrared light pattern, and providing a corresponding relationship between the feature points of the infrared light image and the feature points of the pre-stored infrared light pattern; The pre-built machine nest detection model is used to detect the machine nest area in the infrared light image and the pre-stored infrared light pattern, and the characteristic points in the machine nest area in any infrared image are screened out; Based on the selected feature points and the correspondence between the feature points of the infrared light image and the feature points of the pre-stored infrared light pattern, a pair of feature points corresponding to the selected feature points is given; From all given pairs of feature points, four pairs of feature points are randomly selected for a predetermined number of times and each time for analysis and processing, and a corresponding infrared light homography transformation matrix is given; The infrared light homography transformation matrix with the largest number is selected from all infrared light homography transformation matrices to obtain a second homography transformation matrix.
9. The method for optimizing the operation of a UAV according to claim 8, characterized in that: Based on the second homography transformation matrix and the center point coordinates of the pre-stored infrared light pattern, the second landing parameters for the drone landing are given, including: The coordinates of the center point of the pre-stored infrared light pattern in the reference coordinate system where the drone is currently located are calculated according to the second homography transformation matrix and the coordinates of the center point of the pre-stored infrared light pattern; According to the coordinates of the center point of the pre-stored infrared light pattern in the reference coordinate system where the drone is currently located, and the camera coordinates of the drone, an offset of the drone relative to the center point of the pre-stored infrared light pattern is obtained; According to the offset of the UAV relative to the center point of the pre-stored infrared light pattern and in combination with the landing strategy of the UAV, a second landing parameter for the UAV landing is obtained.
10. A system using the method for optimizing the operation of a drone as claimed in any one of claims 1 to 9, characterized in that: include: The positioning and parameter determination module is used to locate the position coordinates of the UAV and, combined with the position coordinates of the machine nest, give the first landing parameters for the UAV to land; The machine nest image acquisition module is used to acquire the machine nest image based on the UAV's own position coordinates and the position coordinates of the machine nest; The recognition and analysis module is used to recognize and analyze the image of the machine nest based on the pre-stored image of the machine nest, and provide the second landing parameter of the UAV landing; An actual parameter determination module, which is used to optimize the operation of the UAV based on the first landing parameter and the second landing parameter, and provide actual landing parameters for the landing of the UAV; The drone adjustment module is used to control the drone to land in the nest according to the actual landing parameters.
Citation Information
Patent Citations
Power transmission line unmanned aerial vehicle inspection path optimization method based on ant colony algorithm
CN113342046A
Power line inspection control method and system based on unmanned aerial vehicle
CN116719339A
