Intelligent cloth detection method and system based on autonomous learning regarding defects

Through the method of semi-supervised learning and iterative updating, the problem that the defect recognition model in the existing technology is difficult to cover multiple types of defects is solved, the efficiency and accuracy of textile fabric detection are improved, and an autonomous learning defect detection system is realized.

WO2024212460A1PCT designated stage expired Publication Date: 2024-10-17TUNUME (HANGZHOU) INTELLIGENT TECHNOLOGY CO LTD

Patent Information

Application Number
PCT/CN2023/124297
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-10
Filing Date
2023-10-12
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

Existing defect identification methods based on deep learning are difficult to collect enough sample data in actual production environments, making it difficult for the identification model to cover multiple types of defects, causing low detection efficiency and being greatly affected by subjective factors.

Method used

Using semi-supervised learning, iteratively updates the detection results, uses a small amount of sample data to continuously optimize the defect detection model, and combines cloth information and detection results for independent learning to improve the model's coverage and recognition accuracy.

Benefits of technology

It improves the recognition accuracy and coverage of the defect detection model, reduces the dependence on sample data, reduces detection costs, enhances detection efficiency, and can continuously optimize the model in practical applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023124297_17102024_PF_FP_ABST
    Figure CN2023124297_17102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of textile fabric detection. Particularly disclosed are an intelligent cloth detection method and system based on autonomous learning regarding defects. The method comprises: acquiring the current cloth image sequence to be subjected to detection; performing detection on said cloth image sequence by means of a preset defect detection model, so as to acquire a detection result set; extracting a markable defect target from the detection result set; and on the basis of the marked defect target, performing iterative updating on the preset defect detection model. By means of the present application, defect detection is performed on a cloth image, and iterative updating is performed on a defect detection model according to a detection result, such that the fitting capability of the detection model for various types of defects is constantly optimized, and the coverage and the identification precision of the defect detection model can be continuously improved in an autonomous learning manner during actual application.
Need to check novelty before this filing date? Find Prior Art

Description

An intelligent fabric inspection method and system with autonomous defect learning Technical Field

[0001] The present application relates to the technical field of textile fabric inspection, and in particular to an intelligent fabric inspection method and system with autonomous defect learning. Background Art

[0002] Textile fabrics undergo quality inspection at every stage of the production process, primarily to detect defects arising from weaving, printing, and dyeing. Currently, most fabric inspections on the market rely on human visual inspection, which is subject to significant subjective factors, resulting in low efficiency and high costs. Therefore, with the advancement of computer vision technology, fabric defect detection systems based on this technology are poised to become an important solution to replace manual quality inspection.

[0003] Due to the wide variety of fabric defects caused by different fabric types and color combinations, existing deep learning-based defect recognition methods require a large amount of sample data to learn the best recognition model. However, in actual production environments, the probability of defect samples occurring is low, and sacrificing production efficiency to collect sample data is not realistic. This makes it difficult for existing defect recognition methods to effectively collect enough sample data to learn a recognition model that can cover more types.

[0004] Summary of the Invention

[0005] The purpose of this application is to provide an intelligent fabric inspection method and system with autonomous defect learning. Through semi-supervised learning, it can continuously learn various types of defects through a small amount of sample data, and continuously improve the coverage and recognition accuracy of the defect detection model in actual use.

[0006] In the first aspect, the present application provides an intelligent fabric inspection method with autonomous defect learning, which adopts the following technical solutions:

[0007] Get the current cloth image sequence to be detected;

[0008] The fabric image sequence to be inspected is inspected using a preset defect detection model to obtain a set of inspection results;

[0009] Extract markable defect targets from the detection result set;

[0010] Iteratively update the preset defect detection model based on the markable defect target.

[0011] Through the above technical solution, the defect detection model can be iteratively updated by using the defect detection results of fabric images to continuously optimize the detection model's fitting ability for various defects, and the coverage and recognition accuracy of the defect detection model can be continuously improved through autonomous learning during the application process.

[0012] Optionally, obtaining the image of the cloth to be detected includes:

[0013] Obtain the current digitally scanned fabric image;

[0014] Divide the fabric image into several continuous and intersecting images to be detected, and number the divided images to be detected;

[0015] The images to be detected are preprocessed in sequence according to the numbering order to form a sequence of images to be detected.

[0016] Optionally, before obtaining the current cloth image to be detected, the method further includes:

[0017] Obtaining information about the fabric to be detected, including the fabric type;

[0018] Based on the current fabric type, the detectable defect categories are confirmed through the preset textile fabric defect reference table.

[0019] Optionally, the detection result includes defect location information, defect category, and confidence level. After the sequence of fabric images to be detected is detected using a preset defect detection model and a set of detection results is obtained, the following steps are performed:

[0020] Sort all the detection results in the detection result set according to the detection image sequence;

[0021] Based on the sorted test results, determine whether there is overlap in the test areas according to the defect location information in the test results;

[0022] If so, a new inspection image is extracted based on the overlapping defect inspection area;

[0023] The new inspection image is inspected using the preset defect detection model, the inspection results are obtained, and the inspection results are added to the inspection result set.

[0024] Optionally, extracting markable defect targets from the detection result set includes:

[0025] Determine whether the detection result set is not empty and whether there is a detection result with a confidence level greater than a preset first threshold;

[0026] If so, the detection results in the detection result set whose confidence level is greater than the preset first threshold are recorded as candidate targets;

[0027] Further determine whether the defect category of the candidate target belongs to the detectable defect category;

[0028] If so, the candidate target is recorded as a markable defect target.

[0029] Optionally, the iterative updating of a preset defect detection model based on the markable defect target includes:

[0030] The inspection results to be learned are converted into label images according to the defect location information and defect category;

[0031] Perform data preprocessing on the label images and add the preprocessed images to the preset training dataset;

[0032] The preset defect detection model is iteratively trained according to the new training data set to obtain an updated defect detection model.

[0033] Optionally, after the fabric image sequence to be inspected is inspected using a preset defect detection model and a set of inspection results is obtained, the method further includes:

[0034] Based on the test result set, statistics are collected for each defect category from the defect category dimension;

[0035] Obtain the size of the defect based on the defect location information in the detection results;

[0036] Generate a preliminary score based on the existing defect categories, the number of defects in each defect category, and the defect size using the preset scoring rules;

[0037] Output the initial scoring information, and associate the test results with the current fabric information and store them in the preset database.

[0038] Optionally, after associating the detection result with the current fabric information and storing it in a preset database, the method further includes:

[0039] Determine whether the detection result data corresponding to the current fabric information reaches the preset number,

[0040] If yes, then count the defect types in all the test results and generate a statistical data set;

[0041] Analyze and evaluate the causes of defects based on statistical data sets, and generate corresponding prompt information.

[0042] In a second aspect, the present application provides an intelligent fabric inspection system with autonomous defect learning, comprising:

[0043] The image sequence acquisition module 101 is used to acquire the current image sequence of the fabric to be detected;

[0044] The defect detection module 102 is used to detect the image sequence of the fabric to be detected using a preset defect detection model and obtain a set of detection results;

[0045] The detection model updating module 103 is configured to extract markable defect targets from the detection result set and iteratively update the preset defect detection model based on the markable defect targets.

[0046] In a third aspect, the present application provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute the above-mentioned intelligent fabric inspection method with autonomous defect learning.

[0047] To summarize, this application first performs defect detection on fabric images, and then filters the detection results to use them as new label data to iteratively update the defect detection model, so as to optimize the detection model's ability to fit defects, and can continuously improve the coverage and recognition accuracy of the defect detection model through autonomous learning during actual application. In addition, by statistically analyzing the detection results in combination with the detected fabrics, the detected fabrics can be scored to assist in quality inspection and assessment. In addition, the accumulated detection data can also help evaluate the causes of defects so that targeted adjustments and optimizations can be made. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] FIG1 is a flow chart of an intelligent fabric inspection method with autonomous defect learning provided by an embodiment of the present application;

[0049] FIG2 is a flow chart of obtaining an image of a cloth to be detected provided by an embodiment of the present application;

[0050] FIG3 is a flow chart of identifying and processing cross-image defects provided by an embodiment of the present application;

[0051] FIG4 is a flow chart of extracting markable defect targets from a set of detection results provided by an embodiment of the present application;

[0052] FIG5 is a flowchart of iteratively updating a preset defect detection model based on a markable defect target provided by an embodiment of the present application;

[0053] FIG6 is a flow chart of scoring a detected fabric according to a set of detection results provided in an embodiment of the present application;

[0054] FIG7 is a schematic diagram of an intelligent cloth inspection system with autonomous defect learning provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The present application is further described in detail below with reference to Figures 1 to 7.

[0056] This application provides an intelligent fabric inspection method with autonomous defect learning, as shown in FIG1 , comprising the following steps:

[0057] S100: Obtain a current sequence of cloth images to be detected.

[0058] Since the present application provides an intelligent cloth inspection method with autonomous defect learning, it will be applied to corresponding cloth inspection devices or equipment. Such equipment generally has unwinding and rewinding devices. The cloth to be inspected is placed in a designated area, and then the cloth is unfolded through a fabric transmission mechanism for inspection. Unlike manual inspection, machine vision is used for inspection, and there will be a corresponding image acquisition area. For example, when the cloth is unfolded, the cloth image is synchronously acquired through digital scanning, and then the cloth image is inspected for defects using a machine vision algorithm. When a defect is detected, a corresponding prompt message is generated for the staff to confirm and record.

[0059] Therefore, in the embodiment of the application, the detection of fabric defects first involves obtaining a sequence of fabric images to be detected.

[0060] Specifically, referring to FIG2 , obtaining the image of the cloth to be detected includes the following steps:

[0061] S110: Acquire the digitally scanned cloth image.

[0062] S120: Divide the cloth image into a number of continuous and intersecting images, and number the divided images.

[0063] S130 , pre-processing the images to be detected in sequence according to the numbering order, and forming a sequence of images to be detected.

[0064] Since the fabric is generally unfolded gradually through the fabric transmission mechanism, the area scanned each time is related to the length of the fabric transmission. The fabric to be inspected is usually scanned multiple times to achieve full-scale inspection of each fabric.

[0065] Therefore, in the embodiment of the present application, a digitally scanned image of the fabric is first acquired. Furthermore, considering that the size of the scanning area depends on the device, the scanned image may require significant scaling to serve as input for the algorithm detection model, which can easily cause image distortion and affect defect detection.

[0066] Therefore, after obtaining the digitally scanned cloth image, the cloth image will be divided into several continuous and intersecting images, and the divided images will be numbered. The reason for continuity is to ensure that all areas on the cloth can be detected. In addition, considering

[0067] Some defects may exist at the intersection of the divided images, so a corresponding compensation amount is set for the divided areas, that is, a certain intersection amount is set between the areas to increase the coverage of various defects.

[0068] Furthermore, to facilitate identification of the specific fabric location of defects based on the test results, the fabric images are divided and numbered, and preprocessed sequentially in order to form a sequence of images to be tested. This preprocessing primarily involves cropping and scaling the images to match the input size of the algorithm's detection model. Image enhancement processes such as denoising and light compensation are also performed to minimize the effects of digital scanning.

[0069] Taking into account the different types of defects that may appear in different types of fabrics, there may be certain types of defects that only appear in a certain type of fabric. For example, flower needles (due to the different gaps between the needles, the surface of the fabric presents straight strips of varying widths), wrong yarns (because one yarn in the same shed is different from the other yarns in yarn quality, the color of the yarn loop formed by this yarn after dyeing is obviously different from other parts), etc. appear in knitted fabrics; cotton particles (dead cotton fiber clumps in the raw cotton, which are not completely removed during the cotton cleaning process), cottonseed husks (when the cotton fiber and cotton seeds are separated in the cotton ginning process, the root end of the fiber is attached to the cottonseed husk, or the cotton seeds are crushed and mixed with the raw cotton), etc. only appear in cotton fabrics.

[0070] In addition to considering the relationship between defects and fabrics, it is also necessary to consider that some common defect types may show different test results in different fabrics. In this case, it will also have a certain impact on the determination of defect detection results.

[0071] Therefore, in the embodiment of the present application, when testing the fabric, certain attention will be paid to the fabric type to assist in judging the test results based on the current fabric type. At the same time, it is also convenient to correlate the defects of various fabrics for the purpose of conducting corresponding data analysis and inventory.

[0072] Specifically, before obtaining the current cloth image to be detected, the following steps are also included:

[0073] S140: Obtain information of the fabric to be detected.

[0074] S150: Based on the current fabric type, the detectable defect categories are confirmed using a preset textile fabric defect reference table.

[0075] Fabric information includes fabric type and fabric specifications. Fabric types are classified into various categories, such as cotton, knitted, and fiber. Fabric specifications indicate the thickness and size of the current fabric, and this data can be entered by staff. The reason for entering fabric specifications is to facilitate the confirmation of the number of digital scans of the fabric, that is, the number of subsequent fabric image sequences to be inspected. Based on this information, the specific location of the original fabric where the defect is located can be quickly determined based on the inspection results, facilitating confirmation and verification by relevant staff.

[0076] The preset textile fabric defect reference table represents a statistical analysis of possible defect types for each type of fabric, based on historical data and corresponding reference materials. The table is presented in tabular form and stored in the database. It is worth noting that different users may have different requirements for fabric inspection. For example, different users may require different types of fabrics to be inspected, and different process flows may also result in varying degrees of defect types. Therefore, the defect reference table must be constructed specifically based on actual usage scenarios and needs.

[0077] In an embodiment of the present application, when each piece of cloth is inspected, the cloth information is first obtained, and then based on the current cloth type, all defect categories that can be detected for the current cloth type are confirmed by checking the textile fabric defect reference table stored in the database.

[0078] S200: Detect the image sequence of the fabric to be detected using a preset defect detection model to obtain a set of detection results.

[0079] The preset defect detection model is a preliminary detection model obtained by training a self-made or existing defect image dataset based on a target detection algorithm. The target detection algorithm can be a classic target detection algorithm such as FAST-RCNN and SSD, which is not limited in this application.

[0080] The detection result set represents the combination of detection results generated for each image in the sequence of fabric images to be inspected. The detection results include defect location information, defect category, and confidence level. Defect location information corresponds to the predicted target area, reflecting the location and size of the defect in the image. The defect category is the category of the defect within the predicted target area. The confidence level is equivalent to a probability, that is, the probability of the predicted target belonging to a certain defect type. The higher the confidence level, the greater the likelihood that the predicted target belongs to a certain defect.

[0081] For textile fabrics, different fabric types and color combinations will lead to a wide variety of fabric defects, and in actual production environments, the probability of defect samples appearing is generally low, so the collection of defect sample data itself is relatively difficult. Coupled with the imbalance of various defect sample data, this leads to a low degree of fitting of the defect recognition method based on deep learning and a low coverage of defect types.

[0082] Therefore, in the embodiments of this application, a self-training approach within semi-supervised learning is used to continuously increase the number of trainable samples, thereby continuously improving the fitting and generalization capabilities of the defect detection model. Specifically, existing defect sample data (the original training dataset) is first trained to produce an initial defect detection model. Then, the current sequence of fabric images to be inspected is tested and the test results are obtained. Finally, new training sample data is injected into the entire detection model based on the test results, thereby updating and iterating the current detection model.

[0083] Since the fabric image to be inspected is an image obtained by digitally scanning and dividing the fabric, and the sizes of defects are different, there may be differences between defects of the same type or different types. Therefore, there may be defects that appear across images, such as broken wefts, broken warps, etc. In this case, it is easy to cause deviations in the inspection results of such defects.

[0084] Therefore, in order to reduce the impact of this situation on defect detection, after obtaining the detection results, we will also make judgments based on the positional relationship of each detection target area in the detection results, and give new image divisions to targets that appear across images to re-detect the target.

[0085] Specifically, referring to FIG3 , after the fabric image sequence to be inspected is inspected using a preset defect detection model and a set of inspection results is obtained, the following steps are further included:

[0086] S210 , sorting all detection results in the detection result set according to the detection image sequence.

[0087] S220: Based on the sorted inspection results, determine whether there is any overlap in the inspection areas according to the defect location information in the inspection results.

[0088] S230: If yes, extract a new inspection image based on the overlapping defect inspection area;

[0089] S240: Detect the new inspection image using a preset defect detection model, obtain the inspection result, and add the inspection result to the inspection result set.

[0090] In the embodiment of the present application, after a sequence of fabric images to be inspected is inspected using a preset defect detection model and a set of inspection results is obtained, all inspection results in the set are first sorted according to the inspection image sequence. Because the defect location information presented in the inspection results includes the coordinate information of the inspection area, the specific location coordinates of each defect inspection area in the original scanned image can be determined by combining the division method of the original scanned image. A defect inspection area refers to a detection area containing a defect.

[0091] This allows all defect location information in the inspection results, i.e., the target inspection areas, to be mapped onto the original scanned image. It is then possible to determine whether any target inspection areas overlap. If so, a new inspection image is extracted based on the overlapping defect inspection areas. This means the overlapping target inspection areas are merged to form a new inspection image. Finally, the new inspection image is tested using the pre-set defect detection model to obtain the corresponding inspection results, which are then added to the inspection result set.

[0092] S300: extracting markable defect targets from the detection result set.

[0093] Among them, the markable defect target refers to an image that can be labeled with defects, which can be used as sample data for training after corresponding processing. The so-called sample data for training is the fabric image after labeling.

[0094] In the embodiment of the present application, the purpose is to extract new defect sample data through the defect detection results of the actual application process, and then add the new sample data to the original training data set to iteratively update the current defect detection model.

[0095] Specifically, referring to FIG4 , extracting markable defect targets from the detection result set includes the following steps:

[0096] S310: Determine whether the detection result set is not empty and whether there is a detection result with a confidence level greater than a preset first threshold.

[0097] S320: If yes, record the detection results in the detection result set whose confidence level is greater than a preset first threshold as candidate targets.

[0098] S330: Further determine whether the defect category of the candidate target belongs to a detectable defect category.

[0099] S340: If yes, the candidate target is recorded as a markable defect target.

[0100] Since markable defect targets will be used in subsequent model training, certain conditions must be met. First, the sample images in the training dataset are usually manually labeled, which is equivalent to establishing a set of rules that are applied through machine learning to identify and distinguish defects.

[0101] Therefore, the newly added training samples should use the labels of the most reliable samples as the real labels, that is, the target that can mark defects must first have a certain recognition accuracy, that is, the confidence level must be high, which means that a round of judgment will be made on all the results detected by the current detection model. Of course, there must be test results first. If the current fabric has no defects, it is possible that nothing can be detected, that is, the final set of test results is an empty set.

[0102] Therefore, the system first checks whether the test result set is not empty and contains test results with a confidence level greater than a preset first threshold. Only test results with a confidence level greater than the preset first threshold are considered eligible for update training and are marked as candidate targets. The preset first threshold here represents a measure of confidence in the test results, but this standard is not fixed. As mentioned above, some defects will show different detection results in different fabrics. Therefore, the preset first threshold here can also be adjusted accordingly based on the type of fabric currently being tested.

[0103] As mentioned above, the types of defects that may occur in different types of fabrics are not consistent, and some types of defects may only appear in a certain type of fabric. Therefore, in view of this situation, the current type of fabric to be tested is also obtained, and the detectable defect categories are confirmed according to the fabric type through the preset textile fabric defect reference table.

[0104] Therefore, after selecting a candidate target whose confidence reaches the preset first threshold, it will be further determined whether the defect type corresponding to the candidate target is a detectable defect type. If so, the candidate target will be recorded as a markable defect target; if not, it means that the currently detected defect target is unlikely to appear in the current fabric, and the confidence is high, indicating that it is a false detection. In addition to eliminating the corresponding candidate target, the corresponding detection result information will also be recorded to facilitate subsequent data analysis and inventory of the falsely detected defect type and fabric type.

[0105] S400: Iteratively update a preset defect detection model based on a markable defect target.

[0106] Specifically, referring to FIG5 , the iterative update of the preset defect detection model based on the markable defect target includes the following steps:

[0107] S410 , converting the inspection result to be learned into a label image according to the defect location information and defect category.

[0108] S420: Perform data preprocessing on the label image, and add the preprocessed image to a preset training data set.

[0109] S430: Iteratively train the preset defect detection model according to the new training data set to obtain an updated defect detection model.

[0110] In the present embodiment, the pre-set defect detection model is iteratively updated based on the markable defect target. The first step is to convert the markable defect target into a training data sample. Since the markable defect target represents a detection area in the fabric image, which can also be a portion of the image, and the detection area is also accompanied by the defect category, it is equivalent to a labeled sample image. Simply capture the fabric image using the target detection area as a template, and the captured image can be used as a training labeled image.

[0111] Then the label image is preprocessed. The preprocessing here is different from the previous preprocessing of the scanned image. The preprocessing here mainly expands the sample image. For example, the sample image is rotated at different angles and has different brightness to generate a variety of sample data. Correspondingly, the data volume of each defect type in the original sample data will be balanced and adjusted accordingly.

[0112] Finally, the preprocessed images will be added to the preset training dataset (if it is the first update, it will be the original training dataset), and the preset defect detection model (the current defect detection model) will be iteratively trained based on the new training dataset. That is, the current defect detection model will be used as the pre-training model, and iterative training will continue on this basis to obtain the updated defect detection model.

[0113] It is worth noting that the model is not iteratively updated after each inspection is completed. Instead, it is based on actual use, and the inspection of fabric defects is separate from the iterative training of the inspection model, which does not interfere with each other. For example, during the current working hours, the preliminary inspection model is used. After the working hours are over, the inspection results obtained during the working time period are used to extract new sample data. At this time, it is also necessary to determine whether the obtained sample data has reached a certain amount of data. If a certain amount of data has been reached, the inspection model will be iteratively trained to obtain an updated inspection model. If the certain amount of data has not been reached, data accumulation will continue, because model training will also consume corresponding manpower and material resources. If the amount of new sample data is too small, the results will be relatively low.

[0114] After obtaining the updated detection model, the updated detection model is used to replace the previous detection model without affecting the actual use. The work mentioned here mainly refers to the work of the fabric detection equipment.

[0115] Since machine vision can detect defects and their types during fabric inspection, it can reduce the burden of manual inspection. However, as a fabric inspection system, each defect must be scored to determine whether the fabric has passed inspection. In this regard, machine vision serves more as a supplement, and the final comprehensive judgment of fabric quality still requires manual evaluation. Therefore, machine vision can provide more accurate inspection information and conduct multi-dimensional analysis of various inspection data to assist personnel in fabric quality inspection and assessment.

[0116] Therefore, after the fabric image sequence to be inspected is inspected using the preset defect detection model and a set of inspection results is obtained, referring to FIG6 , the following steps are further included:

[0117] S510 , based on the test result set, from the defect category dimension, statistics the test results under each defect category.

[0118] S520: Obtain the size of the defect according to the defect location information in the detection result.

[0119] S530: Generate an initial score according to the existing defect categories, the number of defects in each defect category, and the defect size using a preset scoring rule.

[0120] S540: Output the initial scoring information, and associate the detection result with the current fabric information and store it in a preset database.

[0121] Among them, the preset scoring rules represent the inspection standards for textile fabrics. For example, if a certain type of defect occurs once, how many points will be deducted; certain types of defects are deducted in sections according to size, such as one point will be deducted if the defect length does not exceed 3 inches, and two points will be deducted if it exceeds 3 inches but does not exceed 6 inches, etc.

[0122] Because in the process of detecting defect targets, the final inspection results are the results after screening through confidence levels, that is, the final results all indicate the existence of defects and can be used as a comprehensive quality inspection assessment of the fabric. However, higher requirements will be placed on the selection of markable defect targets.

[0123] Therefore, after obtaining the set of test results, the test results will be statistically analyzed according to the defect category dimension. The test results under each defect category will be counted. The number of defects can be obtained based on the number of results. The size of the defects can be obtained based on the defect location information in the test results, combined with the scaling ratio of the original scanned image and the image used as the input to the detection model.

[0124] Based on the defect categories existing in the current test result set, the number of defects under each defect category, and the defect size, a preliminary score can be generated through the preset scoring rules, and the preliminary score information will be output so that relevant staff can know it and make corresponding decisions.

[0125] After all the fabrics to be tested are tested, all the initial scoring information will be summarized and a final score will be given. Similarly, the total score will be output as a data reference for the corresponding staff to make a comprehensive assessment of the fabric.

[0126] In addition, the test results will be associated with the current fabric information and stored in a preset database so that statistical analysis can be performed based on the test results later.

[0127] Considering that different processes or technological flows may lead to different types of defects, it is difficult to reflect from the test results of simply testing the finished fabric which process the defect originated from.

[0128] Therefore, in the embodiment of the present application, each detection result will also be stored so as to help infer the cause of the defect with the help of data analysis.

[0129] Specifically, after the detection results are associated with the current fabric information and stored in a preset database, the following steps are also included:

[0130] S610: Determine whether the detection result data corresponding to the current fabric information reaches a preset number.

[0131] S620: If yes, then count the defect types in all the test results and generate a statistical data set.

[0132] S630: Analyze and evaluate the causes of defects based on the statistical data set, and generate corresponding prompt information.

[0133] Since we want to infer the causes of defects based on data statistics, we need a sufficient amount of data as support. In other words, we need to accumulate a certain amount of inspection results for various fabrics. That is, when the test result data corresponding to a certain type of fabric reaches a preset number, we can count the types of defects in all test results and generate a statistical data set. Then, we can analyze and evaluate the causes of the defects based on the statistical data set and generate corresponding prompt information.

[0134] This statistical data set visually displays all defect types associated with this type of fabric, along with the frequency of each defect type. For defect types with significantly higher frequency than others, an inventory is conducted based on the fabric's process flow and the defects that are most likely to occur within each process. This allows for a rough understanding of the causes of these more frequent defect types. This evaluation information is then output as prompts, helping staff review the associated process flow and, if any issues arise, enable timely adjustments.

[0135] The embodiment of the present application further provides an intelligent cloth inspection system with autonomous defect learning. Referring to FIG. 7 , the system includes: an image sequence acquisition module 101 , a defect detection module 102 , and a detection model update module 103 .

[0136] The image sequence acquisition module 101 is used to acquire the current image sequence of the fabric to be detected;

[0137] The defect detection module 102 is used to detect the image sequence of the fabric to be detected using a preset defect detection model and obtain a set of detection results;

[0138] The detection model updating module 103 is configured to extract markable defect targets from the detection result set and iteratively update the preset defect detection model based on the markable defect targets.

[0139] In the embodiment of the present application, the image sequence acquisition module 101 is specifically used to acquire an original image of a digitally scanned fabric to be inspected, and divide the original image to obtain a current image sequence of the fabric to be inspected.

[0140] The defect detection module 102 is specifically configured to detect the image sequence of the fabric to be detected using a preset defect detection model to obtain a set of detection results.

[0141] The detection model updating module 103 is specifically used to extract markable defect targets from the detection result set, and convert the markable defect targets into trainable defect sample images, and then iteratively update the preset defect detection model by expanding the original sample training data set.

[0142] An embodiment of the present application further provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute any of the above-mentioned intelligent fabric inspection methods for autonomous defect learning.

Claims

1. An intelligent fabric inspection method with autonomous defect learning. It is characterized in that include: Get the current cloth image sequence to be detected; The fabric image sequence to be inspected is inspected using a preset defect detection model to obtain a set of inspection results; Extracting markable defect targets from the detection result set; Iteratively update the preset defect detection model based on the markable defect targets.

2. According to claim 1, an intelligent fabric inspection method with autonomous defect learning, It is characterized in that The step of obtaining the image of the cloth to be detected comprises: Obtain the current digitally scanned cloth image; The fabric image is divided into a number of continuous and intersecting images to be detected, and the divided images to be detected are numbered; The images to be detected are preprocessed in sequence according to the numbering order to form a sequence of images to be detected.

3. According to claim 1, an intelligent fabric inspection method with autonomous defect learning, It is characterized in that Before obtaining the current cloth image to be detected, the method further includes: Acquire the fabric information to be detected, wherein the fabric information includes the fabric type; Based on the current fabric type, the detectable defect categories are confirmed through the preset textile fabric defect reference table.

4. According to claim 1, an intelligent fabric inspection method with autonomous defect learning, It is characterized in that The detection result includes defect location information, defect category and confidence level. The image sequence of the fabric to be detected is detected by a preset defect detection model. After obtaining the detection result set, it includes: Sort all the detection results in the detection result set according to the detection image sequence; Based on the sorted test results, determine whether there is overlap in the test areas according to the defect location information in the test results; If yes, a new inspection image is extracted based on the overlapping defect inspection area; The new inspection image is inspected using the preset defect detection model, the inspection result is obtained, and the inspection result is added to the inspection result set.

5. According to claim 4, an intelligent fabric inspection method with autonomous defect learning, It is characterized in that The step of extracting a markable defect target from the detection result set includes: Determine whether the detection result set is not empty and whether there is a detection result with a confidence level greater than a preset first threshold; If so, the detection results in the detection result set whose confidence is greater than the preset first threshold are recorded as candidate targets; Further determine whether the defect category of the candidate target belongs to the detectable defect category; If so, the candidate target is recorded as a markable defect target.

6. According to claim 4, an intelligent fabric inspection method with autonomous defect learning, It is characterized in that The iterative updating of the preset defect detection model based on the markable defect target includes: The inspection results to be learned are converted into label images according to the defect location information and defect category; Perform data preprocessing on the label images and add the preprocessed images to the preset training data set; The preset defect detection model is iteratively trained according to the new training data set to obtain an updated defect detection model.

7. According to claim 4, an intelligent fabric inspection method with autonomous defect learning, It is characterized in that After the fabric image sequence to be inspected is inspected by using a preset defect detection model and a set of inspection results is obtained, the method further includes: According to the test result set, from the defect category dimension, the test results under each defect category are counted; According to the defect location information in the detection results, the size of the defect is obtained; Generate a preliminary score using the preset scoring rules based on the existing defect categories, the number of defects in each defect category, and the defect size; Output the initial scoring information, and associate the test results with the current fabric information and store them in the preset database.

8. According to claim 7, an intelligent fabric inspection method with autonomous defect learning, It is characterized in that After the detection result is associated with the current fabric information and stored in a preset database, the method further includes: Determine whether the detection result data corresponding to the current fabric information reaches the preset number, If yes, then count the defect types in all the test results and generate a statistical data set; Analyze and evaluate the causes of defects based on the statistical data set, and generate corresponding prompt information.

9. An intelligent fabric inspection system with self-learning of defects. It is characterized in that include: An image sequence acquisition module (101) is used to acquire a current image sequence of a cloth to be detected; A defect detection module (102) is used to detect the image sequence of the fabric to be detected using a preset defect detection model to obtain a set of detection results; The detection model updating module (103) is used to extract the markable defect targets from the detection result set, and iteratively update the preset defect detection model based on the markable defect targets.

10. A computer-readable storage medium storing a computer program that can be loaded by a processor and execute the intelligent fabric inspection method with autonomous defect learning as claimed in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Small-sample low-quality image target detection method based on multi-definition integrated self-training

    CN114067173A

  • Label type adaptive active learning image target detection method and device

    CN114155398A

  • Textile fabric surface defect detection method and system based on semi-supervised network

    CN114842005A

  • Intelligent cloth inspecting method and system for defect autonomous learning

    CN116579984A

  • Proposal learning for semi-supervised object detection

    US20210216828A1

Cited By

  • Site detection and dispensing control method and system based on image information

    CN119016301A

  • Defect detection method and system for glass fiber gridding cloth

    CN119688699A

  • Intelligent control method and system for refractory brick production line

    CN120972794A

  • Fabric defect indicating method and device based on lamp strip

    CN121476217A

  • Intelligent processing method and system for rubber flaw detection image

    CN121563862A