A method for unmanned aerial vehicle inspection area and path planning in mountain photovoltaic areas

By establishing a three-dimensional map model and fuzzy slope classification algorithm in mountainous photovoltaic areas, combined with the Z-shaped path and auxiliary curve turning method, the problem of low drone inspection efficiency is solved, and efficient flight path planning and photovoltaic panels are achieved. Tracking improves the efficiency and intelligence of inspections.

CN118010023BActive Publication Date: 2024-10-18CHINA YANGTZE POWER +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410010926.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-03
Publication Date
2024-10-18
Estimated Expiration
2044-01-03

AI Technical Summary

Technical Problem

In mountainous photovoltaic areas, existing drone inspection technology is difficult to effectively utilize terrain features and photovoltaic panel installation features, resulting in low inspection efficiency and insufficient drone endurance, making it impossible to efficiently plan flight paths and postures, affecting photovoltaic power plants. long-term safe and stable operation.

Method used

By establishing a three-dimensional map model and using a fuzzy slope division algorithm, the photovoltaic area is divided into five types of terrain: ridge, slope shoulder, back slope, slope foot, and valley. The inspection area is determined based on the drone's endurance, using a Z-shaped path and The auxiliary curve turning method is used to plan the flight path, and the onboard visual servo control is used to track the position and attitude of the photovoltaic panels.

Benefits of technology

It improves the efficiency of UAV inspection, optimizes flight path coverage, reduces path repetition rate, enhances the intelligent level of inspection, and ensures the safe and stable operation of the photovoltaic area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118010023B_ABST
    Figure CN118010023B_ABST
Patent Text Reader

Abstract

The invention discloses a method for planning a patrol area and a path of a UAV in a mountain photovoltaic area, comprising: considering the topography and terrain of the UAV patrol area, establishing a three-dimensional map model, determining the maximum patrol area of ​​a single UAV at a time, and the total number of UAVs; calculating the terrain factor of the photovoltaic area based on a fuzzy slope division algorithm, and dividing the photovoltaic area into five types of terrain according to the terrain factor; dividing the photovoltaic area into a number of regions according to the convexity and concavity types, and the area of ​​the region is determined according to the endurance of a single UAV; the UAV flight follows a Z-shaped path, and the flight mode corresponds to the five input terrains; the fuselage turns using an auxiliary curve, and the main flight direction and the flight altitude are obtained by converting the parameters of the local terrain index; finally determining the overall patrol path of the UAV; the UAV uses airborne visual servoing to control the relative position between the fuselage and the photovoltaic panel, and estimates the installation posture of the photovoltaic panel, and can track the position, posture and direction of the photovoltaic panel; the invention improves the patrol efficiency and the intelligence level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unmanned aerial vehicle inspection in mountain photovoltaic areas, and in particular to a method for planning an area and a path of an unmanned aerial vehicle inspection in a mountain photovoltaic area. Background Art

[0002] Since photovoltaic power stations occupy a huge ground area, they are often located in remote and economically inefficient mountainous areas, slopes, and river valleys, where the terrain is very complex. This means that if the installation, inspection, and maintenance of outdoor equipment such as photovoltaic panels are completely dependent on personnel, it will cost a lot of manpower, physical, and time costs. In extreme cases, personnel may be unable to operate, affecting the long-term safe and stable operation of the photovoltaic power station. Therefore, most photovoltaic power stations use drones to conduct daily inspections of photovoltaic areas.

[0003] Patent document CN115454132A divides mountain photovoltaic power stations into clusters and zones, and the improved clustering algorithm used tends to include photovoltaic array areas with similar latitudes and elevations into clusters; however, in the case of complex and changeable terrain types, the airborne system recognition model is complex, and real-time calculation consumes a lot of power. Patent document CN111752305A obtains a simplified aerial survey structure diagram based on satellite remote sensing parameters of the area to be inspected, drone flight altitude, mountain structure and no-fly zone factor information, identifies the collection of areas that drones cannot and cannot reach, and plans obstacle avoidance paths between stopover points, but does not specify how drones set and adjust inspection flight operation parameters based on terrain characteristics and photovoltaic panel installation characteristics.

[0004] When drones are flying for inspection, they need to be equipped with electronic equipment such as intelligent processors, cameras, sensors, etc. However, the battery capacity of a single drone is limited, and the photovoltaic area is large. It is very necessary to reasonably divide the photovoltaic area considering the terrain factors and plan the flight path and flight attitude considering the drone status to improve the efficiency of drone inspections. Summary of the invention

[0005] The purpose of the present invention is to overcome the above-mentioned shortcomings and provide a method for drone inspection area and path planning in mountain photovoltaic areas to improve the efficiency of drone inspection.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0007] A method for unmanned aerial vehicle inspection area and path planning in a mountain photovoltaic area, comprising the following steps:

[0008] S1. Consider the topography of the drone inspection area, establish a three-dimensional map model, determine the maximum inspection area of ​​a single drone, and the total number of drones used in this inspection;

[0009] S2. Calculate the terrain factors of the photovoltaic area based on the fuzzy slope division algorithm, and divide the photovoltaic area into five types of terrain according to the terrain factors: ridge, shoulder, back slope, foot of slope, and valley;

[0010] S3. The photovoltaic area terrain is divided into several areas according to its convex and concave types, and the area of ​​the area is determined according to the endurance of a single UAV;

[0011] S4. The UAV follows a Z-shaped path in the divided area. The flight mode of the UAV corresponds to the five input terrains. The fuselage turns with auxiliary curves. The main flight direction and flight altitude are calculated based on the terrain index parameters. The UAV landing site is set at the vertex on the boundary line that intersects the main direction, and the overall inspection path of the UAV is finally determined.

[0012] S5. The drone uses airborne visual servoing to control the relative position between the fuselage and the photovoltaic panel, and estimates the installation posture of the photovoltaic panel, and can track the position, posture, and direction of the photovoltaic panel.

[0013] Furthermore, the specific process of step S1 is as follows:

[0014] S11. Obtain the three-dimensional geographic information of the photovoltaic area and construct a map model through the optical camera and infrared sensing equipment on the drone;

[0015] S12. Determine the maximum inspection area of ​​a single drone at one time based on the drone's endurance.

[0016] Furthermore, the specific process of step S2 is as follows:

[0017] S21, using a random terrain model to calculate the weight w = {w1′, w2′, …, w5′} of each terrain factor to the slope type in the slope division process, and selecting elevation, slope, plane curvature, profile curvature and relative position index as reference standards;

[0018] S22, setting the window size according to the scale range, slope type and prior knowledge of the photovoltaic area, and defining the size occupied by the complete transition average of the commonly used target slope type as the "optimal window", and serving as the target range of the terrain recognition algorithm;

[0019] S23. Within the "optimal window", the terrain factor A k The similarity of the position point to be demarcated with respect to a typical position point of a certain slope position is calculated on (k=1,2,…,5), which is called fuzzy terrain element B k ; Let P ij is the position point of the area to be demarcated with coordinates (i, j) in the target to be identified, i is the horizontal coordinate of the position point of the area to be demarcated, j is the vertical coordinate of the position point of the area to be demarcated, T tis the tth typical position sample point under the cth slope position of the target to be identified, t = 1, 2, ..., m, m is the number of typical position points under this type of slope position, then the similarity calculation of the position point to be zoned relative to the typical position point is as shown in formula (1):

[0020]

[0021] in, Indicates the terrain factor A of the location to be zoned k (k=1,2,…,5, the number of terrain factors), The terrain factor A represents a sample of typical locations k The value of represents the kth fuzzy terrain element value of the location point of the area to be demarcated and the tth typical sample point under a certain slope position, w1 represents how much less the terrain factor value of the location point of the area to be demarcated is than the typical value of the terrain attribute, k1 represents the similarity corresponding to the terrain attribute at this time, w2 represents how much more the terrain factor value of the location point of the area to be demarcated is than the typical value of the terrain attribute, k2 represents the similarity corresponding to the terrain attribute at this time, 2*r1=2*r2=r 12 =Typical values ​​of terrain attributes. Parameters (w1, w2, k1, k2, r1, r2) are used to control the shape of the membership curve and are set by the user;

[0022] S24, comprehensive calculation of the location point P to be zoned ij Relative to a certain slope position, the typical sample point T t Similarity on all terrain factors (comprehensive fuzzy terrain elements); first use the importance score of each terrain factor obtained in process S31 as a weight factor, and then use the weighted factor principle to calculate the location point P to be zoned ij Relative typical location point importance score T t , the comprehensive fuzzy terrain elements on all terrain factors:

[0023]

[0024] Among them, S ij,t Indicates the location point P of the area to be demarcated ij Relative to the typical position point T t similarity in all terrain factors;

[0025] S25, comprehensive area to be demarcated location point P ijThe similarity of all typical positions under a certain slope position; even if the typical position sample points are within the same window size, the influence on the slope type of the position point to be demarcated is different. This influence is related to the distance between the two position points. The closer the distance to the position point to be demarcated is, the greater the influence on its slope type identification; as the distance increases, the degree of influence gradually decreases; the inverse distance function is used to weight the comprehensive similarity between the position point to be demarcated and each typical position sample point:

[0026]

[0027] Among them, S ij Indicates the location point P of the area to be demarcated ij Similarity with a certain type of slope; d ij,t represents the Euclidean distance between two points, and r represents the attenuation factor;

[0028] S26, repeating the above steps for each position point to be zoned in the target to be identified, to obtain the final similarity of each slope type of the target to be identified;

[0029] S27. Calculate five terrain factors: elevation refers to the distance from a ground point along a plumb line to the geoid; slope reflects the degree of inclination of the local terrain surface, as shown in formula (4); plane curvature reflects the influence of convergence and divergence of surface material movement, as shown in formula (5); profile curvature reflects the influence of acceleration and deceleration of surface material movement, as shown in formula (6); relative position index reflects the quantitative estimate of the relative position from ridge to valley;

[0030]

[0031]

[0032] Among them, f is the function equation of the three-dimensional modeling terrain, x and y represent the horizontal and vertical axes, and f x represents the partial derivative of x, f y represents the partial derivative of y, f xx It means to take the partial derivative of x and then take the partial derivative of x, f xy It means to find the partial derivative of x and then find the partial derivative of y, f yy It means to find the partial derivative of y and then find the partial derivative of y;

[0033] S28. Set five reference ranges for terrain factors and divide the slope types into ridge, shoulder, back slope, foot and valley. Define the mean plane curvature of the photovoltaic area as a1, standard deviation as a2, mean profile curvature as b1, standard deviation as b2, mean slope as c1, standard deviation as c2, mean altitude as d1, standard deviation as d2. The relative position index of the ridge is ≥0.99, and the plane curvature (m -1)≥a2, slope (°)≤c2, elevation (m)≥(d1-d2); the relative position index of the slope shoulder is between 0.8 and 0.9, and the profile curvature (m -1 )≥0; the back slope relative position index is between 0.4 and 0.6, and the profile curvature (m -1 ) is between -b2 and b2, the slope (°) ≥ c1; the relative position index of the slope foot is between 0.15 and 0.2, and the profile curvature (m -1 )≤b1; relative position index of valley ≤0.1, plane curvature (m -1 ) is between -a1 and a1, and the slope (°) ≤ c2.

[0034] Furthermore, the specific process of step S3 is as follows:

[0035] S31, determine the type of convex and concave area of ​​the terrain. If it is a convex area, use the convex area division method; simplify the target area into a polygon P, and divide P into n sub-areas of equal area (n is the area of ​​the area divided by the maximum inspection area of ​​a single drone at a time). The specific division process is as follows: First, input the vertex information of the convex polygon O(P) = o v , v = 1, 2, ..., γ, where γ is the number of vertices, and they are sorted in counterclockwise order; take a pair of parallel straight lines L left , L right , L left Translate left until it intersects polygon P at a point or a boundary, L right Translate right until it intersects polygon P at a point or a boundary, and move L left and L right As the boundary of the scan line; L left and L right The distance between them is the maximum width d in that direction. max , take n-1 points S(P)=S1,S2,…,S from right to left along the maximum width direction n-1 D max Make n equal parts, and make the dividing line L parallel to the boundary line through the point i =(L s ,L e )(i=1,2,…,n-1),L i Intersects P at L s , L e ; When L n-1 When the area of ​​the polygon on the right is larger than the required area, L n-1 Move to the right until the areas are equal; when L n-1 When the area of ​​the polygon on the right is smaller than the required area, L n-1Move to the left until the area is equal; and so on until L1 is also divided. Eventually, the terrain will be divided into n areas of equal area.

[0036] S32, determine the type of convex and concave area of ​​the terrain. When it is a concave area, first use the convex decomposition method at the notch to divide the concave area into convex areas; when the partition area on the right side of boundary 1 is smaller than the required area, the dividing line at the notch is scanned and divided within the extended line of the boundary of the notch until the divided area meets the requirement; if the dividing line 1 coincides with boundary 2 and still does not meet the required area, then move the dividing line parallel to boundary 1 or boundary 2 to the left of the polygon to meet the area (D 1-1 ) and area (D 1-2 ) reaches the required area, the partition is completed, and the partition D is composed of two convex polygons D 1-1 and D 1-2 When the area of ​​partition D on the right side of boundary 1 is larger than the required area, the dividing line rotates around the concave point at D 1-1 The internal counterclockwise scanning division is performed until the required area is obtained; the area that meets the area requirement is output as partition D1, and the rest is divided as a whole until n-1 partitions are obtained;

[0037] S33. Each terrain division uses the above method to divide the entire photovoltaic area into multiple areas.

[0038] Furthermore, the specific process of step S4 is as follows:

[0039] S41. The "Z"-shaped path followed by the drone flight, that is, the drone starts from the starting point and turns around (180°) and rises △x when it reaches the boundary line of the segmented area along the selected direction. n Altitude, repeat the above process until the entire area is completed;

[0040] S42. According to the terrain that has been divided into ridges, shoulders, back slopes, foot slopes and valleys in the photovoltaic area, the flight altitude ranges of the corresponding area detection drones are set to x1, x2, x3, x4 and x5 in sequence, and the flight altitude changes of the corresponding area detection drones are △x1, △x2, △x3, △x4 and △x5 in sequence. The altitude reference values ​​h1, h2, h3 and h4 are defined.

[0041] The flight altitude range parameter of the UAV in the ridge area is set to x1, where x1≥h4, and the flight altitude of the nth flight is

[0042] The flight altitude range parameter of the UAV shoulder area is set to x2, where h4≥x2≥h3, and the flight altitude of the nth flight is

[0043]

[0044] The flight altitude range parameter of the UAV back slope area is set to x3, where h3≥x3≥h2, and the flight altitude of the nth flight is

[0045]

[0046] The flight altitude range parameter of the UAV slope foot area is set to x4, where h2≥x4≥h1, and the flight altitude of the nth flight is

[0047]

[0048] The flight altitude range parameter of the drone in the valley area is set to x5, where h1≥x5, and the flight altitude of the nth flight is

[0049] S43. When a drone turns during flight, there is a minimum turning radius limit. When a drone flies over a certain area, the width of the coverage zone formed between the two centerline trajectories is d. When the distance between the centerlines of the two coverage zones is greater than the drone’s minimum turning radius R min twice, that is, d>2R min When d<2R min The UAV needs an auxiliary curve turning method to complete the turn; the auxiliary curve turning method comprehensively considers the number of turns and the length of the distance of the UAV, substitutes the position of the starting point and the end point and the heading information, calculates the center of the starting circle and the midpoint circle, and obtains the path of the turning arc;

[0050]

[0051]

[0052] Among them, x s ,y s Represents circle C s The horizontal and vertical coordinate trajectory, x f ,y f Represents circle C f The horizontal and vertical coordinate trajectory of 1 / k s and 1 / k f The starting circle C s and the end circle C f The radius of s and φ f are the inclination angles of the starting point and the ending point respectively. For the convenience of calculation and expression, the value range is specified as [0,2π]. Through equations (7) to (10), we can find the starting circle C s The center of the circle O s (x cs ,y cs ), and the end point circle Cf The center of the circle O f (x cf ,y cf ); let r be the turning radius of the drone, a be the circle C s The center of the circle O s and circle C f The center of the circle O f The height difference is , and the straight flight direction is taken as the positive direction. The distance between the two posture points just satisfies the condition in (11):

[0053]

[0054] Usually, the distance between two pose points cannot exactly satisfy equation (11). The positions of the two pose points can be made to satisfy equation (11) by moving the starting point or the end point.

[0055] S44, after selecting a suitable turning algorithm, determine the main direction of the UAV flight; select the flight route with the smallest altitude change during each straight flight as the main direction of flight; and take the long side as the main direction;

[0056] S45. The UAV apron location is set at the vertex on the boundary line intersecting the main direction; in the UAV flight path, the starting point and the ending point on the boundary line intersecting the main direction are set as the take-off point and the landing point of the UAV apron location.

[0057] Furthermore, the specific process of step S5 is as follows:

[0058] S51. The drone is equipped with a binocular camera to collect and annotate the photovoltaic panel images of customized scenes at various angles;

[0059] S52, preprocessing the labeled image, using a target detection algorithm for training, and obtaining an overall picture of the photovoltaic panel under complex flight conditions;

[0060] S53, after obtaining the target area, using the RGB image to perform three-dimensional reconstruction of the photovoltaic panel target;

[0061] S54. After determining the three-dimensional reconstruction information of the object, the position and posture parameters of each photovoltaic panel are obtained and stored.

[0062] Furthermore, in S52, the steps of the target detection algorithm include:

[0063] S521, firstly perform a preprocessing operation on the input image;

[0064] S522, performing feature extraction in a backbone network layer of a convolutional neural network based on terrain modeling;

[0065] S523, taking each pixel point as a training sample for regression;

[0066] S524: training a network model.

[0067] The beneficial effects of the present invention are as follows: the present invention can determine the area that can be inspected by a single drone in a single flight according to the drone's endurance, and identify the terrain characteristics of the inspection area according to the type of mountain slope where the photovoltaic area is located, and further divide the inspection area according to the type of convexity and concavity, and plan the drone flight path within the generated area, and determine the location information of the drone landing pad in the photovoltaic area. At the same time, the "terrain category" status value is used as a basis to assist the drone in selecting the flight mode, effectively solving the problem of drone inspection and scheduling in the photovoltaic area; and the drone can track the position, posture, and direction of the photovoltaic panels through visual servoing, thereby improving the inspection efficiency and intelligence level. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 It is a flowchart of a method for unmanned aerial vehicle inspection area and path planning in mountain photovoltaic areas;

[0069] Figure 2 This is a flow chart of the fuzzy slope division algorithm based on random terrain;

[0070] Figure 3 It is a schematic diagram of the convex region partitioning algorithm when n=7;

[0071] Figure 4 It is a schematic diagram of convex decomposition at the concave area in concave area partition;

[0072] Figure 5 A schematic diagram of the turning route of the drone when assisting in curve turning;

[0073] Figure 6 Schematic diagram of UAV path planning according to the method of the present invention. DETAILED DESCRIPTION

[0074] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0075] Example 1: Figure 1-2 As shown, a method for unmanned aerial vehicle inspection area and path planning in a mountain photovoltaic area includes the following steps:

[0076] S1. Consider the topography of the drone inspection area, establish a three-dimensional map model, determine the maximum inspection area of ​​a single drone, and the total number of drones used in this inspection;

[0077] S11. Obtain the three-dimensional geographic information of the photovoltaic area and construct a map model through the optical camera and infrared sensing equipment on the drone;

[0078] S12. Determine the maximum inspection area of ​​a single drone at one time based on the drone's endurance.

[0079] In this embodiment, the drone uses an onboard image recognition device to scan the entire photovoltaic area and generate three-dimensional geographic information of the photovoltaic area; a three-dimensional map model is established based on the topography of the inspection area, and then the maximum inspection area of ​​a single drone and the total number of drones used in this inspection are determined based on the drone's endurance. The actual inspection area of ​​a single drone should be smaller than the theoretical maximum inspection area of ​​a single drone to ensure that the drone completes a single inspection task.

[0080] S2, such as Figure 2 As shown in the figure, the terrain factors of the photovoltaic area are calculated based on the fuzzy slope division algorithm, and the photovoltaic area is divided into five types of terrains according to the terrain factors: ridge, shoulder, back slope, foot of slope, and valley;

[0081] S21. Use the random terrain model to calculate the weight of each terrain factor on the slope type in the slope division process w = {w1′, w2′, …, w′ m}, elevation, slope, plan curvature, profile curvature and relative position index were selected as reference standards;

[0082] S22. Set the window size according to the scale range, slope type and prior knowledge of the photovoltaic area. The window size should not be set too large, as it will affect the running time of the program; at the same time, the window should not be defined too small, as it will cause the algorithm division effect to be unsatisfactory. The size of the complete transition average occupied by the commonly used target slope type is defined as the "optimal window" and used as the target range of the terrain recognition algorithm;

[0083] S23. Within the "optimal window", the terrain factor A k The similarity of the position point to be demarcated with respect to a typical position point of a certain slope position is calculated on (k=1,2,…,5), which is called fuzzy terrain element B k ; Let P ij is the position point of the area to be demarcated with coordinates (i, j) in the target to be identified, i is the horizontal coordinate of the position point of the area to be demarcated, j is the vertical coordinate of the position point of the area to be demarcated, T t is the tth typical position sample point under the cth slope position of the target to be identified, t = 1, 2, ..., m, m is the number of typical position points under this type of slope position, then the similarity calculation of the position point to be zoned relative to the typical position point is as shown in formula (1):

[0084]

[0085] in, Indicates the terrain factor A of the location to be zoned k (k=1,2,…,5, the number of terrain factors), The terrain factor A represents a sample of typical locations k The value of represents the kth fuzzy terrain element value of the location point of the area to be demarcated and the tth typical sample point under a certain slope position, w1 represents how much less the terrain factor value of the location point of the area to be demarcated is than the typical value of the terrain attribute, k1 represents the similarity corresponding to the terrain attribute at this time, w2 represents how much more the terrain factor value of the location point of the area to be demarcated is than the typical value of the terrain attribute, k2 represents the similarity corresponding to the terrain attribute at this time, 2*r1=2*r2=r 12 =Typical values ​​of terrain attributes. Parameters (w1, w2, k1, k2, r1, r2) are used to control the shape of the membership curve and are set by the user;

[0086] S24, comprehensive calculation of the location point P to be zoned ij Relative to a certain slope position, the typical sample point T t Similarity on all terrain factors (comprehensive fuzzy terrain elements); first use the importance score of each terrain factor obtained in process S31 as a weight factor, and then use the weighted factor principle to calculate the location point P to be zoned ij Relative typical location point importance score T t , the comprehensive fuzzy terrain elements on all terrain factors:

[0087]

[0088] Among them, S ij,t Indicates the location point P of the area to be demarcated ij Relative to the typical position point T t similarity in all terrain factors;

[0089] S25, comprehensive area to be demarcated location point P ij The similarity of all typical positions under a certain slope position; even if the typical position sample points are within the same window size, the influence on the slope type of the position point to be demarcated is different. This influence is related to the distance between the two position points. The closer the distance to the position point to be demarcated is, the greater the influence on its slope type identification; as the distance increases, the degree of influence gradually decreases; the inverse distance function is used to weight the comprehensive similarity between the position point to be demarcated and each typical position sample point:

[0090]

[0091] Among them, S ij Indicates the location point P of the area to be demarcated ij Similarity with a certain type of slope; d ij,t represents the Euclidean distance between two points, and r represents the attenuation factor;

[0092] S26, repeating the above steps for each position point to be zoned in the target to be identified, to obtain the final similarity of each slope type of the target to be identified;

[0093] S27. Calculate five terrain factors: elevation refers to the distance from a ground point along a plumb line to the geoid; slope reflects the degree of inclination of the local terrain surface, as shown in formula (4); plane curvature reflects the influence of convergence and divergence of surface material movement, as shown in formula (5); profile curvature reflects the influence of acceleration and deceleration of surface material movement, as shown in formula (6); relative position index reflects the quantitative estimate of the relative position from ridge to valley;

[0094]

[0095] Among them, f is the function equation of the three-dimensional modeling terrain, x and y represent the horizontal and vertical axes, and f x represents the partial derivative of x, f y represents the partial derivative of y, f xx It means to take the partial derivative of x and then take the partial derivative of x, f xy It means to find the partial derivative of x and then find the partial derivative of y, f yy It means to find the partial derivative of y and then find the partial derivative of y;

[0096] S28. Set five reference ranges for terrain factors and divide the slope types into ridge, shoulder, back slope, foot and valley. Define the mean plane curvature of the photovoltaic area as a1, standard deviation as a2, mean profile curvature as b1, standard deviation as b2, mean slope as c1, standard deviation as c2, mean altitude as d1, standard deviation as d2. The relative position index of the ridge is ≥0.99, and the plane curvature (m -1 )≥a2, slope (°)≤c2, elevation (m)≥(d1-d2); the relative position index of the slope shoulder is between 0.8 and 0.9, and the profile curvature (m -1 )≥0; the back slope relative position index is between 0.4 and 0.6, and the profile curvature (m -1 ) is between -b2 and b2, the slope (°) ≥ c1; the relative position index of the slope foot is between 0.15 and 0.2, and the profile curvature (m -1 )≤b1; relative position index of valley ≤0.1, plane curvature (m -1 ) is between -a1 and a1, and the slope (°) ≤ c2.

[0097] S3. The photovoltaic area terrain is divided into several areas according to its convex and concave types, and the area of ​​the area is determined according to the endurance of a single UAV;

[0098] S31, determine the type of convex and concave area of ​​the terrain. If it is a convex area, use the convex area division method; simplify the target area into a polygon P, and divide P into n sub-areas of equal area (n is the area of ​​the area divided by the maximum inspection area of ​​a single drone at a time). The specific division process is as follows: First, input the vertex information of the convex polygon O(P) = o v , v = 1, 2, ..., γ, where γ is the number of vertices, and they are sorted in counterclockwise order. The division process is as follows Figure 3 As shown, take a pair of parallel straight lines L left , L right , L left Translate left until it intersects polygon P at a point or a boundary, L right Translate right until it intersects polygon P at a point or a boundary, and move L left and L right As the boundary of the scan line; L left and L right The distance between them is the maximum width d in that direction. max , take n-1 points S(P)=S1,S2,…,S from right to left along the maximum width direction n-1 D max Make n equal parts, and make the dividing line L parallel to the boundary line through the point i =(L s ,L e )(i=1,2,…,n-1),L i Intersects P at L s , L e ; When L n-1 When the area of ​​the polygon on the right is larger than the required area, L n-1 Move to the right until the areas are equal; when L n-1 When the area of ​​the polygon on the right is smaller than the required area, L n-1 Move to the left until the area is equal; and so on until L1 is also divided. Eventually, the terrain will be divided into n areas of equal area.

[0099] S32, determining the type of the convex and concave area of ​​the terrain, if it is a concave area, firstly adopting the method of convex decomposition at the notch to divide the concave area into convex areas; decomposition at the notch is as follows: Figure 4 As shown in the figure (the dotted arrow represents the direction of segmentation rotation, the solid arrows represent segmentation line 1 and segmentation line 2 respectively, and the reverse extended dotted lines of the notch represent boundary 1 and boundary 2 respectively): when the partition area on the right side of boundary 1 is smaller than the required area, the segmentation line at the notch is scanned and divided within the extended boundary line of the notch until the partition area meets the requirement; if the segmentation line 1 and boundary 2 coincide and still do not meet the required area, the segmentation line is moved parallel to boundary 1 or boundary 2 to the left side of the polygon to meet the area (D 1-1) and area (D 1-2 ) reaches the required area, the partition is completed, and the partition D is composed of two convex polygons D 1-1 and D 1-2 When the area of ​​partition D on the right side of boundary 1 is larger than the required area, the dividing line rotates around the concave point at D 1-1 The internal counterclockwise scanning division is performed until the required area is obtained; the area that meets the area requirement is output as partition D1, and the rest is divided as a whole until n-1 partitions are obtained;

[0100] S33. Each terrain division uses the above method to divide the entire photovoltaic area into multiple areas.

[0101] S4. The UAV follows a Z-shaped path in the divided area. The flight mode of the UAV corresponds to the five input terrains. The fuselage turns with auxiliary curves. The main flight direction and flight altitude are calculated based on the terrain index parameters. The UAV landing site is set at the vertex on the boundary line that intersects the main direction, and the overall inspection path of the UAV is finally determined.

[0102] S41. The "Z"-shaped path followed by the drone flight, that is, the drone starts from the starting point and turns around (180°) and rises △x when it reaches the boundary line of the segmented area along the selected direction. n The above process is repeated until the entire area is completely flown. This method can not only make the trajectory cover the entire search area, but also effectively avoid or reduce the duplication of the UAV's operation trajectory, thereby improving the UAV inspection efficiency.

[0103] S42. According to the terrain that has been divided into ridges, shoulders, back slopes, foot slopes and valleys in the photovoltaic area, the flight altitude ranges of the corresponding area detection drones are set to x1, x2, x3, x4 and x5 in sequence, and the flight altitude changes of the corresponding area detection drones are △x1, △x2, △x3, △x4 and △x5 in sequence. The altitude reference values ​​h1, h2, h3 and h4 are defined.

[0104] The flight altitude range parameter of the UAV in the ridge area is set to x1, where x1≥h4, and the flight altitude of the nth flight is

[0105] The flight altitude range parameter of the UAV shoulder area is set to x2, where h4≥x2≥h3, and the flight altitude of the nth flight is

[0106]

[0107] The flight altitude range parameter of the UAV back slope area is set to x3, where h3≥x3≥h2, and the flight altitude of the nth flight is

[0108]

[0109] The flight altitude range parameter of the UAV slope foot area is set to x4, where h2≥x4≥h1, and the flight altitude of the nth flight is

[0110]

[0111] The flight altitude range parameter of the drone in the valley area is set to x5, where h1≥x5, and the flight altitude of the nth flight is

[0112] S43. When a drone turns during flight, there is a minimum turning radius limit. The energy consumption of a drone when turning is much greater than that of a drone when flying straight. Reasonable turning design is conducive to the full use of the drone. Figure 5 As shown in the figure, when the drone flies over a certain area, the coverage belt formed between the two centerline trajectories has a width of d; when the distance between the centerlines of the two coverage belts is greater than the minimum turning radius R of the drone min twice, that is, d>2R min When d<2R min The UAV needs an auxiliary curve turning method to complete the turn; the auxiliary curve turning method comprehensively considers the number of turns and the length of the distance of the UAV, substitutes the position of the starting point and the end point and the heading information, calculates the center of the starting circle and the midpoint circle, and obtains the path of the turning arc;

[0113]

[0114] Among them, x s ,y s Represents circle C s The horizontal and vertical coordinate trajectory, x f ,y f Represents circle C f The horizontal and vertical coordinate trajectory of 1 / k s and 1 / k f The starting circle C s and the end circle C f The radius of s and φ f are the inclination angles of the starting point and the ending point respectively. For the convenience of calculation and expression, the value range is specified as [0,2π]. Through equations (7) to (10), we can find the starting circle C s The center of the circle O s (x cs ,y cs ), and the end point circle C f The center of the circle O f (x cf ,y cf); let r be the turning radius of the drone, a be the circle C s The center of the circle O s and circle C f The center of the circle O f The height difference is , and the straight flight direction is taken as the positive direction. The distance between the two posture points just satisfies the condition in (11):

[0115]

[0116] Usually, the distance between two pose points cannot exactly satisfy equation (11). The positions of the two pose points can be made to satisfy equation (11) by moving the starting point or the end point.

[0117] S44. After selecting a suitable turning algorithm, determine the main direction of the drone's flight. Try to select a flight route with the smallest altitude change each time you fly in a straight line as the main direction of the flight. At the same time, try to use the long side as the main direction. Take a rectangle with a length of 6 and a width of 2 as an example. Assuming that the turning diameter of the drone is 1, if the width of the rectangle is the main direction, the drone needs to turn 5 times to cover the entire area. However, if the length of the rectangle is the main direction, the drone only needs to turn once to cover the entire area.

[0118] S45. The UAV apron location is set at the vertex on the boundary line intersecting the main direction; in the UAV flight path, the starting point and the ending point on the boundary line intersecting the main direction are set as the take-off point and the landing point of the UAV apron location.

[0119] S5. The drone uses airborne visual servoing to control the relative position between the fuselage and the photovoltaic panel, and estimates the installation posture of the photovoltaic panel, and can track the position, posture, and direction of the photovoltaic panel.

[0120] S51. The drone is equipped with a binocular camera to collect and annotate the photovoltaic panel images of customized scenes at various angles;

[0121] S52, preprocessing the labeled image, using the target detection algorithm for training, and obtaining an overall picture of the photovoltaic panel under complex flight conditions (i.e., under occlusion and different scales);

[0122] S53, after obtaining the target area, using the RGB image to perform three-dimensional reconstruction of the photovoltaic panel target;

[0123] S54. After determining the three-dimensional reconstruction information of the object, the position and posture parameters of each photovoltaic panel are obtained and stored.

[0124] Furthermore, in S52, the steps of the target detection algorithm include:

[0125] S521, firstly perform a preprocessing operation on the input image;

[0126] S522, performing feature extraction in a backbone network layer of a convolutional neural network based on terrain modeling;

[0127] S523, taking each pixel point as a training sample for regression;

[0128] S524: training a network model.

[0129] The mountain photovoltaic area drone inspection area and path planning method of the embodiment of the present invention can determine the area that a single drone can inspect in a single flight according to the drone's endurance, and identify the terrain characteristics of the inspection area according to the mountain slope type where the photovoltaic area is located. The inspection area is further divided into areas according to the convexity and concavity types, and the drone flight path is planned within the generated area. The location information of the drone landing pad in the photovoltaic area is determined, and the "terrain category" status value is used as a basis to assist the drone in selecting the flight mode, thereby effectively solving the problem of drone inspection scheduling in photovoltaic areas.

[0130] Example 2: At present, conventional path algorithms do not use the auxiliary curve turning method. When turning, the drone energy consumption increases due to the long turning path or the large number of turning times. If the flight axis is not considered, the number of corners inspected in the same area will increase. The drone path coverage rate obtained by the method of the present invention is 100%, the path repetition rate does not exceed 5%, and the number of corners is 36. The specific drone path planning is as follows: Figure 6 shown.

[0131] The above embodiments are only preferred technical solutions of the present invention and should not be regarded as limiting the present invention. The protection scope of the present invention shall be the technical solutions recorded in the claims, including equivalent replacement solutions of the technical features in the technical solutions recorded in the claims. That is, equivalent replacement improvements within this scope are also within the protection scope of the present invention.

Claims

1. A method for unmanned aerial vehicle inspection area and path planning in mountain photovoltaic areas, characterized by: It includes the following steps: S1. Consider the topography of the drone inspection area, establish a three-dimensional map model, determine the maximum inspection area of ​​a single drone, and the total number of drones used in this inspection; S2. Calculate the terrain factors of the photovoltaic area based on the fuzzy slope division algorithm, and divide the photovoltaic area into five types of terrain according to the terrain factors: ridge, shoulder, back slope, foot of slope, and valley; S3. The photovoltaic area terrain is divided into several areas according to its convex and concave types, and the area of ​​the area is determined according to the endurance of a single UAV; S4. The UAV follows a Z-shaped path in the divided area. The flight mode of the UAV corresponds to the five input terrains. The fuselage turns with auxiliary curves. The main flight direction and flight altitude are calculated based on the terrain index parameters. The UAV landing site is set at the vertex on the boundary line that intersects the main direction, and the overall inspection path of the UAV is finally determined. S5. The drone uses airborne visual servoing to control the relative position between the fuselage and the photovoltaic panel, and estimates the installation posture of the photovoltaic panel, and can track the position, posture, and direction of the photovoltaic panel; The specific process of step S2 is: S21, using a random terrain model to calculate the weight w = {w1′, w2′, …, w5′} of each terrain factor to the slope type in the slope division process, and selecting elevation, slope, plane curvature, profile curvature and relative position index as reference standards; S22, setting the window size according to the scale range, slope type and prior knowledge of the photovoltaic area, and defining the size occupied by the complete transition average of the commonly used target slope type as the "optimal window", and serving as the target range of the terrain recognition algorithm; S23. Within the "optimal window", terrain factor A k The similarity of the position point to be demarcated, k = 1, 2, ..., 5, with respect to a typical position point of a certain slope position is called fuzzy terrain element B. k ; Let P ij is the position point of the area to be demarcated with coordinates (i, j) in the target to be identified, i is the horizontal coordinate of the position point of the area to be demarcated, j is the vertical coordinate of the position point of the area to be demarcated, T t is the tth typical position sample point under the cth slope position of the target to be identified, t = 1, 2, ..., m, m is the number of typical position points under this type of slope position, then the similarity calculation of the position point to be zoned relative to the typical position point is as shown in formula (1): in, Indicates the terrain factor A of the location to be zoned k The value of , k = 1, 2, ..., 5, is the number of terrain factors, The terrain factor A represents a sample of typical locations k The value of represents the kth fuzzy terrain element value of the location point of the area to be demarcated and the tth typical sample point under a certain slope position, w1 represents how much less the terrain factor value of the location point of the area to be demarcated is than the typical value of the terrain attribute, k1 represents the similarity corresponding to the terrain attribute at this time, w2 represents how much more the terrain factor value of the location point of the area to be demarcated is than the typical value of the terrain attribute, k2 represents the similarity corresponding to the terrain attribute at this time, 2*r1=2*r2=r 12 =Typical values ​​of terrain attributes. Parameters (w1, w2, k1, k2, r1, r2) are used to control the shape of the membership curve and are set by the user; S24, comprehensive calculation of the location point P to be zoned ij Relative to a certain slope position, the typical sample point T t Similarity on all terrain factors; first use the importance score of each terrain factor obtained in process S31 as a weight factor, and then use the weighted factor principle to calculate the location point P to be zoned ij Relative typical location point importance score T t , the comprehensive fuzzy terrain elements on all terrain factors: Among them, S ij,t Indicates the location point P of the area to be demarcated ij Relative to the typical position point T t similarity in all terrain factors; S25, comprehensive area to be demarcated location point P ij The similarity of all typical positions under a certain slope position; even if the typical position sample points are within the same window size, the influence on the slope type of the position point to be demarcated is different. This influence is related to the distance between the two position points. The closer the distance to the position point to be demarcated is, the greater the influence on its slope type identification; as the distance increases, the degree of influence gradually decreases; the inverse distance function is used to weight the comprehensive similarity between the position point to be demarcated and each typical position sample point: Among them, S ij Indicates the location point P of the area to be demarcated ij Similarity with a certain type of slope; d ij,t represents the Euclidean distance between two points, and r represents the attenuation factor; S26, repeating the above steps for each position point to be zoned in the target to be identified, to obtain the final similarity of each slope type of the target to be identified; S27. Calculate five terrain factors: elevation refers to the distance from a ground point along a plumb line to the geoid; slope reflects the degree of inclination of the local terrain surface, as shown in formula (4); plane curvature reflects the influence of convergence and divergence of surface material movement, as shown in formula (5); profile curvature reflects the influence of acceleration and deceleration of surface material movement, as shown in formula (6); relative position index reflects the quantitative estimate of the relative position from ridge to valley; Among them, f is the function equation of the three-dimensional modeling terrain, x and y represent the horizontal and vertical axes, and f x represents the partial derivative of x, f y represents the partial derivative of y, f xx It means to take the partial derivative of x and then take the partial derivative of x, f xy It means to find the partial derivative of x and then find the partial derivative of y, f yy It means to find the partial derivative of y and then find the partial derivative of y; S28. Set five reference ranges for terrain factors and divide the slope types into ridge, shoulder, back slope, foot and valley. Define the mean plane curvature of the photovoltaic area as a1, standard deviation as a2, mean profile curvature as b1, standard deviation as b2, mean slope as c1, standard deviation as c2, mean altitude as d1, standard deviation as d2. The relative position index of the ridge is ≥0.99, and the plane curvature (m -1 )≥a2, slope (°)≤c2, elevation (m)≥(d1-d2); the relative position index of the slope shoulder is between 0.8 and 0.9, and the profile curvature (m -1 )≥0; the back slope relative position index is between 0.4 and 0.6, and the profile curvature (m -1 ) is between -b2 and b2, the slope (°) ≥ c1; the relative position index of the slope foot is between 0.15 and 0.2, and the profile curvature (m -1 )≤b1; relative position index of valley ≤0.1, plane curvature (m -1 ) is between -a1 and a1, with a slope (°) ≤ c2; The specific process of step S3 is: S31, determine the type of convex and concave area of ​​the terrain. If it is a convex area, use the convex area division method; simplify the target area into a polygon P, divide P into n sub-areas of equal area, where n is the area of ​​the area divided by the maximum inspection area of ​​a single drone. The specific division process is as follows: First, input the vertex information of the convex polygon O(P) = o v , v = 1, 2, ..., γ, where γ is the number of vertices, and they are sorted in counterclockwise order; take a pair of parallel straight lines L left , L right , L left Translate left until it intersects polygon P at a point or a boundary, L right Translate right until it intersects polygon P at a point or a boundary, and move L left and L right As the boundary of the scan line; L left and L right The distance between them is the maximum width d in that direction. max , take n-1 points S(P)=S1,S2,…,S from right to left along the maximum width direction n-1 D max Make n equal parts, and make the dividing line L parallel to the boundary line through the point i =(L s ,L e ), i=1,2,…,n-1,L i Intersects P at L s , L e ; When L n-1 When the area of ​​the polygon on the right is larger than the required area, L n-1 Move to the right until the areas are equal; when L n-1 When the area of ​​the polygon on the right is smaller than the required area, L n-1 Move to the left until the area is equal; and so on until L1 is also divided. Eventually, the terrain will be divided into n areas of equal area. S32, determine the type of convex and concave area of ​​the terrain. If it is a concave area, first use the convex decomposition method at the notch to divide the concave area into convex areas; when the partition area on the right side of boundary 1 is smaller than the required area, the dividing line at the notch is scanned and divided within the extended line of the boundary of the notch until the divided area meets the requirement; if the dividing line 1 coincides with boundary 2 and still does not meet the required area, then move the dividing line parallel to boundary 1 or boundary 2 to the left of the polygon to meet area D 1-1 and region D 1-2 When the sum of the areas of reaches the requirement, the partition is completed. At this time, the partition D consists of two convex polygons D 1-1 and D 1-2 When the area of ​​partition D on the right side of boundary 1 is larger than the required area, the dividing line rotates around the concave point at D 1-1 The internal division is scanned counterclockwise until the required area is obtained; the area that meets the area requirement is output as partition D1, and the rest is divided as a whole until n-1 partitions are obtained; S33. Each terrain division uses the above method to divide the entire photovoltaic area into multiple areas.

2. A method for unmanned aerial vehicle inspection area and path planning in a mountain photovoltaic area according to claim 1, characterized in that: The specific process of step S1 is: S11. Obtain the three-dimensional geographic information of the photovoltaic area and construct a map model through the optical camera and infrared sensing equipment on the drone; S12. Determine the maximum inspection area of ​​a single drone at one time based on the drone's endurance.

3. A method for unmanned aerial vehicle inspection area and path planning in a mountain photovoltaic area according to claim 1, characterized in that: The specific process of step S4 is as follows: S41. The "Z"-shaped path followed by the drone flight, that is, the drone starts from the starting point and turns 180° and rises △x when it reaches the boundary line of the segmented area along the selected direction. n Altitude, repeat the above process until the entire area is completed; S42. According to the terrain that has been divided into ridges, shoulders, back slopes, foot slopes and valleys in the photovoltaic area, the flight altitude ranges of the corresponding area detection drones are set to x1, x2, x3, x4 and x5 in sequence, and the flight altitude changes of the corresponding area detection drones are △x1, △x2, △x3, △x4 and △x5 in sequence. The altitude reference values ​​h1, h2, h3 and h4 are defined. The flight altitude range parameter of the UAV in the ridge area is set to x1, where x1≥h4, and the flight altitude of the nth flight is The flight altitude range parameter of the UAV shoulder area is set to x2, where h4≥x2≥h3, and the flight altitude of the nth flight is The flight altitude range parameter of the UAV back slope area is set to x3, where h3≥x3≥h2, and the flight altitude of the nth flight is The flight altitude range parameter of the UAV slope foot area is set to x4, where h2≥x4≥h1, and the flight altitude of the nth flight is The flight altitude range parameter of the drone in the valley area is set to x5, where h1≥x5, and the flight altitude of the nth flight is S43. When a drone turns during flight, there is a minimum turning radius limit. When a drone flies over a certain area, the width of the coverage zone formed between the two centerline trajectories is d. When the distance between the centerlines of the two coverage zones is greater than the drone’s minimum turning radius R min 2 times, that is, d>2R min When d<2R min The UAV needs an auxiliary curve turning method to complete the turn; the auxiliary curve turning method comprehensively considers the number of turns and the length of the distance of the UAV, substitutes the position of the starting point and the end point and the heading information, calculates the center of the starting circle and the midpoint circle, and obtains the path of the turning arc; Among them, x s ,y s Represents circle C s The horizontal and vertical coordinate trajectory, x f ,y f Represents circle C f The horizontal and vertical coordinate trajectory of 1 / k s and 1 / k f They are starting circle C s and the end circle C f The radius of s and φ f are the inclination angles of the starting point and the ending point respectively. For the convenience of calculation and expression, the value range is specified as [0,2π]. Through equations (7) to (10), we can find the starting circle C s The center of the circle O s (x cs ,y cs ), and the end point circle C f The center of the circle O f (x cf ,y cf ); let r be the turning radius of the drone, a be the circle C s The center of the circle O s and circle C f The center of the circle O f The height difference is , and the straight flight direction is taken as the positive direction. The distance between the two posture points just satisfies the condition in (11): The distance between two pose points cannot exactly satisfy equation (11). By moving the starting point or the end point, the positions of the two pose points can satisfy equation (11). S44, after selecting a suitable turning algorithm, determine the main direction of the UAV flight; select the flight route with the smallest altitude change during each straight flight as the main direction of flight; and take the long side as the main direction; S45. The UAV apron location is set at the vertex on the boundary line intersecting the main direction; in the UAV flight path, the starting point and the ending point on the boundary line intersecting the main direction are set as the take-off point and the landing point of the UAV apron location.

4. A method for unmanned aerial vehicle inspection area and path planning in a mountain photovoltaic area according to claim 1, characterized in that: The specific process of step S5 is as follows: S51. The drone is equipped with a binocular camera to collect and annotate the photovoltaic panel images of customized scenes at various angles; S52, preprocessing the labeled image, using a target detection algorithm for training, and obtaining an overall picture of the photovoltaic panel under complex flight conditions; S53, after obtaining the target area, using the RGB image to perform three-dimensional reconstruction of the photovoltaic panel target; S54. After determining the three-dimensional reconstruction information of the object, the position and posture parameters of each photovoltaic panel are obtained and stored.

5. A method for unmanned aerial vehicle inspection area and path planning in a mountain photovoltaic area according to claim 4, characterized in that: In S52, the steps of the target detection algorithm include: S521, firstly perform a preprocessing operation on the input image; S522, performing feature extraction in a backbone network layer of a convolutional neural network based on terrain modeling; S523, taking each pixel point as a training sample for regression; S524: training a network model.

Citation Information

Patent Citations

  • Mountainous region type distributed photovoltaic power station unmanned aerial vehicle inspection obstacle avoidance method and system

    CN111752305A

  • Unmanned aerial vehicle inspection three-dimensional path planning method and system for mountain photovoltaic power station

    CN115454132A

  • Electric power inspection unmanned aerial vehicle system based on dual obstacle avoidance and intelligent identification

    CN112684806A

  • Electric power channel inspection method based on fuzzy path

    CN113419564A