[go: up one dir, main page]

CN111667473A - Insulator hydrophobicity grade judging method based on improved Canny algorithm - Google Patents

Insulator hydrophobicity grade judging method based on improved Canny algorithm Download PDF

Info

Publication number
CN111667473A
CN111667473A CN202010512577.6A CN202010512577A CN111667473A CN 111667473 A CN111667473 A CN 111667473A CN 202010512577 A CN202010512577 A CN 202010512577A CN 111667473 A CN111667473 A CN 111667473A
Authority
CN
China
Prior art keywords
image
insulator
hydrophobicity
canny algorithm
algorithm
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.)
Pending
Application number
CN202010512577.6A
Other languages
Chinese (zh)
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.)
State Grid Xinjiang Electric Power Co Ltd Urumqi Power Supply Co
Hunan University
State Grid Corp of China SGCC
Original Assignee
State Grid Xinjiang Electric Power Co Ltd Urumqi Power Supply Co
Hunan University
State Grid Corp of China SGCC
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 State Grid Xinjiang Electric Power Co Ltd Urumqi Power Supply Co, Hunan University, State Grid Corp of China SGCC filed Critical State Grid Xinjiang Electric Power Co Ltd Urumqi Power Supply Co
Priority to CN202010512577.6A priority Critical patent/CN111667473A/en
Publication of CN111667473A publication Critical patent/CN111667473A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • 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
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/155Segmentation; Edge detection involving morphological operators
    • 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
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了一种基于改进Canny算法的绝缘子憎水性等级判断方法,包括:采集若干幅经由模拟雨水喷淋后的绝缘子的原始图像;原始图像转换成灰度图;增强图像对比度并去噪;利用canny算法获取去噪后的图像边缘;将canny算法未能有效识别的边缘进行断点连接;对断点连接后的图像进行轮廓形态学填充;求得填充后图像的特征参数并对其归一化处理;将训练样本归一化处理后的特征参数送入神经网络模型中训练,得到绝缘子憎水性判断模型;将各检验样本归一化处理后的特征参数输入绝缘子憎水性判断模型,得到各检验样本的憎水性等级。本发明能够较为准确地识别绝缘子的憎水性等级,识别准确率高,可进行带电检测,大大降低了电力设备运检的成本且提高了安全性。

Figure 202010512577

The invention discloses a method for judging the hydrophobicity level of an insulator based on an improved Canny algorithm, comprising: collecting several original images of the insulator after simulating rain shower; converting the original image into a grayscale image; enhancing the image contrast and denoising; Use the canny algorithm to obtain the denoised image edges; connect the edges that cannot be effectively identified by the canny algorithm with breakpoints; perform contour morphological filling on the images after the breakpoints are connected; obtain the characteristic parameters of the filled images and normalize them. Normalization processing; send the normalized characteristic parameters of the training samples into the neural network model for training to obtain the insulator hydrophobicity judgment model; input the normalized characteristic parameters of each test sample into the insulator hydrophobicity judgment model to obtain The hydrophobicity grade of each test sample. The invention can more accurately identify the hydrophobicity level of the insulator, has high identification accuracy, can carry out live detection, greatly reduces the cost of electric equipment inspection and improves safety.

Figure 202010512577

Description

基于改进Canny算法的绝缘子憎水性等级判断方法Judgment method of insulator hydrophobicity grade based on improved Canny algorithm

技术领域technical field

本发明属于输变电设备运行状态检测领域,特别涉及一种基于改进Canny算法的绝缘子憎水性等级判断方法。The invention belongs to the field of running state detection of power transmission and transformation equipment, in particular to a method for judging the hydrophobicity level of an insulator based on an improved Canny algorithm.

背景技术Background technique

户外绝缘子表面憎水性等级将不可避免的发生变化,硅橡胶绝缘子表面所具憎水性特性会随着运行时间以及受电晕、闪络、污秽、温度、雨雪等综合因素影响而出现下降趋势或甚至完全丧失。硅橡胶绝缘子的憎水性以及憎水迁移特性的下降具体表现是耐污闪能力变低,从而对电力系统安全与稳定运行构成威胁。The hydrophobicity level of the surface of outdoor insulators will inevitably change, and the hydrophobicity of the surface of the silicone rubber insulators will decrease with the running time and the comprehensive factors such as corona, flashover, pollution, temperature, rain and snow, etc. even completely lost. The decline of the hydrophobicity and hydrophobic migration characteristics of silicone rubber insulators is manifested in the lower pollution flashover resistance, which poses a threat to the safety and stable operation of the power system.

截至目前为止,国内外专家学者针对绝缘子憎水性等级检测方法进行了大量研究和实验,尽管有些检测方法已在实际得到应用,但是大部分憎水性检测与评估方法仍处于不成熟阶段,更多是依靠人工或者繁琐的实验步骤对其憎水性进行检测,因此发明一种绝缘子憎水性等级判断方法是非常有实用工程价值的。Up to now, domestic and foreign experts and scholars have conducted a lot of research and experiments on the detection methods of insulator hydrophobicity. Although some detection methods have been applied in practice, most of the detection and evaluation methods of hydrophobicity are still in the immature stage. Relying on manual or cumbersome experimental steps to test its hydrophobicity, it is of great practical engineering value to invent a method for judging the hydrophobicity level of insulators.

国内外的专家对绝缘子的检测方法进行了大量的研究。在现有的绝缘子检测方法中有利用改进的形状因子法来检测。该方法首先提取憎水性图像的二值图像,然后提取图像中的最大水珠(水迹),计算其占总图像的面积比值以及其形状特征,再经过大量的数学统计,对这些数据进行分析,找出这两个特征值与等级分类之间的数学关系,从而对带预测图像进行等级分类。也有利用k一近邻法来进行分类。该方法首先利用图像处理技术对图像进行处理,从而得到,图像中全部水珠(水迹)的边缘,并计算有关水珠的所有特征值,通过k一近邻法对其进行分类。还有用SVM决策树的方法来进行检测。首先要对待检测的图像增强,再对其利用一定的算法进行分割,并提取其特征值,最后利用SVM决策树来对待检测的图像进行分类识别。Experts at home and abroad have done a lot of research on the detection methods of insulators. Among the existing insulator inspection methods, an improved form factor method is used for inspection. The method first extracts the binary image of the hydrophobic image, then extracts the largest water droplet (water trace) in the image, calculates its area ratio to the total image and its shape characteristics, and then analyzes these data through a large number of mathematical statistics , find the mathematical relationship between these two eigenvalues and the rank classification, so as to classify the image with the prediction. There is also the use of k-nearest neighbor method for classification. The method first uses image processing technology to process the image to obtain the edges of all water droplets (water traces) in the image, calculates all the eigenvalues of the water droplets, and classifies them by the k-nearest neighbor method. There is also an SVM decision tree method for detection. First, the image to be detected should be enhanced, and then it is segmented by a certain algorithm, and its feature values are extracted, and finally the SVM decision tree is used to classify and identify the image to be detected.

研究结果统计表明,这些算法虽然有一些优点,例如提高了复合绝缘子憎水性的准确率,降低了人工分类所产生的误差,但依旧存在着一些缺陷。例如形状因子法,提取特征值与分类之间的关系。而实际工程应用当中,憎水性等级与所提取的特征值在一些等级中是非线性的关系。所以该方法并不能判断所有的憎水性等级。SVM决策树的方法与数据量有很大的关系,不适合对大数据进行分类。The statistics of the research results show that although these algorithms have some advantages, such as improving the accuracy of the hydrophobicity of composite insulators and reducing the errors caused by manual classification, there are still some defects. For example, the shape factor method extracts the relationship between the feature value and the classification. In practical engineering applications, there is a nonlinear relationship between the hydrophobicity level and the extracted eigenvalues in some levels. Therefore, this method cannot judge all hydrophobicity grades. The method of SVM decision tree has a great relationship with the amount of data and is not suitable for classifying big data.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于,针对上述现有技术的不足,提供一种基于改进Canny算法的绝缘子憎水性等级判断方法,能够较为准确地识别绝缘子的憎水性等级,提高憎水性识别的准确率,可进行带电检测,大大降低了电力设备运检的成本且提高了安全性。The purpose of the present invention is to provide a method for judging the hydrophobicity level of insulators based on the improved Canny algorithm, aiming at the above-mentioned deficiencies of the prior art. Live detection greatly reduces the cost of electrical equipment inspection and improves safety.

为解决上述技术问题,本发明所采用的技术方案是:For solving the above-mentioned technical problems, the technical scheme adopted in the present invention is:

一种基于改进Canny算法的绝缘子憎水性等级判断方法,其特点是包括以下步骤:A method for judging the hydrophobicity level of insulators based on the improved Canny algorithm, which is characterized by including the following steps:

步骤1,采集若干幅经由模拟雨水喷淋后的各个憎水等级的绝缘子的原始图像,其中,M幅图像作为训练样本,N幅图像作为检验样本;Step 1, collecting several original images of insulators of various hydrophobic grades after simulating rain shower, wherein M images are used as training samples, and N images are used as test samples;

步骤2,对训练样本和检验样本的原始图像转换成灰度图;Step 2: Convert the original images of the training samples and test samples into grayscale images;

步骤3,增强灰度图的图像对比度并对其进行去噪处理;Step 3, enhancing the image contrast of the grayscale image and denoising it;

步骤4,利用canny算法获取去噪后的图像边缘,得到只保留边缘信息的二值图像;Step 4, use the canny algorithm to obtain the edge of the denoised image, and obtain a binary image that only retains edge information;

步骤5,通过边缘连接算法将canny算法未能有效识别的边缘进行断点连接;Step 5: Connect the edges that cannot be effectively identified by the canny algorithm to breakpoints through the edge connection algorithm;

步骤6,对断点连接后的图像进行轮廓形态学填充,得到水迹外部轮廓和绝缘子表面的二值图像;Step 6, perform contour morphological filling on the image after the breakpoint connection, to obtain a binary image of the outer contour of the water trace and the surface of the insulator;

步骤7,求得填充后图像的特征参数,所述特征参数包括最大水迹的面积、最大水迹在图形面积中的占比、形状因子;对特征参数归一化处理;Step 7, obtain the characteristic parameters of the image after filling, the characteristic parameters include the area of the largest water trace, the proportion of the largest water trace in the graphic area, and the shape factor; the characteristic parameters are normalized;

步骤8,将训练样本归一化处理后的特征参数送入神经网络模型中训练,得到绝缘子憎水性判断模型;Step 8, sending the normalized characteristic parameters of the training samples into the neural network model for training to obtain the insulator hydrophobicity judgment model;

步骤9,将各检验样本归一化处理后的特征参数输入所述绝缘子憎水性判断模型,得到各检验样本对应的憎水性等级。Step 9: Input the normalized characteristic parameters of each test sample into the insulator hydrophobicity judgment model to obtain the hydrophobicity level corresponding to each test sample.

作为一种优选方式,所述步骤3中,使用多尺度retinex算法增强灰度图的图像对比度。As a preferred manner, in the step 3, a multi-scale retinex algorithm is used to enhance the image contrast of the grayscale image.

作为一种优选方式,所述步骤3中包括:As a preferred way, the step 3 includes:

计算单一尺度下的增强图像;Calculate the enhanced image at a single scale;

将多尺度下的每个增强图像进行加权求和;Weighted summation of each enhanced image at multiple scales;

以加权求和后的增强图像为引导图像进行滤波去噪。The enhanced image after weighted summation is used as the guide image for filtering and denoising.

作为一种优选方式,所述步骤5中,所述边缘连接算法包括:As a preferred way, in the step 5, the edge connection algorithm includes:

以所有断裂边缘的端点起点开始向周围8邻域连接;Connect to the surrounding 8 neighborhoods starting from the endpoints of all broken edges;

根据端点所在的位置以及梯度幅值矩阵的大小来确定需要连接的像素点,直到连接到另一个边缘或者边界。According to the location of the endpoint and the size of the gradient magnitude matrix, the pixels that need to be connected are determined until they are connected to another edge or boundary.

作为一种优选方式,canny算法中,运用最大类间方差法求得阈值。As a preferred way, in the canny algorithm, the maximum inter-class variance method is used to obtain the threshold.

与现有技术相比,本发明能够较为准确地识别绝缘子的憎水性等级,提高憎水性识别的准确率,可进行带电检测,大大降低了电力设备运检的成本且提高了安全性。Compared with the prior art, the present invention can more accurately identify the hydrophobicity level of the insulator, improve the accuracy of hydrophobicity identification, and can perform live detection, greatly reducing the cost of electrical equipment inspection and improving safety.

附图说明Description of drawings

图1为本发明方法流程图。Fig. 1 is the flow chart of the method of the present invention.

图2为对原始彩色图像进行灰度化处理后得到的图像。Figure 2 is an image obtained after grayscale processing of the original color image.

图3为采用retinex算法与引导滤波后得到的图像。Figure 3 is an image obtained by using the retinex algorithm and guided filtering.

图4为运用传统canny算法或改进canny算法后得到的图像。Figure 4 is an image obtained by using the traditional canny algorithm or the improved canny algorithm.

图5为改进canny算法边缘连接算法流程图。Figure 5 is a flowchart of the improved canny algorithm edge connection algorithm.

图6为轮廓填充后的图像。Figure 6 is the image after contour filling.

图7为神经网络模型训练过程图。Figure 7 is a diagram of the training process of the neural network model.

图8为憎水性等级判定结果一示例。FIG. 8 is an example of the result of determination of the water repellency level.

具体实施方式Detailed ways

本发明的工作原理:水在憎水性等级不同的复合绝缘子表面会呈现不同的形态,例如在憎水性等级为HC1的复合绝缘子表面,水珠的痕迹轮廓非常清晰,以较小的圆形、椭圆形形态附着在绝缘子表面。而在憎水性等级为HC7的复合绝缘子表面,几乎无法形成圆形水珠,以大面积水膜形态附着在绝缘子表面,同时由于环境因素影响,表面存在多种污垢。根据这一特征可以判定憎水性等级。The working principle of the present invention: water will show different shapes on the surface of composite insulators with different hydrophobicity levels. The shape is attached to the surface of the insulator. On the surface of the composite insulator with a hydrophobicity level of HC7, it is almost impossible to form circular water droplets, which adhere to the surface of the insulator in the form of a large-area water film. At the same time, due to environmental factors, there are many kinds of dirt on the surface. According to this feature, the hydrophobicity grade can be judged.

如图1所示,基于改进Canny算法的绝缘子憎水性等级判断方法包括以下步骤:As shown in Figure 1, the method for judging the hydrophobicity level of insulators based on the improved Canny algorithm includes the following steps:

步骤1,通过高压电塔上的电子摄像头采集若干幅经由模拟雨水喷淋后的各个憎水等级的绝缘子的原始图像(彩色),其中,M幅图像作为训练样本,N幅图像作为检验样本;将原始图像传回计算机,以便对原始图像进行后续处理。Step 1: Collect several original images (color) of insulators of various hydrophobic grades after simulated rain spraying through the electronic camera on the high-voltage tower, wherein M images are used as training samples, and N images are used as test samples. ; transfer the original image back to the computer for subsequent processing of the original image.

步骤2,对训练样本和检验样本的原始图像预处理转换成灰度图;得到如图2所示的图像。In step 2, the original images of the training samples and the test samples are preprocessed and converted into grayscale images; an image as shown in FIG. 2 is obtained.

步骤3,使用多尺度retinex算法增强灰度图的图像对比度(即增强图像边缘与背景的对比度)并运用引导滤波算法对其进行去噪处理;得到如图3所示的图像。Step 3, use the multi-scale retinex algorithm to enhance the image contrast of the grayscale image (that is, enhance the contrast between the edge and the background of the image) and use the guided filtering algorithm to denoise it; an image as shown in Figure 3 is obtained.

所述步骤3具体包括:The step 3 specifically includes:

计算单一尺度下的增强图像;Calculate the enhanced image at a single scale;

将多尺度下的每个增强图像进行加权求和;Weighted summation of each enhanced image at multiple scales;

以加权求和后的增强图像为引导图像进行滤波去噪。The enhanced image after weighted summation is used as the guide image for filtering and denoising.

步骤3主要原理如下:The main principle of step 3 is as follows:

retinex算法将图像可以看做是入射图像和反射图像的叠加,入射光照射在反射物体上,通过反射物体的反射,形成反射光进入人眼。最后形成的图像可以如下公式表示:The retinex algorithm can regard the image as the superposition of the incident image and the reflected image. The incident light shines on the reflective object, and the reflected light enters the human eye through the reflection of the reflective object. The resulting image can be represented by the following formula:

Figure BDA0002528938030000041
Figure BDA0002528938030000041

其中,R(x,y)表示了物体的反射性质,即图像内在属性,我们应该最大程度的保留;而L(x,y)表示入射光图像,决定了图像像素能达到的动态范围,我们应该尽量去除。Among them, R(x,y) represents the reflection property of the object, that is, the intrinsic property of the image, which we should preserve to the greatest extent; and L(x,y) represents the incident light image, which determines the dynamic range that the image pixels can achieve. We should be removed as much as possible.

一般,我们把照射图像假设估计为空间平滑图像,原始图像为S(x,y),反射图像为R(x,y),亮度图像为L(x,y),可以得出公式(1),以及公式(2):Generally, we assume that the illumination image is estimated to be a spatially smooth image, the original image is S(x,y), the reflection image is R(x,y), and the luminance image is L(x,y), we can obtain formula (1) , and formula (2):

Figure BDA0002528938030000042
Figure BDA0002528938030000042

其中,r(x,y)是输出图像。F(x,y)是中心环绕函数,表示为:where r(x,y) is the output image. F(x,y) is the center wrap function, expressed as:

Figure BDA0002528938030000043
Figure BDA0002528938030000043

式(3)中,c为高斯环绕尺度,λ是一个尺度,它的取值必须满足下式:In formula (3), c is the Gaussian surround scale, λ is a scale, and its value must satisfy the following formula:

∫∫F(x,y)dxdy=1 (4)∫∫F(x,y)dxdy=1 (4)

上述为单一尺度下的retinex算法,本发明采用的多尺度retinex算法需要在各个单一尺度下的r(x,y)进行加权求和。公式如式(5):The above is the retinex algorithm in a single scale, and the multi-scale retinex algorithm adopted in the present invention needs to perform weighted summation of r(x, y) in each single scale. The formula is as formula (5):

Figure BDA0002528938030000044
Figure BDA0002528938030000044

在对图像进行引导滤波时,图像中某一像素点的输出如下:When conducting guided filtering on an image, the output of a pixel in the image is as follows:

Figure BDA0002528938030000045
Figure BDA0002528938030000045

其中,q为输出图像,I为引导图像,α和b是当窗口中心位于时该线性函数的不变系数。该方法的假定条件是:q与I在以像素k为中心的窗口中存在局部线性关系。为了求解(6)中的系数a和b,假设p是q滤波前的结果,并满足使得q与p的差别最小,根据无约束图像复原的方法可以转化为求最优化问题,其价值函数为(7)。where q is the output image, I is the guide image, and α and b are the invariant coefficients of this linear function when the center of the window is located. The assumption of this method is that there is a local linear relationship between q and I in the window centered on pixel k. In order to solve the coefficients a and b in (6), it is assumed that p is the result before q filtering, and the difference between q and p is minimized. According to the method of unconstrained image restoration, it can be transformed into an optimization problem, and its value function is (7).

Figure BDA0002528938030000051
Figure BDA0002528938030000051

通过最小二乘法得到其解为:The solution obtained by the least squares method is:

Figure BDA0002528938030000052
Figure BDA0002528938030000052

其中,μk是I在窗口ωk中的平均值,

Figure BDA0002528938030000053
是I在窗口ωk中的方差,|ω|是窗口ωk中像素的数量,
Figure BDA0002528938030000054
是待滤波图像p在窗口ωk中的均值。where μ k is the average value of I in the window ω k ,
Figure BDA0002528938030000053
is the variance of I in window ω k , |ω| is the number of pixels in window ω k ,
Figure BDA0002528938030000054
is the mean of the image p to be filtered in the window ω k .

最终每个像素点会被多个窗口包含,所以求得加权平均可得(9):In the end, each pixel will be contained by multiple windows, so the weighted average can be obtained (9):

Figure BDA0002528938030000055
Figure BDA0002528938030000055

步骤4,利用改进canny算法获取去噪后的图像边缘,得到只保留边缘信息的二值图像。Step 4, using the improved canny algorithm to obtain the edge of the image after denoising, to obtain a binary image that only retains edge information.

传统canny算法自动化程度不高,需要手动指定阈值;而本发明使用的改进canny算法中,运用最大类间方差法求得阈值,其公式为:The degree of automation of the traditional canny algorithm is not high, and the threshold value needs to be manually specified; and in the improved canny algorithm used in the present invention, the maximum inter-class variance method is used to obtain the threshold value, and its formula is:

Figure BDA0002528938030000056
Figure BDA0002528938030000056

步骤5,传统的canny算法在完成之后捕获的边缘常常都是断裂的,这对接下来的轮廓填充有很大困难。本发明通过边缘连接算法将canny算法未能有效识别的边缘进行断点连接;断点连接后,得到完整的边缘。如图4右图所示。In step 5, the edges captured by the traditional canny algorithm are often broken after completion, which is very difficult for the next contour filling. The invention uses the edge connection algorithm to connect the edges that cannot be effectively identified by the canny algorithm to breakpoints; after the breakpoints are connected, a complete edge is obtained. As shown in the right figure of Figure 4.

通过图4左右两张图进行对比可以发现,原始的canny算法(左边为原始canny算法)捕获到的边缘会出现边缘断裂的情况,如图4左图中小灰圈所标记的地方。这就丧失了部分边缘的信息,对之后的憎水性等级识别有很大的影响。而右边的为改进的canny算法。可以发现左图中断裂的边缘都可以在改进的canny算法中捕捉,边缘的信息几乎没有丢失,这对之后的憎水性等级识别有很大的帮助。By comparing the left and right images in Figure 4, it can be found that the edges captured by the original canny algorithm (the original canny algorithm on the left) will have edge fractures, as marked by the small gray circles in the left image of Figure 4. This loses part of the edge information, which has a great impact on the subsequent identification of hydrophobicity grades. The one on the right is the improved canny algorithm. It can be found that the broken edges in the left picture can be captured in the improved canny algorithm, and the information of the edges is almost not lost, which is very helpful for the subsequent identification of the hydrophobicity level.

如图5所示,所述步骤5中,所述边缘连接算法包括:As shown in Figure 5, in step 5, the edge connection algorithm includes:

从每一条断裂的边缘开始,从端点出发根据端点方向以及梯度幅值大小确定边缘的连接方向,每连接一步就判断是否与另一边缘相连。直到每一条断裂的边缘连接结束。Starting from each broken edge, starting from the end point, the connection direction of the edge is determined according to the direction of the end point and the magnitude of the gradient, and at each connection step, it is judged whether it is connected to another edge. until the end of each broken edge connection.

步骤6,对断点连接后的图像进行轮廓形态学填充,得到水迹外部轮廓和绝缘子表面的二值图像;其中轮廓填充后的图像如图6所示。Step 6: Perform contour morphological filling on the image after the breakpoints are connected to obtain a binary image of the outer contour of the water trace and the surface of the insulator; the image after contour filling is shown in Figure 6.

步骤7,利用形态学算法求得填充后图像的特征参数,所述特征参数包括最大水迹的面积、最大水迹在图形面积中的占比、形状因子;为了避免数值问题与差异性的出现,对特征参数归一化处理。Step 7, use morphological algorithm to obtain the characteristic parameters of the filled image, the characteristic parameters include the area of the largest water trace, the proportion of the largest water trace in the area of the figure, and the shape factor; in order to avoid numerical problems and the appearance of differences , normalize the feature parameters.

步骤8,将训练样本归一化处理后的特征参数送入神经网络模型中训练,训练过程如图7所示,得到绝缘子憎水性判断模型。In step 8, the normalized characteristic parameters of the training samples are sent to the neural network model for training. The training process is shown in Figure 7, and the insulator hydrophobicity judgment model is obtained.

神经网络模型包括池化层、深度可分离卷积层、全连接层、Pooling层。The neural network model includes a pooling layer, a depthwise separable convolutional layer, a fully connected layer, and a pooling layer.

步骤9,将各检验样本归一化处理后的三个特征参数输入所述绝缘子憎水性判断模型,得到各检验样本对应的憎水性等级。憎水性等级判定结果一示例如图8所示。Step 9: Input the three characteristic parameters after normalized processing of each test sample into the insulator hydrophobicity judgment model to obtain the hydrophobicity level corresponding to each test sample. An example of the water repellency level judgment result is shown in Figure 8.

本实施例中,取1132张各个等级的绝缘子图像作为研究对象。其中755张作为训练集,377张作为验证集。获得所有的训练集图片的最大面积,最大面积比,形状因子。将数据拟合为一个1132*3的矩阵送入神经网络模型中训练。提取所有验证级的最大面积,最大面积比,形状因子输入训练好的模型中,得到验证精度为97.8%的模型。In this example, 1132 insulator images of various levels are taken as the research object. Among them, 755 are used as training set and 377 are used as validation set. Obtain the maximum area, maximum area ratio, and shape factor of all training set images. Fit the data into a 1132*3 matrix and send it to the neural network model for training. Extract the maximum area, maximum area ratio, and shape factor of all validation stages and input them into the trained model to obtain a model with a validation accuracy of 97.8%.

本发明为基于改进canny算法的绝缘子憎水性等级判断方法,与其他检测技术最大的不同是改进后的canny算法能够捕获到水迹较为完整的边缘信息。其次就是训练的模型精度较高。输变电工作人员只需捕获到高压电塔上的绝缘子图片输入电脑就可以得到相应的憎水性等级,方便快捷具有实际工程应用价值。The present invention is a method for judging the hydrophobicity level of an insulator based on the improved canny algorithm. The biggest difference from other detection technologies is that the improved canny algorithm can capture relatively complete edge information of water traces. The second is the high accuracy of the trained model. The power transmission and transformation staff only need to capture the insulator picture on the high-voltage tower and input it into the computer to obtain the corresponding hydrophobicity level, which is convenient and quick and has practical engineering application value.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是局限性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护范围之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than limiting. Under the inspiration of the present invention, without departing from the scope of protection of the spirit of the present invention and the claims, many forms can be made, which all fall within the protection scope of the present invention.

Claims (5)

1. An insulator hydrophobicity grade judging method based on an improved Canny algorithm is characterized by comprising the following steps:
step 1, collecting a plurality of original images of insulators with various hydrophobic grades sprayed by simulated rainwater, wherein M images are used as training samples, and N images are used as inspection samples;
step 2, converting original images of the training sample and the test sample into gray level images;
step 3, enhancing the image contrast of the gray level image and carrying out denoising treatment on the image contrast;
step 4, obtaining the edges of the image after denoising by using a canny algorithm to obtain a binary image only retaining edge information;
step 5, performing breakpoint connection on the edges which cannot be effectively identified by the canny algorithm through an edge connection algorithm;
step 6, carrying out contour morphological filling on the image after the breakpoint connection to obtain a water mark external contour and a binary image of the surface of the insulator;
step 7, solving the characteristic parameters of the filled image, wherein the characteristic parameters comprise the area of the maximum water mark, the proportion of the maximum water mark in the area of the image and a shape factor; normalizing the characteristic parameters;
step 8, sending the characteristic parameters after the training sample normalization processing into a neural network model for training to obtain an insulator hydrophobicity judgment model;
and 9, inputting the characteristic parameters after normalization processing of each test sample into the insulator hydrophobicity judgment model to obtain the hydrophobicity grade corresponding to each test sample.
2. The method for judging the hydrophobicity grade of the insulator based on the modified Canny algorithm in claim 1, wherein in the step 3, a multi-scale retinex algorithm is used for enhancing the image contrast of the gray scale image.
3. The insulator hydrophobicity grade judging method based on the modified Canny algorithm in claim 2, wherein the step 3 comprises the following steps:
calculating an enhanced image under a single scale;
performing weighted summation on each enhanced image under multiple scales;
and performing filtering and denoising by taking the weighted and summed enhanced image as a guide image.
4. The insulator hydrophobicity rating method according to claim 1, wherein in the step 5, the edge connection algorithm comprises:
starting to connect to 8 surrounding neighborhood by starting from the end points of all the fracture edges;
and determining the pixel points needing to be connected according to the positions of the end points and the size of the gradient amplitude matrix until the pixel points are connected to another edge or boundary.
5. The method for determining the hydrophobicity grade of an insulator based on the modified Canny algorithm in claim 1, wherein in the Canny algorithm, the threshold is obtained by using a variance method between maximum classes.
CN202010512577.6A 2020-06-08 2020-06-08 Insulator hydrophobicity grade judging method based on improved Canny algorithm Pending CN111667473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010512577.6A CN111667473A (en) 2020-06-08 2020-06-08 Insulator hydrophobicity grade judging method based on improved Canny algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010512577.6A CN111667473A (en) 2020-06-08 2020-06-08 Insulator hydrophobicity grade judging method based on improved Canny algorithm

Publications (1)

Publication Number Publication Date
CN111667473A true CN111667473A (en) 2020-09-15

Family

ID=72385849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010512577.6A Pending CN111667473A (en) 2020-06-08 2020-06-08 Insulator hydrophobicity grade judging method based on improved Canny algorithm

Country Status (1)

Country Link
CN (1) CN111667473A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112098409A (en) * 2020-09-17 2020-12-18 国网河南省电力公司濮阳供电公司 Hydrophobicity live-line testing method for composite insulator of power transmission line
CN113537385A (en) * 2021-08-01 2021-10-22 程文云 TX2 equipment-based hydrophobicity classification method for electric power composite insulator
CN115601597A (en) * 2022-10-24 2023-01-13 山东莱易信息产业股份公司(Cn) Method for identifying hydrophobicity grade of composite insulator
CN115977496A (en) * 2023-02-24 2023-04-18 重庆长安汽车股份有限公司 Vehicle door control method, system, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440495A (en) * 2013-07-31 2013-12-11 华北电力大学(保定) Method for automatically identifying hydrophobic grades of composite insulators
CN106407928A (en) * 2016-09-13 2017-02-15 武汉大学 Transformer composite insulator bushing monitoring method and transformer composite insulator bushing monitoring system based on raindrop identification
CN109190473A (en) * 2018-07-29 2019-01-11 国网上海市电力公司 The application of a kind of " machine vision understanding " in remote monitoriong of electric power
CN111080538A (en) * 2019-11-29 2020-04-28 中国电子科技集团公司第五十二研究所 Infrared fusion edge enhancement method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440495A (en) * 2013-07-31 2013-12-11 华北电力大学(保定) Method for automatically identifying hydrophobic grades of composite insulators
CN106407928A (en) * 2016-09-13 2017-02-15 武汉大学 Transformer composite insulator bushing monitoring method and transformer composite insulator bushing monitoring system based on raindrop identification
CN109190473A (en) * 2018-07-29 2019-01-11 国网上海市电力公司 The application of a kind of " machine vision understanding " in remote monitoriong of electric power
CN111080538A (en) * 2019-11-29 2020-04-28 中国电子科技集团公司第五十二研究所 Infrared fusion edge enhancement method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112098409A (en) * 2020-09-17 2020-12-18 国网河南省电力公司濮阳供电公司 Hydrophobicity live-line testing method for composite insulator of power transmission line
CN112098409B (en) * 2020-09-17 2023-04-07 国网河南省电力公司濮阳供电公司 Hydrophobicity live-line testing method for composite insulator of power transmission line
CN113537385A (en) * 2021-08-01 2021-10-22 程文云 TX2 equipment-based hydrophobicity classification method for electric power composite insulator
CN113537385B (en) * 2021-08-01 2023-12-05 国网冀北电力有限公司超高压分公司 Electric composite insulator hydrophobicity classification method based on TX2 equipment
CN115601597A (en) * 2022-10-24 2023-01-13 山东莱易信息产业股份公司(Cn) Method for identifying hydrophobicity grade of composite insulator
CN115977496A (en) * 2023-02-24 2023-04-18 重庆长安汽车股份有限公司 Vehicle door control method, system, equipment and medium

Similar Documents

Publication Publication Date Title
CN111667473A (en) Insulator hydrophobicity grade judging method based on improved Canny algorithm
CN110264448B (en) A method of insulator fault detection based on machine vision
CN103440495B (en) A kind of composite insulator hydrophobic grade automatic identifying method
CN106407928B (en) Transformer composite insulator casing monitoring method and system based on raindrop identification
CN109919960B (en) Image continuous edge detection method based on multi-scale Gabor filter
CN111814686A (en) A vision-based transmission line identification and foreign object intrusion online detection method
CN107944396A (en) A kind of disconnecting link state identification method based on improvement deep learning
CN107389701A (en) A kind of PCB visual defects automatic checkout system and method based on image
CN105447530A (en) Power transmission line hidden risk and fault detection method based on image identification technology
WO2023082418A1 (en) Power utility tunnel settlement crack identification method based on artificial intelligence technology
CN110726725A (en) Transmission line hardware corrosion detection method and device
CN104483326A (en) High-voltage wire insulator defect detection method and high-voltage wire insulator defect detection system based on deep belief network
CN110659649A (en) Image processing and character recognition algorithm based on near infrared light imaging
CN106097368A (en) A kind of recognition methods in veneer crack
CN106530281A (en) Edge feature-based unmanned aerial vehicle image blur judgment method and system
CN111242868B (en) Image enhancement method based on convolutional neural network in scotopic vision environment
CN110276747B (en) A method for fault detection and fault rating of insulators based on image analysis
CN107833211A (en) Zero resistance insulator automatic testing method and device based on infrared image
CN108537170A (en) A kind of power equipment firmware unmanned plane inspection pin missing detection method
Huang et al. Study on hydrophobicity detection of composite insulators of transmission lines by image analysis
Vishwakarma et al. Simple and intelligent system to recognize the expression of speech-disabled person
Wang et al. Hand vein recognition based on multi-scale LBP and wavelet
CN116805302A (en) A cable surface defect detection device and method
CN112561899A (en) Electric power inspection image identification method
CN111950409A (en) A method and system for intelligent identification of road marking lines

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200915