Unmanned aerial vehicle paddle mixing abnormal state detection method and system based on machine vision
Through machine vision technology, HSV color space and QR code patterns are used to determine the safe area of the drone blades, solving the problem of abnormal detection of drone blades, realizing automated detection, and ensuring the safety and safety of the drone body. Improved recognition accuracy.
Patent Information
- Application Number
- CN202410647924.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-03
AI Technical Summary
The apron environment of the UAV is complex, and it is impossible to get close to observe abnormal blade closing. As a result, when the hatch cover on the apron is closed, the blades may be broken and damaged, resulting in loss of the UAV body.
Using a detection method based on machine vision, the drone image is obtained, inverse perspective matrix transformation is performed, converted to HSV color space, the blade safety area is determined based on the QR code pattern and drone parameters, and the blade is automatically judged whether it exists in the outside the safe area.
It realizes automatic and rapid detection of abnormal conditions of UAV blade closing, avoids manual verification, ensures the safety of the UAV body when unattended, and improves the identification accuracy through parameter settings.
Smart Images

Figure CN118587170A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of machine vision, and in particular to a method and system for detecting abnormal state of propeller blades of unmanned aerial vehicles based on machine vision. Background Art
[0002] When the drone completes the automatic inspection and returns to the apron, the position of the propeller blades is random. At this time, if the propeller blades are abnormal (the propeller blades are not in the predetermined safe area), the hatch on the apron will be closed, causing the drone blades to break and damage, resulting in the loss of the drone body. Since the location of the drone apron should be different for each mission environment, after the drone is parked on the apron, personnel cannot approach the apron to observe whether there is any abnormal propeller closing. Summary of the invention
[0003] In view of the shortcomings of the prior art, the present invention provides a method and system for detecting abnormal state of UAV blade closing based on machine vision, which can automatically and quickly determine whether there are UAV blades outside the safe area based on machine vision technology, and then judge whether there is abnormal closing of the blades.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] On the one hand, a method for detecting abnormal state of propeller blades of a UAV based on machine vision is provided, which comprises the following steps:
[0006] Obtain an image of a drone parked on a drone landing pad, and transform the drone image using an inverse perspective matrix to obtain a bird's-eye view of the drone;
[0007] Determine the safe area for UAV blade closing;
[0008] Convert the RGB color space of the drone's top view into the HSV color space, and determine whether there are drone blades outside the drone's blade closing safety area based on the HSV color space;
[0009] If it is determined that there are drone blades outside the safe area for the drone blades to close, it is considered that the closing of the propeller is abnormal;
[0010] If it is determined that there are no drone blades outside the drone blade closing safety area, the propeller closing is considered normal.
[0011] Preferably, determining the safe area for closing the propeller blades of the drone includes the following steps:
[0012] A QR code pattern is set on the drone landing pad, and the drone is controlled to be placed on the QR code pattern;
[0013] Acquire an image of the QR code pattern through a camera or other device, and obtain corner point information of the QR code pattern image;
[0014] The UAV blade closing safety area is determined according to the corner point information of the two-dimensional code pattern image and the UAV parameters.
[0015] Preferably, the drone parameters include one or more of the drone height, width, length of the drone arm, and length of the blades.
[0016] Preferably, determining whether there are drone blades outside the drone blade closing safety area according to the HSV color space includes the following steps:
[0017] In the HSV color space, extract the image of the object to be confirmed outside the safe area of the UAV blade closing;
[0018] Obtaining a connected domain in the image of the object to be confirmed, and obtaining the rectangularity and / or area of the connected domain;
[0019] When one or more of the area and rectangularity of the connected domain meet the preset conditions, the connected domain in the image of the object to be confirmed is considered to be a blade of a drone.
[0020] Preferably, determining whether there are drone blades outside the drone blade closing safety area according to the HSV color space includes the following steps:
[0021] Fit all points in the connected domain to obtain a fitting straight line y=kx+b, where k and b are the slope and intercept respectively;
[0022] When one or more of the k value and the b value meet the preset conditions, it is considered that the connected domain in the image of the object to be confirmed is the propeller blade of the drone.
[0023] Preferably, determining whether there are drone blades outside the drone blade closing safety area according to the HSV color space includes the following steps:
[0024] Get the distance from the fixed point to the centroid of the connected domain;
[0025] When the distance from the fixed point to the centroid of the connected domain meets a preset condition, the connected domain in the image of the object to be confirmed is considered to be a blade of a drone.
[0026] Preferably, determining whether there are drone blades outside the drone blade closing safety area according to the HSV color space includes the following steps:
[0027] Get the distance from the fixed point to each point in the connected domain, and determine the minimum distance from all distances.
[0028] When the minimum value of the distance from the fixed point to each point in the connected domain meets the preset condition, the connected domain in the image of the object to be confirmed is considered to be a blade of a drone.
[0029] Preferably, the image of the object to be confirmed is first processed, and then the connected domain of the processed image of the object to be confirmed is obtained.
[0030] Preferably, the image processing includes removing noise, burrs and fine edges in the image.
[0031] On the other hand, a detection system for implementing the above-mentioned method for detecting abnormal state of propeller blades of unmanned aerial vehicles is also provided, which includes:
[0032] A camera for acquiring images of the drone parked on the drone landing pad;
[0033] A safety area determination unit, which is used to determine the safety area for the UAV's blades to close;
[0034] An image transformation unit, which is used to transform the drone image through an inverse perspective matrix to obtain a bird's-eye view of the drone;
[0035] A color space conversion unit, which is used to convert the RGB color space of the drone's bird's-eye view into the HSV color space;
[0036] The blade judgment unit is used to determine whether there are drone blades outside the drone blade closing safety area according to the HSV color space.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] The present invention can automatically and quickly determine whether there are drone blades outside the safe area based on drone images and through machine vision technology, and then judge whether there is a propeller abnormality without manual inspection and verification, thereby ensuring the safety of the drone body when it is unmanned. At the same time, in the judgment process, non-blade objects are filtered out through relevant parameter settings to improve the accuracy of recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flowchart of the steps of the method for detecting abnormal state of propeller blades of a UAV in the present invention;
[0040] Figure 2 is the drone image in the present invention;
[0041] Figure 3 A schematic diagram of the safe area for closing the propeller blades of the drone in the present invention;
[0042] Figure 4 This is a schematic diagram of extracting an image of an object to be confirmed in the HSV space in the present invention;
[0043] Figure 5 Schematic diagram of the connected domain, rectangularity and fitting straight line y of the object image to be confirmed in the present invention;
[0044] Figure 6 A schematic diagram of a connected domain whose area does not meet a preset condition in the present invention;
[0045] Figure 7 It is a schematic diagram of a connected domain in which the k value and the b value do not meet the preset conditions in the present invention;
[0046] Figure 8 It is a schematic diagram of the effects before and after image processing of the image of the object to be confirmed in the present invention;
[0047] Fig. 9 It is a structural schematic diagram of the UAV propeller blade abnormal state detection system in the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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.
[0049] Embodiment 1:
[0050] like Figure 1 As shown, this embodiment provides a method for detecting abnormal state of UAV blade slurry based on machine vision, which includes the following steps:
[0051] S1, such as Figure 2 As shown, an image of a drone 100 parked on a drone landing pad 200 is obtained, and the drone image is transformed by an inverse perspective matrix to obtain a top view of the drone; in this embodiment, the drone image can be obtained by a camera installed in the surrounding environment of the drone landing pad; the drone includes blade 1, blade 2, blade 3 and blade 4;
[0052] Therefore, from a bird's-eye view, the spatial relationship of the drone's blades can be more intuitively observed and accurate blade position information can be provided, providing basic data for subsequent blade closing status judgment;
[0053] S2, such as Figure 3 As shown, determining the safe area 202 for closing the propeller blades of the drone includes the following steps:
[0054] A two-dimensional code pattern 201 is set on the drone landing pad 200, which controls the drone 100 to park on the two-dimensional code pattern 201;
[0055] Acquire an image of the two-dimensional code pattern 201 through a camera or other device, and obtain corner point information of the two-dimensional code pattern image;
[0056] The drone blade closing safety area 202 is determined according to the corner point information of the two-dimensional code pattern image and the drone parameters. In this embodiment, the drone parameters include one or more of the drone height, width, drone arm length, and blade length; the drone blade closing safety area 202 is a closed geometric figure and a three-dimensional space area.
[0057] Furthermore, when each drone blade is completely within the drone blade closing safety area 202, it is considered that the closing is normal. On the contrary, when at least one drone blade is not completely within the drone blade closing safety area 202, it is considered that the closing is abnormal.
[0058] S3, converting the RGB color space of the drone top view into the HSV color space, and determining whether there are drone blades outside the drone blade closing safety area 202 according to the HSV color space;
[0059] If it is determined that there are drone blades outside the drone blade closing safety area 202, it is considered that the blade closing is abnormal;
[0060] If it is determined that there are no drone blades outside the drone blade closing safety area 202, it is considered that the blade closing is normal.
[0061] Specifically, in step S3, determining whether there are drone blades outside the drone blade closing safety area 202 according to the HSV color space includes the following steps:
[0062] S31, such as Figure 4 As shown, in the HSV color space, the unconfirmed object image 101 outside the unmanned aerial vehicle blade closing safety area 202 is extracted; the unconfirmed object in this embodiment may be an object of a specified color, such as a black object, because the unmanned aerial vehicle blades may all be black, therefore, when the unmanned aerial vehicle top view which is an RGB three-color image is converted to the HSV color space, the black unconfirmed object image 101 extracted therefrom may be the unmanned aerial vehicle blade;
[0063] S32, such as Figure 5 As shown, the connected domain 102 in the to-be-confirmed object image 101 extracted in step S31 is obtained, and the rectangularity and / or the connected domain area of the connected domain 102 is obtained;
[0064] S33, such as Figure 5As shown, all points in the connected domain 102 are fitted to obtain a fitting straight line y=kx+b, where k and b are the slope and intercept, respectively; and / or, the distance from the fixed point P1 to the centroid of the connected domain is obtained, and / or, the distance from the fixed point P1 to each point in the connected domain 102 is obtained, and the minimum distance is determined from all the distances;
[0065] In this embodiment, the fixed point P1 may be the vertex of the drone blade mounting seat;
[0066] S34. When one or more of the connected domain area, rectangularity, k value, b value, the distance from the fixed point P1 to the center of mass of the connected domain, and the minimum value of the distance from the fixed point P1 to each point in the connected domain meet the preset conditions, it is considered that the connected domain 102 in the object image 101 to be confirmed is a drone blade, and it is further considered that there are drone blades outside the drone blade closing safety area 202, so the blade closing is abnormal.
[0067] Furthermore, the preset conditions can be set according to the relevant parameters of the UAV blades. When one or more of the minimum values of the connected domain area, rectangularity, k value, b value, distance from the fixed point P1 to the centroid of the connected domain, and distance from the fixed point P1 to each point in the connected domain meet the preset conditions, the connected domain that may be a blade but is not actually a blade can be filtered out to ensure the accuracy of the judgment result;
[0068] For example, when the area of the connected domain is less than 100 (such as Figure 6 The connected domain 102 indicated by the arrow in the middle), or the rectangularity is less than 0.3, or 3.0<k<5.0 and 360<b<1500 (such as Figure 7 If the connected domain 102 in the to-be-confirmed object image 101 is not a drone blade, it is considered that the connected domain 102 in the to-be-confirmed object image 101 is not a drone blade.
[0069] Therefore, this embodiment can automatically and quickly determine whether there are drone blades outside the safe area based on machine vision technology, and then judge whether there is a propeller abnormality without manual inspection and verification, thereby ensuring the safety of the drone body when it is unmanned. At the same time, in the judgment process, non-blade objects are filtered out through relevant parameter settings to improve the recognition accuracy.
[0070] Embodiment 2:
[0071] The difference between this embodiment and the first embodiment is that in step S4, the image 101 (such as the one extracted in step S3) of the object to be confirmed is first Figure 8 , and then obtain the processed image 101 of the object to be confirmed (as shown in part (a) of FIG. Figure 8 The connected domain shown in part (b) of .
[0072] The image processing includes removing noise, burrs and small edges in the image, making the edges smooth and reducing interference points.
[0073] Embodiment 3:
[0074] This embodiment provides a detection system that can implement the method for detecting abnormal state of UAV blade slurry combination described in Embodiment 1 or 2, such as Fig. 9 As shown, it includes:
[0075] Camera 1, which is used to obtain an image of the drone 100 parked on the drone landing pad 200;
[0076] A safety area determination unit 2 is used to determine a safety area 202 for the UAV blades, and the process is the same as step S2;
[0077] An image transformation unit 3, which is used to transform the drone image through an inverse perspective matrix to obtain a bird's-eye view of the drone;
[0078] A color space conversion unit 4, which is used to convert the RGB color space of the drone bird's-eye view into the HSV color space;
[0079] The blade judgment unit 5 is used to determine whether there are drone blades outside the drone blade closing safety area 202 according to the HSV color space, and its process is the same as step S3.
[0080] In summary, the present invention can automatically and quickly determine whether there are drone blades outside the safe area based on drone images and through machine vision technology, and then judge whether there is a propeller abnormality without manual inspection and verification, thereby ensuring the safety of the drone body when it is unmanned. At the same time, in the judgment process, non-blade objects are filtered out by setting relevant parameters to improve the recognition accuracy.
[0081] It should be noted that the technical features in the above-mentioned embodiments 1-3 can be combined arbitrarily, and the combined technical solutions all belong to the protection scope of the present application. In this article, terms such as "including", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or equipment including the elements.
[0082] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for detecting abnormal state of UAV blades based on machine vision, characterized in that: The steps include: Obtain an image of a drone parked on a drone landing pad, and transform the drone image using an inverse perspective matrix to obtain a bird's-eye view of the drone; Determine the safe area for UAV blade closing; Convert the RGB color space of the drone's top view into the HSV color space, and determine whether there are drone blades outside the drone's blade closing safety area based on the HSV color space; If it is determined that there are drone blades outside the safe area for the drone blades to close, it is considered that the closing of the propeller is abnormal; If it is determined that there are no drone blades outside the drone blade closing safety area, the propeller closing is considered normal.
2. The method for detecting abnormal state of propeller blades of a UAV according to claim 1, characterized in that: Determining the safe area for drone blade closing includes the following steps: A QR code pattern is set on the drone landing pad, and the drone is controlled to be placed on the QR code pattern; Acquire an image of the QR code pattern through a camera or other device, and obtain corner point information of the QR code pattern image; The UAV blade closing safety area is determined according to the corner point information of the two-dimensional code pattern image and the UAV parameters.
3. The method for detecting abnormal state of propeller blades of a UAV according to claim 2, characterized in that: The drone parameters include one or more of the drone height, the drone width, the length of the drone arm, and the length of the propeller blades.
4. The method for detecting abnormal state of UAV blades according to claim 1, characterized in that: Determining whether there are drone blades outside the drone blade closing safety area based on the HSV color space includes the following steps: In the HSV color space, extract the image of the object to be confirmed outside the safe area of the UAV blade closing; Obtaining a connected domain in the image of the object to be confirmed, and obtaining the rectangularity and / or area of the connected domain; When one or more of the area and rectangularity of the connected domain meet the preset conditions, the connected domain in the image of the object to be confirmed is considered to be a blade of a drone.
5. The method for detecting abnormal state of propeller blades of a UAV according to claim 4, characterized in that: Determining whether there are drone blades outside the drone blade closing safety area based on the HSV color space includes the following steps: Fit all points in the connected domain to obtain a fitting straight line y=kx+b, where k and b are the slope and intercept respectively; When one or more of the k value and the b value meet the preset conditions, it is considered that the connected domain in the image of the object to be confirmed is the propeller blade of the drone.
6. The method for detecting abnormal state of UAV blades according to claim 4, characterized in that: Determining whether there are drone blades outside the drone blade closing safety area based on the HSV color space includes the following steps: Get the distance from the fixed point to the centroid of the connected domain; When the distance from the fixed point to the centroid of the connected domain meets a preset condition, the connected domain in the image of the object to be confirmed is considered to be a blade of a drone.
7. The method for detecting abnormal state of propeller blades of a UAV according to claim 4, characterized in that: Determining whether there are drone blades outside the drone blade closing safety area based on the HSV color space includes the following steps: Get the distance from the fixed point to each point in the connected domain, and determine the minimum distance from all distances. When the minimum value of the distance from the fixed point to each point in the connected domain meets the preset condition, the connected domain in the image of the object to be confirmed is considered to be a blade of a drone.
8. The method for detecting abnormal state of propeller blades of a UAV according to claim 1, characterized in that: First, the image of the object to be confirmed is processed, and then the connected domain of the processed image of the object to be confirmed is obtained.
9. The method for detecting abnormal state of propeller blades of a UAV according to claim 8, characterized in that: The image processing includes removing noise, burrs and fine edges in the image.
10. A detection system for implementing the method for detecting abnormal state of UAV blade slurry combination according to any one of claims 1 to 9, characterized in that: include: A camera for acquiring images of the drone parked on the drone landing pad; A safety area determination unit, which is used to determine the safety area for the UAV's blades to close; An image transformation unit, which is used to transform the drone image through an inverse perspective matrix to obtain a bird's-eye view of the drone; A color space conversion unit, which is used to convert the RGB color space of the drone's bird's-eye view into the HSV color space; The blade judgment unit is used to determine whether there are drone blades outside the drone blade closing safety area according to the HSV color space.
