CN112634194A - Self-learning detection method for fabric defects in warp knitting process - Google Patents

Self-learning detection method for fabric defects in warp knitting process Download PDF

Info

Publication number
CN112634194A
CN112634194A CN202011125372.9A CN202011125372A CN112634194A CN 112634194 A CN112634194 A CN 112634194A CN 202011125372 A CN202011125372 A CN 202011125372A CN 112634194 A CN112634194 A CN 112634194A
Authority
CN
China
Prior art keywords
model
training
defects
fabric
computer
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
CN202011125372.9A
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.)
Tianjin University
Original Assignee
Tianjin 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 Tianjin University filed Critical Tianjin University
Priority to CN202011125372.9A priority Critical patent/CN112634194A/en
Publication of CN112634194A publication Critical patent/CN112634194A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0008Industrial image inspection checking presence/absence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/181Segmentation; Edge detection involving edge growing; involving edge linking
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details

Landscapes

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

Abstract

The invention relates to a self-learning detection method for fabric defects in a warp knitting process, which is divided into two parts of model training and fabric defect detection, and meanwhile, a training model is repeatedly trained and updated in the defect detection process, and the method comprises the following steps: the camera starts to acquire and obtain image data, and at the moment, in a system learning stage, the system continuously acquires a series of pictures and imports a GMM (Gaussian mixture model) to perform iterative solution of model parameters; after the model is manufactured, a detection stage is started, at the moment, after a camera collects data, a computer firstly detects whether defects exist in a current picture or not based on a previous training model, if the defects exist, the computer alarms or stops the computer, and if the defects do not exist, the current picture is added into a training network, and the training model is updated.

Description

Self-learning detection method for fabric defects in warp knitting process
Technical Field
The invention relates to a self-learning detection algorithm for fabric defects in a warp knitting process.
Background
Warp knitting machines are a type of common textile equipment, and are widely applied to the textile industry due to the advantages of strong applicability, high yield and the like. However, during the weaving process of the warp knitting machine, yarn breakage is inevitably generated to form defects on the surface of the fabric, and finally the quality of the finished fabric is seriously influenced. The method has the advantages that the online detection of the fabric defects in the weaving process is an effective means for improving the yield of the textile products, on one hand, the defects can be immediately repaired when generated, meanwhile, the fabric defect positions can be pre-marked, the subsequent defect treatment is facilitated, and along with the development of the textile industry towards the direction of automation and intellectualization, higher requirements are put forward on the online detection of the automatic fabric defects.
The traditional online detection algorithm for the fabric defects is based on the shooting data of the woven fabric surface, and the detection is realized by analyzing the fabric texture through the computer vision technology. However, this method of fabric defect detection has the following problems:
(1) in terms of algorithm applicability, the method for realizing fabric defect detection based on fabric texture analysis needs to process fabric image data, so that a part of exposed areas of the fabric are required to be used for image acquisition after the fabric is woven and formed, and the existing warp knitting machines are shielded by mechanical structures after the fabric is woven and formed, so that the method is not strong in applicability.
(2) In terms of algorithm portability, as warp knitting machine textile technologies are various and fabric texture structures are different, the detection algorithm applicable to the same texture structure fabric is not necessarily applicable to other fabrics, namely, the portability of the method for realizing fabric defect detection based on fabric texture analysis is not strong.
(3) From the stability of the algorithm, in the weaving process of the warp knitting machine, the fabric with the same texture structure may have differences due to the influence of external illumination change, cloth tension and the like, so that the algorithm may fail or generate a large amount of false detections along with the lapse of time, and the stability is not strong.
Disclosure of Invention
Aiming at the problems, the invention aims to provide a self-learning detection algorithm for fabric defects in a warp knitting process, which realizes fabric defect detection in the weaving process, thereby improving the detection efficiency and reducing the defective rate and the production cost.
In order to achieve the purpose, the invention adopts the following technical scheme:
a self-learning detection method for fabric defects in a warp knitting process is divided into two parts of model training and fabric defect detection, and meanwhile, in the defect detection process, a training model is repeatedly trained and updated, and the method comprises the following steps: the camera starts to acquire and obtain image data, and at the moment, in a system learning stage, the system continuously acquires a series of pictures and imports a GMM (Gaussian mixture model) to perform iterative solution of model parameters; after the model is manufactured, a detection stage is started, at the moment, after a camera collects data, a computer firstly detects whether defects exist in a current picture or not based on a previous training model, if the defects exist, the computer alarms or stops the computer, and if the defects do not exist, the current picture is added into a training network, and the training model is updated.
Due to the adoption of the technical scheme, the invention has the following advantages:
(1) the invention carries out image processing based on the data of the knitting area of the warp knitting machine, reduces the requirements on the mechanical structure of the warp knitting machine and the difficulty of data acquisition, and is suitable for all warp knitting machines.
(2) The method is based on a self-learning mode, carries out defect detection based on a defect-free data training result, is suitable for all equipment of textile technology, and has strong transportability;
(3) the invention updates the training model in real time, avoids the influence of external environment transformation on the detection result, and has higher algorithm stability.
Drawings
FIG. 1 is a detailed image data acquired by the present invention.
FIG. 2 is a flow chart of the fabric defect on-line detection algorithm of the present invention.
FIG. 3 is a training model used in the present invention.
The reference numbers in the figures illustrate: 1, data of a defect-free template; 2, data to be detected with defects;
Detailed Description
The invention is described below with reference to the figures and examples.
Fig. 1 is image data specifically targeted by the present invention, where 1 is a defect-free template picture, 2 is a picture to be detected with defects, and the position of a rectangular area in the picture is the position of a defect. In a specific image processing process, defect detection is realized by comparing data in a rectangular area.
The specific detection steps of the algorithm are divided into two parts, namely model training and fabric defect detection, as shown in FIG. 2, and meanwhile, the training model is updated in real time in the defect detection process. The specific flow is that after the system is started, the camera starts to acquire image data, and at the moment, the system is in a system learning stage, and the system analyzes and processes the image data based on the convolutional neural network to obtain a training model. After the model is manufactured, a detection stage is started, at the moment, after a camera collects data, a computer firstly detects whether defects exist in a current picture or not based on a previous training model, if the defects exist, the computer alarms or stops, and if the defects do not exist, the current picture is added into a training network to realize the updating of the training model.
The training model used by the algorithm is shown in fig. 3. Based on the non-broken yarn picture sequence, the method firstly carries out convolution operation on the picture sequence so as to carry out local perception on the picture. Next, data compression is performed through a pooling operation to reduce over-fitting and improve picture fault tolerance. After convolution and pooling for many times, the picture characteristics are highlighted, and finally whether the picture has defects or not is judged through the full connection layer.
The invention is described below with reference to the figures and examples.
In fig. 1, 1 is a defect-free template picture, 2 is a picture to be detected with defects, a rectangular region in the picture is the position of the defect, in the learning process, a gaussian mixture model is specifically used for training, and the gaussian mixture model is specifically expressed as:
Figure RE-GDA0002938620680000021
in the formula, x represents image data, p (x) represents the probability that the current image data is consistent with the defect-free data, K represents the number of Gaussian models, and pikThe weight of the kth Gaussian model is defined, p (x | k) is a Gaussian probability density value, and the specific calculation formula is as follows:
Figure RE-GDA0002938620680000022
the result of the Gaussian probability density calculation depends on the input parameter x and the model internal parameter ukSum Σk. According to the Gaussian mixture model formula, the probability p (x) that the image data x is defect-free data can be output as long as the image data x is input, so that whether defects exist or not is judged. The system learning process is an optimization process of the Gaussian mixture model, namely pi is searched by iterationk、ukSum ΣkThe optimal solution of the parameters is solved by using an EM algorithm:
E step:
Figure RE-GDA0002938620680000031
wi(k) is a sample xiProbability generated by the kth gaussian model.
M step:
Figure RE-GDA0002938620680000032
Figure RE-GDA0002938620680000033
Figure RE-GDA0002938620680000034
The solving process firstly needs to set pik、ukSum ΣkThen repeatedly executing the E process and the M process until convergence, thereby obtaining pik、ukSum ΣkAnd (4) finishing training as a final result. At this time, when a test picture is input, the system can judge the test picture to obtain output P (x), so that whether defects exist in the current picture is judged, and detection is realized. When data needs to be expanded on the basis of original training data, the difference between the new expanded data and the original data is not large, so that the original pi is usedk、ukSum ΣkIteration is performed as an initial value, and the model can achieve rapid convergence.
The overall structural framework of the algorithm is divided into two parts, namely model training and fabric defect detection, as shown in FIG. 2, and meanwhile, in the defect detection process, the training model is repeatedly trained and updated. The specific flow is that after the system is started, the camera starts to acquire and obtain image data, and at the moment, in a system learning stage, the system continuously acquires a series of pictures and imports a GMM model to perform iterative solution of model parameters. After the model is manufactured, a detection stage is started, at the moment, after a camera collects data, a computer firstly detects whether defects exist in a current picture or not based on a previous training model, if the defects exist, the computer alarms or stops the computer, and if the defects do not exist, the current picture is added into a training network, and the training model is updated.

Claims (1)

1. A self-learning detection method for fabric defects in a warp knitting process is divided into two parts of model training and fabric defect detection, and meanwhile, in the defect detection process, a training model is repeatedly trained and updated, and the method comprises the following steps: the camera starts to acquire and obtain image data, and at the moment, in a system learning stage, the system continuously acquires a series of pictures and imports a GMM (Gaussian mixture model) to perform iterative solution of model parameters; after the model is manufactured, a detection stage is started, at the moment, after a camera collects data, a computer firstly detects whether defects exist in a current picture or not based on a previous training model, if the defects exist, the computer alarms or stops the computer, and if the defects do not exist, the current picture is added into a training network, and the training model is updated.
CN202011125372.9A 2020-10-20 2020-10-20 Self-learning detection method for fabric defects in warp knitting process Pending CN112634194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011125372.9A CN112634194A (en) 2020-10-20 2020-10-20 Self-learning detection method for fabric defects in warp knitting process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011125372.9A CN112634194A (en) 2020-10-20 2020-10-20 Self-learning detection method for fabric defects in warp knitting process

Publications (1)

Publication Number Publication Date
CN112634194A true CN112634194A (en) 2021-04-09

Family

ID=75303101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011125372.9A Pending CN112634194A (en) 2020-10-20 2020-10-20 Self-learning detection method for fabric defects in warp knitting process

Country Status (1)

Country Link
CN (1) CN112634194A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113567443A (en) * 2021-06-22 2021-10-29 浙江大豪科技有限公司 Control method and device of fabric flaw detection system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107169956A (en) * 2017-04-28 2017-09-15 西安工程大学 Yarn dyed fabric defect detection method based on convolutional neural networks
CN108288263A (en) * 2017-12-21 2018-07-17 江南大学 A kind of knitted fabric fault online test method based on Adaptive Neuro-fuzzy Inference
CN109509171A (en) * 2018-09-20 2019-03-22 江苏理工学院 A kind of Fabric Defects Inspection detection method based on GMM and image pyramid
CN109598712A (en) * 2018-11-30 2019-04-09 北京百度网讯科技有限公司 Quality determining method, device, server and the storage medium of plastic foam cutlery box
CN111062925A (en) * 2019-12-18 2020-04-24 华南理工大学 Intelligent cloth defect identification method based on deep learning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107169956A (en) * 2017-04-28 2017-09-15 西安工程大学 Yarn dyed fabric defect detection method based on convolutional neural networks
CN108288263A (en) * 2017-12-21 2018-07-17 江南大学 A kind of knitted fabric fault online test method based on Adaptive Neuro-fuzzy Inference
CN109509171A (en) * 2018-09-20 2019-03-22 江苏理工学院 A kind of Fabric Defects Inspection detection method based on GMM and image pyramid
CN109598712A (en) * 2018-11-30 2019-04-09 北京百度网讯科技有限公司 Quality determining method, device, server and the storage medium of plastic foam cutlery box
CN111062925A (en) * 2019-12-18 2020-04-24 华南理工大学 Intelligent cloth defect identification method based on deep learning

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113567443A (en) * 2021-06-22 2021-10-29 浙江大豪科技有限公司 Control method and device of fabric flaw detection system

Similar Documents

Publication Publication Date Title
Huang et al. Fabric defect segmentation method based on deep learning
CN111402197B (en) Detection method for colored fabric cut-parts defect area
CN103529051B (en) A kind of Woven textiles flaw automatic on-line detection method
CN109272500B (en) Fabric classification method based on adaptive convolutional neural network
CN113030108A (en) Coating defect detection system and method based on machine vision
CN106875373A (en) Mobile phone screen MURA defect inspection methods based on convolutional neural networks pruning algorithms
CN111260621B (en) Positioning and identifying method for surface defects of printed circuit board
CN111223093A (en) AOI defect detection method
CN109472769A (en) A kind of bad image defect detection method and system
CN109840900A (en) A kind of line detection system for failure and detection method applied to intelligence manufacture workshop
CN111861996A (en) Printed fabric defect detection method
CN112634194A (en) Self-learning detection method for fabric defects in warp knitting process
CN108802041A (en) A kind of method that the small sample set of screen detection is quickly remodeled
Zuo et al. Application of YOLO object detection network in weld surface defect detection
CN112907562A (en) MobileNet-based SMT defect classification algorithm
CN114972216A (en) Construction method and application of texture surface defect detection model
CN113112482A (en) PCB defect detection method based on attention mechanism network
CN111784691A (en) Textile flaw detection method
CN109871906B (en) Cop appearance defect classification method based on deep convolutional neural network
He et al. Research on Fabric defect detection based on deep fusion DenseNet-SSD network
Harreni et al. Novel Multipath Convolutional Neural Network Based Fabric Defect Detection System
CN108333183B (en) Yarn-dyed shirt cut piece defect detection method based on DCGAN and DCNN
Chen et al. Adaptive gabor filtering for fabric defect inspection
Zhang et al. An improved DCGAN for fabric defect detection
Xie et al. Defect detection of printed circuit board based on small target recognition network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210409