A mixed yarn detection method and system for bobbin packaging
By analyzing the characteristics of the real-time image data of the spinning wheel, calculating the spinning yarn fly evaluation coefficient and the blended yarn correction value, and setting the judgment threshold, the problem of misjudgment of blended yarn and blended yarn detection during the package yarn packaging process has been solved, and a high level of accuracy has been achieved. Accurate mixed yarn detection.
Patent Information
- Application Number
- CN202410895889.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-05
Smart Images

Figure CN118429351B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of yarn mixing detection, and in particular to a yarn mixing detection method and system for bobbin yarn packaging. Background Art
[0002] In the textile industry, bobbin packaging refers to the process of packaging the spun yarn by winding it into barrels using a machine. The bobbin refers to the state of the yarn being wound on a bobbin, which is conducive to the storage, transportation and use of the yarn. The bobbin packaging is a key link in the spinning production process. It is not only related to the quality of the yarn, but also directly affects the subsequent weaving and sales. The packaged fabric needs to be tested.
[0003] In the weaving process, in order to improve the strength, elasticity and wear resistance of the yarn, different types of fibers are mixed in a certain proportion to form yarn, which is called blended yarn. A single yarn is transmitted on the spinning wheel and the single spindle. The vibration of the yarn during the transmission process is likely to cause flying yarn, that is, the yarns on the single spindle are entangled with each other and intermittently woven on the current yarn. The yarn formed in this way is called mixed yarn. Blended yarn is a normal phenomenon produced to improve the performance of single yarn, while mixed yarn is caused by interference caused by other impurities or flying yarn. Both types of yarns will form a color segment effect on the spinning wheel, which is easy to cause misjudgment, resulting in a reduction in the accuracy of mixed yarn detection, and easily causing customer complaints due to the continued circulation of mixed yarns due to untimely handling of mixed yarns. In response to the above problems, the present application proposes a mixed yarn detection method and system for bobbin yarn packaging. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of this application is to provide a mixed yarn detection method and system for bobbin yarn packaging, and the technical solutions adopted are as follows:
[0005] In a first aspect, an embodiment of the present application provides a mixed yarn detection method for bobbin yarn packaging, the method comprising the following steps:
[0006] The yarn bobbin data acquisition step acquires the real-time image data of the spinning wheel during the yarn bobbin packaging process, which is recorded as a grayscale image of each frame of the spinning wheel;
[0007] The yarn bobbin data analysis step performs feature analysis on the blended yarn and mixed yarn in the real-time image data of the spinning wheel to detect the mixed yarn situation, specifically:
[0008] (1) Obtaining the spindle grayscale curve in each column direction in the spindle grayscale image of each frame;
[0009] (2) Based on the difference between adjacent extreme value points on the spinning wheel grayscale curve in each column direction of each frame of the spinning wheel grayscale image, the short-term period in each column direction of each frame of the spinning wheel grayscale image is constructed; based on the discrete degree of all short-term periods in each column direction of each frame of the spinning wheel grayscale image, the column-wise period deviation coefficient in each column direction of each frame of the spinning wheel grayscale image is constructed; based on the discrete degree of the column-wise period deviation coefficient in all column directions of the spinning wheel grayscale image in each frame of the spinning wheel grayscale image, the spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is determined;
[0010] (3) determining the yarn mixing correction value of each frame of the spinning wheel grayscale image based on the differences between all short-time periods in each frame of the spinning wheel grayscale image and in combination with the spinning fly evaluation coefficient;
[0011] (4) The yarn mixing determination coefficient of each video segment is obtained based on the changing trend of the yarn mixing correction value of all spinning wheel grayscale images in each video segment;
[0012] The yarn bobbin data decision feedback step sets the yarn mixing determination threshold and determines the yarn mixing situation by combining the yarn mixing determination coefficients of all video segments.
[0013] Preferably, the spinning wheel grayscale curve in each column direction in each frame of the spinning wheel grayscale image is a curve obtained by fitting the grayscale values of all pixels in each column direction in each frame of the spinning wheel grayscale image.
[0014] Preferably, each short-time period in each column direction in each frame of the spinning wheel grayscale image is the difference between each adjacent maximum point and minimum point on the spinning wheel grayscale curve in each column direction in each frame of the spinning wheel grayscale image.
[0015] Preferably, the column direction period deviation coefficient of each column direction in each frame of the spinning wheel grayscale image is the variance of all short-time periods in each column direction in each frame of the spinning wheel grayscale image.
[0016] Preferably, the yarn mixing correction value of each frame of the spinning wheel grayscale image is the result of forward fusion of the difference between the short-term periods in all column directions in each frame of the spinning wheel grayscale image and the spinning fly evaluation coefficient.
[0017] Preferably, the process of constructing the yarn mixing determination coefficient of each video segment is as follows:
[0018] Obtaining a yarn mixing correction curve for each video segment according to a change trend of the yarn mixing correction values of all spinning wheel grayscale images in each video segment;
[0019] Analyze the slope of the line between each adjacent maximum point and minimum point on the yarn mixing correction curve of each video segment, and record it as the first yarn mixing determination value on the yarn mixing correction curve of each video segment;
[0020] Determine the average of all first yarn mixing determination values on the yarn mixing correction curve of each video segment; record it as the second yarn mixing determination value of each video segment;
[0021] Determine the mean value of the yarn mixing correction sequence of each video segment, and record it as the third yarn mixing determination value of each video segment;
[0022] A yarn mixing determination coefficient of each video segment is determined based on the second yarn mixing determination value and the third yarn mixing determination value.
[0023] Preferably, the yarn mixing determination coefficient of each video segment is a result of forward fusion of the second yarn mixing determination value and the third yarn mixing determination value of each video segment.
[0024] Preferably, the process of obtaining the yarn mixing correction curve of each video segment is as follows:
[0025] The yarn mixing correction values of all spinning wheel grayscale images in each video segment are arranged in chronological order to form a yarn mixing correction sequence of each video segment; the yarn mixing correction sequence of each video segment is fitted to obtain a yarn mixing correction curve of each video segment.
[0026] Preferably, the process of determining the yarn mixing situation is:
[0027] The yarn mixing determination coefficients of all video segments are normalized. When any yarn mixing determination coefficient is greater than the yarn mixing determination threshold, the spinning wheel is abnormal; when all yarn mixing determination coefficients are less than or equal to the yarn mixing determination threshold, the spinning wheel is normal.
[0028] In a second aspect, an embodiment of the present application further provides a mixed yarn detection system for bobbin yarn packaging, the system comprising:
[0029] The yarn bobbin data acquisition module acquires the real-time image data of the spinning wheel during the bobbin packaging process, which is recorded as a grayscale image of each frame of the spinning wheel;
[0030] The yarn bobbin data analysis module performs feature analysis on the blended yarn and mixed yarn in the real-time image data of the spinning wheel to detect the mixed yarn situation, specifically:
[0031] (1) Obtaining the spindle grayscale curve in each column direction in the spindle grayscale image of each frame;
[0032] (2) Based on the difference between adjacent extreme value points on the spinning wheel grayscale curve in each column direction of each frame of the spinning wheel grayscale image, the short-term period in each column direction of each frame of the spinning wheel grayscale image is constructed; based on the discrete degree of all short-term periods in each column direction of each frame of the spinning wheel grayscale image, the column-wise period deviation coefficient in each column direction of each frame of the spinning wheel grayscale image is constructed; based on the discrete degree of the column-wise period deviation coefficient in all column directions of the spinning wheel grayscale image in each frame of the spinning wheel grayscale image, the spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is determined;
[0033] (3) determining the yarn mixing correction value of each frame of the spinning wheel grayscale image based on the differences between all short-time periods in each frame of the spinning wheel grayscale image and in combination with the spinning fly evaluation coefficient;
[0034] (4) The yarn mixing determination coefficient of each video segment is obtained based on the changing trend of the yarn mixing correction value of all spinning wheel grayscale images in each video segment;
[0035] The yarn bobbin data decision feedback module sets the yarn mixing determination threshold and determines the yarn mixing situation by combining the yarn mixing determination coefficients of all video segments.
[0036] This application has at least the following beneficial effects:
[0037] The present application collects real-time image data of each spinning wheel on the bobbin packaging line, and analyzes the real-time image data of the spinning wheel to obtain the yarn mixing situation on the current spinning wheel bobbin. Specifically, the spinning fly evaluation coefficient is obtained by analyzing the periodic characteristics of the grayscale value changes of the pixel points in the column direction of each frame of the spinning wheel grayscale image and the deviation of the grayscale changes of all columns, reflecting whether there is yarn mixing due to the fiber flying phenomenon in the current frame image. The yarn mixing determination coefficient is obtained based on the grayscale change deviation of each frame of the spinning wheel grayscale image in the video segment, reflecting the yarn mixing situation corresponding to each fan-shaped surface of the bobbin within the time period. Finally, the yarn mixing determination threshold is used to determine the current yarn mixing situation. It solves the problem of misjudgment of blended yarn or missed detection of mixed yarn due to the close segment color effect of blended yarn and mixed yarn on the bobbin in the traditional visual inspection process, improves the detection accuracy and efficiency of mixed yarn, and is more convenient for deployment on the intelligent unmanned bobbin packaging line. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] 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.
[0039] Figure 1 A flow chart of the steps of a mixed yarn detection method for bobbin packaging;
[0040] Figure 2 Schematic diagram of the real-time image data acquisition device for the spinning wheel;
[0041] Figure 3 Extraction flow chart of the determination coefficient of yarn mixing;
[0042] Figure 4 Schematic diagram of the mixed yarn detection process for packaged yarn;
[0043] Figure 5 Schematic diagram of the yarn mixing detection system for packaged yarn. DETAILED DESCRIPTION
[0044] 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 the mixed yarn detection method and system for bobbin yarn packaging proposed in accordance with the present application, its specific implementation, 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.
[0045] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
[0046] The following is a detailed description of a specific scheme of a mixed yarn detection method and system for bobbin yarn packaging provided by the present application in conjunction with the accompanying drawings.
[0047] See also Figure 1 , which shows a flow chart of a mixed yarn detection method for bobbin packing provided by an embodiment of the present application, the method comprising the following steps:
[0048] Step S1: acquiring real-time image data of the spinning wheel during the bobbin packaging process.
[0049] In order to obtain the mixed yarn situation during the bobbin packaging process, a high-definition industrial camera is deployed at the same level as the spinning wheel, and the distance between the camera and the spinning wheel is adjusted so that the spinning wheel can be fully photographed and collected. In this scheme, the acquisition frequency of the high-definition industrial camera is set to f, and the real-time image data of the spinning wheel is collected. Each real-time image data of the spinning wheel contains multiple continuous frames of spinning wheel images, that is, each real-time image data of the spinning wheel is actually a continuous video, and the color image of the spinning wheel image is converted into a grayscale image, recorded as a spinning wheel grayscale image, and the image enhancement processing is performed using an enhancement algorithm.
[0050] It should be noted that the value of the acquisition frequency f is manually set. In this embodiment, the value of the acquisition frequency f is 60 FPS. The implementer can set it according to the specific situation. This embodiment does not impose any special restrictions.
[0051] Preferably, as an embodiment of the present application, the schematic diagram of the spinning wheel real-time image data acquisition device is as follows: Figure 2 As shown, 1 represents a high-definition industrial camera, 2 represents a spinning wheel, 3 represents the rotation direction of the spinning wheel, 4 represents yarn, 5 represents a transmission wheel, and 6 represents the rotation direction of the transmission wheel.
[0052] Step S2: constructing the short-time period in each column direction of the spinning wheel grayscale image of each frame based on the difference between the extreme values on the spinning wheel grayscale curve in each column direction of the spinning wheel grayscale image of each frame; constructing the column-wise periodic deviation coefficient in each column direction of the spinning wheel grayscale image of each frame based on the discrete degree of the short-time period in each column direction of the spinning wheel grayscale image of each frame; determining the spinning fly evaluation coefficient of the spinning wheel grayscale image of each frame based on the discrete degree of the column-wise periodic deviation coefficient of all column directions in the spinning wheel grayscale image of each frame.
[0053] On the bobbin packaging line, blended yarn is obtained by blending multiple fibers through the processes of drafting, convergence, twisting, etc. One fiber is called a channel. Usually, different fibers have differences in color. Therefore, the yarn formed by the blended yarn forms a bobbin yarn on the spinning wheel with a segment color effect. Yarn mixing is caused by other impurities, or the fibers in other spinning channels produce flying flowers due to vibration entanglement. The yarn formed by the blended yarn will also form a bobbin yarn with a segment color effect on the spinning wheel, but the yarn formed by the blended yarn destroys the fiber composition of the original yarn, so that the components on the same yarn are different, resulting in changes in strength and easy breakage. Therefore, it is necessary to detect the blended yarn. The following analysis is based on the video data on a single spinning wheel. Therefore, based on the difference in grayscale values on the spinning wheel grayscale curve in each column direction in each frame of the spinning wheel grayscale image, the short-term period, column-direction period deviation coefficient and spinning fly evaluation coefficient are determined. The specific steps are:
[0054] S201: constructing a short-term period in each column direction of the spinning wheel grayscale image of each frame based on the difference between the extreme values on the spinning wheel grayscale curve in each column direction of the spinning wheel grayscale image of each frame.
[0055] For each frame of the spinning wheel grayscale image in each spinning wheel real-time image data, a short-term period in each column direction of each frame of the spinning wheel grayscale image is constructed based on the difference between the extreme values on the spinning wheel grayscale curve in each column direction of each frame of the spinning wheel grayscale image, specifically:
[0056] In each frame of the spinning wheel grayscale image, the grayscale values of all pixels in each column direction are fitted to obtain the spinning wheel grayscale curve in each column direction.
[0057] It should be noted that there are many fitting methods. As an embodiment of the present application, a nonlinear fitting algorithm is used in this embodiment to fit the mixed yarn correction sequence. The implementer may use other fitting methods, and this embodiment does not impose any special restrictions.
[0058] Short time period: The short time period in each column direction of the spinning wheel grayscale image of each frame is constructed based on the difference between the extreme values on the spinning wheel grayscale curve in each column direction of the spinning wheel grayscale image of each frame. Each short time period in each column direction of the spinning wheel grayscale image of each frame is the difference between each adjacent maximum and minimum values on the spinning wheel grayscale curve in each column direction of the spinning wheel grayscale image of each frame.
[0059] Preferably, as an embodiment of the present application, each short-time period in each column direction in each frame of the spinning wheel grayscale image is the Euclidean distance between adjacent maximum points and minimum points on the spinning wheel grayscale curve in each column direction in each frame of the spinning wheel grayscale image.
[0060] Preferably, as another embodiment of the present application, each short-time period in each column direction in each frame of the spinning wheel grayscale image is the absolute value of the difference between adjacent maximum and minimum values on the spinning wheel grayscale curve in each column direction of the spinning wheel grayscale image of each frame.
[0061] Preferably, as another embodiment of the present application, each short-time period in each column direction in the spinning wheel grayscale image of each frame is the Manhattan distance between adjacent maximum points and minimum points on the spinning wheel grayscale curve in each column direction in the spinning wheel grayscale image of each frame.
[0062] It should be noted that there are many methods for measuring differences, and the absolute value of the difference, the ratio, the Euclidean distance and the Manhattan distance can be used to measure the difference between extreme values. The above are only some embodiments for determining the short-term period listed in this application, and the implementer can also choose other methods according to specific circumstances. The calculation process of the Euclidean distance and the Manhattan distance is a well-known technology, and the specific process will not be repeated.
[0063] S202: constructing a column-wise period deviation coefficient in each column direction of the spinning wheel grayscale image of each frame based on the discrete degree of the short-time period in each column direction of the spinning wheel grayscale image of each frame.
[0064] Column-wise period deviation coefficient: The column-wise period deviation coefficient of each column direction in each frame of the spinning wheel grayscale image is obtained based on the discrete degree of the short-time period in each column direction in each frame of the spinning wheel grayscale image.
[0065] Preferably, as an embodiment of the present application, the column-wise periodicity deviation coefficient of each column direction in each frame of the spinning wheel grayscale image is the variance of all short-time periods in each column direction in each frame of the spinning wheel grayscale image.
[0066] Preferably, as another embodiment of the present application, the column direction period deviation coefficient of each column direction in each frame of the spinning wheel grayscale image is the standard deviation of all short-time periods in each column direction in each frame of the spinning wheel grayscale image.
[0067] Preferably, as another embodiment of the present application, the column-wise period deviation coefficient in each column direction in each frame of the spinning wheel grayscale image is the average difference of all short-time periods in each column direction in each frame of the spinning wheel grayscale image.
[0068] It should be noted that there are many methods to measure the differences between the overall data levels of each data. When determining the difference between each short-time period and the mean of all short-time periods, this application lists three embodiments for reference by implementers. Implementers can also use other methods to analyze the degree of discreteness of short-time periods, thereby determining the column-wise periodic deviation coefficient in each column direction in each frame of the spinning wheel grayscale image.
[0069] The calculation process of the variance, standard deviation and mean deviation is a well-known technique, and the specific process will not be described in detail.
[0070] If the spinning wheel yarn corresponds to the spinning of normal blended yarn, the grayscale value change in each column direction in each frame of the spinning wheel grayscale image presents a periodic band distribution, and the band distribution is relatively uniform. Therefore, the grayscale change of the pixel points in the column direction has a certain periodicity, and the value of the column-wise periodic deviation coefficient is small; on the contrary, if the spinning wheel yarn contains blended yarn, the grayscale value in each column direction in each frame of the spinning wheel grayscale image is not uniform. Therefore, the grayscale change of the pixel points in the column direction does not have a certain periodicity, and the value of the column-wise periodic deviation coefficient is large.
[0071] S203: Determine the spinning waste evaluation coefficient of each frame of the spinning wheel grayscale image based on the discrete degree of the column-wise periodic deviation coefficients in all column directions in each frame of the spinning wheel grayscale image.
[0072] Both blended yarn and bobbin yarn formed by mixed yarn will show segmented color effect, but there will be subtle features in the details of the two. Blended yarn is obtained by blending multiple fibers, so the texture of the spinning yarn formed by blended yarn is relatively uniform. Therefore, in each frame of the spinning wheel grayscale image data of the real-time image data of the spinning wheel, it often shows a striped and banded distribution, and the grayscale changes in the column direction of each frame of the spinning wheel grayscale image are relatively uniform.
[0073] Yarn mixing is caused by impurities and impure substances produced during the spinning process, as well as the flying flower phenomenon, which makes the texture of the spinning yarn formed by the mixed yarn different, thus breaking the uniform distribution and making the color distribution between different column directions (different columns) uneven, that is, resulting in large periodic differences between different column directions.
[0074] Therefore, the spinning waste evaluation coefficient is constructed based on the column-wise periodic deviation coefficient, specifically:
[0075] Spinning fly evaluation coefficient: The spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is determined based on the degree of discreteness of the column-wise periodic deviation coefficients in all column directions in the spinning wheel grayscale image of each frame. The spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is the difference between the column-wise periodic deviation coefficient in the column direction of each frame of the spinning wheel grayscale image and the mean of the column-wise periodic deviations in all column directions.
[0076] Preferably, as an embodiment of the present application, the process of constructing the spinning fly evaluation coefficient of each frame spinning wheel grayscale image is as follows:
[0077] The range and average difference of the column-wise periodic deviation coefficients in all column directions in each frame of the spinning wheel grayscale image are calculated, and the spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is the product of the range and the average difference.
[0078] Preferably, as another embodiment of the present application, the process of constructing the spinning fly evaluation coefficient of each frame spinning wheel grayscale image is as follows:
[0079] The range and mean difference of the column-wise periodic deviation coefficients in all column directions in each frame of the spinning wheel grayscale image are calculated. The spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is an exponential function value with a natural constant as the base and the sum of the range and the mean difference as the independent variable.
[0080] Preferably, as another embodiment of the present application, the process of constructing the spinning fly evaluation coefficient of each frame spinning wheel grayscale image is as follows:
[0081] Calculate the interquartile range of the column-wise periodic deviation coefficients in all column directions in each frame of the spinning wheel grayscale image; calculate the variance of the column-wise periodic deviation coefficients in all column directions in each frame of the spinning wheel grayscale image, and record it as the spinning fly waste evaluation variance; the spinning fly waste evaluation coefficient of each frame of the spinning wheel grayscale image is the product of the interquartile range and the spinning fly waste evaluation variance.
[0082] It should be noted that there are many methods to measure the differences between the overall data levels of each data. When determining the difference between each column-wise periodic deviation coefficient and the mean of all column-wise periodic deviation coefficients, this application lists three embodiments for reference by implementers. Implementers may also use other methods to analyze the degree of discreteness of the column-wise periodic deviation coefficient, thereby determining the spinning wheel grayscale image of each frame.
[0083] Among them, the calculation processes of range, mean difference, variance and interquartile range are all well-known technologies, and the specific processes will not be repeated here.
[0084] If each frame of the spinning wheel grayscale image corresponds to the bobbin of blended yarn, the uniformity of the blended yarn makes the grayscale change of the pixels in each column direction in the image more uniform, and the stripes formed by the color segment effect are evenly distributed on the spinning wheel, so the value of the column-wise periodic deviation coefficient in each column direction is small, and finally the value of the spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is small. On the contrary, if each frame of the spinning wheel grayscale image corresponds to the bobbin of blended yarn, because the fibers of other channels are mixed into the current spinning line due to the fly phenomenon, the stripes on the spinning wheel will be discontinuous, and the width of the band stripes also deviates with the rotation of the spinning wheel, so the value of the column-wise periodic deviation coefficient in each column direction is large, and finally the value of the spinning fly evaluation coefficient is large.
[0085] Step S3: Determine the yarn mixing correction value of each frame of the spinning wheel grayscale image based on the difference between the spinning fly evaluation coefficients in all column directions and all short-time periods in the spinning wheel grayscale image of each frame; obtain the yarn mixing determination coefficient of each video segment based on the changing trend of the yarn mixing correction value of all spinning wheel grayscale images in each video segment.
[0086] By periodically analyzing the uniformity of the grayscale values of each frame of the spinning wheel grayscale image in each spinning wheel real-time image data, the spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is obtained. In the actual spinning process, the spinning wheel runs at a uniform speed. The non-uniform segment color effect caused by the flying flower phenomenon or impurity interference may only be reflected in some sectors of the cylindrical yarn, and in other sectors, it shows a normal uniform segment color effect. In order to more accurately judge the mixed yarn situation, further analysis is needed.
[0087] Therefore, the yarn mixing correction value and the yarn mixing determination coefficient are determined based on the difference between the yarn flying evaluation coefficients in all column directions and all short-time periods in the spinning wheel grayscale image of each frame. The specific steps are as follows:
[0088] S301: Obtaining a yarn mixing correction value of the image based on the grayscale image of each spinning wheel frame in the video segment of each spinning wheel real-time image data and the corresponding spinning waste evaluation coefficient.
[0089] Mixed yarn correction value: The mixed yarn correction value of each frame of the spinning wheel grayscale image is determined based on the difference between the spinning fly evaluation coefficients in all column directions and all short-term periods in each frame of the spinning wheel grayscale image, specifically:
[0090] The yarn mixing correction value of each frame of the spinning wheel grayscale image is the result of the forward fusion of the difference between the short-term periods in all column directions of each frame of the spinning wheel grayscale image and the spinning fly evaluation coefficient.
[0091] It should be understood that forward fusion refers to combining two or more indicators by adding or multiplying them together in order to obtain a comprehensive indicator, thereby more comprehensively and accurately evaluating a phenomenon or problem. This fusion method is not limited to simple arithmetic operations, but can also include more complex statistical models and analysis methods. The implementer can choose according to the specific situation, and this embodiment does not impose any special restrictions.
[0092] Preferably, as an embodiment of the present application, the process of determining the yarn mixing correction value of each frame of the spinning wheel grayscale image is as follows:
[0093] Calculate the range of all short-time periods in each column direction of each frame of the spinning wheel grayscale image, and record it as the yarn mixing correction range in each column direction of each frame of the spinning wheel grayscale image; calculate the product of the yarn mixing correction range in each column direction of each frame of the spinning wheel grayscale image and the spinning fly coefficient, and record it as the yarn mixing correction product in each column direction of each frame of the spinning wheel grayscale image; the yarn mixing correction value of each frame of the spinning wheel grayscale image is the cumulative result of the yarn mixing correction products of all column directions in each frame of the spinning wheel grayscale image.
[0094] Preferably, as another embodiment of the present application, the process of determining the yarn mixing correction value of each frame of the spinning wheel grayscale image is as follows:
[0095] Calculate the variance of all short-time periods in each column direction of the spinning wheel grayscale image of each frame, and record it as the yarn mixing correction variance of each column direction in the spinning wheel grayscale image of each frame; calculate the mean of the first yarn mixing correction variance of all column directions in the spinning wheel grayscale image of each frame, and record it as the first yarn mixing correction mean; calculate the mean of the spinning fly evaluation coefficients in all column directions in the spinning wheel grayscale image of each frame, and record it as the second yarn mixing mean; the yarn mixing correction value of each spinning wheel grayscale image is the product of the first yarn mixing correction mean and the second yarn mixing mean.
[0096] If each frame of the spinning wheel grayscale image corresponds to a normal fan-shaped surface of yarn mixing, the color effect on the fan-shaped surface is basically uniformly distributed in strips, so the value of the spinning fly coefficient is smaller, and the short-time periods in all column directions on the spinning wheel grayscale image of each frame are closer, and the yarn mixing correction value of each frame of the spinning wheel grayscale image is smaller; on the contrary, if each frame of the spinning wheel grayscale image corresponds to a fan-shaped surface of yarn mixing impurities or fly interference, the spinning fly coefficient is further amplified, and the yarn mixing correction value of each frame of the spinning wheel grayscale image is larger.
[0097] S302: Obtaining the yarn mixing determination coefficient of each video segment based on the variation trend of the yarn mixing correction values of all spinning wheel grayscale images in each video segment of each spinning wheel real-time image data.
[0098] Dividing each spinning wheel real-time image data into a time window to obtain a video segment of each spinning wheel real-time image data;
[0099] Each spinning wheel real-time image data is actually a continuous video. A time window is set for each spinning wheel real-time image data, and the data is divided into multiple video segments according to the time window.
[0100] A time window is divided for each spinning wheel real-time image data to intercept a video segment of each spinning wheel real-time image data. In this solution, the time window is set to T.
[0101] It should be noted that the value of the time window is set manually. As an embodiment of the present application, the value of the time window in this embodiment is 1s. The implementer can set it according to the specific situation, and this embodiment does not impose any special restrictions.
[0102] Yarn mixing determination coefficient: Based on the change trend of the yarn mixing correction value of all spinning wheel grayscale images in each video segment of each spinning wheel real-time image data, the yarn mixing determination coefficient of each video segment of each spinning wheel real-time image data is obtained, specifically:
[0103] The yarn mixing correction values of all spinning wheel grayscale images in each video segment of each spinning wheel real-time image data are arranged in chronological order to obtain the yarn mixing correction sequence of each video segment, and the yarn mixing correction sequence of each video segment of each spinning wheel real-time image data is fitted to obtain the yarn mixing correction curve of each video segment.
[0104] It should be noted that there are many fitting methods. As an embodiment of the present application, a nonlinear fitting algorithm is used in this embodiment to fit the mixed yarn correction sequence. The implementer may use other fitting methods, and this embodiment does not impose any special restrictions.
[0105] Analyze the slope of the line between the adjacent maximum value points and minimum value points on the yarn mixing correction curve of each video segment of the real-time image data of each spinning wheel, and record it as the first yarn mixing judgment value on the yarn mixing correction curve of each video segment;
[0106] Determine the average of all first yarn mixing determination values on the yarn mixing correction curve of each video segment; record it as the second yarn mixing determination value of each video segment;
[0107] The mean of the yarn mixing correction sequence of each video segment is determined and recorded as the third yarn mixing determination value of each video segment; the yarn mixing determination coefficient of each video segment is the result of forward fusion of the second yarn mixing determination value and the third yarn mixing determination value of each video segment.
[0108] It should be understood that forward fusion refers to combining two or more indicators by adding or multiplying them together in order to obtain a comprehensive indicator, thereby more comprehensively and accurately evaluating a phenomenon or problem. This fusion method is not limited to simple arithmetic operations, but can also include more complex statistical models and analysis methods. The implementer can choose according to the specific situation, and this embodiment does not impose any special restrictions.
[0109] Preferably, as an embodiment of the present application, the yarn mixing determination coefficient of each video segment is the product of the second yarn mixing determination value and the third yarn mixing determination value of each video segment.
[0110] Preferably, as another embodiment of the present application, the yarn mixing determination coefficient of each video segment is an exponential function value with a natural constant as the base and the sum of the second yarn mixing determination value and the third yarn mixing determination value of each video segment as the independent variable.
[0111] If each video segment corresponds to the bobbin formed by blended yarn, the segment color effect formed by the blended yarn is relatively uniform, and the segment color distribution on each sector of the bobbin is basically the same, so the mixed yarn correction value obtained on the grayscale image of each spinning wheel frame in the video segment is small, and the fluctuation of the mixed yarn correction sequence formed by the mixed yarn correction value of each spinning wheel grayscale image in the entire video segment is small, and the value of the mixed yarn determination coefficient is finally small. On the contrary, if each video segment corresponds to the bobbin formed by blended yarn, the segment color distribution formed by the blended yarn is not uniform, and it is not uniform on each sector of the bobbin, the mixed yarn correction value is small on the sector with relatively small mixed yarn effect, and the mixed yarn correction value is large on the sector with large mixed yarn effect, so the elements of the mixed yarn correction sequence corresponding to the entire video segment fluctuate, and the element value in the sequence is large relative to the blended yarn situation, and the value of the mixed yarn determination coefficient of the video segment is finally large.
[0112] Preferably, as an embodiment of the present application, the yarn mixing determination coefficient extraction flow chart is as follows: Figure 3 shown.
[0113] Step S4: setting a yarn mixing determination threshold, and determining the yarn mixing situation by combining the yarn mixing determination coefficients of all video segments.
[0114] Through the data analysis module, the yarn mixing determination coefficient based on the video segment is obtained, which reflects the possibility of yarn mixing on the bobbin yarn formed by the spinning wheel in the corresponding time period. The larger the value of the yarn mixing determination coefficient, the greater the possibility of yarn mixing on the spinning wheel in this time period.
[0115] Normalize the yarn mixing determination coefficients of all video segments and set the yarn mixing determination threshold. Normalize the yarn mixing determination coefficients of all video segments. When any yarn mixing determination coefficient is greater than the yarn mixing determination threshold, the spinning wheel is abnormal and marked as an abnormal spinning wheel. And record the spinning wheel grayscale image with the largest yarn mixing correction value in the corresponding video segment, and feed back the abnormal spinning wheel number and the corresponding spinning wheel grayscale image to the technical staff to provide data support for the staff's judgment. On the contrary, when all yarn mixing determination coefficients are less than or equal to the yarn mixing determination threshold, the spinning wheel is normal.
[0116] It should be noted that the value of the yarn mixing determination threshold is manually set. In this embodiment, the value of the yarn mixing determination threshold is 0.85. The implementer can set it according to the specific situation, and this embodiment does not impose any special restrictions.
[0117] Preferably, as an embodiment of the present application, a schematic diagram of a mixed yarn detection process of a packaged yarn is shown in FIG. Figure 4 shown.
[0118] Preferably, as an embodiment of the present application, a schematic diagram of a mixed yarn detection system for bobbin packing is shown in FIG. Figure 5 shown.
[0119] At this point, the detection of mixed yarns in the process of bobbin packaging is completed according to the mixed yarn determination coefficient and the mixed yarn determination threshold.
[0120] Based on the same inventive concept as the above method, the embodiment of the present application also provides a mixed yarn detection system for bobbin packaging, comprising:
[0121] The yarn bobbin data acquisition module acquires the real-time image data of the spinning wheel during the bobbin packaging process, which is recorded as a grayscale image of each frame of the spinning wheel;
[0122] The yarn bobbin data analysis module performs feature analysis on the blended yarn and mixed yarn in the real-time image data of the spinning wheel to detect the mixed yarn situation, specifically:
[0123] (1) Obtaining the spindle grayscale curve in each column direction in the spindle grayscale image of each frame;
[0124] (2) Based on the difference between adjacent extreme value points on the spinning wheel grayscale curve in each column direction of each frame of the spinning wheel grayscale image, the short-term period in each column direction of each frame of the spinning wheel grayscale image is constructed; based on the discrete degree of all short-term periods in each column direction of each frame of the spinning wheel grayscale image, the column-wise period deviation coefficient in each column direction of each frame of the spinning wheel grayscale image is constructed; based on the discrete degree of the column-wise period deviation coefficient in all column directions of the spinning wheel grayscale image in each frame of the spinning wheel grayscale image, the spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is determined;
[0125] (3) determining the yarn mixing correction value of each frame of the spinning wheel grayscale image based on the differences between all short-time periods in each frame of the spinning wheel grayscale image and in combination with the spinning fly evaluation coefficient;
[0126] (4) The yarn mixing determination coefficient of each video segment is obtained based on the changing trend of the yarn mixing correction value of all spinning wheel grayscale images in each video segment;
[0127] The yarn bobbin data decision feedback module sets the yarn mixing determination threshold and determines the yarn mixing situation by combining the yarn mixing determination coefficients of all video segments.
[0128] It should be noted that the above sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0129] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0130] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application should be included in the protection scope of the present application.
Claims
1. A mixed yarn detection method for packaged yarn, characterized in that: The method comprises the following steps: The yarn bobbin data acquisition step acquires the real-time image data of the spinning wheel during the yarn bobbin packaging process, which is recorded as a grayscale image of each frame of the spinning wheel; The yarn bobbin data analysis step performs feature analysis on the blended yarn and mixed yarn in the real-time image data of the spinning wheel to detect the mixed yarn situation, specifically: (1) Obtaining the spindle grayscale curve in each column direction in the spindle grayscale image of each frame; (2) Based on the difference between adjacent extreme value points on the spinning wheel grayscale curve in each column direction of each frame of the spinning wheel grayscale image, the short-term period in each column direction of each frame of the spinning wheel grayscale image is constructed; based on the discrete degree of all short-term periods in each column direction of each frame of the spinning wheel grayscale image, the column-wise period deviation coefficient in each column direction of each frame of the spinning wheel grayscale image is constructed; based on the discrete degree of the column-wise period deviation coefficient in all column directions of the spinning wheel grayscale image in each frame of the spinning wheel grayscale image, the spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is determined; (3) determining the yarn mixing correction value of each frame of the spinning wheel grayscale image based on the differences between all short-time periods in each frame of the spinning wheel grayscale image and in combination with the spinning fly evaluation coefficient; (4) The yarn mixing determination coefficient of each video segment is obtained based on the changing trend of the yarn mixing correction value of all spinning wheel grayscale images in each video segment; The yarn bobbin data decision feedback step sets the yarn mixing determination threshold and determines the yarn mixing situation by combining the yarn mixing determination coefficients of all video segments; Each short-time period in each column direction of each frame of the spinning wheel grayscale image is the difference between each adjacent maximum value point and minimum value point on the spinning wheel grayscale curve in each column direction of each frame of the spinning wheel grayscale image; The spinning waste evaluation coefficient of each frame of the spinning wheel grayscale image is the difference between the column direction periodic deviation coefficient of the column direction in each frame of the spinning wheel grayscale image and the mean value of the column direction periodic deviation of all column directions.
2. A mixed yarn detection method for packaged yarn according to claim 1, characterized in that: The spinning wheel grayscale curve in each column direction in each frame of the spinning wheel grayscale image is a curve obtained by fitting the grayscale values of all pixels in each column direction in each frame of the spinning wheel grayscale image.
3. A mixed yarn detection method for bobbin packaging as claimed in claim 1, characterized in that: The column-wise periodic deviation coefficient of each column direction in each frame of the spinning wheel grayscale image is the variance of all short-time periods in each column direction in each frame of the spinning wheel grayscale image.
4. A mixed yarn detection method for packaged yarn according to claim 1, characterized in that: The yarn mixing correction value of each frame of the spinning wheel grayscale image is the result of the forward fusion of the difference between the short-term periods in all column directions in each frame of the spinning wheel grayscale image and the spinning fly evaluation coefficient.
5. A mixed yarn detection method for bobbin packaging as claimed in claim 1, characterized in that: The construction process of the yarn mixing determination coefficient of each video segment is as follows: Obtaining a yarn mixing correction curve for each video segment according to a change trend of the yarn mixing correction values of all spinning wheel grayscale images in each video segment; Analyze the slope of the line between each adjacent maximum point and minimum point on the yarn mixing correction curve of each video segment, and record it as the first yarn mixing determination value on the yarn mixing correction curve of each video segment; Determine the average of all first yarn mixing determination values on the yarn mixing correction curve of each video segment; record it as the second yarn mixing determination value of each video segment; Determine the mean value of the yarn mixing correction sequence of each video segment, and record it as the third yarn mixing determination value of each video segment; A yarn mixing determination coefficient of each video segment is determined based on the second yarn mixing determination value and the third yarn mixing determination value.
6. A mixed yarn detection method for packaged yarn according to claim 5, characterized in that: The yarn mixing determination coefficient of each video segment is a result of forward fusion of the second yarn mixing determination value and the third yarn mixing determination value of each video segment.
7. A mixed yarn detection method for packaged yarn according to claim 5, characterized in that: The process of obtaining the yarn mixing correction curve of each video segment is as follows: The yarn mixing correction values of all spinning wheel grayscale images in each video segment are arranged in chronological order to form a yarn mixing correction sequence of each video segment; the yarn mixing correction sequence of each video segment is fitted to obtain a yarn mixing correction curve of each video segment.
8. A mixed yarn detection method for packaged yarn according to claim 1, characterized in that: The process of determining the yarn mixing situation is as follows: The yarn mixing determination coefficients of all video segments are normalized. When any yarn mixing determination coefficient is greater than the yarn mixing determination threshold, the spinning wheel is abnormal; when all yarn mixing determination coefficients are less than or equal to the yarn mixing determination threshold, the spinning wheel is normal.
9. A yarn mixing detection system for bobbin packaging, implementing the method as claimed in claim 1, characterized in that: The system comprises: The yarn bobbin data acquisition module acquires the real-time image data of the spinning wheel during the bobbin packaging process, which is recorded as a grayscale image of each frame of the spinning wheel; The yarn bobbin data analysis module performs feature analysis on the blended yarn and mixed yarn in the real-time image data of the spinning wheel to detect the mixed yarn situation, specifically: (1) Obtaining the spindle grayscale curve in each column direction in the spindle grayscale image of each frame; (2) Based on the difference between adjacent extreme value points on the spinning wheel grayscale curve in each column direction of each frame of the spinning wheel grayscale image, the short-term period in each column direction of each frame of the spinning wheel grayscale image is constructed; based on the discrete degree of all short-term periods in each column direction of each frame of the spinning wheel grayscale image, the column-wise period deviation coefficient in each column direction of each frame of the spinning wheel grayscale image is constructed; based on the discrete degree of the column-wise period deviation coefficient in all column directions of the spinning wheel grayscale image in each frame of the spinning wheel grayscale image, the spinning fly evaluation coefficient of each frame of the spinning wheel grayscale image is determined; (3) determining the yarn mixing correction value of each frame of the spinning wheel grayscale image based on the differences between all short-time periods in each frame of the spinning wheel grayscale image and in combination with the spinning fly evaluation coefficient; (4) The yarn mixing determination coefficient of each video segment is obtained based on the changing trend of the yarn mixing correction value of all spinning wheel grayscale images in each video segment; The yarn bobbin data decision feedback module sets the yarn mixing determination threshold and determines the yarn mixing situation by combining the yarn mixing determination coefficients of all video segments.
