A power transmission line clearance distance measuring method and system based on multi-view binocular vision

By adaptively selecting the acquisition mode using multi-view binocular vision technology, combined with stereo matching and point cloud conversion, the problems of fixed viewing angle and insufficient dynamic scene processing in power transmission line clearance ranging are solved, achieving higher ranging flexibility and reliability.

CN123175152APending Publication Date: 2026-11-27HUNAN DINGYIYUAN TECH DEV CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611100282.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-23
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for distance measurement over power transmission lines suffer from problems such as low monocular depth estimation accuracy, high cost of lidar, inability to take into account the spatial relationship between conductors and ground features when using fixed-viewpoint layouts, insufficient dynamic scene processing, and difficulty in balancing accuracy, cost, and real-time performance in system design, resulting in insufficient distance measurement stability and accuracy.

Method used

A multi-view binocular vision method is adopted, which adaptively selects the binocular vision acquisition mode according to the preset inspection task. The binocular camera synchronously acquires images for stereo matching and point cloud conversion, segments the power line and ground object point clouds, calculates the clearance distance, and combines deep learning and temporal filtering technology to improve measurement stability.

Benefits of technology

It improves the flexibility and reliability of distance measurement over power transmission lines, solves the problem of insufficient distance measurement stability of fixed-viewpoint systems in complex scenarios, and enhances the accuracy and adaptability of distance measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175152A_ABST
    Figure CN123175152A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on multi-view binocular vision transmission line clearance ranging method and system, comprising: according to the corresponding binocular vision acquisition mode of pre-set inspection task;According to binocular vision acquisition mode, corresponding binocular camera is synchronously triggered to collect the binocular image of transmission line and underlying feature;Stereo matching is carried out to binocular image, and original three-dimensional point cloud data is generated;Original three-dimensional point cloud data is converted into target three-dimensional point cloud data under world coordinate system based on the current pose information of unmanned aerial vehicle;Transmission line point cloud and feature point cloud are segmented from target three-dimensional point cloud data, and the minimum spatial distance between transmission line point cloud and feature point cloud is determined as clearance distance;According to the comparison result of clearance distance and safety threshold, output risk prompt.The application solves the problem that fixed-view binocular system is difficult to consider the spatial relationship of conductor and feature, and the stability of ranging is insufficient under complex scene, and improves the flexibility and reliability of transmission line clearance ranging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power transmission line operation and maintenance technology, and in particular to a method and system for measuring the clearance distance of power transmission lines based on multi-view binocular vision. Background Technology

[0002] During the operation and maintenance of power transmission lines, vegetation, buildings, or other external objects beneath the lines may grow too close to the conductors due to factors such as growth, wind, and mechanical construction, causing significant safety hazards such as discharge and tripping. To ensure the safe operation of the lines, it is necessary to regularly measure the clearance distance between the power transmission lines and the objects beneath them. With the development of drone technology, visual measurement methods based on drone platforms have become an important means of power transmission line inspection due to their high flexibility and wide coverage. However, existing technologies still have significant shortcomings in terms of measurement accuracy, scene adaptability, and system integration.

[0003] Currently, various solutions have been attempted for power facility measurement and inspection using UAV vision technology. General high-precision 3D measurement methods primarily rely on rigorous photogrammetry procedures, employing lens distortion correction, spatial resection to calculate exterior orientation elements, and forward intersection to calculate 3D coordinates, achieving high-precision size and distance measurement of nearby targets. However, these methods are designed for general engineering inspection scenarios and are not optimized for the specific application of transmission line clearance distance measurement. They lack automatic identification and segmentation processes for specific targets such as conductors and vegetation, and do not consider the perspective obstruction issues caused by diverse flight modes during inspections, making them difficult to directly apply to complex transmission line environments.

[0004] Dedicated methods for detecting safe distances to power lines have established a technological chain for power applications. This involves matching binocular images with GPS data to generate a 3D point cloud, using deep learning algorithms for semantic segmentation to extract the power line point cloud, fitting sag equations to build a 3D model of the line, and then calculating the safe distance using the plumb line method. While such solutions achieve automated detection, they often employ single-viewpoint binocular systems. When handling tasks such as oblique-view inspections by drones from the side of the line, they struggle to simultaneously and clearly image both distant conductors and nearby ground features. Limited viewpoints can lead to difficulties in feature matching or measurement blind spots, resulting in insufficient scene adaptability. Furthermore, this method lacks specific data fusion and filtering mechanisms designed for dynamic scenarios such as swaying vegetation, leading to significant instantaneous fluctuations in measurement results under dynamic conditions.

[0005] Furthermore, binocular vision technology has also been applied to the monitoring of the physical condition of transmission lines, such as ice thickness. These applications demonstrate the effectiveness of binocular vision in power line inspection. However, the technology focuses on detecting the physical condition of the transmission line itself, rather than measuring the spatial relationship between the line and the ground features below. The system architecture also employs a single perspective, without addressing the need for a configurable multi-view layout designed to simultaneously capture the conductor and the panoramic view below. Related academic research has proposed an automatic inspection system with fixed deployment of both upward and downward cameras for conductor tracking and ground feature identification, respectively. However, this system uses a fixed, task-bound dual-view hardware layout, which essentially fails to address the need for flexible sensor configuration due to the diversity of inspection tasks. Moreover, the use of plumb lines for clearance measurement may limit accuracy in complex, non-horizontal terrain. Similarly, no corresponding data processing mechanisms have been designed to improve measurement stability for dynamic scenarios such as swaying vegetation.

[0006] In summary, existing technical solutions have the following limitations: First, monocular vision or laser ranging methods suffer from low depth estimation accuracy, while lidar solutions are costly and unable to cover large areas. Second, existing binocular vision ranging solutions mostly use fixed-viewpoint arrangements, which cannot flexibly consider the vertical and lateral spatial relationships between guide lines and ground features according to the inspection task, resulting in insufficient ranging stability under conditions such as field-of-view obstruction and depth matching degradation. Third, most solutions lack specific processing for dynamic targets below the line, such as swaying vegetation, making measurement data susceptible to interference and affecting the accuracy of risk assessment. Fourth, the system design fails to coordinate and optimize flexible sensor configuration, real-time edge processing, and cloud-based intelligent management, making it difficult to achieve the best balance between accuracy, cost, real-time performance, and adaptability.

[0007] Therefore, there is an urgent need to provide a technical solution to address the above problems. Summary of the Invention

[0008] To address the aforementioned technical problems, this invention provides a method and system for measuring the clearance distance of transmission lines based on multi-view binocular vision.

[0009] In a first aspect, the present invention provides a method for measuring the clearance distance of transmission lines based on multi-view binocular vision, the technical solution of which is as follows: Based on the preset inspection tasks, determine the corresponding binocular vision acquisition mode; According to the binocular vision acquisition mode, the corresponding binocular camera is synchronously triggered to acquire binocular images of the power transmission line and the ground features below it. Stereo matching is performed on the binocular images to generate raw 3D point cloud data; Based on the current pose information of the UAV, the original 3D point cloud data is converted to the world coordinate system to obtain the target 3D point cloud data in the world coordinate system. The power line point cloud and the ground feature point cloud are segmented from the target three-dimensional point cloud data, and the minimum spatial distance between the power line point cloud and the ground feature point cloud is determined as the clearance distance. Based on the comparison between the clearance distance and the preset safety threshold, a risk warning message is output.

[0010] The beneficial effects of the transmission line clearance distance measurement method based on multi-view binocular vision of the present invention are as follows: The method of this invention adaptively determines the binocular vision acquisition mode according to the preset inspection task and simultaneously triggers the corresponding binocular camera to acquire images of the transmission line and the ground features below. Combined with stereo matching and point cloud coordinate transformation technology, it realizes the three-dimensional spatial segmentation of the transmission line and the ground features and the minimum distance calculation. It solves the problems that fixed-view binocular systems have difficulty taking into account the spatial relationship between the conductor and the ground features and the insufficient distance measurement stability in complex scenes, thus improving the flexibility and reliability of the clearance distance measurement of the transmission line.

[0011] Based on the above scheme, the transmission line clearance distance measurement method based on multi-view binocular vision of the present invention can be further improved as follows.

[0012] In one optional approach, the step of determining the corresponding binocular vision acquisition mode based on a preset inspection task includes: Obtain the terrain complexity information and measurement accuracy requirement information of the inspection area corresponding to the preset inspection task; Based on the terrain complexity information and the measurement accuracy requirement information, determine whether the inspection area belongs to a high-precision complex measurement scenario, and obtain the judgment result; When the judgment result is yes, the binocular vision acquisition mode is determined to be an upward and downward binocular acquisition mode; when the judgment result is no, the binocular vision acquisition mode is determined to be a side-view binocular acquisition mode.

[0013] The beneficial effects of adopting the above-mentioned optional methods are as follows: by adaptively selecting the binocular vision acquisition mode based on the terrain complexity and measurement accuracy requirements, the top and bottom binocular acquisition mode can cope with high-precision complex scenarios, while the side-view binocular acquisition mode can meet the needs of routine inspections, thereby improving the scene adaptability and measurement flexibility.

[0014] In one optional approach, the step of synchronously triggering the corresponding binocular camera to acquire binocular images of the power transmission line and the ground features below, according to the binocular vision acquisition mode, includes: When the binocular vision acquisition mode is the top-down binocular acquisition mode, the upper binocular camera installed on the UAV is triggered so that the upper binocular camera can acquire binocular images of the power transmission line, and the lower binocular camera installed on the UAV is triggered so that the lower binocular camera can acquire binocular images of the ground features below. When the binocular vision acquisition mode is the side-view binocular acquisition mode, the side-view binocular camera installed on the UAV is triggered so that the side-view binocular camera can simultaneously acquire binocular images containing the power transmission line and the ground features below.

[0015] The beneficial effects of adopting the above optional methods are as follows: further, based on the selected binocular vision acquisition mode, the corresponding binocular camera is triggered synchronously, so that the upper and lower binocular cameras respectively acquire images of the power transmission line and the ground features below, or the side binocular camera synchronously acquires the complete scene, ensuring the integrity and synchronization of data acquisition.

[0016] In one alternative approach, the step of performing stereo matching on the binocular images to generate raw 3D point cloud data includes: The binocular images are subjected to distortion correction and epipolar correction to obtain corrected binocular images. Stereo matching is performed on the corrected binocular images to generate a disparity map; Based on the disparity map and the intrinsic parameters of the binocular camera that acquired the binocular images, the depth value corresponding to each pixel is calculated using the triangulation principle to generate a depth map; Each pixel in the depth map is back-projected into three-dimensional space to generate the original three-dimensional point cloud data.

[0017] The advantages of using the above-mentioned optional method are as follows: after further performing distortion correction and epipolar correction on the binocular images, stereo matching is implemented, and the depth value is calculated through the disparity map and intrinsic parameters and back-projected to the three-dimensional space to generate the original three-dimensional point cloud data, which provides an accurate three-dimensional spatial information basis for subsequent clearance calculation.

[0018] In one alternative approach, the step of converting the original 3D point cloud data to a world coordinate system based on the current pose information of the UAV to obtain the target 3D point cloud data in the world coordinate system includes: The current pose information of the UAV is obtained, which includes the position data and attitude data of the UAV in the world coordinate system. Obtain the pre-calibrated transformation matrix corresponding to the binocular camera that acquired the binocular images. The transformation matrix is ​​used to transform the point cloud data in the camera coordinate system to the UAV body coordinate system. Construct a first transformation matrix from the UAV body coordinate system to the world coordinate system based on the current pose information; Based on the transformation matrix and the first transformation matrix, construct a second transformation matrix from the camera coordinate system to the world coordinate system; The original three-dimensional point cloud data is transformed using the second transformation matrix to obtain the target three-dimensional point cloud data in the world coordinate system.

[0019] The advantages of adopting the above-mentioned optional method are: by further combining the UAV pose information with the pre-calibrated transformation matrix, a transformation matrix from the camera coordinate system to the world coordinate system is constructed, and the original 3D point cloud data is uniformly transformed to the world coordinate system, so as to realize the accurate fusion and alignment of multi-view acquired data in the spatial dimension.

[0020] In one alternative approach, the step of segmenting the power line point cloud and the ground feature point cloud from the target 3D point cloud data, and determining the minimum spatial distance between the power line point cloud and the ground feature point cloud as the clearance distance, includes: The target 3D point cloud data is subjected to outlier removal and downsampling processing to obtain preprocessed target 3D point cloud data; Based on a deep learning semantic segmentation model or a point cloud clustering algorithm, and combining the color and spatial features of the point cloud, the power transmission line point cloud and the ground feature point cloud are segmented from the preprocessed target 3D point cloud data. Construct a KD-Tree spatial index for the aforementioned ground feature point cloud; Traverse each point in the power transmission line point cloud, search for the nearest neighbor in the ground feature point cloud using the KD-Tree spatial index, record the distance between each nearest neighbor and the current traversed point, and determine the minimum value among all recorded distances as the initial clearance distance. The initial clearance distance generated from the binocular images acquired in multiple consecutive frames is subjected to temporal filtering to obtain the clearance distance.

[0021] The beneficial effects of adopting the above optional methods are as follows: after further preprocessing the target 3D point cloud data, the transmission line point cloud and ground feature point cloud are segmented based on deep learning or clustering algorithms, the minimum distance is calculated by searching for nearest neighbor points using KD-Tree index, and the results are stabilized by time-series filtering, thereby improving the accuracy of the clearance distance calculation.

[0022] In one optional approach, the step of outputting risk warning information based on a comparison between the clearance distance and a preset safety threshold includes: The clearance distance is compared with the preset safety threshold to obtain the comparison result; Based on the comparison results, determine whether the clearance distance is less than the preset safety threshold; When the clearance distance is less than the preset safety threshold, the duration of the clearance distance being less than the preset safety threshold is counted, and it is determined whether the duration exceeds the preset duration. When the duration exceeds the preset duration, the risk warning information is generated, which includes the airspace distance, the current location information of the drone, and the current timestamp. The risk warning information will be sent to the cloud server.

[0023] The advantages of adopting the above optional method are: further comparing the clearance distance with the preset safety threshold, generating risk warning information including location and timestamp when the duration exceeds the preset duration and sending it to the cloud, avoiding misjudgment caused by instantaneous interference and improving the reliability of risk warning.

[0024] Secondly, the present invention provides a transmission line clearance ranging system based on multi-view binocular vision, the technical solution of which is as follows: The determination module is used to determine the corresponding binocular vision acquisition mode based on the preset inspection task; The acquisition module is used to synchronously trigger the corresponding binocular camera to acquire binocular images of the power transmission line and the ground features below it according to the binocular vision acquisition mode. The matching module is used to perform stereo matching on the binocular images to generate original three-dimensional point cloud data; The conversion module is used to convert the original 3D point cloud data to the world coordinate system based on the current pose information of the UAV, so as to obtain the target 3D point cloud data in the world coordinate system. The calculation module is used to segment the power transmission line point cloud and the ground feature point cloud from the target three-dimensional point cloud data, and to determine the minimum spatial distance between the power transmission line point cloud and the ground feature point cloud as the clearance distance. The output module is used to output risk warning information based on the comparison result between the clearance distance and the preset safety threshold.

[0025] The beneficial effects of the transmission line clearance distance measurement system based on multi-view binocular vision of the present invention are as follows: The system of this invention adaptively determines the binocular vision acquisition mode according to the preset inspection task and simultaneously triggers the corresponding binocular camera to acquire images of the transmission line and the ground features below. Combined with stereo matching and point cloud coordinate transformation technology, it realizes the three-dimensional spatial segmentation of the transmission line and the ground features and the minimum distance calculation. It solves the problems that fixed-view binocular systems have difficulty taking into account the spatial relationship between the conductor and the ground features and the insufficient distance measurement stability in complex scenes, thus improving the flexibility and reliability of the clearance distance measurement of the transmission line.

[0026] Thirdly, the technical solution of an electronic device according to the present invention is as follows: It includes a memory, a processor, and a program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of the transmission line clearance distance measurement method based on multi-view binocular vision of the present invention.

[0027] Fourthly, the technical solution of a computer-readable storage medium provided by the present invention is as follows: The computer-readable storage medium stores instructions that, when read, cause the computer-readable storage medium to perform the steps of the transmission line clearance distance measurement method based on multi-view binocular vision of the present invention.

[0028] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0029] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a flowchart illustrating an embodiment of a transmission line clearance distance measurement method based on multi-view binocular vision according to the present invention. Figure 2 This is a schematic diagram of a layered architecture; Figure 3 This is a schematic diagram illustrating the design concept. Figure 4 This is a schematic diagram of the flight mode; Figure 5 This is a schematic diagram of an embodiment of a transmission line clearance ranging system based on multi-view binocular vision according to the present invention. Figure 6 This is a schematic diagram of an embodiment of an electronic device according to the present invention. Detailed Implementation

[0030] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0031] Figure 1This diagram illustrates a flowchart of an embodiment of a transmission line clearance measurement method based on multi-view binocular vision provided by the present invention. This method can be executed by electronic devices such as terminal devices or servers. The terminal device can be any fixed or mobile terminal, such as user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, vehicle-mounted device, or wearable device. The server can be a single server or a server cluster consisting of multiple servers. Any electronic device can implement the transmission line clearance measurement method based on multi-view binocular vision by having its processor call computer-readable instructions stored in its memory. Figure 1 As shown, it includes the following steps: S1. Determine the corresponding binocular vision acquisition mode based on the preset inspection task.

[0032] Among them, the pre-set inspection task refers to a pre-defined work plan for inspecting a specific section of a power transmission line using drones. This plan includes information such as the inspection area, route, time, target, and accuracy requirements. For example, a pre-set task by maintenance personnel for an inspection of a section of a 500 kV power transmission line between towers 10 and 20 in a mountainous area. The binocular vision acquisition mode refers to different binocular camera layouts and operating methods selected to effectively acquire images of the power transmission line and the terrain below, based on the requirements of the inspection task. For example, in this mountainous power transmission line inspection task, given the complex terrain and the need for high-precision measurements, a top-and-bottom binocular acquisition mode was selected and determined.

[0033] S2. According to the binocular vision acquisition mode, the corresponding binocular camera is synchronously triggered to acquire binocular images of the power transmission line and the ground objects below.

[0034] In this context, "binocular camera" refers to an imaging device mounted on a drone, consisting of two lenses that simultaneously acquire images. It obtains scene depth information by simulating the parallax principle of the human eye. For example, in the top-and-bottom binocular acquisition mode, both the upper and lower binocular cameras mounted on the drone are binocular cameras. "Transmission line" refers to an overhead line used to transmit electrical energy, mainly including conductors, towers, insulators, and other components. For example, the conductors erected between towers 10 and 20 are the transmission line that needs to be measured in this inspection. "Ground features" refers to objects located beneath transmission lines that may pose a threat to the safe operation of the line, including vegetation, buildings, and construction machinery. For example, the bamboo forest growing beneath the mountain line in this inspection is a ground feature that needs to be measured. "Binocular image" refers to a pair of images simultaneously acquired by the left and right lenses of a binocular camera at the same time. For example, the pair of left and right views containing the transmission line conductors acquired by the upper binocular camera on the drone are binocular images.

[0035] S3. Perform stereo matching on the binocular images to generate original three-dimensional point cloud data.

[0036] Stereo matching refers to the process of finding corresponding points and calculating disparity in the left and right images of a stereo camera. For example, in stereo images of a power transmission line captured by the above stereo camera, an algorithm is used to find the same point on the corresponding conductor in both the left and right images, completing stereo matching. The original 3D point cloud data refers to the set of 3D points in space, based on the camera coordinate system, generated after calculating and transforming the disparity information obtained through stereo matching. For example, after performing stereo matching and depth calculation on the stereo images of the power transmission line captured by the above stereo camera, a set of 3D coordinate points with the camera as the origin is generated; these coordinate points constitute the original 3D point cloud data.

[0037] S4. Based on the current pose information of the UAV, the original three-dimensional point cloud data is converted to the world coordinate system to obtain the target three-dimensional point cloud data in the world coordinate system.

[0038] Here, "UAV" refers to an unmanned aerial vehicle equipped with binocular cameras, edge computing units, and other devices, which flies along a preset route to perform power transmission line inspection tasks. For example, a certain type of industrial UAV performing this mountain power line inspection task. Current pose information refers to the UAV's position and attitude data at the current moment, including longitude, latitude, altitude, roll angle, pitch angle, and yaw angle. For example, when the UAV is collecting images near tower number 12, the precise 3D coordinates output by the GPS-RTK module and the attitude angles measured by the IMU. World coordinate system refers to a fixed, absolute spatial reference coordinate system used to uniformly describe the geographical location of the UAV, power transmission lines, and underlying features. For example, the WGS-84 coordinate system, established based on the Earth ellipsoid model, serves as a spatial reference framework to unify data from different sources. Target 3D point cloud data refers to the 3D point cloud obtained by transforming the original 3D point cloud data to the world coordinate system. For example, the raw 3D point cloud data generated by the binocular camera above, combined with the current pose information of the UAV, can be converted to the WGS-84 coordinate system to obtain the target 3D point cloud data, which is a set of 3D points with absolute geographic coordinates.

[0039] S5. Segment the power transmission line point cloud and the ground feature point cloud from the target three-dimensional point cloud data, and determine the minimum spatial distance between the power transmission line point cloud and the ground feature point cloud as the clearance distance.

[0040] The transmission line point cloud refers to the set of all three-dimensional points belonging to the transmission line conductors, segmented from the target three-dimensional point cloud data. For example, the three-dimensional points representing the conductors near tower 12, identified and extracted by an algorithm from the target three-dimensional point cloud data in the WGS-84 coordinate system, constitute the transmission line point cloud. The ground feature point cloud refers to the set of all three-dimensional points belonging to the ground features below, segmented from the target three-dimensional point cloud data. For example, the three-dimensional points representing the bamboo forest below the conductors, segmented from the same target three-dimensional point cloud data, constitute the ground feature point cloud. Minimum spatial distance refers to the minimum distance between all point pairs between two point sets in three-dimensional space. For example, the minimum straight-line distance between each conductor point and each bamboo point in the transmission line point cloud and ground feature point cloud is called the minimum spatial distance. Clearance distance refers to the minimum spatial distance between the transmission line and the ground features below, a key indicator for assessing the safety risks of line operation. For example, the calculated minimum spatial distance of 2.8m between the lowest point of the conductor and the highest bamboo shoot below is the clearance distance at the current moment.

[0041] S6. Based on the comparison result between the clearance distance and the preset safety threshold, output risk warning information.

[0042] The preset safety threshold refers to the minimum allowable distance value pre-set according to power industry standards to determine whether the clearance distance is safe. For example, according to relevant regulations, the minimum allowable distance between a 500 kV transmission line and vegetation is 5.5 m, and the preset safety threshold is set to 5.5 m. The comparison result refers to the information obtained by comparing the calculated clearance distance with the preset safety threshold. For example, comparing a clearance distance of 2.8 m with the 5.5 m safety threshold yields a comparison result of "clearance distance less than the safety threshold". The risk warning information refers to the alarm notification generated by the system to alert maintenance personnel when the clearance distance is less than the preset safety threshold. For example, the system outputs the text and location information such as "Clearance distance under the large-side conductor of tower No. 12 is 2.8 m, lower than the 5.5 m safety threshold, posing a risk of discharge".

[0043] The technical solution of this embodiment adaptively determines the binocular vision acquisition mode according to the preset inspection task and simultaneously triggers the corresponding binocular camera to acquire images of the transmission line and the ground features below. Combined with stereo matching and point cloud coordinate transformation technology, it realizes the three-dimensional spatial segmentation of the transmission line and the ground features and the minimum distance calculation. This solves the problem that fixed-view binocular systems have difficulty taking into account the spatial relationship between the conductor and the ground features and the problem of insufficient distance measurement stability in complex scenes, thus improving the flexibility and reliability of the distance measurement of the transmission line clearance.

[0044] In one alternative approach, S1 specifically includes: Obtain the terrain complexity information and measurement accuracy requirements of the inspection area corresponding to the preset inspection task.

[0045] The inspection area refers to the specific geographical area designated in the pre-set inspection task for which inspection work needs to be performed. For example, the line corridor area between towers 10 and 20 of a mountainous transmission line. Terrain complexity information refers to data describing the undulations and complexity of the terrain features within the inspection area. For example, in this mountainous line area, the terrain complexity is marked as "high" due to the high mountains, deep valleys, and steep slopes. Measurement accuracy requirements refer to the accuracy requirements of the clearance distance measurement results for the inspection task. For example, for important transmission lines, maintenance personnel require a high accuracy of no more than 20cm in measurement error.

[0046] Based on the terrain complexity information and the measurement accuracy requirement information, it is determined whether the inspection area belongs to a high-precision complex measurement scenario, and the judgment result is obtained.

[0047] Among them, high-precision complex measurement scenarios refer to inspection environments with complex terrain and high measurement accuracy requirements. For example, mountainous sections of railway lines with high mountains and deep valleys that require high-precision measurements are identified as high-precision complex measurement scenarios.

[0048] When the judgment result is yes, the binocular vision acquisition mode is determined to be an upward and downward binocular acquisition mode; when the judgment result is no, the binocular vision acquisition mode is determined to be a side-view binocular acquisition mode.

[0049] The top-down binocular acquisition mode refers to a visual acquisition method that simultaneously deploys an upper-view binocular camera and a lower-view binocular camera on the drone to acquire images of the guide wire and the ground features below, respectively. For example, in high-precision and complex measurement scenarios, this mode can be used to simultaneously trigger the upper camera to capture images of the guide wire and the lower camera to capture images of the bamboo forest. The side-view binocular acquisition mode refers to a visual acquisition method that deploys a single side-view binocular camera on the drone to simultaneously acquire images of the guide wire and the ground features below from the side. For example, during routine inspections of a flat plain route, this mode can be used to simultaneously capture images of the guide wire and the farmland below from the side of the route.

[0050] Among the above-mentioned optional methods, the binocular vision acquisition mode can be adaptively selected based on the terrain complexity and measurement accuracy requirements. This allows the top-down binocular acquisition mode to handle high-precision and complex scenarios, while the side-view binocular acquisition mode meets routine inspection needs, thereby improving scene adaptability and measurement flexibility.

[0051] In one alternative approach, S2 specifically includes: When the binocular vision acquisition mode is the top-down binocular acquisition mode, the upper binocular camera installed on the UAV is triggered to acquire binocular images of the power transmission line, and the lower binocular camera installed on the UAV is triggered at the same time to acquire binocular images of the ground features below.

[0052] The term "upper-view binocular camera" refers to a binocular camera mounted on top of the drone in vertical binocular acquisition mode, with its lens facing the power transmission line, specifically designed for capturing images of power lines. For example, in mountainous inspection missions, a binocular camera with a 12cm baseline, mounted on the top gimbal of the drone, is used to photograph power lines. The term "lower-view binocular camera" refers to a binocular camera mounted below the drone in vertical binocular acquisition mode, with its lens facing the ground, specifically designed for capturing images of features below. For example, in mountainous inspection missions, a wide-angle binocular camera, triggered synchronously with the upper-view camera and mounted on the bottom of the drone, is used to photograph bamboo forests below.

[0053] When the binocular vision acquisition mode is the side-view binocular acquisition mode, the side-view binocular camera installed on the UAV is triggered so that the side-view binocular camera can simultaneously acquire binocular images containing the power transmission line and the ground features below.

[0054] Among them, a side-view binocular camera refers to a binocular camera mounted on the side of a drone's gimbal in side-view binocular acquisition mode, which simultaneously covers the view of the guide wire and the ground features below at a certain tilt angle. For example, in the inspection of plains lines, a binocular camera mounted on the lower side of the drone, with its pitch angle adjusted to 45 degrees, can simultaneously capture images of distant guide wires and nearby farmland.

[0055] In the above-mentioned optional methods, the corresponding binocular cameras are further triggered synchronously according to the selected binocular vision acquisition mode, so that the upper and lower binocular cameras respectively acquire images of the power transmission line and the ground features below, or the side binocular cameras simultaneously acquire the complete scene, ensuring the integrity and synchronization of data acquisition.

[0056] In one alternative approach, S3 specifically includes: The binocular images are subjected to distortion correction and epipolar correction to obtain corrected binocular images.

[0057] Distortion correction refers to the process of mathematically transforming the original binocular image based on the distortion coefficients obtained from camera intrinsic calibration to eliminate lens optical distortion. For example, the original traverse image captured by the binocular camera above is corrected by applying pre-calibrated radial and tangential distortion coefficients k1, k2, p1, and p2 to restore straight lines in the image. Epipolar correction refers to the process of reprojecting the distortion-corrected binocular image to align the epipolar lines of the left and right images on the same horizontal line, thereby reducing the search range for stereo matching from two dimensions to one dimension. For example, epipolar correction is performed on the left and right views of the corrected traverse, ensuring that any point on the left image will have a corresponding point on the right image in the same row of pixels. The corrected binocular image refers to the binocular image after distortion correction and epipolar correction. For example, the traverse image with aligned rows on the left and right images after the above two steps is the corrected binocular image.

[0058] Stereo matching is performed on the corrected binocular images to generate a disparity map.

[0059] A disparity map is an image that records the horizontal disparity between each pixel in a binocular image and its corresponding point. For example, after performing stereo matching on a corrected binocular image of a traverse line, a grayscale image is generated, where the grayscale value of each pixel represents the difference in horizontal position between that point and its corresponding point in the right image.

[0060] Based on the disparity map and the intrinsic parameters of the binocular camera that acquired the binocular images, the depth value corresponding to each pixel is calculated using the triangulation principle to generate a depth map.

[0061] Intrinsic parameters refer to parameters that describe the optical and geometric characteristics of the binocular camera itself, including focal length, principal point coordinates, and distortion coefficients. For example, the intrinsic parameters of the binocular camera above include the left eye focal length f. x 1200 pixels, f y =1200 pixels, principal point coordinates c x =640 pixels, c y =512 pixels, and radial distortion coefficients k1, k2 and tangential distortion coefficients p1, p2. The principle of triangulation refers to the method of using two cameras at known positions to observe the same target point, and calculating the three-dimensional coordinates of the target point based on parallax and baseline length using trigonometric relationships. For example, based on the 12cm distance between the left and right eyes of the upper binocular camera and the calculated parallax value, the depth information of the traverse point can be calculated using the similar triangle formula. The depth value corresponding to a pixel refers to the distance from the point to the camera calculated for each pixel in the binocular image, based on the parallax map and camera intrinsic parameters. For example, in a traverse image, a pixel located at the edge of the traverse has a calculated depth value of 15m. A depth map is an image that records the depth value corresponding to each pixel in the binocular image. For example, in an image generated from a traverse binocular image, the grayscale value of each pixel represents the distance from the camera; the closer the distance, the higher the brightness.

[0062] Each pixel in the depth map is back-projected into three-dimensional space to generate the original three-dimensional point cloud data.

[0063] Back projection refers to the process of reconstructing a three-dimensional point from a two-dimensional pixel on an image plane using the inverse process of camera imaging, combined with its depth value. For example, by using the coordinates and depth values ​​of a guideline pixel in the depth map and inversely calculating the camera's intrinsic parameter matrix, the three-dimensional coordinates (x, y, z) of that point in the camera coordinate system can be obtained. Three-dimensional space refers to a solid space with length, width, and height, used to describe the true position and shape of an object. For example, a point on a guideline is represented by three coordinate values ​​(x, y, z) in the camera coordinate system; the position indicated by these coordinates is a point in three-dimensional space.

[0064] In the above-mentioned optional methods, after further distortion correction and epipolar correction of the binocular images, stereo matching is performed. The depth value is calculated by using the disparity map and intrinsic parameters and back-projected onto the three-dimensional space to generate the original three-dimensional point cloud data, providing an accurate three-dimensional spatial information basis for subsequent clearance calculation.

[0065] In one alternative approach, S4 specifically includes: The current pose information of the UAV is obtained, which includes the position data and attitude data of the UAV in the world coordinate system.

[0066] Position data refers to the three-dimensional coordinates of the UAV in the world coordinate system. For example, the UAV's current longitude is 116.23 degrees, latitude is 39.54 degrees, and altitude is 85.6 meters. Attitude data refers to data describing the UAV's orientation and tilt state while flying in the air, including roll angle, pitch angle, and yaw angle. For example, the UAV's current roll angle is 2.1 degrees, pitch angle is -1.5 degrees, and yaw angle is 135.6 degrees.

[0067] Obtain the pre-calibrated transformation matrix corresponding to the binocular camera that acquired the binocular images. The transformation matrix is ​​used to transform the point cloud data in the camera coordinate system to the UAV body coordinate system.

[0068] The pre-calibrated transformation matrix refers to the fixed mathematical transformation relationship determined through the calibration process, used to transform the point cloud in the camera coordinate system to the UAV body coordinate system. For example, a 4×4 matrix contains the rotation and translation relationship of the upper stereo camera relative to the center of the UAV; this matrix is ​​obtained through joint calibration after the camera is installed. The camera coordinate system refers to a right-handed Cartesian coordinate system established with the optical center of the stereo camera as the origin, used to describe the position of an object relative to the camera. For example, the coordinate values ​​of the original 3D point cloud data generated by the upper stereo camera are expressed in the camera coordinate system with the optical center of that camera as the origin. The UAV body coordinate system refers to a right-handed Cartesian coordinate system fixed to the UAV, established with the center of gravity or geometric center of the UAV as the origin. For example, the direction of the UAV's nose is usually defined as the positive X-axis, the right side as the positive Y-axis, and the bottom as the positive Z-axis.

[0069] Based on the current pose information, a first transformation matrix is ​​constructed from the UAV body coordinate system to the world coordinate system.

[0070] The first transformation matrix refers to the mathematical transformation relationship constructed based on the current pose information of the UAV, used to transform the point cloud in the UAV's body coordinate system to the world coordinate system. For example, a 4×4 homogeneous transformation matrix can be constructed based on the current position and attitude data of the UAV.

[0071] Based on the transformation matrix and the first transformation matrix, a second transformation matrix is ​​constructed from the camera coordinate system to the world coordinate system.

[0072] The second transformation matrix refers to the composite transformation matrix that directly transforms the point cloud in the camera coordinate system to the world coordinate system. It is composed of a pre-calibrated transformation matrix and the first transformation matrix. For example, multiplying the transformation matrix of the binocular camera above with the first transformation matrix yields the final transformation matrix used to directly transform the point cloud in the camera coordinate system to the WGS-84 coordinate system.

[0073] The original three-dimensional point cloud data is transformed using the second transformation matrix to obtain the target three-dimensional point cloud data in the world coordinate system.

[0074] In the above-mentioned optional methods, the UAV pose information and the pre-calibrated transformation matrix are further combined to construct a transformation matrix from the camera coordinate system to the world coordinate system, so as to uniformly transform the original 3D point cloud data to the world coordinate system and realize the accurate fusion and alignment of multi-view acquired data in the spatial dimension.

[0075] In one alternative approach, S5 specifically includes: Outlier removal and downsampling are performed on the target 3D point cloud data to obtain preprocessed target 3D point cloud data.

[0076] Outlier removal refers to the process of identifying and removing isolated points from 3D point cloud data that are significantly deviated from the main subject and caused by measurement noise. For example, statistical filtering is applied to the target 3D point cloud data to delete isolated noise points whose average distance from surrounding points exceeds a certain threshold. Downsampling refers to the process of reducing the number of points in the point cloud to reduce the data volume while maintaining the main geometric features of the point cloud. For example, using a voxel filter, the space is divided into small 5cm cubes, with only one centroid point retained in each cube, thereby thinning out the dense bamboo forest point cloud. The preprocessed target 3D point cloud data refers to the target 3D point cloud data after outlier removal and downsampling. For example, after the above two steps, the bamboo forest point cloud has eliminated noise points, reduced the number of points, but retained the main geometric features.

[0077] Based on a deep learning semantic segmentation model or a point cloud clustering algorithm, and combining the color and spatial features of the point cloud, the power transmission line point cloud and the ground feature point cloud are segmented from the preprocessed target 3D point cloud data.

[0078] Deep learning semantic segmentation models refer to algorithms trained on deep neural networks that can classify and identify each pixel or point in an image or point cloud. For example, a trained PointNet++ model can automatically identify and label which points in a 3D point cloud belong to wires and which belong to trees. Point cloud clustering algorithms are unsupervised learning algorithms that automatically classify point clouds into different categories based on their spatial distribution density and distance. For example, the DBSCAN clustering algorithm can group densely connected tree point clouds into one category and sparsely distributed wire point clouds into another. Color features refer to the RGB color information contained in each point in the point cloud data, derived from color images captured by a binocular camera. For example, power line point clouds appear grayish-white, while vegetation point clouds appear green; color features can be used to help distinguish different targets. Spatial features refer to the 3D coordinates of each point in the point cloud data and its spatial relationship with surrounding points. For example, power line point clouds appear as long, thin catenary shapes, while tree point clouds appear upright and clustered; these spatial morphological features can be used to identify different targets.

[0079] Construct a KD-Tree spatial index for the aforementioned ground feature point cloud.

[0080] KD-Tree spatial indexing refers to a data structure used to organize three-dimensional spatial point data, which can efficiently perform spatial query operations such as nearest neighbor search. For example, a KD-Tree can be constructed for the processed bamboo forest point cloud to quickly find the bamboo point closest to each traverse point.

[0081] Traverse each point in the power transmission line point cloud, search for the nearest neighbor in the ground feature point cloud using the KD-Tree spatial index, record the distance between each nearest neighbor and the currently traversed point, and determine the minimum value among all recorded distances as the initial clearance distance.

[0082] In this context, the nearest neighbor refers to the point in a point set that is closest to a given query point. For example, for a conductor point P in the power transmission line point cloud, the nearest bamboo point Q in the bamboo forest feature point cloud, found through a KD-Tree search, is the closest to P. The currently traversed point refers to the point currently being processed during the traversal of all points in the power transmission line point cloud. For example, when the algorithm iteratively processes the power transmission line point cloud, assuming it's currently processing the 1000th conductor point, this processed point is the currently traversed point. The initial clearance distance refers to the minimum spatial distance value directly calculated after processing a single frame of stereo imagery, without subsequent temporal processing across multiple frames. For example, after processing the image acquired in the 1st second, the calculated closest distance between the conductor and the bamboo forest is 2.5m; this distance value is called the initial clearance distance.

[0083] The initial clearance distance generated from the binocular images acquired in multiple consecutive frames is subjected to temporal filtering to obtain the clearance distance.

[0084] Temporal filtering refers to the process of applying filtering algorithms to the airspace distance sequence obtained from continuous multi-frame acquisition and calculation to eliminate instantaneous fluctuations and obtain stable estimates. For example, applying a Kalman filter to smooth 10 initial airspace distances obtained from continuous 10-second acquisition yields a stable airspace distance of 2.8m.

[0085] In the above-mentioned optional methods, after further preprocessing the target 3D point cloud data, the power line point cloud and ground feature point cloud are segmented based on deep learning or clustering algorithms. The minimum distance is calculated by searching for nearest neighbor points using the KD-Tree index, and the results are stabilized by time-series filtering to improve the accuracy of the clearance distance calculation.

[0086] In one alternative approach, S6 specifically includes: The clearance distance is compared with the preset safety threshold to obtain the comparison result.

[0087] Based on the comparison results, it is determined whether the clearance distance is less than the preset safety threshold.

[0088] When the clearance distance is less than the preset safety threshold, the duration of the clearance distance being less than the preset safety threshold is counted, and it is determined whether the duration exceeds the preset duration.

[0089] The duration of the alarm is defined as the length of time the clearance distance remains below a preset safety threshold. For example, if the clearance distance is below 5.5 meters from 15:23:15 until it rises above the threshold at 15:23:20, this 5-second period constitutes the duration. The preset duration is a pre-defined time threshold used to determine whether a continuous alarm should be triggered. For instance, to avoid false alarms caused by momentary rustling or movement, an alarm might be triggered only after a duration exceeding 3 seconds; this 3-second period is set as the preset duration.

[0090] When the duration exceeds the preset duration, the risk warning information is generated. The risk warning information includes the airspace distance, the current location information of the drone, and the current timestamp.

[0091] The current location information refers to the geographical location of the drone when the risk warning was triggered. For example, the alarm message may contain the precise location "116.2345 degrees east longitude, 39.5432 degrees north latitude". The current timestamp refers to the precise time when the risk warning was triggered. For example, the alarm message may contain the timestamp "January 1, 2026, 12:08:18".

[0092] The risk warning information will be sent to the cloud server.

[0093] In this context, a cloud server refers to a computer system deployed in a remote data center that receives, stores, processes, and analyzes inspection data uploaded by drones, and provides visualization and report generation services. For example, a server cluster located in the operations and maintenance center's computer room receives real-time airspace distance data and risk alarm information transmitted back from drones, and generates a 3D risk heat map on a large screen.

[0094] In the above-mentioned optional methods, the clearance distance is further compared with a preset safety threshold. If the duration exceeds the preset duration, a risk warning message containing the location and timestamp is generated and sent to the cloud to avoid misjudgment caused by momentary interference and improve the reliability of risk warning.

[0095] like Figure 2 As shown, the technical solution of this embodiment adopts a layered architecture, including an application presentation layer, an algorithm and AI analysis layer, a data acquisition layer, and a basic capability layer.

[0096] The application presentation layer is deployed on a cloud server and includes a visualization and human-computer interaction module, a risk analysis and report generation module, an inspection task and scheduling management module, and a system operation and security management module. The visualization and human-computer interaction module provides a web-based or mobile visual interface, supporting real-time track, image, and obstacle display, as well as parameter adjustment and task replay. The risk analysis and report generation module performs airspace risk statistics and level assessment, visualizing the results such as risk heatmaps and 3D views, and automatically generating inspection reports and alarm logs. The inspection task and scheduling management module is responsible for route planning and automated task configuration, monitoring and verifying task execution status, and maintaining historical records and recurring task calls. The system operation and security management module manages user permissions and data encryption, records logs and detects anomalies, and provides cloud storage and interface management.

[0097] The algorithm and AI analysis layer is integrated into the airborne edge computing unit, including an image depth estimation module, an object detection and semantic segmentation module, a clearance distance and risk assessment module, and an edge inference and caching module. The image depth estimation module performs stereo matching using binocular stereo matching algorithms such as SGM or RAFT-Stereo, reconstructs point clouds and generates depth maps, and performs depth error analysis and filtering optimization. The object detection and semantic segmentation module uses deep learning model frameworks such as YOLOv8 or RT-DETR to identify power lines, towers, trees, and foreign objects, performing multi-class segmentation and risk area extraction. The clearance distance and risk assessment module performs 3D spatial coordinate transformation, converting the point cloud from the camera coordinate system to the world coordinate system, calculating clearance distance and determining the risk level, detecting risk events and triggering alarms. The edge inference and caching module performs real-time inference based on an embedded artificial intelligence platform such as NVIDIA Jetson Orin NX, implementing local data compression and temporary caching, and employing asynchronous upload and adaptive bandwidth control.

[0098] The data acquisition layer is integrated into the UAV platform and includes a binocular vision acquisition module, an attitude and positioning module, and a communication and control interface module. The binocular vision acquisition module uses binocular cameras such as ZED2 or ZED X, and includes a left and right image synchronous acquisition unit, an image distortion correction and timestamp synchronization unit, and a ROI preprocessing and image caching unit, used to acquire binocular images of power transmission lines and underlying ground features. The attitude and positioning module includes an inertial measurement unit, a global positioning system and real-time dynamic differential positioning unit, and a data synchronization and error compensation subunit, used to acquire the UAV's real-time attitude information such as angular velocity, tilt angle, acceleration, and high-precision positioning data. The communication and control interface module includes a flight control communication interface, a 5G or 4G communication technology link and encrypted transmission unit, and a task data transmission scheduling unit, used to communicate with the UAV flight control system and interact with the cloud.

[0099] The foundational capability layer provides the underlying support for the entire system, including the UAV flight platform (airframe, power supply, gimbal), edge computing units (Jetson Orin NX or Xavier NX), data storage modules (high-speed SSD recorders), and heat dissipation and power management modules. The software system adopts a modular, service-oriented architecture, using an embedded artificial intelligence platform to achieve edge inference and autonomous task control. The system employs a three-layer collaborative architecture of "algorithm intelligence + task scheduling + visual interaction" to ensure the real-time performance, reliability, and maintainability of inspection tasks.

[0100] like Figure 3As shown, the design of this embodiment revolves around an application presentation layer, an algorithm and AI analysis layer, a data acquisition layer, and a basic capability layer. The data acquisition layer emphasizes acquiring images of power transmission lines and underlying ground features using multi-view binocular cameras, and integrating inertial measurement units, GPS, and real-time dynamic differential positioning data for spatiotemporal synchronization. The core of the algorithm and AI analysis layer lies in using stereo matching algorithms to generate point clouds, extracting power transmission line point clouds and ground feature point clouds through deep learning semantic segmentation, calculating clearance distances, and assessing risks. The application presentation layer is responsible for inspection task scheduling, data aggregation, 3D visualization, and report generation. The basic capability layer utilizes high-performance drones and embedded AI computing units to ensure computing power and battery life. The entire design embodies edge-cloud collaboration, achieving full-process automation from data acquisition to risk warning.

[0101] like Figure 4 As shown, the drone can adopt different flight modes depending on the inspection task. When using the top-down binocular acquisition mode, the drone flies directly downwards, with the upper binocular camera pointing at the power transmission line and the lower binocular camera pointing at the ground features below. When using the side-view binocular acquisition mode, the drone flies sideways at an angle, with the side-view binocular camera simultaneously covering both the power transmission line and the ground features below. These flight modes ensure complete acquisition of images of the power lines and ground features from different perspectives, avoiding obstruction and blind spots in ranging caused by a single perspective.

[0102] Specifically, we will use high-precision complex scenarios, dynamic vegetation scenarios, and economical routine inspection scenarios for illustration: ① High-precision measurement based on the top-down binocular acquisition mode.

[0103] This embodiment is applicable to key inspection areas with complex terrain and high measurement accuracy requirements, such as power transmission lines crossing forest areas.

[0104] During the hardware preparation phase, an industrial-grade drone was selected, possessing high load capacity and an open SDK interface. The drone integrates two binocular cameras: the upper binocular camera, with a baseline length of 12cm, is used to acquire binocular images of distant power transmission lines, with a measurement distance range of 10m to 30m; the lower binocular camera uses a wide-angle lens with a baseline length of 10cm to 15cm, used to acquire binocular images of nearby ground features below, with a measurement distance range of 3m to 20m. The edge computing unit utilizes an embedded artificial intelligence platform, equipped with a dedicated heat dissipation module to ensure computing stability under continuous high load.

[0105] System calibration is a prerequisite for ensuring measurement accuracy. First, in the laboratory, a checkerboard calibration board was used to perform intrinsic parameter calibration on both the upper and lower binocular cameras, obtaining the focal length f of each camera. x f y Principal point coordinates c xc y And radial distortion coefficients k1, k2 and tangential distortion coefficients p1, p2. Then, extrinsic parameter calibration is performed to calibrate the relative pose of the left and right eyes of each binocular camera, i.e., the rotation matrix R. inner Translation vector t inner The coordinate system C of the upper camera was accurately measured using a joint calibration method. up and the camera coordinate system below C down Relative to the UAV body coordinate system C drone The transformation relationship is used to obtain the transformation matrix T. drone_up and T drone_down These matrices remain fixed after the camera is installed.

[0106] During mission execution, the UAV, relying on centimeter-level positioning provided by the Global Positioning System (GPS) and real-time dynamic differential positioning technology, autonomously flies above the power transmission line along a preset route. The flight control system sends a synchronization signal, precisely triggering the simultaneous exposure and image acquisition of the upper and lower binocular cameras, and simultaneously recording data from the inertial measurement unit, GPS, and real-time dynamic differential positioning to obtain the UAV's pose T in the world coordinate system. world_drone .

[0107] Edge processing is performed on an embedded artificial intelligence platform. First, an optimized end-to-end deep learning stereo matching algorithm is run on the upper and lower binocular image pairs respectively to generate upper and lower dense depth maps. Then, the original 3D point cloud data P in the upper camera coordinate system is obtained through back projection. cam_up And the original 3D point cloud data P in the camera coordinate system below cam_down Then, using the transformation matrix obtained from calibration and the real-time pose, all point clouds are unified to the world coordinate system. The transformation formula for the point cloud above is P. world_up =T world_drone ·T drone_up ·P cam_up The point cloud transformation formula below is P. world_down =T world_drone ·T drone_down ·P cam_down P world_up and P world_down The elements are then integrated to form a complete 3D environmental model.

[0108] In the process of calculating the clearance distance, based on the color and spatial features of the point cloud, a deep learning semantic segmentation model or a point cloud clustering algorithm is used to calculate the clearance distance from P. world_up The point cloud of the transmission line is segmented into C. cable From P world_down C, the point cloud of ground features, is segmented from the middle. vegetation For C vegetation Construct a KD-Tree spatial index and traverse C cableFor each point in the KD-Tree, search for its nearest neighbor, record the distances between all point pairs, and the minimum value among them is the current clearance distance D. min The edge computing unit displays a real-time color point cloud fusion map and highlights the spatial location of the shortest distance with high-brightness lines. If D min If the distance remains below the preset safety threshold of 5.5m for 3 consecutive seconds, the edge device will immediately send a Level 1 alarm to the cloud server via a 5G or 4G mobile communication technology link. The alarm information includes the time, location, clearance distance value, and a snapshot of the point cloud at the scene.

[0109] ② Robustness measurement under dynamic vegetation environment.

[0110] Based on the top-down binocular acquisition mode, a processing procedure for dynamic vegetation has been added.

[0111] For the camera below, the system continuously acquires 10 frames of images within 1 second, with a sampling frequency of 100Hz, generating 10 frames of the lower point cloud P. down 1 To P down 10 Temporal statistical processing is performed on these point clouds to calculate the maximum height of points within each voxel, generating a statistical point cloud P that reflects the maximum possible height of vegetation during its swing cycle. down max This is to capture the most dangerous state when vegetation sways.

[0112] The final calculated airspace distance sequence D min (t) A Kalman filter is applied for time-series filtering. The Kalman filter predicts the state based on a uniform motion model and updates the data using real-time measurements. Through weighted fusion of prediction and measurement, measurement spikes and noise caused by the instantaneous and violent swaying of vegetation are smoothed, outputting a stable and reliable estimate of the clearance distance D. filtered (t) provides a reliable basis for risk assessment.

[0113] ③ Economical measurement based on side-view binocular acquisition mode.

[0114] This embodiment is applicable to routine inspection areas with flat terrain, open visibility, and cost sensitivity.

[0115] In terms of hardware configuration, the drone is equipped with only one side-mounted binocular camera with a baseline length of 15cm. It is mounted on the gimbal below the side of the drone. The pitch angle is adjusted so that the camera's field of view can simultaneously cover distant power lines and nearby ground features at typical flight altitudes.

[0116] System calibration includes intrinsic parameter calibration and extrinsic parameter calibration. Extrinsic parameter calibration obtains the transformation matrix T of the lateral stereo camera relative to the UAV body coordinate system. drone_sideFurthermore, the ranging accuracy of the side camera was specifically calibrated at different distances.

[0117] During mission execution, the UAV flies parallel to one side of the power transmission line, and its side-view binocular camera continuously acquires oblique binocular images containing the power transmission line and the ground features below. The stereo matching and point cloud generation process is the same as in Example 1, obtaining the original 3D point cloud data P in the side-view camera coordinate system. cam_side Through coordinate transformation formula P world_side =T world_drone ·T drone_side ·P cam_side The point cloud is transformed to the world coordinate system. In the world coordinate system, point cloud segmentation techniques are used to segment the point cloud from a single side, P. world_side The point cloud of transmission lines and the point cloud of ground features are extracted separately, and the minimum spatial distance between them is calculated as the clearance distance. This solution significantly reduces hardware costs, is simple to deploy, and is suitable for routine inspections in most open areas.

[0118] Figure 5 This diagram illustrates a structural schematic of an embodiment of a transmission line clearance ranging system 200 based on multi-view binocular vision provided by the present invention. Figure 5 As shown, the transmission line clearance ranging system 200 based on multi-view binocular vision includes: The determination module 201 is used to determine the corresponding binocular vision acquisition mode according to the preset inspection task; Acquisition module 202 is used to synchronously trigger the corresponding binocular camera to acquire binocular images of the power transmission line and the ground features below it according to the binocular vision acquisition mode. Matching module 203 is used to perform stereo matching on the binocular images to generate original three-dimensional point cloud data; The conversion module 204 is used to convert the original three-dimensional point cloud data to the world coordinate system based on the current pose information of the UAV, so as to obtain the target three-dimensional point cloud data in the world coordinate system. The calculation module 205 is used to segment the power transmission line point cloud and the ground feature point cloud from the target three-dimensional point cloud data, and to determine the minimum spatial distance between the power transmission line point cloud and the ground feature point cloud as the clearance distance. The output module 206 is used to output risk warning information based on the comparison result between the clearance distance and the preset safety threshold.

[0119] In an alternative embodiment, the determining module 201 is specifically used for: Obtain the terrain complexity information and measurement accuracy requirement information of the inspection area corresponding to the preset inspection task; Based on the terrain complexity information and the measurement accuracy requirement information, determine whether the inspection area belongs to a high-precision complex measurement scenario, and obtain the judgment result; When the judgment result is yes, the binocular vision acquisition mode is determined to be an upward and downward binocular acquisition mode; when the judgment result is no, the binocular vision acquisition mode is determined to be a side-view binocular acquisition mode.

[0120] In one alternative embodiment, the acquisition module 202 is specifically used for: When the binocular vision acquisition mode is the top-down binocular acquisition mode, the upper binocular camera installed on the UAV is triggered so that the upper binocular camera can acquire binocular images of the power transmission line, and the lower binocular camera installed on the UAV is triggered so that the lower binocular camera can acquire binocular images of the ground features below. When the binocular vision acquisition mode is the side-view binocular acquisition mode, the side-view binocular camera installed on the UAV is triggered so that the side-view binocular camera can simultaneously acquire binocular images containing the power transmission line and the ground features below.

[0121] In an alternative embodiment, the matching module 203 is specifically used for: The binocular images are subjected to distortion correction and epipolar correction to obtain corrected binocular images. Stereo matching is performed on the corrected binocular images to generate a disparity map; Based on the disparity map and the intrinsic parameters of the binocular camera that acquired the binocular images, the depth value corresponding to each pixel is calculated using the triangulation principle to generate a depth map; Each pixel in the depth map is back-projected into three-dimensional space to generate the original three-dimensional point cloud data.

[0122] In an alternative embodiment, the conversion module 204 is specifically used for: The current pose information of the UAV is obtained, which includes the position data and attitude data of the UAV in the world coordinate system. Obtain the pre-calibrated transformation matrix corresponding to the binocular camera that acquired the binocular images. The transformation matrix is ​​used to transform the point cloud data in the camera coordinate system to the UAV body coordinate system. Construct a first transformation matrix from the UAV body coordinate system to the world coordinate system based on the current pose information; Based on the transformation matrix and the first transformation matrix, construct a second transformation matrix from the camera coordinate system to the world coordinate system; The original three-dimensional point cloud data is transformed using the second transformation matrix to obtain the target three-dimensional point cloud data in the world coordinate system.

[0123] In an alternative embodiment, the computing module 205 is specifically used for: The target 3D point cloud data is subjected to outlier removal and downsampling processing to obtain preprocessed target 3D point cloud data; Based on a deep learning semantic segmentation model or a point cloud clustering algorithm, and combining the color and spatial features of the point cloud, the power transmission line point cloud and the ground feature point cloud are segmented from the preprocessed target 3D point cloud data. Construct a KD-Tree spatial index for the aforementioned ground feature point cloud; Traverse each point in the power transmission line point cloud, search for the nearest neighbor in the ground feature point cloud using the KD-Tree spatial index, record the distance between each nearest neighbor and the current traversed point, and determine the minimum value among all recorded distances as the initial clearance distance. The initial clearance distance generated from the binocular images acquired in multiple consecutive frames is subjected to temporal filtering to obtain the clearance distance.

[0124] In an alternative embodiment, the output module 206 is specifically used for: The clearance distance is compared with the preset safety threshold to obtain the comparison result; Based on the comparison results, determine whether the clearance distance is less than the preset safety threshold; When the clearance distance is less than the preset safety threshold, the duration of the clearance distance being less than the preset safety threshold is counted, and it is determined whether the duration exceeds the preset duration. When the duration exceeds the preset duration, the risk warning information is generated, which includes the airspace distance, the current location information of the drone, and the current timestamp. The risk warning information will be sent to the cloud server.

[0125] It should be noted that the beneficial effects of the transmission line clearance ranging system 200 based on multi-view binocular vision provided in the above embodiments are the same as those of the transmission line clearance ranging method based on multi-view binocular vision, and will not be repeated here. Furthermore, the system provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the system can be divided into different functional modules according to the actual situation to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiments, and will not be repeated here.

[0126] The transmission line clearance distance measurement system 200 based on multi-view binocular vision of the present invention can be a computer program (including program code) running on a computer device. For example, the transmission line clearance distance measurement system 200 based on multi-view binocular vision of the present invention is an application software that can be used to execute the corresponding steps in the transmission line clearance distance measurement method based on multi-view binocular vision of the present invention.

[0127] In some embodiments, the transmission line clearance ranging system 200 based on multi-view binocular vision of the present invention can be implemented in a combination of hardware and software. As an example, the transmission line clearance ranging system 200 based on multi-view binocular vision of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the transmission line clearance ranging method based on multi-view binocular vision of the present invention. For example, the processor in the form of a hardware decoding processor can be one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0128] The modules described in the embodiments of this invention can be implemented in software or hardware. The names of the modules are not, in some cases, limiting the scope of the module itself.

[0129] An electronic device according to an embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-mentioned transmission line clearance ranging methods based on multi-view binocular vision. That is, an electronic device according to an embodiment of the present invention may include, but is not limited to: a processor and a memory; the memory is used to store the computer program; the processor is used to execute the transmission line clearance ranging method based on multi-view binocular vision shown in any embodiment of the present invention by calling the computer program.

[0130] In one alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.

[0131] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this invention. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0132] Bus 4002 may include a path for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The bus 4002 is represented by only one thick line, but this does not mean that there is only one bus or one type of bus.

[0133] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.

[0134] The memory 4003 stores application code (computer program) for executing the present invention, and its execution is controlled by the processor 4001. The processor 4001 executes the application code stored in the memory 4003 to implement the content shown in the foregoing method embodiments.

[0135] Among them, electronic devices can also be terminal devices. A terminal device can be any terminal device that can install applications and access web pages through applications, including at least one of smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, smart TVs, and smart in-vehicle devices.

[0136] It should be noted that, Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present invention.

[0137] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-mentioned transmission line clearance distance measurement methods based on multi-view binocular vision.

[0138] Alternatively, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc.

[0139] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the aforementioned multi-view binocular vision-based transmission line clearance ranging method.

[0140] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0141] It should be understood that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0142] The computer-readable storage medium provided in this invention can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0143] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.

[0144] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.

[0145] It should be noted that the terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and represent a limitation on a specific order or sequence. Where appropriate, the order of use for similar objects can be interchanged so that the embodiments of this application described herein can be implemented in an order other than that shown or described.

[0146] Those skilled in the art will recognize that this invention can be implemented as a system, method, or computer program product. Therefore, this invention can be specifically implemented in the following forms: it can be entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, this invention can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.

[0147] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A method for measuring the clearance distance of transmission lines based on multi-view binocular vision, characterized in that, include: Based on the preset inspection tasks, determine the corresponding binocular vision acquisition mode; According to the binocular vision acquisition mode, the corresponding binocular camera is synchronously triggered to acquire binocular images of the power transmission line and the ground features below it. Stereo matching is performed on the binocular images to generate raw 3D point cloud data; Based on the current pose information of the UAV, the original 3D point cloud data is converted to the world coordinate system to obtain the target 3D point cloud data in the world coordinate system. The power line point cloud and the ground feature point cloud are segmented from the target three-dimensional point cloud data, and the minimum spatial distance between the power line point cloud and the ground feature point cloud is determined as the clearance distance. Based on the comparison between the clearance distance and the preset safety threshold, a risk warning message is output.

2. The transmission line clearance distance measurement method based on multi-view binocular vision according to claim 1, characterized in that, The steps for determining the corresponding binocular vision acquisition mode based on the preset inspection task include: Obtain the terrain complexity information and measurement accuracy requirement information of the inspection area corresponding to the preset inspection task; Based on the terrain complexity information and the measurement accuracy requirement information, determine whether the inspection area belongs to a high-precision complex measurement scenario, and obtain the judgment result; When the judgment result is yes, the binocular vision acquisition mode is determined to be an upward and downward binocular acquisition mode; when the judgment result is no, the binocular vision acquisition mode is determined to be a side-view binocular acquisition mode.

3. The transmission line clearance distance measurement method based on multi-view binocular vision according to claim 2, characterized in that, According to the binocular vision acquisition mode, the steps of synchronously triggering the corresponding binocular camera to acquire binocular images of the power transmission line and the ground features below include: When the binocular vision acquisition mode is the top-down binocular acquisition mode, the upper binocular camera installed on the UAV is triggered so that the upper binocular camera can acquire binocular images of the power transmission line, and the lower binocular camera installed on the UAV is triggered so that the lower binocular camera can acquire binocular images of the ground features below. When the binocular vision acquisition mode is the side-view binocular acquisition mode, the side-view binocular camera installed on the UAV is triggered so that the side-view binocular camera can simultaneously acquire binocular images containing the power transmission line and the ground features below.

4. The transmission line clearance distance measurement method based on multi-view binocular vision according to claim 3, characterized in that, The steps of performing stereo matching on the binocular images to generate raw 3D point cloud data include: The binocular images are subjected to distortion correction and epipolar correction to obtain corrected binocular images. Stereo matching is performed on the corrected binocular images to generate a disparity map; Based on the disparity map and the intrinsic parameters of the binocular camera that acquired the binocular images, the depth value corresponding to each pixel is calculated using the triangulation principle to generate a depth map; Each pixel in the depth map is back-projected into three-dimensional space to generate the original three-dimensional point cloud data.

5. The transmission line clearance distance measurement method based on multi-view binocular vision according to claim 4, characterized in that, The steps of converting the original 3D point cloud data to the world coordinate system based on the current pose information of the UAV to obtain the target 3D point cloud data in the world coordinate system include: The current pose information of the UAV is obtained, which includes the position data and attitude data of the UAV in the world coordinate system. Obtain the pre-calibrated transformation matrix corresponding to the binocular camera that acquired the binocular images. The transformation matrix is ​​used to transform the point cloud data in the camera coordinate system to the UAV body coordinate system. Construct a first transformation matrix from the UAV body coordinate system to the world coordinate system based on the current pose information; Based on the transformation matrix and the first transformation matrix, construct a second transformation matrix from the camera coordinate system to the world coordinate system; The original three-dimensional point cloud data is transformed using the second transformation matrix to obtain the target three-dimensional point cloud data in the world coordinate system.

6. The transmission line clearance distance measurement method based on multi-view binocular vision according to claim 5, characterized in that, The steps of segmenting the power line point cloud and ground feature point cloud from the target 3D point cloud data, and determining the minimum spatial distance between the power line point cloud and the ground feature point cloud as the clearance distance, include: The target 3D point cloud data is subjected to outlier removal and downsampling processing to obtain preprocessed target 3D point cloud data; Based on a deep learning semantic segmentation model or a point cloud clustering algorithm, and combining the color and spatial features of the point cloud, the power transmission line point cloud and the ground feature point cloud are segmented from the preprocessed target 3D point cloud data. Construct a KD-Tree spatial index for the aforementioned ground feature point cloud; Traverse each point in the power transmission line point cloud, search for the nearest neighbor in the ground feature point cloud using the KD-Tree spatial index, record the distance between each nearest neighbor and the current traversed point, and determine the minimum value among all recorded distances as the initial clearance distance. The initial clearance distance generated from the binocular images acquired in multiple consecutive frames is subjected to temporal filtering to obtain the clearance distance.

7. The transmission line clearance distance measurement method based on multi-view binocular vision according to any one of claims 1 to 6, characterized in that, The step of outputting a risk warning message based on the comparison result between the clearance distance and the preset safety threshold includes: The clearance distance is compared with the preset safety threshold to obtain the comparison result; Based on the comparison results, determine whether the clearance distance is less than the preset safety threshold; When the clearance distance is less than the preset safety threshold, the duration of the clearance distance being less than the preset safety threshold is counted, and it is determined whether the duration exceeds the preset duration. When the duration exceeds the preset duration, the risk warning information is generated, which includes the airspace distance, the current location information of the drone, and the current timestamp. The risk warning information will be sent to the cloud server.

8. A transmission line clearance ranging system based on multi-view binocular vision, characterized in that, include: The determination module is used to determine the corresponding binocular vision acquisition mode based on the preset inspection task; The acquisition module is used to synchronously trigger the corresponding binocular camera to acquire binocular images of the power transmission line and the ground features below it according to the binocular vision acquisition mode. The matching module is used to perform stereo matching on the binocular images to generate original three-dimensional point cloud data; The conversion module is used to convert the original 3D point cloud data to the world coordinate system based on the current pose information of the UAV, so as to obtain the target 3D point cloud data in the world coordinate system. The calculation module is used to segment the power transmission line point cloud and the ground feature point cloud from the target three-dimensional point cloud data, and to determine the minimum spatial distance between the power transmission line point cloud and the ground feature point cloud as the clearance distance. The output module is used to output risk warning information based on the comparison result between the clearance distance and the preset safety threshold.

9. An electronic device, characterized in that, The electronic device includes a processor coupled to a memory, the memory storing at least one computer program, which is loaded and executed by the processor to enable the electronic device to implement the transmission line clearance distance measurement method based on multi-view binocular vision as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which, when executed by a processor, implements the transmission line clearance distance measurement method based on multi-view binocular vision as described in any one of claims 1 to 7.