Fabric tensile property quality detection method
By obtaining the images before and after the tensile strength test of the fabric, and calculating the optical flow vector field by using optical flow method and Gaussian filtering, the problem of inaccurate tensile resistance detection in the prior art is solved, and more accurate tensile resistance quality of the fabric is achieved Test.
Patent Information
- Application Number
- CN202410886276.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Existing computer vision-based fabric tensile quality detection methods may not be able to effectively capture the real situation when analyzing the motion tensile trajectory, resulting in accumulated errors and inaccurate detection results.
A fabric tensile quality detection method is adopted to obtain the images before and after the tensile strength test of the fabric to be detected, and the characteristic points and optical flow information are obtained based on the optical flow method, combined with Gaussian filtering to calculate the optical flow vector field, and the fabric resistance is to be resisted. The tensile strength test time is integrated to obtain the fabric stretch index to accurately detect the tensile resistance of the fabric.
This method reduces the calculation amount of the optical flow method, improves the accuracy of pixel motion tracking, can qualitatively and quantitatively analyze the tensile quality of the fabric, and improves the accuracy of detection.
Smart Images

Figure CN118967552A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method for detecting the tensile strength of fabrics. Background Art
[0002] The tensile strength of fabrics is one of the important indicators to measure the quality and performance of fabrics. Tensile strength refers to the resistance of fabrics to external tensile forces. By testing the tensile strength of different fabrics, we can compare their performance differences under the same conditions. This helps to optimize material selection and product design to ensure that the most suitable fabrics are selected to meet the needs of specific applications, such as clothing, sports equipment, car seats, medical supplies and other fields.
[0003] Existing computer vision-based fabric tensile quality inspection methods generally use the optical flow method to analyze the motion stretching trajectory of each point on the fabric to be inspected, and then inspect the fabric tensile quality based on the analysis results. However, this method may not effectively capture the true situation of the movement for some points, which leads to deviations or wrong motion estimation when analyzing the motion stretching trajectory, resulting in error accumulation and inaccurate fabric tensile quality inspection results. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a method for detecting the tensile strength of fabrics to solve the existing problems.
[0005] A fabric tensile quality testing method of the present application adopts the following technical solution:
[0006] An embodiment of the present application provides a method for detecting the tensile strength of a fabric, the method comprising the following steps:
[0007] Acquire images of the fabric to be tested before and after the tensile strength test;
[0008] Pixels are screened based on the positions of pixels in the image before the test and the distribution of grayscale values in a local range to obtain feature points of the image before the test, and feature points of the image after the test and corresponding optical flow information are obtained by the optical flow method;
[0009] The optical flow information between different feature points in the local range of each pixel in the tested image is used to calculate the optical flow information of each pixel except the feature points, and the optical flow vector field is obtained by combining Gaussian filtering;
[0010] Based on the fabric tensile strength test time, the optical flow vector field is integrated to obtain the fabric stretch index;
[0011] The tensile strength of the fabric to be tested is tested in combination with the fabric tensile index.
[0012] The acquiring of feature points of the image before the test includes:
[0013] For the image before the test, the fabric distance feature value of each pixel is obtained according to the position distribution of the pixels and the distance characteristics between the pixels;
[0014] According to the discrete degree and energy distribution of the grayscale value in the local range of each pixel, the local grayscale feature of each pixel is obtained;
[0015] The fabric distance eigenvalue and the local grayscale eigenvalue of each pixel in the image before the test are fused to obtain the characteristic factor of each pixel, and the average value of the characteristic factors of all pixels in the image before the test is used as the characteristic threshold; all pixels whose characteristic factors are greater than the characteristic threshold are composed of a first candidate feature point set; feature detection is performed on the image before the test to obtain a second candidate feature point set, and the pixels in the intersection of the first candidate feature point set and the second candidate feature point set are used as feature points of the image before the test.
[0016] Wherein, obtaining the fabric distance feature value of each pixel includes:
[0017] According to the positions of the clamps on both sides in the image before the test, the reference lines on both sides are determined; according to the reference lines on both sides, the first edge pixel and the second edge pixel are determined; the reference lines on both sides are cross-connected to confirm the center pixel; the distance between each pixel and the first edge pixel and the second edge pixel is recorded as the first distance and the second distance respectively; the distance between each pixel and the center pixel is obtained and recorded as the center distance; the minimum value of the first distance and the second distance of each pixel is obtained; the difference between the minimum value and the center distance is used as the fabric distance feature value of each pixel.
[0018] Wherein, obtaining the local grayscale feature of each pixel includes:
[0019] According to the discrete degree of the grayscale values of all pixels in the neighborhood of each pixel, the local variance of each pixel is obtained; the grayscale co-occurrence matrix of the neighborhood of each pixel is obtained, and the diagonal elements of the grayscale co-occurrence matrix of each pixel are fused to obtain the local energy of each pixel; the inverse proportional mapping result of the local variance of each pixel and the local energy is used as the local grayscale feature of each pixel.
[0020] The step of calculating the optical flow information of each pixel except the feature points includes:
[0021] According to the change of the optical flow information between the feature points in the local range of each feature point in the tested image, combined with the fabric distance feature value, the deformation influence domain of each feature point is obtained;
[0022] The feature point at the center of all deformation influence domains where any pixel is located is recorded as the reference feature point of the any pixel, and the distance between the any pixel and its reference feature point is fused with the corresponding optical flow information to obtain the optical flow information of the any pixel.
[0023] Wherein, obtaining the deformation influence domain of each feature point includes:
[0024] According to the change difference of the optical flow information between any two feature points in the image after the test, the deformation difference coefficient of the any two feature points is obtained;
[0025] In the tested image, the distance between the central pixel and any edge pixel is obtained and fused with the normalized result of the fabric distance characteristic value of each feature point to obtain the fabric influence distance of each feature point; with any feature point as the center, within the corresponding fabric influence distance, the distance between the feature points with the smallest deformation difference coefficient with any feature point is taken as the radius to obtain the deformation influence domain of any feature point.
[0026] The step of obtaining the deformation difference coefficient of any two feature points is as follows:
[0027] The gradient of the optical flow information of each feature point in the tested image is obtained, and the difference in the gradient of the optical flow information of any two feature points is used as the deformation difference coefficient of the any two feature points.
[0028] The step of combining Gaussian filtering to obtain an optical flow vector field includes:
[0029] The standard deviation of the horizontal component of all optical flow information of each pixel and its eight neighboring pixels in the tested image is used as the sigma parameter of the Gaussian filter for each pixel, and a horizontal convolution is performed. Then, the standard deviation of the vertical component of all optical flow information of the corresponding pixel and its eight neighboring pixels is used as the sigma parameter of the Gaussian filter, and the horizontal filtering result is convolved in the vertical direction to obtain the optical flow vector field after Gaussian filtering.
[0030] Wherein, obtaining the fabric stretch index comprises:
[0031] The time interval between the image acquisition before and after the test is obtained and recorded as the fabric stretching time. The optical flow information of each pixel in the image after the test is integrated within the fabric stretching time and then multiplied with the corresponding fabric distance feature value. The accumulated value of the multiplication results of all pixels is taken as the fabric stretching index.
[0032] Wherein, the tensile strength of the fabric to be tested is tested, including:
[0033] The fabric stretch index of the standard fabric is used as the detection threshold. If the fabric stretch index is greater than or equal to the detection threshold, the tensile resistance of the fabric to be tested is qualified; otherwise, the tensile resistance of the fabric to be tested is unqualified.
[0034] This application has at least the following beneficial effects:
[0035] The present application first obtains the images of the fabric to be tested before and after the tensile strength test, which is helpful for the subsequent analysis of the deformation degree of the fabric to be tested before and after the test; the deformation degree of the fabric to be tested in the test area during the test, and the texture characteristics of the fabric, the pixels in the image before the test are screened, as the feature points of the image before the test, and the feature points of the image after the test and the corresponding optical flow information are obtained by the optical flow method, which has the beneficial effect of reducing the amount of calculation using the optical flow method, and at the same time can improve the situation where some pixels are blocked, and compared with the traditional optical flow method, the pixel motion tracking is more accurate; the optical flow information of each pixel is calculated by the optical flow information between different feature points in the local range of each pixel in the image after the test, and it is smoothed by combining Gaussian filtering to obtain the optical flow vector field; the beneficial effect is that by combining interpolation and smoothing, the motion estimation of the pixel after the fabric deformation is more accurate. Based on the fabric tensile strength test time, the optical flow vector field is integrated to obtain the fabric stretch index; the beneficial effect is that it can not only qualitatively judge the tensile quality of the fabric, but also quantitatively analyze the tensile performance of the fabric, so that the tensile quality detection of the fabric is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 A flow chart of the steps of a fabric tensile quality testing method provided in this application;
[0038] Figure 2 A schematic diagram of obtaining the central pixel provided in this application;
[0039] Figure 3 A flowchart for obtaining feature points of an image before testing provided by this application;
[0040] Figure 4 A schematic diagram of the distribution of the deformation influence domain of the pixels provided in this application. DETAILED DESCRIPTION
[0041] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of a fabric tensile quality detection method proposed in the present application, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0042] Unless otherwise defined, terms such as "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such articles or devices. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the article or device comprising the element. In addition, the term "and\or" used herein includes any and all combinations of one or more related listed items. All technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present application belongs.
[0043] The specific scheme of a fabric tensile strength quality testing method provided by the present application is described in detail below with reference to the accompanying drawings.
[0044] An embodiment of the present application provides a method for testing the tensile strength of a fabric. For details, please refer to Figure 1 , the method comprises the following steps:
[0045] Step 1: Obtain images of the fabric to be tested before and after the tensile strength test.
[0046] The fabric sample is subjected to tensile testing using a conventional mechanical testing method. In this embodiment, a 100 mm × 100 mm sample is first prepared. The sample size can be set by the implementer. The two sides of the fabric sample are fixed on the testing device with a clamp, and a tensile force is applied, gradually increasing until the sample breaks. The tensile force on the sample can be monitored in real time through the sensor on the testing device, and the test result is converted into the tensile resistance of the fabric.
[0047] The whole process of the fabric tensile test is recorded using a camera, wherein the camera's shooting range should include the entire fabric sample. The first frame of the recorded image is selected as the image before the test, and the previous frame of the fabric sample that was not broken before the break is selected as the image after the test. It should be understood that since the camera records the entire fabric sample, the acquired image includes the clamp that stretches the fabric sample.
[0048] Furthermore, the obtained image is subjected to Gaussian filtering to remove noise, and then the image is converted into a grayscale image, and subsequent analysis is performed based on the grayscale image.
[0049] It should be noted that Gaussian filtering and image grayscale are well-known technologies, and the specific process will not be repeated here. The implementer can choose a suitable image processing method on his own, and this application does not impose any restrictions on this.
[0050] Step 2: Filter pixels based on the position of pixels in the image before the test and the distribution of grayscale values in the local range, obtain the feature points of the image before the test, and obtain the feature points of the image after the test and the corresponding optical flow information through the optical flow method.
[0051] The present application proposes a method for detecting the tensile quality of fabrics. The method uses an improved optical flow method to analyze the optical flow vector field formed by feature points after the fabric is stretched, analyzes the stress on the fabric, and uses it to compare with standard fabrics to obtain the tensile quality of the fabric.
[0052] After the fabric is stretched, different areas with different fabric characteristics will produce different deformations. It is understandable that when the fabric is clamped on the test equipment for stretching, larger deformations will occur near the clamp and in the middle of the fabric. More feature points should be selected in these areas of the image before the test to better represent the degree of deformation of the fabric. A small number of feature points can be selected in areas with smaller deformations to represent the deformation of these areas.
[0053] Based on this, for each image, the fabric distance feature value of each pixel is obtained according to the position distribution of the pixels and the distance characteristics between the pixels:
[0054] According to the positions of the clamps on both sides in the image before the test, the reference lines on both sides are determined; according to the reference lines on both sides, the first edge pixel and the second edge pixel are determined; the reference lines on both sides are cross-connected to confirm the center pixel; the distance between each pixel and the first edge pixel and the second edge pixel is recorded as the first distance and the second distance respectively; the distance between each pixel and the center pixel is obtained and recorded as the center distance; the minimum value of the first distance and the second distance of each pixel is obtained; the difference between the minimum value and the center distance is used as the fabric distance feature value of each pixel.
[0055] It should be noted that the distance between two pixel points can be measured by Euclidean distance, Manhattan distance, etc.; the difference between two variables can be obtained by subtraction and division. The implementer can choose the appropriate method at his / her own, and this application does not impose any restrictions on this.
[0056] In this embodiment, the Euclidean distance is used to measure the distance between two pixels; edge detection is performed on the image before the test. Since the positions of the clamps in the image before the test of this embodiment are on the left and right sides of the fabric sample, for the clamp on the left, the coincidence point between the edge of the fabric and the clamp is connected as the first reference line; accordingly, the second reference line is obtained according to the clamp on the right; the pixel corresponding to the center of the reference line is used as the edge pixel to obtain the first edge pixel and the second edge pixel; the endpoints of the first reference line and the second reference line are cross-connected, and the intersection point is used as the center pixel.
[0057] Among them, the schematic diagram of obtaining the central pixel is as follows: Figure 2 As shown in the figure, L represents the first reference line, R represents the second reference line, and M represents the center pixel.
[0058] Furthermore, the pixel whose first distance is greater than or equal to the second distance is recorded as the right pixel; otherwise, it is recorded as the left pixel. If the pixel is the right pixel, the difference between the center distance and the corresponding second distance is recorded as the fabric distance characteristic value of the pixel. Correspondingly, if the pixel is the left pixel, the difference between its center distance and the corresponding first distance is calculated and recorded as the fabric distance characteristic value of the pixel.
[0059] It should be noted that the closer a pixel is to the center pixel or the edge pixel, the greater the deformation of the area where the pixel is located after the fabric is stretched, and the number of feature points that need to be selected near the pixel is greater than that of another pixel that is farther away from the center pixel or the edge pixel.
[0060] It can be understood that the larger the value of the fabric distance feature value, the closer the pixel is to the center pixel or the edge pixel. When the fabric distance feature value is 0, the pixel is located on the straight line between the center pixel and the edge pixel, and this position is the area with the smallest deformation.
[0061] Based on this, the local grayscale features of each pixel are obtained according to the discrete degree and energy distribution of the grayscale value in the local range of each pixel:
[0062] According to the discrete degree of the grayscale values of all pixels in the neighborhood of each pixel, the local variance of each pixel is obtained; the grayscale co-occurrence matrix of the neighborhood of each pixel is obtained, and the diagonal elements of the grayscale co-occurrence matrix of each pixel are fused to obtain the local energy of each pixel; the inverse proportional mapping result of the local variance of each pixel and the local energy is used as the local grayscale feature of each pixel.
[0063] It should be noted that the degree of discreteness describes the dispersion of the data, that is, the distribution of data points relative to the center of the data set. Commonly used discreteness measures include variance, standard deviation, range, etc.; generally, two variables are merged by addition, multiplication, or a mixture of addition and multiplication; the two variables are inversely mapped, usually by subtraction or division; implementers can choose a suitable method for calculation, and this application does not impose any restrictions on this.
[0064] In this embodiment, a 3×3 neighborhood window is taken as the center of each pixel, and the pixels at the edge are filled with the mean value. Other suitable neighborhood window sizes can also be selected to calculate the variance of the pixel grayscale values within the neighborhood window, which is recorded as the local variance of the pixel.
[0065] It can be understood that the larger the local variance of a pixel is, the more dispersed the grayscale value distribution in the neighborhood window is, which means that the larger the grayscale value difference in the neighborhood window is, the more complex the texture in the neighborhood window is.
[0066] Obtain the gray-level co-occurrence matrix of the pixels in the neighborhood window of each pixel point, and calculate the sum of the elements on the diagonal of the gray-level co-occurrence matrix. It should be noted that the elements on the diagonal of the gray-level co-occurrence matrix represent the number of times pixels with the same gray-scale value appear in pairs. Therefore, their sum can be used to represent the local energy. Regions with higher local energy usually indicate more uniform textures, while regions with lower local energy may indicate more complex or more variable textures.
[0067] The ratio of the local variance and the local energy of each pixel is recorded as the local grayscale feature of each pixel.
[0068] It should be noted that since the patterns and weaving methods on the fabrics are different, the textures formed are also different. Selecting pixels with more complex textures as feature points is conducive to the subsequent calculation of optical flow.
[0069] It can be understood that the larger the value of the local grayscale feature is, the more complex the texture around the pixel is, and the greater the possibility of selecting the pixel as a feature point is.
[0070] The pixels are screened based on the fabric distance feature value and local grayscale feature of the pixels in the image before the test to obtain feature points:
[0071] The fabric distance eigenvalue and the local grayscale eigenvalue of each pixel in the image before the test are fused to obtain the characteristic factor of each pixel, and the average value of the characteristic factors of all pixels in the image before the test is used as the characteristic threshold; all pixels whose characteristic factors are greater than the characteristic threshold are composed of a first candidate feature point set; feature detection is performed on the image before the test to obtain a second candidate feature point set, and the pixels in the intersection of the first candidate feature point set and the second candidate feature point set are used as feature points of the image before the test.
[0072] It should be noted that the feature detection algorithm is used to identify and track key feature points in an image. Commonly used feature detection algorithms include: Harris corner detection, scale-invariant feature transform (SIFT), speeded up robust features (SURF), ORB (Oriented FAST and Rotated BRIEF), etc. Implementers can select appropriate algorithms to perform feature point detection on images, and this application does not impose any restrictions on this.
[0073] In this embodiment, the product of the fabric distance characteristic value and the local grayscale characteristic value of each pixel is recorded as the characteristic factor of each pixel. The algorithm for performing feature detection on the image is the SIFT algorithm.
[0074] It should be understood that by calculating the fabric distance eigenvalue and local grayscale feature of the pixel in the image before the test, the possibility of the pixel becoming a feature point is characterized from two aspects, that is, the closer a pixel is to the center pixel and the edge pixel, the greater the deformation it produces after the fabric is stretched, and the more likely it is to become a feature point; in addition, the more complex the texture of a pixel, the more information it contains, the more accurate the calculation of the optical flow, and the more likely it is to become a feature point, which enhances the interpretability of the feature point.
[0075] Among them, the flow chart of obtaining the feature points of the image before the test is as follows: Figure 3 shown.
[0076] Based on the image before the test and its feature points, the feature points of the image after the test and the corresponding optical flow information are obtained through the pyramid LK optical flow method. The pyramid LK optical flow method is a well-known technology and the specific process will not be repeated here.
[0077] It should be noted that the LK optical flow method was originally used to obtain dense optical flow. Since the algorithm can also be applied to a group of points in the input image, it has become an important method for obtaining sparse optical flow. Considering the movement speed of the object, the error can be reduced by reducing the size of the image. Therefore, a pyramid image of the original image is generated and solved layer by layer.
[0078] It should be further explained that obtaining a dense optical flow field requires processing every pixel in the image, which requires a large amount of calculation. In addition, the fabric will deform after being stretched, causing part of the fabric to bulge, resulting in occlusion of other pixels, making it impossible to calculate the optical flow. Therefore, a sparse optical flow solution is adopted for feature points. Only analyzing the optical flow information of feature points can reduce the amount of calculation and improve the situation where some pixels are blocked.
[0079] Step 3: Calculate the optical flow information of each pixel except the feature points through the optical flow information between different feature points in the local range of each pixel in the tested image, and obtain the optical flow vector field by combining Gaussian filtering.
[0080] Since the optical flow information obtained through the feature points is limited and cannot fully represent the deformation of the fabric after stretching, it is also necessary to interpolate and estimate the pixels for which the optical flow information is not calculated to obtain the optical flow vector field of all pixels.
[0081] It can be understood that the optical flow information of the feature point can be expressed in the form of a vector (u, v), where u is the horizontal optical flow component, that is, the magnitude of the optical flow in the horizontal direction; v is the vertical optical flow component, that is, the magnitude of the optical flow in the vertical direction.
[0082] The deformation influence domain of the feature point is obtained through the fabric distance feature value of the feature point and the difference between different feature points. According to the relationship between the deformation influence domains of different feature points, optical flow information is given to the pixels that are not feature points.
[0083] According to the change of optical flow information between feature points in the local range of each feature point in the tested image, combined with the fabric distance feature value, the deformation influence domain of each feature point is obtained:
[0084] The gradient of the optical flow information of each feature point in the tested image is obtained, and the difference in the gradient of the optical flow information of any two feature points is used as the deformation difference coefficient of the optical flow information of the any two feature points.
[0085] In the tested image, the distance between the central pixel and any edge pixel is obtained and fused with the normalized result of the fabric distance characteristic value of each feature point to obtain the fabric influence distance of each feature point; with any feature point as the center, within the corresponding fabric influence distance, the distance between the feature points with the smallest deformation difference coefficient with any feature point is taken as the radius to obtain the deformation influence domain of any feature point.
[0086] In this embodiment, the gradient of the optical flow of each feature point, that is, the rate of change of the optical flow vector in space, is calculated by taking the spatial derivatives of the horizontal optical flow component and the vertical optical flow component of the optical flow information; the result of subtracting the gradients of the optical flow information of any two feature points is recorded as the deformation difference coefficient of the said any two feature points.
[0087] Since the distances between the center pixel and the first edge pixel and the second edge pixel are equal, the distance between the center pixel and the first edge pixel is obtained and multiplied by the normalized result of the fabric distance characteristic value of each feature point to obtain the fabric influence distance of each feature point; within the fabric influence distance centered on each feature point, the Euclidean distance between the feature point with the smallest deformation difference coefficient with the feature point is taken as the radius, and the circular area of the radius is taken as the deformation influence domain of the feature point.
[0088] It should be noted that the deformation influence domains of different feature points overlap with each other. The closer a pixel is to a feature point, the greater the influence of this feature point is. The optical flow information of the pixel can be estimated based on the distance from the pixel to different feature points.
[0089] It is understandable that the feature points that have obtained optical flow information have more obvious texture features, or are closer to the center pixel or edge pixel and produce a larger deformation displacement, so the optical flow information of the feature point can approximately represent the optical flow information of other pixels in its neighborhood.
[0090] The deformation difference coefficient can represent the difference between adjacent feature points. The larger its value is, the greater the difference between the two feature points is, and the less likely they are to be in the same area. On the contrary, the more similar they are, the more similar the impact they will have on the surrounding pixels.
[0091] Combined with the fabric distance feature value of the feature point, the size of the deformation influence domain of the feature point is limited to avoid two feature points that are far apart being similar, thereby forming a larger deformation influence domain. For example, the deformation difference coefficient between the feature points near the first edge pixel and the second edge pixel may be relatively small. If it is not limited, it will form a deformation influence domain larger than the entire fabric image.
[0092] Furthermore, the optical flow information of each pixel is obtained through the distribution of feature points in the deformation influence domain where each pixel is located:
[0093] The feature point at the center of all deformation influence domains where any pixel is located is recorded as the reference feature point of the any pixel, and the distance between the any pixel and its reference feature point is fused with the corresponding optical flow information to obtain the optical flow information of the any pixel.
[0094] In this embodiment, based on a pixel point, all deformation influence domains where the pixel point is located are obtained, the Euclidean distance between the pixel point and the central feature point of the deformation influence domain is calculated, and after normalization, it is multiplied with the optical flow information of the corresponding feature point, and the vector obtained by summing the pixel point and all the multiplication results is used as the optical flow information of the pixel.
[0095] Among them, the schematic diagram of the deformation influence domain distribution of the pixel is as follows: Figure 4 As shown; in the figure, A and B represent feature point A and feature point B, Represents the optical flow information of feature point A and feature point B, Q A , Q B represents the deformation influence domain of feature point A and feature point B, i represents pixel i. Assuming that pixel i is in the deformation influence domain of feature point A and feature point B at the same time, the optical flow information of pixel i can be obtained through Get, dis() represents the Euclidean distance function.
[0096] The optical flow information of all pixels in the tested image is combined into an optical flow vector field.
[0097] It should be understood that if the distance difference between the pixel and different feature points is too large, or the optical flow difference between two feature points is too large, or the optical flow information obtained by interpolation of the pixel is greatly different from that of the surrounding pixels. When the optical flow vector field is discontinuous or abrupt in some areas, this may be an error introduced by interpolation, especially in areas with drastic speed changes or sparse feature points, so it is necessary to smooth the obtained optical flow vector field to reduce errors and improve the continuity and natural transition of the obtained optical flow vector field.
[0098] In this embodiment, the optical flow vector field is smoothed by Gaussian filtering. Since the Gaussian kernel is separable, the standard deviation of the horizontal component of all optical flow information of each pixel and its eight neighboring pixels in the tested image is used as the sigma parameter of the Gaussian filter for each pixel, and a horizontal convolution is performed. Then, the standard deviation of the vertical component of all optical flow information of the corresponding pixel and its eight neighboring pixels is used as the sigma parameter of the Gaussian filter, and the horizontal filtering result is convolved in the vertical direction to obtain the optical flow vector field after Gaussian filtering.
[0099] It can be understood that the width and smoothness of the filter kernel are determined based on the difference in local optical flow information. The larger the standard deviation, the greater the difference between the pixel and other pixels in its eight neighborhoods, and the greater the smoothness should be; conversely, a smaller smoothness is required.
[0100] Step 4: Based on the fabric tensile strength test time, integrate the optical flow vector field to obtain the fabric stretch index.
[0101] Integrate the optical flow information of each pixel to obtain the fabric stretch index:
[0102] The time interval between the images before and after the test is obtained, which is recorded as the fabric stretching time. The optical flow information of each pixel in the image after the test is integrated within the fabric stretching time, multiplied by the corresponding fabric distance feature value, and the accumulated value of the multiplication results of all pixels is taken as the fabric stretching index.
[0103] In this embodiment, according to the optical flow vector field, the optical flow information of each pixel is integrated within the time interval to obtain the stretching displacement distance. The displacement can be approximated as the accumulation of the speed during the fabric stretching time. The specific calculation process is not repeated here. The fabric distance feature value of each pixel is used as the weight, and the stretching displacement distances of all pixels are weighted summed to obtain the fabric stretch index. The formula is: Where L represents the fabric stretch index, n represents the total number of pixels, Δ krepresents the fabric distance feature value of the kth pixel, X k Indicates the stretch displacement distance of pixels.
[0104] It is understandable that the closer the place is to the first edge pixel or the second edge pixel, the greater the displacement after being stretched, so giving a larger weight can better represent the stretching degree of the fabric. The larger the value of the fabric stretch index, the greater the displacement degree of each pixel after the fabric is stretched.
[0105] Step 5: Test the tensile strength of the fabric to be tested in combination with the fabric tensile index.
[0106] In this embodiment, the fabric stretch index of the standard fabric is used as the detection threshold. If the fabric stretch index is greater than or equal to the detection threshold, the tensile resistance of the fabric to be tested is qualified; otherwise, the tensile resistance of the fabric to be tested is unqualified.
[0107] It is understood that references to "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, if "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appear in different places in this specification, they do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0108] It should be noted that the sequence of the above-mentioned embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. In addition, the process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-tasking and parallel processing are also possible or may be advantageous. At the same time, the size of the sequence number of each step in the embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments in this specification.
[0109] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for testing the tensile strength of fabrics, characterized in that: The method comprises the following steps: Acquire images of the fabric to be tested before and after the tensile strength test; Pixels are screened based on the positions of pixels in the image before the test and the distribution of grayscale values in a local range to obtain feature points of the image before the test, and feature points of the image after the test and corresponding optical flow information are obtained by the optical flow method; The optical flow information between different feature points in the local range of each pixel in the tested image is used to calculate the optical flow information of each pixel except the feature points, and the optical flow vector field is obtained by combining Gaussian filtering; Based on the fabric tensile strength test time, the optical flow vector field is integrated to obtain the fabric stretch index; The tensile strength of the fabric to be tested is tested in combination with the fabric tensile index.
2. A fabric tensile strength quality testing method as claimed in claim 1, characterized in that: The feature points of the image before the test are obtained: For the image before the test, the fabric distance feature value of each pixel is obtained according to the position distribution of the pixels and the distance characteristics between the pixels; According to the discrete degree and energy distribution of the grayscale value in the local range of each pixel, the local grayscale feature of each pixel is obtained; The fabric distance eigenvalue and the local grayscale eigenvalue of each pixel in the image before the test are fused to obtain the characteristic factor of each pixel, and the average value of the characteristic factors of all pixels in the image before the test is used as the characteristic threshold; all pixels whose characteristic factors are greater than the characteristic threshold are composed of a first candidate feature point set; feature detection is performed on the image before the test to obtain a second candidate feature point set, and the pixels in the intersection of the first candidate feature point set and the second candidate feature point set are used as feature points of the image before the test.
3. A fabric tensile strength quality testing method as claimed in claim 2, characterized in that: The method of obtaining the fabric distance characteristic value of each pixel includes: According to the positions of the clamps on both sides in the image before the test, the reference lines on both sides are determined; according to the reference lines on both sides, the first edge pixel and the second edge pixel are determined; the reference lines on both sides are cross-connected to confirm the center pixel; the distance between each pixel and the first edge pixel and the second edge pixel is recorded as the first distance and the second distance respectively; the distance between each pixel and the center pixel is obtained and recorded as the center distance; the minimum value of the first distance and the second distance of each pixel is obtained; the difference between the minimum value and the center distance is used as the fabric distance feature value of each pixel.
4. A fabric tensile strength quality testing method as claimed in claim 2, characterized in that: The obtaining of the local grayscale feature of each pixel comprises: According to the discrete degree of the grayscale values of all pixels in the neighborhood of each pixel, the local variance of each pixel is obtained; the grayscale co-occurrence matrix of the neighborhood of each pixel is obtained, and the diagonal elements of the grayscale co-occurrence matrix of each pixel are fused to obtain the local energy of each pixel; the inverse proportional mapping result of the local variance of each pixel and the local energy is used as the local grayscale feature of each pixel.
5. A fabric tensile strength quality testing method as claimed in claim 3, characterized in that: The calculation of the optical flow information of each pixel except the feature points includes: According to the change of the optical flow information between the feature points in the local range of each feature point in the tested image, combined with the fabric distance feature value, the deformation influence domain of each feature point is obtained; The feature point at the center of all deformation influence domains where any pixel is located is recorded as the reference feature point of the any pixel, and the distance between the any pixel and its reference feature point is fused with the corresponding optical flow information to obtain the optical flow information of the any pixel.
6. A fabric tensile strength quality testing method as claimed in claim 5, characterized in that: The step of obtaining the deformation influence domain of each feature point includes: According to the change difference of the optical flow information between any two feature points in the image after the test, the deformation difference coefficient of the any two feature points is obtained; In the tested image, the distance between the central pixel and any edge pixel is obtained and fused with the normalized result of the fabric distance characteristic value of each feature point to obtain the fabric influence distance of each feature point; with any feature point as the center, within the corresponding fabric influence distance, the distance between the feature points with the smallest deformation difference coefficient with any feature point is taken as the radius to obtain the deformation influence domain of any feature point.
7. A fabric tensile strength quality testing method as claimed in claim 6, characterized in that: The steps for obtaining the deformation difference coefficient of any two feature points are as follows: The gradient of the optical flow information of each feature point in the tested image is obtained, and the difference in the gradient of the optical flow information of any two feature points is used as the deformation difference coefficient of the any two feature points.
8. A fabric tensile strength quality testing method as claimed in claim 1, characterized in that: The method of combining Gaussian filtering to obtain the optical flow vector field includes: The standard deviation of the horizontal component of all optical flow information of each pixel and its eight neighboring pixels in the tested image is used as the sigma parameter of the Gaussian filter for each pixel, and a horizontal convolution is performed. Then, the standard deviation of the vertical component of all optical flow information of the corresponding pixel and its eight neighboring pixels is used as the sigma parameter of the Gaussian filter, and the horizontal filtering result is convolved in the vertical direction to obtain the optical flow vector field after Gaussian filtering.
9. A fabric tensile strength quality testing method as claimed in claim 6, characterized in that: Describing the fabric stretch index includes: The time interval between the image acquisition before and after the test is obtained and recorded as the fabric stretching time. The optical flow information of each pixel in the image after the test is integrated within the fabric stretching time and then multiplied with the corresponding fabric distance feature value. The accumulated value of the multiplication results of all pixels is taken as the fabric stretching index.
10. A fabric tensile strength quality testing method as claimed in claim 1, characterized in that: The tensile strength test of the fabric to be tested includes: The fabric stretch index of the standard fabric is used as the detection threshold. If the fabric stretch index is greater than or equal to the detection threshold, the tensile resistance of the fabric to be tested is qualified; otherwise, the tensile resistance of the fabric to be tested is unqualified.
Citation Information
Patent Citations
Fabric tensile strength detection device
CN111044368A
Yarn drafting quality monitoring method based on image processing
CN113610852A
Space domain limited pixel target detection system and method fusing neural network space-time characteristics
CN114022759A
Leather material surface defect detection method based on feature modeling significance detection
CN114299051A
Automatic monitoring method for abnormal tension of textile fabric
CN114663435A
Cited By
Workpiece feature recognition method for CNC machining center
CN120107619A
System and method for detecting tensile deformation strength of ribbon
CN120927455A
Intelligent evaluation system for tensile fatigue of down jacket fabric based on cloud computing
CN121090239A
