CN103871053A - Vision conspicuousness-based cloth flaw detection method - Google Patents
Vision conspicuousness-based cloth flaw detection method Download PDFInfo
- Publication number
- CN103871053A CN103871053A CN201410063927.XA CN201410063927A CN103871053A CN 103871053 A CN103871053 A CN 103871053A CN 201410063927 A CN201410063927 A CN 201410063927A CN 103871053 A CN103871053 A CN 103871053A
- Authority
- CN
- China
- Prior art keywords
- saliency map
- cloth
- map
- saliency
- image
- 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.)
- Granted
Links
- 239000004744 fabric Substances 0.000 title claims abstract description 49
- 238000001514 detection method Methods 0.000 title claims abstract description 32
- 230000007547 defect Effects 0.000 claims abstract description 46
- 238000000034 method Methods 0.000 claims abstract description 25
- 230000000007 visual effect Effects 0.000 claims abstract description 20
- 230000003044 adaptive effect Effects 0.000 claims abstract description 4
- 230000011218 segmentation Effects 0.000 claims abstract description 4
- 238000001914 filtration Methods 0.000 claims description 28
- 238000010606 normalization Methods 0.000 claims description 9
- 230000003313 weakening effect Effects 0.000 claims description 3
- 241001270131 Agaricus moelleri Species 0.000 claims 4
- 238000004364 calculation method Methods 0.000 abstract description 3
- 230000002950 deficient Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 230000007423 decrease Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 238000010183 spectrum analysis Methods 0.000 description 2
- 239000004753 textile Substances 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 241000282412 Homo Species 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 238000003908 quality control method Methods 0.000 description 1
- 238000012372 quality testing Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Treatment Of Fiber Materials (AREA)
Abstract
本发明公开了一种基于视觉显著性的布匹瑕疵检测方法,包括如下步骤:(1)采集图;(2)亮度特征处理;(3)方向特征处理;(4)多通道叠加归一处理;(5)灰度图处理;(6)二值化处理;(7)瑕疵区域判断,与传统布匹瑕疵检测方法相比,本发明降低了运算的复杂度,提高了识别率,并能准确定位,同时避免了所检测的布匹完好图的显著图灰度值比瑕疵图中完好部分灰度值更高的情况下容易导致的误检,有效地降低了背景在检测过程中的干扰,且减少了将完好布匹的图像经过自适应阈值分割得到的目标区域误判为瑕疵区域的情况的发生。
The invention discloses a cloth defect detection method based on visual salience, which comprises the following steps: (1) collecting images; (2) processing brightness features; (3) processing direction features; (4) multi-channel superposition and normalizing processing; (5) Grayscale image processing; (6) Binarization processing; (7) Defect area judgment. Compared with the traditional cloth defect detection method, the present invention reduces the complexity of calculation, improves the recognition rate, and can accurately locate , and at the same time, it avoids false detections easily caused by the case where the gray value of the salient image of the detected cloth intact image is higher than the gray value of the intact part of the defect image, effectively reducing the interference of the background during the detection process, and reducing It prevents the misjudgment of the target area obtained by the adaptive threshold segmentation of the image of the intact cloth as the defective area.
Description
技术领域 technical field
本发明涉及一种布匹瑕疵检测方法,具体涉及一种基于视觉显著性的布匹瑕疵检测方法。 The invention relates to a cloth defect detection method, in particular to a cloth defect detection method based on visual salience.
背景技术 Background technique
在现代纺织生产中,质量的控制与检测非常重要,布匹的瑕疵检测是其中尤为关键的组成部分,目前,国内纺织企业的检测方式多以人工为主,人眼检测速度有限,检测结果易受主观因素影响,易发生误检、漏检等。以先进的自动检测技术代替人工布匹瑕疵检测,是提高检测效率、减少劳动力、降低人工劳动强度和保证布匹质量的重要措施。国内外学者在自动检测方法的研究上取得了很多卓越的成绩。 In modern textile production, quality control and testing are very important, and cloth defect detection is a particularly critical component. At present, domestic textile enterprises mainly use manual testing methods, and the detection speed of human eyes is limited, and the detection results are easily affected. Influenced by subjective factors, false detection and missed detection are prone to occur. Replacing manual cloth defect detection with advanced automatic detection technology is an important measure to improve detection efficiency, reduce labor, reduce labor intensity and ensure cloth quality. Scholars at home and abroad have made many outstanding achievements in the research of automatic detection methods.
布匹瑕疵检测算法主要是根据检测到的布匹的纹理形状进行瑕疵判断,大致有3类:统计法、谱分析法和基于模型法。其中最常见的是的运用傅里叶变换、小波变换和Gabor分析的频谱分析法。傅里叶变换是对图进行全局变换,因而不能准确定位瑕疵;Gabor分析的变换检测性能较好,然而需要对多通道方向进行二维滤波以及融合,大大增加计算复杂度;小波变换有良好的局部时频分析、计算速度快等优点,但是方向选择性差,使其不能很好描述二维图特性,导致检测效果不理想。 The cloth defect detection algorithm mainly judges the defect according to the detected cloth texture and shape, and there are roughly three types: statistical method, spectral analysis method and model-based method. The most common of these is the spectrum analysis method using Fourier transform, wavelet transform and Gabor analysis. The Fourier transform is a global transformation of the image, so it cannot accurately locate the defect; the transformation detection performance of the Gabor analysis is better, but it needs to perform two-dimensional filtering and fusion on the multi-channel direction, which greatly increases the computational complexity; the wavelet transform has a good It has the advantages of local time-frequency analysis and fast calculation speed, but its poor direction selectivity makes it unable to describe the characteristics of two-dimensional graphs well, resulting in unsatisfactory detection results.
人类能快速有效地识别出缺陷,无论反光强弱、缺陷形状的变化、不同生产工艺造成的差别等等。布匹呈现在人眼前时,其瑕疵部分较为显著,能够引起视觉注意。也就是说,图中待发现的信息往往集中在一些关键的区域,通常称之为显著区域。如果能够准确地提取这些显著区域,即在视觉上吸引人注意的区域,我们就能有效找到需要的图信息。为了从图中提取显著区域,人们提出了基于视觉注意的计算模型。在这些模型中,用显著图表示视觉区域的显著性。显著图是一幅二维图,它的每个像素点的值表示原图对应像素点的显著性大小。本发明便是基于视觉显著性原理,提供了一种对布匹图进行瑕疵检测的方法。 Humans can quickly and effectively identify defects, regardless of the intensity of reflection, changes in the shape of defects, differences caused by different production processes, and so on. When the cloth is presented to the human eye, its flaws are more obvious and can attract visual attention. That is to say, the information to be discovered in the graph is often concentrated in some key areas, which are usually called salient areas. If these salient regions, i.e., visually attractive regions, can be accurately extracted, we can effectively find the needed graph information. To extract salient regions from graphs, computational models based on visual attention have been proposed. In these models, the saliency of visual regions is represented by a saliency map. A saliency map is a two-dimensional map, and the value of each pixel in it represents the saliency of the corresponding pixel in the original image. The present invention is based on the principle of visual salience, and provides a method for detecting defects on a cloth pattern.
发明内容 Contents of the invention
本发明的目的是提供一种基于视觉显著性的布匹瑕疵检测方法,模拟人的视觉注意机制,以GBVS(Graph-based Visual Saliency)模型为基础,通过提取布匹的亮度特征和方向特征,生成视觉显著图,通过分析视觉显著图的灰度分布关系,判断视觉显著图是否能量集中,进而判断布匹是否存在瑕疵。 The purpose of the present invention is to provide a cloth defect detection method based on visual saliency, which simulates the human visual attention mechanism, based on the GBVS (Graph-based Visual Saliency) model, by extracting the brightness and direction features of the cloth to generate visual The saliency map, by analyzing the gray level distribution relationship of the visual saliency map, judges whether the energy of the visual saliency map is concentrated, and then judges whether there is a defect in the cloth.
为达到上述发明目的,本发明采用的技术方案是:一种基于视觉显著性的布匹瑕疵检测方法,包括如下步骤: In order to achieve the above-mentioned purpose of the invention, the technical solution adopted in the present invention is: a method for detecting cloth defects based on visual salience, comprising the following steps:
(1)、采集图像,对布匹进行图采集,得到初始灰度图; (1) Collect images, collect images of cloth, and obtain initial grayscale images;
(2)、GBVS模型生成显著图像,根据GBVS模型生成所述初始灰度图的综合显著图; (2), the GBVS model generates a salient image, and generates a comprehensive salient map of the initial grayscale image according to the GBVS model;
(3)、灰度图处理,减小所述综合显著图各像素点的灰度值,从而得到减弱背景显著性后的最终显著图; (3) Grayscale image processing, reducing the grayscale value of each pixel in the comprehensive saliency map, so as to obtain the final saliency map after weakening the background saliency;
(4)、二值化处理,根据最大类间方差法,对所述最终显著图进行自适应阈值分割,得到具有突出显著的目标部分的二值图; (4) Binarization processing, performing adaptive threshold segmentation on the final saliency map according to the maximum inter-class variance method, to obtain a binary map with prominent and salient target parts;
(5)、瑕疵区域判断,通过比较所述最终显著图中对应目标区域的灰度平方和与所述综合显著图整个区域的灰度平方和,以判断目标区域是否为瑕疵。 (5) Defect area judgment, by comparing the gray sum of squares of the corresponding target area in the final saliency map with the gray sum of squares of the entire area of the integrated saliency map to judge whether the target area is a defect.
进一步的技术方案,步骤(2)包括如下分步骤: In a further technical solution, step (2) includes the following sub-steps:
(a)、亮度特征处理,对所述初始灰度图进行高斯金字塔滤波,得到一组不同尺度下的亮度特征滤波结果,对每个所述亮度特征滤波结果,根据其像素间的差异和欧氏距离建立各自的马尔科夫链,然后求其马尔科夫平衡 (a) Luminance feature processing, performing Gaussian pyramid filtering on the initial grayscale image to obtain a set of luminance feature filtering results at different scales, and for each of the luminance feature filtering results, according to the difference between the pixels and the Ou The distance to establish their own Markov chains, and then find their Markov balance
分布,将马尔科夫平衡分布后的所述一组不同尺度下的亮度特征滤波结果进行归一化处理,得到一张亮度特征显著图; distribution, performing normalization processing on the set of luminance feature filtering results at different scales after the Markov equilibrium distribution, to obtain a luminance feature saliency map;
(b)、方向特征处理,对所述初始灰度图在四个方向上进行Gabor金字塔滤波,对应得到四组不同尺度下的方向特征滤波结果,对每个所述方向特征滤波结果,根据其像素间的差异和欧氏距离建立各自的马尔科夫链,然后求其马尔科夫平衡分布,将马尔科夫平衡分布后的所述一组不同尺度下的方向特征滤波结果进行归一化处理,得到一张方向特征显著图; (b), directional feature processing, performing Gabor pyramid filtering on the initial grayscale image in four directions, correspondingly obtaining the directional feature filtering results under four groups of different scales, for each of the directional feature filtering results, according to its The difference between pixels and the Euclidean distance establish their respective Markov chains, and then find their Markov equilibrium distribution, and normalize the directional feature filtering results of the set of different scales after the Markov equilibrium distribution , to obtain a directional feature saliency map;
(c)、多通道叠加归一处理,将步骤(a)中的所述亮度特征显著图和步骤(b)中的所述方向特征显著图线性相加并进行归一化处理,得到综合显著图; (c), multi-channel superposition normalization processing, linearly adding the luminance feature saliency map in step (a) and the direction feature saliency map in step (b) and performing normalization processing to obtain comprehensive saliency picture;
其中,所述步骤(a)和步骤(b)无先后顺序。 Wherein, the steps (a) and (b) are in no sequence.
进一步的技术方案,步骤(3)采用如下方法:计算所述综合显著图的各个像素点的灰度平均值,判断所述各个像素点的灰度值是否大于所述灰度平均值,如果所述灰度值小于所述灰度平均值,则对所述灰度值进行归零处理,否则所述灰度值等于其与所述灰度平均值的差值,得到减弱背景显著性的最终显著图。 In a further technical solution, step (3) adopts the following method: calculate the average gray value of each pixel in the comprehensive saliency map, and judge whether the gray value of each pixel is greater than the average gray value, if the If the gray value is less than the average gray value, the gray value is reset to zero; otherwise, the gray value is equal to the difference between the gray value and the average gray value, and the final result of weakening the background salience is obtained. Significant figure.
进一步的技术方案,步骤(5)采用如下方法:标定所述最终显著图对应于所述目标部分的区域为目标区域,分别计算所述最终显著图的目标区域的像素点灰度平方和及所述综合显著图的整个区域的像素点灰度平方和,进而计算所述目标区域灰度平方和与所述整个区域灰度平方和的比值,如果所述比值低于判断阈值时,则所述目标区域为瑕疵区域,否则所述目标区域不是瑕疵区域。 In a further technical solution, step (5) adopts the following method: calibrate the area corresponding to the target part in the final saliency map as the target area, and calculate the gray square sum of the pixels of the target area in the final saliency map and the obtained The sum of the gray squares of the pixels in the entire area of the comprehensive saliency map, and then calculate the ratio of the gray square sum of the target area to the gray square sum of the entire area, if the ratio is lower than the judgment threshold, the The target area is a blemish area, otherwise the target area is not a blemish area.
进一步的技术方案,所述判断阈值的取值范围为0.15~0.4。 In a further technical solution, the value range of the judgment threshold is 0.15-0.4.
由于上述技术方案运用,本发明与现有技术相比具有下列优点: Due to the use of the above-mentioned technical solutions, the present invention has the following advantages compared with the prior art:
1、通过对输入的布匹图进行视觉显著性分析,判断是否得到具有突出显著的目标区域的二值图,进而判断布匹是否存在瑕疵,与传统布匹瑕疵检测方法相比,本发明降低了运算的复杂度,提高了识别率,并能准确定位; 1. By analyzing the visual salience of the input cloth image, it is judged whether a binary image with a prominent target area is obtained, and then whether there is a defect in the cloth is judged. Compared with the traditional cloth defect detection method, the present invention reduces the calculation cost. Complexity, improved recognition rate, and accurate positioning;
2、通过使综合显著图中像素灰度值高于平均值的点的灰度值减小,使综合显著图中像素灰度值低于平均值的点的灰度值归零,以减弱背景(视布匹完好区域为背景)显著性,使得瑕疵区域与完好区域的显著性有明显的差距,避免了由于所述综合显著图的生成原理的缘故,所检测的布匹完好区域的灰度值比瑕疵区域中的完好部分灰度值还要高的情况下容易导致的误检,有效地降低了背景在检测过程中的干扰; 2. By reducing the gray value of the points whose pixel gray value is higher than the average value in the comprehensive saliency map, the gray value of the point whose pixel gray value is lower than the average value in the comprehensive saliency map is zeroed to weaken the background (regarding the intact area of the cloth as the background) saliency, so that there is an obvious gap between the saliency of the flawed area and the intact area, avoiding the gray value ratio of the detected intact area of the cloth due to the generation principle of the comprehensive saliency map It is easy to cause false detection when the gray value of the intact part in the defect area is even higher, which effectively reduces the interference of the background during the detection process;
3、由于人眼在观察纹理均匀图时总有相对注意力集中的区域,因此基于视觉显著性的布匹瑕疵的检测方法容易将布匹完好图经过分割得到的目标部分误判为瑕疵区域,通过提取目标区域的图特征信息进行能量判断,判断此目标区域是否是能量集中区域,最终确定瑕疵区域,计算所述最终显著图中对应于所述目标部分的目标区域的像素点灰度平方和及所述综合显著图的整个区域的像素点灰度平方和,进而计算所述两者的比值,通过比值大小判断该目标区域是否能量相对集中,比值大于判断阈值,即能量相对集中,则所述目标区域为瑕疵,否则所述目标区域不为瑕疵,通过以上的技术方案,减少了误判的发生。 3. Since the human eye always has a relatively concentrated area when observing the uniform texture map, the detection method of cloth defects based on visual salience is easy to misjudge the target part obtained by segmenting the intact cloth image as a defect area. By extracting The image feature information of the target area is used to judge the energy, judge whether the target area is an energy concentrated area, finally determine the defect area, and calculate the gray square sum of the pixel points corresponding to the target part in the final saliency map and the resulting The square sum of pixel gray levels in the entire area of the comprehensive saliency map is calculated, and then the ratio between the two is calculated, and the target area is judged whether the energy of the target area is relatively concentrated by the ratio. If the ratio is greater than the judgment threshold, that is, the energy is relatively concentrated, the target The region is a defect, otherwise the target region is not a defect. Through the above technical solution, the occurrence of misjudgment is reduced.
附图说明 Description of drawings
图1是本发明公开的基于视觉显著性的布匹瑕疵检测方法的实施流程图; Fig. 1 is the implementation flowchart of the method for detecting cloth defects based on visual salience disclosed by the present invention;
图2是本发明公开的布匹完好图的逐步检测结果图; Fig. 2 is a step-by-step detection result figure of the cloth intact figure disclosed by the present invention;
图3是本发明公开的布匹典型瑕疵图的逐步检测结果图; Fig. 3 is a step-by-step detection result diagram of a typical cloth defect diagram disclosed by the present invention;
图4,图5,图6,图7是本发明公开的布匹其他瑕疵图的检测结果图。 Fig. 4, Fig. 5, Fig. 6 and Fig. 7 are diagrams of detection results of other cloth defect diagrams disclosed by the present invention.
具体实施方式 Detailed ways
下面结合附图及实施例对本发明进一步描述。 The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
实施例:参见图1,如其中的图例所示,上述布匹瑕疵检测方法包括如下步骤: Embodiment: referring to Fig. 1, as shown in the legend wherein, above-mentioned cloth flaw detection method comprises the following steps:
(1)、采集图像,通过工业相机采集布匹的图,得到初始灰度图 ,如图2(a)为布匹完好图的初始图,如图3(a)为布匹典型瑕疵图的初始灰度图。 (1) Collect images, collect images of cloth through industrial cameras, and obtain initial grayscale images , Figure 2(a) is the initial image of the cloth intact image, and Figure 3(a) is the initial grayscale image of the typical cloth defect image.
(2)、亮度特征处理: (2), Brightness feature processing:
a、通过二维高斯滤波器对输入的上述初始灰度图进行高斯金字塔滤波,金字塔滤波是指对初始灰度图不断进行1/2降采样和滤波,滤波的尺度因子随图的减小而减小,得到一组不同尺度下的滤波结果,本例中金字塔等级为2,即得到两个尺度下的不同亮度特征滤波结果,即两张亮度特征图; a. The above initial grayscale image input through a two-dimensional Gaussian filter Perform Gaussian pyramid filtering. Pyramid filtering refers to continuous 1/2 downsampling and filtering of the initial grayscale image. The scale factor of the filter decreases as the image decreases, and a set of filtering results at different scales is obtained. In this example The pyramid level is 2, that is, the filtering results of different brightness features at two scales are obtained, that is, two brightness feature maps ;
其中, 是初始灰度图,是对亮度特征在尺度因子下用高斯函数滤波得到的高斯金字塔,为二维高斯滤波器的高斯函数,为相应图中像素点的位置,为相应图的尺度因子; in, is the initial grayscale image, is the scale factor for brightness features in The Gaussian pyramid obtained by filtering with the Gaussian function, is the Gaussian function of the two-dimensional Gaussian filter, is the position of the pixel in the corresponding image, is the scale factor of the corresponding graph;
b、对每张所述亮度特征图进行马尔科夫平衡分布,进而归一化处理,得到亮度特征显著图; b. For each of the brightness feature maps Carry out Markov equilibrium distribution, and then normalize to obtain the brightness feature salience map ;
设每个亮度特征图为,任意两像素点之间的距离为,则任意两像素点和距离: Let each brightness feature map for , the distance between any two pixels is , then any two pixels and distance:
将特征图每两个像素点都两两连接,每条边代表两点间的权重,点到点的权重为: feature map Every two pixels are connected in pairs, and each edge represents the weight between two points. to the point the weight of for:
其中为高斯加权参数; in is the Gaussian weighting parameter;
也就是说任意两像素点之间的权重由两像素点间的灰度差异和点间距离共同决定,相反方向权重相同,上述过程为求每张亮度特征图对应权重矩阵的最大特征值对应的特征向量的过程,即求每张亮度特征图的平衡态过程; That is to say, the weight between any two pixels is determined by the gray level difference between the two pixels and the distance between the points, and the weight in the opposite direction is the same. The above process is to find the maximum eigenvalue corresponding to the weight matrix corresponding to each brightness feature map The process of feature vector, that is, the process of finding the equilibrium state of each brightness feature map;
将两张亮度特征平衡分布图进行归一化处理,得到一张亮度特征显著图。 Balance the distribution of two brightness features Perform normalization processing to obtain a luminance feature salience map .
(3)、方向特征处理: (3), direction feature processing:
a、通过Gabor滤波器对输入的初始灰度图在四个方向上进行Gabor金字塔滤波,金字塔滤波是指对初始灰度图不断进行1/2降采样和滤波,滤波的尺度因子随图的减小而减小,得到四组不同尺度下的滤波结果,本例中金字塔等级为2,即得到四组两个尺度下的不同方向特征滤波结果,即八张方向特征图; a. The initial grayscale image of the input through the Gabor filter Perform Gabor pyramid filtering in four directions. Pyramid filtering refers to continuous 1/2 downsampling and filtering of the initial grayscale image. The scale factor of the filter decreases with the decrease of the image, and four groups of filters at different scales are obtained. As a result, the pyramid level in this example is 2, that is, four groups of different directional feature filtering results at two scales are obtained, that is, eight directional feature maps ;
其中,是对方向特征在尺度用方向的Gabor函数滤波得到的Gabor金字塔,为Gabor滤波器的Gabor函数,为相应图中像素点的位置,为尺度因子, 为方向因子(取),为Gabor滤波器的正弦波频率,; in, It is the Gabor pyramid obtained by filtering the directional feature at the scale with the Gabor function of the direction, is the Gabor function of the Gabor filter, is the position of the pixel in the corresponding image, is the scale factor, is the direction factor (take ), is the sine wave frequency of the Gabor filter,;
b、对每张方向特征图进行马尔科夫平衡分布,进而归一化处理,得到亮度特征显著图, b. For each direction feature map Carry out Markov equilibrium distribution, and then normalize to obtain the brightness feature salience map ,
设每个方向特征图为,任意两像素点之间的距离为,则任意两像素点和距离: Let each orientation feature map for , the distance between any two pixels is , then any two pixels and distance:
将特征图每两个像素点都两两连接,每条边代表两点间的权重,点到点的权重为: feature map Every two pixels are connected in pairs, and each edge represents the weight between two points. to the point the weight of for:
其中为高斯加权参数; in is the Gaussian weighting parameter;
也就是说任意两像素点之间的权重由两像素点间的灰度差异和点间距离共同决定,相反方向权重相同,上述过程为求每张方向特征图对应权重矩阵的最大特征值对应的特征向量的过程,即求每张方向特征图的平衡态过程; That is to say, the weight between any two pixels is determined by the gray difference between the two pixels and the distance between the points, and the weight in the opposite direction is the same. The above process is to find the maximum eigenvalue corresponding to the weight matrix corresponding to each direction feature map. The process of eigenvectors is the process of finding the equilibrium state of each directional feature map;
将八张方向特征平衡分布图进行归一化处理,得到方向特征显著图; Balance the distribution of eight directional features Perform normalization processing to obtain a directional feature saliency map ;
(4)、叠加归一处理,将上述亮度特征显著图和方向特征显著图线性相加并进行归一化处理,得到与上述初始灰度图大小一致的综合显著图,如图2(b)为布匹完好图的综合显著图,如图3(b)为布匹典型瑕疵图的综合显著图。 (4) Superimposed and normalized processing, the above-mentioned brightness feature saliency map and directional feature saliency map Add linearly and perform normalization processing to obtain the above initial grayscale image Synthesized saliency map with consistent size , as shown in Figure 2(b) is the comprehensive saliency map of the cloth intact map, and Figure 3(b) is the comprehensive saliency map of the typical cloth defect map.
(5)、灰度图处理,计算上述综合显著图的灰度平均值,比较上述综合显著图各像素点灰度值与灰度平均值,如果上述像素点灰度值小于灰度平均值,则对上述像素点灰度值进行归零处理,否则上述像素点灰度值等于其与灰度平均值的差值,得到减弱背景灰度的最终显著图,如图2(c)为布匹完好图的最终显著图,如图3(c)为布匹典型瑕疵图的最终显著图。 (5) Grayscale image processing, calculating the above comprehensive saliency map Compared with the above comprehensive saliency map The gray value of each pixel and the average value of the gray value. If the gray value of the above pixel is smaller than the average value of the gray value, the gray value of the above pixel is zeroed, otherwise the gray value of the above pixel is equal to its gray value The difference between the mean values to obtain the final saliency map with reduced background grayscale , Figure 2(c) is the final saliency map of the cloth intact map, and Figure 3(c) is the final saliency map of the typical cloth defect map.
(6)、二值化处理,根据最大类间方差法,对上述最终显著图进行自适应阈值分割,得到具有突出显著的目标部分的二值图,如图2(d)为布匹完好图的二值图,如图3(d)为布匹典型瑕疵图的二值图。 (6), binarization processing, according to the maximum between-class variance method, the above-mentioned final saliency map Perform adaptive threshold segmentation to obtain a binary image with prominent target parts , as shown in Figure 2(d) is the binary image of the good cloth image, and Figure 3(d) is the binary image of the typical defect image of the cloth.
(7)、瑕疵区域判断,标定上述最终显著图中对应于所述目标部分的区域为目标区域,计算上述最终显著图的目标区域的像素点灰度平方和及所述综合显著图的整个区域的像素点灰度平方和,进而计算两者的比值。在本发明方法中判断阈值取值范围为0.15~0.4,本例判断阈值取为0.2,如果上述比值低于判断阈值0.2时,则上述目标区域为瑕疵区域,否则上述目标区域不是瑕疵区域,如图2(e)为布匹完好图的判断结果图,如图3(e)为布匹典型瑕疵图的判断结果图。 (7) Defect area judgment, calibration of the above final saliency map The area corresponding to the target part in is the target area, and the above-mentioned final saliency map is calculated The gray sum of squares of pixels in the target area and the integrated saliency map The sum of the squares of the pixel gray levels of the entire area, and then calculate the ratio of the two. In the method of the present invention, the judgment threshold value ranges from 0.15 to 0.4, and the judgment threshold value in this example is 0.2. If the above-mentioned ratio is lower than the judgment threshold value of 0.2, the above-mentioned target area is a flawed area, otherwise the above-mentioned target area is not a flawed area, such as Figure 2(e) is the judgment result diagram of the cloth intact image, and Figure 3(e) is the judgment result diagram of the cloth typical defect image.
计算被分割区域与整个区域的灰度平方和的比值,通过比值大小判断该目标区域是否能量相对集中。比值大于判断阈值,即能量相对集中,为瑕疵;否则不为瑕疵。 Calculate the ratio of the gray square sum of the segmented area to the entire area, and judge whether the energy of the target area is relatively concentrated by the ratio. If the ratio is greater than the judgment threshold, that is, the energy is relatively concentrated, it is a defect; otherwise, it is not a defect.
参见图4-图7,为布匹其他几种典型瑕疵图的检测结果图,其中(a)为初始图,(b)为综合显著图,(c)为判断结果图。 See Figures 4-7, which are the detection results of several other typical defect images of cloth, where (a) is the initial image, (b) is the comprehensive saliency image, and (c) is the judgment result image.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410063927.XA CN103871053B (en) | 2014-02-25 | 2014-02-25 | Vision conspicuousness-based cloth flaw detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410063927.XA CN103871053B (en) | 2014-02-25 | 2014-02-25 | Vision conspicuousness-based cloth flaw detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103871053A true CN103871053A (en) | 2014-06-18 |
CN103871053B CN103871053B (en) | 2017-02-01 |
Family
ID=50909558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410063927.XA Active CN103871053B (en) | 2014-02-25 | 2014-02-25 | Vision conspicuousness-based cloth flaw detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103871053B (en) |
Cited By (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104198497A (en) * | 2014-09-12 | 2014-12-10 | 苏州大学 | Surface defect detection method based on visual saliency map and support vector machine |
CN104574353A (en) * | 2014-09-12 | 2015-04-29 | 苏州大学 | Surface defect judgment method based on visual saliency |
CN104700412A (en) * | 2015-03-17 | 2015-06-10 | 苏州大学 | Calculating method of visual salience drawing |
CN105021628A (en) * | 2015-07-19 | 2015-11-04 | 中北大学 | Detection method for surface defects of optical fiber image inverter |
CN105678767A (en) * | 2016-01-07 | 2016-06-15 | 无锡信捷电气股份有限公司 | SoC software and hardware collaborative design-based cloth surface blemish detection method |
CN106157314A (en) * | 2015-12-23 | 2016-11-23 | 河海大学 | A kind of real-time fault diagnosis method of paper making equipment |
CN107145824A (en) * | 2017-03-29 | 2017-09-08 | 纵目科技(上海)股份有限公司 | A kind of lane line dividing method and system, car-mounted terminal based on significance analysis |
CN107220962A (en) * | 2017-04-07 | 2017-09-29 | 北京工业大学 | A kind of image detecting method and device of tunnel crackle |
CN107316295A (en) * | 2017-07-02 | 2017-11-03 | 苏州大学 | A kind of fabric defects detection method based on deep neural network |
CN107895363A (en) * | 2017-10-31 | 2018-04-10 | 常州大学 | Textile flaw detection method based on template characteristic |
CN108268866A (en) * | 2016-12-30 | 2018-07-10 | 纵目科技(上海)股份有限公司 | A kind of vehicle checking method and system |
CN108629778A (en) * | 2017-03-15 | 2018-10-09 | 纵目科技(上海)股份有限公司 | Image significance object detection method and system based on local feature weighting enhancing |
CN108629225A (en) * | 2017-03-15 | 2018-10-09 | 纵目科技(上海)股份有限公司 | A kind of vehicle checking method based on several subgraphs and saliency analysis |
CN108629806A (en) * | 2017-03-15 | 2018-10-09 | 纵目科技(上海)股份有限公司 | A kind of image significance object detection method and system based on picture contrast |
CN108960255A (en) * | 2018-06-28 | 2018-12-07 | 西安工程大学 | Conspicuousness fabric defect detection method based on color similarity and position aggregation |
CN109816631A (en) * | 2018-12-25 | 2019-05-28 | 河海大学 | An Image Segmentation Method Based on New Cost Function |
CN109961437A (en) * | 2019-04-04 | 2019-07-02 | 江南大学 | A method for detecting significant fabric defects based on machine teaching mode |
CN109960984A (en) * | 2017-12-25 | 2019-07-02 | 大连楼兰科技股份有限公司 | Vehicle detection method based on contrast and significance analysis |
CN110031461A (en) * | 2019-02-14 | 2019-07-19 | 江苏恒力化纤股份有限公司 | A kind of polyester filament dye uniformity test method |
CN110298835A (en) * | 2019-07-02 | 2019-10-01 | 广东工业大学 | A kind of leather surface damage testing method, system and relevant apparatus |
CN110706205A (en) * | 2019-09-07 | 2020-01-17 | 创新奇智(重庆)科技有限公司 | Method for detecting cloth hole-breaking defect by using computer vision technology |
CN110751135A (en) * | 2019-12-24 | 2020-02-04 | 广东博智林机器人有限公司 | Drawing checking method and device, electronic equipment and storage medium |
CN111402225A (en) * | 2020-03-13 | 2020-07-10 | 浙江工业大学 | A method for judging faults in fabric folding misdetection |
CN111667476A (en) * | 2020-06-09 | 2020-09-15 | 创新奇智(广州)科技有限公司 | Cloth flaw detection method and device, electronic equipment and readable storage medium |
CN111861996A (en) * | 2020-06-23 | 2020-10-30 | 西安工程大学 | A kind of printing fabric defect detection method |
CN112669306A (en) * | 2021-01-06 | 2021-04-16 | 北京信息科技大学 | Solar cell defect detection method and system based on saliency map |
CN113638104A (en) * | 2021-10-14 | 2021-11-12 | 海门市恒昌织带有限公司 | Intelligent yarn cleaning control method and system for bobbin winder |
CN114187273A (en) * | 2021-12-13 | 2022-03-15 | 中国科学技术大学 | Method and system for detecting multiple types of flaws on inner wall of corrugated pipe based on deep learning |
CN114486903A (en) * | 2021-12-06 | 2022-05-13 | 浙江大学台州研究院 | Gray-scale self-adaptive coiled material detection system, device and algorithm |
CN114511851A (en) * | 2022-01-30 | 2022-05-17 | 南水北调中线干线工程建设管理局 | Hairspring algae cell statistical method based on microscope image |
CN115598138A (en) * | 2022-11-23 | 2023-01-13 | 惠州威尔高电子有限公司(Cn) | Power control circuit board flaw detection method and system based on significance detection |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109300127B (en) * | 2018-09-21 | 2021-02-05 | 深圳新视智科技术有限公司 | Defect detection method, defect detection device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102214298A (en) * | 2011-06-20 | 2011-10-12 | 复旦大学 | Method for detecting and identifying airport target by using remote sensing image based on selective visual attention mechanism |
CN102799882A (en) * | 2012-07-09 | 2012-11-28 | 武汉市科迅智能交通设备有限公司 | License plate positioning method based on visual saliency |
CN103247059A (en) * | 2013-05-27 | 2013-08-14 | 北京师范大学 | Remote sensing image region of interest detection method based on integer wavelets and visual features |
CN103309982A (en) * | 2013-06-17 | 2013-09-18 | 武汉大学 | Remote sensing image retrieval method based on vision saliency point characteristics |
CN103544709A (en) * | 2013-11-07 | 2014-01-29 | 东北大学 | Method for detecting micro defects on surface of silicon steel plate based on significant active contour model |
-
2014
- 2014-02-25 CN CN201410063927.XA patent/CN103871053B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102214298A (en) * | 2011-06-20 | 2011-10-12 | 复旦大学 | Method for detecting and identifying airport target by using remote sensing image based on selective visual attention mechanism |
CN102799882A (en) * | 2012-07-09 | 2012-11-28 | 武汉市科迅智能交通设备有限公司 | License plate positioning method based on visual saliency |
CN103247059A (en) * | 2013-05-27 | 2013-08-14 | 北京师范大学 | Remote sensing image region of interest detection method based on integer wavelets and visual features |
CN103309982A (en) * | 2013-06-17 | 2013-09-18 | 武汉大学 | Remote sensing image retrieval method based on vision saliency point characteristics |
CN103544709A (en) * | 2013-11-07 | 2014-01-29 | 东北大学 | Method for detecting micro defects on surface of silicon steel plate based on significant active contour model |
Non-Patent Citations (3)
Title |
---|
HAREL J 等: "Graph-based visual saliency", 《ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS》, 28 February 2006 (2006-02-28), pages 545 - 552 * |
吴家伟: "基于图像显著性特征的铸坯表面缺陷检测", 《智能系统学报》, vol. 7, no. 1, 28 February 2012 (2012-02-28), pages 75 - 80 * |
屈博 等: "一种改进的多通道Gabor滤波器布匹瑕疵检测方法", 《纺织学报》, vol. 30, no. 12, 31 December 2009 (2009-12-31), pages 37 - 40 * |
Cited By (49)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104198497B (en) * | 2014-09-12 | 2017-01-25 | 苏州大学 | Surface defect detection method based on visual saliency map and support vector machine |
CN104574353A (en) * | 2014-09-12 | 2015-04-29 | 苏州大学 | Surface defect judgment method based on visual saliency |
CN104198497A (en) * | 2014-09-12 | 2014-12-10 | 苏州大学 | Surface defect detection method based on visual saliency map and support vector machine |
CN104574353B (en) * | 2014-09-12 | 2017-08-01 | 苏州大学 | Visual saliency-based method for determining surface defects |
CN104700412A (en) * | 2015-03-17 | 2015-06-10 | 苏州大学 | Calculating method of visual salience drawing |
CN104700412B (en) * | 2015-03-17 | 2019-01-22 | 苏州大学 | A computational method of visual saliency map |
CN105021628A (en) * | 2015-07-19 | 2015-11-04 | 中北大学 | Detection method for surface defects of optical fiber image inverter |
CN106157314A (en) * | 2015-12-23 | 2016-11-23 | 河海大学 | A kind of real-time fault diagnosis method of paper making equipment |
CN106157314B (en) * | 2015-12-23 | 2018-12-14 | 河海大学 | A kind of real-time fault diagnosis method of paper making equipment |
CN105678767A (en) * | 2016-01-07 | 2016-06-15 | 无锡信捷电气股份有限公司 | SoC software and hardware collaborative design-based cloth surface blemish detection method |
CN105678767B (en) * | 2016-01-07 | 2019-02-19 | 无锡信捷电气股份有限公司 | A kind of cloth surface flaw detection method based on SoC Hardware/Software Collaborative Design |
CN108268866B (en) * | 2016-12-30 | 2020-07-10 | 纵目科技(上海)股份有限公司 | Vehicle detection method and system |
CN108268866A (en) * | 2016-12-30 | 2018-07-10 | 纵目科技(上海)股份有限公司 | A kind of vehicle checking method and system |
CN108629806B (en) * | 2017-03-15 | 2022-02-25 | 纵目科技(上海)股份有限公司 | Image salient object detection method and system based on image contrast |
CN108629806A (en) * | 2017-03-15 | 2018-10-09 | 纵目科技(上海)股份有限公司 | A kind of image significance object detection method and system based on picture contrast |
CN108629225B (en) * | 2017-03-15 | 2022-02-25 | 纵目科技(上海)股份有限公司 | Vehicle detection method based on multiple sub-images and image significance analysis |
CN108629778A (en) * | 2017-03-15 | 2018-10-09 | 纵目科技(上海)股份有限公司 | Image significance object detection method and system based on local feature weighting enhancing |
CN108629778B (en) * | 2017-03-15 | 2022-02-25 | 纵目科技(上海)股份有限公司 | Image salient object detection method and system based on local feature weighting enhancement |
CN108629225A (en) * | 2017-03-15 | 2018-10-09 | 纵目科技(上海)股份有限公司 | A kind of vehicle checking method based on several subgraphs and saliency analysis |
CN107145824A (en) * | 2017-03-29 | 2017-09-08 | 纵目科技(上海)股份有限公司 | A kind of lane line dividing method and system, car-mounted terminal based on significance analysis |
CN107220962B (en) * | 2017-04-07 | 2020-04-21 | 北京工业大学 | An image detection method and device for tunnel cracks |
CN107220962A (en) * | 2017-04-07 | 2017-09-29 | 北京工业大学 | A kind of image detecting method and device of tunnel crackle |
CN107316295A (en) * | 2017-07-02 | 2017-11-03 | 苏州大学 | A kind of fabric defects detection method based on deep neural network |
CN107895363A (en) * | 2017-10-31 | 2018-04-10 | 常州大学 | Textile flaw detection method based on template characteristic |
CN109960984A (en) * | 2017-12-25 | 2019-07-02 | 大连楼兰科技股份有限公司 | Vehicle detection method based on contrast and significance analysis |
CN108960255A (en) * | 2018-06-28 | 2018-12-07 | 西安工程大学 | Conspicuousness fabric defect detection method based on color similarity and position aggregation |
CN109816631A (en) * | 2018-12-25 | 2019-05-28 | 河海大学 | An Image Segmentation Method Based on New Cost Function |
CN110031461A (en) * | 2019-02-14 | 2019-07-19 | 江苏恒力化纤股份有限公司 | A kind of polyester filament dye uniformity test method |
CN110031461B (en) * | 2019-02-14 | 2022-03-18 | 江苏恒力化纤股份有限公司 | Polyester filament yarn dyeing uniformity test method |
CN109961437B (en) * | 2019-04-04 | 2021-06-25 | 江南大学 | A method for detecting significant fabric defects based on machine teaching mode |
CN109961437A (en) * | 2019-04-04 | 2019-07-02 | 江南大学 | A method for detecting significant fabric defects based on machine teaching mode |
CN110298835A (en) * | 2019-07-02 | 2019-10-01 | 广东工业大学 | A kind of leather surface damage testing method, system and relevant apparatus |
CN110298835B (en) * | 2019-07-02 | 2023-07-18 | 广东工业大学 | A leather surface damage detection method, system and related device |
CN110706205A (en) * | 2019-09-07 | 2020-01-17 | 创新奇智(重庆)科技有限公司 | Method for detecting cloth hole-breaking defect by using computer vision technology |
CN110751135A (en) * | 2019-12-24 | 2020-02-04 | 广东博智林机器人有限公司 | Drawing checking method and device, electronic equipment and storage medium |
CN111402225A (en) * | 2020-03-13 | 2020-07-10 | 浙江工业大学 | A method for judging faults in fabric folding misdetection |
CN111402225B (en) * | 2020-03-13 | 2023-05-26 | 浙江工业大学 | A Method for Folding Misdetection Defects in Cloth |
CN111667476B (en) * | 2020-06-09 | 2022-12-06 | 创新奇智(广州)科技有限公司 | Cloth flaw detection method and device, electronic equipment and readable storage medium |
CN111667476A (en) * | 2020-06-09 | 2020-09-15 | 创新奇智(广州)科技有限公司 | Cloth flaw detection method and device, electronic equipment and readable storage medium |
CN111861996A (en) * | 2020-06-23 | 2020-10-30 | 西安工程大学 | A kind of printing fabric defect detection method |
CN111861996B (en) * | 2020-06-23 | 2023-11-03 | 西安工程大学 | A method for detecting defects in printed fabrics |
CN112669306A (en) * | 2021-01-06 | 2021-04-16 | 北京信息科技大学 | Solar cell defect detection method and system based on saliency map |
CN113638104B (en) * | 2021-10-14 | 2022-02-08 | 海门市恒昌织带有限公司 | Intelligent yarn cleaning control method and system for bobbin winder |
CN113638104A (en) * | 2021-10-14 | 2021-11-12 | 海门市恒昌织带有限公司 | Intelligent yarn cleaning control method and system for bobbin winder |
CN114486903A (en) * | 2021-12-06 | 2022-05-13 | 浙江大学台州研究院 | Gray-scale self-adaptive coiled material detection system, device and algorithm |
CN114486903B (en) * | 2021-12-06 | 2024-05-14 | 浙江大学台州研究院 | A grayscale adaptive coil detection system, device and algorithm |
CN114187273A (en) * | 2021-12-13 | 2022-03-15 | 中国科学技术大学 | Method and system for detecting multiple types of flaws on inner wall of corrugated pipe based on deep learning |
CN114511851A (en) * | 2022-01-30 | 2022-05-17 | 南水北调中线干线工程建设管理局 | Hairspring algae cell statistical method based on microscope image |
CN115598138A (en) * | 2022-11-23 | 2023-01-13 | 惠州威尔高电子有限公司(Cn) | Power control circuit board flaw detection method and system based on significance detection |
Also Published As
Publication number | Publication date |
---|---|
CN103871053B (en) | 2017-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103871053B (en) | Vision conspicuousness-based cloth flaw detection method | |
CN110349126B (en) | A Marked Steel Plate Surface Defect Detection Method Based on Convolutional Neural Network | |
CN102305798B (en) | Detection and classification method of glass defects based on machine vision | |
CN106780485B (en) | SAR image change detection method based on super-pixel segmentation and feature learning | |
CN104574353B (en) | Visual saliency-based method for determining surface defects | |
CN102156996B (en) | Image edge detection method | |
CN107093175B (en) | A kind of power battery welding quality detection method | |
CN103955922B (en) | Method for detecting flaws of printed fabric based on Gabor filter | |
CN107578418A (en) | A Contour Detection Method for Indoor Scenes by Fusion of Color and Depth Information | |
CN108960255A (en) | Conspicuousness fabric defect detection method based on color similarity and position aggregation | |
CN104198497B (en) | Surface defect detection method based on visual saliency map and support vector machine | |
CN104794502A (en) | Image processing and mode recognition technology-based rice blast spore microscopic image recognition method | |
CN111126253A (en) | Detection method of knife switch state based on image recognition | |
CN110415260B (en) | Smoke image segmentation and identification method based on dictionary and BP neural network | |
CN106530271B (en) | A kind of infrared image conspicuousness detection method | |
CN104732536A (en) | Sub-pixel edge detection method based on improved morphology | |
CN103729842A (en) | Fabric defect detection method based on local statistical characteristics and overall significance analysis | |
CN116664565A (en) | Hidden crack detection method and system for photovoltaic solar cell | |
CN114372955A (en) | Casting defect X-ray diagram automatic identification method based on improved neural network | |
CN107301637A (en) | Nearly rectangle plane shape industrial products surface flaw detecting method | |
CN103164692A (en) | Special vehicle instrument automatic identification system and algorithm based on computer vision | |
CN108038838A (en) | A kind of cotton fibriia species automatic testing method and system | |
CN111738931B (en) | Shadow Removal Algorithm for Photovoltaic Array UAV Aerial Imagery | |
CN113221881B (en) | A multi-level smartphone screen defect detection method | |
CN109191430A (en) | A kind of plain color cloth defect inspection method based on Laws texture in conjunction with single classification SVM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |