Zipper defect detection method and system

By combining supervised and unsupervised methods through the U-Net network, texture features and fitting technology are used to identify zipper tape and element defects, which solves the problems of low efficiency and insufficient flexibility of traditional detection methods, and achieves efficient and accurate detection. Zipper defect detection.

CN118314113BActive Publication Date: 2024-10-08CHANGFENG DIGITAL TECH (SHANDONG) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410512716.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-26
Publication Date
2024-10-08
Estimated Expiration
2044-04-26

AI Technical Summary

Technical Problem

In the field of zipper production, traditional manual inspection methods have low detection rates and high labor intensity, and cannot meet the needs of efficient and accurate modern production. Existing defect detection methods based on image recognition are limited in their effectiveness in dealing with changing defect types. And unsupervised methods may lead to over-sensitivity and affect production efficiency.

Method used

The U-Net network is used to combine supervised and unsupervised methods, and the three-layer MobileNet network is used to perform secondary classification and feature extraction of zipper images. The cluster matching of texture features and positive sample feature data pool is used to identify cloth tape defects, combined with horizontal straight line simulation. Hehe longitudinal straight line fitting detects chain element defects, and uses pixel-level soft-max loss function and k-means clustering algorithm to improve the accuracy and stability of defect detection.

Benefits of technology

It improves the zipper defect detection rate, ensures a high throughput rate, avoids the difficulty of labeling in existing deep convolutional neural network training, and achieves effective detection of changing defect types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314113B_ABST
    Figure CN118314113B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image analysis technology, and in particular to a zipper defect detection method and system, wherein the method comprises: obtaining a zipper image, using a U‑Net network to perform binary classification on the zipper image, and segmenting the zipper tape area image and the chain tooth area image; extracting texture features of the tape area image, clustering and matching the texture features with normal features in the positive sample feature data pool, and if they cannot be matched, marking the texture features as defect features, and identifying defective zipper tapes based on the defect feature marking; performing horizontal straight line fitting and vertical straight line fitting on the chain tooth area image, obtaining the chain tooth edge feature points based on the intersection of the horizontal straight line and the vertical straight line obtained by fitting, and analyzing the relative position relationship between different chain tooth feature points to detect whether the zipper chain teeth are abnormal. The present application improves the defect detection rate and ensures a high straight pass rate for zippers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image analysis technology, and in particular to a zipper defect detection method and system. Background Art

[0002] The zipper production industry has high quality requirements for zippers, especially when they are used in high-quality clothing and leather goods. The specific quality requirements are the surface quality of the zipper belt and the arrangement, size and spacing of the zipper teeth. Traditional manual inspection methods have low detection rates and high labor intensity, and can no longer meet the needs of modern production with high efficiency and precision.

[0003] The use of artificial intelligence methods, especially product defect detection technology based on image recognition, has become an effective solution to this problem. This technology uses image processing technology to analyze and identify existing surface defects by imaging the surface of zipper products on the production line, which can not only save a lot of manpower but also increase the detection rate of defects and improve product quality.

[0004] At present, product defect detection technologies based on image recognition are divided into supervised methods and unsupervised methods. Supervised methods rely on pre-modeling of defects, and classify and identify defects on the imaged product surface by applying classification technologies such as convolutional neural networks (CNN), support vector machines (SVM), and Gaussian mixture models (GMM). However, in the field of zipper production, due to factors such as machine aging, vibration, and product diversity, the types of defects often change, and it is difficult to stabilize the preset classification standards, which makes supervised methods encounter labeling difficulties in practical applications, limiting their effectiveness.

[0005] The unsupervised method attempts to distinguish defective samples by clustering normal samples and defective samples in the feature space. Although this method can theoretically be independent of predefined defect types, in practice, due to the unstable characteristics of zipper products, this method often amplifies the sensitivity to defects, resulting in a much lower pass rate on the production line than the supervised method.

[0006] Therefore, although supervised methods are effective in detecting specific defects, their effectiveness is limited when dealing with ever-changing defect types; and although unsupervised methods are more flexible in theory, they may affect production efficiency in practical applications due to excessive sensitivity. Summary of the invention

[0007] The embodiments of the present application provide a zipper defect detection method and system to at least improve the defect detection rate and ensure a high pass rate of the zipper.

[0008] In a first aspect, an embodiment of the present application provides a zipper defect detection method, comprising:

[0009] In the zipper area segmentation step, a zipper image is obtained, and the zipper image is classified into two categories using a U-Net network. A three-layer MobileNet network is used as an encoder-decoder in the U-Net network to extract features and then connected to an upsampling layer and an output layer to segment the zipper tape area image and the tooth area image. The batch normalization layer in the U-Net network has a batch input size of 32×32 to improve the processing speed of the network. The network can extract more detailed features through less downsampling, and the zipper image is restored to 32×32 after upsampling using a three-layer MobileNet network.

[0010] The tape defect detection step extracts texture features of the tape area image, clusters and matches the texture features with normal features in the positive sample feature data pool, and if they cannot be matched, marks the texture features as defect features NG, and identifies defective zipper tapes based on the defect feature marks. Specifically, a k-means clustering algorithm or other unsupervised learning algorithm is used to identify and distinguish normal and abnormal sample features;

[0011] The step of detecting chain tooth defects is to perform horizontal and vertical straight line fitting on the chain tooth area image, obtain the chain tooth edge feature points based on the intersection of the fitted horizontal and vertical straight lines, and analyze the relative position relationship between different chain tooth feature points to detect whether there are missing teeth or injected teeth in the zipper chain teeth, and identify defective zipper chain teeth.

[0012] In some embodiments, the U-Net network adopts a pixel-level soft-max loss function, which is calculated based on the following calculation model:

[0013] ,

[0014] in, is the weight function, Ω represents the domain of the image, that is, the set of all pixels, It's pixels The probability of belonging to the zipper tooth category.

[0015] In some embodiments, the tape defect detection step further comprises:

[0016] A feature extraction step, performing forward calculations through a convolutional neural network to extract positive sample features of the normal sample image and extract texture features of the tape area image, and pre-establishing a positive sample feature data pool Feature Pool based on the positive sample features;

[0017] Cluster matching step, comparing the texture features of the tape area image with the positive sample features, if the texture features of the tape area image do not match any positive sample feature cluster, marking the texture features as defect features NG;

[0018] The tape defect output step outputs the tape defect detection result, and identifies the tape area image marked as a defective zipper tape.

[0019] In some of the embodiments, the convolutional neural network adopts the VGG-16 network architecture and extracts texture features through three-layer downsampling to reduce the output dimension, prevent overfitting, and improve the generalization ability of the model.

[0020] In some embodiments, the step of detecting a chain element defect further comprises:

[0021] The feature point extraction step is to fit the boundary of the longitudinal gradient change and the transverse gradient change of the chain tooth area image with a transverse straight line and a longitudinal straight line. The transverse straight line fitting is used to detect the transverse arrangement state of the chain teeth, and the longitudinal straight line fitting is used to detect the longitudinal arrangement state of the chain teeth. The intersection of the transverse straight line and the longitudinal straight line of a single chain tooth is the chain tooth edge feature point A and the chain tooth edge feature point B;

[0022] The step of detecting chain tooth abnormality is to calculate the first spacing between the chain tooth edge feature point A and the chain tooth edge feature point B and calculate the second spacing between the chain tooth edge feature point A or the chain tooth edge feature point B and its adjacent chain tooth edge feature point, and compare the preset first spacing with the first threshold range and the second spacing with the second threshold range to determine whether there is a tooth injection abnormality or a tooth missing abnormality.

[0023] In some embodiments, the step of detecting abnormality of the chain element further comprises:

[0024] Comparing the first spacing with a first threshold range, if it exceeds the first threshold range, it is judged that the thread injection is abnormal, and the thread injection abnormality is manifested as a skewed tooth or a spacing defect;

[0025] The second spacing is compared with a second threshold range, and if it exceeds the second threshold range, it is determined to be a missing tooth abnormality.

[0026] In a second aspect, an embodiment of the present application provides a zipper defect detection system, which is integrated into a zipper production system, wherein the zipper production system includes a distributed production system and an integrated production system.

[0027] Among them, the distributed production system includes ribbon weaving station, perming and dyeing station, thread making station, upper stop station, lower stop station and slider threading station. The thread making station is equipped with a stacking station, and the upper stop station is equipped with a striping station. The zipper defect detection system is integrated at the stacking station to detect zipper defects. The defective zippers detected are removed at the striping station. The zipper defect detection system adopts an offline asynchronous detection method.

[0028] The integrated system includes a weaving station, a perming and dyeing station, a thread-making station and an integrated station. The integrated station is equipped with a stacking station at the feeding end. Qualified zippers are output after the integrated station. The zipper defect detection system is integrated at the stacking station. The integrated station realizes the processes of the upper stop station, the lower stop station and the slider insertion station through a three-in-one device. The zipper defect detection system adopts an online synchronous detection method.

[0029] Wherein, the detection system comprises:

[0030] An image acquisition module, used for acquiring zipper images;

[0031] A zipper region segmentation module is configured to use a U-Net network to perform binary classification on the zipper image, wherein a three-layer MobileNet network is used as an encoder-decoder in the U-Net network to perform feature extraction and then connected to an upsampling layer and an output layer to segment the zipper tape region image and the chain tooth region image;

[0032] A tape defect detection module is configured to extract texture features of the tape area image, cluster and match the texture features with normal features in the positive sample feature data pool, and if no match is found, mark the texture features as defect features NG, and identify defective zipper tapes based on the defect feature marks;

[0033] The chain tooth defect detection module is configured to perform horizontal and vertical straight line fitting on the chain tooth area image, obtain the chain tooth edge feature points based on the intersection of the fitted horizontal and vertical straight lines, and analyze the relative position relationship between different chain tooth feature points to detect whether the zipper chain teeth have missing teeth or injected teeth abnormalities, and identify defective zipper chain teeth.

[0034] In some embodiments, the tape defect detection module further comprises:

[0035] A feature extraction module is configured to perform forward calculations through a convolutional neural network to extract positive sample features of a normal sample image and extract texture features of a tape area image, and to pre-establish a positive sample feature data pool Feature Pool based on the positive sample features;

[0036] A cluster matching module is configured to compare the texture feature of the tape area image with the positive sample feature, and if the texture feature of the tape area image does not match any positive sample feature cluster, the texture feature is marked as a defect feature NG;

[0037] The tape defect output module is configured to output a tape defect detection result, and for a tape area image marked with a defect feature, identify it as a defective zipper tape.

[0038] In some of the embodiments, the convolutional neural network adopts a VGG-16 network architecture and extracts texture features through three-layer downsampling.

[0039] In some embodiments, the chain tooth defect detection module further includes:

[0040] A feature point extraction module is configured to fit a horizontal straight line and a vertical straight line to the boundary of the longitudinal gradient change and the transverse gradient change of the chain tooth area image, and the intersection of the horizontal straight line and the vertical straight line of a single chain tooth is a chain tooth edge feature point A and a chain tooth edge feature point B;

[0041] The chain tooth abnormality detection module is configured to calculate the first spacing between the chain tooth edge feature point A and the chain tooth edge feature point B and calculate the second spacing between the chain tooth edge feature point A or the chain tooth edge feature point B and its adjacent chain tooth edge feature point, and compare the preset first spacing with the first threshold range and the second spacing with the second threshold range respectively to determine whether there is a tooth injection abnormality or a tooth missing abnormality.

[0042] In some embodiments, the chain element abnormality detection module further includes:

[0043] A first judgment module is configured to compare the first spacing with a first threshold range, and if it exceeds the first threshold range, it is judged as an abnormal thread injection, and the abnormal thread injection is manifested as a skewed tooth or a spacing defect;

[0044] The second judgment module is configured to compare the second distance with a second threshold range, and judge it as a missing tooth abnormality if it exceeds the second threshold range.

[0045] Compared with the related art, the zipper defect detection method and system provided in the embodiment of the present application can not only ensure the defect detection rate but also improve the product pass rate through a combination of supervised and unsupervised methods; moreover, compared with other supervised methods, the present application does not need to mark the uncertain defects of the product, and there is no problem of existing deep convolutional neural network training and marking.

[0046] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0048] Figure 1 is a flow chart of a zipper defect detection method according to an embodiment of the present application;

[0049] Figure 2 is a step-by-step flow chart of a zipper defect detection method according to an embodiment of the present application;

[0050] Figure 3 is another step-by-step flow chart of the zipper defect detection method according to an embodiment of the present application;

[0051] Figure 4 is a schematic diagram of the segmentation effect of the zipper area segmentation step according to an embodiment of the present application, Figure 4 (a) is the original image, Figure 4 (b) represents the edge image, Figure 4 (c) represents the image drawn after recognition;

[0052] Figure 5 is a schematic diagram of the feature extraction principle according to an embodiment of the present application;

[0053] Figure 6 is a schematic diagram of characteristic points of a fastener element according to an embodiment of the present application;

[0054] Figure 7 is a structural block diagram of a distributed production system according to an embodiment of the present application;

[0055] Figure 8 is a structural block diagram of an integrated production system according to an embodiment of the present application;

[0056] Fig. 9 It is a structural block diagram of a zipper defect detection system according to an embodiment of the present application.

[0057] In the figure:

[0058] 1. Image acquisition module; 2. Zipper area segmentation module; 3. Tape defect detection module;

[0059] 4. Chain tooth defect detection module; 31. Feature extraction module; 32. Cluster matching module;

[0060] 33. Tape defect output module; 41. Feature point extraction module; 42. Chain tooth anomaly detection module. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0062] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0063] Zipper detection based on image vision processing technology requires the zipper tape and chain teeth to be separated. Traditional vision algorithms use the delineation of regions of interest (ROI) to segment the positions of the tape and chain teeth in the zipper. However, since the relative positions of the chain teeth and tape are not constant, segmentation using the delineation of regions of interest cannot ensure the effectiveness of segmentation. The matching-based approach is also not well suited to the variable features of zipper products. Zipper products are diverse, and different zippers may have different colors, textures, shapes, and sizes. This makes it difficult for traditional methods based on template matching or feature matching to adapt to all situations. If the template or feature does not match the zipper to be detected, the accuracy of segmentation will be affected.

[0064] As for the detection of cloth tape defects, in the zipper production process, the defects of zipper cloth tapes are mainly caused by machine vibration, equipment aging, product inventory squeeze and other reasons. It manifests itself in that the surface characteristics of the product are very unstable. It is impossible to model each defect through normal modeling methods, and then identify the defects through classifiers. At the same time, since the cloth tape material is relatively soft, the shape on the production line is relatively random. If the detection model is more sensitive to the appearance, it will produce a higher false detection rate and reduce the pass rate of the equipment. Under current production requirements, the defects of cloth tapes are mainly concentrated in the texture characteristics of the cloth tapes, such as inconsistent dyeing, dirty cloth tapes, willow thread jumps, damage, etc. Therefore, the purpose of the cloth tape defect detection in the embodiment of the present application is to ignore the size and shape characteristics to a large extent and be sensitive to the detailed texture characteristics.

[0065] For the detection of chain tooth defects, it is necessary to detect the shape and size of the chain teeth, and whether the chain teeth are skewed, missing, or half-toothed during the injection. Since there are many types of zippers, the detection of zipper chain tooth defects in the embodiment of the present application is implemented by an image measurement-based method.

[0066] In order to solve the problems existing in the above-mentioned prior art, the embodiment of the present application provides a zipper defect detection method by combining unsupervised, supervised and image strategy means. Figure 1 is a flow chart of a zipper defect detection method according to an embodiment of the present application, such as Figure 1 As shown, the process includes the following steps:

[0067] In the zipper area segmentation step S1, a zipper image is obtained, and the zipper image is classified into two categories using the U-Net network. The U-Net network uses a three-layer MobileNet network as an encoder-decoder to extract features and then connects the upsampling layer and the output layer to segment the zipper tape area image and the chain tooth area image. Furthermore, the batch normalization layer batch input size in the U-Net network is configured to be 32×32 to improve the processing speed of the network. The network extracts more detailed features through less downsampling. The zipper image is upsampled using the three-layer MobileNet network and restored to 32×32. The U-Net network uses a pixel-level soft-max loss function, which is calculated based on the following calculation model:

[0068] ,

[0069] in, is the weight function, Ω represents the domain of the image, that is, the set of all pixels, It's pixels The probability of belonging to the zipper tooth category.

[0070] The U-Net network segmentation effect is as follows Figure 4 As shown, Figure 4 (a) represents the original image, Figure 4 (b) represents the edge image, Figure 4 (c) indicates an image drawn after recognition. Based on this, the embodiment of the present application adopts a supervised semantic segmentation method to semantically segment the zipper tape and the chain teeth. Specifically, the MobileNet network is used to implement the classification semantic segmentation of the U-Net network. By annotating the chain tooth contours of chain teeth of different sizes, the semantic segmentation network of chain teeth of different models is implemented to effectively distinguish the tape and the chain teeth. Through extreme case testing, when the color of the tape and the chain teeth are exactly the same, the U-Net network can also effectively segment the tape and the chain teeth.

[0071] Tape defect detection step S2, extracting texture features of the tape area image, clustering and matching the texture features with normal features in the positive sample feature data pool, marking the texture features as defect features NG if they cannot be matched, and identifying defective zipper tapes based on the defect feature marks, optionally using a k-means clustering algorithm or other unsupervised learning algorithm to identify and distinguish normal and abnormal sample features;

[0072] In the step S3 of detecting chain tooth defects, horizontal and vertical straight line fitting is performed on the chain tooth area image, and the chain tooth edge feature points are obtained based on the intersection of the fitted horizontal and vertical straight lines. The relative position relationship between different chain tooth feature points is analyzed to detect whether the zipper chain teeth have missing teeth or injected teeth abnormalities, and to identify defective zipper chain teeth.

[0073] Based on the above-mentioned chain tooth defect detection step S3, the present application detects the distance between chain teeth based on image measurement to determine problems such as missing teeth, broken teeth, and excessive distance between chain teeth. The discrete information of the U-Net network is associated by fitting means to determine the feature points, and to determine zipper defects caused by generation errors such as incorrect tooth model.

[0074] refer to Figure 2 , Figure 5 As shown, the tape defect detection step S2 of the above embodiment further includes:

[0075] In the feature extraction step S201, a convolutional neural network is used to perform forward calculation to extract positive sample features of normal sample images and texture features of tape area images. A positive sample feature data pool Feature Pool is pre-established based on the positive sample features. Normal sample images are collected from different zipper tape images to ensure that the data pool covers various texture features. According to the types of different zipper tapes, appropriate hyperparameter configurations are selected to match zipper tapes of different colors and patterns with corresponding positive sample feature data pools to optimize the accuracy of feature extraction and clustering judgment.

[0076] Cluster matching step S202, comparing the texture features of the tape area image with the positive sample features, if the texture features of the tape area image do not match any positive sample feature cluster, marking the texture features as defect features NG;

[0077] In the tape defect output step S203, the tape defect detection result is output, and the tape area image marked as a defective zipper tape is identified as a defective zipper tape.

[0078] In the feature extraction step S201, the convolutional neural network adopts the VGG-16 network architecture, and extracts texture features through three-layer downsampling to reduce the output dimension, prevent overfitting, and improve the generalization ability of the model. When establishing a positive sample feature data pool for different types of zipper tapes, the embodiment of the present application adjusts the hyperparameters to achieve optimal feature extraction. Specifically, for different types of zipper tapes, the convolutional layer of VGG-16 is pre-trained and initialized using an image data set similar to the texture of the tape to improve the relevance and accuracy of feature extraction; for tapes with complex colors and patterns, a smaller learning rate is configured to perform detailed adjustments to avoid losing important feature information too quickly; the batch size is adjusted according to the sample diversity of the zipper tape to help the model better estimate the gradient, thereby improving the stability of feature learning; based on the adjustment of weight decay, the model is prevented from overfitting certain types of zipper tapes, especially when there are many types of tapes. ; According to the characteristics of the color and pattern texture of different zipper tapes, choose appropriate data enhancement strategies for processing, such as rotation, scaling, cropping, etc., to improve the generalization ability of the model; adjust the number of filters in each convolutional layer in VGG-16 for different texture types to capture more detailed or coarse texture features; use feature selection techniques (such as principal component analysis PCA) to reduce feature dimensions while retaining the most recognizable features for different types of zipper tapes; according to the detection requirements of different zipper tapes, choose a suitable loss function, such as weighted cross entropy loss for unbalanced categories.

[0079] In addition, by continuously collecting new zipper tape samples and updating the feature data pool, the robustness and adaptability of the model can be further improved.

[0080] refer to Figure 3 As shown, the tooth defect detection step S3 of the above embodiment further includes:

[0081] In the feature point extraction step S301, a horizontal straight line is fitted to the boundary of the longitudinal gradient change and the transverse gradient change of the tooth region image (eg Figure 6 The horizontal line), the vertical line (such as Figure 6 The horizontal straight line fitting is used to detect the horizontal arrangement state of the chain teeth, and the vertical straight line fitting is used to detect the vertical arrangement state of the chain teeth. The intersection of the horizontal straight line and the vertical straight line of a single chain tooth is the chain tooth edge feature point A and the chain tooth edge feature point B. For ease of understanding, Figure 6 The left adjacent feature point and the right adjacent feature point of a single chain tooth are marked as A1 and B1;

[0082] The step S302 of detecting abnormality of chain teeth is to calculate the first spacing between the edge feature point A of the chain teeth and the edge feature point B of the chain teeth, and calculate the second spacing between the edge feature point A of the chain teeth or the edge feature point B of the chain teeth and its adjacent edge feature point of the chain teeth. The second spacing may be calculated between the feature point A and the feature point B1, or the second spacing may be calculated between the feature point B and the feature point A1. The first spacing is compared with the first threshold range, and the second spacing is compared with the second threshold range, respectively, to determine whether there is an abnormality of tooth injection or an abnormality of missing teeth. Specifically:

[0083] The first spacing is compared with the first threshold range. If it exceeds the first threshold range, it is judged as an abnormal thread injection. The abnormal thread injection is manifested as a skewed tooth or a spacing defect. The judgment is expressed as ;

[0084] The second spacing is compared with the second threshold range. If it exceeds the second threshold range, it is judged as a missing tooth abnormality. This judgment is expressed as or .

[0085] In a preferred embodiment of the present application, different configurations of the first threshold range and the second threshold range are provided according to the chain tooth model, and the detection environment is provided as 12-megapixel camera imaging, 6mm focal length lens, and imaging distance 420mm. The configurations of zipper No. 3, zipper No. 5, and zipper No. 7 under the detection environment are used as examples, as shown in Table 1 below. Those skilled in the art can understand that when the detection environment is adjusted, the threshold ratio needs to be recalibrated.

[0086]

[0087] Based on the above steps, the embodiment of the present application uses different models to describe faults according to the differences between the chain elements and the cloth tape in the zipper in terms of product stability, failure rate, etc., adopts supervised and unsupervised methods to detect defects, and performs multi-scale modeling of the cloth tape and the chain elements to ensure the correctness of the defect description.

[0088] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0089] This embodiment also provides a zipper defect detection system, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. The detection system is integrated into the zipper production system, such as Figure 7-Figure 8 As shown, the zipper production system includes a distributed production system and an integrated production system.

[0090] Among them, the distributed production system includes ribbon weaving station, perming and dyeing station, thread making station, upper stop station, lower stop station and slider threading station. The thread making station is equipped with a stacking station, and the upper stop station is equipped with a striping station. The zipper defect detection system is integrated at the stacking station to detect zipper defects. The defective zippers detected are removed at the striping station. The zipper defect detection system adopts an offline asynchronous detection method.

[0091] The integrated system includes a weaving station, a perming and dyeing station, a thread-making station and an integrated station. A stacking station is provided at the feeding end of the integrated station. Qualified zippers are output after the integrated station. A zipper defect detection system is integrated at the stacking station. The integrated station realizes the processes of the upper stop station, the lower stop station and the slider threading station through a three-in-one device. The zipper defect detection system adopts an online synchronous detection method.

[0092] Fig. 9 is a structural block diagram of a zipper defect detection system according to an embodiment of the present application, such as Fig. 9 As shown, the system includes: an image acquisition module 1, a zipper area segmentation module 2, a tape defect detection module 3 and a chain tooth defect detection module 4, and data is transmitted between the modules.

[0093] Specifically, the image acquisition module 1 is used to obtain the zipper image; the zipper area segmentation module 2 is configured to use the U-Net network to perform binary classification on the zipper image. The U-Net network uses a three-layer MobileNet network as an encoder-decoder to extract features and then connects the upsampling layer and the output layer to segment the zipper tape area image and the chain tooth area image; the batch normalization layer batch input size in the U-Net network is configured to be 32×32 to improve the processing speed of the network, and the network can extract more detailed features through less downsampling, and the zipper image is restored to 32×32 after upsampling using the three-layer MobileNet network.

[0094] The tape defect detection module 3 is configured to extract texture features of the tape area image, cluster and match the texture features with normal features in the positive sample feature data pool, and if they cannot be matched, mark the texture features as defect features NG, and identify defective zipper tapes based on the defect feature marks. Optionally, a k-means clustering algorithm or other unsupervised learning algorithms are used to identify and distinguish normal and abnormal sample features;

[0095] The chain tooth defect detection module 4 is configured to perform horizontal straight line fitting and vertical straight line fitting on the chain tooth area image, obtain the chain tooth edge feature points based on the intersection of the fitted horizontal and vertical straight lines, and analyze the relative position relationship between different chain tooth feature points to detect whether the zipper chain teeth have missing teeth or injected teeth abnormalities, and identify defective zipper chain teeth.

[0096] In the above embodiment, the tape defect detection module 3 further includes: a feature extraction module 31, a cluster matching module 32 and a tape defect output module 33. The feature extraction module 31 is configured to perform forward calculations through a convolutional neural network to extract positive sample features of normal sample images and extract texture features of tape area images, and pre-establish a positive sample feature data pool Feature Pool based on the positive sample features; the cluster matching module 32 is configured to compare the texture features of the tape area image with the positive sample features, and if the texture features of the tape area image do not match any positive sample feature cluster, the texture features are marked as defect features NG; the tape defect output module 33 is configured to output the tape defect detection results, and for the tape area image marked as a defect feature, it is identified as a defective zipper tape. Optionally, the convolutional neural network adopts a VGG-16 network architecture, and extracts texture features through three-layer downsampling to reduce the output dimension, prevent overfitting, and improve the generalization ability of the model.

[0097] In the above embodiment, the chain tooth defect detection module 4 further includes: a feature point extraction module 41 and a chain tooth abnormality detection module 42. The feature point extraction module 41 is configured to fit a horizontal straight line and a vertical straight line to the boundary of the longitudinal gradient change and the transverse gradient change of the chain tooth area image. The intersection of the horizontal straight line and the vertical straight line of a single chain tooth is the chain tooth edge feature point A and the chain tooth edge feature point B; the chain tooth abnormality detection module 42 is configured to calculate the first spacing between the chain tooth edge feature point A and the chain tooth edge feature point B and calculate the second spacing between the chain tooth edge feature point A or the chain tooth edge feature point B and its adjacent chain tooth edge feature point, and compare the preset first spacing with the first threshold range and the second spacing with the second threshold range respectively to determine whether there is a tooth injection abnormality or a tooth missing abnormality.

[0098] Furthermore, the tooth abnormality detection module 42 includes: a first judgment module and a second judgment module. The first judgment module is configured to compare the first spacing with a first threshold range. If the first threshold range is exceeded, it is judged as a tooth injection abnormality. The tooth injection abnormality is manifested as a tooth skew or a spacing defect. The judgment is expressed as The second judgment module is configured to compare the second spacing with the second threshold range, and if it exceeds the second threshold range, it is judged as a missing tooth abnormality, and the judgment is expressed as or .

[0099] Based on the above modules, the zipper defect detection system of the embodiment of the present application performs detection by implementing the above method, outputs the defect detection results, and describes the faults through different models according to the differences between the chain teeth and the cloth tape in the zipper in terms of product stability, failure rate, etc., and uses supervised and unsupervised methods to detect defects respectively, and performs multi-scale modeling of the cloth tape and the chain teeth to ensure the correctness of the defect description.

[0100] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0101] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0102] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A zipper defect detection method, It is characterized in that include: The zipper area segmentation step is to obtain a zipper image, and use a U-Net network to perform binary classification on the zipper image. The U-Net network uses a three-layer MobileNet network as an encoder-decoder to extract features and then connects an upsampling layer and an output layer to segment the zipper tape area image and the chain tooth area image; The tape defect detection step extracts the texture features of the tape area image, clusters and matches the texture features with the normal features in the positive sample feature data pool, and if they cannot be matched, marks the texture features as defect features NG, and identifies the defective zipper tape based on the defect feature marks; The step of detecting chain tooth defects is to perform horizontal and vertical straight line fitting on the chain tooth area image, obtain the chain tooth edge feature points based on the intersection of the fitted horizontal and vertical straight lines, and analyze the relative position relationship between different chain tooth feature points to detect whether there are missing teeth or injected teeth in the zipper chain teeth, and identify defective zipper chain teeth.

2. The zipper defect detection method according to claim 1, It is characterized in that The U-Net network adopts a pixel-level soft-max loss function, which is calculated based on the following calculation model: , in, is the weight function, Ω represents the domain of the image, It's pixels The probability of belonging to the zipper tooth category.

3. The zipper defect detection method according to claim 1, It is characterized in that The tape defect detection step further comprises: A feature extraction step, performing forward calculations through a convolutional neural network to extract positive sample features of the normal sample image and extract texture features of the tape area image, and pre-establishing a positive sample feature data pool FeaturePool based on the positive sample features; Cluster matching step, comparing the texture features of the tape area image with the positive sample features, if the texture features of the tape area image do not match any positive sample feature cluster, marking the texture features as defect features NG; The tape defect output step outputs the tape defect detection result, and identifies the tape area image marked as a defective zipper tape.

4. The zipper defect detection method according to claim 1, It is characterized in that The chain tooth defect detection step further comprises: The feature point extraction step is to fit a horizontal straight line and a vertical straight line to the boundary of the longitudinal gradient change and the transverse gradient change of the chain tooth area image, and the intersection of the horizontal straight line and the vertical straight line of a single chain tooth is the chain tooth edge feature point A and the chain tooth edge feature point B; The step of detecting chain tooth abnormality is to calculate the first spacing between the chain tooth edge feature point A and the chain tooth edge feature point B and calculate the second spacing between the chain tooth edge feature point A or the chain tooth edge feature point B and its adjacent chain tooth edge feature point, and compare the preset first spacing with the first threshold range and the second spacing with the second threshold range to determine whether there is a tooth injection abnormality or a tooth missing abnormality.

5. The zipper defect detection method according to claim 4, It is characterized in that The step of detecting abnormality of the chain element further comprises: Comparing the first spacing with a first threshold range, if it exceeds the first threshold range, it is judged that the thread injection is abnormal, and the thread injection abnormality is manifested as a skewed tooth or a spacing defect; The second spacing is compared with a second threshold range, and if it exceeds the second threshold range, it is determined to be a missing tooth abnormality.

6. A zipper defect detection system, integrated into the zipper production system, It is characterized in that The detection system comprises: An image acquisition module, used for acquiring zipper images; A zipper region segmentation module is configured to use a U-Net network to perform binary classification on the zipper image, wherein a three-layer MobileNet network is used as an encoder-decoder in the U-Net network to perform feature extraction and then connected to an upsampling layer and an output layer to segment the zipper tape region image and the chain tooth region image; A tape defect detection module is configured to extract texture features of the tape area image, cluster and match the texture features with normal features in the positive sample feature data pool, and if no match is found, mark the texture features as defect features NG, and identify defective zipper tapes based on the defect feature marks; The chain tooth defect detection module is configured to perform horizontal and vertical straight line fitting on the chain tooth area image, obtain the chain tooth edge feature points based on the intersection of the fitted horizontal and vertical straight lines, and analyze the relative position relationship between different chain tooth feature points to detect whether the zipper chain teeth have missing teeth or injected teeth abnormalities, and identify defective zipper chain teeth.

7. The zipper defect detection system according to claim 6, It is characterized in that The tape defect detection module further comprises: A feature extraction module is configured to perform forward calculations through a convolutional neural network to extract positive sample features of a normal sample image and extract texture features of a tape area image, and to pre-establish a positive sample feature data pool Feature Pool based on the positive sample features; A cluster matching module is configured to compare the texture feature of the tape area image with the positive sample feature, and if the texture feature of the tape area image does not match any positive sample feature cluster, the texture feature is marked as a defect feature NG; The tape defect output module is configured to output a tape defect detection result, and for a tape area image marked with a defect feature, identify it as a defective zipper tape.

8. The zipper defect detection system according to claim 7, It is characterized in that The convolutional neural network adopts the VGG-16 network architecture and extracts texture features through three-layer downsampling.

9. The zipper defect detection system according to claim 6, It is characterized in that The chain tooth defect detection module further comprises: A feature point extraction module is configured to fit a horizontal straight line and a vertical straight line to the boundary of the longitudinal gradient change and the transverse gradient change of the chain tooth area image, and the intersection of the horizontal straight line and the vertical straight line of a single chain tooth is a chain tooth edge feature point A and a chain tooth edge feature point B; The chain tooth abnormality detection module is configured to calculate the first spacing between the chain tooth edge feature point A and the chain tooth edge feature point B and calculate the second spacing between the chain tooth edge feature point A or the chain tooth edge feature point B and its adjacent chain tooth edge feature point, and compare the preset first spacing with the first threshold range and the second spacing with the second threshold range respectively to determine whether there is a tooth injection abnormality or a tooth missing abnormality.

10. The zipper defect detection system according to claim 9, It is characterized in that The chain tooth abnormality detection module further comprises: A first judgment module is configured to compare the first spacing with a first threshold range, and if it exceeds the first threshold range, it is judged as an abnormal thread injection, and the abnormal thread injection is manifested as a skewed tooth or a spacing defect; The second judgment module is configured to compare the second distance with a second threshold range, and judge it as a missing tooth abnormality if it exceeds the second threshold range.

Citation Information

Patent Citations

  • Detection system and method for zip fastener defects

    CN108802052A

  • Zipper selvage defect identification method based on template matching

    CN114612385A