[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111008967B - A Method for Identifying Defects in RTV Coating of Insulators - Google Patents

A Method for Identifying Defects in RTV Coating of Insulators Download PDF

Info

Publication number
CN111008967B
CN111008967B CN201911226484.0A CN201911226484A CN111008967B CN 111008967 B CN111008967 B CN 111008967B CN 201911226484 A CN201911226484 A CN 201911226484A CN 111008967 B CN111008967 B CN 111008967B
Authority
CN
China
Prior art keywords
insulator
image
rtv coating
area
coating defect
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911226484.0A
Other languages
Chinese (zh)
Other versions
CN111008967A (en
Inventor
金花
辛立杰
袁之康
屠幼萍
吕泽昆
王成
贺林轩
李赵晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
North China Electric Power University
Original Assignee
North China Electric Power University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by North China Electric Power University filed Critical North China Electric Power University
Priority to CN201911226484.0A priority Critical patent/CN111008967B/en
Publication of CN111008967A publication Critical patent/CN111008967A/en
Application granted granted Critical
Publication of CN111008967B publication Critical patent/CN111008967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Analysis (AREA)

Abstract

The application belongs to the technical field of image processing, and particularly relates to an insulator RTV coating defect identification method. The existing insulator RTV coating defect identification method needs to be detected on site, and is complex to operate. The application provides an insulator RTV coating defect identification method, which comprises the following steps: 1) Acquiring an image containing defects of the RTV coating of the insulator; 2) Preprocessing the image containing the insulator RTV coating defects; so as to improve the accuracy of the subsequent segmentation of the insulator image and the calculation of the falling area ratio of the RTV coating. 3) And dividing the preprocessed insulator image into a binarized image, and dividing an insulator region and an RTV coating defect region. According to the insulator RTV coating defect identification method, the insulator image is segmented, and the normal insulator and the RTV coating falling-off area can be obtained.

Description

一种绝缘子RTV涂层缺陷识别方法A Defect Identification Method for Insulator RTV Coating

技术领域technical field

本申请属于图像处理技术领域,特别是涉及一种绝缘子RTV涂层缺陷识别方法。The application belongs to the technical field of image processing, and in particular relates to a method for identifying defects in an insulator RTV coating.

背景技术Background technique

室温硫化硅橡胶(Room Temperature Silicone Rubber)简称RTV防污闪涂料,电力系统户外设备电瓷表面的自然积污现象是不可避免的,随着我国国民经济的发展,大气污染日趋严重,各地污染源不断增多,盐密值范围逐年增高。反之,瓷绝缘配置普遍偏低,线路逐年增加,防污闪专业人员偏少,再考虑到过电压运行及变换不安的气候、鸟害等因素,污闪的可能性越来越大。Room Temperature Silicone Rubber (Room Temperature Silicone Rubber) is referred to as RTV anti-pollution flashover coating. The natural accumulation of pollution on the surface of electric ceramics for outdoor equipment in power systems is inevitable. With the development of my country's national economy, air pollution is becoming more and more serious, and pollution sources in various places are increasing , the range of salt density value increases year by year. On the contrary, the configuration of porcelain insulation is generally low, the number of lines is increasing year by year, and there are few anti-pollution flashover professionals. In addition, considering factors such as overvoltage operation, uneasy climate changes, and bird damage, the possibility of pollution flashover is increasing.

在恶劣气象条件下(如:雾、露、毛毛雨等),沿着潮湿的绝缘子表面会发生闪络,造成电力系统污闪事故。污闪威胁着电力系统的安全稳定运行,轻者影响局部供电,重者会对电网造成影响,甚至使整个电网产生裂解。污闪的发生对供电系统的影响给国民经济造成了巨大的损失。Under severe weather conditions (such as: fog, dew, drizzle, etc.), flashovers will occur along the wet insulator surface, resulting in power system pollution flashover accidents. Pollution flashover threatens the safe and stable operation of the power system. If it is mild, it will affect local power supply. If it is serious, it will affect the power grid, and even cause the entire power grid to crack. The impact of pollution flashover on the power supply system has caused huge losses to the national economy.

通过对绝缘子RTV涂层缺陷进行识别,有效的表征绝缘子RTV涂层缺陷的严重程度,为下一步是否需要复涂RTV涂料或者更换绝缘子提供理论依据。但是现有的绝缘子RTV涂层缺陷识别方法需要到现场进行检测操作起来比较复杂。By identifying the RTV coating defects of insulators, the severity of RTV coating defects of insulators can be effectively characterized, and a theoretical basis is provided for whether to recoat RTV coatings or replace insulators in the next step. However, the existing insulator RTV coating defect identification method requires on-site detection and operation is relatively complicated.

发明内容Contents of the invention

1.要解决的技术问题1. Technical problems to be solved

基于通过对绝缘子RTV涂层缺陷进行识别,有效的表征绝缘子RTV涂层缺陷的严重程度,为下一步是否需要复涂RTV涂料或者更换绝缘子提供理论依据。但是现有的绝缘子RTV涂层缺陷识别方法需要到现场进行检测操作起来比较复杂问题,本申请提供了一种绝缘子RTV涂层缺陷识别方法。Based on the identification of insulator RTV coating defects, the severity of insulator RTV coating defects can be effectively characterized, and a theoretical basis is provided for whether to recoat RTV coatings or replace insulators in the next step. However, the existing insulator RTV coating defect identification method requires on-site detection and operation is relatively complicated. This application provides a method for insulator RTV coating defect identification.

2.技术方案2. Technical solution

为了达到上述的目的,本申请提供了一种绝缘子RTV涂层缺陷识别方法,所述方法包括如下步骤:In order to achieve the above purpose, the present application provides a method for identifying defects in an insulator RTV coating, the method comprising the following steps:

1)获取含有绝缘子RTV涂层缺陷的图像;1) Obtain images containing insulator RTV coating defects;

2)对所述含有绝缘子RTV涂层缺陷的图像进行预处理,以便提高后续绝缘子图像分割和计算RTV涂层脱落面积占比的准确率;2) Preprocessing the image containing insulator RTV coating defects, so as to improve the accuracy of subsequent insulator image segmentation and calculation of the ratio of RTV coating shedding area;

3)将所述预处理后的绝缘子图像分割为二值化图像,分割出绝缘子区域和RTV涂层缺陷区域。3) Segment the preprocessed insulator image into a binary image, and segment the insulator region and the RTV coating defect region.

本申请的另一种实施方式为:所述步骤1)中所述图像来自现场近距离的航拍的含有RTV涂层缺陷的绝缘子图像或者实验室拍摄的含有RTV涂层缺陷的绝缘子图像。Another embodiment of the present application is: the image in the step 1) is from an insulator image of an insulator with RTV coating defect taken by aerial photography at close range on site or an insulator image of an insulator with RTV coating defect taken by a laboratory.

本申请的另一种实施方式为:所述绝缘子图像种包括绝缘子型号信息。对绝缘子本体颜色不做限制。Another embodiment of the present application is: the insulator image includes insulator model information. There is no restriction on the color of the insulator body.

本申请的另一种实施方式为:所述步骤2)中所述预处理包括对图像灰度化和图像中值滤波,去除噪声,改善图像质量,提高所述绝缘子图像分割的准确性。后续可通过统计图像中像素点的个数计算绝缘子RTV涂层脱落面积占比。Another embodiment of the present application is: the preprocessing in the step 2) includes image grayscale and image median filtering to remove noise, improve image quality, and improve the accuracy of the insulator image segmentation. Subsequently, the proportion of the insulator RTV coating shedding area can be calculated by counting the number of pixels in the image.

本申请的另一种实施方式为:所述图像灰度化的转换公式为:Another embodiment of the present application is: the conversion formula of the image grayscale is:

Y=0.2989*R+0.5870*G+0.1140*BY=0.2989*R+0.5870*G+0.1140*B

RGB为彩色图像中的三分量,R代表红色分量,G代表绿色分量,B代表蓝色分量。Y为灰度图像的灰度值。RGB is the three components in the color image, R represents the red component, G represents the green component, and B represents the blue component. Y is the gray value of the grayscale image.

本申请的另一种实施方式为:所述步骤3)中利用最大类间方差法将预处理过后的绝缘子图像进行分割为二值化图像,分割出绝缘子区域和RTV涂层缺陷区域。Another embodiment of the present application is: in the step 3), the preprocessed insulator image is segmented into a binarized image by using the maximum inter-class variance method, and the insulator region and the RTV coating defect region are segmented.

本申请的另一种实施方式为:所述最大类间方差法包括遍历图像灰度的值空间,计算每个阈值对应的类间方差,使类间方差最大,即为最优阈值T;选取阈值T对图像的梯度值进行二值化。Another embodiment of the present application is: the maximum inter-class variance method includes traversing the value space of image grayscale, calculating the inter-class variance corresponding to each threshold, and making the inter-class variance the largest, which is the optimal threshold T; The threshold T binarizes the gradient values of the image.

本申请的另一种实施方式为:还包括统计所述二值化图像的黑白像素点个数,计算绝缘子RTV涂层脱落面积占比。Another embodiment of the present application is: further including counting the number of black and white pixels of the binarized image, and calculating the ratio of the insulator RTV coating shedding area.

本申请的另一种实施方式为:所述绝缘子RTV涂层脱落面积占比为绝缘子正面或背面占绝缘子绝缘区域的比例。Another embodiment of the present application is: the ratio of the peeling area of the RTV coating of the insulator is the ratio of the front or back of the insulator to the insulating area of the insulator.

由于绝缘子中间区域存在钢帽部件,该部件不具备绝缘性能,本专利的最终目的是计算绝缘子RTV涂层脱落面积占比,该占比是指绝缘子正面或背面占绝缘子绝缘区域的比例,不包括绝缘子中间钢帽部件区域,这种计算方式能够有效的表征绝缘子RTV涂层缺陷的严重程度。Since there is a steel cap part in the middle area of the insulator, this part does not have insulation performance. The ultimate purpose of this patent is to calculate the proportion of the RTV coating peeling off area of the insulator. This proportion refers to the proportion of the front or back of the insulator to the insulator insulation area, excluding In the area of the steel cap part in the middle of the insulator, this calculation method can effectively characterize the severity of the RTV coating defect of the insulator.

本申请的另一种实施方式为:所述计算包括如下步骤:Another embodiment of the present application is: the calculation includes the following steps:

a、计算二值化图像中绝缘子本体的圆心坐标(x,y),x=(max(x)+min(x))/2,y=(max(y)+min(y))/2;a. Calculate the center coordinates (x, y) of the insulator body in the binary image, x=(max(x)+min(x))/2, y=(max(y)+min(y))/2 ;

b、计算二值化图像中绝缘子半径R=(max(x)-min(x))/2;b. Calculate the insulator radius R=(max(x)-min(x))/2 in the binarized image;

c、计算钢帽半径R1=R×d;c. Calculate the steel cap radius R 1 =R×d;

d、使用填充函数将钢帽区域填充为黑色,统计该图中黑色像素点个数,记作A;d. Use the fill function to fill the area of the steel cap with black, count the number of black pixels in the picture, and record it as A;

e、计算钢帽区域面积为S=πR1 2e. Calculate the area of the steel cap area as S=πR 1 2 ;

f、通过过滤函数删除图像中绝缘子RTV涂层脱落区域,使得整个绝缘子区域为黑色,统计该图中黑色像素点个数,记作B;f. Delete the peeling area of the insulator RTV coating in the image through the filter function, so that the entire insulator area is black, count the number of black pixels in the picture, and record it as B;

g、计算绝缘子RTV涂层脱落区域占比Ratio=(B-A)/(B-S)×100%。g. Calculate the proportion of insulator RTV coating shedding area Ratio=(B-A)/(B-S)×100%.

其中,绝缘子本体的圆心坐标为(x,y),绝缘子半径为R,钢帽直径占绝缘子盘径的百分比为d。Among them, the coordinates of the center of the insulator body are (x, y), the radius of the insulator is R, and the percentage of the diameter of the steel cap to the diameter of the insulator is d.

3.有益效果3. Beneficial effect

与现有技术相比,本申请提供的一种绝缘子RTV涂层缺陷识别方法的有益效果在于:Compared with the prior art, the beneficial effects of a method for identifying defects in an insulator RTV coating provided by this application are:

本申请提供的一种绝缘子RTV涂层缺陷识别方法,对绝缘子图像进行分割,能够获得正常绝缘子和RTV涂层脱落区域。An insulator RTV coating defect recognition method provided in the present application can segment an insulator image to obtain normal insulators and RTV coating shedding areas.

本申请提供的一种绝缘子RTV涂层缺陷识别方法,通过采集含有绝缘子RTV涂层缺陷的图像,对图像进行处理识别,得到绝缘子RTV涂层缺陷及其占比面积,操作简单,而且不用去现场就可实现对绝缘子RTV涂层缺陷的识别,通过绝缘子RTV涂层缺陷占比面积表征绝缘子RTV涂层缺陷的严重程度。An insulator RTV coating defect recognition method provided by this application collects images containing insulator RTV coating defects, processes and recognizes the images, and obtains insulator RTV coating defects and their occupied areas. The operation is simple, and there is no need to go to the site The identification of insulator RTV coating defects can be realized, and the severity of insulator RTV coating defects can be represented by the proportion of insulator RTV coating defects.

附图说明Description of drawings

图1是本申请的一种绝缘子RTV涂层缺陷识别方法的原理示意图;Fig. 1 is the principle schematic diagram of a kind of insulator RTV coating defect identification method of the present application;

图2是本申请的具体实施结果示意图。Fig. 2 is a schematic diagram of the specific implementation results of the present application.

具体实施方式Detailed ways

在下文中,将参考附图对本申请的具体实施例进行详细地描述,依照这些详细的描述,所属领域技术人员能够清楚地理解本申请,并能够实施本申请。在不违背本申请原理的情况下,各个不同的实施例中的特征可以进行组合以获得新的实施方式,或者替代某些实施例中的某些特征,获得其它优选的实施方式。Hereinafter, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. According to these detailed descriptions, those skilled in the art can clearly understand the present application and can implement the present application. Without departing from the principle of the present application, the features in different embodiments can be combined to obtain new implementations, or some features in certain embodiments can be replaced to obtain other preferred implementations.

OTSU算法也称最大类间差法,有时也称之为大津算法,由大津于1979年提出,被认为是图像分割中阈值选取的最佳算法,计算简单,不受图像亮度和对比度的影响,因此在数字图像处理上得到了广泛的应用。它是按图像的灰度特性,将图像分成背景和前景两部分。方差是灰度分布均匀性的一种度量,背景和前景之间的类间方差越大,说明构成图像的两部分的差别越大,当部分前景错分为背景或部分背景错分为前景都会导致两部分差别变小。因此,使类间方差最大的分割意味着错分概率最小。The OTSU algorithm is also called the maximum inter-class difference method, sometimes called the Otsu algorithm. It was proposed by Otsu in 1979 and is considered to be the best algorithm for threshold selection in image segmentation. It is simple to calculate and is not affected by image brightness and contrast. Therefore, it has been widely used in digital image processing. It divides the image into two parts, the background and the foreground, according to the grayscale characteristics of the image. Variance is a measure of the uniformity of the gray distribution. The larger the inter-class variance between the background and the foreground, the greater the difference between the two parts that make up the image. When part of the foreground is wrongly divided into background or part of the background is wrongly divided into foreground, it will resulting in a smaller difference between the two parts. Therefore, the split that maximizes the between-class variance means the smallest probability of misclassification.

参见图1~2,本申请提供一种绝缘子RTV涂层缺陷识别方法,所述方法包括如下步骤:Referring to Figures 1-2, the present application provides a method for identifying defects in an insulator RTV coating, the method includes the following steps:

1)获取含有绝缘子RTV涂层缺陷的图像;1) Obtain images containing insulator RTV coating defects;

2)对所述含有绝缘子RTV涂层缺陷的图像进行预处理;2) Preprocessing the image containing the insulator RTV coating defect;

3)将所述预处理后的绝缘子图像分割为二值化图像,分割出绝缘子区域和RTV涂层缺陷区域。3) Segment the preprocessed insulator image into a binary image, and segment the insulator region and the RTV coating defect region.

进一步地,所述步骤1)中所述图像来自现场近距离的航拍的含有RTV涂层缺陷的绝缘子图像或者实验室拍摄的含有RTV涂层缺陷的绝缘子图像。Further, the image in the step 1) is from an insulator image containing RTV coating defects captured by aerial photography at close range on site or an insulator image containing RTV coating defects captured in a laboratory.

进一步地,所述绝缘子图像种包括绝缘子型号信息。Further, the insulator image type includes insulator model information.

进一步地,所述步骤2)中所述预处理包括对图像灰度化和图像中值滤波,去除噪声,改善图像质量,提高所述绝缘子图像分割的准确性。Further, the preprocessing in step 2) includes image grayscale and image median filtering to remove noise, improve image quality, and improve the accuracy of the insulator image segmentation.

计算绝缘子RTV涂层缺陷面积占比的前提是确定绝缘子所在区域,即需要对原始图像进行分割,使得绝缘子区域与背景分离。由于原始图像中可能存在不同程度的噪声或者其他干扰因素,影响后续绝缘子图像分割识别的准确性,因此需要在进行图像分割操作之前对原始图像进行一系列的预处理操作,图像预处理的目的是降低噪声、改善图像质量,并尽可能保留原始图像中的RTV涂层缺陷信息。本申请采用的预处理方法分为图像灰度化、图像中值滤波。这两种方法能够为后期的绝缘子图像分割工作减少干扰并提高计算效率。The premise of calculating the proportion of insulator RTV coating defect area is to determine the area where the insulator is located, that is, the original image needs to be segmented to separate the insulator area from the background. Since there may be different degrees of noise or other interference factors in the original image, which will affect the accuracy of subsequent insulator image segmentation and recognition, it is necessary to perform a series of preprocessing operations on the original image before the image segmentation operation. The purpose of image preprocessing is Reduce noise, improve image quality, and preserve RTV coating defect information in the original image as much as possible. The preprocessing methods adopted in this application are divided into image grayscale and image median filtering. These two methods can reduce interference and improve computational efficiency for the later work of insulator image segmentation.

图像灰度化Image grayscale

经过采集获取到的原始图像一般都是彩色图像,将彩色图像转化为灰度图像的过程称为图像的灰度化处理。彩色图像中的每个像素的颜色有R、G、B三个分量决定,而每个分量的范围为0~255,所以需要先将彩色图像转变成灰度图像以减少后续的计算量,灰度图像的描述与彩色图像一样仍然能反映图像的色度和亮度等级的分布和特征。The original image obtained through acquisition is generally a color image, and the process of converting a color image into a grayscale image is called image grayscale processing. The color of each pixel in a color image is determined by three components R, G, and B, and each component ranges from 0 to 255, so it is necessary to convert the color image into a grayscale image first to reduce the amount of subsequent calculations. The description of the chromaticity image can still reflect the distribution and characteristics of the chromaticity and brightness levels of the image, just like the color image.

图像中值滤波image median filter

由于在采集图像时光照条件的多变性,采集到的图像会存在不同程度的噪声,这些噪声可能会使图像中均匀连续分布的灰度值在某个点突然变大或减小,导致算法识别出虚假的RTV涂层缺陷。为了减小噪声的影响,改善图像的质量,需要对灰度图像进行中值滤波处理。中值滤波是把数字图像中一点的值用该点的一个领域中各点值的中值代替,将周围像素灰度值的差比较大的像素改取与周围的像素值相接近的值,从而消除孤立的噪声点,可以做到既去除噪声又能保护绝缘子的边缘信息。Due to the variability of lighting conditions when collecting images, the collected images will have different degrees of noise. These noises may cause the uniform and continuous distribution of gray values in the image to suddenly increase or decrease at a certain point, causing the algorithm to identify False RTV coating defects. In order to reduce the influence of noise and improve the quality of the image, it is necessary to perform median filtering on the grayscale image. Median filtering is to replace the value of a point in the digital image with the median value of each point in a field of the point, and change the pixel with a relatively large difference in the gray value of the surrounding pixels to a value close to the surrounding pixel value. In this way, isolated noise points can be eliminated, which can not only remove noise but also protect the edge information of the insulator.

进一步地,所述图像灰度化的转换公式为:Further, the conversion formula of the image grayscale is:

Y=0.2989*R+0.5870*G+0.1140*BY=0.2989*R+0.5870*G+0.1140*B

其中,R代表红色分量,G代表绿色分量,B代表蓝色分量。Y为灰度图像的灰度值。Among them, R represents the red component, G represents the green component, and B represents the blue component. Y is the gray value of the grayscale image.

进一步地,所述步骤3)中利用最大类间方差法将预处理过后的绝缘子图像进行分割为二值化图像,分割出绝缘子区域和RTV涂层缺陷区域。Further, in the step 3), the preprocessed insulator image is segmented into a binary image by using the maximum inter-class variance method, and the insulator region and the RTV coating defect region are segmented.

进一步地,所述最大类间方差法包括遍历图像灰度的值空间,计算每个阈值对应的类间方差,使类间方差最大,即为最优阈值T;选取阈值T对图像的梯度值进行二值化。Further, the maximum inter-class variance method includes traversing the value space of image grayscale, calculating the inter-class variance corresponding to each threshold, and making the inter-class variance the largest, which is the optimal threshold T; selecting the gradient value of the threshold T to the image Do binarization.

进一步地,还包括统计所述二值化图像的黑白像素点个数,计算绝缘子RTV涂层脱落面积占比。Further, it also includes counting the number of black and white pixels in the binarized image, and calculating the ratio of the insulator RTV coating shedding area.

进一步地,所述绝缘子RTV涂层脱落面积占比为绝缘子正面或背面占绝缘子绝缘区域的比例。Further, the ratio of the peeling area of the RTV coating of the insulator is the ratio of the front or back of the insulator to the insulating area of the insulator.

进一步地,所述计算包括如下步骤:Further, the calculation includes the following steps:

a、计算二值化图像中绝缘子本体的圆心坐标(x,y),x=(max(x)+min(x))/2,y=(max(y)+min(y))/2;a. Calculate the center coordinates (x, y) of the insulator body in the binary image, x=(max(x)+min(x))/2, y=(max(y)+min(y))/2 ;

b、计算二值化图像中绝缘子半径R=(max(x)-min(x))/2;b. Calculate the insulator radius R=(max(x)-min(x))/2 in the binarized image;

c、计算钢帽半径R1=R×d;c. Calculate the steel cap radius R 1 =R×d;

d、使用填充函数将钢帽区域填充为黑色,统计该图中黑色像素点个数,记作A;d. Use the fill function to fill the area of the steel cap with black, count the number of black pixels in the picture, and record it as A;

e、计算钢帽区域面积为S=πR1 2e. Calculate the area of the steel cap area as S=πR 1 2 ;

f、通过过滤函数删除图像中绝缘子RTV涂层脱落区域,使得整个绝缘子区域为黑色,统计该图中黑色像素点个数,记作B;f. Delete the peeling area of the insulator RTV coating in the image through the filter function, so that the entire insulator area is black, count the number of black pixels in the picture, and record it as B;

g、计算绝缘子RTV涂层脱落区域占比Ratio=(B-A)/(B-S)×100%。g. Calculate the proportion of insulator RTV coating shedding area Ratio=(B-A)/(B-S)×100%.

其中,绝缘子本体的圆心坐标为(x,y),绝缘子半径为R,钢帽直径占绝缘子盘径的百分比为d。Among them, the coordinates of the center of the insulator body are (x, y), the radius of the insulator is R, and the percentage of the diameter of the steel cap to the diameter of the insulator is d.

图2中,原图为彩色图像。In Figure 2, the original image is a color image.

原始图像经过上述预处理后,下一步需要将绝缘子区域从图像中分割出来。本专利使用Otsu阈值分割算法能够很好的将上述预处理后的绝缘子区域从图像中分割出来,它利用绝缘子与背景在灰度上的差异,通过设置阈值来把像素级分成若干类,判断图像中的每一个像素点的灰度值是否满足阈值的要求,从而确定图像中该像素点是否属于目标区域,即实现绝缘子与背景的分离。当绝缘子RTV涂层脱落时,脱落区域会露出绝缘子本体,绝缘子本体的颜色与RTV涂层的颜色相差较大,即二者在图像中的灰度差异较大,所以使用Otsu阈值分割算法同时可以区分出正常绝缘子区域和RTV涂层脱落区域。After the original image has undergone the above preprocessing, the next step is to segment the insulator region from the image. This patent uses the Otsu threshold segmentation algorithm to separate the preprocessed insulator area from the image. It uses the difference in gray level between the insulator and the background, and divides the pixel level into several categories by setting the threshold to judge the image. Whether the gray value of each pixel in the image meets the requirements of the threshold, so as to determine whether the pixel in the image belongs to the target area, that is, to realize the separation of the insulator from the background. When the RTV coating of an insulator falls off, the insulator body will be exposed in the off area, and the color of the insulator body is quite different from the color of the RTV coating. Distinguish between the normal insulator area and the RTV coating peeling area.

Otsu阈值分割算法步骤如下:The steps of the Otsu threshold segmentation algorithm are as follows:

设灰度图片大小为w*h,即图片的像素个数为w*h,设前景与背景的分割阈值为T,灰度值小于T的所有像素点为前景,大于T的所有像素点为背景。设前景像素个数占图像比例为ω0,其平均灰度为μ0,背景像素个数占图像比例为ω1,其平均灰度为μ1。图像的整体平均灰度为μ,类间方差为g,则有:Let the size of the grayscale image be w*h, that is, the number of pixels in the image is w*h, set the segmentation threshold of the foreground and the background to be T, all pixels whose gray value is less than T are the foreground, and all pixels greater than T are background. Suppose the proportion of foreground pixels in the image is ω0, and its average gray level is μ0; the proportion of background pixels in the image is ω1, and its average gray level is μ1. The overall average gray level of the image is μ, and the variance between classes is g, then:

ω0+ω1=1                                     (1)ω0+ω1=1               (1)

μ=ω0×μ0+ω1×μ1                              (2)μ=ω0×μ0+ω1×μ1 (2)

可得类间方差为:The available between-class variance is:

g=ω0×(μ0-μ)2+ω1×(μ1-μ)2                    (3)g=ω0×(μ0-μ) 2 +ω1×(μ1-μ) 2 (3)

联立上式得:Combine the above formulas to get:

g=ω0×ω1×(μ0-μ1)2                            (4)g=ω0×ω1×(μ0-μ1) 2 (4)

遍历图像灰度的值空间,计算每个阈值对应的类间方差,使类间方差g最大,即为最优阈值T。Traverse the value space of the image grayscale, calculate the variance between classes corresponding to each threshold, and make the variance g between classes the largest, which is the optimal threshold T.

选取阈值T对图像的梯度值进行二值化:Select the threshold T to binarize the gradient value of the image:

Figure BDA0002302371730000061
Figure BDA0002302371730000061

由式(5)可以得到图像f(x,y)分割后的图像g(x,y)。The image g(x,y) after the image f(x,y) is segmented can be obtained from formula (5).

由于绝缘子中间区域存在钢帽部件,该部件不具备绝缘性能,本专利的最终目的是计算的绝缘子RTV涂层脱落面积占比,该占比是指绝缘子正面或背面占绝缘子绝缘区域的比例,不包括绝缘子中间钢帽部件区域,这种计算方式能够有效的表征绝缘子RTV涂层缺陷的严重程度。Since there is a steel cap part in the middle area of the insulator, this part does not have insulation performance. The ultimate purpose of this patent is to calculate the proportion of the insulator RTV coating shedding area. This proportion refers to the proportion of the front or back of the insulator to the insulator insulation area. Including the area of the middle steel cap part of the insulator, this calculation method can effectively characterize the severity of the RTV coating defect of the insulator.

原始图像经过上述预处理方法以及Otsu阈值分割算法处理后得到二值图像,最终二值图像中正常绝缘子区域表示为黑色,RTV涂层脱落区域和背景为白色。The original image is processed by the above preprocessing method and the Otsu threshold segmentation algorithm to obtain a binary image. In the final binary image, the normal insulator area is represented as black, and the RTV coating shedding area and background are white.

本申请提供的一种绝缘子RTV涂层缺陷识别方法,对绝缘子图像进行分割,能够获得正常绝缘子和RTV涂层脱落区域。An insulator RTV coating defect recognition method provided in the present application can segment an insulator image to obtain normal insulators and RTV coating shedding areas.

本申请提供的一种绝缘子RTV涂层缺陷识别方法,通过采集含有绝缘子RTV涂层缺陷的图像,对图像进行处理识别,得到绝缘子RTV涂层缺陷及其占比面积,操作简单,而且不用去现场就可实现对绝缘子RTV涂层缺陷的识别,通过绝缘子RTV涂层缺陷占比面积表征绝缘子RTV涂层缺陷的严重程度。An insulator RTV coating defect recognition method provided by this application collects images containing insulator RTV coating defects, processes and recognizes the images, and obtains insulator RTV coating defects and their occupied areas. The operation is simple, and there is no need to go to the site The identification of insulator RTV coating defects can be realized, and the severity of insulator RTV coating defects can be represented by the proportion of insulator RTV coating defects.

尽管在上文中参考特定的实施例对本申请进行了描述,但是所属领域技术人员应当理解,在本申请公开的原理和范围内,可以针对本申请公开的配置和细节做出许多修改。本申请的保护范围由所附的权利要求来确定,并且权利要求意在涵盖权利要求中技术特征的等同物文字意义或范围所包含的全部修改。Although the present application has been described above with reference to specific embodiments, those skilled in the art should understand that many modifications can be made to the configurations and details disclosed in the present application within the principles and scope disclosed in the present application. The protection scope of the present application is determined by the appended claims, and the claims are intended to cover all modifications included in the equivalent literal meaning or scope of the technical features in the claims.

Claims (7)

1.一种绝缘子RTV涂层缺陷识别方法,其特征在于:所述方法包括如下步骤:1. an insulator RTV coating defect identification method, is characterized in that: described method comprises the steps: 1)获取含有绝缘子RTV涂层缺陷的图像;1) Obtain images containing insulator RTV coating defects; 2)对所述含有绝缘子RTV涂层缺陷的图像进行预处理;2) Preprocessing the image containing the insulator RTV coating defect; 3)将所述预处理后的绝缘子图像分割为二值化图像,分割出绝缘子区域和RTV涂层缺陷区域;所述二值图像中正常绝缘子区域表示为黑色,RTV涂层脱落区域和背景为白色,将钢帽区域填充为黑色,计算所述二值化图像的黑白像素点个数,计算绝缘子RTV涂层脱落面积占比;所述绝缘子RTV涂层脱落面积占比为绝缘子正面或背面占绝缘子绝缘区域的比例;所述计算包括如下步骤:3) Segment the preprocessed insulator image into a binary image, segment the insulator region and the RTV coating defect region; in the binary image, the normal insulator region is represented as black, and the RTV coating shedding region and background are White, fill the area of the steel cap with black, calculate the number of black and white pixels of the binary image, and calculate the ratio of the shedding area of the insulator RTV coating; the ratio of the shedding area of the insulator RTV coating is the ratio of the front or back of the insulator The ratio of the insulating area of the insulator; said calculation includes the following steps: a、计算二值化图像中绝缘子本体的圆心坐标(x,y),x=(max(x)+min(x))/2,y=(max(y)+min(y))/2;a. Calculate the center coordinates (x, y) of the insulator body in the binary image, x=(max(x)+min(x))/2, y=(max(y)+min(y))/2 ; b、计算二值化图像中绝缘子半径R=(max(x)-min(x))/2;b. Calculate the insulator radius R=(max(x)-min(x))/2 in the binarized image; c、计算钢帽半径R1=R×d;c. Calculate the steel cap radius R 1 =R×d; d、使用填充函数将钢帽区域填充为黑色,统计该图中黑色像素点个数,记作A;d. Use the fill function to fill the area of the steel cap with black, count the number of black pixels in the picture, and record it as A; e、计算钢帽区域面积为S=πR1 2e. Calculate the area of the steel cap area as S=πR 1 2 ; f、通过过滤函数删除图像中绝缘子RTV涂层脱落区域,使得整个绝缘子区域为黑色,统计该图中黑色像素点个数,记作B;f. Delete the peeling area of the insulator RTV coating in the image through the filter function, so that the entire insulator area is black, count the number of black pixels in the picture, and record it as B; g、计算绝缘子RTV涂层脱落区域占比Ratio=(B-A)/(B-S)×100%;g. Calculate the proportion of insulator RTV coating shedding area Ratio=(B-A)/(B-S)×100%; 其中,绝缘子本体的圆心坐标为(x,y),绝缘子半径为R,钢帽直径占绝缘子盘径的百分比为d。Among them, the coordinates of the center of the insulator body are (x, y), the radius of the insulator is R, and the percentage of the diameter of the steel cap to the diameter of the insulator is d. 2.如权利要求1所述的绝缘子RTV涂层缺陷识别方法,其特征在于:所述步骤1)中所述图像来自现场近距离的航拍的含有RTV涂层缺陷的绝缘子图像或者实验室拍摄的含有RTV涂层缺陷的绝缘子图像。2. The insulator RTV coating defect identification method as claimed in claim 1, characterized in that: the image in the step 1) is from an insulator image of an insulator image containing a RTV coating defect taken by a short-distance aerial photograph on site or taken in a laboratory Image of an insulator containing RTV coating defects. 3.如权利要求2所述的绝缘子RTV涂层缺陷识别方法,其特征在于:所述绝缘子图像种包括绝缘子型号信息。3. The method for identifying defects in an insulator RTV coating according to claim 2, wherein the insulator image includes insulator model information. 4.如权利要求1所述的绝缘子RTV涂层缺陷识别方法,其特征在于:所述步骤2)中所述预处理包括对图像灰度化和图像中值滤波,去除噪声,改善图像质量,提高所述绝缘子图像分割的准确性。4. the insulator RTV coating defect identification method as claimed in claim 1, is characterized in that: described step 2) described pretreatment comprises image gray scale and image median filter, removes noise, improves image quality, Improve the accuracy of the insulator image segmentation. 5.如权利要求4所述的绝缘子RTV涂层缺陷识别方法,其特征在于:所述图像灰度化的转换公式为:5. The insulator RTV coating defect identification method as claimed in claim 4, characterized in that: the conversion formula of the gray scale of the image is: Y=0.2989*R+0.5870*G+0.1140*BY=0.2989*R+0.5870*G+0.1140*B 其中,R代表红色分量,G代表绿色分量,B代表蓝色分量,Y为灰度图像的灰度值。Among them, R represents the red component, G represents the green component, B represents the blue component, and Y represents the gray value of the grayscale image. 6.如权利要求1所述的绝缘子RTV涂层缺陷识别方法,其特征在于:所述步骤3)中利用最大类间方差法将预处理过后的绝缘子图像进行分割为二值化图像,分割出绝缘子区域和RTV涂层缺陷区域。6. The insulator RTV coating defect recognition method as claimed in claim 1, characterized in that: in the step 3), the preprocessed insulator image is segmented into a binarized image by using the maximum inter-class variance method, and the segmented Insulator area and RTV coating defect area. 7.如权利要求6所述的绝缘子RTV涂层缺陷识别方法,其特征在于:所述最大类间方差法包括遍历图像灰度的值空间,计算每个阈值对应的类间方差,使类间方差最大,即为最优阈值T;选取阈值T对图像的梯度值进行二值化。7. the insulator RTV coating defect recognition method as claimed in claim 6, is characterized in that: described maximum class variance method comprises the value space of traversing image grayscale, calculates the class variance corresponding to each threshold value, makes class The maximum variance is the optimal threshold T; select the threshold T to binarize the gradient value of the image.
CN201911226484.0A 2019-12-04 2019-12-04 A Method for Identifying Defects in RTV Coating of Insulators Active CN111008967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911226484.0A CN111008967B (en) 2019-12-04 2019-12-04 A Method for Identifying Defects in RTV Coating of Insulators

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911226484.0A CN111008967B (en) 2019-12-04 2019-12-04 A Method for Identifying Defects in RTV Coating of Insulators

Publications (2)

Publication Number Publication Date
CN111008967A CN111008967A (en) 2020-04-14
CN111008967B true CN111008967B (en) 2023-05-12

Family

ID=70114005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911226484.0A Active CN111008967B (en) 2019-12-04 2019-12-04 A Method for Identifying Defects in RTV Coating of Insulators

Country Status (1)

Country Link
CN (1) CN111008967B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111638218A (en) * 2020-05-14 2020-09-08 哈尔滨工程大学 Method for detecting surface defects of coating
CN111739032B (en) * 2020-06-22 2023-08-01 北京市测绘设计研究院 A method and system for calculating green area based on urban streetscape
CN116679171B (en) * 2023-05-15 2023-11-10 江苏云峰科技股份有限公司 Insulation state judging system of insulation piece of wind power generation switch

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105300323A (en) * 2015-11-18 2016-02-03 江苏省电力公司连云港供电公司 Shedding area detection method of RTV coating of insulator and detection device
CN105740844A (en) * 2016-03-02 2016-07-06 成都翼比特自动化设备有限公司 Insulator cracking fault detection method based on image identification technology
CN107886096A (en) * 2016-09-29 2018-04-06 成都思晗科技股份有限公司 A kind of insulator of transmission line of electricity comes off defect inspection method
EP3404403B1 (en) * 2017-05-18 2019-03-27 Grob-Werke GmbH & Co. KG Method and device for testing the quality of coated surfaces

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MICROWAVE REFLECTION METHOD FOR COMPOSITE INSULATOR INTERNAL DEFECT DETECTION;Hongwei Mei et al.;《IEEE Explore》;全文 *
绝缘子涂层缺陷检测研究;刘雨;田立国;;天津职业技术师范大学学报(第02期);全文 *

Also Published As

Publication number Publication date
CN111008967A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
CN108734689B (en) A method for detecting scattered strands of conductors based on regional growth
CN111402247B (en) Machine vision-based method for detecting defects of suspension clamp on power transmission line
CN110264448B (en) A method of insulator fault detection based on machine vision
CN103442209B (en) Video monitoring method of electric transmission line
CN111008967B (en) A Method for Identifying Defects in RTV Coating of Insulators
CN103528534B (en) A kind of electric power line ice-covering thickness detection method based on image monitoring
CN115170576A (en) Aluminum pipe surface defect detection method based on machine vision
CN109584240B (en) Landslide trailing edge crack displacement image identification method
CN110726725A (en) Transmission line hardware corrosion detection method and device
CN111652857B (en) A kind of infrared detection method of insulator defect
CN108108772B (en) Insulator pollution flashover state detection method based on aerial image of distribution line
CN110276787B (en) Conductor galloping monitoring method based on marker image detection
CN108665468B (en) Device and method for extracting tangent tower insulator string
CN114511770B (en) Road sign recognition method
CN108734704A (en) Based on the normalized transmission line breakage detection technique of gray variance
CN108665464A (en) A kind of foreign matter detecting method based on morphologic high tension electric tower and high-tension bus-bar
CN114881869A (en) Inspection video image preprocessing method
CN111047561A (en) A method for identifying tortoise cracks in composite insulator sheds
CN115984255A (en) Defect identification method of online energy-taking movable intelligent vibration damper
CN119006445B (en) An automatic detection method for cable surface defects based on image processing
CN108596196A (en) A kind of filthy state evaluating method based on insulator characteristics of image dictionary
CN114842367A (en) Method for identifying and segmenting infrared insulator and steel cap in complex environment
CN112837313A (en) A method for image segmentation of foreign objects in transmission lines
CN110263778A (en) A kind of meter register method and device based on image recognition
CN108734709B (en) Insulator flange shape parameter identification and damage detection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant