A method for evaluating the results of fungal tests on low voltage current transformers

Through image information collection and processing technology, the proportion of the mold-growing area of ​​the low-voltage current transformer is accurately calculated, which solves the problem of difficulty in judging the mold-growing area with the naked eye and improves the accuracy of the test results.

CN110336931BActive Publication Date: 2024-08-23WUHAN NARI LIABILITY OF STATE GRID ELECTRIC POWER RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910517095.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-14
Publication Date
2024-08-23
Estimated Expiration
2039-06-14

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to accurately judge with the naked eye whether the mold-growing area of ​​a low-voltage current transformer exceeds the standard, resulting in inaccurate evaluation results.

Method used

Design an evaluation method for the mold test results of low-voltage current transformers. An image information acquisition device is used to collect images. Through image grayscale processing, filtering processing, grayscale histogram processing and binary processing, the mold growing area is calculated using the OTSU algorithm. proportion to achieve quantitative evaluation.

Benefits of technology

It improves the accuracy of the mold growth test results of low-voltage current transformers, provides high-quality image information processing, easily and accurately calculates the proportion of mold growth area, and solves the problem of difficulty in judgment with the naked eye.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110336931B
    Figure CN110336931B
Patent Text Reader

Abstract

The present invention relates to an evaluation method for the results of a mold test of a low-voltage current transformer, comprising the following steps: 1) collecting images of the low-voltage current transformer before and after mold growth; 2) graying the images; 3) filtering the images; 4) graying histogram processing the images; 5) binarizing the images; 6) obtaining the proportion of the mold growth area. The present invention adopts image processing technology to perform graying, filtering, and binarizing processing on the collected images, and accurately calculates the mold growth proportion of the low-voltage current transformer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mold test result evaluation, and more specifically, to an evaluation system and method for mold test results of a low-voltage current transformer. Background Art

[0002] According to the State Grid Corporation of China's corporate standard "Q / GDW 1572-2014 Technical Specifications for Low-voltage Current Transformers for Measurement", the full performance test of low-voltage current transformers for mold must meet Class A (outdoor) standards. The insulating parts of the transformer exposed to the air with Class A mold should be subjected to a 28-day mold growth test in accordance with the national standard GB / T 2423.16-2008 "Environmental Testing for Electrical and Electronic Products Part 2: Test Method Test J and Guidelines: Mildew Growth". The degree of mold growth after the test shall not exceed the requirements of Class 2.

[0003] The current evaluation method is to observe the moldy area of ​​the test product with the naked eye. If the moldy area does not exceed 25% of the test area, it is qualified. However, it is sometimes difficult to judge whether the moldy area exceeds the regulations by naked eye observation alone. At present, there are very few studies on mold growth tests for electrical and electronic products at home and abroad. The research focus of relevant literature is mainly on the analysis of technical indicators of mold growth test standards and the comparison of mold growth test standards at home and abroad. The evaluation research on the results of low-voltage current transformer mold growth tests is even blank. Therefore, it is necessary to propose a simple and effective quantitative evaluation system and method for low-voltage current transformer mold growth test results to improve the accuracy of the test results. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] In order to solve the above problems in the prior art, the present invention proposes a method for evaluating the mold test results of a low-voltage current transformer, which can more accurately quantitatively evaluate the mold test results and solve the problem that it is difficult to judge with the naked eye whether the proportion of the moldy area exceeds the standard in the current technology.

[0006] (II) Technical solution

[0007] In order to achieve the above object, the main technical solutions adopted by the present invention include:

[0008] A method for evaluating the results of a fungus test on a low voltage current transformer is designed. The method comprises the following steps:

[0009] Step 1): Collect images of the low-voltage current transformer before and after mold growth. Use an image information acquisition device to collect images, the device includes a stage, a limit table is fixed on one side of the stage, the limit table is fixed to one end of the telescopic rod, the other end of the telescopic rod is fixed to the support rod, the support rod and the telescopic rod maintain a vertical relationship, and a fill light touch key, a fill light, and a camera are arranged on the support rod. The fill light touch key controls the light intensity of the fill light according to the brightness of the environment; a positioning line is arranged on the stage, and the low-voltage current transformer is placed within the positioning line; the camera is used to collect image information of the low-voltage current transformer, and the image information collected by the camera is output to the host computer through the data line, and the host computer provides power for the fill light and the camera through the data line. Preliminary judgment is made whether the mold growth area is close to 25% of the total area. If it is far less than 25%, it means that the mold growth test result of the low-voltage current transformer is qualified and no quantitative evaluation is required; if it is difficult to judge by naked eyes, jump to step 2).

[0010] Step 2): Image grayscale processing. The low-voltage current transformer image captured by the camera is a color image. If the captured color image is directly operated, the requirements for the host computer system and image processing algorithm are relatively high. This will not only increase the cost of hardware equipment, but also directly process the red, green and blue (RGB) image, which requires the R component, G component and B component of the RGB image to be processed separately, which will greatly increase the complexity of image processing and reduce the speed of image processing. Therefore, the captured RGB image of the low-voltage current transformer is first converted into a grayscale image according to formula (1).

[0011] Y=0.229R+0.587G+0.114B (1)

[0012] Among them, Y is the brightness, that is, the grayscale value of the corresponding pixel after the RGB image is converted into a grayscale image.

[0013] Step 3): Image filtering. Since images are always inevitably interfered by various noise sources during generation, transmission and storage, it is necessary to adopt various technologies to remove the noise components in the image and enhance the image. Image filtering is one of the main contents of image enhancement, and its main purpose is to eliminate various interferences and noises that may be generated during image acquisition, quantization, or image transmission. The difficulty of image filtering is to suppress noise as much as possible without blurring the image edges. Planting filtering is a commonly used digital smoothing filtering method, which eliminates image noise while avoiding blurring the image edges to the greatest extent. Suppose the grayscale set of the two-dimensional image is {X i,j , (i, j)∈Z 2}, Z 2is a two-dimensional set of integers. The median pixel value in a window of size A = m × n (including an odd number of pixels) is defined as:

[0014]

[0015] Formula (2) means that the odd pixels in the window are arranged according to the gray value, and the middle pixel value is assigned to Y i,j , then with Y i,j Replace the central pixel value in the two-dimensional window A as the output of the median filter.

[0016] Step 4): Image grayscale histogram processing. While grayscale processing is performed on the images of the low-voltage current transformer before and after mold growth, its grayscale histogram can also be obtained. The grayscale histogram reflects the relationship between each grayscale level in an image and the frequency of occurrence of each grayscale pixel. It generally reflects the grayscale content of an image and the image's visible information, and reflects the grayscale distribution of the image. The discrete function h(rk)=nk is the histogram of a digital image with a grayscale range of [0, L-1], where rk is the low grayscale and nk is the number of pixels with a grayscale level of rk in the image. Usually, the total number of pixels in the image (represented by n) is divided by nk (k=0,1...L-1) to obtain a normalized grayscale histogram.

[0017] Step 5): Image binarization. Grayscale histogram, as defined, can reflect the grayscale distribution of an image, giving people visual image grayscale information, and then select and judge the grayscale value based on the histogram. The grayscale histogram of the low-voltage current transformer before and after mold growth has a two-peaked nature, indicating that the brighter area (the stage and the measured area of ​​the low-voltage current transformer) and the darker area (mold spots) of this image can be well separated. Taking the peak and valley as the threshold point, a better binarization effect can be obtained.

[0018] The basic idea of ​​binarizing a grayscale image is to determine a threshold, then compare the grayscale value of each pixel with the threshold, and divide the pixel into two categories based on the comparison result: target and background.

[0019] Suppose the original image is f(x,y), and the method of binary segmentation image is:

[0020]

[0021] In formula (3), f(x, y) represents the pixel value at the coordinate (x, y) in the image f(x, y), g(x, y) represents the pixel value at the coordinate (x, y) in the image after binarization, and T is the binarization segmentation threshold.

[0022] In order to further improve the accuracy of threshold selection, it is necessary to process the grayscale images of the low-voltage current transformer before and after mold growth.

[0023] Let f a (x, y) is the gray value function of the low voltage current transformer before mold growth, f b (x, y) is the gray value function of the low voltage current transformer after mold growth.

[0024] f(x,y)=f b (x,y)-f a (x,y) (4)

[0025] According to formula (4), f(x, y) is the gray value of the low-voltage current transformer after mold growth minus the gray value of the low-voltage current transformer before mold growth. Since the gray value difference between the stage and the test surface is not large, the gray value of the stage and the surface without mold after the calculation is 0 or close to 0 (the gray value cannot be negative, and the gray value is 0 when the difference is negative), while the gray value of the mold spot remains unchanged.

[0026] The grayscale image based on f(x,y) can be drawn to distinguish the target from the background very intuitively. Based on this, the image can be binarized and the threshold selection will be simple and accurate.

[0027] The OTSU algorithm that does not require manual parameter setting is selected to determine the threshold. The OSTU algorithm is a classic algorithm of the global threshold method and one of the commonly used binary segmentation methods. The mathematical basis of the algorithm is the least squares method. The calculated binary threshold can maximize the difference between the average grayscale value of the background target area pixels, the average grayscale value of the background area pixels and the average grayscale value of the entire image pixels. The calculation process of the OTSU algorithm is: suppose the total number of pixels in the image is N, the grayscale level of the image is L, then the grayscale range of the image is [0, L-1], and the number of pixels with grayscale value i is n i , then the probability of i is:

[0028]

[0029] The pixels in the image are divided into two categories C0 and C1 according to the gray value using the threshold T. C0 corresponds to pixels with gray values ​​between [0, T-1], and C1 corresponds to pixels with gray values ​​between [T, L-1]. The probabilities of C0 and C1 are:

[0030]

[0031] The grayscale averages of C0 and C1 are:

[0032]

[0033] The grayscale mean of the entire image is:

[0034] u=w 0 u 0 +w 1 u 1 (8)

[0035] The between-class variance is defined as:

[0036] σ 2 =w 0 (u 0 -u) 2 +w 1 (u 1 -u) 2 (9)

[0037] Let T be in the range of [0, L-1], and take it in increments with a step size of 1. When σ 2 The T corresponding to the maximum is the optimal threshold.

[0038] Step 6): Obtain the proportion of moldy area.

[0039] The binary image of the low-voltage current transformer and the mildew spot after being processed by the OTSU algorithm. It is not difficult to find that the images of the low-voltage current transformer and the mildew area are completely extracted. The ratio of the number of bright pixels in the binary image of the mildew area of ​​the low-voltage current transformer to the number of bright pixels in the binary image of the low-voltage current transformer before mildew is the ratio of the mildew area.

[0040] (III) Beneficial effects

[0041] The beneficial effects of the present invention are as follows: the image information acquisition device adopted by the present invention, with the addition of fill light, positioning line and other designs, can not only provide fill light when the ambient light source is insufficient, but also make the obtained image consistent, thereby providing high-quality image information for the image processing of the low-voltage current transformer; the present invention adopts image processing technology to perform grayscale processing, filtering processing and binarization processing on the collected image, and accurately calculates the mold growth ratio of the low-voltage current transformer. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a front schematic diagram of an image information acquisition device used in the present invention;

[0043] Figure 2 A schematic top view of an image information acquisition device used in the present invention;

[0044] Figure 3 The grayscale comparison diagram of the low-voltage current transformer before and after mold growth in the embodiment of the present invention (wherein (a) shows before mold growth; (b) shows after mold growth);

[0045] Figure 4 The gray histogram comparison diagram of the low-voltage current transformer before and after mold growth in the embodiment of the present invention (wherein (a) shows before mold growth; (b) shows after mold growth);

[0046] Figure 5 1 is a schematic diagram of the binary comparison of the low-voltage current transformer before and after mold growth in an embodiment of the present invention (wherein (a) shows the binary image of the measured surface before mold growth; (b) shows the binary image of the moldy part after mold growth).

[0047] [Explanation of the accompanying drawings]: 1: support rod; 2: fill light touch key; 3: fill light; 4: camera; 6: telescopic rod; 7: limit table; 8: low-voltage current transformer; 9: positioning line; 10: loading platform. DETAILED DESCRIPTION

[0048] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0049] The present invention provides a method for evaluating the results of a low voltage current transformer fungus test. Figure 1 and Figure 2 The image information acquisition device shown collects images. The device includes a stage 10. A limit table 7 is fixed on one side of the stage 10. The limit table 7 is fixed to one end of the telescopic rod 6. The other end of the telescopic rod 6 is fixed to the support rod 1. The support rod 1 maintains a vertical relationship with the telescopic rod 6. A fill light touch key 2, a fill light 3, and a camera 4 are arranged on the support rod 1. The fill light touch key 2 controls the light intensity of the fill light 3 according to the brightness of the test environment. A positioning line 9 is arranged on the stage 10. The low-voltage current transformer 8 is placed within the positioning line 9 to ensure that the low-voltage current transformer 8 has a relatively fixed reference position each time it is placed. The telescopic rod 6 can adjust the distance between the camera 4 and the low-voltage current transformer 8 by telescoping. The camera 4 is used to collect image information of the low-voltage current transformer 8. When the ambient light source is insufficient, the fill light 3 is used for fill light. The image information collected by the camera 4 is output to the host computer through the data line. The data line provides power to the fill light 3 and the camera 4 through the host computer.

[0050] When using the image information acquisition device to collect images of the low-voltage current transformer 8 before and after mold growth, the accuracy of the image should be maintained. The position and placement of the low-voltage current transformer 8 on the stage 10 should remain completely consistent before and after mold growth. The maximum height of the support rod 1 can be 41.6 mm, and the shooting angle of the camera 4 is perpendicular to the stage 10. When placing the low-voltage current transformer 8, it should be ensured that the photographed surface is directly below the lens of the camera 4 as much as possible.

[0051] Before the low voltage current transformer 8 is molded, after being processed by the grayscale algorithm, the image information collected by the camera 4 is as follows: Figure 3 (a) As shown; After the low-voltage current transformer 8 grows mold, the image information collected by the camera 4 is as follows Figure 3 (b) is shown. By taking the grayscale image of the low voltage current transformer 8 before mold growth (such as Figure 3 (a)) and the grayscale image of the low voltage current transformer 8 after mold growth ( Figure 3 (b)) and the frequency of occurrence of each gray level pixel are counted to obtain a gray histogram of the low voltage current transformer 8 before mold growth (as shown in FIG. Figure 4 (a)) and the grayscale histogram of the low voltage current transformer 8 after mold growth ( Figure 4 (b)). The grayscale image function of the low-voltage current transformer 8 after mold growth is subtracted from the grayscale image function of the low-voltage current transformer 8 before mold growth to obtain the grayscale image function of the mold growth area of ​​the low-voltage current transformer 8. Then, the threshold is determined according to the OTSU algorithm, and the grayscale image of the low-voltage current transformer 8 before mold growth (such as Figure 3 (a)) and the mold growing area after the low voltage current transformer 8 is moldy (as shown in Figure 3 (b) is used to perform image binarization processing to obtain a binary image of the low-voltage current transformer 8 before mold growth (as shown in FIG. Figure 5 (a)) and the binary image of the mold growth area of ​​the low voltage current transformer 8 (as shown in Figure 5 (b)). According to the binary image of the mold growth area of ​​the low voltage current transformer 8 (as shown in Figure 5 (b) shows the number of bright pixels of the low voltage current transformer 8 before mold growth (as shown in FIG. Figure 5 The ratio of the number of bright pixels in (a) is the ratio of the moldy area.

[0052] The accompanying drawings describe the embodiments of the present invention, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which are all within the protection of the present invention.

Claims

1. A method for evaluating the results of fungal tests on low voltage current transformers. Features: The following steps are involved: Step 1): collecting images of the low voltage current transformer before and after mold growth; Step 2): grayscale processing of the image; Step 3): Image filtering processing; Step 4): Image grayscale histogram processing; Step 5): Image binarization processing; Step 6): Obtain the proportion of moldy area; In the step 1), an image information acquisition device is used to acquire images, the device comprising a stage, a low-voltage current transformer is placed on the stage, a camera is arranged above the low-voltage current transformer, the camera acquires an image of the low-voltage current transformer and outputs the image to a host computer; A limit platform is fixed on one side of the loading platform, the limit platform is fixed to one end of the telescopic rod, the other end of the telescopic rod is fixed to the support rod, the support rod and the telescopic rod maintain a vertical relationship, and a fill light touch key, a fill light, and a camera are arranged on the support rod, the fill light touch key controls the light intensity of the fill light according to the brightness of the shooting environment; the image collected by the camera is output to the host computer through the data line, and the host computer provides power for the fill light and the camera through the data line; A positioning line is provided on the loading platform, and the low-voltage current transformer is placed within the positioning line; In the step 1), after collecting the image, the proportion of the moldy area is preliminarily determined. If it is obviously less than 25%, the moldy test result of the low-voltage current transformer is qualified and no quantitative evaluation is required; If it cannot be judged by naked eyes, jump to step 2); In step 2), the collected RGB image of the low-voltage current transformer is converted into a grayscale image according to formula (1). Y=0.229R+0.587G+0.114B (1) Among them, Y is brightness, that is, the gray value of the corresponding pixel after the RGB image is converted into a grayscale image; In step 3), the planting filter method is used to eliminate image noise. Assume that the grayscale set of the two-dimensional image is {X i,j , (i, j)∈Z 2 }, Z 2 is a two-dimensional set of integers, and the median pixel value in a window of size A = m×n is defined as: Formula (2) indicates that the odd pixels in the window are arranged according to the grayscale value, and the middle pixel value is assigned to Y i,j , then Y i,j Replace the central pixel value in the two-dimensional window A as the output of the median filter; In the step 4), the discrete function h(rk)=nk is a histogram of a digital image with a grayscale range of [0, L-1], wherein rk is a low grayscale, nk is the number of pixels with a grayscale of rk in the image, and a normalized grayscale histogram is obtained by dividing the total number of pixels in the image by nk (k=0, 1...L-1), and n represents the total number of pixels; In step 5), a threshold is determined, and then the gray value of each pixel in the image is compared with the threshold, and the pixel is divided into two categories, target and background, according to the comparison result; Suppose the original image is f(x,y), and the method of binary segmentation image is: In formula (3), f(x, y) represents the pixel value at the coordinate (x, y) in the original image, g(x, y) represents the pixel value at the coordinate (x, y) in the image after binarization, and T is the binarization segmentation threshold; The threshold is determined as follows: Let f a (x, y) is the gray value function of the low voltage current transformer before mold growth, f b (x,y) is the gray value function of the low voltage current transformer after mold growth. f(x,y)=f b (x,y)-f a (x,y) (4) Calculate according to formula (4), f(x, y) is the gray value of the low-voltage current transformer after mold growth minus the gray value of the low-voltage current transformer before mold growth, draw a gray image based on f(x, y), intuitively distinguish the target and the background, perform image binarization, and select a threshold; The OTSU algorithm is used to determine the threshold. Suppose the total number of pixels in the image is N, the gray level of the image is L, then the gray range of the image is [0, L-1], and the number of pixels with gray value i is n i , then the probability of i is: The pixels in the image are divided into two categories C0 and C1 according to the gray value using the threshold T. C0 corresponds to pixels with gray values ​​between [0, T-1], and C1 corresponds to pixels with gray values ​​between [T, L-1]. The probabilities of C0 and C1 are: The grayscale averages of C0 and C1 are: The grayscale mean of the entire image is: u=w 0 u 0 +w 1 u 1 (8) The between-class variance is defined as: σ 2 =in 0 (at 0 -at) 2 +in 1 (at 1 -at) 2 (9) Let T be in the range of [0, L-1], and take it in increments with a step size of 1; when σ 2 The T corresponding to the maximum is the optimal threshold; In step 6), the ratio of the number of bright pixels in the binary image of the moldy area of ​​the low-voltage current transformer to the number of bright pixels in the binary image before the low-voltage current transformer is moldy is the ratio of the moldy area.