An optimization method for autonomous patrol points of unmanned aerial vehicles and a target state recognition method

By constructing a three-dimensional model and feature matching algorithm to optimize UAV inspection points, the problem of manual dependence and single image analysis is solved, and efficient and accurate UAV inspection point optimization and target status identification are achieved.

CN118397490BActive Publication Date: 2024-09-13ELECTRIC POWER RES INST STATE GRID SHANXI ELECTRIC POWER +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410817679.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-13
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

Existing UAV autonomous patrol point optimization relies on manual experience, which is costly and time-consuming. Moreover, independent analysis of a single image cannot obtain complete or three-dimensional information of the target to be detected, which affects the accuracy of the recognition model.

Method used

Construct a three-dimensional model of the object to be inspected and the target to be detected, and optimize the rotation angle, scaling factor and translation vector of the initial inspection point through projection image analysis and feature matching algorithms to ensure the acquisition of effective image data, and identify the target through comprehensive analysis of the three-dimensional model state.

Benefits of technology

It improves the accuracy and automation of inspection point optimization, shortens the optimization time, avoids the cost of manual trial and error, and ensures the adaptability of image data and the accuracy of the recognition model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397490B
    Figure CN118397490B
Patent Text Reader

Abstract

The present invention relates to the technical field of intelligent inspection of electric power equipment, and specifically refers to an optimization method for autonomous inspection points of unmanned aerial vehicles and a target state recognition method, comprising: in a three-dimensional model of an object to be inspected, constructing each image pair according to a reference image and a real image corresponding to each initial inspection point, and determining each matching matrix; obtaining and judging in turn whether each initial inspection point needs to be optimized according to the rotation angle, scaling factor and translation vector corresponding to each initial inspection point according to each matching matrix, thereby improving the accuracy of inspection point optimization judgment; obtaining the target inspection point by adjusting the size of each parameter corresponding to the current initial inspection point, thereby avoiding the deviation between the optimized inspection point and the actually required inspection point; taking all image pairs related to the target to be detected as the input of the recognition model, thereby avoiding the situation where the target state cannot be obtained due to occlusion of the target to be detected, thereby improving the accuracy of identifying the state of the target to be detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent inspection of electric power equipment, and in particular to an optimization method for autonomous inspection points of unmanned aerial vehicles and a target state recognition method. Background Art

[0002] In the field of power systems, based on the need to inspect and repair the safety status of lines, towers and other related supporting facilities in the power grid system, it is usually necessary to arrange inspections of the power grid system in order to timely grasp the operating conditions of transmission lines and power equipment, discover and eliminate defects in lines, towers and equipment, and prevent accidents. However, the traditional manual inspection method has a large workload, a long time, high labor costs, a high degree of difficulty, and it is difficult to detect abnormal conditions in time, which poses a great safety risk. Based on the above inspection problems, in recent years, with the continuous development and application of drone technology, the method of using drones to inspect power grid systems has been widely used.

[0003] At present, the existing autonomous patrol points of UAVs are set manually according to production experience, and there may be unreasonable settings, and each initial patrol point needs to be optimized; the UAV patrol process is: based on the object to be patrolled, set the target to be detected; based on each initial patrol point, reasonably set the patrol path; use the UAV to conduct autonomous patrols according to the set patrol path to obtain image data corresponding to each initial patrol point; transmit each acquired image data to the recognition model of the UAV flight control center through a data link in turn to identify the state of the target to be detected; if the state of the target to be detected cannot be identified according to the image data corresponding to the current initial patrol point, the image data corresponding to the current initial patrol point is invalid image data, and the current initial patrol point needs to be optimized; however, whether the state of the target to be detected can be identified to determine whether the current initial patrol point needs to be optimized depends largely on the accuracy of the recognition model. If the accuracy of the recognition model is low, it will lead to deviations in judging whether the current initial patrol point needs to be optimized.

[0004] The existing method for optimizing the autonomous patrol points of unmanned aerial vehicles is: manually adjusting the shooting position of the unmanned aerial vehicle at the current initial patrol point or manually adding a drone hovering point in the current patrol path as a new unmanned aerial vehicle autonomous patrol point, so as to ensure that the unmanned aerial vehicle can obtain effective image data of the target to be detected at the new patrol point or the new shooting position under the same patrol point; however, this optimization method relies more on manual experience, has high trial and error costs, complex processes, slow iterative updates, low automation and no quantitative analysis, which may cause the new patrol points obtained after manual adjustment to deviate from the actual patrol points required, thereby failing to obtain the image data required for effective fine recognition, resulting in unclear target state recognition, unclear power grid operation and maintenance content, and affecting line operation.

[0005] At present, during the autonomous patrol of UAVs, image data of the same target to be detected from different angles will be obtained; these image data are analyzed using a single image independent analysis method, but sometimes the target to be detected can only be presented partially or at a single angle in an image. If the single image independent analysis method is used to analyze the acquired image data one by one, the complete or three-dimensional information of the target to be detected cannot be obtained, affecting the accuracy of the recognition model in identifying the state of the target to be detected. Summary of the invention

[0006] To this end, the technical problem to be solved by the present invention is to overcome the problem that the prior art relies on the model recognition accuracy to judge whether the initial patrol points need to be optimized, resulting in judgment deviation; the initial patrol point optimization relies entirely on manual experience, with high trial and error costs, long time consumption and no quantitative analysis, resulting in the inability to obtain effective image data; a single image is analyzed independently, and the complete or three-dimensional information of the target to be detected cannot be obtained, affecting the accuracy of the recognition model in identifying the state of the target to be detected.

[0007] In order to solve the above technical problems, the present invention provides an optimization method for autonomous patrol points of unmanned aerial vehicles, comprising:

[0008] Determine each target to be detected in the object to be inspected; construct a three-dimensional model of the object to be inspected and a three-dimensional model of each target to be detected; set a main polyhedron of the three-dimensional model of the object to be inspected and a local polyhedron of the three-dimensional model of each target to be detected;

[0009] The three-dimensional model is projected with each plane of the polyhedron corresponding to the three-dimensional model as a projection plane to obtain each projection image corresponding to the three-dimensional model of the object to be inspected and each projection image corresponding to the three-dimensional model of each target to be detected;

[0010] Determine the relationship matrix between the coordinate system of the three-dimensional model of the object to be inspected and the coordinate system of the real scene of the object to be inspected; map each initial inspection point to the three-dimensional model of the object to be inspected according to the relationship matrix to obtain the mapping coordinate point corresponding to each initial inspection point;

[0011] Calculate the distance from the mapping coordinate point corresponding to any initial patrol point to each plane of the main polyhedron and each plane of each local polyhedron, and use the projection image on the plane corresponding to the minimum distance as the reference image corresponding to the current initial patrol point; construct the image pair corresponding to the current initial patrol point based on the reference image and the real image corresponding to the current initial patrol point; based on the feature matching algorithm, combine the image pair corresponding to the current initial patrol point to obtain the matching matrix corresponding to the current initial patrol point;

[0012] According to the matching matrix corresponding to the current initial patrol point, the rotation angle, scaling factor and translation vector corresponding to the current initial patrol point are obtained;

[0013] If the rotation angle corresponding to the current initial patrol point is not less than the preset angle, the scaling factor is not greater than the preset threshold, and the modulus of the translation vector does not exceed the preset multiple of the modulus of the image diagonal vector, then the current initial patrol point does not need to be optimized; if the rotation angle corresponding to the current initial patrol point is less than the preset angle and / or the scaling factor is greater than the preset threshold and / or the modulus of the translation vector exceeds the preset multiple of the modulus of the image diagonal vector, then the current initial patrol point needs to be optimized;

[0014] Obtaining the rotation angle, scaling factor and translation vector corresponding to each initial patrol point in turn, and judging whether each initial patrol point needs to be optimized, and obtaining each initial patrol point that needs to be optimized;

[0015] The rotation angle, scaling factor, and translation vector corresponding to each initial patrol point that needs to be optimized are adjusted in turn, so as to optimize each initial patrol point that needs to be optimized and obtain the target patrol point.

[0016] Preferably, if the rotation angle corresponding to the current initial patrol point is less than the preset angle, the rotation angle and rotation direction of the mapping coordinate point corresponding to the current initial patrol point are adjusted in the three-dimensional model coordinate system of the object to be patrolled, and the adjustment information of the rotation angle and rotation direction is sent to the UAV flight control center; according to the adjustment information of the rotation angle and rotation direction, the shooting orientation of the camera carried by the UAV at the current initial patrol point is adjusted until the rotation angle corresponding to the updated patrol point is not less than the preset angle, thereby completing the optimization of the shooting orientation of the current initial patrol point.

[0017] Preferably, if the scaling factor corresponding to the current initial patrol point is greater than a preset threshold, then based on the power system safety distance, in the three-dimensional model coordinate system of the object to be patrolled, the mapping coordinate point corresponding to the current initial patrol point is adjusted toward the direction close to the three-dimensional model of the object to be patrolled; if the distance between the mapping coordinate point corresponding to the current initial patrol point and the three-dimensional model of the object to be patrolled is consistent with the power system safety distance, and the scaling factor is still greater than the preset threshold, the focal length of the camera carried by the drone is adjusted, and the mapping coordinate point corresponding to the current initial patrol point or the adjustment information of the camera carried by the drone is sent to the drone flight control center; according to the mapping coordinate point corresponding to the current initial patrol point or the adjustment information of the camera carried by the drone, the position of the current initial patrol point is adjusted until the scaling factor corresponding to the updated patrol point is no greater than the preset threshold, thereby completing the optimization of the position of the current initial patrol point.

[0018] Preferably, if the modulus of the translation vector corresponding to the current initial patrol point exceeds a preset multiple of the modulus of the image diagonal vector, the mapping coordinate point corresponding to the current initial patrol point is adjusted in the horizontal direction, vertical direction, or 45° oblique direction in the three-dimensional model coordinate system of the object to be patrolled, and the adjustment information of the mapping coordinate point corresponding to the current initial patrol point is sent to the UAV flight control center; according to the adjustment information of the mapping coordinate point corresponding to the current initial patrol point, the position of the current initial patrol point is adjusted until the modulus of the translation vector corresponding to the updated patrol point does not exceed the preset multiple of the modulus of the image diagonal vector, thereby completing the optimization of the current initial patrol point in the horizontal direction, vertical direction, or 45° oblique direction.

[0019] Preferably, the main polyhedron of the three-dimensional model of the object to be inspected and the local polyhedrons of the three-dimensional models of each target to be detected include:

[0020] According to the structure of the three-dimensional model of the object to be inspected, the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron is determined; according to the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron, the main polyhedron of the three-dimensional model of the object to be inspected is set; wherein the main polyhedron is a circumscribed regular polyhedron of the three-dimensional model of the object to be inspected, and the main polyhedron has a symmetric characteristic; the number of faces of the main polyhedron is set to be no less than 10;

[0021] According to the structure of the three-dimensional model of the current target to be detected, the distance between the center point of the three-dimensional model of the current target to be detected and each face of the local polyhedron of the three-dimensional model of the current target to be detected is determined; according to the distance between the center point of the three-dimensional model of the current target to be detected and each face of the local polyhedron of the three-dimensional model of the current target to be detected, the local polyhedron of the three-dimensional model of the current target to be detected is set, and the local polyhedrons of the three-dimensional models of the respective targets to be detected are obtained in turn; wherein each local polyhedron is a circumscribed regular polyhedron of each three-dimensional model of the target to be detected, and each local polyhedron has a symmetric characteristic.

[0022] Preferably, determining the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron according to the structure of the three-dimensional model of the object to be inspected comprises:

[0023] When the three-dimensional model of the object to be inspected is a symmetrical structure, the center point of the three-dimensional model of the object to be inspected overlaps with the center point of the main polyhedron, and the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron is the product of half of the maximum value of the normal plane projection of the three-dimensional model in the x, y, and z directions and the sum of the safety distance scale value and the scaling factor;

[0024] When the three-dimensional model of the object to be inspected is an asymmetric structure, the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron is the product of the sum of the radius of the maximum projection circumscribed circle of the three-dimensional model in the normal plane projection in the x, y, and z directions and the safety scale value and the scaling factor.

[0025] Preferably, the determination of the relationship matrix between the three-dimensional model coordinate system of the object to be inspected and the real scene coordinate system of the object to be inspected comprises:

[0026] Based on the principal component analysis method, the first principal direction, the second principal direction and the third principal direction of the three-dimensional model of the object to be inspected and the real scene of the object to be inspected are determined respectively. After the three-dimensional model of the object to be inspected and the main directions of the real scene of the object to be inspected are overlapped one by one, the coordinate and elevation information of the object to be inspected in the real scene of the object to be inspected, the scale and x, y, z direction information of the three-dimensional model of the object to be inspected, and the relationship matrix between the coordinate system of the three-dimensional model of the object to be inspected and the coordinate system of the real scene of the object to be inspected are determined.

[0027] Preferably, the preset angle is 10°, the preset threshold is 0.5, and the preset multiple is 0.3.

[0028] The present invention also provides a target state recognition method, comprising:

[0029] The above-mentioned method for optimizing the autonomous patrol points of the UAV is used to optimize the initial patrol points of the UAV to obtain the target patrol points of the UAV; and the UAV autonomous patrol path is planned according to the target patrol points;

[0030] Using drones, autonomously inspect the objects to be inspected according to the planned autonomous inspection paths of drones, and obtain a set of real images of the objects to be inspected;

[0031] According to the main directions of the three-dimensional model of the object to be inspected, the directions of the coordinate axes of the main polyhedron are determined; based on all the projection images, a reference image set is constructed;

[0032] Obtain a real image corresponding to any target patrol point; obtain a reference image corresponding to the current target patrol point according to a matching matrix corresponding to the current target patrol point; construct a first image pair according to the real image corresponding to the current target patrol point and the reference image;

[0033] Based on the reference image set, find the reference image that is centrally symmetric and axially symmetric with the reference image corresponding to the current target patrol point, and record them as centrally symmetric reference image, XOY axially symmetric reference image, XOZ axially symmetric reference image and YOZ axially symmetric reference image;

[0034] Calculate the distance between the current centrally symmetrical reference image and each mapping coordinate point, and obtain the real image corresponding to the mapping coordinate point closest to the current centrally symmetrical reference image as the real image corresponding to the current centrally symmetrical reference image; construct a second image pair based on the current centrally symmetrical reference image and its corresponding real image; construct a third image pair, a fourth image pair, and a fifth image pair in sequence based on the XOY axis plane symmetrical reference image, the XOZ axis plane symmetrical reference image, and the YOZ axis plane symmetrical reference image; construct a target image pair set corresponding to the current target patrol point based on the first image pair, the second image pair, the third image pair, the fourth image pair, and the fifth image pair; wherein the target image pair set corresponding to the current target patrol point is the minimum image pair set for identifying the state of the target to be detected corresponding to the current target patrol point;

[0035] Input each image pair in the target image pair set corresponding to the current target patrol point into the recognition model in turn, detect the target to be detected corresponding to the current target patrol point, and judge whether the current target to be detected has defects; judge whether each target to be detected has defects in turn.

[0036] Preferably, determining the directions of the coordinate axes of the main polyhedron according to the main directions of the three-dimensional model of the object to be inspected includes:

[0037] Based on the principal component analysis method, the first principal direction, the second principal direction and the third principal direction of the three-dimensional model of the object to be inspected are determined; the first coordinate axis direction of the main polyhedron is consistent with the first principal direction of the three-dimensional model of the object to be inspected; the second coordinate axis direction of the main polyhedron is determined by the plane perpendicular to the first principal direction of the three-dimensional model of the object to be inspected and the second principal direction of the three-dimensional model of the object to be inspected; the third coordinate direction of the main polyhedron is determined by the plane perpendicular to the second principal direction of the three-dimensional model of the object to be inspected and the third principal direction of the three-dimensional model of the object to be inspected.

[0038] The above technical solution of the present invention has the following beneficial effects compared with the prior art:

[0039] The method for optimizing the autonomous patrol points of an unmanned aerial vehicle described in the present invention comprises the following steps: constructing a three-dimensional model of an object to be patrolled and three-dimensional models of each target to be detected; setting a main polyhedron of the three-dimensional model of the object to be patrolled and a local polyhedron of each three-dimensional model of the target to be detected; mapping each initial patrol point to the three-dimensional model of the object to be patrolled according to the relationship between the coordinate system of the three-dimensional model of the object to be patrolled and the coordinate system of the real scene of the object to be patrolled, and obtaining the mapping coordinate points corresponding to each initial patrol point; determining the reference image corresponding to each initial patrol point based on the distance from each mapping coordinate point to each plane of the corresponding polyhedron of the three-dimensional model; constructing each image pair according to the reference image and the real image corresponding to each initial patrol point, and determining each matching matrix; obtaining each initial patrol point according to each matching matrix. The rotation angle, scaling factor and translation vector corresponding to each initial patrol point are determined; whether the rotation angle corresponding to each initial patrol point is not less than the preset angle, whether the scaling factor is not greater than the preset threshold, and whether the modulus of the translation vector does not exceed the preset multiple of the modulus of the image diagonal vector are determined in turn, so as to determine whether each initial patrol point needs to be optimized; if the rotation angle, scaling factor and translation vector corresponding to the current initial patrol point all meet the corresponding preset conditions, then the current initial patrol point does not need to be optimized; if any of the rotation angle, scaling factor and translation vector corresponding to the current initial patrol point does not meet the corresponding preset conditions, then the current initial patrol point needs to be optimized; in the optimization judgment process of each initial patrol point, there is no need to consider the accuracy of the recognition model, which improves the accuracy of the optimization judgment of the patrol point;

[0040] The optimization method of autonomous patrol points of a drone described in the present invention shortens the optimization time of patrol points by quantitatively analyzing the rotation angle, scaling factor and translation vector, avoids the cost of manual trial and error, avoids the deviation between the optimized patrol points and the patrol points actually required, and ensures that the image data obtained according to the optimized patrol points is adapted to the image data actually required;

[0041] A target state recognition method described in the present invention is applied to the above-mentioned optimization method for autonomous patrol points of an unmanned aerial vehicle, and a target image pair set corresponding to the target to be detected at each target patrol point is obtained, and each image pair in each target image pair set is input into the recognition model in turn, and all real images corresponding to the target to be detected are comprehensively analyzed to avoid the situation where the target state cannot be obtained due to occlusion of the target to be detected in a single image, thereby further improving the accuracy of identifying the state of the target to be detected. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:

[0043] Figure 1 This is a flow chart of an optimization method for autonomous patrol points of a drone provided by the present invention;

[0044] Figure 2 It is a flow chart of a target state recognition method provided by the present invention. DETAILED DESCRIPTION

[0045] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0046] Reference Figure 1 As shown, Figure 1 The present invention provides a flowchart of an optimization method for autonomously patrolling points by a drone; specifically, it includes:

[0047] S11: Determine each target to be detected in the object to be inspected; construct a three-dimensional model of the object to be inspected and a three-dimensional model of each target to be detected;

[0048] According to the structure of the three-dimensional model of the object to be inspected, the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron is determined; according to the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron, the main polyhedron of the three-dimensional model of the object to be inspected is set; wherein the main polyhedron is a circumscribed regular polyhedron of the three-dimensional model of the object to be inspected, and the main polyhedron has a symmetric characteristic; in order to ensure that the subsequent projected reference image and the real image can be compared with each other, the number of faces of the main polyhedron is set to be no less than 10;

[0049] According to the structure of the current three-dimensional model of the target to be detected, the distance between the center point of the current three-dimensional model of the target to be detected and each face of the local polyhedron of the current three-dimensional model of the target to be detected is determined; according to the distance between the center point of the current three-dimensional model of the target to be detected and each face of the local polyhedron of the current three-dimensional model of the target to be detected, the local polyhedron of the current three-dimensional model of the target to be detected is set, and the local polyhedrons of the three-dimensional models of the targets to be detected are obtained in turn; wherein each local polyhedron is a circumscribed regular polyhedron of each three-dimensional model of the target to be detected, and each local polyhedron has a symmetric characteristic;

[0050] The step of determining the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron according to the structure of the three-dimensional model of the object to be inspected includes:

[0051] When the three-dimensional model of the object to be inspected is a symmetrical structure, the center point of the three-dimensional model of the object to be inspected overlaps with the center point of the main polyhedron, and the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron is the product of half of the maximum value of the normal plane projection of the three-dimensional model in the x, y, and z directions and the sum of the safety distance scale value and the scaling factor;

[0052] When the three-dimensional model of the object to be inspected is an asymmetric structure, the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron is the product of the sum of the radius of the maximum projection circumscribed circle of the three-dimensional model in the normal plane projection in the x, y, and z directions and the safety dimension value and the scaling factor;

[0053] Among them, when obtaining the local polyhedron, try to use the center point of the three-dimensional model of the target to be detected as the origin for projection, and at the same time, a smaller local polyhedron can be set relative to the main polyhedron, so as to achieve a better projection of the three-dimensional model of the target to be detected; the connection parts in the object to be inspected can be set as the target to be detected;

[0054] In a specific embodiment of the present invention, a three-dimensional model of the object to be inspected and a three-dimensional model of each target to be detected are constructed based on multi-view stereo vision, true colorization of three-dimensional point clouds or based on a designed image and engine system;

[0055] S12: Taking each plane of the polyhedron corresponding to the three-dimensional model as a projection plane, projecting the three-dimensional model to obtain each projection image corresponding to the three-dimensional model of the object to be inspected and each projection image corresponding to the three-dimensional model of each target to be detected;

[0056] Among them, the three-dimensional model of the object to be inspected is projected with each plane of the main polyhedron as the projection surface, and each projection image corresponding to the three-dimensional model of the object to be inspected is obtained; the three-dimensional model of the current target to be detected is projected with each plane of the local polyhedron of any target to be detected as the projection surface, and each projection image corresponding to the three-dimensional model of the current target to be detected is obtained; each projection image corresponding to each three-dimensional model of each target to be detected can be obtained in turn;

[0057] S13: Based on the principal component analysis method, the first main direction, the second main direction and the third main direction of the three-dimensional model of the object to be inspected and the real scene of the object to be inspected are determined respectively, and after the three-dimensional model of the object to be inspected and the main directions of the real scene of the object to be inspected are overlapped one by one, the coordinates and elevation information of the object to be inspected in the real scene of the object to be inspected, the scale and x, y, z direction information of the three-dimensional model of the object to be inspected are combined to determine the relationship matrix between the coordinate system of the three-dimensional model of the object to be inspected and the coordinate system of the real scene of the object to be inspected; according to the relationship matrix, each initial inspection point is mapped to the three-dimensional model of the object to be inspected to obtain the mapping coordinate point corresponding to each initial inspection point;

[0058] S14: Calculate the distance from the mapping coordinate point corresponding to any initial patrol point to each plane of the main polyhedron and each plane of each local polyhedron, and use the projection image on the plane corresponding to the minimum distance as the reference image corresponding to the current initial patrol point; construct an image pair corresponding to the current initial patrol point according to the reference image and the real image corresponding to the current initial patrol point; based on the feature matching algorithm, combine the image pair corresponding to the current initial patrol point to obtain the matching matrix corresponding to the current initial patrol point;

[0059] The matching matrix represents the rotation, translation and scaling relationship between the image pairs; in addition, before calculating the distance from the mapping coordinate point corresponding to any initial patrol point to each plane of the main polyhedron and each plane of the local polyhedron, it is necessary to set the threshold restriction condition according to the real scene of the object to be patrolled; and according to the position and threshold of the mapping coordinate point corresponding to the current initial patrol point, set the calculation range and the selection of the surface;

[0060] In a specific embodiment of the present invention, the restriction condition of the threshold value can be set as a plane within 1 / 3 of the distance from the center point of the main polyhedron to each plane;

[0061] S15: Obtaining the rotation angle, scaling factor, and translation vector corresponding to the current initial patrol point according to the matching matrix corresponding to the current initial patrol point;

[0062] If the rotation angle corresponding to the current initial patrol point is not less than the preset angle, the scaling factor is not greater than the preset threshold, and the modulus of the translation vector does not exceed the preset multiple of the modulus of the image diagonal vector, then the current initial patrol point does not need to be optimized; if the rotation angle corresponding to the current initial patrol point is less than the preset angle and / or the scaling factor is greater than the preset threshold and / or the modulus of the translation vector exceeds the preset multiple of the modulus of the image diagonal vector, then the current initial patrol point needs to be optimized;

[0063] S16: Obtaining the rotation angle, scaling factor, and translation vector corresponding to each initial patrol point in turn, and determining whether each initial patrol point needs to be optimized, thereby obtaining each initial patrol point that needs to be optimized;

[0064] There is a matching matrix between the reference image and the real image in each image pair, matching the target to be detected; if there is too much rotation, translation or scaling in the matching matrix between the reference image and the real image in each image pair, it will result in that effective image data of the target to be detected cannot be obtained in the real image, that is, it is considered that the patrol point corresponding to the real image needs to be optimized, wherein the patrol point optimization includes adjusting the patrol point position and optimizing the shooting orientation of the patrol point;

[0065] S17: Optimize each initial patrol point that needs to be optimized, including:

[0066] If the rotation angle corresponding to the current initial patrol point is less than the preset angle, the rotation angle and rotation direction of the mapping coordinate point corresponding to the current initial patrol point are adjusted in the three-dimensional model coordinate system of the object to be patrolled, and the adjustment information of the rotation angle and rotation direction is sent to the UAV flight control center; according to the adjustment information of the rotation angle and rotation direction, the shooting orientation of the camera carried by the UAV at the current initial patrol point is adjusted until the rotation angle corresponding to the updated patrol point is not less than the preset angle, thereby completing the optimization of the shooting orientation of the current initial patrol point;

[0067] If the scaling factor corresponding to the current initial patrol point is greater than the preset threshold, then based on the power system safety distance, in the three-dimensional model coordinate system of the object to be patrolled, the mapping coordinate point corresponding to the current initial patrol point is adjusted towards the direction of the three-dimensional model of the object to be patrolled; if the distance between the mapping coordinate point corresponding to the current initial patrol point and the three-dimensional model of the object to be patrolled is consistent with the power system safety distance, and the scaling factor is still greater than the preset threshold, the focal length of the camera carried by the drone is adjusted, and the mapping coordinate point corresponding to the current initial patrol point or the adjustment information of the camera carried by the drone is sent to the drone flight control center; according to the mapping coordinate point corresponding to the current initial patrol point or the adjustment information of the camera carried by the drone, the position of the current initial patrol point is adjusted until the scaling factor corresponding to the updated patrol point is not greater than the preset threshold, thereby completing the optimization of the position of the current initial patrol point; wherein, the scaling factor ranges from 1 to 2, and the specific calculation can be determined by the clustering result of the mapping coordinate point corresponding to the current initial patrol point in the three-dimensional model coordinate system, and the clustered density maximum point falls on the polyhedron plane through the scaling factor;

[0068] If the modulus of the translation vector corresponding to the current initial patrol point exceeds the preset multiple of the modulus of the image diagonal vector, then in the coordinate system of the three-dimensional model of the object to be patrolled, the mapping coordinate point corresponding to the current initial patrol point is adjusted in the horizontal direction, vertical direction or 45° oblique direction, and the adjustment information of the mapping coordinate point corresponding to the current initial patrol point is sent to the UAV flight control center; according to the adjustment information of the mapping coordinate point corresponding to the current initial patrol point, the position of the current initial patrol point is adjusted until the modulus of the translation vector corresponding to the updated patrol point does not exceed the preset multiple of the modulus of the image diagonal vector, thereby completing the optimization of the current initial patrol point in the horizontal direction, vertical direction or 45° oblique direction;

[0069] The rotation angle, scaling factor, and translation vector corresponding to each initial patrol point that needs to be optimized are adjusted in turn, so as to optimize each initial patrol point that needs to be optimized and obtain the target patrol point.

[0070] At present, in the process of autonomous patrol of unmanned aerial vehicles, image data of different angles of the same target to be detected will be obtained; a single image independent analysis method is used to analyze these image data, but sometimes the target to be detected can only present part or a single angle in one image. If the single image independent analysis method is used to analyze the acquired image data one by one, the complete or three-dimensional information of the target to be detected cannot be obtained, which affects the accuracy of the recognition model in identifying the state of the target to be detected; and the present invention also provides a target state recognition method after completing the optimization of each initial patrol point that needs to be optimized, which is applied to the above-mentioned optimization method of the autonomous patrol point of an unmanned aerial vehicle; refer to Figure 2 As shown, Figure 2 A flow chart of a target state recognition method provided by the present invention specifically includes:

[0071] S21: optimizing the initial patrol points of the UAV autonomous patrol using the above-mentioned method for optimizing the patrol points of the UAV autonomous patrol to obtain the target patrol points of the UAV; and planning the route of the UAV autonomous patrol according to the target patrol points;

[0072] Using drones, autonomously inspect the objects to be inspected according to the planned autonomous inspection paths of drones, and obtain a set of real images of the objects to be inspected;

[0073] S22: Determine the directions of the coordinate axes of the main polyhedron according to the main directions of the three-dimensional model of the object to be inspected, including:

[0074] Based on the principal component analysis method, the first main direction, the second main direction and the third main direction of the three-dimensional model of the object to be inspected are determined; the first coordinate axis direction of the main polyhedron is consistent with the first main direction of the three-dimensional model of the object to be inspected; the second coordinate axis direction of the main polyhedron is determined by the plane perpendicular to the first main direction of the three-dimensional model of the object to be inspected and the second main direction of the three-dimensional model of the object to be inspected; the third coordinate direction of the main polyhedron is determined by the plane perpendicular to the second main direction of the three-dimensional model of the object to be inspected and the third main direction of the three-dimensional model of the object to be inspected;

[0075] Based on all the projection images, a reference image set is constructed;

[0076] S23: Obtain a real image corresponding to any target patrol point; obtain a reference image corresponding to the current target patrol point according to a matching matrix corresponding to the current target patrol point; construct a first image pair according to the real image corresponding to the current target patrol point and the reference image, recorded as image pair A1;

[0077] S24: Based on the symmetry characteristics of the main polyhedron and each local polyhedron, find a reference image from the reference image set that is centrally symmetric and axially symmetric with the reference image corresponding to the current target patrol point, and record them as the centrally symmetric reference image, the XOY axially symmetric reference image, the XOZ axially symmetric reference image, and the YOZ axially symmetric reference image;

[0078] Calculate the distance between the current centrally symmetrical reference image and each mapping coordinate point, and obtain the real image corresponding to the mapping coordinate point closest to the current centrally symmetrical reference image as the real image corresponding to the current centrally symmetrical reference image; construct a second image pair based on the current centrally symmetrical reference image and its corresponding real image, recorded as image pair A2; based on the XOY axis plane symmetrical reference image, the XOZ axis plane symmetrical reference image, and the YOZ axis plane symmetrical reference image, the third image pair, the fourth image pair, and the fifth image pair can be constructed in sequence, recorded as image pair A3, image pair A4, and image pair A5 respectively; based on the first image pair, the second image pair, the third image pair, the fourth image pair, and the fifth image pair, construct a target image pair set corresponding to the current target patrol point; wherein the target image pair set corresponding to the current target patrol point is the minimum image pair set for identifying the state of the target to be detected corresponding to the current target patrol point; obtain the target image pair set corresponding to each target patrol point in sequence, thereby obtaining the real image set of each target to be detected;

[0079] Among them, there are the following two situations about image pairs:

[0080] Case 1: Due to the limitation of patrol points, image pairs A2, A3, A4, and A5 do not all exist;

[0081] Case 2: Based on the situation that one patrol point corresponds to multiple real images, that is, real images of multiple shooting directions are obtained at the current target patrol point; each target patrol point in the current patrol path is numbered in sequence;

[0082] Assuming that real images of two shooting directions are obtained at the patrol point numbered 2, the real images of the two shooting directions currently obtained are marked in the form of key-value pairs, the key represents the point number of the current target patrol point, and the value represents the shooting direction of the current target patrol point, then the real images corresponding to the current target patrol point can be marked as 2.1 and 2.2 respectively; based on the current target patrol point, the mapping coordinate point corresponding to the current target patrol point and the reference image corresponding to the current target patrol point can be found, so that image pair A2.1 and image pair A2.2 can be constructed;

[0083] Based on case 1 and case 2, all existing image pairs are determined and all existing image pairs are comprehensively considered. For example, the target image pair set corresponding to the current target patrol point includes not only image pair A1, but also image pairs existing in image pairs A2, A3, A4, and A5, and may also include image pairs A2.1 and A2.2.

[0084] Among them, in the process of determining the image pair, for the mapping point coordinates corresponding to the current target patrol point, the orthographic reference image corresponding to the current target patrol point, the central symmetric image of the orthographic reference image corresponding to the current target patrol point, and the three axial plane symmetric images of the orthographic reference image corresponding to the current target patrol point are considered, and based on these five reference images, a reference image set corresponding to the target image pair set corresponding to the current target patrol point is constructed; generally, the reference image set corresponding to the target image pair set corresponding to the current target patrol point can be regarded as a complete image set when the current target to be detected is in the three-dimensional model of the object to be patrolled to achieve a complete / basically complete representation, that is, the target image corresponding to the current target patrol point is constructed. The reference image set corresponding to the pair set should achieve a complete or nearly complete representation of the current target to be detected; in addition, the reference image set corresponding to the target image pair set corresponding to the current target patrol point can be used as the minimum set for effectively representing the current target to be detected in the three-dimensional model of the object to be patrolled, and the range of the set can be expanded when necessary; therefore, in the above process, considering the ideal situation that image pairs A2, A3, A4, and A5 all exist as an analysis consideration, then based on image pairs A1, A2, A3, A4, and A5, a target image pair set corresponding to the current target patrol point is constructed, and the target image pair set corresponding to the current target patrol point is the minimum image pair set for identifying the state of the target to be detected corresponding to the current target patrol point;

[0085] Among them, the real image set corresponding to the target image pair set corresponding to the current target patrol point is used to verify whether the current target patrol point is suitable; the patrol point and the patrol path are set to achieve a complete or nearly complete representation of the current target to be detected in the real image set corresponding to the target image pair set corresponding to the current target patrol point; that is, it can be understood that through a single image or multiple images in the real image set corresponding to the target image pair set corresponding to the current target patrol point, the complete / basic complete information of the target to be detected can be obtained, and then the recognition model can be used to identify the state of the target to be detected corresponding to the current target patrol point;

[0086] S25: inputting each image pair in the target image pair set corresponding to the current target patrol point into the recognition model in sequence, detecting the target to be detected corresponding to the current target patrol point, and judging whether the current target to be detected has defects; judging whether each target to be detected has defects in sequence;

[0087] Among them, if the computing power of the drone is sufficient, the recognition model is set in the drone processor; if the computing power of the drone is insufficient, the real image set of the object to be inspected acquired by the drone is transmitted to the data preprocessing model of the data processing platform of the drone flight control center through the data link for analysis and processing, and the recognition model is set in the data processing platform of the drone flight control center.

[0088] Utilizing the target state recognition method described in S21-S25, a target image pair set corresponding to the target to be detected at each target patrol point is obtained, and each image pair in each target image pair set is input into the recognition model in turn, and all real images corresponding to the target to be detected are comprehensively analyzed to avoid the situation where the target state cannot be obtained due to occlusion of the target to be detected in a single image, thereby further improving the accuracy of identifying the state of the target to be detected.

[0089] In a specific embodiment of the present invention, an insulator string is blocked into two parts, and a drone is used to patrol autonomously to obtain real images related to the current insulator string, and to construct a rated real image set of the insulator string; based on the real image set of the insulator string, each target patrol point related to the current insulator string is determined; based on the matching matrix at each target patrol point, a reference image corresponding to each target patrol point is obtained; based on the reference image and the real image at each target patrol point, each image pair is constructed, and an image pair set is constructed; each image pair in the image pair set is input into the recognition model in turn, and all real images corresponding to the insulator string are comprehensively analyzed. If the recognition model does not report defects, it is considered that the insulator has no defects.

[0090] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. An optimization method for autonomous patrol points of UAVs, It is characterized in that include: Determine each target to be detected among the objects to be inspected; Construct a three-dimensional model of the object to be inspected and a three-dimensional model of each target to be detected; Setting the main polyhedron of the three-dimensional model of the object to be inspected and the local polyhedrons of the three-dimensional models of each target to be detected specifically includes: According to the structure of the three-dimensional model of the object to be inspected, determine the distance between the center point of the three-dimensional model of the object to be inspected and each facet of the main polyhedron; according to the distance between the center point of the three-dimensional model of the object to be inspected and each facet of the main polyhedron, set the main polyhedron of the three-dimensional model of the object to be inspected; wherein the main polyhedron is a circumscribed regular polyhedron of the three-dimensional model of the object to be inspected, and the main polyhedron has a symmetric characteristic; set the number of faces of the main polyhedron to be no less than 10; according to the structure of the three-dimensional model of the current target to be detected, determine the distance between the center point of the three-dimensional model of the current target to be detected and each facet of the local polyhedron of the three-dimensional model of the current target to be detected; according to the distance between the center point of the three-dimensional model of the current target to be detected and each facet of the local polyhedron of the three-dimensional model of the current target to be detected, set the local polyhedron of the three-dimensional model of the current target to be detected, and obtain the local polyhedrons of the three-dimensional models of the respective targets to be detected in turn; wherein each local polyhedron is a circumscribed regular polyhedron of each three-dimensional model of the target to be detected, and each local polyhedron has a symmetric characteristic; The three-dimensional model is projected with each plane of the polyhedron corresponding to the three-dimensional model as a projection plane to obtain each projection image corresponding to the three-dimensional model of the object to be inspected and each projection image corresponding to the three-dimensional model of each target to be detected; Determine a relationship matrix between the coordinate system of the three-dimensional model of the object to be inspected and the coordinate system of the real scene of the object to be inspected; map each initial inspection point to the three-dimensional model of the object to be inspected according to the relationship matrix to obtain a mapping coordinate point corresponding to each initial inspection point; Calculate the distance from the mapping coordinate point corresponding to any initial patrol point to each plane of the main polyhedron and each plane of each local polyhedron, and use the projection image on the plane corresponding to the minimum distance as the reference image corresponding to the current initial patrol point; construct the image pair corresponding to the current initial patrol point based on the reference image and the real image corresponding to the current initial patrol point; based on the feature matching algorithm, combine the image pair corresponding to the current initial patrol point to obtain the matching matrix corresponding to the current initial patrol point; According to the matching matrix corresponding to the current initial patrol point, the rotation angle, scaling factor and translation vector corresponding to the current initial patrol point are obtained; If the rotation angle corresponding to the current initial patrol point is not less than the preset angle, the scaling factor is not greater than the preset threshold, and the modulus of the translation vector does not exceed the preset multiple of the modulus of the image diagonal vector, then the current initial patrol point does not need to be optimized; if the rotation angle corresponding to the current initial patrol point is less than the preset angle and / or the scaling factor is greater than the preset threshold and / or the modulus of the translation vector exceeds the preset multiple of the modulus of the image diagonal vector, then the current initial patrol point needs to be optimized; The rotation angle, scaling factor and translation vector corresponding to each initial patrol point are obtained in turn, and it is determined whether each initial patrol point needs to be optimized, so as to obtain each initial patrol point that needs to be optimized; The rotation angle, scaling factor, and translation vector corresponding to each initial patrol point that needs to be optimized are adjusted in turn, so as to optimize each initial patrol point that needs to be optimized and obtain the target patrol point.

2. According to claim 1, a method for optimizing the autonomous patrol points of a drone, It is characterized in that If the rotation angle corresponding to the current initial patrol point is less than the preset angle, the rotation angle and rotation direction of the mapping coordinate point corresponding to the current initial patrol point are adjusted in the three-dimensional model coordinate system of the object to be patrolled, and the adjustment information of the rotation angle and rotation direction is sent to the UAV flight control center; according to the adjustment information of the rotation angle and rotation direction, the shooting direction of the camera carried by the UAV at the current initial patrol point is adjusted until the rotation angle corresponding to the updated patrol point is not less than the preset angle, thereby completing the optimization of the shooting direction of the current initial patrol point.

3. According to claim 1, a method for optimizing the autonomous patrol points of a drone, It is characterized in that If the scaling factor corresponding to the current initial patrol point is greater than the preset threshold, then based on the power system safety distance, in the coordinate system of the three-dimensional model of the object to be patrolled, the mapping coordinate point corresponding to the current initial patrol point is adjusted towards the direction close to the three-dimensional model of the object to be patrolled; if the distance between the mapping coordinate point corresponding to the current initial patrol point and the three-dimensional model of the object to be patrolled is consistent with the power system safety distance, and the scaling factor is still greater than the preset threshold, the focal length of the camera carried by the UAV is adjusted, and the mapping coordinate point corresponding to the current initial patrol point or the adjustment information of the camera carried by the UAV is sent to the UAV flight control center; according to the mapping coordinate point corresponding to the current initial patrol point or the adjustment information of the camera carried by the UAV, the position of the current initial patrol point is adjusted until the scaling factor corresponding to the updated patrol point is not greater than the preset threshold, thereby completing the optimization of the position of the current initial patrol point.

4. According to claim 1, a method for optimizing the autonomous patrol points of a drone, It is characterized in that If the modulus of the translation vector corresponding to the current initial patrol point exceeds the preset multiple of the modulus of the image diagonal vector, the mapping coordinate point corresponding to the current initial patrol point is adjusted in the horizontal direction, vertical direction, or 45° oblique direction in the three-dimensional model coordinate system of the object to be patrolled, and the adjustment information of the mapping coordinate point corresponding to the current initial patrol point is sent to the UAV flight control center; according to the adjustment information of the mapping coordinate point corresponding to the current initial patrol point, the position of the current initial patrol point is adjusted until the modulus of the translation vector corresponding to the updated patrol point does not exceed the preset multiple of the modulus of the image diagonal vector, thereby completing the optimization of the current initial patrol point in the horizontal direction, vertical direction, or 45° oblique direction.

5. According to claim 1, a method for optimizing the autonomous patrol points of a drone, It is characterized in that Determining the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron according to the structure of the three-dimensional model of the object to be inspected includes: When the three-dimensional model of the object to be inspected is a symmetrical structure, the center point of the three-dimensional model of the object to be inspected overlaps with the center point of the main polyhedron, and the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron is the product of half of the maximum value of the normal plane projection of the three-dimensional model in the x, y, and z directions and the sum of the safety distance scale value and the scaling factor; When the three-dimensional model of the object to be inspected is an asymmetric structure, the distance between the center point of the three-dimensional model of the object to be inspected and each face of the main polyhedron is the product of the sum of the radius of the maximum projection circumscribed circle of the three-dimensional model in the normal plane projection in the x, y, and z directions and the safety scale value and the scaling factor.

6. The optimization method for autonomous patrol points of a drone according to claim 1, It is characterized in that The determination of the relationship matrix between the coordinate system of the three-dimensional model of the object to be inspected and the coordinate system of the real scene of the object to be inspected comprises: Based on the principal component analysis method, the first principal direction, the second principal direction and the third principal direction of the three-dimensional model of the object to be inspected and the real scene of the object to be inspected are determined respectively. After the three-dimensional model of the object to be inspected and the main directions of the real scene of the object to be inspected are overlapped one by one, the coordinate and elevation information of the object to be inspected in the real scene of the object to be inspected, the scale and x, y, z direction information of the three-dimensional model of the object to be inspected, and the relationship matrix between the coordinate system of the three-dimensional model of the object to be inspected and the coordinate system of the real scene of the object to be inspected are determined.

7. The optimization method for autonomous patrol points of a drone according to claim 1, It is characterized in that The preset angle is 10°, the preset threshold is 0.5, and the preset multiple is 0.

3.

8. A method for identifying a target state, It is characterized in that include: Optimizing the initial patrol points of the UAV autonomous patrol using the method for optimizing the patrol points of the UAV autonomous patrol as described in any one of claims 1 to 7 to obtain the target patrol points of the UAV; planning the route of the UAV autonomous patrol according to the target patrol points; Using drones, autonomously inspect the objects to be inspected according to the planned autonomous inspection paths of drones, and obtain a set of real images of the objects to be inspected; According to the main directions of the three-dimensional model of the object to be inspected, the directions of the coordinate axes of the main polyhedron are determined; Based on all the projection images, a reference image set is constructed; Obtain a real image corresponding to any target patrol point; obtain a reference image corresponding to the current target patrol point according to a matching matrix corresponding to the current target patrol point; construct a first image pair according to the real image corresponding to the current target patrol point and the reference image; Based on the reference image set, find the reference image that is centrally symmetric and axially symmetric with the reference image corresponding to the current target patrol point, and record them as centrally symmetric reference image, XOY axially symmetric reference image, XOZ axially symmetric reference image and YOZ axially symmetric reference image; Calculate the distance between the current centrosymmetric reference image and each mapping coordinate point, and obtain the real image corresponding to the mapping coordinate point closest to the current centrosymmetric reference image as the real image corresponding to the current centrosymmetric reference image; Based on the current central symmetric reference image and its corresponding real image, a second image pair is constructed; based on the XOY axis plane symmetric reference image, the XOZ axis plane symmetric reference image, and the YOZ axis plane symmetric reference image, a third image pair, a fourth image pair, and a fifth image pair can be constructed in sequence; based on the first image pair, the second image pair, the third image pair, the fourth image pair, and the fifth image pair, a target image pair set corresponding to the current target patrol point is constructed; wherein the target image pair set corresponding to the current target patrol point is the minimum image pair set for identifying the state of the target to be detected corresponding to the current target patrol point; Input each image pair in the target image pair set corresponding to the current target patrol point into the recognition model in turn, detect the target to be detected corresponding to the current target patrol point, and judge whether the current target to be detected has defects; judge whether each target to be detected has defects in turn.

9. A target state recognition method according to claim 8, It is characterized in that Determining the directions of the coordinate axes of the main polyhedron according to the main directions of the three-dimensional model of the object to be inspected includes: Based on the principal component analysis method, the first principal direction, the second principal direction and the third principal direction of the three-dimensional model of the object to be inspected are determined; the first coordinate axis direction of the main polyhedron is consistent with the first principal direction of the three-dimensional model of the object to be inspected; the second coordinate axis direction of the main polyhedron is determined by the plane perpendicular to the first principal direction of the three-dimensional model of the object to be inspected and the second principal direction of the three-dimensional model of the object to be inspected; the third coordinate direction of the main polyhedron is determined by the plane perpendicular to the second principal direction of the three-dimensional model of the object to be inspected and the third principal direction of the three-dimensional model of the object to be inspected.