A physical intelligent unmanned aerial vehicle power inspection method, device and medium

By integrating airborne edge computing devices onto drones, multimodal video streams are parsed and processed using visual SLAM. Combined with pre-trained models, parallel detection and spatial positioning are performed, solving the problem of data acquisition and interpretation time separation in drone power line inspection and achieving real-time anomaly detection and accurate positioning.

CN123161114APending Publication Date: 2026-11-24SHENZHEN ARATEK BIOMETRICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611440072.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-16
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing UAV power line inspection technology, the data acquisition and interpretation processes are completely separated in terms of time, resulting in a long time window between data acquisition and anomaly detection, making it difficult to improve real-time performance and anomaly detection efficiency with limited airborne resources.

Method used

An airborne edge computing device is used to parse multimodal video streams, obtain synchronized visible light frame sequences and thermal imaging frame sequences, and obtain real-time six-degree-of-freedom pose and local sparse point cloud maps through visual SLAM processing. Combined with a pre-trained detection model, parallel inference is performed to achieve anomaly detection and spatial localization.

Benefits of technology

With limited airborne resources, the real-time performance and anomaly detection efficiency of power line inspection have been improved. By using parallel detection and spatial positioning technology, anomaly judgment results are generated in real time, reducing unnecessary consumption of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123161114A_ABST
    Figure CN123161114A_ABST
Patent Text Reader

Abstract

This invention discloses an embodied intelligent unmanned aerial vehicle (UAV) power line inspection method, equipment, and medium, relating to the field of embodied intelligent technology. The method includes: parsing a multimodal video stream to obtain a synchronized visible light frame sequence and a thermal imaging frame sequence; performing visual SLAM processing based on the visible light frame sequence to obtain the UAV's real-time six-degree-of-freedom pose and a local sparse point cloud map; inputting the visible light frame sequence and the thermal imaging frame sequence into a pre-trained visible light target detection model and a thermal anomaly detection model, respectively, to obtain a detection result set; determining whether there are any anomaly detection results; if so, confirming the anomaly detection result, acquiring the real-time gimbal attitude angle of the dual-light gimbal camera, and calculating the three-dimensional coordinates of the anomaly target in the world coordinate system based on the real-time six-degree-of-freedom pose, the real-time gimbal attitude angle, the local sparse point cloud map, and the two-dimensional bounding box corresponding to the confirmed anomaly detection result. This invention improves the real-time performance and anomaly detection efficiency of power line inspection under limited airborne resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of embodied intelligence technology, and in particular to a method, equipment and medium for power line inspection by an embodied intelligent unmanned aerial vehicle (UAV). Background Technology

[0002] In the field of power facility inspection, drones are widely used for monitoring the operational status of critical equipment such as insulators, conductors, fittings, and transformers due to their mobility and flexibility. Because power equipment is widely distributed and located in complex environments, inspection tasks typically require rapid inspection of a large number of devices over a wide area, which places high demands on inspection efficiency and response time.

[0003] Currently, in the mainstream inspection operation mode of existing technical solutions, drones fly along a preset route and continuously collect visible light and thermal imaging video data. After the flight mission is completed, all data is transmitted back to the ground workstation, where technicians review the videos one by one and perform manual interpretation. Although this offline analysis method can achieve high-precision detection by utilizing the powerful computing resources of the ground, the acquisition and interpretation stages are completely separated in time, resulting in a long time window between data acquisition and anomaly detection. Furthermore, some research has attempted to transmit key frames back to the ground server in real time via wireless links for processing. However, power inspection areas are often located in remote areas such as mountains and deserts, where wireless network coverage is limited, high-bandwidth and stable transmission is difficult to guarantee, and the transmission of large amounts of data is restricted. Real-time analysis on the edge is also subject to strict constraints on power consumption and computing resources, making it difficult to perform full-resolution inference on continuous dual-light video streams simultaneously. Summary of the Invention

[0004] This invention provides a method, device, and medium for power line inspection using an embodied intelligent unmanned aerial vehicle (UAV). The technical problem it aims to solve is: how to provide an effective solution to improve the real-time performance and anomaly detection efficiency of power line inspection under limited airborne resources.

[0005] In a first aspect, the present invention provides a method for power line inspection using an embodied intelligent unmanned aerial vehicle (UAV), comprising: Airborne edge computing devices used on drones include: In response to receiving a multimodal video stream, the multimodal video stream is parsed to obtain a synchronized visible light frame sequence and a thermal imaging frame sequence, wherein the multimodal video stream includes time-synchronized visible light frames and thermal imaging frames. Visual SLAM processing is performed based on the visible light frame sequence to obtain the real-time six-degree-of-freedom pose and local sparse point cloud map of the UAV in the world coordinate system. The visible light frame sequence is input into a pre-trained visible light target detection model to obtain a visible light detection result set; the thermal imaging frame sequence is input into a pre-trained thermal anomaly detection model to obtain a thermal anomaly detection result set. Determine whether there are any abnormal detection results in the visible light detection result set and the thermal anomaly detection result set; If the anomaly detection result exists, the confirmed anomaly detection result is determined from the visible light detection result set or the thermal anomaly detection result set, and the real-time gimbal attitude angle of the dual-light gimbal camera that acquires the multimodal video stream is obtained. Based on the real-time six-degree-of-freedom pose, the real-time gimbal attitude angle, the local sparse point cloud map, and the two-dimensional bounding box corresponding to the confirmed anomaly detection result, the three-dimensional coordinates of the anomaly target in the world coordinate system are calculated.

[0006] Optionally, in response to receiving the multimodal video stream, parsing the multimodal video stream to obtain a synchronized visible light frame sequence and a thermal imaging frame sequence includes: Visible light data stream and thermal imaging data stream are separated from the multimodal video stream. The visible light frame sequence is obtained through the visible light data stream, and the thermal imaging frame sequence is obtained through the thermal imaging data stream. Read the timestamp of each frame in the visible light frame sequence and the timestamp of each frame in the thermal imaging frame sequence; The timestamps of each frame in the visible light frame sequence and the timestamps of each frame in the thermal imaging frame sequence are matched. Visible light frames and thermal imaging frames with timestamp differences less than a preset time tolerance threshold are associated as synchronized frame pairs to form the synchronized visible light frame sequence and thermal imaging frame sequence.

[0007] Optionally, the step of inputting the visible light frame sequence into a pre-trained visible light target detection model to obtain a visible light detection result set includes: Each visible light image in the visible light frame sequence is input into the pre-trained visible light target detection model to obtain the defect category, first confidence level, and bounding box of each visible light detection box output by the pre-trained visible light target detection model. Determine whether the first confidence level of each visible light detection frame is lower than a preset first threshold. If the first confidence level of the visible light detection box is lower than the preset first threshold, the corresponding visible light detection box is discarded from the candidate detection results. If the first confidence level of the visible light detection frame is not lower than the preset first threshold, then the defect category, first confidence level, and bounding box of the corresponding visible light detection frame are retained, and the retained defect category, first confidence level, and bounding box of each visible light detection frame are used as the visible light detection result set.

[0008] Optionally, the step of inputting the thermal imaging frame sequence into a pre-trained thermal anomaly detection model to obtain a thermal anomaly detection result set includes: Each frame of the thermal imaging image in the thermal imaging frame sequence is input into the pre-trained thermal anomaly detection model to obtain the anomaly category, temperature characteristics and second confidence level of each thermal anomaly region output by the pre-trained thermal anomaly detection model. Determine whether the second confidence level of each of the thermal anomaly regions is lower than a preset second threshold; If the second confidence level of the thermal anomaly region is lower than the preset second threshold, the corresponding thermal anomaly region will be discarded from the candidate detection results. If the second confidence level of the thermal anomaly region is not lower than the preset second threshold, then the anomaly category, temperature feature and second confidence level of the corresponding thermal anomaly region are retained, and the retained anomaly category, temperature feature and second confidence level of each thermal anomaly region are used as the thermal anomaly detection result set.

[0009] Optionally, after determining the confirmed anomaly detection result, the method further includes: Control the drone to hover; After the drone hovers, the two-dimensional bounding box corresponding to the confirmed anomaly detection result is obtained. The zoom factor is determined based on the ratio of the size of the two-dimensional bounding box in the image to a preset target size threshold. A zoom control command is generated based on the zoom factor. The zoom control command controls the dual-light gimbal camera to zoom, and drives the dual-light gimbal camera to capture high-definition visible light photos and thermal images of the abnormal target at the zoomed focal length. The high-resolution visible light photograph and the thermal imaging photograph are used as associated image data storage for the confirmed anomaly detection results.

[0010] Optionally, calculating the three-dimensional coordinates of the anomalous target in the world coordinate system based on the real-time six-DOF pose, the real-time gimbal attitude angle, the local sparse point cloud map, and the two-dimensional bounding box corresponding to the confirmed anomaly detection result includes: Obtain the center pixel coordinates of the two-dimensional bounding box corresponding to the confirmed anomaly detection result in the image coordinate system; Based on the center point pixel coordinates and the intrinsic parameter matrix of the dual-light gimbal camera, calculate the normalized image coordinates; Based on the normalized image coordinates and the real-time gimbal attitude angle, a spatial ray originating from the camera optical center is constructed to obtain the spatial ray direction vector. Based on the real-time six-degree-of-freedom pose, the spatial ray direction vector is transformed from the camera coordinate system to the world coordinate system to obtain the spatial ray in the world coordinate system; Based on the positional relationship between the spatial ray in the world coordinate system and each three-dimensional spatial point in the local sparse point cloud map, the three-dimensional spatial point through which the spatial ray passes is determined as the target three-dimensional spatial point. Obtain the three-dimensional coordinates of the target three-dimensional spatial point, and use the three-dimensional coordinates of the target three-dimensional spatial point as the initial three-dimensional coordinates of the abnormal target; The initial three-dimensional coordinates are transformed into a geodetic coordinate system to obtain the three-dimensional coordinates of the anomalous target in the world coordinate system.

[0011] Optionally, the method further includes: After obtaining the three-dimensional coordinates of the abnormal target, the defect category or abnormality category corresponding to the confirmed abnormality detection result is obtained; The three-dimensional coordinates of the abnormal target, the defect category or anomaly category, and the high-resolution visible light and thermal images in the associated image data are associated according to a preset data format to obtain an associated data record. Write the associated data records into the corresponding fields of the structured inspection report template to generate a structured inspection report; The structured inspection report is transmitted back to the ground station via a wireless communication link.

[0012] Optionally, the step of performing visual SLAM processing based on the visible light frame sequence to obtain the real-time six-DOF pose and local sparse point cloud map of the UAV in the world coordinate system includes: Obtain the current frame visible light image from the visible light frame sequence, and take the previous frame visible light image in the visible light frame sequence as the previous frame visible light image; ORB feature points are extracted from the visible light image of the current frame to obtain the feature point set of the current frame; ORB feature points are extracted from the previous visible light image to obtain the previous frame feature point set; The current frame feature point set is matched with the previous frame feature point set to obtain a set of matched feature point pairs. Based on the set of matched feature points and the intrinsic parameter matrix of the dual-light gimbal camera, visual SLAM front-end tracking is performed to obtain the relative pose change of the UAV at the time corresponding to the current frame of visible light image. Obtain the real-time six-degree-of-freedom pose of the previous moment, and update the real-time six-degree-of-freedom pose of the UAV in the world coordinate system based on the relative pose change and the real-time six-degree-of-freedom pose of the previous moment. Based on the matched feature point pair set and the real-time six-degree-of-freedom pose, local mapping is performed, triangulation is used to generate three-dimensional spatial points, and the local sparse point cloud map is obtained.

[0013] Secondly, the present invention also provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0014] Thirdly, the present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.

[0015] This invention provides a method, device, and medium for power line inspection using an embodied intelligent unmanned aerial vehicle (UAV). By parsing a multimodal video stream into synchronized visible light frame sequences and thermal imaging frame sequences, it provides a spatiotemporally aligned dual-path data foundation for subsequent parallel processing, enabling the fusion analysis of visible light appearance information and thermal imaging temperature information under the same time reference and spatial reference. Furthermore, visual SLAM processing is performed based on the visible light frame sequences to obtain real-time six-DOF pose and local sparse point cloud maps. During flight, the UAV's own position and orientation in space, as well as the three-dimensional geometric reference of the surrounding environment, are simultaneously established, providing a real-time coordinate reference system for the spatial localization of abnormal targets that does not rely on external base stations or pre-stored maps. Furthermore, the synchronized visible light frame sequences and thermal imaging frame sequences are respectively input into two pre-trained models for parallel inference, simultaneously completing appearance defect detection and thermal anomaly detection on the airborne end. This changes the traditional processing mode of offline interpretation after acquisition and transmission to the ground, enabling anomaly identification to be generated in real time during flight instead of being summarized after flight. By determining whether there are abnormal detection results in the two detection result sets, spatial positioning calculation is only triggered when an anomaly is confirmed, avoiding the consumption of airborne resources by continuously performing high-precision spatial calculations during periods without anomalies. Furthermore, when an anomaly is confirmed, multi-source data fusion positioning is performed based on real-time six-DOF pose, real-time gimbal attitude angle, local sparse point cloud map, and the two-dimensional bounding box corresponding to the confirmed anomaly detection result. Utilizing the position orientation provided by visual SLAM, the camera line-of-sight direction provided by the gimbal attitude angle, and the three-dimensional geometric reference provided by the local sparse point cloud map, the abnormal target is mapped from two-dimensional image coordinates to three-dimensional coordinates in the world coordinate system, achieving precise spatial positioning of the abnormal target using only airborne resources. Therefore, synchronous parsing provides spatiotemporally aligned data input for parallel detection and spatial positioning, visual SLAM processing establishes a real-time three-dimensional coordinate reference system for spatial positioning, parallel inference transforms anomaly detection from offline interpretation to real-time output, anomaly judgment selectively triggers the positioning process to control airborne resource consumption, and multi-source data fusion positioning outputs the three-dimensional coordinates of the anomalous target under anomaly triggering. The above five elements work together to simultaneously achieve real-time anomaly detection and precise spatial positioning of anomalous targets during flight under the constraint of limited airborne computing resources, thereby effectively solving the technical problem of improving the real-time performance and anomaly detection efficiency of power line inspection under limited airborne resources. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1A flowchart illustrating a method for power line inspection using an embodied intelligent unmanned aerial vehicle (UAV) according to an embodiment of the present invention; Figure 2 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0020] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0021] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0022] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0023] Please see Figure 1This invention provides a method for power grid inspection using an embodied intelligent unmanned aerial vehicle (UAV). This method is applied to an onboard edge computing device on the UAV. An embodied intelligent UAV refers to an intelligent UAV system with autonomous perception, decision-making, and execution capabilities, capable of perceiving the surrounding environment in real time and responding accordingly. Furthermore, in a power grid inspection scenario, the embodied intelligent UAV flies along a preset route, continuously sensing the status information of the power equipment area through onboard sensors, and performing real-time analysis and processing of the sensing results. Furthermore, power equipment includes critical facilities such as insulators, conductors, fittings, and transformers. These devices are exposed to the outdoor environment for extended periods and may experience abnormalities such as insulator bursting, conductor corrosion, fitting deformation, and overheating of joints, requiring regular inspections to ensure the safe operation of the power grid. Furthermore, due to the wide distribution and complex environments of power equipment, inspection tasks typically require rapid inspection of a large number of devices over a wide area, placing high demands on the real-time processing capabilities and response timeliness of the onboard equipment. Furthermore, in traditional inspection modes, drones fly along preset routes and continuously collect visible light and thermal imaging video data. After the flight mission is completed, all data is transmitted back to a ground workstation, where technicians review the videos one by one and perform manual interpretation. There is a long time window between data acquisition and anomaly detection, resulting in low inspection efficiency. Therefore, this embodiment integrates visual SLAM processing and dual-light parallel detection into an airborne edge computing device, enabling real-time anomaly detection and spatial localization during flight. This solves the efficiency problem caused by the complete separation of acquisition and interpretation in time in the traditional mode. Specifically, the method includes the following steps: S1, in response to receiving a multimodal video stream, the multimodal video stream is parsed to obtain a synchronized visible light frame sequence and a thermal imaging frame sequence, wherein the multimodal video stream includes time-synchronized visible light frames and thermal imaging frames.

[0024] In practice, the multimodal video stream received by the onboard edge computing device on the UAV is acquired. The onboard edge computing device is an embedded computing platform deployed on the UAV, equipped with a dedicated AI acceleration chip and sufficient storage resources, enabling it to perform deep neural network inference and visual SLAM computation tasks in real time during UAV flight. Furthermore, the multimodal video stream is continuously acquired during flight by a dual-light gimbal camera mounted on the UAV, including time-synchronized visible light frames and thermal imaging frames. The dual-light gimbal camera is a shooting device that integrates both a visible light sensor and a thermal imaging sensor, capable of outputting visible light images and thermal imaging images of the same field of view simultaneously. Further, the visible light sensor is used to acquire color or grayscale images of the electrical equipment's appearance. Its working principle involves using a charge-coupled device (CCD) or complementary metal-oxide-semiconductor (CMOS) photosensitive element to convert visible light signals into electrical signals, generating an image that reflects the equipment's appearance and surface texture. Further, the thermal imaging sensor is used to acquire images of the electrical equipment's temperature distribution. Its working principle involves using a focal plane array detector to receive infrared radiation emitted by the object, converting the infrared radiation intensity into a temperature value, and generating a thermal image that reflects the surface temperature distribution of the equipment. Furthermore, since the visible light sensor and the thermal imaging sensor are integrated onto the same gimbal structure, their optical axes are pre-calibrated to remain parallel or nearly parallel, and their fields of view are essentially overlapping. This ensures that the acquired visible light frames and thermal imaging frames are spatially aligned, meaning that the spatial regions corresponding to pixels at the same location in the image are identical. Simultaneously, the dual-light gimbal camera assigns a timestamp to each frame during acquisition, with a precision down to the microsecond level, to identify the exact acquisition time of that frame.

[0025] Furthermore, the received multimodal video stream is parsed to obtain synchronized visible light frame sequences and thermal imaging frame sequences. The parsing operation specifically includes: identifying the data packet type identifier based on the multimodal video stream's encapsulation format; parsing data packets carrying visible light type identifiers into visible light frames; and parsing data packets carrying thermal imaging type identifiers into thermal imaging frames. Furthermore, the visible light frame sequence is an ordered set of multiple visible light frames arranged in chronological order, and the thermal imaging frame sequence is an ordered set of multiple thermal imaging frames arranged in chronological order. Furthermore, due to potential slight differences in the acquisition frequencies of the visible light sensor and the thermal imaging sensor, or potential delays and jitter during transmission, the two types of frame sequences may not be perfectly aligned on the time axis; that is, the position of a visible light frame acquired at a certain moment and its corresponding thermal imaging frame in the sequence may differ. Furthermore, based on the timestamp information carried by each frame, visible light frames and thermal imaging frames with a timestamp difference less than a preset time tolerance threshold are associated as synchronized frame pairs, ensuring that the visible light frames and thermal imaging frames in the same frame pair reflect the device status at the same time and spatial location. This synchronization relationship provides a spatiotemporally aligned data foundation for subsequent multimodal fusion detection.

[0026] In some preferred embodiments, the step of parsing the multimodal video stream in response to receiving the multimodal video stream to obtain a synchronized visible light frame sequence and a thermal imaging frame sequence includes: separating a visible light data stream and a thermal imaging data stream from the multimodal video stream; obtaining the visible light frame sequence through the visible light data stream; obtaining the thermal imaging frame sequence through the thermal imaging data stream; reading the timestamp of each frame in the visible light frame sequence and the timestamp of each frame in the thermal imaging frame sequence; performing timestamp matching between the timestamp of each frame in the visible light frame sequence and the timestamp of each frame in the thermal imaging frame sequence; associating visible light frames and thermal imaging frames with timestamp differences less than a preset time tolerance threshold as synchronized frame pairs to form the synchronized visible light frame sequence and thermal imaging frame sequence.

[0027] In practice, the dual-light gimbal camera includes two independent image sensors: a visible light sensor and a thermal imaging sensor. These two sensors operate independently in hardware, each with its own independent clock source and acquisition control logic. The acquisition frame rates of the visible light sensor and the thermal imaging sensor may differ; for example, the visible light sensor acquires images at a rate of 30 frames per second, while the thermal imaging sensor acquires images at a rate of 25 frames per second, resulting in different frame periods. Even if both frame rates are set to the same value, due to slight deviations in crystal oscillator frequency and temperature drift, a slight time delay drift may still exist between the actual acquisition times. This drift may gradually increase as the acquisition time accumulates. If the visible light frames and thermal imaging frames are directly paired and associated according to the receiving order, it may lead to a discrepancy in the acquisition time of the paired images. That is, the visible light image captures the device state at a certain moment, while the thermal imaging image captures the same device state hundreds of milliseconds later. Under conditions of high-speed drone flight and continuous gimbal rotation, this time discrepancy will cause spatial misalignment between the visible light image and the thermal imaging image, meaning that the actual spatial area corresponding to the same pixel position in the image is different. This spatial misalignment can severely affect the accuracy of subsequent multimodal fusion detection. For example, when a visible light detection frame marks the location of an insulator, the corresponding thermal imaging image might show the temperature information of an adjacent insulator, leading to incorrect thermal anomaly detection. Therefore, this embodiment achieves precise synchronization through timestamp matching, effectively solving the above problem. The specific implementation method is as follows: Visible light data stream and thermal imaging data stream are separated from the received multimodal video stream. During transmission, the multimodal video stream is packaged using a predefined frame structure. This frame structure defines a data packet type identifier field to distinguish whether the data packet carries visible light data or thermal imaging data. Based on the format definition of this frame structure, the data packet type identifier field is identified, and data packets identified as "visible light" are parsed into visible light frames, while those identified as "thermal imaging" are parsed into thermal imaging frames. All parsed visible light frames are arranged in chronological order of acquisition time to form a visible light frame sequence; similarly, all thermal imaging frames are arranged in chronological order of acquisition time to form a thermal imaging frame sequence.

[0028] Furthermore, the timestamps of each frame in the visible light frame sequence and each frame in the thermal imaging frame sequence are read. The timestamp is timing information generated by the corresponding image sensor hardware at the time of acquisition for each image frame, with an accuracy down to the microsecond level. Specifically, when the visible light sensor completes the exposure and readout operation for a frame, it reads the current count value from the system clock or the sensor's internal clock as the timestamp for that frame and encapsulates this timestamp along with the image data into a data packet. The thermal imaging sensor generates its timestamp for each frame in the same way. Therefore, each frame of visible light image and each frame of thermal imaging image carries precise acquisition time information.

[0029] Furthermore, the timestamps of each frame in the visible light frame sequence are matched with the timestamps of each frame in the thermal imaging frame sequence. Specifically, for each visible light frame in the visible light frame sequence, its timestamp is used as a reference to find the thermal imaging frame in the thermal imaging frame sequence with the smallest difference between its timestamp and the frame. The absolute value of this minimum timestamp difference is calculated. If the absolute value is less than a preset time tolerance threshold, the visible light frame and the thermal imaging frame are considered a synchronized frame pair. The preset time tolerance threshold is a pre-set upper limit for the time difference. Its value can be set according to the sensor clock synchronization accuracy and frame rate of the dual-light gimbal camera. For example, the preset time tolerance threshold can be set to one-third of the time interval between two adjacent frames. Taking a frame rate of 30 frames per second as an example, the time interval between two adjacent frames is approximately 33 milliseconds, and the preset time tolerance threshold can be set to 10 milliseconds. Furthermore, if the absolute value of the minimum timestamp difference is less than the preset time tolerance threshold, it indicates that the acquisition time of the visible light frame and the thermal imaging frame is close enough, and in typical application scenarios, they can be considered as synchronized acquisitions. Furthermore, if the absolute value of the minimum timestamp difference is greater than or equal to a preset time tolerance threshold, it indicates that the current visible light frame does not have a corresponding frame with a sufficiently close acquisition time in the thermal imaging frame sequence. This visible light frame is then marked as an invalid frame that cannot be paired, and no further multimodal fusion processing is performed on it. Further, the above matching operation is repeated for each frame in the visible light frame sequence. Successfully matched visible light frames and thermal imaging frames are associated as synchronized frame pairs. All synchronized frame pairs are arranged in chronological order to form synchronized visible light frame sequences and thermal imaging frame sequences; that is, the visible light frames and thermal imaging frames in a synchronized frame pair have the same or very close timestamps.

[0030] This embodiment associates visible light frames and thermal imaging frames into synchronized frame pairs through timestamp matching. This ensures that the image pairs processed for subsequent visible light target detection and thermal anomaly detection are strictly aligned in time, guaranteeing that the visible light appearance information and thermal imaging temperature information reflect the device status at the same time and spatial location. Furthermore, the preset time tolerance threshold allows for a certain clock deviation, improving the system's robustness. Frames that cannot be matched are actively excluded from multimodal fusion processing, avoiding analysis errors caused by mismatches and ensuring the accuracy and reliability of the detection results.

[0031] S2, perform visual SLAM processing based on the visible light frame sequence to obtain the real-time six-degree-of-freedom pose and local sparse point cloud map of the UAV in the world coordinate system.

[0032] In practice, visual SLAM processing is performed based on the visible light frame sequence to obtain the real-time six-DOF pose and local sparse point cloud map of the UAV in the world coordinate system. Visual SLAM is a technology that simultaneously performs device localization and environmental mapping. The visual SLAM process is as follows: Visual feature points are extracted from consecutive frames in the visible light frame sequence. These feature points are locations in the image with significant texture changes, such as corner points and edge points. The relative motion of the UAV between adjacent frames is estimated by matching the feature points between different frames. Specifically, for two consecutive frames, based on the pixel coordinate differences of the matched feature point pairs in their respective images, the essential matrix or homography matrix is ​​calculated using epipolar geometry constraints or perspective n-point projection methods. From this matrix, rotation and translation vectors are decomposed, representing the relative pose change of the UAV between adjacent frames. Furthermore, starting from the initial position, the relative pose change between each frame is accumulated and recursively extrapolated to obtain the real-time six-DOF pose of the UAV in the world coordinate system. The six-degree-of-freedom pose includes three translational degrees of freedom for the UAV in three-dimensional space: X-axis, Y-axis, and Z-axis coordinates, corresponding to the longitude, latitude, and altitude directions, respectively; and three rotational degrees of freedom: pitch, yaw, and roll angles, corresponding to rotation angles around the X, Y, and Z axes, respectively. Furthermore, simultaneously, for each pair of matched feature points, based on their pixel coordinates in the two frames, the corresponding camera pose, and the camera intrinsic parameter matrix, a triangulation method is used to calculate the three-dimensional coordinates of the spatial point in the world coordinate system. The basic principle of triangulation is: given the projected positions of the same spatial point under different viewpoints, the three-dimensional position of the point can be determined by the spatial intersection of two projected rays. Triangulation is performed on all matched feature point pairs, generating a large number of three-dimensional spatial points. The set of these three-dimensional spatial points constitutes a local sparse point cloud map. The local sparse point cloud map is a sparse three-dimensional representation of significant visual features in the environment surrounding the UAV, used to describe the positional distribution of feature points in three-dimensional space, providing a geometric reference for the subsequent spatial localization of abnormal targets. Sparse representation refers to reconstructing only the salient feature points in the image, rather than reconstructing all pixels. Therefore, the amount of data is smaller, making it suitable for real-time maintenance and updates on airborne edge computing devices.

[0033] In some preferred embodiments, the step of performing visual SLAM processing based on the visible light frame sequence to obtain the real-time six-DOF pose and local sparse point cloud map of the UAV in the world coordinate system includes: acquiring the current frame visible light image from the visible light frame sequence, and using the previous frame visible light image in the visible light frame sequence as the previous frame visible light image; extracting ORB feature points from the current frame visible light image to obtain a current frame feature point set; extracting ORB feature points from the previous frame visible light image to obtain a previous frame feature point set; and combining the current frame feature point set with the previous frame feature point set. Feature point matching is performed to obtain a set of matched feature point pairs. Based on the set of matched feature point pairs and the intrinsic parameter matrix of the dual-light gimbal camera, visual SLAM front-end tracking is performed to obtain the relative pose change of the UAV at the time corresponding to the current frame of visible light image. The real-time six-degree-of-freedom pose of the previous moment is obtained. Based on the relative pose change and the real-time six-degree-of-freedom pose of the previous moment, the real-time six-degree-of-freedom pose of the UAV in the world coordinate system is updated. Based on the set of matched feature point pairs and the real-time six-degree-of-freedom pose, local mapping is performed, and triangulation is used to generate three-dimensional spatial points to obtain the local sparse point cloud map.

[0034] In practical implementation, the core of visual SLAM lies in extracting salient visual features from consecutive image frames and performing inter-frame matching to estimate camera motion and construct an environment map. ORB features are a widely used image feature in computer vision, possessing advantages such as fast computation speed, good rotation invariance, and robustness to illumination changes. Furthermore, ORB stands for Oriented FAST and Rotated BRIEF, where FAST is an abbreviation for Features from Accelerated Segment Test, a fast corner detection algorithm; and BRIEF is an abbreviation for Binary Robust Independent Elementary Features, a binary feature descriptor. Further, ORB features add orientation information to FAST corner detection and use a rotated BRIEF descriptor, making it rotation invariant. The calculation process of ORB features does not involve floating-point operations, resulting in high computational efficiency, making it suitable for real-time operation on resource-constrained airborne edge computing devices. This embodiment uses ORB features as an example to detail the specific processes of feature extraction, matching, pose estimation, and mapping, with the specific implementation method as follows: The system acquires the current visible light image from the visible light frame sequence and uses the previous visible light image from the sequence as the previous frame. Each frame in the visible light frame sequence is stored in the system's circular buffer in chronological order of acquisition. When processing the k-th frame, it is used as the current frame, and the frame k-1 is used as the previous frame. For the first frame in the sequence, since there is no previous frame, it is directly added to the keyframe sequence as the initial frame, and formal tracking processing begins only after the next frame arrives.

[0035] Further, ORB feature points are extracted from the current frame's visible light image to obtain the current frame's feature point set. ORB feature point extraction includes two stages: corner detection and descriptor calculation. In the corner detection stage, for each pixel in the current frame's visible light image, the difference between the grayscale value of the pixel and the grayscale value of the pixels surrounding it is detected. If multiple consecutive pixels on the circumference have grayscale values ​​greater than the pixel's grayscale value plus a preset difference threshold, or less than the pixel's grayscale value minus a preset difference threshold, then the pixel is determined to be a candidate corner. Non-maximum suppression is applied to all candidate corners, that is, the corner with the strongest response is retained in the local region, and the weaker response corners are removed to obtain the final corner positions. During the descriptor calculation stage, an image patch of a specific size is selected around each corner point. The direction of the gray-level centroid of this image patch is calculated as the principal direction of the corner point. Then, the image patch is rotated and corrected according to this principal direction. Multiple pairs of pixels are randomly selected in the corrected image patch for comparison. A binary bit is generated based on the gray-level relationship of each pair of pixels. All binary bits are concatenated to form a binary descriptor. This descriptor is used for subsequent feature matching.

[0036] Furthermore, ORB feature points are extracted from the previous visible light image to obtain the feature point set of the previous frame. The feature point extraction process of the previous frame is the same as that of the current frame.

[0037] Furthermore, feature point matching is performed between the current frame's feature point set and the previous frame's feature point set to obtain a set of matched feature point pairs. Feature point matching refers to establishing a correspondence between feature points in the current and previous frames based on the similarity of their descriptors. Specifically, the Hamming distance between the descriptor of each feature point in the current frame and the descriptor of each feature point in the previous frame is calculated. The Hamming distance is the number of corresponding bits that differ between two binary strings of equal length, used to measure the similarity between two binary descriptors. The smaller the Hamming distance, the more similar the local textures of the two feature points are, and the more likely they are projections of the same spatial point. For each feature point in the current frame, the two nearest and second nearest feature points with Hamming distances in the previous frame are found. If the nearest distance is less than the second nearest distance multiplied by a preset ratio threshold, the nearest neighbor match is considered a valid match. The typical value of the preset ratio threshold is between 0.6 and 0.8, which can effectively eliminate ambiguous matches and improve matching accuracy. The above matching operation is performed on all feature points, and all validly matched feature point pairs constitute a set of matched feature point pairs.

[0038] Furthermore, based on the matched feature point pair set and the intrinsic parameter matrix of the dual-light gimbal camera, visual SLAM front-end tracking is performed to obtain the relative pose change of the UAV at the moment corresponding to the visible light image of the current frame. Front-end tracking is the process of estimating the relative motion of the camera between adjacent frames based on the matched feature point pairs. Specifically, multiple pairs of feature points are randomly selected from the matched feature point pairs, and the essential matrix is ​​calculated using the pixel coordinates of these feature point pairs in the two frames and the camera intrinsic parameter matrix. The essential matrix contains information about the camera's rotation matrix and translation vector between the two frames. Singular value decomposition is performed on the essential matrix, and the rotation matrix and translation vector are extracted from the decomposition results. This rotation matrix and translation vector represent the relative pose change of the UAV between adjacent frames. To eliminate errors that may be introduced by randomly selecting feature points, a random sampling consensus algorithm can be used to randomly select a subset of feature points multiple times for calculation, and the calculation result with the largest number of inliers is selected as the final relative pose change.

[0039] Furthermore, the real-time six-DOF pose of the previous moment is obtained. Based on the relative pose change and the previous moment's real-time six-DOF pose, the UAV's real-time six-DOF pose in the world coordinate system is updated. The previous moment's real-time six-DOF pose is the position and orientation information of the UAV in the world coordinate system determined when processing the previous frame; this pose is stored in the global state variables. The rotation matrix in the relative pose change is multiplied by the rotation matrix of the previous moment to obtain the rotation matrix of the current moment. The translation vector in the relative pose change is rotated to the world coordinate system using the rotation matrix and then added to the translation vector of the previous moment to obtain the translation vector of the current moment. The updated rotation matrix and translation vector constitute the UAV's real-time six-DOF pose in the world coordinate system at the current moment.

[0040] Furthermore, local mapping is performed based on the matched feature point pair set and the real-time six-DOF pose, and triangulation is used to generate 3D spatial points, resulting in a local sparse point cloud map. Local mapping refers to the process of reconstructing 3D spatial points based on matched feature point pairs and camera pose. For each pair of matched points in the matched feature point pair set, the pixel coordinates of the feature point in the current frame and the pixel coordinates in the previous frame are obtained, as are the camera poses corresponding to the current frame and the previous frame. Combined with the camera intrinsic parameter matrix, the 3D coordinates of the spatial point in the world coordinate system are calculated using the triangulation method. The basic principle of the triangulation method is: the 3D coordinates of spatial point P in the world coordinate system are unknowns to be solved, and the projection position of the spatial point in the current frame is a known quantity. Under the camera pose of the current frame, the projection equation describes the mapping relationship from 3D coordinates to pixel coordinates; at the same time, the projection position of the spatial point in the previous frame is also a known quantity, and under the camera pose of the previous frame, the projection equation also describes the mapping relationship from 3D coordinates to pixel coordinates. By solving the two projection equations simultaneously, the three components of the 3D coordinates can be obtained. Triangulation is performed on all matching feature point pairs to generate a large number of three-dimensional spatial points. The set of these three-dimensional spatial points constitutes a local sparse point cloud map.

[0041] This embodiment achieves inter-frame feature tracking through ORB feature point extraction and matching. Based on the matched feature point pairs, the relative pose change of the UAV is estimated, and the real-time six-DOF pose is obtained through recursive updates. A local sparse point cloud map is obtained by reconstructing 3D spatial points through triangulation. Furthermore, the entire processing is executed in real time on an onboard edge computing device, providing accurate pose and map references for the spatial localization of abnormal targets. ORB feature points have high computational efficiency and are suitable for running on resource-constrained embedded platforms, meeting the real-time requirements of UAV inspection.

[0042] S3, input the visible light frame sequence into the pre-trained visible light target detection model to obtain a visible light detection result set; input the thermal imaging frame sequence into the pre-trained thermal anomaly detection model to obtain a thermal anomaly detection result set.

[0043] In practice, a visible light frame sequence is input into a pre-trained visible light target detection model to obtain a visible light detection result set. The pre-trained visible light target detection model is a detection model based on a deep convolutional neural network. Its network structure can employ a single-pass multi-frame detector, a YOLO series network, or a faster region convolutional neural network architecture. Furthermore, the model is pre-trained on a large dataset of visible light images containing power equipment defect annotations, enabling it to identify visible light-identifiable defect types from input images, such as insulator bursts, corrosion, and suspended foreign objects. Specifically, the model performs convolution operations on each visible light image frame to generate feature maps at multiple scales. Multiple anchor boxes are preset on the feature maps. A classification branch predicts whether a specific defect category exists within each anchor box, a regression branch predicts the positional offset of the defect bounding box, and finally, non-maximum suppression removes overlapping redundant detection boxes, outputting the final detection result. Furthermore, each detection result includes a defect category, a first confidence score, and a bounding box. The defect category is the defect type identifier determined by the model, such as insulator bursts, conductor corrosion, hardware deformation, and suspended foreign objects. The first confidence level is the model's probability estimate of the presence of a corresponding defect within the detection bounding box. Its value ranges from 0 to 1, with a value closer to 1 indicating greater confidence in the detection result. The bounding box is a rectangular box that marks the location of a target in the image coordinate system. It is typically represented by the pixel coordinates of the top-left and bottom-right corners, or the pixel coordinates of the center point, plus width and height.

[0044] Furthermore, the thermal imaging frame sequence is input into a pre-trained thermal anomaly detection model to obtain a thermal anomaly detection result set. The pre-trained thermal anomaly detection model is another detection model based on deep neural networks. Its network structure can adopt a target detection architecture similar to that of visible light target detection models, or it can adopt a network structure specifically designed for thermal imaging images. Furthermore, this model is pre-trained on a large dataset of thermal imaging images containing thermal anomaly annotations of power equipment, enabling it to identify thermal anomaly types such as joint overheating and partial discharge from thermal imaging images. Specifically, the model performs convolution operations on each frame of the thermal imaging image, detects local regions with abnormally high temperatures on the feature map, and outputs the anomaly category, temperature features, and a second confidence score for each detected region. The anomaly category is the identifier of the thermal anomaly type determined by the model, such as joint overheating or partial discharge. Temperature features can include information such as the highest temperature, average temperature, temperature gradient, or temperature change rate of the anomaly region, which is extracted and output by the model from the thermal imaging image. A thermal anomaly region is a local region with abnormally high temperatures in a thermal imaging image, and its location and extent in the image are represented by region boundaries or a center point plus a radius. The second confidence level is the model's probability estimate of the existence of a corresponding anomaly in the thermal anomaly region.

[0045] In some preferred embodiments, the step of inputting the visible light frame sequence into a pre-trained visible light target detection model to obtain a visible light detection result set includes: inputting each visible light image in the visible light frame sequence into the pre-trained visible light target detection model to obtain the defect category, first confidence level, and bounding box of each visible light detection box output by the pre-trained visible light target detection model; determining whether the first confidence level of each visible light detection box is lower than a preset first threshold; if the first confidence level of the visible light detection box is lower than the preset first threshold, then discarding the corresponding visible light detection box from the candidate detection results; if the first confidence level of the visible light detection box is not lower than the preset first threshold, then retaining the defect category, first confidence level, and bounding box of the corresponding visible light detection box, and using the retained defect category, first confidence level, and bounding box of each visible light detection box as the visible light detection result set.

[0046] In practice, during inference, the pre-trained visible light target detection model inevitably produces a certain proportion of false detections in its output due to factors such as the shooting angle of the input image, lighting conditions, target occlusion degree, and image clarity. False detections manifest in two typical forms: first, high-confidence false detection boxes are generated in image regions where there are no actual defects; this phenomenon is called false positive detection. Second, low-confidence detection results are generated when defects exist but the image quality is poor; this phenomenon is called low-confidence warning before missed detection. If all detection results are directly used for subsequent anomaly judgment and spatial localization, false detection boxes may cause the system to perform hovering and report generation operations in areas deemed to be free of anomalies, reducing inspection efficiency. Therefore, this embodiment uses a confidence threshold to filter and eliminate unreliable detection results, ensuring that only highly reliable detection results enter the subsequent processing flow. The specific implementation method is as follows: Each visible light image frame in the visible light frame sequence is input into a pre-trained visible light target detection model. During the model's forward propagation, the input image undergoes feature extraction through a series of convolutional, activation, and pooling layers, performing dense predictions on feature maps at multiple scales. For each preset anchor box, the model outputs a probability vector through a classification branch. The dimension of this probability vector equals the total number of defect categories the model can identify, where each element represents the estimated probability of the presence of a corresponding category of defect within the anchor box. The model takes the category corresponding to the maximum value in the probability vector as the defect category of that anchor box, and uses this maximum probability value as the first confidence level. The model outputs the positional offset of the bounding box relative to the anchor box through a regression branch, adjusting the position and size of the anchor box based on this offset to obtain the predicted bounding box. The model performs non-maximum suppression on the prediction results of all anchor boxes. That is, all detection boxes are sorted from high to low according to the first confidence level, and starting from the detection box with the highest confidence level, other detection boxes with an overlap higher than a preset intersection-union threshold are removed. The final retained detection boxes are the visible light detection boxes output by the model. Each visible light detection frame contains three information items: defect category, first confidence level, and bounding box.

[0047] Further, it is determined whether the first confidence score of each visible light detection box is lower than a preset first threshold. The preset first threshold is a pre-set lower limit of confidence, and its specific value can be set according to the model's performance on the validation set. In practice, the precision and recall curves of the model at different confidence thresholds on the validation set can be statistically analyzed, and the confidence threshold that maximizes the F1 score can be selected as the value of the preset first threshold. The F1 score is the harmonic mean of precision and recall, which can comprehensively reflect the detection performance of the model. Typically, the preset first threshold can be set to 0.5, and for models with better classification performance, it can be set to 0.7 or higher.

[0048] Furthermore, if the first confidence level of the visible light detection box is lower than a preset first threshold, the reliability of the detection result is deemed insufficient, and the visible light detection box is discarded from the candidate detection results, preventing it from entering the subsequent anomaly judgment and spatial localization processing flow. Specifically, the discarding operation involves removing the detection box from the detection result list of the current frame without saving its defect category and bounding box information.

[0049] Furthermore, if the first confidence level of the visible light detection box is not lower than a preset first threshold, the detection result is deemed to have sufficient reliability, and the defect category, first confidence level, and bounding box of the corresponding visible light detection box are retained. After performing the above confidence level judgment and filtering operations on all visible light detection boxes one by one, the defect category, first confidence level, and bounding box of each retained visible light detection box are output as the visible light detection result set of the current frame. This visible light detection result set will be used as the input for subsequent anomaly judgment steps.

[0050] This embodiment filters visible light target detection results by setting a first threshold, excluding low-confidence results and retaining only highly reliable results for subsequent location and report generation processes. This filtering operation is performed after the detection model outputs its results and does not alter the inference process of the detection model itself. Furthermore, by reasonably setting the value of the first threshold, a balance can be achieved between detection recall and detection precision, minimizing false alarms while ensuring that no real defects are missed, thereby improving the reliability of inspection results.

[0051] In some preferred embodiments, the step of inputting the thermal imaging frame sequence into a pre-trained thermal anomaly detection model to obtain a thermal anomaly detection result set includes: inputting each frame of thermal imaging image in the thermal imaging frame sequence into the pre-trained thermal anomaly detection model to obtain the anomaly category, temperature feature, and second confidence level of each thermal anomaly region output by the pre-trained thermal anomaly detection model; determining whether the second confidence level of each thermal anomaly region is lower than a preset second threshold; if the second confidence level of the thermal anomaly region is lower than the preset second threshold, then discarding the corresponding thermal anomaly region from the candidate detection results; if the second confidence level of the thermal anomaly region is not lower than the preset second threshold, then retaining the anomaly category, temperature feature, and second confidence level of the corresponding thermal anomaly region, and using the retained anomaly category, temperature feature, and second confidence level of each thermal anomaly region as the thermal anomaly detection result set.

[0052] In practice, the thermal anomaly detection model, similar to the visible light target detection model, is also affected by factors such as input image quality, ambient temperature changes, target size, and location during its inference process, resulting in a certain proportion of false detections. The signal-to-noise ratio of thermal imaging images is generally lower than that of visible light images, and background radiation interference is more pronounced in high-temperature environments. Therefore, the false detection rate of the thermal anomaly detection model may be higher than that of the visible light target detection model. If the thermal anomaly detection results are not screened and low-confidence results are directly used for subsequent processing, a large number of false thermal anomaly reports may be generated, severely impacting inspection efficiency. This embodiment uses a confidence threshold to screen and eliminate unreliable thermal anomaly detection results, ensuring that only highly reliable thermal anomaly detection results enter the subsequent processing flow. The specific implementation method is as follows: Each frame of the thermal imaging image sequence is input into a pre-trained thermal anomaly detection model. The grayscale or color value of each pixel in the thermal imaging image represents the temperature value of the corresponding spatial region. The model performs convolution operations on the input thermal imaging image to extract spatial features of the temperature distribution, detecting local regions with abnormally high temperatures on the feature map. Specifically, the model predicts the thermal anomaly category for each candidate region through a classification branch, which can include types such as joint overheating, partial discharge, internal equipment heating, and poor contact heating. Further, the model predicts the boundary or contour of the thermal anomaly region through a regression branch. For each detection result, the model also outputs a second confidence level. Further, non-maximum suppression is performed on all detection results output by the model, and the final retained detection results are the respective thermal anomaly regions. Further, each thermal anomaly region contains three information items: anomaly category, temperature features, and a second confidence level. Temperature features can be the highest temperature value, average temperature value, temperature gradient, or temperature rise rate of the thermal anomaly region, depending on the model design and training objectives.

[0053] Further, it is determined whether the second confidence level of each thermal anomaly region is lower than a preset second threshold. The preset second threshold can be the same as the preset first threshold, or it can be set independently based on the performance of the thermal anomaly detection model on the validation set. Since the output distribution of the thermal anomaly detection model may differ from that of the visible light target detection model, setting the preset second threshold independently can better adapt to the characteristics of the thermal anomaly detection model. Typically, the preset second threshold can be set between 0.5 and 0.8.

[0054] Furthermore, if the second confidence level of the thermal anomaly region is lower than the preset second threshold, the reliability of the detection result is deemed insufficient, and the thermal anomaly region is discarded from the candidate detection results, preventing it from entering the subsequent anomaly judgment and spatial positioning processing flow.

[0055] Furthermore, if the second confidence level of a thermal anomaly region is not lower than a preset second threshold, the detection result is deemed to have sufficient reliability, and the anomaly category, temperature characteristics, and second confidence level of the corresponding thermal anomaly region are retained. After performing the above confidence level judgment and filtering operations on all thermal anomaly regions one by one, the anomaly category, temperature characteristics, and second confidence level of each retained thermal anomaly region are output as the thermal anomaly detection result set of the current frame. This thermal anomaly detection result set will serve as the input for subsequent anomaly judgment steps.

[0056] This embodiment filters thermal anomaly detection results using a preset second threshold, excluding low-confidence thermal anomaly regions and retaining only highly reliable results. This filtering operation is performed in parallel with the confidence filtering of visible light detection results; the two filtering methods are independent and do not affect each other. Furthermore, by reasonably setting the value of the preset second threshold, a balance can be achieved between recall and precision in thermal anomaly detection, minimizing false alarms while ensuring no real thermal hazards are missed, thus improving the reliability of thermal anomaly detection results. These two independent confidence filtering mechanisms jointly ensure the overall accuracy of anomaly detection.

[0057] It should be noted that, in a specific embodiment, the pre-trained visible light target detection model adopts a lightweight single-stage target detection architecture, which consists of a backbone network, a neck network, and a detection head. The backbone network adopts a lightweight modified CSPDarknet structure or EfficientNet structure, introducing cross-stage local connections and depthwise separable convolutions or Ghost convolutions to reduce the number of parameters and computational cost. The depthwise separable convolutions decompose standard convolutions into two independent steps: channel-wise convolution and pointwise convolution. The Ghost convolution generates more feature maps from a small number of intrinsic feature maps through linear transformation. Furthermore, the neck network adopts a feature pyramid structure or a path aggregation network structure, performing multi-scale feature fusion through bidirectional paths from top to bottom and bottom to top, so that the fused feature map simultaneously contains high-level semantic information and low-level spatial detail information. Furthermore, the detection head performs dense predictions on the multi-scale feature map output by the neck network, outputs the defect category probability corresponding to each anchor box through the classification branch, outputs the position offset of the predicted bounding box relative to the anchor box through the regression branch, uses the maximum category probability as the first confidence level, and removes redundant detection boxes through non-maximum suppression, outputting the final visible light detection result.

[0058] Furthermore, the training method for the pre-trained visible light target detection model is as follows: A visible light image dataset containing annotations of defects in power equipment is constructed. Defect types include insulator bursts, conductor corrosion, hardware deformation, and suspended foreign objects. Each image is labeled with a defect category and bounding box. The labeled dataset is divided into a training set, a validation set, and a test set according to a preset ratio. Visible light images from the training set are input into the model for forward propagation to obtain predicted category probabilities and predicted bounding box positions. The error between the predicted results and the true annotations is calculated using a preset loss function, which includes classification loss and regression loss. The classification loss uses binary cross-entropy loss or Focal loss, and the regression loss uses intersection-over-union (IoU) loss or full IoU loss. Further, the gradient of the loss function with respect to the model parameters is calculated through backpropagation. An optimizer is used to update the model parameters based on the gradient. The optimizer uses a stochastic gradient descent optimizer or an adaptive moment estimation optimizer. Furthermore, a warm-up strategy is used to adjust the learning rate during training. After each training round, the model performance is evaluated using a validation set until the average accuracy of the model on the validation set reaches a preset target or the number of training rounds reaches a preset upper limit, at which point training stops.

[0059] Furthermore, the pre-trained thermal anomaly detection model employs a lightweight network architecture similar to that of the visible light target detection model, and is adapted to the imaging characteristics of thermal imaging images. Thermal imaging images reflect the temperature distribution information of object surfaces, exhibiting low contrast and blurred target edges. The backbone network of the thermal anomaly detection model introduces a temperature-aware attention module into the lightweight feature extraction structure. This module weights the feature map in both channel and spatial dimensions, enabling the model to focus on regions with abnormally high temperatures in the thermal imaging image. Further, the neck network performs multi-scale feature fusion, emphasizing the preservation of high-resolution shallow features to enhance detection sensitivity for small-sized thermal anomaly regions. Finally, the detection head outputs the anomaly category, temperature features, and a second confidence score for each thermal anomaly region. The temperature features include the highest temperature value, average temperature value, or temperature gradient of the anomaly region.

[0060] Furthermore, the training method for the pre-trained thermal anomaly detection model is as follows: A thermal imaging image dataset containing annotations of thermal anomalies in power equipment is constructed. The thermal anomaly types include joint overheating and partial discharge. Each image is annotated with an anomaly category, region bounding box, and region temperature feature value. The annotated dataset is divided into a training set, a validation set, and a test set. Further, the thermal imaging images in the training set are input into the model for forward propagation to obtain the predicted anomaly category, predicted bounding box, predicted temperature feature, and second confidence score. The error between the predicted result and the true annotation is calculated using a preset loss function, which includes classification loss, regression loss, and temperature feature regression loss. The temperature feature regression loss uses mean squared error loss or smoothed L1 loss. The gradient is calculated through backpropagation, and the model parameters are updated using an optimizer until the model converges.

[0061] Furthermore, the reason why the aforementioned visible light target detection model and thermal anomaly detection model can run in real time on airborne edge computing devices is that: the models themselves adopt a lightweight design, with the number of parameters controlled at the millions level, the computational load within a few trillion floating-point operations, and the model file size between several megabytes and tens of megabytes. This allows them to be loaded within the limited storage space of the airborne edge computing device and complete single-frame inference under limited computing resources. Furthermore, during the deployment phase, an inference acceleration engine is used to optimize the model. This inference acceleration engine reduces kernel startup overhead through layer tensor fusion, automatically selects the optimal computing configuration through kernel tuning, and improves computing speed through half-precision or integer quantization inference. Furthermore, the airborne edge computing device incorporates tensor cores optimized for matrix multiplication and convolution operations and supports a unified memory architecture to reduce data transfer latency between the CPU and GPU. Through the combination of the aforementioned lightweight architecture design, inference acceleration optimization, and dedicated hardware acceleration, the forward inference latency of a single frame image is controlled at the millisecond level, meeting the real-time requirements of UAV inspection.

[0062] Specifically, in one embodiment, the optimization of the model by the inference acceleration engine includes at least the following three aspects.

[0063] First, layer tensor fusion. In unoptimized deep learning models, adjacent computational layers are typically represented as independent computational nodes; for example, convolutional layers, batch normalization layers, and activation function layers are each independent layers. During inference, the graphics processing unit (GPU) needs to launch a separate computational kernel for each layer to perform computations and perform multiple memory read / write operations between layers to write the output tensor of the previous layer to global memory, which is then read from global memory by the next layer. Furthermore, the inference acceleration engine uses layer tensor fusion technology to merge multiple consecutive computational layers into a single computational node; for example, merging convolutional layers, batch normalization layers, and modified linear unit (MRU) activation layers into a single fused kernel. Furthermore, after fusion, the operations that originally required multiple kernel launches and multiple global memory read / write operations are merged into a single kernel launch and a single memory access. For example, taking a typical combination of convolutional layers, batch normalization layers, and activation function layers as an example, before fusion, three kernel launches and three memory read / write operations are required; after fusion, only one kernel launch and one memory read / write operation are required, thus reducing kernel launch overhead and memory bandwidth usage. Furthermore, the inference acceleration engine also supports horizontal fusion, merging multiple layers with the same structure but different weights into a wider single layer. Through layer tensor fusion, the number of network layers can be significantly reduced, substantially improving the utilization of the graphics processor and memory access efficiency.

[0064] Second, automatic kernel tuning. For the same type of computational operation in deep learning models, such as convolution, there are multiple different kernel implementations, and the performance of different implementations varies significantly under different hardware architectures and input conditions. The inference acceleration engine has a built-in kernel library containing multiple high-performance kernel implementations. During the engine building phase, the inference acceleration engine performs performance profiling on the hardware characteristics of the target graphics processing unit (GPU) platform, identifying the GPU architecture type, the number of streaming multiprocessors, and tensor core support. Furthermore, for each layer in the network, the inference acceleration engine tests the execution time of multiple candidate kernel implementations from the kernel library based on features such as the input tensor size, number of channels, convolution kernel size, and data layout of that layer, and automatically selects the kernel implementation that minimizes the inference latency for that layer. For example, for 3×3 convolution, the inference acceleration engine can choose from candidate solutions such as the Winograd fast convolution algorithm, a convolution algorithm based on general matrix multiplication, and a direct convolution algorithm. The Winograd fast convolution algorithm is an algorithm that improves the efficiency of convolution computation by reducing the number of multiplication operations. Furthermore, automatic kernel tuning ensures that the same model achieves optimal inference performance on different hardware platforms. The inference acceleration engine also uses tensor memory reuse technology to analyze the lifecycle of each tensor in the entire computation graph, allocate shared memory buffers for non-overlapping tensors, and reduce peak memory usage.

[0065] Third, low-precision inference and quantization calibration. The inference acceleration engine supports converting models from 32-bit floating-point precision to 16-bit floating-point precision or 8-bit integer precision for computation. 16-bit floating-point precision inference utilizes the tensor cores in the graphics processor to perform matrix multiplication and addition operations, increasing inference speed by 2 to 4 times while maintaining model accuracy close to that of 32-bit floating-point precision. 8-bit integer precision inference maps 32-bit floating-point tensors to 256 discrete 8-bit integer values ​​through a quantization calibration process. Furthermore, the inference acceleration engine provides an automated calibration mechanism that uses a small calibration dataset to quantize the model to 8-bit integer precision while minimizing accuracy loss. 8-bit integer precision inference can further improve inference speed by approximately 2 times compared to 16-bit floating-point precision. After quantization to 8-bit integer precision, both model file size and runtime memory usage are significantly reduced.

[0066] Furthermore, airborne edge computing devices are based on an integrated graphics processor (GPU) architecture. In traditional discrete GPU architectures, the CPU and GPU each have their own independent physical memory spaces. Data exchange between the CPU and GPU requires physical transfer via the Peripheral Component Interconnect (PCI) standard bus, which introduces additional latency and bandwidth overhead. The PCI standard is a bus interface standard used to connect high-speed external devices. In the integrated GPU architecture of airborne edge computing devices, the CPU and GPU share the same physical memory resources. Furthermore, the CPU and GPU can directly access the same physical memory address space, eliminating the need for data copying between CPU memory and GPU video memory. This architecture eliminates the latency bottleneck of data migration between the CPU and GPU. Furthermore, airborne edge computing devices incorporate tensor cores optimized for matrix multiplication and convolution operations. Tensor cores are dedicated hardware units within the GPU's streaming multiprocessor, used to perform matrix multiplication and addition operations. In a single clock cycle, a tensor core can perform more multiplication and addition operations than a traditional computing core. Furthermore, by combining the aforementioned inference acceleration engine optimization with dedicated hardware acceleration for airborne edge computing devices, the single-frame inference latency of the lightweight target detection model on airborne edge computing devices can be controlled at the millisecond level, meeting the real-time requirements of UAV power line inspection.

[0067] Further, in one specific implementation, the training method of the visible light target detection model is as follows: A visible light target detection model to be trained is constructed, and a visible light image dataset is constructed. The visible light image dataset contains no fewer than 50,000 labeled images, covering defect types such as insulator bursting, wire corrosion, hardware deformation, and suspended foreign objects. Each image is labeled with a defect category and bounding box. The visible light image dataset is divided into a training set, a validation set, and a test set in a 7:2:1 ratio. Further, during training, the visible light images in the training set are input into the visible light target detection model to be trained for forward propagation. The error between the predicted result and the true annotation is calculated using a preset loss function. The loss function includes classification loss and regression loss; the classification loss uses Focal loss, and the regression loss uses Full Intersection over Union (MIU). Further, the gradient of the loss function with respect to the parameters of the visible light target detection model to be trained is calculated through backpropagation. A stochastic gradient descent optimizer is then used to update the parameters of the visible light target detection model to be trained based on this gradient. The momentum parameter of the stochastic gradient descent optimizer is set to 0.937, the weight decay coefficient is set to 0.0005, the initial learning rate is set to 0.01, and the batch size is set to 32. Further, a warm-up strategy is used to adjust the learning rate during training. The warm-up period is set to 3 epochs. After warm-up, a cosine annealing strategy is used to gradually decay the learning rate to one percent of the initial value. The training epochs are set to 300 epochs. After each training epoch, the performance of the visible light target detection model to be trained is evaluated using the validation set, and the mean accuracy is calculated. Training stops when the mean accuracy of the visible light target detection model to be trained on the validation set reaches 85% or higher, or when the training epochs reach 300. The trained visible light target detection model was tested on the test set to confirm that the average accuracy of the trained visible light target detection model was not less than 90%.

[0068] Further, in one specific embodiment, the training method of the thermal anomaly detection model is as follows: A thermal anomaly detection model to be trained is constructed, and a thermal imaging image dataset is built. The thermal imaging image dataset contains no fewer than 20,000 labeled images, covering thermal anomaly types such as joint overheating and partial discharge. Each image is labeled with an anomaly category, region bounding box, and region temperature feature value. The thermal imaging image dataset is divided into a training set, a validation set, and a test set in a 7:2:1 ratio. Further, when constructing the thermal imaging image dataset, infrared radiation calibration is performed on the thermal imaging sensor. The infrared radiation calibration uses a blackbody radiation source to calibrate the thermal imaging sensor at multiple temperature points, establishing a mapping relationship between the grayscale values ​​of the thermal imaging image and the actual temperature values. This mapping relationship is used to determine the actual temperature value corresponding to each pixel in the thermal imaging image. Further, during the infrared radiation calibration process, ambient temperature compensation is performed. The ambient temperature compensation corrects the mapping relationship between grayscale values ​​and temperature values ​​based on the ambient temperature of the thermal imaging sensor, thereby eliminating the influence of background radiation on temperature measurement. The temperature range of the thermal imaging image dataset is from -20 degrees Celsius to 150 degrees Celsius, covering the temperature range of power equipment under normal operation and abnormal heating conditions. An over-temperature label is defined as the highest temperature value in the thermal anomaly area exceeding a preset temperature threshold, or the temperature rise rate in the thermal anomaly area exceeding a preset rate threshold. The thermal imaging images in the training set are input into the thermal anomaly detection model to be trained for forward propagation to obtain the predicted anomaly category, predicted bounding box, predicted temperature features, and a second confidence score. Further, the error between the predicted result and the true label is calculated using a preset loss function, which includes classification loss, regression loss, and temperature feature regression loss. The classification loss uses Focal loss, the regression loss uses full intersection-over-union loss, and the temperature feature regression loss uses smoothed L1 loss. The gradient is calculated through backpropagation, and the parameters of the thermal anomaly detection model to be trained are updated using a stochastic gradient descent optimizer. The momentum parameter of the stochastic gradient descent optimizer is set to 0.937, the weight decay coefficient is set to 0.0005, the initial learning rate is set to 0.01, the batch size is set to 16, and the training epochs are set to 200. After each training epoch, the performance of the thermal anomaly detection model under training is evaluated using the validation set, and the mean accuracy is calculated. Training stops when the mean accuracy of the thermal anomaly detection model under training on the validation set reaches 90% or more, or when 200 training epochs are completed.

[0069] S4, determine whether there are any abnormal detection results in the visible light detection result set and the thermal anomaly detection result set.

[0070] In specific implementation, it is determined whether there are any abnormal detection results in the visible light detection result set and the thermal anomaly detection result set. This determination is specifically implemented by checking whether the visible light detection result set is empty and simultaneously checking whether the thermal anomaly detection result set is empty. Further, if both the visible light detection result set and the thermal anomaly detection result set are empty, meaning neither model outputs any valid detection results, it indicates that there are no anomalies in the power equipment area corresponding to the currently processed video frame. The drone is then controlled to continue flying along the preset route and wait for the processing of the next frame of video data to continue detection and localization of subsequent frames. Further, if at least one visible light detection box exists in the visible light detection result set, or at least one thermal anomaly region exists in the thermal anomaly detection result set, meaning at least one detection model outputs a valid detection result, then it is determined that an abnormal detection result exists.

[0071] S5, if the anomaly detection result exists, then the confirmed anomaly detection result is determined from the visible light detection result set or the thermal anomaly detection result set, and the real-time gimbal attitude angle of the dual-light gimbal camera that acquires the multimodal video stream is obtained. Based on the real-time six-degree-of-freedom pose, the real-time gimbal attitude angle, the local sparse point cloud map, and the two-dimensional bounding box corresponding to the confirmed anomaly detection result, the three-dimensional coordinates of the anomaly target in the world coordinate system are calculated.

[0072] In specific implementation, if abnormal detection results exist, confirmed abnormal detection results are determined from either the visible light detection result set or the thermal anomaly detection result set. A confirmed abnormal detection result can be any visible light detection frame in the visible light detection result set or any thermal anomaly region in the thermal anomaly detection result set. In specific implementation, if both the visible light detection result set and the thermal anomaly detection result set are not empty, the one with the highest confidence level among the two types of detection results can be determined as the confirmed abnormal detection result. Alternatively, the visible light detection results and thermal anomaly detection results can be associated according to spatial location, pairing overlapping or adjacent visible light detection frames with thermal anomaly regions to jointly serve as confirmed abnormal detection results. Furthermore, the confirmed abnormal detection result includes the defect category or anomaly category, confidence level, and corresponding two-dimensional bounding box information, serving as the basis for subsequent spatial positioning calculations. The real-time gimbal attitude angles of the dual-light gimbal camera acquiring multimodal video streams are obtained. Further, the gimbal attitude angles include the gimbal's pitch angle, yaw angle, and roll angle, representing the rotation angles of the gimbal around its own coordinate system's X-axis, Y-axis, and Z-axis, respectively. The gimbal attitude angle reflects the orientation of the camera's optical axis in space, i.e., the direction the camera is currently observing. Based on real-time six-DOF pose, real-time gimbal attitude angle, local sparse point cloud map, and the two-dimensional bounding boxes corresponding to confirmed anomaly detection results, the three-dimensional coordinates of the anomalous target in the world coordinate system are calculated. Specifically, based on the position of the two-dimensional bounding box corresponding to the confirmed anomaly detection results in the image, combined with the intrinsic parameter matrix of the dual-light gimbal camera and the real-time gimbal attitude angle, the direction of the spatial ray corresponding to the center point of the two-dimensional bounding box is determined; then, based on the real-time six-DOF pose, the position and orientation of the UAV in the world coordinate system are determined, and the spatial ray is transformed from the camera coordinate system to the world coordinate system; finally, the intersection point of the spatial ray in the world coordinate system and the local sparse point cloud map is calculated, and the three-dimensional coordinates of this intersection point are the three-dimensional coordinates of the anomalous target in the world coordinate system. These three-dimensional coordinates are the precise spatial position of the anomalous target in the real physical world, with centimeter-level accuracy, and can be used for subsequent maintenance decisions and asset management.

[0073] This embodiment integrates visual SLAM processing with dual-light parallel detection into an airborne edge computing device, enabling real-time anomaly detection and spatial localization during flight. Because visible light target detection and thermal anomaly detection are performed in parallel, visible light appearance defects and thermal imaging latent faults can be detected simultaneously in the same inspection task. The two types of detection results complement each other, improving the comprehensiveness and reliability of equipment health status assessment. Furthermore, visual SLAM constructs UAV pose and local sparse point cloud maps in real time during the detection process, providing spatial reference for the precise localization of abnormal targets. This ensures that the detection results include not only anomaly categories but also precise spatial location information. This method changes the inefficient traditional model of collecting data during flight and then reviewing it, achieving real-time automated inspection with on-the-fly assessment, thus improving inspection efficiency. Simultaneously, this method does not alter the UAV's flight operation process and can be deployed on existing UAV platforms, demonstrating good compatibility and feasibility.

[0074] In some preferred embodiments, after determining the confirmed anomaly detection result, the method further includes: controlling the drone to hover; after the drone hovers, acquiring a two-dimensional bounding box corresponding to the confirmed anomaly detection result, determining a zoom factor based on the ratio of the size of the two-dimensional bounding box in the image to a preset target size threshold, generating a zoom control command based on the zoom factor; controlling the dual-light gimbal camera to zoom according to the zoom control command, driving the dual-light gimbal camera to capture a high-resolution visible light image and a thermal image of the anomalous target at the zoomed focal length; and storing the high-resolution visible light image and the thermal image as associated image data of the confirmed anomaly detection result.

[0075] In practice, after confirming the anomaly detection result, the UAV remains in motion, continuously flying along a preset flight path. While the dual-light gimbal camera can capture images of the anomalous target area, the UAV's flight speed is typically several meters to tens of meters per second. With long exposure times, the relative motion between the camera and the anomalous target causes image blurring, a phenomenon known as motion blur. Furthermore, due to the considerable distance between the UAV and the anomalous target, the target may appear very small in the image, occupying only tens to hundreds of pixels, insufficient for subsequent analysis. Directly capturing high-resolution images of the anomalous target in flight could result in blurry photos with inadequate target detail, hindering subsequent maintenance decisions and report preparation. Therefore, this embodiment effectively solves these problems by using hovering to stabilize the aircraft, adaptive zoom based on the target's size in the image, and associating captured images with the anomaly detection results for storage. The specific implementation is as follows: After confirming the anomaly detection results, a hovering control command is generated and sent to the drone's flight controller. The flight controller is the core unit of the drone's flight control system, responsible for adjusting the speed of each rotor motor based on the received control commands. Upon receiving the hovering control command, the flight controller uses a proportional-integral-derivative (PID) control algorithm to adjust the speed of the four rotors in real time, ensuring that the drone maintains a relatively constant three-axis position and attitude angle within its current spatial location. In hover mode, the drone's horizontal position drift can typically be controlled within a few centimeters, providing a stable platform for subsequent zoom shooting.

[0076] Further, after the drone hovers, the two-dimensional bounding box corresponding to the confirmed anomaly detection result is acquired. This two-dimensional bounding box is a rectangle output by the target detection model during the detection phase, marking the location of the abnormal target in the image coordinate system, and its size is in pixels. The zoom factor is determined based on the ratio of the size of this two-dimensional bounding box in the image to a preset target size threshold. The preset target size threshold is a pre-defined ideal pixel size that the target should occupy in the image, and its value can be set according to actual needs, for example, it can be set to one-third of the image width or height. If both the width and height of the two-dimensional bounding box are less than the preset target size threshold, it indicates that the image size of the abnormal target in the image is too small, and the camera focal length needs to be increased to magnify the target. Further, if the width and height of the two-dimensional bounding box are greater than or equal to the preset target size threshold, it indicates that the abnormal target already has a sufficient image size in the image, and no zoom is needed or the zoom factor is 1. Specifically, the width ratio and the height ratio can be calculated separately, and the larger of the two can be used as the basis for determining the zoom factor. The zoom ratio is equal to a preset target size threshold divided by the current size of the 2D bounding box, but the zoom ratio is limited by the upper limit of the optical zoom capability of the dual-light gimbal camera. If the calculated zoom ratio exceeds the camera's maximum optical zoom ratio, the zoom ratio is set to the maximum optical zoom ratio. Zoom control commands are generated based on the finally determined zoom ratio.

[0077] Furthermore, the zoom control command controls the dual-light gimbal camera to zoom. The zoom lens of the dual-light gimbal camera consists of multiple lens groups. A stepper motor drives the lens groups to move along the optical axis, changing the spacing between the lens groups and thus changing the equivalent focal length. The zoom control command also includes target zoom magnification information. Based on this command, the camera controller drives the stepper motor to rotate the corresponding number of steps, moving the lens group to the target position and completing the zoom operation. After zooming, the shutter of the dual-light gimbal camera is triggered, driving the camera to capture high-resolution visible light and thermal images of the anomalous target at the zoomed focal length. During shooting, the visible light sensor and thermal imaging sensor are simultaneously exposed, recording high-resolution visible light and thermal images of the anomalous target, respectively. Because the camera has completed zooming, the image size of the anomalous target in the image is significantly increased, and the details are much clearer.

[0078] Furthermore, the captured high-resolution visible light and high-resolution thermal images are used as associated image data for confirmed anomaly detection results. Associated image data refers to a collection of image files logically bound to the confirmed anomaly detection results. Specifically, during storage, associated image data is assigned the same anomaly number as the confirmed anomaly detection results, or the file path of the associated image data is written into the data structure of the confirmed anomaly detection results. Furthermore, through this association, the image data corresponding to each anomaly detection result can be quickly and accurately located when generating inspection reports, eliminating the need for manual matching.

[0079] This embodiment eliminates the impact of flight motion on image quality and avoids motion blur by controlling the drone to hover after an anomaly is triggered. By adaptively determining the zoom magnification based on the 2D bounding box size, the abnormal target occupies an appropriate proportion in the image, fully utilizing the effective pixels of the image sensor and improving image detail clarity. Furthermore, by associating and storing high-resolution photos with the detection results, directly accessible image material is provided for subsequent report generation, avoiding the workload of manual searching and matching and improving the automation of data processing.

[0080] In some preferred embodiments, calculating the three-dimensional coordinates of the anomalous target in the world coordinate system based on the real-time six-DOF pose, the real-time gimbal attitude angle, the local sparse point cloud map, and the two-dimensional bounding box corresponding to the confirmed anomaly detection result includes: obtaining the center pixel coordinates of the two-dimensional bounding box corresponding to the confirmed anomaly detection result in the image coordinate system; calculating normalized image coordinates based on the center pixel coordinates and the intrinsic parameter matrix of the dual-light gimbal camera; and constructing a spatial ray emanating from the optical center of the camera based on the normalized image coordinates and the real-time gimbal attitude angle, thereby obtaining the spatial ray direction. The direction vector of the spatial ray is transformed from the camera coordinate system to the world coordinate system according to the real-time six-degree-of-freedom pose, resulting in a spatial ray in the world coordinate system. Based on the positional relationship between the spatial ray in the world coordinate system and each three-dimensional spatial point in the local sparse point cloud map, the three-dimensional spatial point traversed by the spatial ray is determined as the target three-dimensional spatial point. The three-dimensional coordinates of the target three-dimensional spatial point are obtained and used as the initial three-dimensional coordinates of the anomalous target. The initial three-dimensional coordinates are transformed into a geodetic coordinate system to obtain the three-dimensional coordinates of the anomalous target in the world coordinate system.

[0081] In practice, the two-dimensional bounding box only provides the positional information of the anomalous target in the two-dimensional image plane, that is, the pixel position of the anomalous target projected onto the image sensor. This information cannot directly reflect the spatial position of the anomalous target in the three-dimensional real world. Furthermore, to recover the three-dimensional spatial coordinates from the two-dimensional image coordinates, it is necessary to utilize the camera's imaging geometry model, i.e., the pinhole imaging model. In the pinhole imaging model, there is a definite geometric relationship between any point in space and its projection point on the image plane: a ray originating from the camera's optical center and passing through the projection point has a one-to-one correspondence with the position of that point in space. If the direction of this ray can be determined, and combined with the position of the spatial geometric surface through which the ray passes, the three-dimensional coordinates of the spatial point can be determined. Therefore, this embodiment, based on the above geometric principle, converts the two-dimensional image coordinates into three-dimensional world coordinates by constructing a spatial ray and intersecting it with the point cloud map. The specific implementation method is as follows: Obtain the center pixel coordinates of the 2D bounding box corresponding to the confirmed anomaly detection result in the image coordinate system. The image coordinate system is a 2D pixel coordinate system with the top-left corner of the image as the origin, the horizontal axis pointing to the right as the positive x-axis, and the vertical axis pointing downwards as the positive y-axis. Further, the center pixel coordinates are calculated from the coordinates of the top-left and bottom-right corners of the 2D bounding box. Specifically, the average of the top-left and bottom-right x-coordinates is used as the center point x-coordinate, and the average of the top-left and bottom-right y-coordinates is used as the center point y-coordinate. If the 2D bounding box is represented by the center point coordinates plus width and height, then the center point coordinate values ​​are read directly.

[0082] Furthermore, based on the center point pixel coordinates and the intrinsic parameter matrix of the dual-light gimbal camera, normalized image coordinates are calculated. The camera intrinsic parameter matrix is ​​a 3x3 matrix describing the internal optical characteristics of the camera, and its form includes focal length parameters and principal point coordinate parameters. The camera intrinsic parameter matrix is ​​obtained through the camera calibration process, and the calibration method can be Zhang's calibration method or a calibration method based on active vision. Furthermore, normalized image coordinates are the representation of pixel coordinates after transforming them from the image coordinate system to the normalized planar coordinate system. Their physical meaning is the projected position of a spatial point in the camera coordinate system at a distance of 1 along the optical axis. Specifically, the center point pixel coordinates are represented as homogeneous coordinates, i.e., a three-dimensional vector consisting of two-dimensional coordinates plus a value of 1. This homogeneous coordinate vector is multiplied by the inverse of the camera intrinsic parameter matrix to obtain the normalized image coordinates.

[0083] Furthermore, based on the normalized image coordinates and the real-time gimbal attitude angle, a spatial ray emanating from the camera's optical center is constructed, yielding the spatial ray direction vector. The camera's optical center is the optical center of the camera lens; all light rays entering the camera pass through this center before forming an image on the image sensor. The direction of the line connecting the normalized image coordinates and the camera's optical center is the spatial ray direction corresponding to that pixel. Furthermore, since the dual-light gimbal camera has a rotatable gimbal structure, the orientation of the camera's optical axis changes with the movement of the gimbal. The rotation relationship between the camera coordinate system and the gimbal base coordinate system is determined based on the real-time gimbal attitude angle. This allows the spatial ray direction to be transformed from the normalized coordinate system based on the camera's optical axis to the coordinate system based on the gimbal base, resulting in the spatial ray direction vector.

[0084] Furthermore, the spatial ray direction vector is transformed from the camera coordinate system to the world coordinate system based on the real-time six-DOF pose, resulting in a spatial ray in the world coordinate system. The real-time six-DOF pose provides the UAV's spatial position and orientation information in the world coordinate system, specifically a translation vector and a rotation matrix. The spatial ray direction vector is rotated from the camera coordinate system to the world coordinate system based on this rotation matrix, while simultaneously setting the starting point of the spatial ray to the spatial position of the camera's optical center in the world coordinate system. Further, the position of the camera's optical center in the world coordinate system is obtained by adding the UAV's translation vector to the fixed offset of the camera relative to the UAV's mounting position. After the above transformation, a spatial ray in the world coordinate system is obtained, that is, a ray originating from the camera's optical center and extending along a specific direction.

[0085] Furthermore, based on the positional relationship between the spatial ray in the world coordinate system and each 3D spatial point in the local sparse point cloud map, the 3D spatial points traversed by the spatial ray are determined, and these determined 3D spatial points are used as target 3D spatial points. Further, the local sparse point cloud map is a collection of a large number of 3D spatial points, each with precise 3D coordinates in the world coordinate system. The target 3D spatial point can be determined by minimizing the distance between the spatial point and the ray: calculate the perpendicular distance from each 3D spatial point in the local sparse point cloud map to the spatial ray, select all 3D spatial points whose perpendicular distance is less than a preset distance threshold as candidate points, and then select the point with the closest projected distance along the ray direction from the candidate points as the target 3D spatial point. The preset distance threshold can be set according to the point cloud density, for example, it can be set to 0.1 meters.

[0086] Furthermore, the 3D coordinates of the target's 3D spatial points are obtained and used as the initial 3D coordinates of the anomalous target. These initial 3D coordinates are represented in the local world coordinate system used by visual SLAM, with the origin being the location of the UAV during visual SLAM initialization. Further, a geodetic coordinate system transformation is performed on the initial 3D coordinates to obtain the anomalous target's 3D coordinates in the world coordinate system. Geodetic coordinate system transformation refers to converting the coordinates in the visual SLAM's local world coordinate system to standard geographic coordinate system coordinates, such as converting to longitude, latitude, and altitude in the WGS84 coordinate system. Specifically, using the high-precision global positioning information provided by the RTK positioning module onboard the UAV, the precise position and orientation of the origin of the visual SLAM's local world coordinate system in the geographic coordinate system are determined, and the local coordinates are converted to geographic coordinates through a rigid transformation. The transformed 3D coordinates represent the precise spatial location of the anomalous target in the global geographic reference system.

[0087] This embodiment calculates normalized image coordinates using the pixel coordinates of the center point of a 2D bounding box and the camera intrinsic parameter matrix. It then constructs spatial rays by combining these with the gimbal attitude angle. These rays are then transformed to the world coordinate system based on the UAV's six-DOF pose. Finally, the 3D coordinates of the abnormal target are determined by finding the intersection of the rays with a local sparse point cloud map, achieving a precise mapping from 2D image detection results to 3D spatial location. Furthermore, because the pose and point cloud provided by visual SLAM have high local accuracy, and RTK positioning provides a global geographic reference, the final 3D coordinates achieve centimeter-level accuracy, providing precise location data for subsequent maintenance decisions and asset management.

[0088] In some preferred embodiments, the method further includes: after obtaining the three-dimensional coordinates of the abnormal target, obtaining the defect category or anomaly category corresponding to the confirmed anomaly detection result; associating the three-dimensional coordinates of the abnormal target, the defect category or anomaly category, and the high-resolution visible light image and thermal imaging image in the associated image data according to a preset data format to obtain an associated data record; writing the associated data record into the corresponding field of the structured inspection report template to generate a structured inspection report; and transmitting the structured inspection report back to the ground station via a wireless communication link.

[0089] In practice, after calculating the three-dimensional coordinates of the abnormal target, multi-dimensional information related to the confirmed anomaly detection results has been accumulated. This includes the three-dimensional coordinates of the abnormal target in the world coordinate system, the defect category or anomaly category, and high-resolution visible light and high-resolution thermal images from the associated image data. However, this information is stored in different data structures and storage locations. For example, the three-dimensional coordinates are stored in the positioning data structure, the defect category is stored in the detection result data structure, and the images are stored in the file system. Furthermore, this scattered information is inconvenient for subsequent maintenance decisions and asset management, and manually summarizing and organizing this information would take a long time. Therefore, this embodiment automatically generates a structured inspection report by associating and integrating the above information according to a preset format and transmitting it back to the ground station, realizing the real-time archiving and digital management of inspection results. The specific implementation method is as follows: After obtaining the three-dimensional coordinates of the abnormal target in the world coordinate system, the defect category or anomaly category corresponding to the confirmed anomaly detection result is obtained. If the confirmed anomaly detection result originates from the visible light detection result set, the corresponding information is the defect category, such as insulator bursting, wire corrosion, or suspended foreign objects. Furthermore, if the confirmed anomaly detection result originates from the thermal anomaly detection result set, the corresponding information is the anomaly category, such as joint overheating or partial discharge. If the confirmed anomaly detection result is associated with both visible light and thermal anomaly detection results, both the defect category and anomaly category information are obtained simultaneously.

[0090] Furthermore, the 3D coordinates of the abnormal target, the defect category or anomaly category, and the high-resolution visible light and thermal imaging images from the associated image data are linked according to a preset data format to obtain a linked data record. The preset data format can be a structured data format such as JSON or XML. Further, taking JSON format as an example, the linked data record includes a coordinate field to store the longitude, latitude, and altitude values ​​of the 3D coordinates; a category field to store the name of the defect or anomaly category; a visible light image field to store the file path or binary data of the high-resolution visible light image; and a thermal imaging image field to store the file path or binary data of the high-resolution thermal imaging image. Filling the corresponding fields with the above information according to the format requirements forms a structured linked data record.

[0091] Furthermore, the associated data records are written into the corresponding fields of the structured inspection report template to generate a structured inspection report. The structured inspection report template is a predefined report document template, which can be in PDF, Word, or HTML format. The template further defines fields such as report number, generation time, drone number, inspection area, anomaly location, anomaly type, and image attachments. Information from the associated data records is filled into the corresponding fields of the template; for example, 3D coordinates are filled into the anomaly location field, defect category into the anomaly type field, and high-resolution visible light and thermal imaging photos are embedded as attachments into the image attachment field. A complete inspection report is automatically generated based on the template.

[0092] Furthermore, the structured inspection report is transmitted back to the ground station via a wireless communication link. This wireless communication link can be a wireless data transmission channel established between the UAV and the ground station, such as a 4G cellular network, 5G cellular network, or Wi-Fi wireless local area network. The generated inspection report file is then sent to the receiving server at the ground station via this communication link. Furthermore, the transmission operation can be performed immediately after the report is generated to ensure that the ground station can obtain the inspection results in real time. Furthermore, if the communication link signal is weak or unavailable, the inspection report can be temporarily stored in the onboard storage device and transmitted back after communication is restored.

[0093] This embodiment automatically generates a structured inspection report and transmits it back to the ground station by associating and integrating the three-dimensional coordinates of abnormal targets, defect categories or anomaly categories, high-definition visible light photos and thermal imaging photos according to a preset format. This achieves real-time archiving and digital management of inspection results, avoids the manual data entry process, shortens the anomaly information summary cycle, and provides standardized and structured data input for subsequent maintenance decisions and asset management.

[0094] It should be noted that, in this embodiment of the invention, embodied intelligence is manifested in a complete closed loop of perception, decision-making, and execution. In the perception stage, a dual-light gimbal camera continuously acquires multimodal video streams and uses visual SLAM processing to construct a six-degree-of-freedom pose and a local sparse point cloud map of the UAV in the world coordinate system in real time. Further, in the decision-making stage, a pre-trained visible light target detection model and a thermal anomaly detection model are used in parallel inference to obtain a detection result set. Anomaly detection results are confirmed through anomaly judgment, and the zoom factor is determined based on the ratio of the two-dimensional bounding box to a preset target size threshold. Further, in the execution stage, an onboard edge computing device generates hovering control commands and sends them to the flight controller to control the UAV's hovering. It also generates zoom control commands and sends them to the dual-light gimbal camera to control lens zoom. After hovering and zooming are completed, the dual-light gimbal camera is driven to capture images of abnormal targets. Further, the physical actions in the execution stage directly change the spatial state and optical parameters of the UAV and the dual-light gimbal camera. This state change is then fed back to the perception stage through visual SLAM processing and detection inference in subsequent frames, forming a closed loop of perception-decision-execution. Therefore, the UAV power line inspection method in this embodiment does not rely solely on onboard computing devices to passively process image data. Instead, it transforms decision-making results into active actions in the physical world through hovering control, zoom control, and spatial positioning calculations, enabling the UAV itself, dual-light gimbal camera, and onboard edge computing devices to jointly constitute an embodied intelligent system.

[0095] Furthermore, in one specific implementation, the hovering control command is generated and executed as follows: After confirming the anomaly detection result, the onboard edge computing device generates a hovering control command containing the target hovering position. The target hovering position is determined based on the translation vector in the real-time six-degree-of-freedom pose of the UAV at the current moment, ensuring the UAV maintains its current position. The hovering control command is sent to the flight controller via the flight control communication interface. After receiving the hovering control command, the flight controller adjusts the speed of the four rotor motors in real time using a proportional-integral-derivative control algorithm, ensuring the UAV maintains a substantially constant three-axis position and attitude angle in its current spatial position. In the hovering state, the horizontal position drift of the UAV can be controlled within centimeters, providing a stable physical platform for subsequent zoom shooting.

[0096] Further, in one specific embodiment, the specific generation and execution of the zoom control command is as follows: The airborne edge computing device obtains the width and height of the two-dimensional bounding box corresponding to the confirmed anomaly detection result in the image, calculates the ratio of the width to a preset target size threshold and the ratio of the height to a preset target size threshold, and takes the larger of the two as the zoom magnification. The zoom magnification is compared with the maximum optical zoom magnification of the dual-light gimbal camera. If the zoom magnification is greater than the maximum optical zoom magnification, the zoom magnification is set to the maximum optical zoom magnification. A zoom control command is generated based on the finally determined zoom magnification, and the zoom control command contains the target zoom magnification information. The zoom control command is sent to the controller of the dual-light gimbal camera through the camera control interface. The controller drives the stepper motor in the zoom lens to rotate a corresponding number of steps according to the zoom control command, so that the lens group moves along the optical axis to the target position, completing the zoom operation.

[0097] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0098] Please see Figure 2 , Figure 2 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 can be a terminal or a server, wherein the server can be a standalone server or a server cluster composed of multiple servers.

[0099] The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.

[0100] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it enables the processor 502 to perform a method for power line inspection using an embodied intelligent unmanned aerial vehicle.

[0101] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.

[0102] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute an embodied intelligent unmanned aerial vehicle power inspection method.

[0103] The network interface 505 is used for network communication with other devices. Those skilled in the art will understand that the above structure is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. A specific computer device 500 may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements.

[0104] The processor 502 is used to run a computer program 5032 stored in a memory to implement the steps of the embodied intelligent unmanned aerial vehicle power inspection method provided in any of the above method embodiments.

[0105] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0106] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0107] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program. When executed by a processor, the computer program causes the processor to perform the steps of the embodied intelligent unmanned aerial vehicle (UAV) power line inspection method provided in any of the above-described method embodiments.

[0108] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk, or any other physical storage medium capable of storing program code. The computer-readable storage medium can be non-volatile or volatile.

[0109] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0110] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0111] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0112] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0113] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0114] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, this invention is also intended to include these modifications and variations as long as they fall within the scope of the claims of this invention and their equivalents.

[0115] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for power line inspection using an embodied intelligent unmanned aerial vehicle (UAV), characterized in that, Airborne edge computing devices used on drones include: In response to receiving a multimodal video stream, the multimodal video stream is parsed to obtain a synchronized visible light frame sequence and a thermal imaging frame sequence, wherein the multimodal video stream includes time-synchronized visible light frames and thermal imaging frames. Visual SLAM processing is performed based on the visible light frame sequence to obtain the real-time six-degree-of-freedom pose and local sparse point cloud map of the UAV in the world coordinate system. The visible light frame sequence is input into a pre-trained visible light target detection model to obtain a visible light detection result set; the thermal imaging frame sequence is input into a pre-trained thermal anomaly detection model to obtain a thermal anomaly detection result set. Determine whether there are any abnormal detection results in the visible light detection result set and the thermal anomaly detection result set; If the anomaly detection result exists, the confirmed anomaly detection result is determined from the visible light detection result set or the thermal anomaly detection result set, and the real-time gimbal attitude angle of the dual-light gimbal camera that acquires the multimodal video stream is obtained. Based on the real-time six-degree-of-freedom pose, the real-time gimbal attitude angle, the local sparse point cloud map, and the two-dimensional bounding box corresponding to the confirmed anomaly detection result, the three-dimensional coordinates of the anomaly target in the world coordinate system are calculated.

2. The method for power line inspection using a unibody intelligent unmanned aerial vehicle (UAV) according to claim 1, characterized in that, In response to receiving a multimodal video stream, the multimodal video stream is parsed to obtain a synchronized visible light frame sequence and a thermal imaging frame sequence, including: Visible light data stream and thermal imaging data stream are separated from the multimodal video stream. The visible light frame sequence is obtained through the visible light data stream, and the thermal imaging frame sequence is obtained through the thermal imaging data stream. Read the timestamp of each frame in the visible light frame sequence and the timestamp of each frame in the thermal imaging frame sequence; The timestamps of each frame in the visible light frame sequence and the timestamps of each frame in the thermal imaging frame sequence are matched. Visible light frames and thermal imaging frames with timestamp differences less than a preset time tolerance threshold are associated as synchronized frame pairs to form the synchronized visible light frame sequence and thermal imaging frame sequence.

3. The method for power line inspection using a unibody intelligent unmanned aerial vehicle according to claim 1, characterized in that, The step of inputting the visible light frame sequence into a pre-trained visible light target detection model to obtain a visible light detection result set includes: Each visible light image in the visible light frame sequence is input into the pre-trained visible light target detection model to obtain the defect category, first confidence level, and bounding box of each visible light detection box output by the pre-trained visible light target detection model. Determine whether the first confidence level of each visible light detection frame is lower than a preset first threshold. If the first confidence level of the visible light detection box is lower than the preset first threshold, the corresponding visible light detection box is discarded from the candidate detection results. If the first confidence level of the visible light detection frame is not lower than the preset first threshold, then the defect category, first confidence level, and bounding box of the corresponding visible light detection frame are retained, and the retained defect category, first confidence level, and bounding box of each visible light detection frame are used as the visible light detection result set.

4. The method for power line inspection using an embodied intelligent unmanned aerial vehicle according to claim 1, characterized in that, The step of inputting the thermal imaging frame sequence into a pre-trained thermal anomaly detection model to obtain a thermal anomaly detection result set includes: Each frame of the thermal imaging image in the thermal imaging frame sequence is input into the pre-trained thermal anomaly detection model to obtain the anomaly category, temperature characteristics and second confidence level of each thermal anomaly region output by the pre-trained thermal anomaly detection model. Determine whether the second confidence level of each of the thermal anomaly regions is lower than a preset second threshold; If the second confidence level of the thermal anomaly region is lower than the preset second threshold, the corresponding thermal anomaly region will be discarded from the candidate detection results. If the second confidence level of the thermal anomaly region is not lower than the preset second threshold, then the anomaly category, temperature feature and second confidence level of the corresponding thermal anomaly region are retained, and the retained anomaly category, temperature feature and second confidence level of each thermal anomaly region are used as the thermal anomaly detection result set.

5. The method for power line inspection using a unibody intelligent unmanned aerial vehicle according to claim 1, characterized in that, After determining the confirmed anomaly detection result, the method further includes: Control the drone to hover; After the drone hovers, the two-dimensional bounding box corresponding to the confirmed anomaly detection result is obtained. The zoom factor is determined based on the ratio of the size of the two-dimensional bounding box in the image to a preset target size threshold. A zoom control command is generated based on the zoom factor. The zoom control command controls the dual-light gimbal camera to zoom, and drives the dual-light gimbal camera to capture high-definition visible light photos and thermal images of the abnormal target at the zoomed focal length. The high-resolution visible light photograph and the thermal imaging photograph are used as associated image data storage for the confirmed anomaly detection results.

6. The method for power line inspection using a unibody intelligent unmanned aerial vehicle according to claim 1, characterized in that, The calculation of the three-dimensional coordinates of the anomalous target in the world coordinate system based on the real-time six-degree-of-freedom pose, the real-time gimbal attitude angle, the local sparse point cloud map, and the two-dimensional bounding box corresponding to the confirmed anomaly detection results includes: Obtain the center pixel coordinates of the two-dimensional bounding box corresponding to the confirmed anomaly detection result in the image coordinate system; Based on the center point pixel coordinates and the intrinsic parameter matrix of the dual-light gimbal camera, calculate the normalized image coordinates; Based on the normalized image coordinates and the real-time gimbal attitude angle, a spatial ray originating from the camera optical center is constructed to obtain the spatial ray direction vector. Based on the real-time six-degree-of-freedom pose, the spatial ray direction vector is transformed from the camera coordinate system to the world coordinate system to obtain the spatial ray in the world coordinate system; Based on the positional relationship between the spatial ray in the world coordinate system and each three-dimensional spatial point in the local sparse point cloud map, the three-dimensional spatial point through which the spatial ray passes is determined as the target three-dimensional spatial point. Obtain the three-dimensional coordinates of the target three-dimensional spatial point, and use the three-dimensional coordinates of the target three-dimensional spatial point as the initial three-dimensional coordinates of the abnormal target; The initial three-dimensional coordinates are transformed into a geodetic coordinate system to obtain the three-dimensional coordinates of the anomalous target in the world coordinate system.

7. The method for power line inspection using a unibody intelligent unmanned aerial vehicle according to claim 5, characterized in that, The method further includes: After obtaining the three-dimensional coordinates of the abnormal target, the defect category or abnormality category corresponding to the confirmed abnormality detection result is obtained; The three-dimensional coordinates of the abnormal target, the defect category or anomaly category, and the high-resolution visible light and thermal images in the associated image data are associated according to a preset data format to obtain an associated data record. Write the associated data records into the corresponding fields of the structured inspection report template to generate a structured inspection report; The structured inspection report is transmitted back to the ground station via a wireless communication link.

8. The method for power line inspection using a unibody intelligent unmanned aerial vehicle according to claim 1, characterized in that, The step of performing visual SLAM processing based on the visible light frame sequence to obtain the real-time six-degree-of-freedom pose and local sparse point cloud map of the UAV in the world coordinate system includes: Obtain the current frame visible light image from the visible light frame sequence, and take the previous frame visible light image in the visible light frame sequence as the previous frame visible light image; ORB feature points are extracted from the visible light image of the current frame to obtain the feature point set of the current frame; ORB feature points are extracted from the previous visible light image to obtain the previous frame feature point set; The current frame feature point set is matched with the previous frame feature point set to obtain a set of matched feature point pairs. Based on the set of matched feature points and the intrinsic parameter matrix of the dual-light gimbal camera, visual SLAM front-end tracking is performed to obtain the relative pose change of the UAV at the time corresponding to the current frame of visible light image. Obtain the real-time six-degree-of-freedom pose of the previous moment, and update the real-time six-degree-of-freedom pose of the UAV in the world coordinate system based on the relative pose change and the real-time six-degree-of-freedom pose of the previous moment. Based on the matched feature point pair set and the real-time six-degree-of-freedom pose, local mapping is performed, triangulation is used to generate three-dimensional spatial points, and the local sparse point cloud map is obtained.

9. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1-8.