Conductor ice detection method, device, electronic device and readable storage medium

By identifying the ice coating type and calculating the pixel width through the wire recognition model, the problem of inaccurate detection of wire ice coating in the existing technology is solved, and accurate equivalent ice coating thickness calculation in rainy and snowy weather is achieved.

CN118314529BActive Publication Date: 2024-09-17SANLI VIDEO FREQUENCY SCI & TECH SHENZHEN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410734230.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-17
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

The existing wire icing detection method has inaccurate detection results due to heavy fog in rainy and snowy weather, making it difficult to accurately detect whether the wire is icing and calculate the equivalent ice thickness.

Method used

A wire icing detection method is adopted. By acquiring the wire image, the trained wire recognition model is used, including a feature extraction network, a classification network and a segmentation network, to identify the icing type and current pixel width of the wire, and based on the icing type, The current pixel width and the reference pixel width are used to calculate the equivalent ice thickness, taking the ice type into account to improve accuracy.

Benefits of technology

It realizes the accurate calculation of equivalent ice coating thickness when there is ice coating, improves the accuracy of conductor ice coating detection, especially in rainy and snowy weather, ensuring the reliability of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314529B
    Figure CN118314529B
Patent Text Reader

Abstract

The present invention relates to the technical field of computer vision recognition, and provides a method, device, electronic device and readable storage medium for detecting ice coating on a conductor. The method comprises: obtaining a conductor image collected for a designated conductor; identifying the conductor image to obtain the ice coating type of the designated conductor and the current pixel width of the designated conductor in the conductor image; if the ice coating type indicates that the designated conductor is ice coated, then according to the ice coating type, the current pixel width and the pre-acquired reference pixel width, the equivalent ice coating thickness of the designated conductor is calculated, the reference pixel width is the pixel width in the reference image taken when the designated conductor is not ice coated, and the conductor image and the reference image have the same shooting angle and shooting position. The present invention can accurately detect ice coating on the conductor and can accurately calculate the equivalent ice coating thickness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision recognition technology, and in particular to a method, device, electronic device and readable storage medium for detecting ice coating on a conductor. Background Art

[0002] Icing on transmission lines can lead to safety accidents such as line breakage and power outages. Timely detection of ice on conductors and taking remedial measures based on the thickness of the ice, such as using drones for de-icing, are effective protection strategies for dealing with such safety accidents.

[0003] With the popularization of video surveillance equipment and the development of deep learning technology, the existing methods are mainly based on the principle of detecting whether the transmission line conductors are covered with ice and the equivalent ice thickness when ice is covered based on traditional image algorithms or image segmentation in deep learning. In the actual natural environment, rainy and snowy weather is often accompanied by heavy fog, resulting in inaccurate detection results. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device, electronic device and readable storage medium for detecting ice coating on a conductor, which can accurately detect whether the conductor is coated with ice and calculate the accurate equivalent ice coating thickness when ice coating is present.

[0005] The embodiments of the present invention can be implemented as follows:

[0006] In a first aspect, the present invention provides a method for detecting ice coating on a conductor, the method comprising:

[0007] Acquire a wire image collected for a specified wire;

[0008] Identify the wire image to obtain the ice type of the designated wire and the current pixel width of the designated wire in the wire image;

[0009] If the ice coating type indicates that the designated conductor is iced, the equivalent ice coating thickness of the designated conductor is calculated according to the ice coating type, the current pixel width and the pre-acquired reference pixel width, wherein the reference pixel width is the pixel width in the reference image taken when the designated conductor is not iced, and the shooting angle and shooting position of the conductor image and the reference image are the same.

[0010] In an optional implementation, the step of identifying the wire image to obtain the ice coating type of the designated wire and the current pixel width of the designated wire in the wire image includes:

[0011] Acquire a trained wire recognition model, wherein the wire recognition model includes a feature extraction network, a classification network, and a segmentation network;

[0012] Inputting the wire image into the feature extraction network to obtain a low-dimensional feature map and a multi-scale feature map;

[0013] Inputting the multi-scale feature map into the classification network to obtain the ice type of the designated wire;

[0014] Inputting the low-dimensional feature map and the multi-scale feature map into the segmentation network to obtain a segmentation image of the designated wire;

[0015] The current pixel width is calculated according to the segmented image.

[0016] In an optional implementation, the step of calculating the current pixel width according to the segmented image includes:

[0017] Dividing the segmented image into a plurality of sub-areas along the long side direction of the designated wire;

[0018] Calculating the pixel width of each of the sub-regions according to the number of pixel points in each of the sub-regions along the width direction of the designated wire;

[0019] The current pixel width is calculated according to the pixel widths of all the sub-areas.

[0020] In an optional implementation, the step of equally dividing the segmented image into a plurality of sub-regions along the long side direction of the designated wire includes:

[0021] Generate a minimum rotated circumscribed rectangle of the segmented image, wherein the long side and the wide side of the minimum rotated circumscribed rectangle correspond to the long side direction and the wide side direction of the designated wire respectively;

[0022] The long side is divided into equal parts to obtain the multiple sub-areas.

[0023] In an optional embodiment, the feature extraction network includes a low-dimensional feature extraction module, a dilated spatial convolutional pooling pyramid ASPP module and a feature fusion module, and the step of inputting the wire image into the feature extraction network to obtain a low-dimensional feature map and a multi-scale feature map includes:

[0024] Inputting the wire image into the low-dimensional feature extraction module to obtain the low-dimensional feature map;

[0025] Inputting the wire image into the ASPP module to perform multi-scale feature extraction to obtain multiple intermediate feature maps;

[0026] The multiple intermediate feature maps are input into the feature fusion module to obtain the multi-scale feature map.

[0027] In an optional embodiment, the multiple intermediate feature maps include a standard intermediate feature map, a dynamic intermediate feature map and a pooled intermediate feature map, and the ASPP module includes a standard convolution layer, a dynamic convolution layer and a strip pooling layer;

[0028] The step of inputting the wire image into the ASPP module for multi-scale feature extraction to obtain a plurality of intermediate feature maps comprises:

[0029] Inputting the wire image into the standard convolution layer to perform convolution calculation according to fixed convolution parameters to obtain a standard intermediate feature map;

[0030] Inputting the wire image into the dynamic convolution layer to perform convolution calculation according to dynamically changing convolution parameters to obtain a dynamic intermediate feature map;

[0031] The wire image is input into the strip pooling layer to perform pooling operations in the horizontal direction and the vertical direction respectively, and then the results of the pooling in the horizontal direction and the vertical direction are fused to obtain a pooled intermediate feature map.

[0032] In an optional embodiment, the step of calculating the equivalent ice thickness of the designated wire according to the ice type, the current pixel width and the pre-acquired reference pixel width includes:

[0033] Determining an ice coating density corresponding to the ice coating type according to a mapping relationship between a preset ice coating type and a preset ice coating density;

[0034] The equivalent ice thickness is calculated according to the current pixel width, the reference pixel width, the ice density, the preset maximum ice density and the actual diameter of the designated wire.

[0035] In an optional embodiment, the step of calculating the equivalent ice thickness according to the current pixel width, the reference pixel width, the ice density, the preset maximum ice density and the actual diameter of the specified wire includes:

[0036] Calculating the average pixel thickness of the designated wire according to the current pixel width, the reference pixel width and the actual diameter of the designated wire;

[0037] Calculating an ice coating density equivalence ratio according to the ice coating density and the preset maximum ice coating density;

[0038] The equivalent ice thickness is calculated according to the average pixel thickness and the equivalent ratio of ice density.

[0039] In an optional embodiment, the method further comprises:

[0040] Acquire a sample image and a corresponding label, wherein the label represents the ice coating type of the wire in the sample image;

[0041] Based on the sample image and the corresponding label and a preset loss function, the wire recognition model is trained to obtain the trained wire recognition model, wherein the preset loss function is determined by a cross entropy loss and a boundary loss, and the boundary loss is determined based on a distance between a pixel point of the sample image and a wire boundary pre-marked in the sample image.

[0042] In an optional implementation, the step of obtaining a sample image and a corresponding label includes:

[0043] Acquire an original image and a corresponding label, wherein the label represents the ice coating type of the wire in the original image;

[0044] An image of a preset size is extracted from the original image, and the extracted image is used as the sample image, wherein the label of the sample image is the same as the label of the original image.

[0045] In a second aspect, the present invention provides a wire ice detection device, the device comprising:

[0046] An acquisition module, used for acquiring a wire image collected for a specified wire;

[0047] An identification module, used for identifying the wire image, obtaining the ice type of the designated wire and the current pixel width of the designated wire in the wire image;

[0048] A calculation module is used to calculate the equivalent ice thickness of the designated wire according to the ice type, the current pixel width and a pre-acquired reference pixel width if the ice type indicates that the designated wire is iced, wherein the reference pixel width is a pixel width in a reference image taken when the designated wire is not iced, and the shooting angle and shooting position of the wire image and the reference image are the same.

[0049] In a third aspect, the present invention provides an electronic device, including a processor and a memory, wherein the memory is used to store a program, and the processor is used to implement the wire ice coating detection method as described in the first aspect when executing the program.

[0050] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the wire icing detection method as described in the first aspect above.

[0051] The present invention identifies a wire image of a specified wire to obtain the ice coating type of the specified wire and the current pixel width of the specified wire in the wire image. If the ice coating type indicates that the specified wire is iced, the equivalent ice coating thickness of the specified wire is calculated according to the ice coating type, the current pixel width and the pre-acquired reference pixel width. Since the reference pixel width is the pixel width in the reference image taken when the specified wire is not iced, the shooting angle and shooting position of the wire image and the reference image are the same, and at the same time, the ice coating type is taken into consideration when calculating the equivalent ice coating thickness. Therefore, the calculated equivalent ice coating thickness is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0053] Figure 1 This is a flowchart of a method for detecting ice coating on a conductor provided in an embodiment of the present invention.

[0054] Figure 2 This is a structural example diagram of a wire identification model provided in an embodiment of the present invention.

[0055] Figure 3 A structural example diagram of a wire recognition model based on the improved DeepLabv3plus network structure provided in an embodiment of the present invention.

[0056] Figure 4 This is an example diagram of the ASPP structure provided in an embodiment of the present invention.

[0057] Figure 5 Example diagrams of standard convolution, dilated convolution, deformable convolution, and dynamic convolution provided for embodiments of the present invention.

[0058] Figure 6 An example diagram of multiple sub-region divisions provided in an embodiment of the present invention.

[0059] Figure 7 This is a block diagram of an exemplary device for detecting ice coating on a conductor provided in an embodiment of the present invention.

[0060] Figure 8 An exemplary block diagram of an electronic device provided by an embodiment of the present invention.

[0061] Icons: 10 - electronic device; 11 - processor; 12 - memory; 13 - bus; 100 - wire ice detection device; 110 - acquisition module; 120 - identification module; 130 - calculation module; 140 - training module. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0063] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0064] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0065] In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the invention is usually placed when used. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0066] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.

[0067] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.

[0068] In view of the problem in the prior art of inaccurate detection of whether a transmission line conductor is covered with ice and the equivalent ice thickness when ice is covered, this embodiment provides a conductor ice detection method, device, electronic device and readable storage medium, which can accurately detect whether a conductor is covered with ice and calculate the accurate equivalent ice thickness when ice is covered. It will be described in detail below.

[0069] Please refer to Figure 1 , Figure 1 The present invention provides a method for detecting ice coating on a conductor, which includes the following steps:

[0070] Step S101, obtaining a wire image collected for a designated wire.

[0071] In this embodiment, the wire image may be an image captured by shooting a designated wire using a gun camera. In actual application scenarios, as required, the gun camera may be started at a specified time to capture the wire image, or the wire may be shot, or a shooting cycle may be specified, and the wire image may be captured at each shooting cycle. The designated wire in the wire image may be ice-covered or ice-free, depending on the ice condition of the designated wire at the time of wire image capture.

[0072] Step S102, identifying the wire image, obtaining the ice coating type of the designated wire and the current pixel width of the designated wire in the wire image.

[0073] In this embodiment, the ice covering type is predetermined. There are three types of ice covering: no ice covering, mixed frost ice covering, and rain frost ice covering. The ice covering type of the wire image is one of these three types. When the ice covering type is no ice covering, it indicates that the specified wire has no ice covering. When the ice covering type is mixed frost ice covering or rain frost ice covering, it indicates that the specified wire has ice covering.

[0074] In this embodiment, the current pixel width may be the number of pixels occupied by the width of the designated wire in the wire image, or the maximum value, minimum value, average value, etc. of the number of pixels of multiple widths on the designated wire.

[0075] Step S103: If the ice type indicates that the specified wire is iced, the equivalent ice thickness of the specified wire is calculated according to the ice type, the current pixel width and the pre-acquired reference pixel width. The reference pixel width is the pixel width in the reference image taken when the specified wire is not iced. The shooting angle and shooting position of the wire image and the reference image are the same.

[0076] In this embodiment, the reference image is taken when the designated wire is not covered with ice. In order to ensure the accuracy of the calculation of the equivalent ice thickness, the reference image and the wire image have the same shooting angle and shooting position. As an implementation method, the reference image and the wire image can be images of the designated wire captured at different times by the same gun camera while keeping the shooting angle and shooting position unchanged. The reference pixel width can be obtained by identifying the image of the designated wire when it is not covered with ice obtained in advance. The implementation method is the same as that of step S102.

[0077] In this embodiment, since different ice types are displayed in different forms on the conductor image and different ice types have different effects on the equivalent ice thickness, if the specified conductor is iced, the effect of the ice type is taken into account when calculating the equivalent ice thickness, so that the calculated equivalent ice thickness is more accurate.

[0078] It should be noted that if the ice cover type is no ice cover, it indicates that the specified conductor is not ice covered. At this time, there is no need to calculate the equivalent ice cover thickness. As an implementation method, a prompt message that the specified conductor is currently not ice covered can be directly output.

[0079] In this embodiment, in order to obtain the ice coating type and the current pixel width, an image segmentation technology can be used to segment the image of the designated wire from the wire image and classify the segmented designated wire to obtain the ice coating type, and then calculate the current pixel width based on the segmented designated wire image. However, the sample images of wires of various ice coating types are much smaller than the sample images of wires without ice coating, and the difference between different ice coating types is not large. The accuracy of the classification result of the ice coating type determined solely by the image segmentation technology is not high, and ultimately affects the accuracy of the calculated equivalent ice coating thickness. Therefore, this embodiment uses the trained wire recognition model to identify the wire image, which can not only obtain the accurate ice coating type but also accurately segment the wire image. For easy understanding, this embodiment first introduces the wire recognition model and its training process, and then introduces the process of identifying the wire image using the trained wire recognition model.

[0080] Please refer to Figure 2 , Figure 2 A structural example diagram of a wire identification model provided in an embodiment of the present invention, Figure 2 In , the wire recognition model includes feature extraction network, classification network and segmentation network.

[0081] The feature extraction network is used for low-dimensional features and multi-scale features extraction, and outputs low-dimensional feature maps and multi-scale feature maps.

[0082] The classification network is used to classify the multi-scale feature maps and obtain the ice cover type.

[0083] The segmentation network is used to segment the wire image according to the low-dimensional feature map and the multi-scale feature map to obtain a foreground image and a background image, wherein the foreground image is a segmented image of the specified wire.

[0084] Figure 2 The input sources of the classification network and the segmentation network of the wire recognition model in the present invention are both from the same feature extraction network. Therefore, the consistency of the classification result and the segmentation result can be better guaranteed, thereby improving the accuracy of detection.

[0085] based on Figure 2In order to further improve the accuracy, this embodiment is improved based on the DeepLabv3plus network structure, please refer to Figure 3 , Figure 3 The structure example diagram of the wire recognition model based on the improved DeepLabv3plus network structure provided in the embodiment of the present invention is as follows: Figure 3 The DeepLabv3plus network structure in the paper includes an encoder and a decoder. The encoder includes a low-dimensional feature extraction module, an ASPP (Atrous Spatial Pyramid Pooling) module, a feature fusion module and an upsampling module. The feature fusion module of the encoder is connected to the classification network, and the decoder includes a feature fusion module and an upsampling module.

[0086] The feature extraction network includes a low-dimensional feature extraction module, an ASPP module and a feature fusion module of the encoder, and the segmentation network includes an upsampling module of the encoder, a feature fusion module of the decoder, an upsampling module and a segmentation module of the decoder.

[0087] The low-dimensional feature extraction module is used to extract low-dimensional features from the wire image. The extracted low-dimensional feature map has a low dimension, that is, the feature vector corresponding to the low-dimensional feature map includes fewer elements.

[0088] The ASPP module is used to extract low-dimensional feature maps at multiple scales to obtain feature maps of multiple scales.

[0089] The feature fusion module of the encoder is used to convert multiple feature maps of different scales output by the ASPP module into intermediate feature maps of the same scale, and then perform feature fusion on the intermediate feature maps to obtain fused multi-scale feature maps.

[0090] Figure 3 In the example, the feature fusion module of the encoder is connected to the classification network, and the classification network classifies the multi-scale feature maps fused by the feature fusion module of the encoder to obtain the ice cover type.

[0091] Figure 3 In the encoder, the upsampling module upsamples the multi-scale feature map so that the upsampled result has the same width and height as the low-dimensional feature map.

[0092] The feature fusion module of the decoder fuses the sampling processing results of the upsampling module of the encoder with the low-dimensional feature map.

[0093] The upsampling module of the decoder performs upsampling processing on the feature map output by the feature fusion module of the decoder to obtain a feature map of the same size as the wire image, the upsampling module.

[0094] The upsampling module of the decoder is also connected to the segmentation module, and the segmentation module segments a segmentation image of a specified wire from the feature map output by the upsampling module of the decoder, so as to subsequently obtain the current pixel width according to the segmentation image.

[0095] Since the edges of the designated wires in the wire image are often irregular, especially in the case of ice, in order to more accurately extract the features of the designated wires with irregular edges in the wire image, this embodiment also improves the ASPP module by replacing the ordinary pooling layer in the ASPP module with a strip pooling layer, and replacing some convolution layers in the ASPP module with dynamic convolution layers. Figure 4 , Figure 4 An example diagram of the ASPP structure provided in an embodiment of the present invention, Figure 4 In the ASPP module, there is a standard convolution layer, three dynamic convolution layers and a strip pooling layer. The parameters of the standard convolution layer, each dynamic convolution layer and the strip pooling layer are different. Therefore, the scales of the feature maps obtained after convolution or pooling are different. The difference in scale can be the size of the feature map, the number of channels of the feature map, or the size and number of channels of the feature map. The specific setting can be based on actual needs. In order to fuse the feature maps output by the standard convolution layer, the three dynamic convolution layers and the strip pooling layer to obtain the fused multi-scale feature map, it is necessary to set the size of the feature maps output by each of them to be the same. The size after setting is the same as the size of the feature map input. The setting method can adopt the method of upsampling or downsampling the output feature map, which is related to the size of the feature map output by each of them and the size of the input feature map. Figure 4 Use “...” instead.

[0096] It should be noted that Figure 4 The number of dynamic convolutional layers in can be increased or decreased according to actual needs. Figure 4 The parameters of the convolution kernel of each dynamic convolution layer are dynamically changed. Each time the dynamic convolution layer performs a convolution operation, the parameters of its convolution kernel are different, which can play a role in learning to extract different features.

[0097] It should also be noted that the strip pooling layer can perform pooling operations along the horizontal direction and the vertical direction respectively, and then fuse the pooling results in the two directions, and set the size of the fused pooling result to be the same as the size of the input low-dimensional feature map to obtain a pooled intermediate feature map.

[0098] For example, the size of the low-dimensional feature map input to the ASPP module is: 1x2048x64x64, where "1" represents the number of batches, that is, the number of feature maps processed at a time, "2048" represents the number of feature channels, and "64x64" represents the size of the low-dimensional feature map expressed as "height x width". The size of the convolution kernel of the standard convolution is 1x1, and the size of the convolution kernel of the dynamic convolution is 9x9. Figure 4 The sizes of the standard intermediate feature map, dynamic intermediate feature map, pooled intermediate feature map, and multi-scale feature map have the same meaning as the sizes of the low-dimensional feature map, and will not be repeated here. The feature map after standard convolution, the feature map after each dynamic convolution, and the feature map after strip pooling have different scales, but before merging them, they need to be processed separately to obtain an intermediate feature map of the same size as the low-dimensional feature map, that is, Figure 4 The sizes of the standard intermediate feature maps, three dynamic intermediate feature maps, and pooled intermediate feature maps are all 64x64, which is the same as the size of the low-dimensional feature map (64x64). The size of the multi-scale feature map obtained after feature fusion of the standard intermediate feature map, the three dynamic intermediate feature maps, and the pooled intermediate feature map is also 64x64, which is the same as the size of the low-dimensional feature map.

[0099] Figure 4 In the example, the convolution parameters of the standard convolution layer are fixed, while the parameters of the dynamic convolution layer are dynamically changed. When the dynamic convolution layer performs convolution calculation, the area covered by the convolution can be better consistent with the specified wire in the wire image. In order to more clearly illustrate the difference between dynamic convolution and other convolutions, this embodiment also provides several different examples of convolution. Please refer to Figure 5 , Figure 5 The following are example diagrams of standard convolution, dilated convolution, deformable convolution, and dynamic convolution provided by the embodiments of the present invention. Figure 5 In the figure, the pixels involved in each convolution are the central pixel and the surrounding pixels. The surrounding pixels are different for different convolutions. The solid dots in the figure represent the central pixel, the hollow dotted dots represent the adjacent pixels of the central pixel, the hollow solid dots represent the surrounding pixels of the adjacent pixels, and the arrows represent the adjacent pixels and their corresponding surrounding pixels. For standard convolution, the surrounding pixels are the 8 adjacent pixels around the central pixel; for dilated convolution, the surrounding pixels are the 8 pixels involved, which are the 8 adjacent pixels of the central pixel after expansion at a fixed expansion rate; for deformable convolution, the surrounding pixels are the corresponding 8 pixels obtained by adding a displacement to the coordinates of the 8 adjacent pixels.

[0100] Dynamic convolution is different from the above three types of convolution. Figure 5The change trend of the surrounding pixels of the dynamic convolution in the example is more inclined to a slender structure, which has a better feature extraction effect for slender objects such as wires. This embodiment takes a convolution kernel of size 3x3 as an example to illustrate the change of the surrounding pixels.

[0101] The change in the X-axis direction is:

[0102]

[0103] The change in the Y-axis direction is:

[0104]

[0105] Among them, for any pixel in image K, is the central pixel, the specific positions of its surrounding pixels can be expressed as: , where c = 0, 1, 2, 3, 4 represents the horizontal distance from the center pixel. is the Y-axis offset, The X-axis offset is obtained by using the above X-axis direction change formula and Y-axis direction change formula to calculate the surrounding pixels of any central pixel.

[0106] based on Figure 2~Figure 5 In the description of the wire recognition model, in order to make the classification and segmentation effect of the trained model better, this embodiment also provides an implementation method for training the model:

[0107] First, obtain sample images and corresponding labels, where the labels represent the ice type of the wire in the sample images;

[0108] In this embodiment, the sample images include images of ice-covered wires and images of non-ice-covered wires. The sample images are labeled. The labeling method can be manual labeling or semantic segmentation labeling using the labelme tool. There are three types of ice coverage represented by the labels: no ice coverage, mixed frost ice coverage, and rain frost ice coverage.

[0109] Since the size of the original image directly collected is not uniform, it can be transformed into a preset size by scaling. However, scaling is likely to cause distortion of the image edge. The reason is that the method usually used in the scaling process is mostly adjacent interpolation, which is easily affected by the surrounding pixels. Therefore, this embodiment provides a method for obtaining sample images and corresponding labels:

[0110] The original image and the corresponding label are obtained, wherein the label represents the ice covering type of the wire in the original image; an image of a preset size is extracted from the original image, and the extracted image is used as a sample image, wherein the label of the sample image is the same as the label of the original image.

[0111] In this embodiment, the label of the original image is the same as the label of the sample image. For example, if the original image includes an ice-free wire, the sample image extracted from the original image also includes part or all of the ice-free wire. For example, the resolution of the original image is 1920x1080, and a 512x512 sample image is randomly extracted from the original image for training.

[0112] In this embodiment, the method of cropping can be random cropping or cropping in a preset area. For random cropping, if the label of the sample image obtained after this cropping is different from the label of the original image, it is necessary to crop again until the label of the sample image obtained after cropping is the same as the label of the original image. For example, if the wire in the original image is an ice-free wire, the area containing the wire is not cropped in the randomly cropped image. At this time, the labels of the two are different and need to be cropped again.

[0113] Secondly, based on the sample image, the corresponding label and the preset loss function, the wire recognition model is trained to obtain the trained wire recognition model. The preset loss function is determined by the cross entropy loss and the boundary loss. The boundary loss is determined based on the distance between the pixel point of the sample image and the wire boundary pre-marked in the sample image.

[0114] In this embodiment, since the wire recognition model includes two parts: determining the ice type and segmenting the image, this embodiment describes these two training processes one by one.

[0115] (1) During the model training process, the process of using the wire recognition model to label the sample image and obtain the predicted ice type is as follows:

[0116] Input the sample image into the low-dimensional feature extraction module of the feature extraction network to obtain a low-dimensional feature map of the sample;

[0117] The sample image is input into the standard convolution layer of the ASPP module of the feature extraction network to perform convolution calculation according to fixed convolution parameters to obtain a standard sample intermediate feature map;

[0118] The sample image is input into the dynamic convolution layer of the ASPP module of the feature extraction network to perform convolution calculation according to the dynamically changing convolution parameters to obtain a dynamic sample intermediate feature map;

[0119] The sample image is input into the strip pooling layer of the ASPP module of the feature extraction network to perform pooling operations in the horizontal and vertical directions respectively, and then the results of the horizontal and vertical pooling are fused to obtain the intermediate feature map of the pooled sample;

[0120] Input the standard sample intermediate feature map, the dynamic sample intermediate feature map and the pooled sample intermediate feature map into the feature fusion module of the feature extraction network to obtain the sample multi-scale feature map;

[0121] The sample multi-scale feature map is input into the classification network of the wire recognition model to obtain the predicted ice type of the wire in the sample image.

[0122] In this embodiment, the predicted icing type is one of the three types: no icing, mixed frost icing, and rain frost icing. The image classification part can use accuracy as an evaluation indicator to optimize the classification effect of the model. The accuracy can be determined by comparing the predicted icing type with the label type of the sample image.

[0123] (2) During the model training process, the process of using the wire recognition model to segment the sample image is:

[0124] The sample multi-scale feature map is input into the upsampling module of the encoder in the segmentation network for upsampling, and the upsampling result is fused with the sample low-dimensional feature map to obtain a fused feature map;

[0125] The fused feature map is input into the upsampling module of the decoder for upsampling to restore the fused feature map to the size of the sample image.

[0126] The fused feature map restored to the size of the sample image is input into the segmentation module of the segmentation network, from which the segmentation image of the wire in the sample image is segmented.

[0127] For the image segmentation part of the wire recognition model, MioU (Mean Intersection over Union) can be used as an evaluation indicator to optimize the segmentation effect of the model.

[0128] In this embodiment, in order to pay more attention to the segmentation effect of wires with irregular edges during model training, this embodiment adds boundary loss to the existing loss function based on cross entropy loss. The boundary loss is determined based on the distance between the pixel points of the sample image and the wire boundary pre-marked in the sample image. Specifically, for the pixel points on the wire boundary, the loss value that is consistent with the pre-marked wire boundary is 0, and if it is inconsistent, it is calculated based on the distance between the pixel point and the pre-marked wire boundary, and then the predicted probability of all pixel points in the sample image is summed with the distance as the weight. The specific boundary loss calculation formula is as follows:

[0129]

[0130]

[0131] Among them, q is the coordinate of the pixel point in the sample image G, is the predicted probability of the wire identification model at point q, that is, the probability that q is the wire boundary, is the distance from q to the marked wire boundary, is the pre-marked wire boundary area in G.

[0132] Therefore, the preset loss function is expressed as:

[0133]

[0134] in, is the preset loss function, (0,1) is the weight factor, the default value is 0.5, is the original cross entropy loss, is the boundary loss, p is the predicted classification value of each pixel, that is, p is the predicted probability that each pixel belongs to the wire boundary, y is the label classification value of each pixel, that is, y is the classification value of whether each pixel belongs to the wire boundary, for example, y is 0, which means it does not belong to the wire boundary, and 1 means it belongs to the wire boundary.

[0135] After the wire recognition model is trained using the above method, a trained wire recognition model is obtained. The following describes how to obtain the ice type of a specified wire and the current pixel width of the specified wire in a wire image using the trained wire recognition model. The process includes:

[0136] First, a trained wire recognition model is obtained, which includes a feature extraction network, a classification network, and a segmentation network;

[0137] Secondly, the wire image is input into the feature extraction network to obtain low-dimensional feature maps and multi-scale feature maps;

[0138] In this embodiment, the process of obtaining the low-dimensional feature map and the multi-scale feature map is similar to the process of obtaining the sample low-dimensional feature map and the sample multi-scale feature map, that is, the wire image is input into the low-dimensional feature extraction module to obtain the low-dimensional feature map; the wire image is input into the ASPP module for multi-scale feature extraction to obtain multiple intermediate feature maps; the multiple intermediate feature maps are input into the feature fusion module to obtain the multi-scale feature map.

[0139] In this embodiment, a method for obtaining multiple intermediate feature maps is: inputting the wire image into a standard convolution layer to perform convolution calculation according to fixed convolution parameters to obtain a standard intermediate feature map; inputting the wire image into a dynamic convolution layer to perform convolution calculation according to dynamically changing convolution parameters to obtain a dynamic intermediate feature map; inputting the wire image into a strip pooling layer to perform pooling operations in the horizontal direction and the vertical direction respectively, and then fusing the results of the horizontal and vertical pooling to obtain a pooled intermediate feature map.

[0140] Third, the multi-scale feature map is input into the classification network to obtain the ice type of the specified wire;

[0141] Fourth, the low-dimensional feature map and the multi-scale feature map are input into the segmentation network to obtain the segmentation image of the specified wire;

[0142] In this embodiment, the process of obtaining the ice coating type of the specified wire and obtaining the segmented image of the specified wire is similar to the process of obtaining the ice coating type of the wire in the sample image and obtaining the segmented image of the wire in the sample image, which will not be repeated here.

[0143] Fifth, calculate the current pixel width based on the segmented image.

[0144] In this embodiment, since the pixel widths of different parts of the designated wire in the segmented image are different, in order to make the final calculated current pixel width more accurate, this embodiment also provides an implementation method for calculating the current pixel width:

[0145] (1) Divide the segmented image into multiple sub-regions along the long side of the specified wire;

[0146] In this embodiment, a tool may be used to divide the segmented image into equal parts. To improve segmentation efficiency, this embodiment also provides a method for obtaining multiple sub-regions:

[0147] Generate a minimum rotated circumscribed rectangle of the segmented image, where the long side and the wide side of the minimum rotated circumscribed rectangle correspond to the long side direction and the wide side direction of the specified wire respectively; divide the long side into equal parts to obtain multiple sub-regions.

[0148] Please refer to Figure 6 , Figure 6 An example diagram of multiple sub-area divisions provided in an embodiment of the present invention, Figure 6 In , the segmented image is divided into 9 regions N1 to N9. It should be noted that Figure 6 The nine regions are just an example. In fact, the system can be divided into more or fewer regions according to actual needs.

[0149] (2) Calculate the pixel width of each sub-region according to the number of pixels along the width direction of the designated wire in each sub-region;

[0150] In this embodiment, for any sub-region, as an implementation method, multiple wide edges may be determined in the sub-region, the number of pixels of each wide edge may be calculated, and the average value of all wide edges may be taken as the pixel width of the sub-region.

[0151] (3) Calculate the current pixel width based on the pixel widths of all sub-areas.

[0152] In this embodiment, the average value of the pixel widths of all sub-areas can be directly taken and the average value can be used as the current pixel width, or the maximum and minimum values ​​of the pixel widths in all sub-areas can be removed and the average value of the remaining pixel widths can be taken and the average value can be used as the current pixel width.

[0153] After obtaining the ice type and current pixel width of the specified wire, if the ice type indicates that the specified wire is iced, the equivalent ice thickness of the specified wire can be calculated. One calculation method is:

[0154] First, according to the mapping relationship between the preset ice coating type and the preset ice coating density, the ice coating density corresponding to the ice coating type is determined;

[0155] In this embodiment, the preset ice coating types include mixed frost icing and rain frost icing. The ice coating density range of mixed frost icing is: 0.2~0.6g / cm3, and the corresponding preset ice coating density can be: 0.6g / cm3. The ice coating density range of rain frost icing is: 0.7~0.9g / cm3, and the corresponding preset ice coating density can be: 0.9g / cm3.

[0156] Secondly, the equivalent ice thickness is calculated based on the current pixel width, reference pixel width, ice density, preset maximum ice density and the actual diameter of the specified wire.

[0157] In this embodiment, a method for calculating the equivalent ice thickness is: calculating the average pixel thickness of the specified wire based on the current pixel width, the reference pixel width and the actual diameter of the specified wire; calculating the ice density equivalent ratio based on the ice density and the preset maximum ice density; calculating the equivalent ice thickness based on the average pixel thickness and the ice density equivalent ratio.

[0158] The average pixel thickness of a given wire is calculated as: ,in, is the average pixel thickness of the specified wire, is the current pixel width, is the reference pixel width, Specifies the actual diameter of the wire.

[0159] The calculation formula for equivalent ice thickness is: ,in, is the equivalent ice thickness, is the ice density corresponding to the ice type of the specified conductor, The preset maximum ice density.

[0160] In order to execute the corresponding steps in the above embodiment and each possible implementation method, a method for implementing the wire ice detection device 100 is given below. Figure 7 , Figure 7 This is a block diagram of a conductor ice detection device provided in this embodiment. It should be noted that the basic principle and technical effect of the conductor ice detection device 100 provided by the present invention are the same as those of the corresponding above-mentioned embodiments, which are not mentioned in this embodiment for the sake of brief description.

[0161] The wire ice coating detection device 100 includes an acquisition module 110 , an identification module 120 , a calculation module 130 and a training module 140 .

[0162] An acquisition module 110 is used to acquire a wire image collected for a specified wire;

[0163] The recognition module 120 is used to recognize the wire image and obtain the ice type of the specified wire and the current pixel width of the specified wire in the wire image;

[0164] The calculation module 130 is used to calculate the equivalent ice thickness of the specified wire according to the ice type, the current pixel width and the pre-acquired reference pixel width if the ice type indicates that the specified wire is iced. The reference pixel width is the pixel width in the reference image taken when the specified wire is not iced. The shooting angle and shooting position of the wire image and the reference image are the same.

[0165] In an optional embodiment, the recognition module 120 is specifically used to: obtain a trained wire recognition model, the wire recognition model includes a feature extraction network, a classification network and a segmentation network; input the wire image into the feature extraction network to obtain a low-dimensional feature map and a multi-scale feature map; input the multi-scale feature map into the classification network to obtain the ice cover type of the specified wire; input the low-dimensional feature map and the multi-scale feature map into the segmentation network to obtain a segmented image of the specified wire; and calculate the current pixel width based on the segmented image.

[0166] In an optional embodiment, the calculation module 130 is specifically used to: divide the segmented image into multiple sub-regions along the long side direction of the specified wire; calculate the pixel width of each sub-region according to the number of pixel points in each sub-region along the wide side direction of the specified wire; calculate the current pixel width according to the pixel widths of all sub-regions.

[0167] In an optional embodiment, when the calculation module 130 is used to divide the segmented image into multiple sub-regions along the long side direction of the specified wire, it is specifically used to: generate a minimum rotated circumscribed rectangle of the segmented image, the long side and the wide side of the minimum rotated circumscribed rectangle respectively correspond to the long side direction and the wide side direction of the specified wire; divide the long side into equal parts to obtain multiple sub-regions.

[0168] In an optional embodiment, the feature extraction network includes a low-dimensional feature extraction module, a dilated spatial convolution pooling pyramid ASPP module and a feature fusion module. The recognition module 120 is used to input the wire image into the feature extraction network to obtain a low-dimensional feature map and a multi-scale feature map. Specifically used for: inputting the wire image into the low-dimensional feature extraction module to obtain a low-dimensional feature map; inputting the wire image into the ASPP module for multi-scale feature extraction to obtain multiple intermediate feature maps; inputting multiple intermediate feature maps into the feature fusion module to obtain a multi-scale feature map.

[0169] In an optional embodiment, the multiple intermediate feature maps include a standard intermediate feature map, a dynamic intermediate feature map and a pooled intermediate feature map, and the ASPP module includes a standard convolution layer, a dynamic convolution layer and a strip pooling layer; the recognition module 120 is used to input the wire image into the ASPP module for multi-scale feature extraction to obtain multiple intermediate feature maps, and is specifically used to: input the wire image into the standard convolution layer to perform convolution calculation according to fixed convolution parameters to obtain a standard intermediate feature map; input the wire image into the dynamic convolution layer to perform convolution calculation according to dynamically changing convolution parameters to obtain a dynamic intermediate feature map; input the wire image into the strip pooling layer to perform pooling operations in the horizontal direction and the vertical direction respectively, and then fuse the results of the horizontal and vertical pooling to obtain a pooled intermediate feature map.

[0170] In an optional embodiment, the calculation module 130 is specifically used to: determine the ice coating density corresponding to the ice coating type according to the mapping relationship between the preset ice coating type and the preset ice coating density; calculate the equivalent ice coating thickness according to the current pixel width, the reference pixel width, the ice coating density, the preset maximum ice coating density and the actual diameter of the specified conductor.

[0171] In an optional embodiment, when the calculation module 130 is used to calculate the equivalent ice thickness based on the current pixel width, the reference pixel width, the ice density, the preset maximum ice density and the actual diameter of the specified conductor, it is specifically used to: calculate the average pixel thickness of the specified conductor based on the current pixel width, the reference pixel width and the actual diameter of the specified conductor; calculate the ice density equivalent ratio based on the ice density and the preset maximum ice density; calculate the equivalent ice thickness based on the average pixel thickness and the ice density equivalent ratio.

[0172] In an optional embodiment, the training module 140 is used to: obtain a sample image and a corresponding label, the label characterizing the type of ice covering the wire in the sample image; train a wire recognition model based on the sample image, the corresponding label and a preset loss function to obtain a trained wire recognition model, the preset loss function is determined by a cross entropy loss and a boundary loss, and the boundary loss is determined based on the distance between the pixel points of the sample image and the wire boundary pre-marked in the sample image.

[0173] In an optional embodiment, the training module 140 is specifically used to: obtain an original image and a corresponding label, the label representing the type of ice covering the wire in the original image; extract an image of a preset size from the original image, and use the extracted image as a sample image, the label of the sample image is the same as the label of the original image.

[0174] The embodiment of the present invention also provides a block diagram of an electronic device 10, and the electronic device 10 implements the wire ice detection method of the above embodiment, please refer to Figure 8 , Figure 8 This is a block diagram of an electronic device 10 provided in this embodiment. The electronic device 10 includes a processor 11, a memory 12 and a bus 13. The processor 11 and the memory 12 are connected via the bus 13.

[0175] The processor 11 may be an integrated circuit chip having the ability to process signals. In the implementation process, each step of the wire ice detection method of the above embodiment may be completed by an integrated logic circuit of hardware or software instructions in the processor 11. The above processor 11 may be a general-purpose processor, including a CPU (Central Processing Unit), a NP (Network Processor), etc.; it may also be a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Logic Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0176] The memory 12 is used to store a program for implementing the wire ice detection method. The program may be a software function module stored in the memory 12 in the form of software or firmware or solidified in the OS (Operating System) of the electronic device 10 .

[0177] After receiving the execution instruction, the processor 11 executes the program to implement the wire ice coating detection method of the above embodiment.

[0178] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the wire icing detection method in the aforementioned embodiment is implemented.

[0179] In summary, the embodiments of the present invention provide a method, device, electronic device and readable storage medium for detecting ice coating on a conductor. The method includes: obtaining a conductor image collected for a specified conductor; identifying the conductor image to obtain the ice coating type of the specified conductor and the current pixel width of the specified conductor in the conductor image; if the ice coating type indicates that the specified conductor is ice coated, then according to the ice coating type, the current pixel width and a pre-acquired reference pixel width, the equivalent ice coating thickness of the specified conductor is calculated, the reference pixel width is the pixel width in a reference image taken when the specified conductor is not ice coated, and the shooting angle and shooting position of the conductor image and the reference image are the same. Compared with the prior art, this embodiment has at least the following advantages: (1) The shooting angle and shooting position of the reference image and the conductor image are the same, and the influence of the ice type is taken into account when calculating the equivalent ice thickness, so that the calculated equivalent ice thickness is more accurate; (2) The inputs of the classification network and the segmentation network of the conductor recognition model come from the same feature extraction network, so that the classification result and the segmentation result are more consistent, which improves the accuracy of conductor ice detection and also makes the calculated equivalent ice thickness more accurate; (3) By using the dynamic convolution layer in the improved ASPP module, the features of the conductor with a slender structure can be extracted more accurately; by using the strip pooling layer in the improved ASPP module, the distance between distant positions can be avoided. Unnecessary connections are established, which is more beneficial for the processing of slender wires; (4) The method of extracting sample images from the original image is used to avoid image edge distortion caused by scaling the original images to unify them when the sizes are not uniform, which affects the accuracy of wire ice feature extraction and ultimately affects the accuracy of detection results and equivalent ice thickness results; (5) The boundary loss is added to the existing cross-entropy loss-based loss function. The boundary loss is determined based on the distance between the pixel points of the sample image and the wire boundary pre-annotated in the sample image. This allows the model training process to pay more attention to the segmentation effect of wires with irregular edges, making the segmentation results more accurate, and ultimately improving the accuracy of the equivalent ice thickness results.

[0180] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for detecting ice coating on a conductor, characterized in that: The method comprises: Acquire a wire image collected for a specified wire; Identify the wire image to obtain the ice type of the designated wire and the current pixel width of the designated wire in the wire image; If the ice coating type indicates that the designated wire is iced, determining an ice coating density corresponding to the ice coating type according to a mapping relationship between a preset ice coating type and a preset ice coating density; The equivalent ice thickness of the designated conductor is calculated according to the current pixel width, the pre-acquired reference pixel width, the ice density, the preset maximum ice density and the actual diameter of the designated conductor, the reference pixel width is the pixel width in the reference image taken when the designated conductor is not iced, and the shooting angle and shooting position of the conductor image and the reference image are the same.

2. The wire ice detection method according to claim 1, characterized in that: The step of identifying the wire image to obtain the ice coating type of the designated wire and the current pixel width of the designated wire in the wire image comprises: Acquire a trained wire recognition model, wherein the wire recognition model includes a feature extraction network, a classification network, and a segmentation network; Inputting the wire image into the feature extraction network to obtain a low-dimensional feature map and a multi-scale feature map; Inputting the multi-scale feature map into the classification network to obtain the ice type of the designated wire; Inputting the low-dimensional feature map and the multi-scale feature map into the segmentation network to obtain a segmentation image of the designated wire; The current pixel width is calculated according to the segmented image.

3. The wire ice detection method according to claim 2, characterized in that: The step of calculating the current pixel width according to the segmented image comprises: Dividing the segmented image into a plurality of sub-areas along the long side direction of the designated wire; Calculating the pixel width of each of the sub-regions according to the number of pixel points in each of the sub-regions along the width direction of the designated wire; The current pixel width is calculated according to the pixel widths of all the sub-areas.

4. The wire ice detection method according to claim 3, characterized in that: The step of equally dividing the segmented image into a plurality of sub-areas along the long side direction of the designated wire comprises: Generate a minimum rotated circumscribed rectangle of the segmented image, wherein the long side and the wide side of the minimum rotated circumscribed rectangle correspond to the long side direction and the wide side direction of the designated wire respectively; The long side is divided into equal parts to obtain the multiple sub-areas.

5. The wire ice detection method according to claim 2, characterized in that: The feature extraction network includes a low-dimensional feature extraction module, a dilated spatial convolutional pooling pyramid ASPP module and a feature fusion module. The step of inputting the wire image into the feature extraction network to obtain a low-dimensional feature map and a multi-scale feature map includes: Inputting the wire image into the low-dimensional feature extraction module to obtain the low-dimensional feature map; Inputting the wire image into the ASPP module to perform multi-scale feature extraction to obtain multiple intermediate feature maps; The multiple intermediate feature maps are input into the feature fusion module to obtain the multi-scale feature map.

6. The wire ice detection method according to claim 5, characterized in that: The multiple intermediate feature maps include a standard intermediate feature map, a dynamic intermediate feature map and a pooled intermediate feature map, and the ASPP module includes a standard convolution layer, a dynamic convolution layer and a strip pooling layer; The step of inputting the wire image into the ASPP module for multi-scale feature extraction to obtain a plurality of intermediate feature maps comprises: Inputting the wire image into the standard convolution layer to perform convolution calculation according to fixed convolution parameters to obtain a standard intermediate feature map; Inputting the wire image into the dynamic convolution layer to perform convolution calculation according to dynamically changing convolution parameters to obtain a dynamic intermediate feature map; The wire image is input into the strip pooling layer to perform pooling operations in the horizontal direction and the vertical direction respectively, and then the results of the horizontal and vertical pooling are fused to obtain a pooled intermediate feature map.

7. The wire ice detection method according to claim 1, characterized in that: The step of calculating the equivalent ice thickness of the designated wire according to the current pixel width, the pre-acquired reference pixel width, the ice density, the preset maximum ice density and the actual diameter of the designated wire comprises: Calculating the average pixel thickness of the designated wire according to the current pixel width, the reference pixel width and the actual diameter of the designated wire; Calculating an ice coating density equivalence ratio according to the ice coating density and the preset maximum ice coating density; The equivalent ice thickness is calculated according to the average pixel thickness and the equivalent ratio of ice density.

8. The wire ice detection method according to claim 2, characterized in that: The method further comprises: Acquire a sample image and a corresponding label, wherein the label represents the ice coating type of the wire in the sample image; Based on the sample image and the corresponding label and a preset loss function, the wire recognition model is trained to obtain the trained wire recognition model, wherein the preset loss function is determined by a cross entropy loss and a boundary loss, and the boundary loss is determined based on a distance between a pixel point of the sample image and a wire boundary pre-marked in the sample image.

9. The wire ice detection method according to claim 8, characterized in that: The step of obtaining sample images and corresponding labels comprises: Acquire an original image and a corresponding label, wherein the label represents the ice coating type of the wire in the original image; An image of a preset size is extracted from the original image, and the extracted image is used as the sample image, wherein the label of the sample image is the same as the label of the original image.

10. A wire ice detection device, characterized in that: The device comprises: An acquisition module, used for acquiring a wire image collected for a specified wire; An identification module, used for identifying the wire image, obtaining the ice type of the designated wire and the current pixel width of the designated wire in the wire image; A calculation module is used to determine, if the ice coating type indicates that the designated conductor is ice coated, an ice coating density corresponding to the ice coating type according to a mapping relationship between a preset ice coating type and a preset ice coating density; and calculate an equivalent ice coating thickness of the designated conductor according to the current pixel width, a pre-acquired reference pixel width, the ice coating density, a preset maximum ice coating density and an actual diameter of the designated conductor, wherein the reference pixel width is a pixel width in a reference image taken when the designated conductor is not ice coated, and the conductor image and the reference image have the same shooting angle and shooting position.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a program, and the processor is used to implement the wire ice coating detection method according to any one of claims 1 to 9 when executing the program.

12. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the wire ice coating detection method according to any one of claims 1 to 9 is implemented.