A vision-based transformer winding state detection method

By performing grayscale image processing and pixel classification on infrared thermal images, an adaptive Gaussian weighted template is constructed for denoising, which solves the problem of low detection accuracy caused by external interference in infrared thermal image acquisition, and realizes transformer winding status detection. High accuracy and fast fault location.

CN118297839BActive Publication Date: 2024-08-30SHANDONG HUASHANG ELECTRIC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410711296.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-30
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

In the existing technology, infrared thermal images are interfered by external random signals during the acquisition process, resulting in poor image quality and low accuracy in transformer winding status detection. Conventional Gaussian filter denoising processing results in loss of image details and serious blur effects.

Method used

By acquiring the grayscale image of the infrared thermal image, classifying the pixels into flat and non-flat pixels according to their gradient values, constructing an adaptive Gaussian weighted template and a conventional Gaussian weighted template, and performing Gaussian filtering and denoising on different categories of pixels to retain Image detail information to improve detection accuracy.

Benefits of technology

The accuracy and speed of transformer winding status detection are improved, and faults can be quickly and accurately located to avoid greater damage to the transformer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118297839B
    Figure CN118297839B
Patent Text Reader

Abstract

The present invention relates to the technical field of image denoising and enhancement, and specifically to a method for detecting transformer winding status based on vision, including obtaining a grayscale image of an infrared thermal image of a transformer winding, classifying the pixels in the grayscale image into flat pixels and non-flat pixels based on the grayscale value changes and connectivity characteristics of the pixels; constructing Gaussian weighted templates of different categories, and using the Gaussian weighted templates of different categories to denoise the pixels of the corresponding categories in the grayscale image to obtain the denoised winding grayscale image; judging whether the state of the transformer winding to be detected is an abnormal state according to the denoised winding grayscale image. The present invention performs Gaussian denoising on the image through a Gaussian kernel with an adaptive weighting rule, which is conducive to obtaining a higher quality infrared image, further improving the accuracy of the transformer winding status detection result, and is mainly used in the field of power equipment status detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image denoising and enhancement, and in particular to a transformer winding state detection method based on vision. Background Art

[0002] The working state of the power transformer is closely related to its temperature change. Different types of faults, such as poor contact, insulation degradation or magnetic circuit faults, will manifest themselves in the form of heat rise. For the state detection of the transformer winding, the state detection can be carried out by an infrared imager. The infrared thermal image can reflect the heating condition inside the transformer. However, the infrared thermal image is interfered by external random signals during the acquisition process, resulting in poor image quality of the infrared thermal image acquired in real time, causing large deviations in the transformer winding state detection results determined by the infrared thermal image, and low accuracy.

[0003] The traditional image denoising technology uses conventional Gaussian filtering for denoising, that is, using the Gaussian filter kernel to perform weighted averaging of the pixels in the neighborhood area around each pixel to achieve denoising. However, the above weighted averaging operation will cause the image details of the infrared thermal image of the transformer winding to be lost, resulting in a blurred image effect, and the blurred image will further lead to low accuracy in transformer winding status detection. Summary of the invention

[0004] In order to solve the technical problem that the conventional Gaussian filter has poor image denoising effect, resulting in low accuracy of transformer winding state detection results from fuzzy infrared thermal images, the purpose of the present invention is to provide a transformer winding state detection method based on vision, and the technical solution adopted is as follows:

[0005] An embodiment of the present invention provides a method for detecting transformer winding status based on vision, the method comprising the following steps:

[0006] Obtaining a winding grayscale image corresponding to the infrared thermal image of the transformer winding to be inspected;

[0007] Determine a pixel point category determination value according to the gradient value of each pixel point in the winding grayscale image; classify the pixel points in the winding grayscale image into flat pixel points and non-flat pixel points based on the pixel point category determination value;

[0008] Obtain each non-flat connected domain according to the gray value of each non-flat pixel point; determine the probability that each non-flat pixel point is an edge pixel point according to the position of each non-flat pixel point in each non-flat connected domain;

[0009] Taking any non-flat pixel as the center point, according to the grayscale values ​​of all pixels within a preset first size and the probability of being an edge pixel, determine the adaptive Gaussian weighted template corresponding to the non-flat pixel; taking any flat pixel as the center point, according to the grayscale values ​​of all pixels within a preset second size, determine the conventional Gaussian weighted template corresponding to the flat pixel; wherein the preset second size is larger than the preset first size;

[0010] Using Gaussian weighted templates of different categories to perform Gaussian filtering denoising on the pixels of corresponding categories in the winding grayscale image, to obtain the winding grayscale image after denoising;

[0011] According to the winding grayscale image after denoising, it is judged whether the state of the transformer winding to be detected is abnormal.

[0012] Further, determining the pixel category determination value according to the gradient value of each pixel in the winding grayscale image includes:

[0013] According to the gradient value of each pixel point in the winding grayscale image, the pixel gradient mean value corresponding to the winding grayscale image is calculated, and the pixel gradient mean value is determined as the pixel point category determination value.

[0014] Further, classifying the pixels in the winding grayscale image into flat pixels and non-flat pixels based on the pixel category determination value includes:

[0015] For each pixel in the winding grayscale image, a pixel whose gradient value is greater than the pixel category determination value is determined as a non-flat pixel, and a pixel whose gradient value is not greater than the pixel category determination value is determined as a flat pixel.

[0016] Furthermore, each non-flat connected domain is obtained according to the gray value of each non-flat pixel point, including:

[0017] For any two adjacent non-flat pixels, the absolute value of the grayscale difference between the two adjacent non-flat pixels is calculated; if the absolute value of the grayscale difference between the two adjacent non-flat pixels is less than the grayscale difference threshold, the two adjacent non-flat pixels are determined to belong to the same non-flat connected domain, and the two adjacent non-flat pixels are merged into one non-flat connected domain, otherwise, the two adjacent non-flat pixels are determined not to belong to the same non-flat connected domain, thereby obtaining each non-flat connected domain.

[0018] Furthermore, according to the position of each non-flat pixel point in each non-flat connected domain, the probability of each non-flat pixel point being an edge pixel point is determined, including:

[0019] For any non-flat connected domain, according to the position of each non-flat pixel point in the non-flat connected domain, the distance between any two non-flat pixel points in the non-flat connected domain is determined, and the maximum distance corresponding to the non-flat connected domain is selected;

[0020] The maximum distance corresponding to the non-flat connected domain is normalized, and the normalized maximum distance is determined as the probability that each non-flat pixel point in the corresponding non-flat connected domain is an edge pixel point.

[0021] Further, according to the grayscale values ​​of all pixels within the preset first size and the probability of being edge pixels, an adaptive Gaussian weighted template corresponding to the non-flat pixel is determined, including:

[0022] According to the grayscale values ​​of all pixels within the preset first size, the absolute value of the grayscale difference between each neighborhood pixel and the central pixel is calculated; the absolute value of the grayscale difference between the neighborhood pixel and the central pixel is normalized, and the normalized value is determined as the characteristic difference index of the corresponding neighborhood pixel;

[0023] According to the feature difference index of each neighborhood pixel and the probability of being an edge pixel, the adaptive Gaussian weighted template corresponding to the non-flat pixel is determined.

[0024] Furthermore, according to the feature difference index of each neighborhood pixel and the probability of being an edge pixel, an adaptive Gaussian weighted template corresponding to the non-flat pixel is determined, including:

[0025] For any neighborhood pixel point, the cumulative sum of the feature difference indexes of all neighborhood pixel points and the value obtained by adding the hyperparameter is determined as the denominator of the ratio, the product of the feature difference index of the corresponding neighborhood pixel point and the probability of being an edge pixel point is determined as the numerator of the ratio, and the product of the ratio and the preset ratio is determined as the weight of the corresponding neighborhood pixel point, thereby obtaining the weight of each neighborhood pixel point;

[0026] A weighted template formed by weights of each neighborhood pixel point within a preset first size is determined as an adaptive Gaussian weighted template; wherein the hyperparameter is a positive real number.

[0027] Furthermore, the conventional Gaussian weighted template is a template that performs average weighted distribution according to the grayscale values ​​of all pixels within a preset second size.

[0028] Further, judging whether the winding state of the transformer to be detected is abnormal according to the winding grayscale image after denoising, includes:

[0029] The pixels whose grayscale values ​​in the winding grayscale image after denoising are greater than the preset grayscale threshold are regarded as abnormal pixels; the number of abnormal pixels and the number of all pixels in the winding grayscale image after denoising are counted, and the ratio of the number of abnormal pixels to the number of all pixels is determined as the abnormality degree; if the abnormality degree is greater than the preset abnormality degree threshold, the state of the transformer winding to be detected is determined to be an abnormal state, otherwise, the state of the transformer winding to be detected is determined to be a normal state.

[0030] Furthermore, a winding grayscale image corresponding to the infrared thermal image of the transformer winding to be detected is obtained, including:

[0031] The infrared thermal image of the transformer winding to be inspected is collected, and the infrared thermal image is grayed to obtain a winding gray image corresponding to the infrared thermal image.

[0032] The present invention has the following beneficial effects:

[0033] The present invention provides a transformer winding state detection method based on vision. The state detection method improves conventional Gaussian filtering denoising by using image processing technology, that is, different categories of pixels in the winding grayscale image are denoised by using Gaussian kernels with adaptive weighting rules, so as to obtain a winding grayscale image with high image quality. The transformer winding state detection is performed based on the high-quality winding grayscale image, which can effectively improve the detection accuracy of the transformer winding state result, and is mainly used in the field of power equipment state detection. Firstly, according to the gradient value of each pixel in the winding grayscale image, the pixel is classified into flat pixel and non-flat pixel, which realizes the classification of the pixel category of the winding grayscale image, which is conducive to distinguishing the pixel with large grayscale gradient change and the pixel with small grayscale gradient change; secondly, according to the grayscale value of each non-flat pixel, the image feature with strong image edge connectivity is used to determine the probability that each non-flat pixel is an edge pixel, so as to facilitate the subsequent adaptive denoising process for the Gaussian filtering denoising features of different categories of pixels; then, Gaussian weighted templates corresponding to different categories of pixels are constructed, and Gaussian weighted templates of different categories are used to identify the pixel categories of the winding grayscale image. , it can retain the image detail information as much as possible under the premise of filtering out noise points, avoid image edge blur and retain the real information of edge pixels, improve the Gaussian filtering denoising efficiency of flat pixels in the image, and further improve the speed of transformer winding state detection; Gaussian filtering denoising is performed on the corresponding category of pixels in the winding grayscale image using different categories of Gaussian weighted templates, and the denoised winding grayscale image can be obtained. The transformer winding state detection based on the denoised winding grayscale image is helpful to obtain the accurate temperature distribution of the transformer winding, and can quickly and accurately locate the fault to avoid causing greater damage to the transformer winding. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A flowchart of a transformer winding state detection method based on vision of the present invention;

[0036] Figure 2 4 is an example diagram of a winding grayscale image of a transformer winding in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the technical solutions proposed by the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0038] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0039] The application scenario targeted by the present invention is as follows: when detecting the state of transformer windings, the infrared imager is easily interfered by external random signals during image acquisition, resulting in poor quality of the acquired image and more Gaussian noise in the acquired infrared thermal image. Conventional Gaussian filtering achieves denoising by weighted averaging the neighborhood relationship of pixel points, but the weighted averaging operation will lose image details and blur the edges, resulting in low accuracy in transformer winding state detection.

[0040] In order to retain the edge detail information of the infrared thermal image and obtain a more accurate infrared thermal image to improve the accuracy of the transformer winding state result, this embodiment provides a transformer winding state detection method based on vision, such as Figure 1 As shown, the following steps are included:

[0041] S1, obtaining a winding grayscale image corresponding to the infrared thermal image of the transformer winding to be detected.

[0042] The infrared thermal image of the transformer winding to be inspected is collected, and the infrared thermal image is grayed to obtain a winding gray image corresponding to the infrared thermal image.

[0043] In this embodiment, an infrared imager is used to collect infrared thermal images of the transformer windings to be inspected. In order to facilitate the subsequent analysis of image features, the infrared thermal image is grayed to obtain a winding gray image corresponding to the infrared thermal image. The winding gray image is the basis for subsequent pixel classification. The graying process includes but is not limited to: weighted average method, average method, maximum method, and minimum method. The graying process is a prior art and will not be elaborated in detail here. An example of a gray image of a transformer winding is shown in FIG. Figure 2 shown.

[0044] So far, this embodiment has obtained the winding grayscale image corresponding to the infrared thermal image of the transformer winding to be detected.

[0045] S2, determining a pixel category determination value according to the gradient value of each pixel in the winding grayscale image; and classifying the pixels in the winding grayscale image into flat pixels and non-flat pixels based on the pixel category determination value.

[0046] It should be noted that the grayscale values ​​of edge pixels and suspected noise pixels in the winding grayscale image are different from the grayscale values ​​of other adjacent pixels. The grayscale gradient change of each pixel in the winding grayscale image can be analyzed according to the Sobel operator to classify the pixels into flat pixels and non-flat pixels. Flat pixels have a small grayscale change, that is, a small grayscale gradient; and non-flat pixels have a large grayscale change, that is, a large grayscale gradient, such as edge pixels or random suspected noise pixels.

[0047] In the first step, the pixel category judgment value is determined according to the gradient value of each pixel in the winding grayscale image.

[0048] In the first sub-step, according to the gray value of each pixel in the winding gray image, the gradient value of each pixel in the winding gray image is determined by using the Sobel operator.

[0049] As an example, the calculation formula for the gradient value of a pixel point can be:

[0050]

[0051] In the formula, is the gradient value of the pixel, is the horizontal gradient of the pixel, is the vertical gradient of the pixel. The detailed calculation process of the Sobel operator is prior art and is not within the scope of protection of the present invention, and will not be elaborated here.

[0052] The second sub-step is to calculate the pixel gradient mean corresponding to the winding grayscale image according to the gradient value of each pixel point in the winding grayscale image, and determine the pixel gradient mean as the pixel point category determination value.

[0053] As an example, the calculation formula for the pixel gradient mean corresponding to the winding grayscale image can be:

[0054]

[0055] In the formula, is the pixel gradient mean corresponding to the winding grayscale image, is the number of pixels in the winding grayscale image, is the serial number of the pixel in the winding grayscale image, is the winding grayscale image The gradient value of a pixel.

[0056] In order to facilitate the subsequent classification of the pixels in the winding grayscale image, this embodiment can use the pixel gradient corresponding to the winding grayscale image as an indicator for pixel category determination, that is, the pixel category determination value. Compared with the pixel category determination value determined based on historical experience, the pixel category determination value determined by this embodiment based on the actual pixel grayscale change of the entire winding grayscale image is more robust, which is conducive to improving the accuracy of subsequent pixel classification.

[0057] In the second step, the pixels in the winding grayscale image are classified into flat pixels and non-flat pixels based on the pixel category determination value.

[0058] It should be noted that in order to implement the adaptive weighted processing of Gaussian filtering, it is necessary to determine the attribute category of each pixel in the winding grayscale image, and the attribute category at this time is the grayscale change degree.

[0059] In this embodiment, there are flat pixels and edge pixels in the winding grayscale image. The grayscale values ​​of the pixels in the non-edge area (flat area) of the image change slowly and evenly, while the grayscale values ​​of the pixels at the edge of the image change dramatically. Therefore, for each pixel in the winding grayscale image, the pixel whose gradient value is greater than the pixel category determination value is determined as a non-flat pixel, and the pixel whose gradient value is not greater than the pixel category determination value is determined as a flat pixel.

[0060] Among them, flat pixels are pixels in the flat area of ​​the image. The flat area refers to the area where the gray value changes slowly. It describes the main part of the image and is a comprehensive measure of the intensity of the entire image.

[0061] So far, this embodiment has obtained the classification of the pixels in the winding grayscale image into flat pixels and non-flat pixels.

[0062] S3, obtaining each non-flat connected domain according to the gray value of each non-flat pixel point; and determining the probability that each non-flat pixel point is an edge pixel point according to the position of each non-flat pixel point in each non-flat connected domain.

[0063] It should be noted that there is Gaussian noise, i.e., random noise points, in the winding grayscale image. The grayscale change of the random noise points is consistent with the grayscale change properties of the edge pixels, and both are relatively drastic. Therefore, the non-flat pixels can be random noise points or edge pixels. In addition, due to the presence of noise in the winding grayscale image, if the edge detection algorithm is used directly, accurate edge pixels cannot be obtained. In order to avoid edge blur after Gaussian filtering and to help filter out noise points, it is necessary to determine the probability that each non-flat pixel is an edge pixel.

[0064] In the first step, each non-flat connected domain is obtained according to the gray value of each non-flat pixel.

[0065] In this embodiment, according to the grayscale similarity between the non-flat pixels, a non-flat connected domain formed by the non-flat pixels may be determined, and the specific implementation steps may include:

[0066] For any two adjacent non-flat pixels, the absolute value of the grayscale difference between the two adjacent non-flat pixels is calculated; if the absolute value of the grayscale difference between the two adjacent non-flat pixels is less than the grayscale difference threshold, the two adjacent non-flat pixels are determined to belong to the same non-flat connected domain, and the two adjacent non-flat pixels are merged into one non-flat connected domain, otherwise, the two adjacent non-flat pixels are determined not to belong to the same non-flat connected domain, thereby obtaining each non-flat connected domain.

[0067] It should be noted that the grayscale difference threshold can be taken as an empirical value of 10, and the grayscale difference threshold can be set by the implementer according to the actual situation, and is not specifically limited here. When there is noise in the winding grayscale image, that is, when there are inevitably clustered random noise points, a connected domain can also be formed, that is, there will be a connected domain of suspected noise points in each non-flat connected domain. The noise point can be understood as the noise point existing in the winding grayscale image itself. There may be defects similar to the noise point in the image. The combination of the two will result in a certain degree of aggregation.

[0068] In the second step, according to the position of each non-flat pixel in each non-flat connected domain, the probability of each non-flat pixel being an edge pixel is determined.

[0069] It should be noted that the connectivity of noise points and edge pixels on the edge is different. Noise points are usually discrete, isolated and randomly distributed, so their connectivity is poor or even non-existent, while the connectivity of pixels on normal edges is longer than that of noise points, that is, the connectivity of edge pixels is better. Based on the position of each non-flat pixel in the non-flat connected domain, the connectivity characteristics of the non-flat connected domain are analyzed to determine the probability that each non-flat pixel is an edge pixel. The specific implementation steps may include:

[0070] In the first sub-step, for any non-flat connected domain, the distance between any two non-flat pixels in the non-flat connected domain is determined according to the position of each non-flat pixel in the non-flat connected domain, and the maximum distance corresponding to the non-flat connected domain is selected.

[0071] In this embodiment, for any two pixel points in a non-flat connected domain and ,calculate and The Euclidean distance between them can be calculated as:

[0072]

[0073] In the formula, for and The Euclidean distance between Pixel The horizontal axis value of Pixel The vertical coordinate value of Pixel The horizontal axis value of Pixels The vertical coordinate value of .

[0074] It should be noted that the maximum distance corresponding to the non-flat connected domain can represent the maximum distance between two pixels in the non-flat connected domain. The larger the maximum distance between two pixels in the non-flat connected domain, the longer the connectivity of each non-flat pixel in the non-flat connected domain, and the greater the probability that the non-flat pixel is a pixel on the edge; on the contrary, the smaller the maximum distance between two pixels in the non-flat connected domain, the worse the connectivity of each non-flat pixel in the non-flat connected domain, and the greater the possibility that each non-flat pixel in the non-flat connected domain is a noise point.

[0075] In the second sub-step, the maximum distance corresponding to the non-flat connected domain is normalized, and the normalized maximum distance is determined as the probability that each non-flat pixel point in the corresponding non-flat connected domain is an edge pixel point.

[0076] In this embodiment, the probability that non-flat pixels in the same non-flat connected domain are edge pixels is the same, and the implementation method of normalization processing includes but is not limited to linear normalization, mean normalization, nonlinear normalization, and decimal calibration normalization, etc. The implementation process of normalization processing is a prior art and will not be elaborated in detail here. The probability of each non-flat pixel being an edge pixel is calculated to facilitate the subsequent implementation of adaptive weighted filtering processing of non-flat pixels.

[0077] So far, this embodiment obtains the probability that each non-flat pixel point in the winding grayscale image is an edge pixel point.

[0078] S4, taking any non-flat pixel as the center point, and determining an adaptive Gaussian weighted template corresponding to the non-flat pixel according to the grayscale values ​​of all pixels within a preset first size and the probability of being an edge pixel. Taking any flat pixel as the center point, and determining a conventional Gaussian weighted template corresponding to the flat pixel according to the grayscale values ​​of all pixels within a preset second size.

[0079] It should be noted that the categories of pixels in the winding grayscale image can be roughly divided into suspected noise pixels, edge pixels and flat pixels, and both suspected noise pixels and edge pixels are non-flat pixels. For suspected noise pixels, the suspected noise pixels are filtered by the constructed adaptive Gaussian weighted template to achieve the purpose of retaining detail features and reducing the blurring effect caused by the traditional Gaussian weighted template while filtering out noise; for edge pixels, the edge pixels are filtered by the constructed adaptive Gaussian weighted template, which can effectively overcome the large change in the grayscale value of the edge pixels, resulting in the blurred edge of the filtered processing, and retain clear edge information; for flat pixels, the flat pixels are filtered by the constructed conventional Gaussian weighted template, which is a conventional Gaussian average weighted template. By constructing a larger Gaussian weighted template, the efficiency of Gaussian filtering is improved.

[0080] The first step is to determine the adaptive Gaussian weighted template corresponding to the non-flat pixel points.

[0081] In the first sub-step, taking any non-flat pixel as the center point, and according to the grayscale values ​​of all pixels within the preset first size, determining the characteristic difference index of each neighborhood pixel within the preset first size.

[0082] According to the grayscale values ​​of all pixels within the preset first size, the absolute value of the grayscale difference between each neighborhood pixel and the central pixel is calculated; the absolute value of the grayscale difference between the neighborhood pixel and the central pixel is normalized, and the normalized value is determined as the characteristic difference index of the corresponding neighborhood pixel.

[0083] In this embodiment, the grayscale values ​​of the pixels within the preset first size corresponding to the flat pixels are counted, and the grayscale values ​​of the central pixel and its surrounding pixels within the preset first size are used to calculate the difference, so as to obtain a feature difference index. The feature difference index can reflect the grayscale difference between the neighborhood pixels and the central pixel within the preset first size, and different weights can be assigned based on the grayscale difference of the neighborhood pixels. The preset first size can be .

[0084] As an example, the calculation formula of the feature difference index of the neighborhood pixel point can be:

[0085]

[0086] In the formula, For the The characteristic difference index of the neighboring pixels is is the gray value of the center pixel, For the The gray value of the neighboring pixels, To obtain the absolute value function, 255 can be used to represent the normalization process, and the central pixel is a suspected noise pixel.

[0087] It should be noted that the calculation process of the feature difference index of each neighborhood pixel point of the preset first size is the same, and will not be repeated here.

[0088] In the second sub-step, the adaptive Gaussian weighted template corresponding to the non-flat pixel is determined according to the feature difference index of each neighborhood pixel and the probability of being an edge pixel.

[0089] In this embodiment, there is a large grayscale difference between the pixels on both sides of the edge. In order to avoid excessive blurring of the edge pixels after conventional Gaussian filtering, it is necessary to redistribute the weighting rules of the edge pixels, that is, to determine an adaptive Gaussian weighted template. For each neighborhood pixel corresponding to a non-flat pixel, a larger weight is assigned to a neighborhood pixel with a larger feature difference index and a higher probability of being an edge pixel, and a smaller weight is assigned to a neighborhood pixel with a smaller feature difference index and a lower probability of being an edge pixel. Therefore, the feature difference index of each neighborhood pixel corresponding to the non-flat pixel, the probability of being an edge pixel and the weight are positively correlated. The larger the weight, the greater the weight of the edge pixel in the filtering process, the higher the contrast of the corresponding filtering area, and the clarity of the detail features of the edge area is enhanced.

[0090] For any neighborhood pixel point, the cumulative sum of the feature difference indicators of all neighborhood pixels and the value obtained by adding the hyperparameter is determined as the denominator of the ratio, the product of the feature difference indicator of the corresponding neighborhood pixel point and the probability of being an edge pixel point is determined as the numerator of the ratio, and the product of the ratio and the preset ratio is determined as the weight of the corresponding neighborhood pixel point, thereby obtaining the weight of each neighborhood pixel point; the weighted template composed of the weights of each neighborhood pixel point within the preset first size is determined as the adaptive Gaussian weighted template.

[0091] As an example, the calculation formula for the weight of the neighborhood pixel points corresponding to the non-flat pixel points can be:

[0092]

[0093] In the formula, is the first pixel corresponding to the non-flat pixel The weight of the neighboring pixels, is the first pixel corresponding to the non-flat pixel The characteristic difference index of the neighboring pixels is is the first pixel corresponding to the non-flat pixel The probability that a neighborhood pixel is an edge pixel, is the cumulative sum of the feature difference indices of all neighboring pixels corresponding to the non-flat pixel. is a hyperparameter, is the preset ratio.

[0094] In the calculation formula of the weight of the neighborhood pixel point, the characteristic difference index of the neighborhood pixel point The larger the value, the smaller the non-flat pixel point. The weight of the neighboring pixels The bigger; Can be used to characterize the The proportion of the feature difference index of the neighborhood pixel points in the cumulative sum of all feature difference indexes, The larger the feature difference index of the neighboring pixels, the greater the proportion, and the weight The larger the non-flat pixel is, the The probability that a neighboring pixel is an edge pixel The larger the value, the more non-flat the pixel point is. The more likely a neighboring pixel is to be an edge pixel, the more likely it is that the edge pixel is to be an edge pixel. In order to retain the true gray value of the edge pixel, the weight The larger the non-flat pixel is, the The probability that a neighboring pixel is an edge pixel The smaller the pixel, the smaller the The more likely the neighboring pixels are noise points, the more likely they are to be noise points. In order to filter out noise points, the weight Should be smaller; hyperparameter Can be used to avoid the special case where the denominator is 0, the hyperparameter is a positive real number, for example, 0.01; the preset ratio is the weight ratio of all neighboring pixels. When the preset ratio is When , the weight of the central pixel is The numerical value of the preset ratio can be set by the implementer according to the specific situation and is not specifically limited here.

[0095] It should be noted that when the winding grayscale image is subjected to conventional Gaussian filtering, there will be a large grayscale difference between the pixels on both sides of the edge. At this time, the weighted average method will assign new grayscale values ​​to the edge pixels, and the new grayscale values ​​seriously deviate from the original grayscale values, resulting in a large blurring effect, that is, the distortion of the grayscale values ​​of the pixels on the edge. When the grayscale values ​​of the pixels on both sides of the edge differ, the blurring effect will be more serious, and it is necessary to redistribute the weighting rules to avoid excessive blurring of the edge pixels, resulting in the loss of edge information details. The redistribution of the weighting rules is to determine the adaptive Gaussian weighted template.

[0096] Regarding the preset first size, when the conventional Gaussian filter kernel is used for image denoising, the filter kernel template is usually selected as , as well as Templates of equal sizes are used for Gaussian denoising. Gaussian filter kernels of different sizes have different smoothing degrees in the image. As the size of the Gaussian filter kernel template increases, the pixel range covered by the template size also increases, which causes the details and edge information in the image to be blurred or suppressed. In a larger template range, the pixel values ​​of the edge part vary greatly, and after averaging, the result of pixel blur may be obtained. That is, increasing the size of the Gaussian filter kernel will cause more pixels to participate in the filtering calculation, thereby averaging the values ​​of the neighboring pixels, making the overall details of the image over-smoothed and losing detail information. Therefore, conventional The template performs denoising on the edge pixels in the winding grayscale image to avoid the increase of the template size of the Gaussian filter kernel, which will lead to excessive smoothing of the image and loss of details in the image. Based on the above reasons, a preset first size is set, and the specific value of the preset first size can be set by the implementer according to the specific actual situation without specific limitation.

[0097] The second step is to determine the regular Gaussian weighted template corresponding to the flat pixels.

[0098] In this embodiment, the conventional Gaussian weighted template is a template that performs average weighted distribution according to the grayscale values ​​of all pixels within the preset second size, that is, the flat pixels are processed using the conventional Gaussian template average weighted rule. It is worth noting that in order to improve the overall efficiency of filtering the winding grayscale image, combined with the pixel properties of the flat pixels in the winding grayscale image, the preset second size needs to be larger than the preset first size, and the preset second size is taken as an empirical value The size of the preset second size can be determined by the implementer according to the actual situation and is not specifically limited. The construction process of the conventional Gaussian weighted template is a prior art and is not within the protection scope of the present invention, and will not be elaborated here.

[0099] So far, this embodiment has obtained Gaussian weighted templates corresponding to pixels of different categories.

[0100] S5, using Gaussian weighted templates of different categories to perform Gaussian filtering denoising processing on the pixel points of corresponding categories in the winding grayscale image, to obtain the winding grayscale image after denoising processing.

[0101] In this embodiment, the flat pixels in the winding grayscale image are processed using a conventional Gaussian template average weighted rule, and the non-flat pixels are processed using an adaptive weighted rule. The specific implementation steps may include:

[0102] For flat pixels in the winding grayscale image, a conventional Gaussian weighted template is used, that is, a conventional Gaussian template average weighted rule is used for filtering; for non-flat pixels in the winding grayscale image, the non-flat pixel is used as the central pixel, and the first weight of each neighboring pixel in the adaptive Gaussian weighted template is used to filter the central pixel. The implementation process of Gaussian filtering denoising is a prior art and is not within the scope of protection of the present invention, so it will not be elaborated here.

[0103] By using Gaussian weighted templates of different categories to perform Gaussian filtering and denoising on the corresponding categories of pixels in the winding grayscale image, a denoised winding grayscale image can be obtained. The denoised winding grayscale image overcomes the defects of blurred edges and loss of details, which helps to obtain the precise temperature distribution of the transformer winding and can quickly and accurately locate the fault, which is convenient for subsequent accurate transformer winding status detection to avoid causing greater damage to the transformer winding.

[0104] So far, this embodiment has completed the denoising and enhancement processing of the winding grayscale image.

[0105] S6, judging whether the state of the transformer winding to be detected is abnormal according to the winding grayscale image after denoising.

[0106] In this embodiment, based on the winding grayscale image after denoising, the existing judgment method is used to judge whether the state of the transformer winding to be detected is abnormal. The existing judgment method includes but is not limited to: surface temperature judgment method, similar comparison judgment method, image feature judgment method, relative temperature difference judgment method and file analysis judgment method.

[0107] As an example, the specific implementation steps of determining whether the winding state of the transformer to be detected is an abnormal state may include:

[0108] The pixels whose grayscale values ​​in the winding grayscale image after denoising are greater than the preset grayscale threshold are regarded as abnormal pixels; the number of abnormal pixels and the number of all pixels in the winding grayscale image after denoising are counted, and the ratio of the number of abnormal pixels to the number of all pixels is determined as the degree of abnormality; if the degree of abnormality is greater than the preset threshold of the degree of abnormality, the state of the transformer winding to be detected is determined to be abnormal, otherwise, the state of the transformer winding to be detected is determined to be normal. Among them, the preset grayscale threshold takes an empirical value of 140, and the abnormality threshold takes an empirical value of 0.3. The implementer can set the preset grayscale threshold and the abnormality threshold according to the actual situation without specific limitation.

[0109] It should be noted that the grayscale value of each pixel in the winding grayscale image after denoising can represent the temperature value at the corresponding position. The larger the grayscale value, the larger the temperature value, and the smaller the grayscale value, the smaller the temperature value.

[0110] So far, this embodiment has obtained a transformer winding state detection result with higher accuracy.

[0111] The present invention provides a transformer winding state detection method based on vision. The state detection method uses image processing technology to obtain an infrared thermal image of a transformer winding through an infrared imager, perform grayscale processing, and obtain a winding grayscale image; flat pixels and non-flat pixels are distinguished according to the grayscale gradient change and connectivity of pixels in the winding grayscale image; the weighting rule of the Gaussian filter kernel is adaptively adjusted according to the grayscale change of different pixels, and the winding grayscale image is denoised and enhanced through the Gaussian filter kernel with an adaptive weighted rule, thereby effectively improving the accuracy of the transformer winding state result.

[0112] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for detecting transformer winding status based on vision, characterized in that: The following steps are involved: Obtaining a winding grayscale image corresponding to the infrared thermal image of the transformer winding to be inspected; Determine the pixel category determination value according to the gradient value of each pixel in the winding grayscale image; Classifying the pixels in the winding grayscale image into flat pixels and non-flat pixels based on the pixel category determination value; Obtain each non-flat connected domain according to the gray value of each non-flat pixel point; determine the probability that each non-flat pixel point is an edge pixel point according to the position of each non-flat pixel point in each non-flat connected domain; Taking any non-flat pixel as the center point, according to the grayscale values ​​of all pixels within a preset first size and the probability of being an edge pixel, determine the adaptive Gaussian weighted template corresponding to the non-flat pixel; taking any flat pixel as the center point, according to the grayscale values ​​of all pixels within a preset second size, determine the conventional Gaussian weighted template corresponding to the flat pixel; wherein the preset second size is larger than the preset first size; Using Gaussian weighted templates of different categories to perform Gaussian filtering denoising on the pixels of corresponding categories in the winding grayscale image, to obtain the winding grayscale image after denoising; According to the winding grayscale image after denoising, determine whether the state of the transformer winding to be detected is abnormal; According to the position of each non-flat pixel point in each non-flat connected domain, the probability of each non-flat pixel point being an edge pixel point is determined, including: For any non-flat connected domain, according to the position of each non-flat pixel point in the non-flat connected domain, the distance between any two non-flat pixel points in the non-flat connected domain is determined, and the maximum distance corresponding to the non-flat connected domain is selected; The maximum distance corresponding to the non-flat connected domain is normalized, and the normalized maximum distance is determined as the probability that each non-flat pixel point in the corresponding non-flat connected domain is an edge pixel point; According to the grayscale values ​​of all pixels within the preset first size and the probability of being edge pixels, an adaptive Gaussian weighted template corresponding to the non-flat pixel is determined, including: According to the grayscale values ​​of all pixels within the preset first size, the absolute value of the grayscale difference between each neighborhood pixel and the central pixel is calculated; the absolute value of the grayscale difference between the neighborhood pixel and the central pixel is normalized, and the normalized value is determined as the characteristic difference index of the corresponding neighborhood pixel; According to the characteristic difference index of each neighborhood pixel and the probability of being an edge pixel, the adaptive Gaussian weighted template corresponding to the non-flat pixel is determined; According to the characteristic difference index of each neighborhood pixel and the probability of being an edge pixel, the adaptive Gaussian weighted template corresponding to the non-flat pixel is determined, including: For any neighborhood pixel point, the cumulative sum of the feature difference indexes of all neighborhood pixel points and the value obtained by adding the hyperparameter is determined as the denominator of the ratio, the product of the feature difference index of the corresponding neighborhood pixel point and the probability of being an edge pixel point is determined as the numerator of the ratio, and the product of the ratio and the preset ratio is determined as the weight of the corresponding neighborhood pixel point, thereby obtaining the weight of each neighborhood pixel point; A weighted template formed by weights of each neighborhood pixel point within a preset first size is determined as an adaptive Gaussian weighted template; wherein the hyperparameter is a positive real number.

2. A method for detecting transformer winding status based on vision according to claim 1, characterized in that: The pixel category determination value is determined according to the gradient value of each pixel in the winding grayscale image, including: According to the gradient value of each pixel point in the winding grayscale image, the pixel gradient mean value corresponding to the winding grayscale image is calculated, and the pixel gradient mean value is determined as the pixel point category determination value.

3. The method for detecting transformer winding status based on vision according to claim 2, characterized in that: Classifying the pixels in the winding grayscale image into flat pixels and non-flat pixels based on the pixel category determination value includes: For each pixel in the winding grayscale image, a pixel whose gradient value is greater than the pixel category determination value is determined as a non-flat pixel, and a pixel whose gradient value is not greater than the pixel category determination value is determined as a flat pixel.

4. The method for detecting transformer winding status based on vision according to claim 1, characterized in that: According to the gray value of each non-flat pixel point, each non-flat connected domain is obtained, including: For any two adjacent non-flat pixels, the absolute value of the grayscale difference between the two adjacent non-flat pixels is calculated; if the absolute value of the grayscale difference between the two adjacent non-flat pixels is less than the grayscale difference threshold, the two adjacent non-flat pixels are determined to belong to the same non-flat connected domain, and the two adjacent non-flat pixels are merged into one non-flat connected domain, otherwise, the two adjacent non-flat pixels are determined not to belong to the same non-flat connected domain, thereby obtaining each non-flat connected domain.

5. The method for detecting transformer winding status based on vision according to claim 1, characterized in that: The conventional Gaussian weighted template is a template that performs average weighted distribution according to the grayscale values ​​of all pixels within a preset second size.

6. The method for detecting transformer winding status based on vision according to claim 1, characterized in that: According to the winding grayscale image after denoising, it is judged whether the state of the transformer winding to be detected is abnormal, including: The pixels whose grayscale values ​​in the winding grayscale image after denoising are greater than the preset grayscale threshold are regarded as abnormal pixels; the number of abnormal pixels and the number of all pixels in the winding grayscale image after denoising are counted, and the ratio of the number of abnormal pixels to the number of all pixels is determined as the abnormality degree; if the abnormality degree is greater than the preset abnormality degree threshold, the state of the transformer winding to be detected is determined to be an abnormal state, otherwise, the state of the transformer winding to be detected is determined to be a normal state.

7. The method for detecting transformer winding status based on vision according to claim 1, characterized in that: Obtaining a winding grayscale image corresponding to the infrared thermal image of the transformer winding to be inspected, including: The infrared thermal image of the transformer winding to be inspected is collected, and the infrared thermal image is grayed to obtain a winding gray image corresponding to the infrared thermal image.

Citation Information

Patent Citations

  • Transformer welding seam quality detection method for image processing

    CN116309579A

  • Visual technology-based critical and severe patient state monitoring system

    CN118097160A