CN103926255A - Method for detecting surface defects of cloth based on wavelet neural network - Google Patents
Method for detecting surface defects of cloth based on wavelet neural network Download PDFInfo
- Publication number
- CN103926255A CN103926255A CN201410173860.5A CN201410173860A CN103926255A CN 103926255 A CN103926255 A CN 103926255A CN 201410173860 A CN201410173860 A CN 201410173860A CN 103926255 A CN103926255 A CN 103926255A
- Authority
- CN
- China
- Prior art keywords
- sigma
- gabor
- theta
- image
- omega
- 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
Links
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
The invention provides an online visual method for detecting surface defects of cloth. The detecting method is characterized in that the information such as width and direction of the surface textures of the cloth can be effectively extracted by combing Gabor filter and the wavelet neural network, the optimal solution of the same kind of cloth is obtained, then the Gabor filter is set up to perform online real-time detection, and the speed and the accuracy of the online detection can be ensured. A plurality of defects such as block defects and linear defects can be detected accurately and efficiently by using odd symmetry and even symmetry Gabor filters separately. In the circumstance of performing high-speed and real-time image acquisition by using a linear array camera, the detecting speed can be improved efficiently and the undetected rate and false detecting rate can be lowered.
Description
Technical field
The present invention relates to a kind of Fabric Defect real-time vision detection method based on machine vision, specifically refer to that one is under array light source, cloth surface flaw industry spot high speed being transmitted by line-scan digital camera detects the also image detecting method of instant recording.
Background technology
In industrial processes, along with improving constantly of technical merit, market also promotes again and again to the requirement of product quality.In textile industry, the quality testing of cloth requires along with this development trend is further strict.But because textile output continues to increase, production line industrialization level promotes, traditional manual detection method has not caught up with the speed of automation development, be limited by supervisory personnel's subjective factor and the state of mind, and exist the inferior positions such as desk checking speed is slow, cost is high, standardization level is low, false drop rate is large, detecting quickly and accurately textile flaw becomes problem demanding prompt solution in production run.
In the face of such demand, some external large enterprises are in the industrial application that has had certain scale, main representative products has the IQ-TEX4 automatic on-line detecting system of EVS company of Israel, the Cyclops automatic on-line fabric detection system of BMS company of the U.S. etc., but with high costs, maintenance is difficult for, and does not generally promote and is suitable at home.At present, researcher mainly adopts based on methods such as statistical method, frequency domain converter technique, modellings cloth image is processed, in the hope of flaw accurately being detected, because cloth surface is with interference of texture, flaw kind is complicated, and correctly extracting defect areas becomes the Focal point and difficult point in cloth surface detection.
Due in testing process, go out cloth speed fast, cloth breadth is larger, accuracy of detection requires high, select high resolving power and be applicable to high speed acquisition process line-scan digital camera more and more become the detection mode of main flow as image acquisition sensor.
Summary of the invention
The object of the invention is to propose a kind of Fabric Defect detection method based on machine vision of highly versatile, replaces the manual detection method of traditional inefficiency.
For this object, the present invention is achieved through the following technical solutions:
Off-line state:
(1) utilize the flawless cloth image of line-scan digital camera Real-time Obtaining, the parameters such as transfer rate, collected by camera frequency and the camera aperture focal length of adjusting cloth, obtain flawless cloth image sequence in real time as sample.
(2) sample image obtaining is carried out to medium filtering processing to suppress noise remove noise spot, utilize the contrast of histogram equalization enhancing image to highlight texture.
(3) build three layers of Architecture of Feed-forward Neural Network, adopt the excitation function of an imaginary part Gabor small echo as hidden layer, build parameter vector group.
(4) utilize Levenberg-Marquardt (LM algorithm) to solve optimized parameter for each Gabor small echo, finally obtain mutually corresponding odd symmetry Gabor bank of filters and even symmetry Gabor bank of filters.
Presence:
(1) camera parameter of maintenance off-line state, Real-time Obtaining cloth image to be measured.Process and remove noise point by medium filtering, utilize histogram equalization to highlight the texture of cloth image, in each sampling period, gather cloth image formation image sequence and detect.
(2) the odd symmetry Gabor bank of filters obtaining during respectively with off-line training and even symmetry Gabor bank of filters, to picture filtering processing to be detected, detect block and wire flaw.
(3) the filtering result obtaining is carried out to fusion treatment, and to fused images smothing filtering and binaryzation, finally obtain defect areas.
The invention has the beneficial effects as follows: the invention provides a kind of image flaw detection method based on Gabor wave filter and wavelet neural network, texture information for cloth image can effectively extract, and utilize off-line training to shorten the execution time of algorithm, the odd symmetry Gabor wave filter building can well detect block flaw, even symmetry Gabor wave filter has very large advantage in the time detecting linear edge, in the face of different classes of flaw can ensure to be detected as power.Under the condition with line-scan digital camera high speed and real time sampling image, can effectively improve detection speed, reduce undetected and false drop rate.
Brief description of the drawings
Fig. 1 total system design of graphics of the present invention
Fig. 2 algorithm overall flow of the present invention figure
Embodiment
For making the object, technical solutions and advantages of the present invention etc. clearer, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
Basic object of the present invention is the surface blemish of inspection cloth, is divided into off-line training process and online testing process, and as shown in Figure 1, algorithm overall flow as shown in Figure 2 for the constructed in hardware of device.In off-line training process, by indefectible sample image is carried out to wavelet network algorithm process, and utilize the optimizing of LM algorithm iteration to obtain optimized parameter group, construct corresponding odd symmetry Gabor bank of filters and even symmetry Gabor bank of filters.In online testing process, utilize the bank of filters obtaining to treat detected image and carry out filtering processing, then image co-registration, defect areas after the disposal of gentle filter, finally obtained.
Further, off-line training process specific implementation step is:
(1) according to desired perching precision and speed, set cloth transfer rate, camera sample frequency, adjusts camera position etc., gathers a series of images sequence as sample image.
(2.1) utilize medium filtering to do denoising to the sample image obtaining.
(2.2) image after filtering is done to histogram equalization processing.
Gray level r in piece image
kthe probability occurring is approximately:
Wherein n be image pixel and, n
kthat in image, gray level is r
knumber of pixels, L is gray level sum possible in image.Have the transforming function transformation function of output gray level sk to be:
Can be r by gray level in input picture by this transforming function transformation function
keach pixel to be mapped to gray level in output image be s
krespective pixel.
(3) build wavelet neural network.
Build three layers of Architecture of Feed-forward Neural Network.Making a secondary gray level image is f (x, y), the location label that wherein (x, y) is pixel, and f is corresponding pixel value, using Gabor wavelet network to approach this image has following representation:
Wherein, wi is that i hidden node is to the weight between output node
with
for the translation parameters in coordinate axis,
with
be the radial frequency bandwidth of i hidden node Gabor small echo, θ
ibe the anglec of rotation of i Gabor small echo,
centered by frequency.
These parameters form parameter vector
(4) utilize LM algorithm to obtain optimized parameter group, obtain Optimal Gabor Filters group.
(4.1) the parameter vector group obtaining is carried out to optimizing, the training process of whole network can be expressed as
optimizing makes the minimized process of energy function exactly.
Because Gabor basis function is nonopiate, need to adopt LM algorithm to carry out iteration training and obtain optimized parameter.
Step is as follows:
N=1, uses LM algorithm to find optimal value
N=2,
under constant prerequisite, find optimal value with LM algorithm
I, N=i, ensureing η
1, η
2..., η
i-1under constant prerequisite, find optimal value with LM algorithm
(4.2) such Gabor filter form that just obtains an even symmetry:
Odd symmetric Gabor filter form:
Online testing process specific implementation step is:
(1) camera parameter of maintenance off-line state, Real-time Obtaining cloth image to be measured, gathers cloth image formation image sequence and detects in each sampling period
(2) process and remove noise point by medium filtering, utilize histogram equalization to highlight the texture of cloth image.
(3) to testing image process Gabor bank of filters filtering processing, by the each image co-registration obtaining, obtain defect areas.
(3.1) Gabor bank of filters testing image and off-line step being obtained is carried out filtering processing:
The Gabor filter form of even symmetry:
Odd symmetric Gabor filter form:
(3.2) be detected as power in order to improve, reduce erroneous judgement, need to merge the filtering result of two Gabor wave filters, with regard to Defect Detection, need to weaken background texture and strengthen the response of defect areas, first by the Output rusults (O of two wave filters
even(x, y), O
odd(x, y)) difference normalized:
(3.3) image is merged:
F(x,y)=O′
even(x,y)+O′
odd(x,y)-O′
even(x,y)×O′
odd(x,y)
To the image denoising processing obtaining, finally separate the bianry image that obtains highlighting flaw.
(4) if this two field picture no one be defect areas, do not preserve this image sequence.Continue to detect next frame image, if flaw appears in this two field picture, preserve this flaw image and positional information to structure and continue to detect lower piece image.
Claims (4)
1. the online visible detection method of a Fabric Defect, it is characterized in that: by the combination of Gabor wave filter and wavelet neural network, effectively extract the Width information of cloth surface texture, for same kind cloth, training is asked for and is built Gabor wave filter after optimum solution and carry out detecting in real time online; For different types of flaw, corresponding selection odd symmetry, even symmetry Gabor wave filter ensure that block flaw and wire flaw detect accurately and efficiently; Specifically comprise following step:
(1) structure of wavelet neural network in off-line learning process, obtains the parameter vector of cloth surface
Information;
(2) in off-line learning process, utilize LM algorithm iteration to ask for optimized parameter group, build Optimal Gabor Filters group;
(3) in online testing process, testing image is passed through to Gabor bank of filters filtering processing, by the each image co-registration obtaining, obtain defect areas.
2. a kind of online visible detection method of cloth surface flaw according to claim 1, is characterized in that: accurately the asking for of parameter vector in described step (1), comprises the following steps:
Build three layers of Architecture of Feed-forward Neural Network, establishing a width gray level image is f (x, y), the location label that wherein (x, y) is pixel, and f is corresponding pixel value, using Gabor wavelet network to approach this image has following representation:
Wherein, w
ibe i hidden node to the weight between output node:
with
for the translation parameters in coordinate axis,
with
be the radial frequency bandwidth of i hidden node Gabor small echo, θ
ibe the anglec of rotation of i Gabor small echo,
centered by frequency;
These parameters form parameter vector
3. a kind of online visible detection method of cloth surface flaw according to claim 1, is characterized in that:
The structure of Optimal Gabor Filters group in described step (2), comprises the following steps:
The first step, the parameter vector group obtaining is carried out to optimizing, the training process of whole network can be expressed as
optimizing makes the minimized process of energy function exactly;
Because Gabor basis function is nonopiate, need to adopt LM algorithm to carry out iteration training and obtain optimized parameter;
Step is as follows:
1, N=1, uses LM algorithm to find optimal value
2, N=2,
under constant prerequisite, find optimal value with LM algorithm
……
I, N=i, ensureing η
1, η
2..., η
i-1under constant prerequisite, find optimal value with LM algorithm
Second step, build and obtain according to the optimized parameter group that obtains:
The Gabor filter form of even symmetry:
Odd symmetric Gabor filter form:
As the optimized parameter group of presence.
4. a kind of online visible detection method of cloth surface flaw according to claim 1, is characterized in that: accurately the obtaining of defect areas in described step (3), comprises the following steps:
First by the Output rusults (O of two wave filters
even(x, y), O
odd(x, y)) difference normalized:
Merge again:
F(x,y)=O′
even(x,y)+O′
odd(x,y)-O′
even(x,y)×O′
odd(x,y)
To the image denoising processing obtaining, finally separate the bianry image that obtains highlighting flaw.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410173860.5A CN103926255A (en) | 2014-04-26 | 2014-04-26 | Method for detecting surface defects of cloth based on wavelet neural network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410173860.5A CN103926255A (en) | 2014-04-26 | 2014-04-26 | Method for detecting surface defects of cloth based on wavelet neural network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103926255A true CN103926255A (en) | 2014-07-16 |
Family
ID=51144552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410173860.5A Pending CN103926255A (en) | 2014-04-26 | 2014-04-26 | Method for detecting surface defects of cloth based on wavelet neural network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103926255A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104458766A (en) * | 2014-12-31 | 2015-03-25 | 江南大学 | Cloth surface blemish detection method based on structure texture method |
CN104751472A (en) * | 2015-04-10 | 2015-07-01 | 浙江工业大学 | Fabric defect detection method based on B-spline wavelets and deep neural network |
CN105931243A (en) * | 2016-04-26 | 2016-09-07 | 江南大学 | Fabric defect detection method based on monogenic wavelet analysis |
CN107843741A (en) * | 2017-12-13 | 2018-03-27 | 中国地质大学(武汉) | A kind of cloth movement velocity measurement apparatus and method based on line array CCD |
CN108760750A (en) * | 2018-05-24 | 2018-11-06 | 安徽富煌科技股份有限公司 | A kind of multi-mode Fabric Defect care testing device |
CN118096582A (en) * | 2024-04-25 | 2024-05-28 | 汉中群峰机械制造有限公司 | Intelligent metal forging quality detection method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102879401A (en) * | 2012-09-07 | 2013-01-16 | 西安工程大学 | Method for automatically detecting and classifying textile flaws based on pattern recognition and image processing |
CN103116351A (en) * | 2012-12-28 | 2013-05-22 | 福州科迪电子技术有限公司 | Spinning defective cloth detection camera and detection system thereof |
-
2014
- 2014-04-26 CN CN201410173860.5A patent/CN103926255A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102879401A (en) * | 2012-09-07 | 2013-01-16 | 西安工程大学 | Method for automatically detecting and classifying textile flaws based on pattern recognition and image processing |
CN103116351A (en) * | 2012-12-28 | 2013-05-22 | 福州科迪电子技术有限公司 | Spinning defective cloth detection camera and detection system thereof |
Non-Patent Citations (4)
Title |
---|
尚会超等: "织物表面疵点检测算法综述", 《中原工学院学报》 * |
李勇等: "基于机器视觉的坯布自动检测技术", 《纺织学报》 * |
步红刚等: "基于计算机视觉的织物疵点检测的近期进展", 《东华大学学报(自然科学版)》 * |
王新民: "基于小波和统计学习理论的布匹瑕疵检测与分类技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104458766A (en) * | 2014-12-31 | 2015-03-25 | 江南大学 | Cloth surface blemish detection method based on structure texture method |
CN104751472A (en) * | 2015-04-10 | 2015-07-01 | 浙江工业大学 | Fabric defect detection method based on B-spline wavelets and deep neural network |
CN104751472B (en) * | 2015-04-10 | 2017-06-23 | 浙江工业大学 | Fabric defect detection method based on B-spline small echo and deep neural network |
CN105931243A (en) * | 2016-04-26 | 2016-09-07 | 江南大学 | Fabric defect detection method based on monogenic wavelet analysis |
CN105931243B (en) * | 2016-04-26 | 2018-07-20 | 江南大学 | It is a kind of based on the fabric defect detection method for singly drilling wavelet analysis |
CN107843741A (en) * | 2017-12-13 | 2018-03-27 | 中国地质大学(武汉) | A kind of cloth movement velocity measurement apparatus and method based on line array CCD |
CN107843741B (en) * | 2017-12-13 | 2023-05-26 | 中国地质大学(武汉) | Cloth movement speed measuring device and method based on linear array CCD |
CN108760750A (en) * | 2018-05-24 | 2018-11-06 | 安徽富煌科技股份有限公司 | A kind of multi-mode Fabric Defect care testing device |
CN118096582A (en) * | 2024-04-25 | 2024-05-28 | 汉中群峰机械制造有限公司 | Intelligent metal forging quality detection method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103926255A (en) | Method for detecting surface defects of cloth based on wavelet neural network | |
US10803573B2 (en) | Method for automated detection of defects in cast wheel products | |
CN104458766B (en) | A kind of cloth surface flaw detection method based on structural texture method | |
CN103234976B (en) | Based on the online visible detection method of tricot machine Fabric Defect of Gabor transformation | |
CN103529051B (en) | A kind of Woven textiles flaw automatic on-line detection method | |
CN108765402B (en) | Non-woven fabric defect detection and classification method | |
CN102854191A (en) | Real-time visual detection and identification method for high speed rail surface defect | |
CN102974551A (en) | Machine vision-based method for detecting and sorting polycrystalline silicon solar energy | |
CN106780464A (en) | A kind of fabric defect detection method based on improvement Threshold segmentation | |
Arikan et al. | Surface defect classification in real-time using convolutional neural networks | |
CN104134211A (en) | Band steel defect detection method based on multi-resolution filtering of Gaussian filter | |
CN104048966B (en) | The detection of a kind of fabric defect based on big law and sorting technique | |
CN109239073A (en) | A kind of detection method of surface flaw for body of a motor car | |
CN104199823A (en) | Fabric defect dynamic detection method based on visual data drive | |
CN104952754A (en) | Coated silicon chip sorting method based on machine vision | |
CN110020691A (en) | LCD screen defect inspection method based on the training of convolutional neural networks confrontation type | |
CN116228651A (en) | Cloth defect detection method, system, equipment and medium | |
CN115205209A (en) | Monochrome cloth flaw detection method based on weak supervised learning | |
CN104240252A (en) | Detecting Algorithm for cracks of surface of high-temperature billet of machine vision bar | |
CN117825393A (en) | Online monitoring system and method for automatic production line of polaroid | |
CN112614113A (en) | Strip steel defect detection method based on deep learning | |
CN111028250A (en) | Real-time intelligent cloth inspecting method and system | |
CN112150416A (en) | Coating defect detection system based on deep learning | |
CN111899221B (en) | Appearance defect detection-oriented self-migration learning method | |
Xia et al. | A Real-time Unsupervised Two-stage Framework for Fabric Defect Detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140716 |