CN105261003A - Defect point detection method on basis of self structure of fabric - Google Patents

Defect point detection method on basis of self structure of fabric Download PDF

Info

Publication number
CN105261003A
CN105261003A CN201510573718.4A CN201510573718A CN105261003A CN 105261003 A CN105261003 A CN 105261003A CN 201510573718 A CN201510573718 A CN 201510573718A CN 105261003 A CN105261003 A CN 105261003A
Authority
CN
China
Prior art keywords
image
sigma
gray
formula
fabric
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
CN201510573718.4A
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 CN201510573718.4A priority Critical patent/CN105261003A/en
Publication of CN105261003A publication Critical patent/CN105261003A/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/0008Industrial image inspection checking presence/absence
    • 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

Landscapes

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

Abstract

The invention discloses a defect point detection method on the basis of a self structure of a fabric. The method comprises the following concrete detection steps of: preprocessing a collected grey cloth fabric image; then, enhancing a feature value of a defect point image; next, performing denoising processing on the enhanced defect point image; segmenting the defect point image by a maximum between-class variance threshold segmentation method; and finally, performing fabric defect point detection by an area filtering method. The method has the advantages that the operation starts from the self structure of the fabric; a vein element template is used for enhancing a defect point region; a zero-mean image is used for completing the enhancement on the defect point image; regions of a gray scale mutation defect point, a structure mutation defect point and a mixed defect point can be effectively enhanced; the limitation that a standard defect-point-free image needs to be trained by a conventional method can be avoided; and the accuracy, the reliability and the applicability of the defect point detection method are improved.

Description

A kind of method of carrying out defect detection based on fabric self structure
Technical field
The invention belongs to textile appearance defect detection method and technology field, be specifically related to a kind of method of carrying out defect detection based on fabric self structure.
Background technology
It is the important content that modern enterprise is produced that textile quality detects, and the defect detection of current fabric mainly contains manual detection and automatically detects two kinds.Artificial vision check false drop rate and loss higher, can only find the fabric defects of 70 ~ 80%, testing result by larger, the detection speed of subjective impact slowly, high in cost of production defect.Existing automatic testing method sums up the detection method, the detection method based on frequency-domain analysis and the detection method three major types based on model that are mainly divided into Corpus--based Method.But because fabric defects is of a great variety, come in every shape, add the complicacy of cloth textured image itself, existing detection method is often only adapted to the fault detecting some particular type, cannot detect all faults, bad adaptability;
Fabric is interwoven according to certain organization rule by longitude and latitude two groups of yarns, and warp, broadwise all have certain periodicity.Periodic texture can be thought to be made up of many texture primitives (elementary cell of texture) close to each other, braiding mutually.Normally all follow certain specific rule without the pixel grey scale Distribution value in texture primitive each in the textile image of fault, similarity between different texture primitives is strong, and the appearance of fault, no matter be grey degree type fault or structural type fault, grey value profile rule in texture primitive must be destroyed.Therefore fabric defects detection can be started with from fabric self structure study completely.
Summary of the invention
The object of this invention is to provide a kind of method of carrying out defect detection based on fabric self structure, effectively can detect gray scale saltant type fault, structural mutation type fault and Combination fault, improve the accuracy of defect detection method, reliability and applicability.
The technical solution adopted in the present invention is, a kind of method of carrying out defect detection based on fabric self structure, and concrete detecting step is:
Step 1: pre-service is carried out to the greige goods fabric image gathered;
Step 2: defect image eigenwert strengthens;
Step 3: structure average image, carries out denoising to the defect image after strengthening;
Step 4: adopt maximum between-cluster variance thresholding method to split defect image;
Step 5: the detection being carried out fabric defects by the method for area filtering.
Feature of the present invention is also,
In step 1, Image semantic classification comprises image enhaucament and image denoising.
The process of image enhaucament is: subwindow image being divided into p × p size of non-overlapping copies, and p is the multiple of 8; Calculate the average MV of each subwindow gray scale i,j, that is:
MV i , j = Σ m = 0 p Σ n = 0 p G i + m , j + n
In formula, MV i,jfor the gray average of image i capable j row pixel, G i,jfor the gray-scale value of image i capable j row pixel;
Utilize interpolation formula (1) to carry out bilinear interpolation, extend to original size, obtain average image:
G p * i + m , p * j + n = MV i , j + m p * ( MV i + 1 , j - MV i , j ) + n p ( MV i , j + 1 - MV i , j ) + m * n p × p ( MV i + 1 , j + 1 + MV i , j - MV i + 1 , j - MV i , j + 1 ) - - - ( 1 )
In formula, m, n ∈ [0, p-1];
Finally, utilize respective pixel gray scale difference between original image and average image to construct required zero-mean image, namely complete image enhaucament.
The process of image denoising is: suppose I=f (x, y) for there being the image of N × N number of pixel, its smoothing operator r=h (i, j), size is K × K, the image I ' that the width obtained after utilizing formula (2) smoothing process is new=g (x, y), realize image denoising, that is:
g ( x , y ) = 1 M Σ m = - K / 2 K / 2 Σ n = - K / 2 K / 2 f ( x + m , y + n ) * h ( m , n ) - - - ( 2 )
In formula: x, y ∈ [0, N-1]; M is weights sum in operator.
In step 2, the process that defect image eigenwert strengthens is:
Step 2.1: adopt autocorrelation function computed image in the horizontal direction with the auto-correlation function value of vertical direction, that is:
C x , 0 = 1 M * ( N - x ) Σ i = 1 N - x Σ j = 1 M G i , j * G i + x , j 1 M * N Σ i = 1 N Σ j = 1 M G i , j 2 - - - ( 3 )
C 0 , y = 1 N * ( M - y ) Σ i = 1 N Σ j = 1 M - y G i , j * G i , j + y 1 M * N Σ i = 1 N Σ j = 1 M G i , j 2 - - - ( 4 )
In formula, C x, 0for the auto-correlation function value of horizontal direction; C 0, yfor the auto-correlation function value of vertical direction; M*N represents the size of image, G i,jrepresent the gray-scale value of pixel, cycle T x, T yfor the size of texture primitive;
Step 2.2: textile image to be detected is divided into T x× T ysubwindow, utilizes following formula to calculate the gray-scale value of pixel in son calculating primitive template:
M i , j = 1 n Σ k = 1 n W i , j k
In formula, M i,jrepresent the gray-scale value of pixel in primitive template, represent the gray-scale value of pixel in a kth subwindow, n represents the number of subwindow;
Step 2.3: textile image to be detected is divided into T again x× T ysubwindow, by formula S k i,j=| W k i,j-M i,j| calculate the difference S between subwindow and primitive template k i,j, utilize formula (5) to all S k i,jafter carrying out the process of linear gauge generalized, obtain fault and strengthen image, that is:
S i , j ′ = ( S k i , j - M i n ( S 1 i , j , S 2 i , j , ... , S n i , j ) ) * 255 M a x ( S 1 i , j , S 2 i , j , ... , S n i , j ) - M i n ( S 1 i , j , S 2 i , j , ... , S n i , j ) - - - ( 5 )
In formula, S ' i,jfor fault strengthens the gray-scale value of image pixel; Max (), Min () are respectively maximal value and minimum value function.
In step 3, the process of image denoising process is:
Step 2 gained image is divided into the subwindow of p × p, calculates the average MV of each window gray scale i,j: MV i , j = Σ m = 0 p Σ n = 0 p G i + m , j + m ,
In formula, G i,jfor the gray-scale value of image pixel, utilize interpolation formula (6) to carry out bilinear interpolation, extend to original size, obtain average image:
G p * i + m , p * j + n = MV i , j + m p * ( MV i + 1 , j - MV i , j ) + n p ( MV i , j + 1 - MV i , j ) + m * n p × p ( MV i + 1 , j + 1 + MV i , j - MV i + 1 , j - MV i , j + 1 ) - - - ( 6 )
In formula, m, n ∈ [0, p-1].
In step 4, the concrete steps that defect image carries out splitting are:
Image level gray scale is made to be L, to each gray-scale value x, p xrepresent the frequency that x occurs, now segmentation threshold is t, then gray scale is divided into two classes: C1=(0,1 ..., t); C2=(t+1, t+2 ..., L); The probability that then each class occurs is: w 1 ( t ) = Σ x = 1 t p x With w 2 ( t ) = Σ x = t + 1 L - 1 p x = 1 - w 1 ( t ) ; The average gray of each class is: u 1 = u ( t ) w 1 ( t ) With u 2 = u - u ( t ) 1 - w 1 ( t ) , Wherein u ( t ) = Σ x = 1 t xp x , u = Σ x = 1 L - 1 xp x ; Then inter-class variance is:
σ 2(t)=w 1(u-u 1) 2+w 2(u 2-u) 2=w 1w 2(u 2-u 1) 2(7)
Make σ 2t () gets the t of maximal value, be exactly the optimal threshold of segmentation object and background, and what gray-scale value was greater than t is target area to be split.
In step 5, the detailed process of fabric defects detection is:
Adopt the connected region of the bianry image of eight connectivity method after step 4 is split being searched for non-zero pixels value, the connected region label running into first non-zero pixels value is 1, and the number recording this area pixel point is M1; By that analogy, to the last a non-zero pixels region labeling is N, and the number of area pixel is MN; Here Mi is exactly the area of i-th connected region; If the textile image that to be detected, the area of connected regions all after Iamge Segmentation is all less than some threshold values, then this width image does not just have fault; Otherwise if there is the connected region that area is greater than threshold value after Iamge Segmentation, then this width image comprises fault, the position of fault, size just can be greater than the connected region position of threshold value by these and area is determined.
The invention has the beneficial effects as follows, the present invention starts with from fabric self structure, utilize texture primitive template to strengthen the method for defect regions, and adopt zero-mean image to complete to strengthen defect image, effectively can strengthen gray scale mutability fault, structural mutation fault and Combination defect regions, and the restriction that classic method can be avoided need to train without defect image standard, improve the accuracy of defect detection method, reliability and applicability.
Accompanying drawing explanation
Fig. 1 is a kind of process flow diagram carrying out defect detection method based on fabric self structure of the present invention;
Fig. 2 is the periodicity figure of textile image texture;
Fig. 3 is the design sketch utilizing the inventive method to carry out crapand defect detection;
Fig. 4 is the design sketch utilizing the inventive method to carry out flotation line defect detection;
Fig. 5 is the design sketch utilizing the inventive method to carry out broken yarn defect detection;
Fig. 6 is the design sketch utilizing the inventive method to carry out watermark stain defect detection.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
The present invention a kind ofly carries out the flow process of defect detection method as shown in Figure 1 based on fabric self structure, and concrete steps are as follows:
Step 1: Image semantic classification:
Image semantic classification mainly comprises enhancing and the image denoising of image;
The present invention utilizes zero-mean image enchancing method.First image is divided subwindow one by one, in order to piece image being divided into an integer subwindow, the size of subwindow should be the approximate number of image size; Subwindow can not be too small in addition, should be larger than the size of fault, thus reach the object of fault enhancing.Comprehensive above 2 points, the size of the subwindow that the present embodiment adopts is 16 × 16.The size of subwindow calculates the average MV of each window gray scale after determining i,j, g in formula i,jrepresent the gray-scale value of pixel, and carry out down-sampling; Utilize interpolation formula (1) to carry out bilinear interpolation, extend to original size, obtain average image:
G 16 * i + m , 16 * j + n = MV i , j + m 16 * ( MV i + 1 , j - MV i , j ) + n 16 ( MV i , j + 1 - MV i , j ) + m * n 256 ( MV i + 1 , j + 1 + MV i , j - MV i + 1 , j - MV i , j + 1 ) - - - ( 1 )
Finally, original image is utilized just to construct required zero-mean image with the difference of the average image obtained by interpolation.Zero-mean image can not only increase the intensity contrast of image, and due to the average of each subwindow be zero, therefore, it is possible to effectively solve the light and shade difference problem caused because of illumination.
Image denoising adopts the mean filter of 3 × 3.Mean filter adopts neighborhood averaging, assuming that a width has the image I=f (x of N × N number of pixel, y), smoothing operator r=h (i, j), its size is K × K, the image I ' that the width obtained after smoothing processing is new=g (x, y), so there is formula (2) to set up:
g ( x , y ) = 1 M Σ m = - K / 2 K / 2 Σ n = - K / 2 K / 2 f ( x + m , y + n ) * h ( m , n ) - - - ( 2 )
In formula: x, y ∈ [0, N-1]; M is weights sum in operator.
Step 2: the enhancing of defect image eigenwert, specifically implements according to the following steps
Step 2.1: determine texture primitive size.Determine texture primitive size.Fabric is interwoven according to certain organization rule by through weft yarn, and warp, broadwise all have certain periodicity, and textile image belongs to the orderly texture image of rule.Autocorrelator trace presents good periodicity, and vertical and horizontal one-period forms a texture primitive, as shown in Figure 2.The size of texture primitive adopts auto-correlation (Auto-correlation) function usually, and the autocorrelation function computing method of image level, vertical direction are:
C 0 , y = 1 N * ( M - y ) Σ i = 1 N Σ j = 1 M - y G i , j * G i , j + y 1 M * N Σ i = 1 N Σ j = 1 M G i , j 2 - - - ( 4 )
In formula, M*N represents the size of image, G i,jrepresent the gray-scale value of pixel, C x, 0, C 0, ythe auto-correlation function value of expression level, vertical direction, cycle T x, T yfor the size of texture primitive.
Step 2.2: the calculating of texture primitive template, after the size of texture primitive is determined, then calculates texture primitive template.Method is: original image is divided into T x× T ysubwindow, grey scale pixel value corresponding in all subwindows is averaged, and computing formula is: in formula, M i,jrepresent the gray-scale value of pixel in primitive template, represent the gray-scale value of pixel in a kth subwindow, n represents the number of subwindow.
Step 2.3: the enhancing of defect regions, the automatic detection of fabric defects needs constantly to slacken background, i.e. normal texture area information, simultaneously outstanding defect regions information, so that finally defect detection out.Fabric defect image to be detected is divided into T again x× T ysubwindow, by formula S k i,j=| W k i,j-M i,j| calculate the difference between subwindow and primitive template, then to all S k i,jcarry out the process of linear gauge generalized, disposal route is:
S i , j ′ = ( S k i , j - M i n ( S 1 i , j , S 2 i , j , ... , S n i , j ) ) * 255 M a x ( S 1 i , j , S 2 i , j , ... , S n i , j ) - M i n ( S 1 i , j , S 2 i , j , ... , S n i , j ) - - - ( 5 )
In formula, Max (), Min () are respectively maximal value and minimum value function, and we obtain fault enhancing image by this method.
Step 3: structure average image, detailed process is:
Defect image after enhancing, owing to having a large amount of high frequency noises, directly can not carry out binary segmentation, is carried out the method for stress release treatment by structure average image.The building method of average image is: image is divided into the subwindow of 8 × 8, calculates the average MV of each window gray scale i,j, and carry out down-sampling, then carry out bilinear interpolation, extend to original size, interpolation formula is such as formula shown in (6):
G 8 * i + m , 8 * j + n = MV i , j + m 8 * ( MV i + 1 , j - MV i , j ) + n 8 ( MV i , j + 1 - MV i , j ) + m * n 64 ( MV i + 1 , j + 1 + MV i , j - MV i + 1 , j - MV i , j + 1 ) - - - ( 6 )
Average image can eliminate high frequency noise information effectively, is convenient to next step defect segmentation, the average image of structure.
Step 4: the segmentation of defect image: adopt maximum between-cluster variance thresholding method method, specifically implement according to the following steps:
Maximum between-cluster variance thresholding method is also referred to as Otsu method, first based on the probability of happening of each gray level of histogram calculation, and with thresholding variables t, gray level is divided into two classes, then variance within clusters and the inter-class variance of each class is obtained, choose and make inter-class variance maximum, the minimum t of variance within clusters is as optimal threshold.
If image has L level gray scale, to each gray-scale value x, p xrepresent the frequency that x occurs, now segmentation threshold is t, then gray scale is divided into two classes: C1=(0,1 ..., t); C2=(t+1, t+2 ..., L).The probability that then each class occurs is: with w 2 ( t ) = Σ x = t + 1 L - 1 p x = 1 - w 1 ( t ) ; The average gray of each class is: u 1 = u ( t ) w 1 ( t ) With u 2 = u - u ( t ) 1 - w 1 ( t ) , Wherein then inter-class variance can be defined by formula:
σ 2(t)=w 1(u-u 1) 2+w 2(u 2-u) 2=w 1w 2(u 2-u 1) 2(7)
Make σ 2t () gets the t of maximal value, be exactly the optimal threshold of segmentation object and background, and what gray-scale value was greater than t is target area to be split.
Step 5: the detection of fault: some very little white portion of the image after segmentation is not fault, needs to adopt area filtering that these very little white portions are removed.The computing method of connected region area bianry image after singulation adopt eight connectivity method search for the connected region of non-zero pixels value, and the connected region label running into first non-zero pixels value is 1, and the number recording this area pixel point is M1.By that analogy, to the last a non-zero pixels region labeling is N, and the number of area pixel is MN.Here Mi is exactly the connected region area of requirement.Area be less than certain threshold value we just do not think that it is fault.
Principle of the present invention is: defect detection is actually a Texture Segmentation and identifying, because the texture structure at fault place is different from normal fabric in fabric, therefore, it is possible to they are detected.Fabric is interwoven according to certain organization rule by through weft yarn, and warp, broadwise all have certain periodicity, and therefore textile image belongs to the orderly texture image of rule.As shown in Figure 2, autocorrelator trace presents good periodicity, and vertical and horizontal one-period forms a texture primitive.In normal fabric image, in each texture primitive, the gray-scale value of respective pixel relatively, and defect regions, no matter be that gray scale saltant type fault is as greasy dirt, broken hole etc., or structural mutation type fault as and warp, loose warp etc., the gray-scale value of respective pixel and the larger change of the existence of normal fabric in texture primitive.Defect detection method based on the analysis of fabric self structure puts forward based on this principle just.First it comprise zero-mean image procossing and mean filter to the pre-service of textile image to be detected, then autocorrelation function determination texture primitive size is calculated, calculate texture primitive template, texture primitive template is utilized to realize the enhancing of defect regions information, then average image is constructed, utilize Otsu method to realize defect image segmentation, finally utilize area filtering to determine whether textile image to be detected contains the detection of fault and fault.Based on fabric self structure analyze defect detection method to structural mutation type fault (as crapand), as shown in Figure 3; Mixed type fault (as flotation line and broken yarn), is shown in Figure 4 and 5; Gray scale mutability fault (as watermark stain), is shown in Fig. 6; This method all has good segmentation effect to above-mentioned fault as can be seen from Figure, and in Fig. 3, crapand fault is split well and detects; Flotation line segmentation in Fig. 4 is also relatively good with Detection results; The broken yarn fault being exposed at fabric face in Fig. 5 is better detected; Watermark stain in same Fig. 6 is all effectively split and is detected.
Zero-mean image method of the present invention not only complete well to defect image strengthen requirement, and due to zero-mean image acquiring method simpler than histogram equalization method many, time efficiency is high; Start with from fabric self structure, utilize texture primitive template to strengthen the method for defect regions, effectively can strengthen gray scale mutability fault, structural mutation fault and Combination defect regions, and the restriction that classic method need be trained without defect image standard can be avoided; According to textile image texture own characteristic, start with from this very important visual feature of periodicity of image texture, propose the fabric defect detection method analyzed based on fabric self structure, to all kinds of fault, all there is good Detection results, improve the accuracy of defect detection method, reliability and applicability; Whole algorithm of the present invention does not have complex calculations, and time efficiency is high, can meet the needs that fabric defects real-time online detects.

Claims (8)

1. carry out a method for defect detection based on fabric self structure, it is characterized in that, concrete detecting step is:
Step 1: pre-service is carried out to the greige goods fabric image gathered;
Step 2: defect image eigenwert strengthens;
Step 3: structure average image, carries out denoising to the defect image after strengthening;
Step 4: adopt maximum between-cluster variance thresholding method to split defect image;
Step 5: the detection being carried out fabric defects by the method for area filtering.
2. a kind of method of carrying out defect detection based on fabric self structure according to claim 1, is characterized in that, in step 1, Image semantic classification comprises image enhaucament and image denoising.
3. a kind of method of carrying out defect detection based on fabric self structure according to claim 2, is characterized in that, the process of described image enhaucament is: subwindow image being divided into p × p size of non-overlapping copies, and p is the multiple of 8; Calculate the average MV of each subwindow gray scale i,j, that is:
MV i , j = Σ m = 0 p Σ n = 0 p G i + m , j + n ,
In formula, MV i,jfor the gray average of image i capable j row pixel, G i,jfor the gray-scale value of image i capable j row pixel;
Utilize interpolation formula (1) to carry out bilinear interpolation, extend to original size, obtain average image:
G p * i + m , p * j + n = MV i , j + m p * ( MV i + 1 , j - MV i , j ) + n p ( MV i , j + 1 - MV i , j ) + m * n p × p ( MV i + 1 , j + 1 + MV i , j - MV i + 1 , j - MV i , j + 1 ) , - - - ( 1 )
In formula, m, n ∈ [0, p-1];
Finally, utilize respective pixel gray scale difference between original image and average image to construct required zero-mean image, namely complete image enhaucament.
4. a kind of method of carrying out defect detection based on fabric self structure according to claim 2, it is characterized in that, the process of described image denoising is: suppose that I=f (x, y) is for there being the image of N × N number of pixel, its smoothing operator r=h (i, j), size is K × K, the image I ' that the width obtained after utilizing formula (2) smoothing process is new=g (x, y), realize image denoising, that is:
g ( x , y ) = 1 M Σ m = - K / 2 K / 2 Σ n = - K / 2 K / 2 f ( x + m , y + n ) * h ( m , n ) , - - - ( 2 )
In formula: x, y ∈ [0, N-1]; M is weights sum in operator.
5. a kind of method of carrying out defect detection based on fabric self structure according to claim 1, is characterized in that, in step 2, the process that defect image eigenwert strengthens is:
Step 2.1: adopt autocorrelation function computed image in the horizontal direction with the auto-correlation function value of vertical direction, that is:
C x , 0 = 1 M * ( N - x ) Σ i = 1 N - x Σ j = 1 M G i , j * G i + x , j 1 M * N Σ i = 1 N Σ j = 1 M G i , j 2 , - - - ( 3 )
C 0 , y = 1 N * ( M - y ) Σ i = 1 N Σ j = 1 M - y G i , j * G i , j + y 1 M * N Σ i = 1 N Σ j = 1 M G i , j 2 , - - - ( 4 )
In formula, C x, 0for the auto-correlation function value of horizontal direction; C 0, yfor the auto-correlation function value of vertical direction; M*N represents the size of image, G i,jrepresent the gray-scale value of pixel, cycle T x, T yfor the size of texture primitive;
Step 2.2: textile image to be detected is divided into T x× T ysubwindow, utilizes following formula to calculate the gray-scale value of pixel in son calculating primitive template:
M i , j = 1 n Σ k = 1 n W i , j k ,
In formula, M i,jrepresent the gray-scale value of pixel in primitive template, represent the gray-scale value of pixel in a kth subwindow, n represents the number of subwindow;
Step 2.3: textile image to be detected is divided into T again x× T ysubwindow, by formula S k i,j=| W k i,j-M i,j| calculate the difference S between subwindow and primitive template k i,j, utilize formula (5) to all S k i,jafter carrying out the process of linear gauge generalized, obtain fault and strengthen image, that is:
S i , j ′ = ( S k i , j - M i n ( S 1 i , j , S 2 i , j , ... , S n i , j ) ) * 255 M a x ( S 1 i , j , S 2 i , j , ... , S n i , j ) - M i n ( S 1 i , j , S 2 i , j , ... , S n i , j ) , - - - ( 5 )
In formula, S ' i,jfor fault strengthens the gray-scale value of image pixel; Max (), Min () are respectively maximal value and minimum value function.
6. a kind of method of carrying out defect detection based on fabric self structure according to claim 1, is characterized in that, in step 3, the process of image denoising process is:
Step 2 gained image is divided into the subwindow of p × p, calculates the average MV of each window gray scale i,j:
MV i , j = Σ m = 0 p Σ n = 0 p G i + m , j + n ,
In formula, G i,jfor the gray-scale value of image pixel;
Utilize interpolation formula (6) to carry out bilinear interpolation, extend to original size, obtain average image:
G p * i + m , p * j + n = MV i , j + m p * ( MV i + 1 , j - MV i , j ) + n p ( MV i , j + 1 - MV i , j ) + m * n p × p ( MV i + 1 , j + 1 + MV i , j - MV i + 1 , j - MV i , j + 1 ) , - - - ( 6 )
In formula, m, n ∈ [0, p-1].
7. a kind of method of carrying out defect detection based on fabric self structure according to claim 1, is characterized in that, in step 4, the concrete steps that defect image carries out splitting are:
Image level gray scale is made to be L, to each gray-scale value x, p xrepresent the frequency that x occurs, now segmentation threshold is t, then gray scale is divided into two classes: C1=(0,1 ..., t); C2=(t+1, t+2 ..., L); The probability that then each class occurs is: w 1 ( t ) = Σ x = 1 t p x With w 2 ( t ) = Σ x = t + 1 L - 1 p x = 1 - w 1 ( t ) ; The average gray of each class is: u 1 = u ( t ) w 1 ( t ) With u 2 = u - u ( t ) 1 - w 1 ( t ) , Wherein u ( t ) = Σ x = 1 t xp x , u = Σ x = 1 L - 1 xp x ; Then inter-class variance is:
σ 2(t)=w 1(u-u 1) 2+w 2(u 2-u) 2=w 1w 2(u 2-u 1) 2,(7)
Make σ 2t () gets the t of maximal value, be exactly the optimal threshold of segmentation object and background, and what gray-scale value was greater than t is target area to be split.
8. a kind of method of carrying out defect detection based on fabric self structure according to claim 1, is characterized in that, in step 5, the detailed process of fabric defects detection is:
Adopt the connected region of the bianry image of eight connectivity method after step 4 is split being searched for non-zero pixels value, the connected region label running into first non-zero pixels value is 1, and the number recording this area pixel point is M1; By that analogy, to the last a non-zero pixels region labeling is N, and the number of area pixel is MN; Here Mi is exactly the area of i-th connected region; If the textile image that to be detected, the area of connected regions all after Iamge Segmentation is all less than some threshold values, then this width image does not just have fault; Otherwise if there is the connected region that area is greater than threshold value after Iamge Segmentation, then this width image comprises fault, the position of fault, size just can be greater than the connected region position of threshold value by these and area is determined.
CN201510573718.4A 2015-09-10 2015-09-10 Defect point detection method on basis of self structure of fabric Pending CN105261003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510573718.4A CN105261003A (en) 2015-09-10 2015-09-10 Defect point detection method on basis of self structure of fabric

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510573718.4A CN105261003A (en) 2015-09-10 2015-09-10 Defect point detection method on basis of self structure of fabric

Publications (1)

Publication Number Publication Date
CN105261003A true CN105261003A (en) 2016-01-20

Family

ID=55100676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510573718.4A Pending CN105261003A (en) 2015-09-10 2015-09-10 Defect point detection method on basis of self structure of fabric

Country Status (1)

Country Link
CN (1) CN105261003A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844657A (en) * 2016-04-26 2016-08-10 江南大学 Dual-channel fabric fault detection method based on two-dimensional empirical mode decomposition
CN107037050A (en) * 2017-04-05 2017-08-11 东华大学 A kind of method for automatic measurement of textile image Texture-period
CN107274409A (en) * 2017-06-21 2017-10-20 江阴芗菲服饰有限公司 woven fabric defect segmentation method
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
CN108090894A (en) * 2017-11-24 2018-05-29 浙江理工大学 Based on the fabric defect detection method apart from adaptation function and perception hash algorithm
CN108364291A (en) * 2018-03-13 2018-08-03 钟国韵 Grey cloth rapid detection method based on computer vision technique
CN108961210A (en) * 2018-05-24 2018-12-07 上海集成电路研发中心有限公司 A method of judging whether image passes through algorithm process
CN109035195A (en) * 2018-05-08 2018-12-18 武汉纺织大学 A kind of fabric defect detection method
CN109242858A (en) * 2018-07-18 2019-01-18 浙江理工大学 Pattern primitive dividing method is recycled based on the matched textile printing of adaptive template
CN109829906A (en) * 2019-01-31 2019-05-31 桂林电子科技大学 It is a kind of based on the workpiece, defect of the field of direction and textural characteristics detection and classification method
CN110473190A (en) * 2019-08-09 2019-11-19 江南大学 A kind of adaptive fabric defect detection method based on scale
CN111369480A (en) * 2020-01-20 2020-07-03 凌云光技术集团有限责任公司 Method and device for processing periodic texture
CN113899749A (en) * 2020-06-22 2022-01-07 东华大学 Wire stripping and knotting detection device and wire stripping and knotting detection method
CN114627116A (en) * 2022-05-13 2022-06-14 启东新朋莱纺织科技有限公司 Fabric defect identification method and system based on artificial intelligence
CN114723705A (en) * 2022-03-31 2022-07-08 海门市恒创织带有限公司 Cloth flaw detection method based on image processing
CN115082460A (en) * 2022-08-18 2022-09-20 聊城市恒丰电子有限公司 Weaving production line quality monitoring method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1948603A (en) * 2006-11-10 2007-04-18 苏州大学 Method of identifying woven fabric defect
CN102221559A (en) * 2011-03-05 2011-10-19 河海大学常州校区 Online automatic detection method of fabric defects based on machine vision and device thereof
CN102818809A (en) * 2012-09-05 2012-12-12 杭州瑞利测控技术有限公司 Gray cloth defect on-line detecting system based on machine vision and achieving method
CN103207186A (en) * 2013-04-08 2013-07-17 北京经纬纺机新技术有限公司 Identification method for defect detection of automatic cloth inspecting machine and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1948603A (en) * 2006-11-10 2007-04-18 苏州大学 Method of identifying woven fabric defect
CN102221559A (en) * 2011-03-05 2011-10-19 河海大学常州校区 Online automatic detection method of fabric defects based on machine vision and device thereof
CN102818809A (en) * 2012-09-05 2012-12-12 杭州瑞利测控技术有限公司 Gray cloth defect on-line detecting system based on machine vision and achieving method
CN103207186A (en) * 2013-04-08 2013-07-17 北京经纬纺机新技术有限公司 Identification method for defect detection of automatic cloth inspecting machine and system thereof

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
步红刚 等: "基于AR谱分析的织物瑕疵自动检测", 《数据采集与处理》 *
王钢 等: "采用奇异值分解的机织物瑕疵检测算法", 《纺织学报》 *
祝双武 等: "基于纹理结构分析的织物疵点检测方法", 《计算机应用》 *
祝双武、郝重阳: "基于纹理周期性分析的织物疵点检测方法", 《计算机工程与应用》 *

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844657B (en) * 2016-04-26 2018-07-17 江南大学 Binary channels fabric defect detection method based on two-dimensional empirical mode decomposition
CN105844657A (en) * 2016-04-26 2016-08-10 江南大学 Dual-channel fabric fault detection method based on two-dimensional empirical mode decomposition
CN107037050A (en) * 2017-04-05 2017-08-11 东华大学 A kind of method for automatic measurement of textile image Texture-period
CN107037050B (en) * 2017-04-05 2019-08-09 东华大学 A kind of method for automatic measurement of textile image Texture-period
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
WO2018233167A1 (en) * 2017-06-21 2018-12-27 江阴芗菲服饰有限公司 Woven fabric defect segmentation method
CN107274409A (en) * 2017-06-21 2017-10-20 江阴芗菲服饰有限公司 woven fabric defect segmentation method
CN108090894A (en) * 2017-11-24 2018-05-29 浙江理工大学 Based on the fabric defect detection method apart from adaptation function and perception hash algorithm
CN108090894B (en) * 2017-11-24 2020-09-08 浙江理工大学 Fabric defect detection method based on distance matching function and perceptual hash algorithm
CN108364291A (en) * 2018-03-13 2018-08-03 钟国韵 Grey cloth rapid detection method based on computer vision technique
CN109035195A (en) * 2018-05-08 2018-12-18 武汉纺织大学 A kind of fabric defect detection method
CN109035195B (en) * 2018-05-08 2021-11-30 武汉纺织大学 Fabric defect detection method
CN108961210A (en) * 2018-05-24 2018-12-07 上海集成电路研发中心有限公司 A method of judging whether image passes through algorithm process
CN108961210B (en) * 2018-05-24 2021-08-31 上海集成电路研发中心有限公司 Method for judging whether image is processed by algorithm
CN109242858A (en) * 2018-07-18 2019-01-18 浙江理工大学 Pattern primitive dividing method is recycled based on the matched textile printing of adaptive template
CN109242858B (en) * 2018-07-18 2021-01-15 浙江理工大学 Fabric printing cyclic pattern element segmentation method based on self-adaptive template matching
CN109829906A (en) * 2019-01-31 2019-05-31 桂林电子科技大学 It is a kind of based on the workpiece, defect of the field of direction and textural characteristics detection and classification method
CN110473190B (en) * 2019-08-09 2022-03-04 江南大学 Adaptive fabric defect detection method based on scale
CN110473190A (en) * 2019-08-09 2019-11-19 江南大学 A kind of adaptive fabric defect detection method based on scale
CN111369480A (en) * 2020-01-20 2020-07-03 凌云光技术集团有限责任公司 Method and device for processing periodic texture
CN111369480B (en) * 2020-01-20 2023-10-24 凌云光技术股份有限公司 Method and device for processing periodic texture
CN113899749A (en) * 2020-06-22 2022-01-07 东华大学 Wire stripping and knotting detection device and wire stripping and knotting detection method
CN114723705A (en) * 2022-03-31 2022-07-08 海门市恒创织带有限公司 Cloth flaw detection method based on image processing
CN114723705B (en) * 2022-03-31 2023-08-22 深圳市启灵图像科技有限公司 Cloth flaw detection method based on image processing
CN114627116A (en) * 2022-05-13 2022-06-14 启东新朋莱纺织科技有限公司 Fabric defect identification method and system based on artificial intelligence
CN114627116B (en) * 2022-05-13 2022-07-15 启东新朋莱纺织科技有限公司 Fabric defect identification method and system based on artificial intelligence
CN115082460A (en) * 2022-08-18 2022-09-20 聊城市恒丰电子有限公司 Weaving production line quality monitoring method and system

Similar Documents

Publication Publication Date Title
CN105261003A (en) Defect point detection method on basis of self structure of fabric
US11580647B1 (en) Global and local binary pattern image crack segmentation method based on robot vision
CN103871053B (en) Vision conspicuousness-based cloth flaw detection method
CN103048329B (en) A kind of road surface crack detection method based on active contour model
CN108090894B (en) Fabric defect detection method based on distance matching function and perceptual hash algorithm
CN103530878B (en) A kind of edge extracting method based on convergence strategy
CN107578035A (en) Human body contour outline extracting method based on super-pixel polychrome color space
CN115082683A (en) Injection molding defect detection method based on image processing
CN108765402B (en) Non-woven fabric defect detection and classification method
CN104021561B (en) Fabric pilling image partition method based on wavelet transformation and morphology operations
CN103106645A (en) Recognition method for woven fabric structure
CN100505884C (en) A shed image division processing method
CN106780486A (en) A kind of Surface Defects in Steel Plate image extraction method
CN101515325A (en) Character extracting method in digital video based on character segmentation and color cluster
CN103604809A (en) Pattern cloth flaw online visual inspection method
CN103413314A (en) Textile defect detecting algorithm based on texture gradients
CN101493933B (en) Partial structure self-adapted image diffusing and de-noising method
Hoseini et al. Fabric defect detection using auto-correlation function
CN109472259A (en) Conspicuousness detection method is cooperateed with based on energy-optimised image
CN113012124B (en) Shoe print hole and embedded object feature detection and description method
CN105719275A (en) Parallel combination image defect segmentation method
CN110084246A (en) A kind of yarn dyed fabric fault automatic identifying method
CN111091134A (en) Method for identifying tissue structure of colored woven fabric based on multi-feature fusion
CN114972397A (en) Infrared image defect contour detection method for wind power blade composite material
CN109507193A (en) A kind of fabric defects detection method based on local contrast enhancing and binary pattern

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: 20160120