A method for detecting ultra-high density fabrics
Through the improved FT algorithm, combined with global and local feature analysis, the weighted Euclidean distance and importance of pixels in the fabric image are calculated, which solves the problem of false detection of fabric defects in the existing technology and improves the accuracy and pertinence of detection.
Patent Information
- Application Number
- CN202411044704.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-01
AI Technical Summary
When the existing technology detects defects in ultra-high-density fabrics, it is difficult to accurately identify defects with small differences between fabric defects and normal areas, leading to false detection problems. Insufficient data collection and image labeling processes limit the accuracy of defect identification.
The improved FT algorithm obtains the weight of each pixel in the image in the LAB color space, calculates the weighted Euclidean distance as the saliency value, and combines global and local feature analysis to determine the importance of the pixel, thereby improving the accuracy of saliency detection.
It improves the accuracy of fabric defect detection, reduces the false detection rate, can more accurately identify fabric defects in the production line, and enhances the pertinence and effectiveness of detection.
Smart Images

Figure CN118570201B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology and more specifically to a method for detecting ultra-high density fabrics. Background Art
[0002] In the textile production industry, due to the errors of the mechanical equipment for weaving textiles, the deviation of raw materials and the undesirable environment, many defects will occur, such as coarse warp, hanging warp, missing weft and sparse weft, etc. Therefore, it is necessary to detect defects of ultra-high density fabrics on the production line.
[0003] Existing defect detection mainly uses deep learning-based detection methods to summarize defect features for defect detection. However, in actual industrial applications, due to the large number of characteristics of fabric defects, inter-class similarities and intra-class diversity, hundreds of types of defects may be generated in industrial production lines. Data collection is usually limited by the lack of defect sample availability and image labeling process, which reduces the accuracy of defect recognition and easily causes missed detection and false detection.
[0004] In order to avoid the problem of missed detection and false detection of fabric defects due to insufficient sample quantity, the prior art also uses image saliency detection algorithm to perform image saliency detection, so as to quickly determine the salient area in the image and use it for subsequent image defect detection. For example, the patent document entitled "A method for detecting defects in printed fabrics" with the authorization announcement number CN111861996B discloses that the FT (Frequency-tuned) algorithm is first used to perform saliency detection on the fabric to obtain a saliency image, and then the saliency image is binarized using the Otsu threshold to determine a difference map.
[0005] Among them, the specific steps of the FT (Frequency-tuned) algorithm include: 1. Performing Gaussian filtering on the image to obtain a filtered image; 2. Converting the image from RGB color space to LAB color space to obtain L, A, and B three-channel images in the LAB color space; 3. Obtaining the pixel mean of the L, A, and B three-channel images; 4. Calculating the saliency value, that is, according to the pixel value of each channel of each pixel point in the filtered image and the pixel mean of the corresponding channel, obtaining the Euclidean distance of each pixel point, and taking the Euclidean distance as the saliency value of the pixel point; 5. Based on the saliency values of all pixels, obtaining a saliency map.
[0006] The above-mentioned FT algorithm often fails to make the salient targets prominent enough when detecting salient targets in images, especially when there are defects with small differences between the fabric defects and the fabric background area, resulting in the salient targets in the detection results not being obvious enough, and it is easy to identify normal fabrics as defective fabrics, resulting in false detection.
[0007] Therefore, it is particularly important to avoid the problem of false detection caused by small differences between defects and normal areas, so as to accurately identify the defects of fabrics in the production line. Summary of the invention
[0008] The purpose of the present invention is to propose an ultra-high density fabric detection method to solve the problem that the prior art cannot accurately identify fabric defects in the production line; to this end, the present invention provides a solution in the following aspect.
[0009] The present invention provides a method for detecting ultra-high density fabrics, comprising:
[0010] Get images of ultra-high density fabrics currently on the production line;
[0011] Extracting a saliency map of the image using an improved FT algorithm;
[0012] The pixel points in the image corresponding to the significant value in the significance map being greater than the threshold value are regarded as defect points, and if the frequency of occurrence of the defect points is greater than the set value, the ultra-high density fabric is unqualified;
[0013] The improved FT algorithm comprises: obtaining the weight of each pixel in the image in three channels, using the weight to obtain the weighted Euclidean distance of each pixel in the three channels, and using the weighted Euclidean distance as the saliency value of the corresponding pixel;
[0014] The weight is the normalized value of the importance of any channel corresponding to each pixel; for: ,in, For all pixels in the image The initial extent of the channel, is the number of pixels in the local window centered at the pixel point in the i-th row and j-th column. The pixel mean of the channel, , are all the pixels in the image. The pixel mean and maximum pixel value on the channel; the initial degree is the same as all pixels in the image The degree of pixel difference on the channel and the pixel variance are positively correlated. The channel is any channel of the L channel, A channel, and B channel of the image in the LAB color space.
[0015] In the above scheme, the initial degrees of different channels in the image are analyzed from a global perspective, and then local information within the local range of pixels in the image is introduced. The local information is combined with the initial degree to determine the importance of pixels in different channels, thereby obtaining the importance of each pixel in different channels and obtaining a significant value. Compared with the existing FT algorithm, the scheme of the present invention can further determine the importance of different channels, and thus can accurately detect fabrics.
[0016] In one embodiment, the initial level is:
[0017] ;
[0018] in, For all pixels in the image The initial extent of the channel, For all pixels in the image Pixel variance across channels, For all pixels in the image The degree of pixel difference across channels, , are all the pixels in the image. The maximum pixel value and the minimum pixel value on the channel, is the maximum pixel variance among all channels.
[0019] In the above scheme, by analyzing the three channels L, A, and B of all pixels in the image in the LAB color space, the pixel variance and pixel difference degree of all pixels in each channel are obtained, so as to determine the initial degree of each channel to distinguish the importance of all pixels in the image in different channels, so as to facilitate more attention in the future.
[0020] In one embodiment, the size of the local window for:
[0021] ;in, is the pixel point in the i-th row and j-th column of the image The degree of gradient difference of the channel, , is the initial window size, is the pixel point in the i-th row and j-th column in the image. The gradient amplitude of the channel, is the pixel in the initial window centered at the pixel in the i-th row and j-th column. The mean gradient amplitude over the channel, For all pixels in the image The maximum gradient amplitude of the channel, For all pixels in the image The initial extent of the channel, is the rounding symbol, exp( ) is the exponential function with the natural constant e as the base, The channel is any one of the L channel, the A channel, and the B channel.
[0022] In the above scheme, by analyzing the gradients of pixels in different channels, the local window size of each pixel in different channels can be adaptively determined, and then the information of the local features of the pixel in different channels can be determined, providing data support for the subsequent calculation of significance.
[0023] In one embodiment, the size of the local window is K×K, where K is an odd number.
[0024] In one embodiment, the weights of the pixels in the three channels are:
[0025] ;
[0026] ;
[0027] ;
[0028] in, , and are the importance of the pixel in the i-th row and j-th column in the image in the L channel, A channel, and B channel respectively. , and are the weights of the pixel in the i-th row and j-th column in the image in the L channel, A channel, and B channel respectively.
[0029] In the above, the importance of the three channels is normalized to obtain the weights to be allocated.
[0030] In one embodiment, the significant values are:
[0031] ;
[0032] in, is the saliency value of the pixel in the i-th row and j-th column of the image, , and are the weights of the pixel in the i-th row and j-th column in the image in the L channel, A channel, and B channel, respectively. , and are the pixel values of the pixel in the i-th row and j-th column of the image on the L channel, A channel, and B channel respectively. , and are the pixel means of all pixels in the image on the L channel, A channel, and B channel respectively.
[0033] In one embodiment, before determining the defect point, a step of normalizing each of the significant values by using a maximum value normalization method is also included.
[0034] The above scheme can reduce the amount of calculation.
[0035] In one embodiment, the set value is 0.05.
[0036] The beneficial effects of the present invention are:
[0037] The scheme of the present invention can assign appropriate weights before calculating the significant value of each pixel point by introducing the importance of each pixel point, so that the acquired significant value is more accurate, and the accuracy of subsequent ultra-dense fabric detection is improved. At the same time, when calculating the importance, the global features and local features are analyzed, and the significance of each pixel point can be adjusted more specifically, so that the target that needs to be significant is more significant, and the accuracy of subsequent fabric detection is also improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0039] Figure 1 A flowchart of the steps of an ultra-high density fabric detection method in this embodiment is schematically shown. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0041] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0042] When performing saliency detection of an image, the existing FT algorithm converts the collected image from the RGB color space to the LAB color space, and calculates the Euclidean distance between each pixel point on the three channels L, A, and B and the corresponding channel pixel mean to obtain the saliency value, and then detects the fabric. However, since there may be a situation in the fabric image where the pixel value of the pixel point in the defective part on a certain channel has a very small difference with the pixel mean of the channel, this may cause the defective part on the ultra-high density fabric to fail to have a good highlighting effect in the saliency map (image composed of saliency values) obtained by the FT algorithm, thereby causing the subsequent fabric detection to have the problem of false detection. Based on the above problem, the present invention provides an ultra-high density fabric detection method to avoid the problem of false detection of fabrics.
[0043] Specifically, taking ultra-high density fabric on a production line as an example, an ultra-high density fabric detection method of the present invention is introduced.
[0044] like Figure 1 As shown, a method for detecting ultra-high density fabrics in this embodiment includes the following steps:
[0045] In step S1, an image of the ultra-high density fabric on the current production line is obtained. Specifically, the fabric on the winding roller is unrolled through a fabric inspection table under the drive of a conveying roller, and the image of the fabric is collected by a camera arranged on the fabric inspection table.
[0046] In step S2, the saliency map of the image is extracted using the improved FT algorithm. It should be noted that in this embodiment, only the step of calculating the saliency value in the existing FT algorithm is improved, and other steps are not improved.
[0047] Specifically, the process of calculating the significant value in the improved FT algorithm includes steps S21-S22, which are as follows:
[0048] Step S21, respectively obtain the weights of each pixel in the image in the three channels of L, A, and B.
[0049] In this embodiment, although there is a certain visual difference between the pixels of the suspected defect area and the normal area in the image, when the difference is reflected in different channels, it does not necessarily cause the two areas to have a high gap in all channels, making it difficult to distinguish the suspected defect area from the normal area. For example, the pixel values of the pixels of a normal area in the LAB color space are 50, 50, 60 in the three channels of L, A, and B, while the pixel values of the pixels in the suspected defect area in the LAB color space are 51, 65, 61 in the three channels of L, A, and B. Although there is an obvious color difference between the two, the difference in the pixel value of the first channel is smaller than the difference in the pixel value of the third channel, and the difference in the pixel value of the second channel is larger. Therefore, the difference between the two areas in the LAB color space in the three channels of L, A, and B is small, making it difficult to distinguish.
[0050] Based on the above problems, in order to highlight the suspected defect area, it is necessary to distinguish the suspected defect area as much as possible. Therefore, it is necessary to analyze each pixel in the image to determine the weights of the three channels corresponding to each pixel.
[0051] The specific process of obtaining the weights in this embodiment is as follows: first, the initial degree of the image on each channel is obtained.
[0052] Specifically, the initial degree of the image on each channel is:
[0053] ;
[0054] in, for The initial extent of the channel, For all pixels in the image Pixel variance across channels, For all pixels in the image The maximum pixel value on the channel, For all pixels in the image The minimum pixel value on the channel, is the maximum value of pixel variance in all channels, The channel is any one of the three channels L, A, and B of the image in the LAB color space.
[0055] In the above formula In order to simplify the calculation, the maximum value is used for normalization. The purpose is to remove the different dimensions of different channels in the LAB color space, so as to normalize the difference between the maximum pixel value and the minimum pixel value of each channel.
[0056] In the above formula, when the difference between the maximum pixel value and the minimum pixel value in a channel in the image of ultra-high density fabric is larger, the initial degree of the channel is larger, and the image is more likely to have defects and show up in the channel; on the contrary, when the difference is smaller, the initial degree of the channel is smaller, and the image may not show obvious slight differences caused by the lighting environment and the shooting equipment in the channel. Of course, it may also be because the difference between the defective color and the normal color is not reflected in the channel. At the same time, when the pixel variance of a channel is smaller, the initial degree is smaller, which proves that the pixel values of the pixels in the image of ultra-high density fabric on the corresponding channel are relatively close, and the ultra-high density fabric has a uniform color and a relatively flat state at this time. At this time, the ultra-high density fabric may be normal; when the variance of a channel is larger, the initial degree is larger, which proves that the pixel values of the pixels in the image of ultra-high density fabric on the corresponding channel have large differences, and the ultra-high density fabric may have defective areas.
[0057] For example, the L channel of the image in the LAB color space is used as Taking the L channel as an example, the initial degree of all pixels in the image in the L channel is:
[0058] ;in, is the initial level of the L channel, is the pixel variance of all pixels in the image on the L channel, is the maximum pixel value of all pixels in the image on the L channel, is the minimum pixel value of all pixels in the image on the L channel, is the maximum value of the pixel variance in the three channels.
[0059] Among them, since the initial degree represents the importance of all pixels in the image in each channel, the initial degree of each pixel in the image in the same channel is the same.
[0060] Since the channel images corresponding to the three channels L, A, and B have the same size and differ only in the color features in the image, the calculation method of the initial degree of the two channels A and B is similar to that of the L channel, so the initial degree of the image in the A channel can be obtained. and the initial level of channel B .
[0061] The purpose of obtaining the initial degree is to distinguish as much as possible the pixels in different areas that have obvious visual differences, while the differences may be small on the three channels of L, A, and B, so as to widen the gap between the two areas (the gap between the significant value of the suspected defect area and the significant value of the normal area) and highlight the suspected defect area in the two areas.
[0062] In addition, although the difference between the maximum pixel value and the minimum pixel value of each channel in the image can measure the importance (initial degree) of each channel to a certain extent, this process is easily affected by noise, which may lead to misjudgment of the importance of each channel. Therefore, the pixel variance of the pixel values of all pixels in the image on each channel is also introduced in this embodiment to correct the difference between the maximum pixel value and the minimum pixel value.
[0063] Secondly, according to the initial degree and the local features of each pixel in different channels, the importance of the channel corresponding to each pixel is obtained.
[0064] Among them, the initial degree of each channel obtained is to preliminarily distinguish the more important suspected defect areas from a global perspective, but because the defects in the image are often local, it is necessary to analyze the local range of the image so that the difference between the defect area in the image and the significant value of the normal area can be larger. Therefore, this embodiment also introduces the influence of the local characteristics of each pixel in the image on different channels, and combines the local characteristics and the initial degree of the corresponding channel to determine the importance of the corresponding pixel.
[0065] Specifically, the importance of for:
[0066] ,in, For all pixels in the image The initial extent of the channel, is the number of pixels in the local window centered at the pixel in the i-th row and j-th column of the image. The pixel mean of the channel, , are all the pixels in the image. The pixel mean and maximum pixel value of the channel.
[0067] The above local features are , which is obtained by analyzing the pixels in the corresponding local window in each channel.
[0068] For example, The channel is the L channel of the three channels L, A, and B in the LAB color space of the image. This is an embodiment. The importance of the pixel point in the i-th row and j-th column in the L channel is calculated. for: ,in, is the initial level of the pixel in the i-th row and j-th column of the image in the L channel, is the pixel mean of all pixels in the local window centered at the pixel in the i-th row and j-th column of the image in the L channel, , They are the pixel mean and maximum pixel value of all pixels in the image on the L channel respectively.
[0069] Since the defects in ultra-high-density fabrics are usually caused by accidental misalignment of the warp or weft, this part shows different color characteristics from other parts in the image. However, since the defects belong to a very small part of the image, the pixel values corresponding to the normal part of the fabric in the image are close to the pixel mean of the corresponding channel. , and the pixel value corresponding to the suspected defective part of the fabric in the image is the average value of the corresponding channel pixel value There is a certain gap, so the mean value of pixels in the local range in the L channel is calculated and pixel mean The absolute value of the difference, when the absolute value of the difference is larger, it means that the pixel value of the i-th row and j-th column pixel in the L channel deviates more from the pixel value that a normal fabric should have, then the pixel in the local range is more likely to be in the defective area of the fabric, and when calculating the saliency value, the importance of the L channel corresponding part of the i-th row and j-th column pixel in the image is higher, so it is necessary to make the saliency value corresponding to the i-th row and j-th column pixel higher to highlight the suspected defective area in the fabric; conversely, the pixel in the local range is more likely to be in the normal area of the fabric, and when calculating the saliency value, the importance of the i-th row and j-th column pixel in the L channel is lower, so it is necessary to make the saliency value corresponding to the i-th row and j-th column pixel lower to highlight the defective area in the fabric.
[0070] At the same time, in order to adjust The adjustment effect is achieved by removing the dimension problem caused by different channel pixel values in the LAB color space having different value ranges. In this embodiment, Perform normalization.
[0071] Since the channel images corresponding to the three channels L, A, and B have the same size and differ only in the color features in the channel images, the calculation method for the importance of the two channels A and B is the same as that for the L channel. So far, the importance of the image in the A channel can be obtained. and the importance of channel B .
[0072] When calculating the importance, the local features of the pixel points in the surrounding local range are introduced to correct the initial degree, so as to obtain the importance of each pixel point in each channel, which can further expand the difference between the significant values of the pixel points corresponding to the suspected defective area in the image of the ultra-high density fabric and the significant values of the pixel points corresponding to the normal area.
[0073] In one embodiment, the local window of each channel may be a fixed window K×K, where K is an odd number, such as a local window of 5×5, 7×7, 11×11, etc. Of course, other implementations may also be set according to actual conditions.
[0074] In another embodiment, since pixels have different feature representations in different channels, when using the local features of each pixel in the image, different local windows need to be used for the pixels in each channel to obtain the corresponding local features, that is, different channels correspond to local windows of different sizes.
[0075] The process of obtaining the local window of each channel in this embodiment is as follows:
[0076] The Sobel operator is used to calculate the gradient of each pixel in each channel of the ultra-high density fabric image; the local window size used by each pixel in the image on each channel is calculated according to the initial degree of each channel in the ultra-high density fabric image and the gradient corresponding to each channel.
[0077] Specifically, in this embodiment, the size of the local window is:
[0078] ;in, is the pixel point in the i-th row and j-th column of the image The degree of gradient difference of the channel, , is the initial window size, is the pixel point in the i-th row and j-th column of the image The size of the local window of the channel, is the pixel point in the i-th row and j-th column of the image The gradient amplitude of the channel, is the pixel in the initial window centered at the pixel in the i-th row and j-th column. The mean gradient amplitude over the channel, For all pixels in the image The maximum gradient amplitude of the channel, For all pixels in the image The initial extent of the channel, is the rounding symbol, exp( ) is the exponential function with the natural constant e as the base, The channel is any one of the L channel, the A channel, and the B channel.
[0079] is the pixel point in the i-th row and j-th column of the image The difference between the gradient amplitude on the channel and the gradient amplitude of the pixel points in the initial window around the pixel point. The larger the value, the more likely it is that there are defects in the fabric image. In this case, a smaller local window should be used at the pixel point to collect the local features around the pixel point, so that the significant value corresponding to the pixel point in the subsequent calculation process is larger. Conversely, the smaller the value, the more likely it is that the fabric image is a texture in the normal area. In this case, a larger local window should be used at the pixel point to collect the local features around the pixel point, so that the image features of the pixels in the vicinity of the pixel point are closer to the overall image features, so that the significant value corresponding to the pixel point in the subsequent calculation process is smaller.
[0080] At the same time, in order to simplify the calculation, all pixels in the image are used Channel Normalize.
[0081] For example, when When the channel is L channel, the size of the local window of L channel is:
[0082] , ;
[0083] when When the channel is channel A, the size of the local window of channel A is:
[0084] , ;
[0085] when When the channel is the B channel, the size of the local window of the B channel is:
[0086] ; ;
[0087] in, , and are the sizes of the local windows of the pixel point in the i-th row and j-th column in the image in the L channel, A channel, and B channel, respectively. is the initial window size, , , are the initial levels of L channel, A channel and B channel respectively, , , are the gradient differences of L channel, A channel and B channel respectively, , and are the gradient amplitudes of the pixel in the i-th row and j-th column in the image on the L channel, A channel and B channel respectively. , and are the mean values of the gradient amplitudes of the pixels in the initial window centered at the pixel point in the i-th row and j-th column in the image on the L channel, A channel, and B channel, respectively. , and are the maximum values of the gradient amplitudes of all pixels in the image on the L channel, A channel, and B channel, respectively. is the rounding symbol, and exp( ) is an exponential function with the natural constant e as the base.
[0088] For the importance of any pixel, when the initial degree of the pixel in the image in the L channel When the value is larger, a smaller local window is needed to capture finer local features around the pixel position on the channel. The smaller the local window is, the larger the local window should be used to make the obtained saliency value better reflect the color change of the whole image, so that the normal area in the image has a lower saliency value. Adjustments are made so that the importance of pixels in the image takes into account both the global features of the image and the local features of the image, so that the defective area in the image has a higher significance value and the normal area has a lower significance value.
[0089] Since the calculation methods of the A channel, the B channel and the L channel are the same, the principles of the A channel and the B channel will not be introduced here.
[0090] Above The size of the initial window corresponding to the L channel, the A channel and the B channel can be 3, 5 or 7; of course, it can be adjusted according to actual conditions.
[0091] In order to facilitate the adjustment of the local window size, the form of dividing by 2, rounding up, and then multiplying by 2 plus 1 is used in the formula in order to limit the size of the sliding window to an odd number.
[0092] Then, the weight of any pixel in the image in any channel is calculated.
[0093] The weight in this embodiment is the normalized value of the importance of any pixel in the image in any channel.
[0094] Specifically, the weights of the three channels after normalization are:
[0095] ;
[0096] ;
[0097] ;
[0098] in, , and are the importance of the pixel in the i-th row and j-th column in the image in the L channel, A channel, and B channel respectively. , and are the weights of the pixel in the i-th row and j-th column in the image in the L channel, A channel, and B channel respectively.
[0099] Step S22, using the weights, obtaining the weighted Euclidean distance of each pixel in the three channels, and using the weighted Euclidean distance as the saliency value of the corresponding pixel.
[0100] Among them, the salient value of the target pixel is:
[0101]
[0102] in, is the saliency value of the pixel in the i-th row and j-th column of the image, , and are the weights of the pixel in the i-th row and j-th column in the image in the L channel, A channel, and B channel, respectively. , and are the pixel values of the pixel in the i-th row and j-th column of the image on the L channel, A channel, and B channel respectively. , and are the pixel means of all pixels in the image on the L channel, A channel, and B channel respectively.
[0103] In step S3, the pixel points in the image corresponding to the significant value in the saliency map greater than the threshold are taken as defect points. If the frequency of occurrence of the defect points is greater than the set value, the ultra-high density fabric is unqualified. Specifically, before determining the defect points, the method further includes the step of normalizing the significant values using the maximum value normalization method.
[0104] In this embodiment, when the significance value corresponding to any pixel point in the image is greater than the threshold value, it is considered that the pixel point is located in the defect area and is a defect point. When the proportion (frequency of occurrence) of the number of defect points located in the defect area in the image is greater than the set value, it is considered that the current production of ultra-high density fabrics is unqualified and corresponding measures should be taken.
[0105] The threshold value is 0.5, and can be set according to actual conditions. The frequency of occurrence is the ratio of the number of defect points to the total number of pixels in the image, and the setting value is 0.05.
[0106] The above-mentioned corresponding measures may include notifying relevant staff to debug the equipment.
[0107] The scheme of the present invention can detect ultra-high density fabrics to determine whether the ultra-high density fabrics are qualified, and then can promptly notify the staff to inspect and debug the equipment when the fabrics are unqualified.
[0108] In the description of this specification, “plurality” means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
[0109] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
Claims
1. A method for detecting ultra-high density fabrics, It is characterized in that include: Get images of ultra-high density fabrics currently on the production line; The improved FT algorithm is used to extract the saliency map of the image; The pixel points in the image corresponding to the significant value in the significance map being greater than the threshold are regarded as defect points. If the frequency of occurrence of the defect points is greater than the set value, the ultra-high density fabric is unqualified. The process of calculating the saliency value in the improved FT algorithm: obtain the weights of each pixel in the image in the three channels, use the weights to obtain the weighted Euclidean distance of each pixel in the three channels, and use the weighted Euclidean distance as the saliency value of the corresponding pixel; The weight is the normalized value of the importance of any channel corresponding to each pixel; Importance : ,in, For all pixels in the image The initial extent of the channel, is the number of pixels in the local window centered at the pixel point in the i-th row and j-th column. The pixel mean of the channel, , are all the pixels in the image. The pixel mean and maximum pixel value on the channel; the initial degree and all pixels in the image The degree of pixel difference on the channel and the pixel variance are positively correlated. Channel is any channel among L channel, A channel and B channel of the image in LAB color space; Initial level: ; in, For all pixels in the image The initial extent of the channel, For all pixels in the image Pixel variance across channels, For all pixels in the image The degree of pixel difference across channels, , are all the pixels in the image. The maximum pixel value and the minimum pixel value on the channel, is the maximum pixel variance among all channels.
2. The ultra-high density fabric detection method according to claim 1, It is characterized in that The size of the local window for: ;in, is the pixel point in the i-th row and j-th column of the image The degree of gradient difference of the channel, , is the initial window size, is the pixel point in the i-th row and j-th column of the image The gradient amplitude of the channel, is the pixel in the initial window centered at the pixel in the i-th row and j-th column. The mean gradient amplitude over the channel, For all pixels in the image The maximum gradient amplitude of the channel, For all pixels in the image The initial extent of the channel, is the rounding symbol, exp( ) is the exponential function with the natural constant e as the base, The channel is any one of the L channel, the A channel, and the B channel.
3. The ultra-high density fabric detection method according to claim 1, It is characterized in that The size of the local window is K×K, where K is an odd number.
4. The ultra-high density fabric detection method according to claim 1, It is characterized in that The weights of each pixel in the three channels are: ; ; ; in, , and are the importance of the pixel in the i-th row and j-th column in the image in the L channel, A channel, and B channel respectively. , and are the weights of the pixel in the i-th row and j-th column in the image in the L channel, A channel, and B channel respectively.
5. The ultra-high density fabric detection method according to claim 1, It is characterized in that The significant values are: ; in, is the saliency value of the pixel in the i-th row and j-th column of the image, , and are the weights of the pixel in the i-th row and j-th column of the image in the L channel, A channel, and B channel, respectively. , and are the pixel values of the pixel in the i-th row and j-th column of the image on the L channel, A channel, and B channel respectively. , and are the pixel means of all pixels in the image on the L channel, A channel, and B channel respectively.
6. A method for detecting ultra-high density fabrics according to claim 5, It is characterized in that Before determining the defect point, the method further includes a step of normalizing the significant values using a maximum value normalization method.
7. The ultra-high density fabric detection method according to claim 1, It is characterized in that The set value is 0.05.
Citation Information
Patent Citations
A method for detecting defects in printed fabrics
CN111861996B
Remote sensing image region-of-interest detection method based on multi-significant-feature fusion
CN104966085A
A method for detecting fabric defects
CN109035195A
Printed fabric defect detection method
CN111861996A
Three-branch convolutional network fabric defect detection method based on weak supervised learning
CN111882546A
