A method, system, device and storage medium for detecting an icing area of a conductor

By combining a pre-trained semantic segmentation model with natural language, an initial binary mask for the icing region is generated and morphological processing is performed, which solves the problem of inaccurate icing boundary recognition in existing technologies and achieves high-precision icing thickness estimation and detection.

CN123160428APending Publication Date: 2026-11-24STATE GRID HUNAN ELECTRIC COMPANY DISASTER PREVENTION & REDUCTION CENT +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611053744.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-15
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing infrared image segmentation methods rely on fixed thresholds and shallow machine learning, which have poor generalization ability, make it difficult to accurately identify irregular ice boundaries, and are cumbersome to operate.

Method used

A pre-trained semantic segmentation model is used in conjunction with natural language semantic text to perform open-vocabulary semantic segmentation, generating an initial binary mask for the icing region. Noise is eliminated by morphological opening operation, and thickness estimation is performed using principal component analysis and RANSAC algorithm to generate icing region detection results.

Benefits of technology

It improves the accuracy and generalization ability of icing boundary identification, reduces operational complexity, and enhances detection accuracy and adaptability in complex backgrounds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160428A_ABST
    Figure CN123160428A_ABST
Patent Text Reader

Abstract

This disclosure relates to the field of icing detection technology, and in particular to a method, system, device, and storage medium for detecting icing areas on power transmission lines. The method includes: acquiring an infrared thermal imaging image of a power transmission line and receiving natural language semantic text commands input by a user; inputting the infrared thermal imaging image and the natural language semantic text into a pre-trained semantic segmentation model, performing open-vocabulary semantic segmentation on the infrared thermal imaging image to generate an initial binary mask for the icing area corresponding to the natural language semantic text; performing isolated noise removal on the initial binary mask to obtain an optimized mask; estimating the thickness of each icing area based on the optimized mask to obtain an icing thickness estimation result for each icing area; and determining the icing area detection result based on the optimized mask and the icing thickness estimation results for each icing area, which can accurately identify icing boundaries.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of icing detection technology, and in particular to a method, system, device and storage medium for detecting icing areas on conductors. Background Technology

[0002] In recent years, some studies have attempted to introduce infrared imaging technology to improve target recognition by utilizing the difference in thermal radiation between iced and exposed wires. However, current infrared image segmentation methods mostly rely on fixed thresholds, edge detection, or shallow machine learning models, resulting in poor generalization ability. Furthermore, they typically require users to provide interactive prompts through clicking, selecting boxes, or other methods, making the process cumbersome.

[0003] Existing methods typically assume that the icing layer is an ideal concentric cylinder, estimating the thickness by subtracting the diameter of a standard conductor from the outer contour diameter. However, actual icing patterns are often irregular, exhibiting eccentricity, localized accumulation, or fractures, leading to significant errors in these methods.

[0004] Therefore, automatic detection methods based on visible light images are easily affected by changes in illumination, shadows, and complex backgrounds, making it difficult to accurately identify ice boundaries. Summary of the Invention

[0005] To address the aforementioned technical problems, this disclosure provides a method, system, device, and storage medium for detecting icing areas on conductors.

[0006] This disclosure provides a method for detecting icing areas on a conductor, including: Acquire infrared thermal imaging images of power transmission lines and receive natural language semantic text commands input by the user; The infrared thermal imaging image and the natural language semantic text are input into a pre-trained semantic segmentation model to perform open-vocabulary semantic segmentation on the infrared thermal imaging image and generate an initial binary mask of the icing region corresponding to the natural language semantic text. The initial binary mask is subjected to isolated noise cancellation to obtain an optimized mask; Based on the optimized mask, the thickness of each icing region is estimated to obtain the icing thickness estimation results for each icing region. Based on the optimized mask and the ice thickness estimation results of each ice-covered region, the detection results of the ice-covered region are determined.

[0007] Further, the process of performing isolated noise removal on the initial binary mask to obtain an optimized mask includes: A morphological opening operation is performed on the initial binary mask to eliminate isolated noise, and connected regions with an area greater than a preset area threshold are retained, while connected regions with an area less than or equal to the area threshold are deleted to obtain the optimized mask.

[0008] Further, the step of estimating the thickness of each icing region based on the optimized mask to obtain the icing thickness estimation result for each icing region includes: Extract the outer contour point set of the connected region, perform principal component analysis on the outer contour point set to obtain the principal direction vector reflecting the extension direction of the icing region; The normal direction is determined based on the principal direction vector, and a local coordinate system for the icy area is established. The normal vector is then determined based on the local coordinate system. Based on the projection values ​​of each contour point along the normal vector, and using the median of the projection values ​​as the segmentation threshold, the outer contour point set is divided into a first side point set and a second side point set. Line fitting is performed on the first side point set and the second side point set respectively to obtain the boundary fitting line of the first side point set and the boundary fitting line of the second side point set; The ice thickness estimation result of the connected region is determined based on the vertical distance between the boundary fitting line of the first side point set and the boundary fitting line of the second side point set.

[0009] Further, determining the icing region detection result based on the optimized mask and the icing thickness estimation results of each icing region includes: Based on the diameter of the conductor when it is not covered with ice, the pixel diameter of the image when the conductor is not covered with ice, and the pixel estimation results of the ice contour width, the physical thickness value of the conductor covered with ice is determined, and the actual physical thickness value is marked in the corresponding ice-covered area in the infrared thermal imaging image.

[0010] This disclosure also provides a system for detecting icing areas on conductors, including: The acquisition module is used to acquire infrared thermal imaging images of the power transmission lines and receive natural language semantic text commands input by the user. The segmentation module is used to input the infrared thermal imaging image and the natural language semantic text into a pre-trained semantic segmentation model, perform open-vocabulary semantic segmentation on the infrared thermal imaging image, and generate an initial binary mask of the icing region corresponding to the natural language semantic text. An elimination module is used to perform isolated noise elimination on the initial binary mask to obtain an optimized mask; The estimation module is used to estimate the thickness of each icing region based on the optimized mask, and obtain the icing thickness estimation result of each icing region; The detection module is used to determine the detection result of the icing area based on the optimized mask and the icing thickness estimation results of each icing area.

[0011] Furthermore, the elimination module is specifically used for: A morphological opening operation is performed on the initial binary mask to eliminate isolated noise, and connected regions with an area greater than a preset area threshold are retained, while connected regions with an area less than or equal to the area threshold are deleted to obtain the optimized mask.

[0012] Furthermore, the estimation module is specifically used for: Extract the outer contour point set of the connected region, perform principal component analysis on the outer contour point set to obtain the principal direction vector reflecting the extension direction of the icing region; The normal direction is determined based on the principal direction vector, and a local coordinate system for the icy area is established. The normal vector is then determined based on the local coordinate system. Based on the projection values ​​of each contour point along the normal vector, and using the median of the projection values ​​as the segmentation threshold, the outer contour point set is divided into a first side point set and a second side point set. Line fitting is performed on the first side point set and the second side point set respectively to obtain the boundary fitting line of the first side point set and the boundary fitting line of the second side point set; The ice thickness estimation result of the connected region is determined based on the vertical distance between the boundary fitting line of the first side point set and the boundary fitting line of the second side point set.

[0013] Furthermore, the detection module is specifically used for: Based on the diameter of the conductor when it is not covered with ice, the pixel diameter of the image when the conductor is not covered with ice, and the pixel estimation results of the ice contour width, the physical thickness value of the conductor covered with ice is determined, and the actual physical thickness value is marked in the corresponding ice-covered area in the infrared thermal imaging image.

[0014] This disclosure also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the wire icing area detection method.

[0015] This disclosure also provides a computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, describe the steps of the wire icing area detection method.

[0016] The technical solution provided in this disclosure has the following advantages compared with the prior art: The system acquires infrared thermal images of power transmission lines and receives natural language semantic text commands input by the user. It then inputs the infrared thermal images and the natural language semantic text into a pre-trained semantic segmentation model to perform open-vocabulary semantic segmentation on the infrared thermal images, generating an initial binary mask for the icing region corresponding to the natural language semantic text. The initial binary mask undergoes isolated noise removal to obtain an optimized mask. Based on the optimized mask, the thickness of each icing region is estimated to obtain the icing thickness estimation results for each icing region. Based on the optimized mask and the icing thickness estimation results for each icing region, the icing region detection results are determined, enabling accurate identification of icing boundaries. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0018] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.

[0019] Figure 1 A schematic diagram of a method for detecting icing areas on conductors provided in an embodiment of this disclosure; Figure 2 A schematic diagram illustrating the method for obtaining icing thickness estimation results according to an embodiment of this disclosure; Figure 3 This is a schematic diagram of a conductor icing area detection system provided in an embodiment of this disclosure. Detailed Implementation

[0020] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0021] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0022] Figure 1 This is a schematic diagram of the conductor icing area detection method provided in this embodiment of the disclosure; as shown. Figure 1 As shown, a method for detecting icing areas on a conductor includes: Step S1: Acquire an infrared thermal imaging image of the power transmission line and receive natural language semantic text instructions input by the user. In this embodiment, infrared thermal imaging images can be collected by a drone equipped with an infrared thermal imager, by a fixed infrared camera installed on a power line tower, or by an inspection robot, a vehicle-mounted inspection platform, or a handheld infrared thermal imager.

[0023] To ensure that the subsequent semantic segmentation model can accurately identify the icy area, it is preferable to acquire a 16-bit grayscale infrared image or a pseudo-color infrared image formed by temperature mapping. The 16-bit grayscale image can completely preserve the target temperature information, while the pseudo-color image can more intuitively reflect the differences between different temperature regions, thereby improving the model's ability to learn the thermal features of the icy area.

[0024] While acquiring images, the system receives natural language semantic text commands input by the user. This text directly describes the target the user is currently interested in, allowing the model to recognize different targets based on different textual descriptions without retraining, thus improving the algorithm's adaptability and scalability. In a preferred embodiment, when the user does not actively input semantic text, a preset text is automatically invoked as the default semantic prompt, such as "detect all iced conductor areas," ensuring the detection process can be executed automatically. In another implementation, semantic text can be automatically generated based on the inspection task. For example, after the scheduling system issues an "icing inspection task," the background automatically generates the corresponding semantic prompt, eliminating the need for manual input. Furthermore, speech recognition technology can be combined, allowing inspection personnel to directly input their detection needs via voice, which is then converted into text by the speech recognition module and input into the subsequent model, further enhancing the convenience of on-site inspections.

[0025] By simultaneously acquiring infrared thermal imaging images and natural language semantic text, a foundation for the joint input of image and language information is established, providing the necessary data source for subsequent cross-modal information fusion of vision-language models. This not only enables the identification of icy targets using temperature distribution features in infrared images, but also allows for accurate understanding of the user's detection intent by combining natural language descriptions. This improves the accuracy and generalization ability of icy area detection in complex backgrounds, avoiding the problem of re-collecting samples and retraining models for each type of detection target.

[0026] Step S2: Input the infrared thermal imaging image and natural language semantic text into the pre-trained semantic segmentation model, perform open-vocabulary semantic segmentation on the infrared thermal imaging image, and generate an initial binary mask of the icing area corresponding to the natural language semantic text. In this embodiment, the pre-trained semantic segmentation model refers to a visual-language model that has been trained using massive amounts of image and text data and possesses image understanding and language understanding capabilities. The model typically includes three parts: an image encoder, a text encoder, and a segmentation decoder. The image encoder extracts texture features, edge features, temperature distribution features, and spatial structure features from infrared thermal imaging images, converting the original image into a high-dimensional image feature vector. The text encoder encodes natural language semantic text, converting the user-inputted text into a text feature vector that reflects semantic meaning. Subsequently, the segmentation decoder fuses image features and text features, establishes a correspondence between image regions and text semantics, and outputs the probability value of each pixel belonging to the target region, thereby forming a target probability map covering the entire image. Open-vocabulary semantic segmentation refers to a model that does not require retraining for a fixed category but can dynamically understand the target to be detected based on the input natural language, achieving pixel-level segmentation of open-category targets. For example, when the input is "detect icy conductor area", the model outputs the icy area; when the input is "detect insulator", it outputs the insulator area; when the input is "detect icicle", it can locate the icicle area, thus having strong openness and scalability.

[0027] Binarization is performed on the output probability map using a set probability threshold. Pixels larger than the threshold are assigned as target regions, and pixels smaller than the threshold are assigned as background regions, thus generating an initial binary mask for the icing area. A binary mask is an image containing only two types of pixels: target and background. The target region is typically assigned a value of 1 or 255, and the background region is assigned a value of 0. It can intuitively represent the location, shape, and contour information of the icing area, providing basic data for subsequent mask optimization and thickness measurement.

[0028] In a preferred embodiment, the pre-trained semantic segmentation model can employ a visual-language model that supports open-vocabulary semantic segmentation, such as the UniPixel model, Grounded-SAM model, or SEEM model; alternatively, it can employ a domain-fine-tuned visual-language model to better adapt to the temperature characteristics of infrared inspection images; furthermore, infrared image enhancement processing can be added before model input, such as temperature normalization, local contrast enhancement, pseudo-color mapping, or noise suppression, to improve the model's ability to identify weakly iced areas and edge regions. By jointly modeling image information and semantic information, the model can fully utilize the temperature distribution features in infrared images and the semantic constraints in natural language to achieve automatic localization of iced areas. This not only reduces the workload of traditional manual annotation and fixed-class training but also enhances the model's generalization ability under different weather conditions, backgrounds, and inspection scenarios, providing accurate and reliable target area information for subsequent mask optimization, icing thickness estimation, and icing detection result generation.

[0029] Step S3: Perform isolated noise removal on the initial binary mask to obtain the optimized mask; In this embodiment, although the open-vocabulary semantic segmentation model can accurately locate the icing area, it is still affected by factors such as infrared image noise, background heat source interference, conductor surface temperature changes, complex environment, and model prediction errors. Therefore, the initial binary mask output may still contain a small number of false detection areas, such as small isolated noise points, edge burrs, local voids, or disconnected fragmented areas. If the initial binary mask is directly used for subsequent thickness measurement, it can easily lead to incomplete contour extraction, unstable boundary fitting, and even large errors in the icing thickness calculation results. Therefore, optimization of the initial binary mask is necessary. Morphological opening operations can be used to eliminate isolated noise. Morphological opening is a fundamental processing method in image morphology, consisting of erosion and dilation operations. Erosion removes small isolated targets, while dilation restores the general outline of the true target. Therefore, it effectively removes scattered noise while preserving the main structure of the icy area. Subsequently, connected component analysis is performed on the mask after the opening operation, retaining only connected regions with an area larger than a preset area threshold and deleting smaller targets, thereby further filtering out false detection areas. The resulting optimized mask not only more accurately describes the true outline of the icy area but also features continuous boundaries, less noise, and complete regions, providing a stable and reliable data foundation for subsequent contour extraction and thickness estimation. This effectively reduces the impact of false detection areas on thickness measurement results, enabling the system to adapt to power line inspection scenarios under different backgrounds, weather conditions, and shooting conditions.

[0030] Specifically, step S3 involves eliminating isolated noise from the initial binary mask to obtain an optimized mask. This includes performing a morphological opening operation on the initial binary mask to eliminate isolated noise, retaining connected regions with an area greater than a preset area threshold, and deleting connected regions with an area less than or equal to the area threshold to obtain the optimized mask.

[0031] Specifically, the initial binary mask undergoes isolated noise removal to obtain an optimized mask that accurately reflects the contour of the icy region. Morphological opening is performed on the initial binary mask, using erosion to remove small, discontinuous isolated targets. Dilation is then used to restore the overall contour of the true icy region, resulting in smoother, more continuous boundaries for the remaining target areas. After morphological opening, connected component analysis is performed on the processed mask, counting the number of pixels in each connected component and using this count as the region area. If the area of ​​a connected component is greater than a preset area threshold, the region is considered to meet the size requirements of the true icy region and is retained. If the area of ​​a connected component is less than or equal to the area threshold, it is determined to be a false target generated by environmental noise, thermal reflection, or model misdetection and is deleted, ultimately yielding the optimized mask.

[0032] The preset area threshold can be set based on image resolution, drone flight altitude, lens focal length, and the typical size of the wire in the image. It can also be automatically adjusted based on historical sample statistics to adapt to different inspection scenarios. By combining morphological processing and area filtering, while preserving the complete outline of the real icing area as much as possible, isolated noise and scattered false detection targets are effectively removed. This gives the optimized mask the characteristics of continuous boundaries, complete regions, and less noise, thus improving the measurement accuracy of the entire detection process.

[0033] Step S4: Based on the optimized mask, the thickness of each icing region is estimated to obtain the icing thickness estimation results for each icing region; In this embodiment, since the optimized mask has accurately described the boundary of the icing region, there is no need to perform target detection again. Instead, geometric analysis is directly performed on each icing region. The outer contour point set of each icing region is extracted. The outer contour point set refers to the set of all pixels constituting the outermost boundary of the icing region, which can completely reflect the geometry of the icing region. Subsequently, local geometric features of the icing region are established based on the contour point set, the extension direction of the conductor and the thickness measurement direction are determined, and then the two side boundaries of the icing region are determined according to the spatial distribution of the contour points. The distance between the two side boundaries is calculated and used as the pixel-level thickness estimate of the icing region. Principal component analysis can be used to determine the main direction of the icing region. The contour points are divided into two side boundaries using normal projection. Then, the RANSAC algorithm is used to fit two boundary lines respectively. Finally, the vertical distance between the two fitted lines is calculated as the width of the icing contour. Principal component analysis is a commonly used data dimensionality reduction and direction analysis method that can automatically determine the extension direction of the conductor based on the distribution of contour points, so that the thickness measurement is not affected by the tilt angle of the conductor. The RANSAC algorithm is a random sampling consensus algorithm with strong resistance to outliers. It can stably complete boundary fitting even when there are local missing points, noise points or irregular edges in the contour points, improve the accuracy of thickness measurement, output the icing thickness estimation results corresponding to each icing area, and improve the practical value of the intelligent inspection system for transmission lines.

[0034] Figure 2 This is a schematic diagram illustrating the method for obtaining icing thickness estimation results according to an embodiment of this disclosure; as shown. Figure 2 As shown, specifically, step S4, based on the optimized mask, estimates the thickness of each icing region to obtain the icing thickness estimation results for each icing region, including: step S41, extracting the outer contour point set of the connected region, performing principal component analysis on the outer contour point set to obtain the principal direction vector reflecting the extension direction of the icing region; step S42, determining the normal direction based on the principal direction vector, establishing a local coordinate system for the icing region, and determining the normal vector based on the local coordinate system; step S43, dividing the outer contour point set into a first side point set and a second side point set based on the projection values ​​of each contour point along the normal vector, and using the median of the projection values ​​as the segmentation threshold; step S44, performing line fitting on the first side point set and the second side point set respectively to obtain the boundary fitting line of the first side point set and the boundary fitting line of the second side point set; step S45, determining the icing thickness estimation result of the connected region based on the vertical distance between the boundary fitting line of the first side point set and the boundary fitting line of the second side point set.

[0035] Specifically, firstly, the outer contour point set is extracted for each connected region in the optimized mask, and then principal component analysis is used to obtain the principal direction vector reflecting the overall extension trend of the icy area. The principal direction vector represents the direction in which the contour points are most concentrated, and it can reflect the actual extension direction of the conductor in the current image.

[0036] Subsequently, a local coordinate system for the icing area is established based on the principal direction vector, and a normal vector perpendicular to the principal direction is determined so that subsequent thickness measurements are always performed laterally along the traverse without being affected by changes in the traverse tilt angle.

[0037] Furthermore, all contour points are projected onto the normal vector direction, and the median of each projection value is used as the segmentation threshold to automatically divide the contour points into a first side point set and a second side point set. The median, as a robust statistical measure, is not easily affected by a small number of outliers, thus improving the stability of the contour division. After the contour points are divided into sides, straight line fitting is performed on the first and second side point sets respectively to obtain the corresponding boundary fitting lines. Straight line fitting refers to using mathematical methods to find a straight line that best describes the overall distribution trend of the boundary points, so that local boundary undulations and noise points do not directly affect the overall boundary position. Preferably, the RANSAC algorithm can be used to complete the boundary fitting to improve the tolerance of the fitting process to outliers.

[0038] After obtaining two fitted boundary lines, the perpendicular distance between the two fitted lines is further calculated, and this distance is used as the estimated ice thickness of the current icing area. Since the thickness measurement direction is always based on a local coordinate system, the obtained thickness result remains consistent even if the guide wire is rotated at any angle, thus improving measurement accuracy. By establishing a local coordinate system to achieve adaptive adjustment of the measurement direction, and combining contour segmentation and boundary fitting to complete the thickness calculation, not only is the directional error caused by directly using image coordinate measurement avoided, but the algorithm's adaptability to local contour gaps, boundary noise, and changes in ice shape is also enhanced, thus obtaining a more accurate ice thickness estimation result.

[0039] Step S5: Based on the optimized mask and the ice thickness estimation results of each ice-covered area, determine the detection results of the ice-covered area.

[0040] In this embodiment, the location, spatial extent, and corresponding thickness information of the icing area are correlated and fused to form a complete detection result. The spatial location and boundary extent of each icing area are determined based on the optimized mask, and a unique identifier is established for each icing area based on connected component analysis. Then, the icing thickness estimation results are matched to the corresponding icing areas according to the correspondence, forming a one-to-one correspondence between areas and thicknesses, thereby establishing a complete icing detection data object.

[0041] After data association is completed, the final icing area detection results can be generated according to pre-defined output rules. For example, an optimized mask can be overlaid on the original infrared thermal imaging image in a semi-transparent manner, an outline can be drawn on the boundary of the icing area, and the icing thickness value can be marked at the center of the corresponding area, allowing inspection personnel to intuitively understand the location and degree of icing. The detection results can also be converted into structured data, including information such as the icing area number, area coordinates, outline point set, area, icing thickness, and detection time, and uploaded to the transmission line status monitoring platform or power grid operation and maintenance management system to achieve remote monitoring, historical data storage, and trend analysis. The fusion of icing area information and thickness information is achieved, realizing unified organization, unified expression, and unified output of the detection results. The final output is no longer a single image or a single measurement value, but a comprehensive detection result containing multi-dimensional information such as target location, geometry, and thickness parameters. This improves the system's automation level and detection accuracy.

[0042] Specifically, in step S5, based on the optimized mask and the ice thickness estimation results for each icing region, the icing region detection results are determined, including: Based on the diameter of the conductor when it is not covered with ice, the pixel diameter of the image when the conductor is not covered with ice, and the pixel estimation results of the ice contour width, the physical thickness value of the conductor ice is determined, and the actual physical thickness value is marked in the corresponding ice area in the infrared thermal imaging image.

[0043] Specifically, since the thickness estimation results are usually in pixel units, the actual diameter of the conductor when it is not covered with ice, the pixel diameter of the conductor in the image when it is not covered with ice, and the pixel estimation results of the current ice contour width are further combined to establish the proportional relationship between the pixel size and the actual size, so as to calculate the actual physical thickness value of the conductor covered with ice.

[0044] After obtaining the actual physical thickness, the thickness value is marked on the corresponding icing area in the infrared thermal imaging image, allowing inspection personnel to intuitively view the location and degree of icing in each area. It can also automatically classify icing levels based on physical thickness, such as light, moderate, and heavy icing, and use different colors for identification. By fusing the spatial location information obtained from optimized masking with the icing thickness estimation results, accurate positioning of icing areas is achieved, improving the readability and practicality of the detection results and providing reliable data support for intelligent inspection and operation maintenance of transmission lines.

[0045] In some possible ways, infrared image acquisition involves using a drone equipped with an infrared thermal imager or a fixed camera to photograph the power transmission line from a safe distance, saving the image as a 16-bit grayscale or pseudo-color image. The image should clearly show the temperature distribution of the conductor and its surrounding environment.

[0046] Semantic text input: Users enter natural language commands on the terminal, such as: "Please detect all ice-covered conductor regions in the image." This text will serve as a semantic cue for the general vision-language model. Users can also choose not to input text; the default initial text input in the method is set to "detect all ice-covered conductor regions."

[0047] Semantic-driven segmentation: Semantic segmentation of images is performed using a general vision-language model (such as UniPixel). UniPixel is a general vision-language model that supports open-vocabulary semantic segmentation. Its architecture includes: a ViT-based image encoder; a Transformer-based text encoder (typically based on CLIP initialization); and a multimodal fusion decoder for generating pixel-level masks consistent with the semantics of the input text. The acquired infrared images of icing on power transmission line conductors are used. And text entered manually by the user Input into the UniPixel model, output probability map Set a threshold Generate an initial binary mask. .

[0048] Step 4: Post-mask processing. First, perform morphological opening operations on the mask to remove isolated noise: ; in, for The all-1 structural element, and These represent corrosion and expansion operations, respectively.

[0049] Then retain an area greater than the threshold The connected regions of pixels are used to obtain an optimized mask. .

[0050] Step 5: Estimating ice thickness. Optimize the mask. Each valid connected region in Perform the following sub-steps: Contour extraction: Obtain all external contour points and merge them into a point set. ; Principal direction estimation: Calculation of centroid Construct the covariance matrix Solve for the eigenvalues ​​and eigenvectors, and take the eigenvector corresponding to the largest eigenvalue as the principal direction of the contour. At the same time, the corresponding normal vector is obtained. ; Boundary point segmentation: Calculate the boundary point segmentation for each point. Projection on ; with median( ) is the threshold, Divided into: ; RANSAC Line Fitting: In the RANSAC algorithm, the parameter reference is set to the residual threshold. Pixels, minimum number of samples Maximum number of iterations .right Fitted straight line And to Fitted straight line ; Calculating the distance between parallel lines: If the slopes of two fitted lines... and The absolute values ​​are all less than the threshold. If the two lines are not perpendicular, the vertical distance is calculated using the following formula, which is the estimated pixel value of the icing contour width. : ; in, and These are the intercepts of the two fitted straight lines; otherwise, the estimated pixel value of the icing contour width is... Take the first side point set and the second side point set as The absolute value of the difference between the coordinate means: ; Output This serves as a pixel-level width estimate for the icy area.

[0051] Step Six: Visualize the icing area, fitted lines, and output thickness estimation results. Overlay an optimized mask (semi-transparent blue) onto the original infrared image; draw two RANSAC fitted lines (solid green lines) on the infrared image; convert the pixel estimate of the conductor's icing profile width into the actual conductor's physical icing thickness value using a pre-calibrated pixel-to-physical size conversion coefficient. The specific conversion process is as follows, assuming the actual diameter of the conductor when it is not iced is known. The pixel diameter of the conductor in the image when it is not covered with ice. And pixel estimates of the width of the conductor ice profile when the line is iced. The actual physical thickness of the ice cover The calculation formula is as follows: ; After obtaining the actual physical thickness of the ice, mark the ice thickness value at the center of the corresponding ice-covered area in the original infrared image.

[0052] Figure 3 This is a schematic diagram of the conductor icing area detection system provided in an embodiment of this disclosure; as shown. Figure 3As shown, this disclosure also provides a conductor icing region detection system, comprising: an acquisition module 301, used to acquire an infrared thermal imaging image of a transmission conductor and receive natural language semantic text instructions input by a user; a segmentation module 302, used to input the infrared thermal imaging image and the natural language semantic text into a pre-trained semantic segmentation model, perform open-vocabulary semantic segmentation on the infrared thermal imaging image, and generate an initial binary mask of the icing region corresponding to the natural language semantic text; an elimination module 303, used to eliminate isolated noise from the initial binary mask to obtain an optimized mask; an estimation module 304, used to estimate the thickness of each icing region based on the optimized mask to obtain an icing thickness estimation result for each icing region; and a detection module 305, used to determine the icing region detection result based on the optimized mask and the icing thickness estimation results for each icing region.

[0053] In some possible implementations, the elimination module 303 is specifically used to: perform a morphological opening operation on the initial binary mask to eliminate isolated noise, retain connected regions with an area greater than a preset area threshold, delete connected regions with an area less than or equal to the area threshold, and obtain an optimized mask.

[0054] In some possible implementations, the estimation module 304 is specifically used for: extracting the outer contour point set of the connected region; performing principal component analysis on the outer contour point set to obtain the principal direction vector reflecting the extension direction of the icing region; determining the normal direction based on the principal direction vector and establishing a local coordinate system for the icing region; determining the normal vector based on the local coordinate system; dividing the outer contour point set into a first side point set and a second side point set based on the projection values ​​of each contour point along the normal vector and using the median of the projection values ​​as the segmentation threshold; performing line fitting on the first side point set and the second side point set respectively to obtain the boundary fitting line of the first side point set and the boundary fitting line of the second side point set; and determining the icing thickness estimation result of the connected region based on the vertical distance between the boundary fitting lines of the first side point set and the second side point set.

[0055] In some possible implementations, the detection module 305 is specifically used to: determine the physical thickness value of the ice covering the conductor based on the diameter of the conductor when it is not covered with ice, the image pixel diameter of the conductor when it is not covered with ice, and the pixel estimation result of the ice covering contour width, and mark the actual physical thickness value in the corresponding ice covering area in the infrared thermal imaging image.

[0056] This disclosure also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the wire icing area detection method.

[0057] The computer device includes a memory, a processor, and a network interface that are interconnected via a system bus. It should be noted that not all of the shown components are required; more or fewer components may be implemented instead. Those skilled in the art will understand that the computer device described herein is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0058] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.

[0059] The memory includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory may be an internal storage unit of the computer device, such as the hard disk or memory of the computer device. In other embodiments, the memory may also be an external storage device of the computer device, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc. Of course, the memory may include both internal storage units and external storage devices of the computer device. In this embodiment, the memory is typically used to store the operating system and various application software installed on the computer device, such as program code for real-time data processing methods. Furthermore, the memory can also be used to temporarily store various types of data that have been output or will be output.

[0060] In some embodiments, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor is typically used to control the overall operation of the computer device. In this embodiment, the processor is used to run program code stored in the memory or process data, for example, to run the program code of the method.

[0061] The network interface may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device and other electronic devices.

[0062] This disclosure also provides a computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of a method for detecting icing areas on a conductor.

[0063] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0064] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0065] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for detecting icing areas on a conductor, characterized in that, include: Acquire infrared thermal imaging images of power transmission lines and receive natural language semantic text commands input by the user; The infrared thermal imaging image and the natural language semantic text are input into a pre-trained semantic segmentation model to perform open-vocabulary semantic segmentation on the infrared thermal imaging image and generate an initial binary mask of the icing region corresponding to the natural language semantic text. The initial binary mask is subjected to isolated noise cancellation to obtain an optimized mask; Based on the optimized mask, the thickness of each icing region is estimated to obtain the icing thickness estimation results for each icing region. Based on the optimized mask and the ice thickness estimation results of each ice-covered region, the detection results of the ice-covered region are determined.

2. The method for detecting icing areas on a conductor according to claim 1, characterized in that, The process of eliminating isolated noise from the initial binary mask to obtain an optimized mask includes: A morphological opening operation is performed on the initial binary mask to eliminate isolated noise, and connected regions with an area greater than a preset area threshold are retained, while connected regions with an area less than or equal to the area threshold are deleted to obtain the optimized mask.

3. The method for detecting icing areas on conductors according to claim 1, characterized in that, The process of estimating the thickness of each icing region based on the optimized mask to obtain the icing thickness estimation results for each icing region includes: Extract the outer contour point set of the connected region, perform principal component analysis on the outer contour point set to obtain the principal direction vector reflecting the extension direction of the icing region; The normal direction is determined based on the principal direction vector, and a local coordinate system for the icy area is established. The normal vector is then determined based on the local coordinate system. Based on the projection values ​​of each contour point along the normal vector, and using the median of the projection values ​​as the segmentation threshold, the outer contour point set is divided into a first side point set and a second side point set. Line fitting is performed on the first side point set and the second side point set respectively to obtain the boundary fitting line of the first side point set and the boundary fitting line of the second side point set; The ice thickness estimation result of the connected region is determined based on the vertical distance between the boundary fitting line of the first side point set and the boundary fitting line of the second side point set.

4. The method for detecting icing areas on conductors according to claim 1, characterized in that, The determination of icing region detection results based on the optimized mask and the icing thickness estimation results of each icing region includes: Based on the diameter of the conductor when it is not covered with ice, the pixel diameter of the image when the conductor is not covered with ice, and the pixel estimation results of the ice contour width, the physical thickness value of the conductor covered with ice is determined, and the actual physical thickness value is marked in the corresponding ice-covered area in the infrared thermal imaging image.

5. A system for detecting icing areas on conductors, characterized in that, include: The acquisition module is used to acquire infrared thermal imaging images of the power transmission lines and receive natural language semantic text commands input by the user. The segmentation module is used to input the infrared thermal imaging image and the natural language semantic text into a pre-trained semantic segmentation model, perform open-vocabulary semantic segmentation on the infrared thermal imaging image, and generate an initial binary mask of the icing region corresponding to the natural language semantic text. An elimination module is used to perform isolated noise elimination on the initial binary mask to obtain an optimized mask; The estimation module is used to estimate the thickness of each icing region based on the optimized mask, and obtain the icing thickness estimation result of each icing region; The detection module is used to determine the detection result of the icing area based on the optimized mask and the icing thickness estimation results of each icing area.

6. The conductor icing area detection system according to claim 5, characterized in that, The elimination module is specifically used for: A morphological opening operation is performed on the initial binary mask to eliminate isolated noise, and connected regions with an area greater than a preset area threshold are retained, while connected regions with an area less than or equal to the area threshold are deleted to obtain the optimized mask.

7. The method for detecting icing areas on conductors according to claim 5, characterized in that, The estimation module is specifically used for: Extract the outer contour point set of the connected region, perform principal component analysis on the outer contour point set to obtain the principal direction vector reflecting the extension direction of the icing region; The normal direction is determined based on the principal direction vector, and a local coordinate system for the icy area is established. The normal vector is then determined based on the local coordinate system. Based on the projection values ​​of each contour point along the normal vector, and using the median of the projection values ​​as the segmentation threshold, the outer contour point set is divided into a first side point set and a second side point set. Line fitting is performed on the first side point set and the second side point set respectively to obtain the boundary fitting line of the first side point set and the boundary fitting line of the second side point set; The ice thickness estimation result of the connected region is determined based on the vertical distance between the boundary fitting line of the first side point set and the boundary fitting line of the second side point set.

8. The method for detecting icing areas on conductors according to claim 5, characterized in that, The detection module is specifically used for: Based on the diameter of the conductor when it is not covered with ice, the pixel diameter of the image when the conductor is not covered with ice, and the pixel estimation results of the ice contour width, the physical thickness value of the conductor covered with ice is determined, and the actual physical thickness value is marked in the corresponding ice-covered area in the infrared thermal imaging image.

9. A computer device, characterized in that, The device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the wire icing area detection method as described in any one of claims 1 to 4.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the wire icing area detection method as described in any one of claims 1 to 4.