A method for enhancing ice and snow coverage content of power facility images

By building a special rime and snow powder coverage detection module, and using multi-scale scaling processing to identify the ice and snow cover content in the power facility image, the problem of poor identification effect in the existing technology is solved, and stable and accurate ice and snow cover enhancement is achieved. Suitable for edge deployments.

CN119090725BActive Publication Date: 2024-12-31CHANGCHUN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411570841.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2024-12-31
Estimated Expiration
2044-11-06

AI Technical Summary

Technical Problem

The prior art is difficult to effectively identify and enhance the ice and snow cover content in the image of power facilities, especially in the case of rime and snow powder, which leads to poor recognition effect. In addition, deep learning methods rely on too many samples and computing resources, making it difficult to deploy at the edge. .

Method used

Build a rime coverage detection module and a snow powder coverage detection module for power facilities. Through multi-scale scaling processing and specific matrix analysis, the ice and snow cover content is identified and enhanced, independent of lighting and equipment conditions, and avoid overfitting.

Benefits of technology

It achieves stable and accurate ice and snow coverage content enhancement, reduces computing resource requirements, is suitable for edge deployment, and is adapted to different environmental conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119090725B_ABST
    Figure CN119090725B_ABST
Patent Text Reader

Abstract

The present invention provides a method for enhancing the ice and snow coverage content of power facility images, including: constructing a power facility rime coverage detection module and a power facility snow and powder coverage detection module, identifying a pre-processed multi-scale image list to be analyzed, and storing the identification results in a list of images after rime coverage detection and a list of images after snow and powder coverage detection, respectively; using the list of images after rime coverage detection and the list of images after snow and powder coverage detection to enhance the expression of the ice and snow coverage content of the power facility image. The present invention constructs a power facility rime coverage detection module and a power facility snow and powder coverage detection module, describes the image characteristics of rime and snow powder that may appear on power equipment, and then identifies the content of the image based on different scaling ratios, and realizes the enhancement of the ice and snow coverage content of the power facility image by integrating the content identified by the modules at a certain scale. The patented method can achieve more stable and accurate enhancement of ice and snow coverage content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power transmission line inspection, and in particular to a method for enhancing ice and snow coverage content of an image of a power facility. Background Art

[0002] When transmission lines pass through high-altitude, high-humidity, and low-temperature mountainous areas in winter, overhead wires are easily covered with ice and snow. In severe cases, the mechanical and electrical performance of the transmission lines may deteriorate sharply, causing very serious accidents such as power line tripping and tower collapse. Therefore, it is necessary to identify and discover the ice and snow coverage in power facilities. Due to the huge amount of power facility image acquisition, the color and background of the transmission lines in winter are relatively simple, so the patrol personnel are easily tired when inspecting the power facility images and thus miss the ice and snow coverage. Therefore, the enhanced expression of the ice and snow coverage content of the power facility image makes the ice and snow content more obvious, which is very important for the ice and snow coverage inspection of transmission lines.

[0003] At present, the main methods used to enhance the snow and ice content of power facility images include: 1) Using edge detection methods such as the Candy operator to draw the edge conditions in the image. This method is relatively easy to calculate, but under some weather conditions, power transmission equipment is prone to produce rime ice forms, and the boundaries of these forms will be similar to the image background (such as a mountain covered with stones), which will make the new boundaries more chaotic and reduce the recognition effect. 2) Using texture calculation formulas to identify based on a certain threshold. A typical feature of this method is to lock the results of specific distances, positions, and lighting, so that the results of experiments and papers with ideal conditions for this type of method are better, but in practical work, the conditions of cameras and drone lenses for power transmission equipment are often more variable, and texture efficiency is often extremely low. 3) Introducing artificial intelligence algorithms, such as convolutional neural networks and U-Net neural networks for deep recognition. This type of recognition relies on samples, and ice cover is often more common in some areas and less common in others. This makes it very easy for these neural networks to overfit to specific areas or morphological directions, resulting in a method that works well in one area being unable to be used in other areas. At the same time, deep intelligent methods often require more computing power and network data to implement, which will become a major obstacle to the edge deployment of algorithms and implementation in remote areas. In actual work, the implementation is often costly and has a low return rate.

[0004] Therefore, it is necessary to propose a simple and easy enhancement method specifically for the ice and snow cover features of power facilities, which can directly identify possible ice and snow features in an image and enhance their expression. Summary of the invention

[0005] In view of the defects of the prior art, the present invention provides a method for enhancing the ice and snow coverage content of power facility images, which can effectively solve the above problems.

[0006] The technical solution adopted by the present invention is as follows:

[0007] The present invention provides a method for enhancing ice and snow coverage content of an electric power facility image, comprising the following steps:

[0008] S1, inputting an image Image of a power facility covered with ice and snow to be enhanced, obtaining an image width ImageWidth and an image height ImageHeight of the power facility image Image; preprocessing the power facility image Image to obtain a preprocessed image PSImage; performing multi-scale scaling processing on the preprocessed image PSImage to form a preprocessed multi-scale image list ANList to be analyzed;

[0009] S2, establishing a list of images after rime cover detection WSTCList, and establishing a list of images after snow powder cover detection XFTCList;

[0010] S3, construct the rime coverage detection module WSTCModel for power facilities;

[0011] The input of the power facility rime coverage detection module WSTCModel is the rime image to be detected WSTCModelInput, the row WSTCFH where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput, and the column WSTCFL where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput; the output is the rime detection mark value WSTCResult;

[0012] S4, construct the snow and powder cover detection module XFTCModel for power facilities;

[0013] The power facility snow powder cover detection module XFTCModel inputs the snow powder image to be detected XFTCModelInput, the row XFTCFH where the snow powder pixel to be detected is located on the snow powder image to be detected XFTCModelInput, and the column XFTCFL where the snow powder pixel to be detected is located on the snow powder image to be detected XFTCModelInput; the output is the snow powder detection mark value XFTCResult;

[0014] S5, using the power facility rime cover detection module WSTCModel and the power facility snow powder cover detection module XFTCModel to process each image to be analyzed in the pre-processed multi-scale image list to be analyzed ANList of step S1, identifying the rime detection tag value WSTCResult and the snow powder detection tag value XFTCResult, and storing the identification results in the rime cover detection image list WSTCList and the snow powder cover detection image list XFTCList respectively;

[0015] S6, using the rime cover detection image list WSTCList and the snow powder cover detection image list XFTCList, enhance the expression of the ice and snow cover content of the power facility image Image.

[0016] Preferably, S1 is specifically:

[0017] S101, inputting an image Image of the power facilities covered with ice and snow to be enhanced;

[0018] S102, Image width ImageWidth=width of the power facility image Image;

[0019] S103, Image height ImageHeight = the height of the power facility image Image;

[0020] S104, pre-processed image PSImage=convert the power facility image Image into a grayscale image and perform histogram enhancement;

[0021] S105, pre-processing multi-scale image list to be analyzed ANList = empty list;

[0022] S106, pre-processing counter YCLCounter=1;

[0023] S107, preprocessing scaling variable YCLSF=1, the variable value range is 0 to 1;

[0024] S108, pre-processing the temporarily stored image YCLTemp=reducing the electric power facility image Image to an image with a width of ImageWidth*YCLSF and a height of ImageHeight* YCLSF;

[0025] S109, adding the pre-processed temporary image YCLTemp to the pre-processed multi-scale image list to be analyzed ANList in S105;

[0026] S110, preprocessing scaling variable YCLSF = YCLSF-0.2;

[0027] S111, preprocessing counter YCLCounter=YCLCounter+1;

[0028] S112, if the preprocessing counter YCLCounter is less than or equal to 4, go to S108, otherwise go to S113;

[0029] S113, step S1 ends.

[0030] Preferably, step S2 specifically comprises:

[0031] S201, establish a list of images after rime cover detection WSTCList = empty list, establish a list of images after snow powder cover detection XFTCList = empty list;

[0032] S202, after detection, counter TCHCounter=1;

[0033] S203, the first temporary image after detection TCHTemp1 = creates an image with the same size as the power facility image Image, the image contains one band, and the type of each pixel is floating point and the default value is 0;

[0034] S204, the second temporary image after detection TCHTemp2 = creates an image with the same size as the power facility image Image, the image contains one band, and the type of each pixel is floating point and the default value is 0;

[0035] S205, adding the first temporarily stored image TCHTemp1 after detection to the list of images after rime cover detection WSTCList;

[0036] S206, adding the second temporarily stored image TCHTemp2 after detection to the snow powder cover detection image list XFTCList;

[0037] S207, after detection, counter TCHCounter=TCHCounter+1;

[0038] S208, if the post-detection counter TCHCounter is less than or equal to 4, go to S203, otherwise go to S209;

[0039] S209, step S2 ends.

[0040] Preferably, step S3 specifically comprises:

[0041] S301, constructing a power facility rime coverage detection module WSTCModel; the power facility rime coverage detection module WSTCModel input is a rime image to be detected WSTCModelInput, a row WSTCFH where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput, and a column WSTCFL where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput;

[0042] S302, the center pixel of the power facility rime coverage detection WSTCCenter=gets the value of the pixel in the WSTCFH row and WSTCFL column of the rime image WSTCModelInput to be detected;

[0043] S303, establish a power facility rime coverage detection matrix WSTCMatrix = establish a matrix with 5 rows and 5 columns, and the value of each element of the matrix is ​​0;

[0044] S304, the first counter WSTCCounter1 for detecting rime coverage of power facilities = 1;

[0045] S305, the second counter for detecting rime coverage of power facilities WSTCCounter2=1;

[0046] S306, temporary storage pixel WSTCTempPixel for detecting rime coverage of power facilities = taking out the pixel located at the WSTCFH-3+WSTCCounter1th row and the WSTCFL-3+WSTCCounter1th column on the rime coverage image WSTCModelInput to be detected;

[0047] S307: If the temporary storage pixel WSTCTempPixel for detecting rime coverage of power facilities meets the following conditions:

[0048] If the temporary storage pixel WSTCTempPixel of the detection of rime coverage of electric power facilities is greater than 0.8 or the temporary storage pixel WSTCTempPixel of the detection of rime coverage of electric power facilities is less than 0.2, then go to S309; ​​if the condition is not met, then go to S308;

[0049] S308, the element value of the WSTCFH-3+ WSTCCounter1th row and the WSTCFL-3+WSTCCounter1th column of the power facility rime coverage detection matrix WSTCMatrix = ABS(WSTCCenter-WSTCTempPixel) / WSTCCenter; where ABS takes the absolute value;

[0050] S309, the second counter for detecting rime coverage of power facilities WSTCCounter2 = WSTCCounter2+1;

[0051] S310, if the second counter WSTCCounter2 for detecting rime coverage of electric power facilities is less than or equal to 5, go to S306, otherwise go to S311;

[0052] S311, the first counter for detecting rime coverage of power facilities WSTCCounter1 = WSTCCounter1+1;

[0053] S312, if the second counter WSTCCounter2 for detecting rime coverage of electric power facilities is less than or equal to 5, go to S305, otherwise go to S313;

[0054] S313, the first temporary variable WSTCTemp1 for detecting rime coverage of electric power facilities = the number of elements equal to 0 in the matrix WSTCMatrix for detecting rime coverage of electric power facilities;

[0055] S314, the second temporary variable WSTCTemp2 for detecting rime coverage of electric power facilities = the number of elements in the matrix WSTCMatrix for detecting rime coverage of electric power facilities that are greater than 0 and less than or equal to 0.5;

[0056] S315, the third temporary variable WSTCTemp3 for detecting rime coverage of electric power facilities = the number of elements greater than 0.5 in the matrix WSTCMatrix for detecting rime coverage of electric power facilities;

[0057] S316, rime detection mark value WSTCResult = (0.5* WSTCTemp2 + WSTCTemp3) / WSTCTemp1;

[0058] S317, if the rime detection flag value WSTCResult is greater than 1, set the rime detection flag value WSTCResult=0;

[0059] S318, rime detection mark value WSTCResult=tanh(WSTCResult); wherein tanh is a hyperbolic tangent function;

[0060] S319, outputting the rime detection mark value WSTCResult as the result of the power facility rime coverage detection module WSTCModel.

[0061] Preferably, step S4 is specifically:

[0062] S401, constructing a snow powder cover detection module XFTCModel for electric power facilities; the input of the snow powder cover detection module XFTCModel for electric power facilities is a snow powder image to be detected XFTCModelInput, a row XFTCFH where the snow powder to be detected pixels are located on the snow powder image to be detected XFTCModelInput, and a column XFTCFL where the snow powder to be detected pixels are located on the snow powder image to be detected XFTCModelInput;

[0063] S402, the center pixel XFTCCenter of the snow powder cover detection of power facilities = retrieves the value of the pixel in the XFTCFH row and XFTCFL column of the snow powder image XFTCModelInput to be detected;

[0064] S403, the first list of snow and powder cover detection offsets of power facilities XFNB1=((-1,-1),(-1,0),(-1,1),(0,1));

[0065] S404, the second list of snow and powder cover detection offsets of power facilities XFNB2=((1,1),(1,0),(1,-1),(0,-1));

[0066] S405, temporary storage list of snow and powder cover detection of power facilities XFArray = (0,0,0,0);

[0067] S406, power facility snow powder cover counter XFTCCounter = 1;

[0068] S407, the first position variable XFTemp1 of the temporary storage offset of snow and powder coverage of electric facilities = taking out the XFTCCounterth element of the first list XFNB1 of the detection offset of snow and powder coverage of electric facilities;

[0069] S408, the second position variable XFTemp2 of the temporary storage offset of snow and powder coverage of electric facilities = takes out the XFTCCounterth element of the second list XFNB2 of the detection offset of snow and powder coverage of electric facilities;

[0070] S409, the first temporary pixel XFPixel1 of the snow powder coverage of the power facility = retrieve the value of the pixel in the XFTCFH+ XFTemp1[1] row and XFTCFL+ XFTemp1[2] column of the snow powder image to be detected XFTCModelInput; wherein XFTemp1[1] means: the first element in the first position variable XFTemp1 of the temporary offset of the snow powder coverage of the power facility; XFTemp1[2] means: the second element in the first position variable XFTemp1 of the temporary offset of the snow powder coverage of the power facility;

[0071] S410, the second temporary pixel XFPixel2 of the snow powder coverage of the power facility = retrieves the value of the pixel in the XFTCFH+ XFTemp2[1] row and the XFTCFL+ XFTemp2[2] column of the snow powder image to be detected XFTCModelInput; wherein: XFTemp2[1] means: the first element in the second position variable XFTemp2 of the temporary offset of the snow powder coverage of the power facility; XFTemp2[2] means: the second element in the second position variable XFTemp2 of the temporary offset of the snow powder coverage of the power facility;

[0072] S411, the first interval value of snow powder coverage of power facilities XFGap1=Max(ABS(XFPixel1- XFTCCenter), ABS( XFPixel2- XFTCCenter)); wherein Max is the maximum value of the two values, and ABS is the absolute value;

[0073] S412, the second interval value of snow powder coverage of power facilities XFGap2 = ABS(XFPixel1- XFPixel1); where ABS is the absolute value;

[0074] S413, the value of the XFTCCounter element of the temporary storage list XFArray of snow and powder cover detection of power facilities = tanh (ABS(XFGap1- XFGap2) / (XFGap1+ XFGap2)+0.2); where tanh is a hyperbolic tangent function and ABS is an absolute value;

[0075] S414, power facility snow powder cover counter XFTCCounter=XFTCCounter+1;

[0076] S415, if the snow powder cover counter XFTCCounter of the power facility is less than or equal to 4, go to S407, otherwise go to S416;

[0077] S416, snow powder detection tag value XFTCResult = the maximum value of all elements in the power facility snow powder coverage detection temporary storage list XFArray;

[0078] S417, the snow powder detection mark value XFTCResult is used as the result output of the power facility snow powder cover detection module XFTCModel.

[0079] Preferably, step S5 is specifically:

[0080] S501, process counter CLCounter=1;

[0081] S502, establish a pixel-by-pixel processing first temporary image CLTemp1, use the power facility rime coverage detection module WSTCModel to process each pixel of the CLCounterth element of the preprocessed multi-scale image list ANList to be analyzed, and write the result of each pixel processing into the corresponding row and column position of the pixel-by-pixel processing first temporary image CLTemp1;

[0082] S503, establish a pixel-by-pixel processing second temporary image CLTemp2, use the power facility snow powder cover detection module XFTCModel to process each pixel of the CLCounterth element of the preprocessed multi-scale image list ANList to be analyzed, and write the result of each pixel processing into the corresponding row and column position of the pixel-by-pixel processing second temporary image CLTemp2;

[0083] S504, scaling the first temporarily stored image CLTemp1 pixel by pixel to an image with a width of ImageWidth and a height of ImageHeight;

[0084] S505, scaling the second temporarily stored image CLTemp2 pixel by pixel to an image with a width of ImageWidth and a height of ImageHeight;

[0085] S506, processing the first temporary image CLTemp1 pixel by pixel= Determine whether the value of each pixel of the first temporary image CLTemp1 is greater than 0.5, if so, the pixel at the corresponding position is set to 1, otherwise, the corresponding pixel is set to 0;

[0086] S507, processing the second temporary image CLTemp2 pixel by pixel= Determine whether the value of each pixel of the second temporary image CLTemp2 is greater than 0.5, if so, the pixel at the corresponding position is set to 1, otherwise, the corresponding pixel is set to 0;

[0087] S508, the CLCounterth element of the image list WSTCList after rime coverage detection = processing the first temporarily stored image CLTemp1 pixel by pixel;

[0088] S509, the CLCounterth element of the snow powder cover detection image list XFTCList = processing the second temporary image CLTemp2 pixel by pixel;

[0089] S510, process counter CLCounter=CLCounter+1;

[0090] S511, if the processing counter CLCounter is less than or equal to 4, go to S502, otherwise go to S512;

[0091] S512, step S5 ends.

[0092] Preferably, step S6 specifically comprises:

[0093] S601, enhanced expression counter ZQCounter=1;

[0094] S602, maximum rime position variable ZQZDWS=1; maximum rime quantity ZQWSNUM=-1;

[0095] S603, maximum snow powder position variable ZQZDXF=1; maximum rime quantity ZQXFNUM=-1;

[0096] S604, if the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list WSTCList after rime coverage detection is greater than the maximum rime number ZQWSNUM, then set: ZQZDWS=ZQCounter, ZQWSNUM=the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list WSTCList after rime coverage detection;

[0097] S605, if the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list XFTCList after snow powder cover detection is greater than the maximum rime number ZQXFNUM, set: ZQZDXF=ZQCounter, ZQXFNUM=the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list XFTCList after snow powder cover detection;

[0098] S606, enhanced expression counter ZQCounter=ZQCounter+1;

[0099] S607, if the enhanced expression counter ZQCounter is less than or equal to 4, go to S604, otherwise go to S608;

[0100] S608, the maximum adaptive rime position ZQWSImage=the ZQZDWSth element of the rime coverage image list WSTCList after detection;

[0101] S609, maximum adaptive snow powder position ZQXFImage=the ZQZDXFth element of the image list XFTCList after snow powder cover detection;

[0102] S610, maximum adaptive rime position ZQWSImage=all element values ​​greater than 0.5 in the maximum adaptive rime position ZQWSImage are changed to 1, and element values ​​less than or equal to 0.5 are changed to 0;

[0103] S611, maximum adaptive snow powder position ZQXFImage = all element values ​​in the maximum adaptive snow powder position ZQXFImage that are greater than 0.5 are changed to 1, and the element values ​​that are less than or equal to 0.5 are changed to 0;

[0104] S612, create an enhanced expression of the snow-covered power facility image ZQImage= Image;

[0105] S613, finding all pixel positions WSPositions with a value of 1 in the maximum adaptive rime position ZQWSImage, and marking the pixels at the positions recorded by the pixel positions WSPositions in red in the enhanced expression snow-covered power facility image ZQImage;

[0106] S614, finding all pixel positions XFPositions with a value of 1 in the maximum adaptive snow powder position ZQXFImage, and marking the pixels of the positions recorded by the pixel positions XFPositions in red in the enhanced expression snow-covered power facility image ZQImage;

[0107] S615, outputting the maximum adaptive snow powder position ZQXFImage as the snow cover content enhanced expression result.

[0108] The method for enhancing the ice and snow coverage content of an electric power facility image provided by the present invention has the following advantages:

[0109] The present invention provides a method for enhancing the ice and snow coverage content of power facility images. The method constructs a power facility rime coverage detection module and a power facility snow powder coverage detection module, specifically describes the image characteristics of rime and snow powder that may appear on power equipment, and then recognizes the content of the image based on different scaling ratios. By integrating the content recognized by the modules at a certain scale, the ice and snow coverage content of the power facility image is enhanced. The patented method can achieve more stable and accurate enhancement of ice and snow coverage content. BRIEF DESCRIPTION OF THE DRAWINGS

[0110] Figure 1 A schematic flow chart of a method for enhancing ice and snow coverage content of an electric power facility image provided by the present invention. DETAILED DESCRIPTION

[0111] In order to make the technical problems, technical solutions and beneficial effects solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0112] In view of the problems existing in the prior art, the present invention provides a method for enhancing the ice and snow coverage content of power facility images. The method constructs a power facility rime coverage detection module and a power facility snow powder coverage detection module, specifically describes the image characteristics of rime and snow powder that may appear on power equipment, and then recognizes the content of the image based on different scaling ratios, and realizes the enhancement of the ice and snow coverage content of the power facility image by integrating the content recognized by the modules at a certain scale. The patented method can achieve more stable and accurate enhancement of ice and snow coverage content.

[0113] See also Figure 1 The present invention provides a method for enhancing the ice and snow coverage content of an electric power facility image, comprising the following steps:

[0114] S1, inputting an image Image of a power facility covered with ice and snow to be enhanced, obtaining an image width ImageWidth and an image height ImageHeight of the power facility image Image; preprocessing the power facility image Image to obtain a preprocessed image PSImage; performing multi-scale scaling processing on the preprocessed image PSImage to form a preprocessed multi-scale image list ANList to be analyzed;

[0115] Step S1 is specifically as follows:

[0116] S101, inputting an image Image of the power facilities covered with ice and snow to be enhanced;

[0117] S102, Image width ImageWidth=width of the power facility image Image;

[0118] S103, Image height ImageHeight = the height of the power facility image Image;

[0119] S104, pre-processed image PSImage=convert the power facility image Image into a grayscale image and perform histogram enhancement;

[0120] S105, pre-processing multi-scale image list to be analyzed ANList = empty list;

[0121] S106, pre-processing counter YCLCounter=1;

[0122] S107, preprocessing scaling variable YCLSF=1, the variable value range is 0 to 1;

[0123] S108, pre-processing the temporarily stored image YCLTemp=reducing the electric power facility image Image to an image with a width of ImageWidth*YCLSF and a height of ImageHeight* YCLSF;

[0124] S109, adding the pre-processed temporary image YCLTemp to the pre-processed multi-scale image list to be analyzed ANList in S105;

[0125] S110, preprocessing scaling variable YCLSF = YCLSF-0.2;

[0126] S111, preprocessing counter YCLCounter=YCLCounter+1;

[0127] S112, if the preprocessing counter YCLCounter is less than or equal to 4, go to S108, otherwise go to S113;

[0128] S113, step S1 ends.

[0129] S2, establish a list of images after rime cover detection WSTCList, and establish a list of images after snow powder cover detection XFTCList;

[0130] Step S2 is specifically as follows:

[0131] S201, establish a list of images after rime cover detection WSTCList = empty list, establish a list of images after snow powder cover detection XFTCList = empty list;

[0132] S202, after detection, counter TCHCounter=1;

[0133] S203, the first temporary image after detection TCHTemp1 = creates an image with the same size as the power facility image Image, the image contains one band, and the type of each pixel is floating point and the default value is 0;

[0134] S204, the second temporary image after detection TCHTemp2 = creates an image with the same size as the power facility image Image, the image contains one band, and the type of each pixel is floating point and the default value is 0;

[0135] S205, adding the first temporarily stored image TCHTemp1 after detection to the list of images after rime cover detection WSTCList;

[0136] S206, adding the second temporarily stored image TCHTemp2 after detection to the snow powder cover detection image list XFTCList;

[0137] S207, after detection, counter TCHCounter=TCHCounter+1;

[0138] S208, if the post-detection counter TCHCounter is less than or equal to 4, go to S203, otherwise go to S209;

[0139] S209, step S2 ends.

[0140] S3, construct the rime coverage detection module WSTCModel for power facilities;

[0141] The input of the power facility rime coverage detection module WSTCModel is the rime image to be detected WSTCModelInput, the row WSTCFH where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput, and the column WSTCFL where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput; the output is the rime detection mark value WSTCResult;

[0142] Step S3 is specifically as follows:

[0143] S301, constructing a power facility rime coverage detection module WSTCModel; the power facility rime coverage detection module WSTCModel input is a rime image to be detected WSTCModelInput, a row WSTCFH where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput, and a column WSTCFL where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput;

[0144] S302, the center pixel of the power facility rime coverage detection WSTCCenter=gets the value of the pixel in the WSTCFH row and WSTCFL column of the rime image WSTCModelInput to be detected;

[0145] S303, establish a power facility rime coverage detection matrix WSTCMatrix = establish a matrix with 5 rows and 5 columns, and the value of each element of the matrix is ​​0;

[0146] S304, the first counter WSTCCounter1 for detecting rime coverage of power facilities = 1;

[0147] S305, the second counter for detecting rime coverage of power facilities WSTCCounter2=1;

[0148] S306, temporary storage pixel WSTCTempPixel for detecting rime coverage of power facilities = taking out the pixel located at the WSTCFH-3+WSTCCounter1th row and the WSTCFL-3+WSTCCounter1th column on the rime coverage image WSTCModelInput to be detected;

[0149] S307: If the temporary storage pixel WSTCTempPixel for detecting rime coverage of power facilities meets the following conditions:

[0150] If the temporary pixel WSTCTempPixel for detecting rime coverage of electric power facilities is greater than 0.8 or the temporary pixel WSTCTempPixel for detecting rime coverage of electric power facilities is less than 0.2, then go to S309; ​​if the condition is not met, then go to S308;

[0151] S308, the element value of the WSTCFH-3+ WSTCCounter1th row and the WSTCFL-3+WSTCCounter1th column of the power facility rime coverage detection matrix WSTCMatrix = ABS(WSTCCenter-WSTCTempPixel) / WSTCCenter; where ABS takes the absolute value;

[0152] S309, the second counter for detecting rime coverage of power facilities WSTCCounter2 = WSTCCounter2+1;

[0153] S310, if the second counter WSTCCounter2 for detecting rime coverage of electric power facilities is less than or equal to 5, go to S306, otherwise go to S311;

[0154] S311, the first counter for detecting rime coverage of power facilities WSTCCounter1 = WSTCCounter1+1;

[0155] S312, if the second counter WSTCCounter2 for detecting rime coverage of electric power facilities is less than or equal to 5, go to S305, otherwise go to S313;

[0156] S313, the first temporary variable WSTCTemp1 for detecting rime coverage of electric power facilities = the number of elements equal to 0 in the matrix WSTCMatrix for detecting rime coverage of electric power facilities;

[0157] S314, the second temporary variable WSTCTemp2 for detecting rime coverage of electric power facilities = the number of elements in the matrix WSTCMatrix for detecting rime coverage of electric power facilities that are greater than 0 and less than or equal to 0.5;

[0158] S315, the third temporary variable WSTCTemp3 for detecting rime coverage of electric power facilities = the number of elements greater than 0.5 in the matrix WSTCMatrix for detecting rime coverage of electric power facilities;

[0159] S316, rime detection mark value WSTCResult = (0.5* WSTCTemp2 + WSTCTemp3) / WSTCTemp1;

[0160] S317, if the rime detection flag value WSTCResult is greater than 1, set the rime detection flag value WSTCResult=0;

[0161] S318, rime detection mark value WSTCResult=tanh(WSTCResult); wherein tanh is a hyperbolic tangent function;

[0162] S319, outputting the rime detection mark value WSTCResult as the result of the power facility rime coverage detection module WSTCModel.

[0163] S4, construct the snow and powder cover detection module XFTCModel for power facilities;

[0164] The power facility snow powder cover detection module XFTCModel inputs the snow powder image to be detected XFTCModelInput, the row XFTCFH where the snow powder pixel to be detected is located on the snow powder image to be detected XFTCModelInput, and the column XFTCFL where the snow powder pixel to be detected is located on the snow powder image to be detected XFTCModelInput; the output is the snow powder detection mark value XFTCResult;

[0165] Step S4 is specifically as follows:

[0166] S401, constructing a snow powder cover detection module XFTCModel for electric power facilities; the input of the snow powder cover detection module XFTCModel for electric power facilities is a snow powder image to be detected XFTCModelInput, a row XFTCFH where the snow powder to be detected pixels are located on the snow powder image to be detected XFTCModelInput, and a column XFTCFL where the snow powder to be detected pixels are located on the snow powder image to be detected XFTCModelInput;

[0167] S402, the center pixel XFTCCenter of the snow powder cover detection of power facilities = retrieves the value of the pixel in the XFTCFH row and XFTCFL column of the snow powder image XFTCModelInput to be detected;

[0168] S403, the first list of snow and powder cover detection offsets of power facilities XFNB1=((-1,-1),(-1,0),(-1,1),(0,1));

[0169] S404, the second list of snow and powder cover detection offsets of power facilities XFNB2=((1,1),(1,0),(1,-1),(0,-1));

[0170] S405, temporary storage list of snow and powder cover detection of power facilities XFArray = (0,0,0,0);

[0171] S406, power facility snow powder cover counter XFTCCounter = 1;

[0172] S407, the first position variable XFTemp1 of the temporary storage offset of snow and powder coverage of electric facilities = taking out the XFTCCounterth element of the first list XFNB1 of the detection offset of snow and powder coverage of electric facilities;

[0173] S408, the second position variable XFTemp2 of the temporary storage offset of snow and powder coverage of electric facilities = takes out the XFTCCounterth element of the second list XFNB2 of the detection offset of snow and powder coverage of electric facilities;

[0174] S409, the first temporary pixel XFPixel1 of the snow powder coverage of the power facility = retrieve the value of the pixel in the XFTCFH+ XFTemp1[1] row and XFTCFL+ XFTemp1[2] column of the snow powder image to be detected XFTCModelInput; wherein XFTemp1[1] means: the first element in the first position variable XFTemp1 of the temporary offset of the snow powder coverage of the power facility; XFTemp1[2] means: the second element in the first position variable XFTemp1 of the temporary offset of the snow powder coverage of the power facility;

[0175] S410, the second temporary pixel XFPixel2 of the snow powder coverage of the power facility = retrieves the value of the pixel in the XFTCFH+ XFTemp2[1] row and the XFTCFL+ XFTemp2[2] column of the snow powder image to be detected XFTCModelInput; wherein: XFTemp2[1] means: the first element in the second position variable XFTemp2 of the temporary offset of the snow powder coverage of the power facility; XFTemp2[2] means: the second element in the second position variable XFTemp2 of the temporary offset of the snow powder coverage of the power facility;

[0176] S411, the first interval value of snow powder coverage of power facilities XFGap1=Max(ABS(XFPixel1- XFTCCenter), ABS( XFPixel2- XFTCCenter)); wherein Max is the maximum value of the two values, and ABS is the absolute value;

[0177] S412, the second interval value of snow powder coverage of power facilities XFGap2 = ABS(XFPixel1- XFPixel1); where ABS is the absolute value;

[0178] S413, the value of the XFTCCounter element of the temporary storage list XFArray of snow and powder cover detection of power facilities = tanh (ABS(XFGap1- XFGap2) / (XFGap1+ XFGap2)+0.2); where tanh is a hyperbolic tangent function and ABS is an absolute value;

[0179] S414, power facility snow powder cover counter XFTCCounter=XFTCCounter+1;

[0180] S415, if the snow powder cover counter XFTCCounter of the power facility is less than or equal to 4, go to S407, otherwise go to S416;

[0181] S416, snow powder detection tag value XFTCResult = the maximum value of all elements in the power facility snow powder coverage detection temporary storage list XFArray;

[0182] S417, the snow powder detection mark value XFTCResult is used as the result output of the power facility snow powder cover detection module XFTCModel.

[0183] S5, using the power facility rime cover detection module WSTCModel and the power facility snow powder cover detection module XFTCModel to process each image to be analyzed in the pre-processed multi-scale image list to be analyzed ANList of step S1, identifying the rime detection tag value WSTCResult and the snow powder detection tag value XFTCResult, and storing the identification results in the rime cover detection image list WSTCList and the snow powder cover detection image list XFTCList respectively;

[0184] Step S5 is specifically as follows:

[0185] S501, process counter CLCounter=1;

[0186] S502, establish a pixel-by-pixel processing first temporary image CLTemp1, use the power facility rime coverage detection module WSTCModel to process each pixel of the CLCounterth element of the preprocessed multi-scale image list ANList to be analyzed, and write the result of each pixel processing into the corresponding row and column position of the pixel-by-pixel processing first temporary image CLTemp1;

[0187] S503, establish a pixel-by-pixel processing second temporary image CLTemp2, use the power facility snow powder cover detection module XFTCModel to process each pixel of the CLCounterth element of the preprocessed multi-scale image list ANList to be analyzed, and write the result of each pixel processing into the corresponding row and column position of the pixel-by-pixel processing second temporary image CLTemp2;

[0188] S504, scaling the first temporarily stored image CLTemp1 pixel by pixel to an image with a width of ImageWidth and a height of ImageHeight;

[0189] S505, scaling the second temporarily stored image CLTemp2 pixel by pixel to an image with a width of ImageWidth and a height of ImageHeight;

[0190] S506, processing the first temporary image CLTemp1 pixel by pixel= Determine whether the value of each pixel of the first temporary image CLTemp1 is greater than 0.5, if so, the pixel at the corresponding position is set to 1, otherwise, the corresponding pixel is set to 0;

[0191] S507, processing the second temporary image CLTemp2 pixel by pixel= Determine whether the value of each pixel of the second temporary image CLTemp2 is greater than 0.5, if so, the pixel at the corresponding position is set to 1, otherwise, the corresponding pixel is set to 0;

[0192] S508, the CLCounterth element of the image list WSTCList after rime coverage detection = processing the first temporarily stored image CLTemp1 pixel by pixel;

[0193] S509, the CLCounterth element of the snow powder cover detection image list XFTCList = processing the second temporary image CLTemp2 pixel by pixel;

[0194] S510, process counter CLCounter=CLCounter+1;

[0195] S511, if the processing counter CLCounter is less than or equal to 4, go to S502, otherwise go to S512;

[0196] S512, step S5 ends.

[0197] S6, using the rime cover detection image list WSTCList and the snow powder cover detection image list XFTCList, enhance the expression of the ice and snow cover content of the power facility image Image.

[0198] Step S6 is specifically as follows:

[0199] S601, enhanced expression counter ZQCounter=1;

[0200] S602, maximum rime position variable ZQZDWS=1; maximum rime quantity ZQWSNUM=-1;

[0201] S603, maximum snow powder position variable ZQZDXF=1; maximum rime quantity ZQXFNUM=-1;

[0202] S604, if the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list WSTCList after rime coverage detection is greater than the maximum rime number ZQWSNUM, then set: ZQZDWS=ZQCounter, ZQWSNUM=the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list WSTCList after rime coverage detection;

[0203] S605, if the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list XFTCList after snow powder cover detection is greater than the maximum rime number ZQXFNUM, set: ZQZDXF=ZQCounter, ZQXFNUM=the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list XFTCList after snow powder cover detection;

[0204] S606, enhanced expression counter ZQCounter=ZQCounter+1;

[0205] S607, if the enhanced expression counter ZQCounter is less than or equal to 4, go to S604, otherwise go to S608;

[0206] S608, the maximum adaptive rime position ZQWSImage=the ZQZDWSth element of the rime coverage image list WSTCList after detection;

[0207] S609, maximum adaptive snow powder position ZQXFImage=the ZQZDXFth element of the image list XFTCList after snow powder cover detection;

[0208] S610, maximum adaptive rime position ZQWSImage=all element values ​​greater than 0.5 in the maximum adaptive rime position ZQWSImage are changed to 1, and element values ​​less than or equal to 0.5 are changed to 0;

[0209] S611, maximum adaptive snow powder position ZQXFImage = all element values ​​in the maximum adaptive snow powder position ZQXFImage that are greater than 0.5 are changed to 1, and the element values ​​that are less than or equal to 0.5 are changed to 0;

[0210] S612, create an enhanced expression of the snow-covered power facility image ZQImage= Image;

[0211] S613, finding all pixel positions WSPositions with a value of 1 in the maximum adaptive rime position ZQWSImage, and marking the pixels at the positions recorded by the pixel positions WSPositions in red in the enhanced expression snow-covered power facility image ZQImage;

[0212] S614, finding all pixel positions XFPositions with a value of 1 in the maximum adaptive snow powder position ZQXFImage, and marking the pixels of the positions recorded by the pixel positions XFPositions in red in the enhanced expression snow-covered power facility image ZQImage;

[0213] S615, outputting the maximum adaptive snow powder position ZQXFImage as the snow cover content enhanced expression result.

[0214] The present invention is specifically aimed at the rime and snow powder that often appear in power facilities. The specially set recognition module does not rely on samples, so it is not bound to specific lighting or equipment. At the same time, the different zoom lists used solve the problem of distance binding between the lens and the device; therefore, the patented method can obtain more stable and accurate enhancement of ice and snow coverage content.

[0215] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be considered as the scope of protection of the present invention.

Claims

1. A method for enhancing the snow and ice coverage content of an electric power facility image, characterized in that: The following steps are involved: S1, inputting an image Image of a power facility covered with ice and snow to be enhanced, and obtaining an image width ImageWidth and an image height ImageHeight of the power facility image Image; Preprocessing the electric power facility image Image to obtain a preprocessed image PSImage; performing multi-scale scaling processing on the preprocessed image PSImage to form a preprocessed multi-scale image list ANList to be analyzed; S2, establishing a list of images after rime cover detection WSTCList, and establishing a list of images after snow powder cover detection XFTCList; S3, construct the rime coverage detection module WSTCModel for power facilities; The input of the power facility rime coverage detection module WSTCModel is the rime image to be detected WSTCModelInput, the row WSTCFH where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput, and the column WSTCFL where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput; the output is the rime detection mark value WSTCResult; S4, construct the snow and powder cover detection module XFTCModel for power facilities; The power facility snow powder cover detection module XFTCModel inputs the snow powder image to be detected XFTCModelInput, the row XFTCFH where the snow powder pixel to be detected is located on the snow powder image to be detected XFTCModelInput, and the column XFTCFL where the snow powder pixel to be detected is located on the snow powder image to be detected XFTCModelInput; the output is the snow powder detection mark value XFTCResult; S5, using the power facility rime cover detection module WSTCModel and the power facility snow powder cover detection module XFTCModel to process each image to be analyzed in the pre-processed multi-scale image list to be analyzed ANList of step S1, identifying the rime detection tag value WSTCResult and the snow powder detection tag value XFTCResult, and storing the identification results in the rime cover detection image list WSTCList and the snow powder cover detection image list XFTCList respectively; S6, using the rime cover detection image list WSTCList and the snow powder cover detection image list XFTCList, enhance the expression of the ice and snow cover content of the power facility image Image.

2. The method for enhancing the snow and ice coverage content of an electric power facility image according to claim 1, characterized in that: S1 is specifically: S101, inputting an image Image of the power facilities covered with ice and snow to be enhanced; S102, Image width ImageWidth=width of the power facility image Image; S103, Image height ImageHeight = the height of the power facility image Image; S104, pre-processed image PSImage=convert the power facility image Image into a grayscale image and perform histogram enhancement; S105, pre-processing multi-scale image list to be analyzed ANList = empty list; S106, preprocessing counter YCLCounter=1; S107, preprocessing scaling variable YCLSF=1, the variable value range is 0 to 1; S108, pre-processing the temporarily stored image YCLTemp=reducing the electric power facility image Image to an image with a width of ImageWidth*YCLSF and a height of ImageHeight* YCLSF; S109, adding the pre-processed temporary image YCLTemp to the pre-processed multi-scale image list to be analyzed ANList in S105; S110, preprocessing scaling variable YCLSF = YCLSF-0.2; S111, preprocessing counter YCLCounter=YCLCounter+1; S112, if the preprocessing counter YCLCounter is less than or equal to 4, go to S108, otherwise go to S113; S113, step S1 ends.

3. The method for enhancing the snow and ice coverage content of an electric power facility image according to claim 1, characterized in that: Step S2 is specifically as follows: S201, establish a list of images after rime cover detection WSTCList = empty list, establish a list of images after snow powder cover detection XFTCList = empty list; S202, after detection, counter TCHCounter=1; S203, the first temporary image after detection TCHTemp1 = creates an image with the same size as the power facility image Image, the image contains one band, and the type of each pixel is floating point and the default value is 0; S204, the second temporary image after detection TCHTemp2 = creates an image with the same size as the power facility image Image, the image contains one band, and the type of each pixel is floating point and the default value is 0; S205, adding the first temporarily stored image TCHTemp1 after detection to the list of images after rime cover detection WSTCList; S206, adding the second temporarily stored image TCHTemp2 after detection to the snow powder cover detection image list XFTCList; S207, after detection, counter TCHCounter=TCHCounter+1; S208, if the post-detection counter TCHCounter is less than or equal to 4, go to S203, otherwise go to S209; S209, step S2 ends.

4. The method for enhancing the snow and ice coverage content of an electric power facility image according to claim 1, characterized in that: Step S3 is specifically as follows: S301, constructing a power facility rime coverage detection module WSTCModel; the power facility rime coverage detection module WSTCModel input is a rime image to be detected WSTCModelInput, a row WSTCFH where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput, and a column WSTCFL where the rime pixel to be detected is located on the rime image to be detected WSTCModelInput; S302, the center pixel of the power facility rime coverage detection WSTCCenter=gets the value of the pixel in the WSTCFH row and WSTCFL column of the rime image WSTCModelInput to be detected; S303, establish a power facility rime coverage detection matrix WSTCMatrix = establish a matrix with 5 rows and 5 columns, and the value of each element of the matrix is ​​0; S304, the first counter WSTCCounter1 for detecting rime coverage of power facilities = 1; S305, the second counter for detecting rime coverage of power facilities WSTCCounter2=1; S306, temporary storage pixel WSTCTempPixel for detecting rime coverage of power facilities = taking out the pixel located at the WSTCFH-3+WSTCCounter1th row and the WSTCFL-3+WSTCCounter1th column on the rime coverage image WSTCModelInput to be detected; S307: If the temporary storage pixel WSTCTempPixel for detecting rime coverage of power facilities meets the following conditions: If the temporary storage pixel WSTCTempPixel of the detection of rime coverage of electric power facilities is greater than 0.8 or the temporary storage pixel WSTCTempPixel of the detection of rime coverage of electric power facilities is less than 0.2, then go to S309; ​​if the condition is not met, then go to S308; S308, the element value of the WSTCFH-3+ WSTCCounter1th row and the WSTCFL-3+WSTCCounter1th column of the power facility rime coverage detection matrix WSTCMatrix = ABS(WSTCCenter-WSTCTempPixel) / WSTCCenter; Where ABS takes the absolute value; S309, the second counter for detecting rime coverage of power facilities WSTCCounter2 = WSTCCounter2+1; S310, if the second counter WSTCCounter2 for detecting rime coverage of electric power facilities is less than or equal to 5, go to S306, otherwise go to S311; S311, the first counter for detecting rime coverage of power facilities WSTCCounter1 = WSTCCounter1+1; S312, if the second counter WSTCCounter2 for detecting rime coverage of power facilities is less than or equal to 5, go to S305, otherwise go to S313; S313, the first temporary variable WSTCTemp1 for detecting rime coverage of electric power facilities = the number of elements equal to 0 in the matrix WSTCMatrix for detecting rime coverage of electric power facilities; S314, the second temporary variable WSTCTemp2 for detecting rime coverage of electric power facilities = the number of elements in the matrix WSTCMatrix for detecting rime coverage of electric power facilities that are greater than 0 and less than or equal to 0.5; S315, the third temporary variable WSTCTemp3 for detecting rime coverage of electric power facilities = the number of elements greater than 0.5 in the matrix WSTCMatrix for detecting rime coverage of electric power facilities; S316, rime detection mark value WSTCResult = (0.5* WSTCTemp2 + WSTCTemp3) / WSTCTemp1; S317, if the rime detection flag value WSTCResult is greater than 1, set the rime detection flag value WSTCResult=0; S318, rime detection flag value WSTCResult=tanh(WSTCResult); Where tanh is the hyperbolic tangent function; S319, outputting the rime detection mark value WSTCResult as the result of the power facility rime coverage detection module WSTCModel.

5. The method for enhancing the snow and ice coverage content of an electric power facility image according to claim 1, characterized in that: Step S4 is specifically as follows: S401, constructing a snow powder cover detection module XFTCModel for electric power facilities; the input of the snow powder cover detection module XFTCModel for electric power facilities is a snow powder image to be detected XFTCModelInput, a row XFTCFH where the snow powder to be detected pixels are located on the snow powder image to be detected XFTCModelInput, and a column XFTCFL where the snow powder to be detected pixels are located on the snow powder image to be detected XFTCModelInput; S402, the center pixel XFTCCenter of the snow powder cover detection of power facilities = retrieves the value of the pixel in the XFTCFH row and XFTCFL column of the snow powder image XFTCModelInput to be detected; S403, the first list of snow and powder cover detection offsets of power facilities XFNB1=((-1,-1),(-1,0),(-1,1),(0,1)); S404, the second list of snow and powder cover detection offsets of power facilities XFNB2=((1,1),(1,0),(1,-1),(0,-1)); S405, temporary storage list of snow and powder cover detection of power facilities XFArray = (0,0,0,0); S406, power facility snow powder cover counter XFTCCounter = 1; S407, the first position variable XFTemp1 of the temporary storage offset of snow and powder coverage of electric facilities = taking out the XFTCCounterth element of the first list XFNB1 of the detection offset of snow and powder coverage of electric facilities; S408, the second position variable XFTemp2 of the temporary storage offset of snow and powder coverage of electric facilities = takes out the XFTCCounterth element of the second list XFNB2 of the detection offset of snow and powder coverage of electric facilities; S409, the first temporary pixel XFPixel1 of the snow powder coverage of the power facility = retrieve the value of the pixel in the XFTCFH+ XFTemp1[1] row and XFTCFL+ XFTemp1[2] column of the snow powder image to be detected XFTCModelInput; wherein XFTemp1[1] means: the first element in the first position variable XFTemp1 of the temporary offset of the snow powder coverage of the power facility; XFTemp1[2] means: the second element in the first position variable XFTemp1 of the temporary offset of the snow powder coverage of the power facility; S410, the second temporary pixel XFPixel2 of the snow powder coverage of the power facility = retrieves the value of the pixel in the XFTCFH+ XFTemp2[1] row and the XFTCFL+ XFTemp2[2] column of the snow powder image to be detected XFTCModelInput; wherein: XFTemp2[1] means: the first element in the second position variable XFTemp2 of the temporary offset of the snow powder coverage of the power facility; XFTemp2[2] means: the second element in the second position variable XFTemp2 of the temporary offset of the snow powder coverage of the power facility; S411, the first interval value of snow powder coverage of power facilities XFGap1=Max(ABS(XFPixel1- XFTCCenter), ABS( XFPixel2- XFTCCenter)); wherein Max is the maximum value of the two values, and ABS is the absolute value; S412, the second interval value of snow powder coverage of power facilities XFGap2 = ABS(XFPixel1- XFPixel1); where ABS is the absolute value; S413, the value of the XFTCCounter element of the temporary storage list XFArray of snow and powder cover detection of power facilities = tanh (ABS (XFGap1- XFGap2) / (XFGap1+ XFGap2) + 0.2); where tanh is a hyperbolic tangent function, and ABS is an absolute value; S414, power facility snow powder cover counter XFTCCounter=XFTCCounter+1; S415, if the snow powder cover counter XFTCCounter of the power facility is less than or equal to 4, go to S407, otherwise go to S416; S416, snow powder detection tag value XFTCResult = the maximum value of all elements in the power facility snow powder coverage detection temporary storage list XFArray; S417, the snow powder detection mark value XFTCResult is used as the result output of the power facility snow powder cover detection module XFTCModel.

6. The method for enhancing the snow and ice coverage content of an electric power facility image according to claim 1, characterized in that: Step S5 is specifically as follows: S501, process counter CLCounter=1; S502, establish a pixel-by-pixel processing first temporary image CLTemp1, use the power facility rime coverage detection module WSTCModel to process each pixel of the CLCounterth element of the preprocessed multi-scale image list ANList to be analyzed, and write the result of each pixel processing into the corresponding row and column position of the pixel-by-pixel processing first temporary image CLTemp1; S503, establish a pixel-by-pixel processing second temporary image CLTemp2, use the power facility snow powder cover detection module XFTCModel to process each pixel of the CLCounterth element of the preprocessed multi-scale image list ANList to be analyzed, and write the result of each pixel processing into the corresponding row and column position of the pixel-by-pixel processing second temporary image CLTemp2; S504, scaling the first temporarily stored image CLTemp1 pixel by pixel to an image with a width of ImageWidth and a height of ImageHeight; S505, scaling the second temporarily stored image CLTemp2 pixel by pixel to an image with a width of ImageWidth and a height of ImageHeight; S506, processing the first temporary image CLTemp1 pixel by pixel= Determine whether the value of each pixel of the first temporary image CLTemp1 is greater than 0.5, if so, the pixel at the corresponding position is set to 1, otherwise, the corresponding pixel is set to 0; S507, processing the second temporary image CLTemp2 pixel by pixel= Determine whether the value of each pixel of the second temporary image CLTemp2 is greater than 0.5, if so, the pixel at the corresponding position is set to 1, otherwise, the corresponding pixel is set to 0; S508, the CLCounterth element of the image list WSTCList after rime coverage detection = processing the first temporarily stored image CLTemp1 pixel by pixel; S509, the CLCounterth element of the snow powder cover detection image list XFTCList = processing the second temporary image CLTemp2 pixel by pixel; S510, process counter CLCounter=CLCounter+1; S511, if the processing counter CLCounter is less than or equal to 4, go to S502, otherwise go to S512; S512, step S5 ends.

7. The method for enhancing the snow and ice coverage content of an electric power facility image according to claim 1, characterized in that: Step S6 is specifically as follows: S601, enhanced expression counter ZQCounter=1; S602, maximum rime position variable ZQZDWS=1; maximum rime quantity ZQWSNUM=-1; S603, maximum snow powder position variable ZQZDXF=1; maximum rime quantity ZQXFNUM=-1; S604, if the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list WSTCList after rime coverage detection is greater than the maximum rime number ZQWSNUM, then set: ZQZDWS=ZQCounter, ZQWSNUM=the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list WSTCList after rime coverage detection; S605, if the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list XFTCList after snow powder cover detection is greater than the maximum rime number ZQXFNUM, set: ZQZDXF=ZQCounter, ZQXFNUM=the number of pixels with a value greater than 0.5 in the ZQCounterth element of the image list XFTCList after snow powder cover detection; S606, enhanced expression counter ZQCounter=ZQCounter+1; S607, if the enhanced expression counter ZQCounter is less than or equal to 4, go to S604, otherwise go to S608; S608, the maximum adaptive rime position ZQWSImage=the ZQZDWSth element of the rime coverage image list WSTCList after detection; S609, maximum adaptive snow powder position ZQXFImage=the ZQZDXFth element of the image list XFTCList after snow powder cover detection; S610, maximum adaptive rime position ZQWSImage=all element values ​​greater than 0.5 in the maximum adaptive rime position ZQWSImage are changed to 1, and element values ​​less than or equal to 0.5 are changed to 0; S611, maximum adaptive snow powder position ZQXFImage = all element values ​​in the maximum adaptive snow powder position ZQXFImage that are greater than 0.5 are changed to 1, and the element values ​​that are less than or equal to 0.5 are changed to 0; S612, create an enhanced expression of the snow-covered power facility image ZQImage= Image; S613, finding all pixel positions WSPositions with a value of 1 in the maximum adaptive rime position ZQWSImage, and marking the pixels at the positions recorded by the pixel positions WSPositions in red in the enhanced expression snow-covered power facility image ZQImage; S614, finding all pixel positions XFPositions with a value of 1 in the maximum adaptive snow powder position ZQXFImage, and marking the pixels of the positions recorded by the pixel positions XFPositions in red in the enhanced expression snow-covered power facility image ZQImage; S615, outputting the maximum adaptive snow powder position ZQXFImage as the snow cover content enhanced expression result.