CN105184777A - Painted design fabric defect detection method based on image decomposition - Google Patents

Painted design fabric defect detection method based on image decomposition Download PDF

Info

Publication number
CN105184777A
CN105184777A CN201510507169.0A CN201510507169A CN105184777A CN 105184777 A CN105184777 A CN 105184777A CN 201510507169 A CN201510507169 A CN 201510507169A CN 105184777 A CN105184777 A CN 105184777A
Authority
CN
China
Prior art keywords
image
beta
fabric
flaw
lambda
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
CN201510507169.0A
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.)
Xian Polytechnic University
Original Assignee
Xian Polytechnic 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 Xian Polytechnic University filed Critical Xian Polytechnic University
Priority to CN201510507169.0A priority Critical patent/CN105184777A/en
Publication of CN105184777A publication Critical patent/CN105184777A/en
Pending legal-status Critical Current

Links

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
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a painted design fabric defect detection method based on image decomposition. The method implements specifically according to the following steps: step 1, acquiring images of a painted design fabric; step 2, pre-processing the images acquired in the step 1, that is, performing image enhancement to obtain a first target image; step 3, and using a Gaussian back substitution alternating direction method to decompose the first target image in the step 2, to break the image into a texture part v and a defect part u. The invention provides the painted design fabric defect detection method based on image decomposition, and the painted design fabric defect detection method based on image decomposition using a Gaussian back substitution alternating direction method is used. The method effectively analyzes and solves an image decomposition objective function through the Gaussian back substitution alternating direction method of a convex optimization model, so the defect part of the image is partially visual.

Description

A kind of decalcomania fabric defects detection method based on picture breakdown
Technical field
The invention belongs to image procossing, pattern-recognition and technical field of machine vision, be specifically related to a kind of decalcomania fabric defects detection method based on picture breakdown.
Background technology
Along with the fast development of science and technology, China's textile industry competition, the good and bad degree of cloth quality is quite big on textile manufacturing impact, will sell containing clothes defective by discounted price, thus Shi Ge great textile enterprise is faced with high standard, the tight immense pressure required.In textile product is produced, cloth cover flaw is the principal element affecting fabric quality, and the inspection of fabric face flaw is a very important link.At present, most domestic enterprise still adopts the method for traditional artificial visually examine to detect quality of textile products, because the impact by working environment and labour intensity makes detection efficiency lower, according to test, manual detection probably can only detect the flaw of 40%-60%, even if skilled perching workman also can only find the flaw of about 70%.The shortcomings such as traditional manual detection method labour intensity is large, and undetected and false drop rate is high, have become one of bottleneck improving textile enterprise's production efficiency.
Since nineteen seventies, along with the develop rapidly of digital integration technology and image processing techniques, machine vision has obtained applying more and more widely in industrial surface detection field, replace artificial vision not only can improve detection speed with computer vision, reduce labour cost, and carry out by PRINTED FABRIC flaw automatic checkout system the evaluation that Defect Detection is PRINTED FABRIC quality grade, provide the believable reference data of both sides.
At present, the crossing research field, forward position that the scholar having become weaving subject and information science based on the PRINTED FABRIC flaw on-line checkingi of machine vision plays an active part in.Domestic and international many researchers have proposed the multiple fabric defects detection algorithm based on machine vision, as auto-relativity function method, co-occurrence matrix method, the mathematics morphology of Corpus--based Method method; At the fourier transform method of frequency domain extraction eigenwert, Gabor filter method, Wavelet Transform and autoregressive model, markov random file method etc. based on model algorithm.Mak etc. utilize mathematical morphology filter to process fabric, complete the Defect Detection of fabric.Tsai and Hu proposes the Fourier model of four kinds of different flaw fabrics, and utilizes Fourier's feature of these model extraction fabric defects.The people such as XuY propose a kind of by using the unsupervised Defect Detection algorithm of the strange part of Gabor function.But these algorithms are mainly directed to the comparatively simple plain weave of texture structure and twills, and star-like for comprising, and pattern, the Defect Detection research of the decalcomania fabric of the relative complex such as ring-dot type is relatively less.Therefore, how Defect Detection is carried out to decalcomania fabric and there is more deep Research Significance.
Wavelet pretreatment gold template subtracts each other coupling (WGIS) method, based on pattern texture periodically rule band (RB) method, based on cloth forest belt (BB) method of image pixel standard deviation and be all the Defect Detection algorithm that several classes existed at present are directed to PRINTED FABRIC based on the Defect Detection algorithm etc. of pattern primitive, this several algorithm is all the algorithm that Corpus--based Method method combines with filtering mode.Wherein, rule band (RB) method based on the pattern texture cycle mainly adopts the fabric defects textural characteristics of two related complementary to realize the feature extraction of fabric window, but the setting of fabric window does not have unified method, be difficult to detect textile design flaw in real time; And be the PRINTED FABRIC for regular repetitive based on cloth forest belt (BB) rule of image pixel standard deviation, calculate the standard deviation of upper bound band and lower bound band, by training process and testing process, identify fabric defects, but for the fault also less than single repetitive, be difficult to accurately detect by cloth forest belt method.
Summary of the invention
The object of this invention is to provide a kind of decalcomania fabric defects detection method based on picture breakdown, solve the problem that prior art accurately can not detect relatively tiny fault.
The technical solution adopted in the present invention is, a kind of decalcomania fabric defects detection method based on picture breakdown, specifically implements according to following steps:
The image of step 1, collection decalcomania fabric;
Step 2, pre-service is carried out to the image that step 1 collects, namely target image I is obtained to image enhaucament;
Step 3, employing Gaussian back substitution alternating direction method are decomposed the target image I in step 2, are decomposed into texture part v and flaw part u.
Feature of the present invention is also:
Step 2 adopts the method for histogram equalization to carry out pre-service to image, and the process obtaining target image I is specially:
Suppose that image has S rank, through type (1) can obtain target image I and be:
I = T ( r i ) = Σ i = 0 m P r ( r i ) = Σ i = 0 m n i / n , m = 0 , 1 , 2 , ... , S - 1 - - - ( 1 )
Wherein, m is the gray level of image, and n is total number of pixels of image, n ithe number of pixels in i-gray level, P (r i) then represent probability density in i-gray level, T (r m) be the non-linear transform function of pixel in m gray level.
In step 3, Gaussian back substitution alternating direction method to the concrete steps that target image I decomposes is:
First introduce convex Optimized model, namely solve min θ 1(x 1)+θ 2(x 2)+θ 3(x 3), submit to A 1x 1+ A 2x 2+ A 3x 3=b, x i∈ X i, i=1,2,3, wherein θ i: for convex function, for giving set matrix, for the convex subset of non-NULL, b ∈ R lfor known vector; Wherein, the Lagrangian λ ∈ R of convex optimization problem lfunction is defined as:
L ( x 1 , x 2 , x 3 , λ ) = Σ i = 1 3 θ i ( x i ) - λ T ( Σ i = 1 3 A i x i - b ) - - - ( 2 )
The spatial dimension of Lagrangian λ is Q=X 1× X 2× X 3× R l;
Secondly, application Gaussian back substitution alternating direction method solves convex Optimized model problem, is specially:
1. defined parameters:
v=(x 2,x 3,λ)(3)
v k = ( x 2 k , x 3 k , λ k ) - - - ( 4 )
v k - = ( x 2 k - , x 3 k - , λ k ) - - - ( 5 )
M = βA 2 T A 2 0 0 βA 3 T A 2 βA 3 T A 3 0 0 0 1 / β E - - - ( 6 )
H = d i a g ( βA 2 T A 2 , βA 3 T A 3 , 1 / β E ) - - - ( 7 )
Wherein, E is unit matrix, punishment parameter beta > 0, V=X 2× X 3× R l;
2. alternating direction method is specially:
x 1 k - = argmin { θ 1 ( x 1 ) + β / 2 | | ( A 1 x 1 + Σ j = 1 3 A j x j k - b ) - 1 / βλ k | | 2 } x 2 k - = arg min { θ 2 ( x 2 ) + β / 2 | | ( A 1 x 1 k - + A 2 x 2 + Σ j = 2 3 A j x j k - b ) - 1 / βλ k | | 2 } x 3 k - = argmin { θ 3 ( x 3 ) + β / 2 | | ( A 1 x 1 k - + A 2 x 2 k - + A 3 x 3 + Σ j = 3 3 A j x j k - b ) - 1 / βλ k | | 2 } λ k - = λ k - β ( A 1 x 1 k - + A 2 x 2 k - + A 3 x 3 k - - b ) - - - ( 8 )
3. Gaussian back substitution step is specially:
H - 1 M T ( v k + 1 - v k ) = α ( v k - - v k ) x 1 k + 1 = x 1 k - - - - ( 9 )
Repeat 2., 3., until iteration terminates,
Wherein, α ∈ [0.5,1), tolerance ε > 0, and initial vector v 0 = ( x 2 0 , x 3 0 , λ 0 ) ∈ R m 2 × R m 3 × R l ;
Hypothetical target image I ∈ R n, decompose following formula target image I in conjunction with the convex Optimized model of above-mentioned Gaussian back substitution alternating direction method:
m i n u ∈ R n , g ∈ R n × R n τ | | | ▿ u | | | 1 + 1 2 | | u + d i v g - I | | 2 2 + μ | | | g | | | p - - - ( 10 )
Namely texture part v and the flaw part u of decalcomania textile image is obtained;
Wherein, p>=1, v=divg, ▽ represent first order derivative operator, div=-▽ tbe divergence operator, τ>=1, μ>=1 are used to the balance parameter of three ingredients weighing objective function (10) respectively;
Section 1 || | ▽ u||| 1for the total variance norm of u, suppose for arbitrary z=(z 1, z 2..., z n) t∈ R n, represent the p norm of z, and for arbitrary y=(y 1, y 2) ∈ R n× R n, | y| represents R nin a vector, and to be provided by following formula:
| y | i = ( ( y 1 ) i 2 + ( y 2 ) i 2 ) 1 / 2 , i = 1 , 2 , ... , n - - - ( 11 )
From above formula | | | y | | | p = ( Σ i = 1 n | y | i p ) 1 / p ;
Section 2 wherein, I ≈ u+divg;
Section 3 || | g||| p, first we consider in negative exponent Sobolev space, for arbitrary u ∈ R n, || u|| 1, p=|| | u||| p, that is in this space, total variance norm is exactly semi-norm || || 1,1, || || 1, pdual norm be denoted as || || -1, q, 1/p+1/q=1, and be defined as: v -1, q=inf{|||g|||q}, g ∈ R n× R n, so, for the Section 3 in formula (10) || | g||| p, generally get p → ∞, can draw | | | g | | | ∞ = lim p → ∞ | | g 1 2 + g 2 2 | | p .
Also comprising step 4, the texture part v of calculating flaw fabric and the correlativity Corr (W, v (τ, μ)) of indefectible fabric W is:
C o r r ( W , v ( τ , μ ) ) = cov ( W , v ( τ , μ ) ) / var ( W ) · var ( v ( τ , μ ) ) - - - ( 12 )
Wherein, cov () and var () is respectively covariance and variance;
Corr (W, v (τ, μ)) close to 1 time (τ, μ) value be optimum balance parameter, now, target image is decomposed into texture part v' and flaw part u'.
Also comprise step 4, adopt the image partition method of the two-dimentional Otsu threshold value based on grey scale pixel value and neighborhood of pixel points gray-scale value to split the flaw part u that step 3 obtains, flaw part u is set to original image, the threshold value of getting image is T, bianry image f (x, y) then after segmentation is:
f ( x , y ) = 0 u ( x , y ) < T 1 u ( x , y ) > T - - - ( 13 )
In formula: 0 represents that pixel is black, 1 represents that pixel is white.
Also comprising step 4, the texture part v of calculating flaw fabric and the correlativity Corr (W, v (τ, μ)) of indefectible fabric W is:
C o r r ( W , v ( &tau; , &mu; ) ) = cov ( W , v ( &tau; , &mu; ) ) / var ( W ) &CenterDot; var ( v ( &tau; , &mu; ) ) - - - ( 14 )
Wherein, cov () and var () is respectively covariance and variance;
Corr (W, v (τ, μ)) close to 1 time (τ, μ) value be optimum balance parameter, now, target image is decomposed into texture part v' and flaw part u';
Step 5, the image partition method of the two-dimentional Otsu threshold value based on grey scale pixel value and neighborhood of pixel points gray-scale value is adopted to split the flaw part u' that step 4 obtains, flaw part u' is set to original image, the threshold value of getting image is T, bianry image f (x, y) then after segmentation is:
f ( x , y ) = 0 u &prime; ( x , y ) < T 1 u &prime; ( x , y ) > T - - - ( 13 )
In formula: 0 represents that pixel is black, 1 represents that pixel is white.
The invention has the beneficial effects as follows: the present invention is a kind of decalcomania fabric defects detection method based on picture breakdown, adopt the flaw detection method based on the decalcomania fabric of the picture breakdown of Gaussian back substitution alternating direction method, the method is mainly through the Gaussian back substitution alternating direction method effective analyze and solve picture breakdown objective function of convex Optimized model, target image is decomposed, thus makes the flaw partial visual of image.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of flaw detection method of the present invention;
Fig. 2 is star-like flaw original image and grey level histogram thereof in the present invention, the flaw image after equalization and grey level histogram thereof;
Fig. 3 be in the present invention star-like flaw image without/through pretreated picture breakdown result figure;
Fig. 4 is texture part and the flaw part of decomposition after adopting the heavy filling/pick type flaw image of the inventive method ring-dot type and equalization;
Fig. 5 is the flaw part adopting the inventive method fine filling type flaw image of pattern under different balance parameters;
Fig. 6 is the flaw part of the fine filling type flaw image adopting the inventive method star-like under different balance parameters;
Fig. 7 adopts the inventive method to the testing result figure mono-of star-like decalcomania flaw point fabric;
Fig. 8 adopts the inventive method to the testing result figure bis-of star-like decalcomania flaw point fabric;
Fig. 9 adopts the inventive method to the testing result figure mono-of pattern decalcomania flaw point fabric;
Figure 10 adopts the inventive method to the testing result figure bis-of pattern decalcomania flaw point fabric;
Figure 11 adopts the inventive method to the testing result figure mono-of ring-dot type decalcomania flaw point fabric;
Figure 12 adopts the inventive method to the testing result figure bis-of ring-dot type decalcomania flaw point fabric.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
A kind of decalcomania fabric defects detection method based on picture breakdown of the present invention, as shown in Figure 1, specifically implement according to following steps:
The image of step 1, collection decalcomania fabric;
When step 2, image acquisition, too bright or too dark, image acquisition element (as the ccd video camera) precision of light is forbidden and various noises etc. in image transmitting process all inevitably can reduce the PRINTED FABRIC picture quality collected, cause image fault, in order to reduce the impact of this distortion on successive image processing procedure, improve picture quality, the method of histogram equalization need be adopted to carry out pre-service to image, i.e. image enhaucament.Histogram equalization is that the uneven distribution histogram of these images is carried out Nonlinear extension, again distributes image pixel value, and pixel is uniformly distributed in the whole tonal range of image, thus reaches the object strengthening image visual effect.
Suppose that image has S rank, through type (1) can obtain target image I and be:
I = T ( r i ) = &Sigma; i = 0 m P r ( r i ) = &Sigma; i = 0 m n i / n , m = 0 , 1 , 2 , ... , S - 1 - - - ( 1 )
Wherein, m is the gray level of image, and n is total number of pixels of image, n ithe number of pixels in i-gray level, P (r i) then represent probability density in i-gray level, T (r m) be the non-linear transform function of pixel in m gray level.
If Fig. 2 (a) is star-like fabric defects original image, the grey level histogram that Fig. 2 (b) is Fig. 2 (a), Fig. 2 (c) is for Fig. 2 (a) is through the pretreated flaw image of histogram equalization, the grey level histogram that Fig. 2 (d) is Fig. 2 (c), can find out through histogram equalization, image fault part is effectively strengthened.
If Fig. 3 (a) is star-like fabric defects original image, Fig. 3 (b) is Fig. 3 (a) without pretreated flaw part u, flaw image after the histogram equalization that Fig. 3 (c) is Fig. 3 (a), Fig. 3 (d) is for Fig. 3 (a) is through pretreated flaw part u, can find out that this pretreatment operation of histogram equalization is to the material impact of testing result, fabric defects position can be given prominence to more significantly through pretreated PRINTED FABRIC picture breakdown testing result.
Step 3, Gaussian back substitution alternating direction (AlternatingDirectionMethodwithGaussian, ADMG) method is utilized to solve picture breakdown objective function.Alternating direction method (AlternatingDirectionMethod, ADM) be perform on the multiplier method basis of Lagrangian function, this algorithm is actually the decomposition method of the decomposable asymmetric choice net structure of Utilizing question itself, namely, when subproblem can solve out effectively, solve by alternating iteration the normal solution that a series of subproblem obtains former problem.
First introduce convex Optimized model, namely solve min θ 1(x 1)+θ 2(x 2)+θ 3(x 3), submit to A 1x 1+ A 2x 2+ A 3x 3=b, x i∈ X i, i=1,2,3, wherein θ i: for convex function, for giving set matrix, for the convex subset of non-NULL, b ∈ R lfor known vector; Wherein, the Lagrangian λ ∈ R of convex optimization problem lfunction is defined as:
L ( x 1 , x 2 , x 3 , &lambda; ) = &Sigma; i = 1 3 &theta; i ( x i ) - &lambda; T ( &Sigma; i = 1 3 A i x i - b ) - - - ( 2 )
The spatial dimension of Lagrangian λ is Q=X 1× X 2× X 3× R l;
Secondly, application Gaussian back substitution alternating direction method solves convex Optimized model problem, and the flow process of Gaussian back substitution alternating direction method (ADMG) algorithm is as follows:
1. defined parameters:
v=(x 2,x 3,λ)(3)
v k = ( x 2 k , x 3 k , &lambda; k ) - - - ( 4 )
v k - = ( x 2 k - , x 3 k - , &lambda; k ) - - - ( 5 )
M = &beta;A 2 T A 2 0 0 &beta;A 3 T A 2 &beta;A 3 T A 3 0 0 0 1 / &beta; E - - - ( 6 )
H = d i a g ( &beta;A 2 T A 2 , &beta;A 3 T A 3 , 1 / &beta; E ) - - - ( 7 )
Wherein, E is unit matrix, punishment parameter beta > 0, V=X 2× X 3× R l;
2. alternating direction method (ADM) is specially:
x 1 k - = argmin { &theta; 1 ( x 1 ) + &beta; / 2 | | ( A 1 x 1 + &Sigma; j = 1 3 A j x j k - b ) - 1 / &beta;&lambda; k | | 2 } x 2 k - = arg min { &theta; 2 ( x 2 ) + &beta; / 2 | | ( A 1 x 1 k - + A 2 x 2 + &Sigma; j = 2 3 A j x j k - b ) - 1 / &beta;&lambda; k | | 2 } x 3 k - = argmin { &theta; 3 ( x 3 ) + &beta; / 2 | | ( A 1 x 1 k - + A 2 x 2 k - + A 3 x 3 + &Sigma; j = 3 3 A j x j k - b ) - 1 / &beta;&lambda; k | | 2 } &lambda; k - = &lambda; k - &beta; ( A 1 x 1 k - + A 2 x 2 k - + A 3 x 3 k - - b ) - - - ( 8 )
3. Gaussian back substitution step is specially:
H - 1 M T ( v k + 1 - v k ) = &alpha; ( v k - - v k ) x 1 k + 1 = x 1 k - - - - ( 9 )
Repeat 2., 3., until iteration terminates,
Wherein, α ∈ [0.5,1), tolerance ε > 0, and initial vector v 0 = ( x 0 2 , x 3 2 , &lambda; 0 ) &Element; R m 2 &times; R m 3 &times; R l ;
Hypothetical target image I ∈ R n, decompose following formula target image I in conjunction with the convex Optimized model of above-mentioned Gaussian back substitution alternating direction method:
m i n u &Element; R n , g &Element; R n &times; R n &tau; | | | &dtri; u | | | 1 + 1 2 | | u + d i v g - I | | 2 2 + &mu; | | | g | | | p - - - ( 10 )
Namely texture part v and the flaw part u of decalcomania textile image is obtained;
Wherein, p>=1, v=divg, ▽ represent first order derivative operator, div=-▽ tbe divergence operator, τ>=1, μ>=1 are used to the balance parameter of three ingredients weighing objective function (10) respectively;
Section 1 || | ▽ u||| 1for the total variance norm (TV) of u, the advantage that TV norm is maximum in image processing process be it can Recovery image sectionally smooth and be unduly smoothly present in obvious uncontinuity in image, namely it can retain the marginal information of image.Suppose for arbitrary z=(z 1, z 2..., z n) t∈ R n, represent the p norm of z, and for arbitrary y=(y 1, y 2) ∈ R n× R n, | y| represents R nin a vector, and to be provided by following formula:
| y | i = ( ( y 1 ) i 2 + ( y 2 ) i 2 ) 1 / 2 , i = 1 , 2 , ... , n - - - ( 11 )
From above formula | | | y | | | p = ( &Sigma; i = 1 n | y | i p ) 1 / p ;
Section 2 wherein, I ≈ u+divg;
Section 3 || | g||| p, first we consider in negative exponent Sobolev space, for arbitrary u ∈ R n, || u|| 1, p=|| | u||| p, that is in this space, total variance norm is exactly semi-norm || || 1,1, || || 1, pdual norm be denoted as || || -1, q, 1/p+1/q=1 (namely as the p=1 that q=∞ is corresponding, vice versa), and be defined as: || v|| -1, q=inf{|||g||| q, g ∈ R n× R n, so, for the Section 3 in formula (10) || | g||| p, generally get p → ∞, can draw | | | g | | | &infin; = lim p &RightArrow; &infin; | | g 1 2 + g 2 2 | | p .
Thus, the convex Optimized model of picture breakdown objective function in conjunction with Gaussian back substitution alternating direction method just can be obtained flaw part u and the texture part v of PRINTED FABRIC image by us.
As the original flaw image of heavy filling/pick type that Fig. 4 (a) is ring-dot type, the defect image of the histogram equalization that Fig. 4 (b) is Fig. 4 (a), Fig. 4 (c) adopts the texture part v of picture breakdown after the inventive method for Fig. 4 (b), and Fig. 4 (d) adopts the flaw part u of picture breakdown after the inventive method for Fig. 4 (b).Can find out, employing the inventive method can accurately by tiny Defect Detection out.
Can be flaw part u and texture part v by PRINTED FABRIC picture breakdown by above-mentioned steps, following three schemes all can identify fabric defects more accurately.
Scheme one,
Step 4, here, we need to consider correctly choosing of two optimum balances parameter (τ, μ) in formula (10).By available two Output rusults of formula (10): flaw part u and texture part v.But can identify fabric defects more accurately to accurately select balance parameter, we consider that the texture part v of flaw fabric and indefectible fabric W has higher correlativity, and both maximal correlation sexual intercourse computing formula are as follows:
C o r r ( W , v ( &tau; , &mu; ) ) = cov ( W , v ( &tau; , &mu; ) ) / var ( W ) &CenterDot; var ( v ( &tau; , &mu; ) ) - - - ( 12 )
In formula: cov () and var () is respectively covariance and variance.
In order to choose optimum balance parameter, generally, (τ, μ) obtain Corr (W, v (τ, μ)) close to 1 time value, now, target image is decomposed into texture part v' and flaw part u'.
As the original flaw image of fine filling type that Fig. 5 (a) is pattern, Fig. 5 (b) ~ Fig. 5 (e) is for decalcomania fabric is under different balance parameters, decompose the flaw part u' obtained, the balance parameter of Fig. 5 (b) ~ Fig. 5 (e) is respectively (1.1,1), (1.3,1), (1.5,1), (2,1).
If Fig. 6 (a) is the original flaw image of star-like fine filling type, Fig. 6 (b) ~ Fig. 6 (e) is for decalcomania fabric is under different balance parameters, decompose the flaw part u' obtained, the balance parameter of Fig. 6 (b) ~ Fig. 6 (e) is respectively (1.2,1), (1.5,1), (1.7,1), (2.1,1).
Scheme two,
Step 4, PRINTED FABRIC image carry out binaryzation, the image partition method of two-dimentional Otsu (maximum between-cluster variance) threshold value based on grey scale pixel value and neighborhood of pixel points gray-scale value is adopted to split the flaw part u that step 3 obtains, flaw part u is set to original image, the threshold value of getting image is T, bianry image f (x, y) then after segmentation is:
f ( x , y ) = 0 u ( x , y ) < T 1 u ( x , y ) > T - - - ( 13 )
In formula: 0 represents that pixel is black, 1 represents that pixel is white.
Scheme three,
Step 4, here, we need to consider correctly choosing of two optimum balances parameter (τ, μ) in formula (10).By available two Output rusults of formula (10): flaw part u and texture part v.But can identify fabric defects more accurately to accurately select balance parameter, we consider that the texture part v of flaw fabric and indefectible fabric W has higher correlativity, and both maximal correlation sexual intercourse computing formula are as follows:
C o r r ( W , v ( &tau; , &mu; ) ) = cov ( W , v ( &tau; , &mu; ) ) / var ( W ) &CenterDot; var ( v ( &tau; , &mu; ) ) - - - ( 14 )
In formula: cov () and var () is respectively covariance and variance.
In order to choose optimum balance parameter, generally, (τ, μ) obtain Corr (W, v (τ, μ)) close to 1 time value, now, target image is decomposed into texture part v' and flaw part u'.
Step 5, PRINTED FABRIC image carry out binaryzation, the image partition method of two-dimentional Otsu (maximum between-cluster variance) threshold value based on grey scale pixel value and neighborhood of pixel points gray-scale value is adopted to split the flaw part u' that step 4 obtains, flaw part u' is set to original image, the threshold value of getting image is T, bianry image f (x, y) then after segmentation is:
f ( x , y ) = 0 u &prime; ( x , y ) < T 1 u &prime; ( x , y ) > T - - - ( 13 )
In formula: 0 represents that pixel is black, 1 represents that pixel is white.
Fig. 7-Figure 12 adopts third aspect of the present invention to the testing result of decalcomania flaw point fabric.Fig. 7, Fig. 8 are star-like, and Fig. 9, Figure 10 are pattern, and Figure 11, Figure 12 are ring-dot type.(a) figure of Fig. 7-Figure 12 is original decalcomania flaw point fabric, (b) of Fig. 7-Figure 12 is the pretreating effect figure after histogram equalization, (c) of Fig. 7-Figure 12 is the flaw dot image obtained after picture breakdown algorithm, and (d) figure of Fig. 7-Figure 12 is the fault bianry image obtained through two-dimentional Otsu Threshold segmentation.As can be seen from the results, the position of fabric defects and shape have obtained good Visual retrieval, and in an experiment the detection time of ring-dot type fabric short compared with other two kind fabrics, detection efficiency is higher.
Table 1, table 2 and table 3 are respectively star-like, ring-dot type, pattern fabric be detected as power, sensitivity and specific result, not only show detection algorithm based on the picture breakdown of Gaussian back substitution alternating direction to the detection perform of decalcomania fault fabric, and also show the recognition capability without fault decalcomania fabric.Defect detection algorithm in this invention to star-like broken hole and fine filling, the broken hole of ring-dot type, tubercle, heavy filling/pick and fine filling Four types fabric defects recognition effect more satisfactory, be detected as power, sensitivity and specificity all reach 100%.Star-like and ring-dot type totally 55 width defect image all effectively can determine defect position, and for broken yarn, many net two kind fabric testing results are relatively poor, are detected as power, and sensitivity and specificity are respectively 96.7%, 96%, 100%.Comparatively speaking, the decalcomania fabric of pattern be detected as power, sensitivity and specificity are respectively 96.9%, 96.1%, 100%, poor relative to the testing result effect of first two fault fabric type, the algorithm effect result that we propose is unsatisfactory.Although its main cause is the defect position effectively can determining defect image, but part without background texture structure in defect image and fault part district pixel similarity higher, part normal region by approximate think result in defect regions algorithm testing result undesirable, there is error.
The star-like fabric of table 1 be detected as power, sensitivity and specificity
Table 2 ring-dot type fabric be detected as power, sensitivity and specificity
Table 3 pattern fabric be detected as power, sensitivity and specificity

Claims (6)

1., based on a decalcomania fabric defects detection method for picture breakdown, it is characterized in that, specifically implement according to following steps:
The image of step 1, collection decalcomania fabric;
Step 2, pre-service is carried out to the image that step 1 collects, namely target image I is obtained to image enhaucament;
Step 3, employing Gaussian back substitution alternating direction method are decomposed the target image I in step 2, are decomposed into texture part v and flaw part u.
2. a kind of decalcomania fabric defects detection method based on picture breakdown according to claim 1, it is characterized in that, described step 2 adopts the method for histogram equalization to carry out pre-service to image, and the process obtaining target image I is specially:
Suppose that image has S rank, through type (1) can obtain target image I and be:
I = T ( r i ) = &Sigma; i = 0 m P r ( r i ) = &Sigma; i = 0 m n i / n , m = 0 , 1 , 2 , ... , S - 1 - - - ( 1 )
Wherein, m is the gray level of image, and n is total number of pixels of image, n ithe number of pixels in i-gray level, P (r i) then represent probability density in i-gray level, T (r m) be the non-linear transform function of pixel in m gray level.
3. a kind of decalcomania fabric defects detection method based on picture breakdown according to claim 1, it is characterized in that, in described step 3, Gaussian back substitution alternating direction method to the concrete steps that target image I decomposes is:
First introduce convex Optimized model, namely solve min θ 1(x 1)+θ 2(x 2)+θ 3(x 3), submit to A 1x 1+ A 2x 2+ A 3x 3=b, x i∈ X i, i=1,2,3, wherein θ i: for convex function, for giving set matrix, for the convex subset of non-NULL, b ∈ R lfor known vector; Wherein, the Lagrangian λ ∈ R of convex optimization problem lfunction is defined as:
L ( x 1 , x 2 , x 3 , &lambda; ) = &Sigma; i = 1 3 &theta; i ( x i ) - &lambda; T ( &Sigma; i = 1 3 A i x i - b ) - - - ( 2 )
The spatial dimension of Lagrangian λ is Q=X 1× X 2× X 3× R l;
Secondly, application Gaussian back substitution alternating direction method solves convex Optimized model problem, is specially:
1. defined parameters:
v=(x 2,x 3,λ)(3)
v k = ( x 2 k , x 3 k , &lambda; k ) - - - ( 4 )
v k - = ( x 2 k - , x 3 k - , &lambda; k ) - - - ( 5 )
M = &beta;A 2 T A 2 0 0 &beta;A 3 T A 2 &beta;A 3 T A 3 0 0 0 1 / &beta; E - - - ( 6 )
H = d i a g ( &beta;A 2 T A 2 , &beta;A 3 T A 3 , 1 / &beta; E ) - - - ( 7 )
Wherein, E is unit matrix, punishment parameter beta > 0, V=X 2× X 3× R l;
2. alternating direction method is specially:
x 1 k - = argmin { &theta; 1 ( x 1 ) + &beta; / 2 | | ( A 1 x 1 + &Sigma; j = 1 3 A j x j k - b ) - 1 / &beta;&lambda; k | | 2 } x 2 k - = arg min { &theta; 2 ( x 2 ) + &beta; / 2 | | ( A 1 x 1 k - + A 2 x 2 + &Sigma; j = 2 3 A j x j k - b ) - 1 / &beta;&lambda; k | | 2 } x 3 k - = argmin { &theta; 3 ( x 3 ) + &beta; / 2 | | ( A 1 x 1 k - + A 2 x 2 k - + A 3 x 3 + &Sigma; j = 3 3 A j x j k - b ) - 1 / &beta;&lambda; k | | 2 } &lambda; k - = &lambda; k - &beta; ( A 1 x 1 k - + A 2 x 2 k - + A 3 x 3 k - - b ) - - - ( 8 )
3. Gaussian back substitution step is specially:
H - 1 M T ( v k + 1 - v k ) = &alpha; ( v k - - v k ) x 1 k + 1 = x 1 k - - - - ( 9 )
Repeat 2., 3., until iteration terminates,
Wherein, α ∈ [0.5,1), tolerance ε > 0, and initial vector v 0 = ( x 2 0 , x 3 0 , &lambda; 0 ) &Element; R m 2 &times; R m 3 &times; R l ;
Hypothetical target image I ∈ R n, decompose following formula target image I in conjunction with the convex Optimized model of above-mentioned Gaussian back substitution alternating direction method:
m i n u &Element; R n , g &Element; R n &times; R n &tau; | | | &dtri; u | | | 1 + 1 2 | | u + d i v g - I | | 2 2 + &mu; | | | g | | | p - - - ( 10 )
Namely texture part v and the flaw part u of decalcomania textile image is obtained;
Wherein, p>=1, v=divg, ▽ represent first order derivative operator, div=-▽ tbe divergence operator, τ>=1, μ>=1 are used to the balance parameter of three ingredients weighing objective function (10) respectively;
Section 1 || | ▽ u||| 1for the total variance norm of u, suppose for arbitrary z=(z 1, z 2..., z n) t∈ R n, represent the p norm of z, and for arbitrary y=(y 1, y 2) ∈ R n× R n, | y| represents R nin a vector, and to be provided by following formula:
| y | i = ( ( y 1 ) i 2 + ( y 2 ) i 2 ) 1 / 2 , i = 1 , 2 , ... , n - - - ( 11 )
From above formula | | | y | | | p = ( &Sigma; i = 1 n | y | i p ) 1 / p ;
Section 2 wherein, I ≈ u+divg;
Section 3 || | g||| p, first we consider in negative exponent Sobolev space, for arbitrary u ∈ R n, that is in this space, total variance norm is exactly semi-norm || || 1,1, || || 1, pdual norm be denoted as || || -1, q, 1/p+1/q=1, and be defined as: || v|| -1, q=inf{|||g||| q, g ∈ R n× R n, so, for the Section 3 in formula (10) || | g||| p, generally get p → ∞, can draw | | | g | | | &infin; = lim p &RightArrow; &infin; | | g 1 2 + g 2 2 | | p .
4. a kind of decalcomania fabric defects detection method based on picture breakdown according to any one of claim 1-3, it is characterized in that, also comprising step 4, the texture part v of calculating flaw fabric and the correlativity Corr (W, v (τ, μ)) of indefectible fabric W is:
C o r r ( W , v ( &tau; , &mu; ) ) = cov ( W , v ( &tau; , &mu; ) ) / var ( W ) &CenterDot; var ( v ( &tau; , &mu; ) ) - - - ( 12 )
Wherein, cov () and var () is respectively covariance and variance;
Corr (W, v (τ, μ)) close to 1 time (τ, μ) value be optimum balance parameter, now, target image is decomposed into texture part v' and flaw part u'.
5. a kind of decalcomania fabric defects detection method based on picture breakdown according to any one of claim 1-3, it is characterized in that, also comprise step 4, adopt the image partition method of the two-dimentional Otsu threshold value based on grey scale pixel value and neighborhood of pixel points gray-scale value to split the flaw part u that step 3 obtains, flaw part u is set to original image, the threshold value of getting image is T, bianry image f (x, y) then after segmentation is:
f ( x , y ) = 0 u ( x , y ) < T 1 u ( x , y ) > T - - - ( 13 )
In formula: 0 represents that pixel is black, 1 represents that pixel is white.
6. a kind of decalcomania fabric defects detection method based on picture breakdown according to any one of claim 1-3, it is characterized in that, also comprising step 4, the texture part v of calculating flaw fabric and the correlativity Corr (W, v (τ, μ)) of indefectible fabric W is:
C o r r ( W , v ( &tau; , &mu; ) ) = cov ( W , v ( &tau; , &mu; ) ) / var ( W ) &CenterDot; var ( v ( &tau; , &mu; ) ) - - - ( 14 )
Wherein, cov () and var () is respectively covariance and variance;
Corr (W, v (τ, μ)) close to 1 time (τ, μ) value be optimum balance parameter, now, target image is decomposed into texture part v' and flaw part u';
Step 5, the image partition method of the two-dimentional Otsu threshold value based on grey scale pixel value and neighborhood of pixel points gray-scale value is adopted to split the flaw part u' that step 4 obtains, flaw part u' is set to original image, the threshold value of getting image is T, bianry image f (x, y) then after segmentation is:
f ( x , y ) = 0 u &prime; ( x , y ) < T 1 u &prime; ( x , y ) > T - - - ( 15 )
In formula: 0 represents that pixel is black, 1 represents that pixel is white.
CN201510507169.0A 2015-08-18 2015-08-18 Painted design fabric defect detection method based on image decomposition Pending CN105184777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510507169.0A CN105184777A (en) 2015-08-18 2015-08-18 Painted design fabric defect detection method based on image decomposition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510507169.0A CN105184777A (en) 2015-08-18 2015-08-18 Painted design fabric defect detection method based on image decomposition

Publications (1)

Publication Number Publication Date
CN105184777A true CN105184777A (en) 2015-12-23

Family

ID=54906830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510507169.0A Pending CN105184777A (en) 2015-08-18 2015-08-18 Painted design fabric defect detection method based on image decomposition

Country Status (1)

Country Link
CN (1) CN105184777A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106971186A (en) * 2017-03-29 2017-07-21 深圳万发创新进出口贸易有限公司 A kind of intelligent traffic monitoring system
CN107085844A (en) * 2017-03-14 2017-08-22 西安工程大学 The fabric defects detection method of picture breakdown algorithm based on rarefaction representation
CN107392884A (en) * 2017-06-05 2017-11-24 镇江苏仪德科技有限公司 A kind of identification of solid coloured cloth defect regions based on image procossing and extracting method
CN108414525A (en) * 2018-01-30 2018-08-17 广东溢达纺织有限公司 Fabric defect detection method, device, computer equipment and storage medium
CN109300127A (en) * 2018-09-21 2019-02-01 中兴新通讯有限公司 Defect inspection method, device, computer equipment and storage medium
CN110570397A (en) * 2019-08-13 2019-12-13 创新奇智(重庆)科技有限公司 Method for detecting ready-made clothes printing defects based on deep learning template matching algorithm
CN112649447A (en) * 2020-12-30 2021-04-13 浙江久大纺织科技有限公司 Fabric printing detection method based on color matrix
CN116934749A (en) * 2023-09-15 2023-10-24 山东虹纬纺织有限公司 Textile flaw rapid detection method based on image characteristics

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571495A (en) * 2009-06-12 2009-11-04 西安工程大学 Method for detecting moisture content of fabric on line by microwaves
CN201559345U (en) * 2009-06-23 2010-08-25 西安工程大学 Pair pattern precision detector of circular screen printer
CN102879401A (en) * 2012-09-07 2013-01-16 西安工程大学 Method for automatically detecting and classifying textile flaws based on pattern recognition and image processing
CN202770781U (en) * 2012-09-05 2013-03-06 西安工程大学 Fabric defect online detection device based on machine vision
CN103955922A (en) * 2014-04-17 2014-07-30 西安工程大学 Method for detecting flaws of printed fabric based on Gabor filter
CN203894177U (en) * 2014-03-25 2014-10-22 西安工程大学 Automatic wallpaper defect detection device based on machine vision

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571495A (en) * 2009-06-12 2009-11-04 西安工程大学 Method for detecting moisture content of fabric on line by microwaves
CN201559345U (en) * 2009-06-23 2010-08-25 西安工程大学 Pair pattern precision detector of circular screen printer
CN202770781U (en) * 2012-09-05 2013-03-06 西安工程大学 Fabric defect online detection device based on machine vision
CN102879401A (en) * 2012-09-07 2013-01-16 西安工程大学 Method for automatically detecting and classifying textile flaws based on pattern recognition and image processing
CN203894177U (en) * 2014-03-25 2014-10-22 西安工程大学 Automatic wallpaper defect detection device based on machine vision
CN103955922A (en) * 2014-04-17 2014-07-30 西安工程大学 Method for detecting flaws of printed fabric based on Gabor filter

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
BINGSHENG HE 等: "Alternating Direction Method with Gaussian Back Substitution for Separable Convex Programming", 《NUMERICAL ALGEBRA》 *
JUNFENG YANG 等: "A Fast Alternating Direction Method for TVL1-L2 Signal Reconstruction From Partial Fourier Data", 《SELECTED TOPICS IN SIGNAL PROCESSING》 *
MICHAEL K. NG 等: "Coupled Variational Image Decomposition and Restoration Model for Blurred Cartoon-Plus-Texture Images With Missing Pixels", 《IMAGE PROCESSING》 *
吴成茂: "直方图均衡化的数学模型研究", 《电子学报》 *
张力娜,李小林: "基于四阶偏微分方程的卡通—纹理图像分解方法", 《计算机应用与软件》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085844A (en) * 2017-03-14 2017-08-22 西安工程大学 The fabric defects detection method of picture breakdown algorithm based on rarefaction representation
CN106971186A (en) * 2017-03-29 2017-07-21 深圳万发创新进出口贸易有限公司 A kind of intelligent traffic monitoring system
CN106971186B (en) * 2017-03-29 2018-12-04 石家庄求实通信设备有限公司 A kind of intelligent traffic monitoring system
CN107392884A (en) * 2017-06-05 2017-11-24 镇江苏仪德科技有限公司 A kind of identification of solid coloured cloth defect regions based on image procossing and extracting method
CN108414525A (en) * 2018-01-30 2018-08-17 广东溢达纺织有限公司 Fabric defect detection method, device, computer equipment and storage medium
CN109300127A (en) * 2018-09-21 2019-02-01 中兴新通讯有限公司 Defect inspection method, device, computer equipment and storage medium
CN109300127B (en) * 2018-09-21 2021-02-05 深圳新视智科技术有限公司 Defect detection method, defect detection device, computer equipment and storage medium
CN110570397A (en) * 2019-08-13 2019-12-13 创新奇智(重庆)科技有限公司 Method for detecting ready-made clothes printing defects based on deep learning template matching algorithm
CN110570397B (en) * 2019-08-13 2020-12-04 创新奇智(重庆)科技有限公司 Method for detecting ready-made clothes printing defects based on deep learning template matching algorithm
CN112649447A (en) * 2020-12-30 2021-04-13 浙江久大纺织科技有限公司 Fabric printing detection method based on color matrix
CN116934749A (en) * 2023-09-15 2023-10-24 山东虹纬纺织有限公司 Textile flaw rapid detection method based on image characteristics
CN116934749B (en) * 2023-09-15 2023-12-19 山东虹纬纺织有限公司 Textile flaw rapid detection method based on image characteristics

Similar Documents

Publication Publication Date Title
CN105184777A (en) Painted design fabric defect detection method based on image decomposition
CN111179225B (en) Test paper surface texture defect detection method based on gray gradient clustering
Ngan et al. Automated fabric defect detection—A review
CN113989228A (en) Method for detecting defect area of color texture fabric based on self-attention
Garg et al. Deep convolution neural network approach for defect inspection of textured surfaces
CN105654121A (en) Complex jacquard fabric defect detection method based on deep learning
CN112070727B (en) Metal surface defect detection method based on machine learning
CN111724372A (en) Method, terminal and storage medium for detecting cloth defects based on antagonistic neural network
CN105913419A (en) TFT-LCD mura defect detection method based on ICA learning and multichannel fusion
CN109544522A (en) A kind of Surface Defects in Steel Plate detection method and system
CN1335496A (en) Image inspecting method and device for detecting faults
CN110009618A (en) A kind of Axle Surface quality determining method and device
CN107369155A (en) A kind of cloth surface defect detection method and its system based on machine vision
CN105760877A (en) Wool and cashmere identification algorithm based on gray level co-occurrence matrix model
CN109509171A (en) A kind of Fabric Defects Inspection detection method based on GMM and image pyramid
Li et al. A weak supervision machine vision detection method based on artificial defect simulation
CN113506239B (en) Strip steel surface defect detection method based on cross-stage local network
CN107085844A (en) The fabric defects detection method of picture breakdown algorithm based on rarefaction representation
CN103729856A (en) Method for cloth defect detection by utilizing S transformation signal extraction
CN111862027B (en) Textile flaw detection method based on low-rank sparse matrix decomposition
CN101013126A (en) Method for predicting intensity of wooden artificial panel by computer
CN107240086A (en) A kind of fabric defects detection method based on integration nomography
CN115908354A (en) Photovoltaic panel defect detection method based on double-scale strategy and improved YOLOV5 network
CN111161233A (en) Method and system for detecting defects of punched leather
Oni et al. Patterned fabric defect detection and classification (FDDC) techniques: a review

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20151223