A tracking control system and method for textile processing progress
Through the data unit and image acquisition unit, the textile type and amount to be processed are obtained, the characteristic data is extracted and the completed amount ratio is calculated, which solves the problem of low accuracy in tracking textile processing progress and realizes real-time monitoring of textile processing progress.
Patent Information
- Application Number
- CN202410880139.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Existing textile processing progress tracking methods have problems such as low tracking accuracy and inability to achieve real-time tracking. Especially when processing small batches and multiple varieties, it is difficult to accurately obtain the processing progress when the length of textiles is long.
The data unit is used to obtain textile type data and the amount to be processed. The image acquisition unit collects processing images in real time. The preprocessing unit extracts feature data. The feature unit records the time interval of feature points passing through the processing node. The progress tracking unit calculates the completed amount ratio for visual display. Real-time tracking of textile processing progress.
It improves the accuracy of textile processing progress tracking, realizes real-time progress monitoring of different textiles, and is suitable for small batches and multi-variety textile processing.
Smart Images

Figure CN118409555B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of textile technology, and in particular to a tracking control system and method for textile processing progress. Background Art
[0002] By real-time tracking of textile processing progress, the efficiency of textile processing can be understood in real time, which is convenient for adjusting parameters to improve processing efficiency and control processing quality. However, the existing detection of textile processing progress is
[0003] In the field of textile industry, due to the high machine speed during textile production or related processing, when processing small batches and multiple varieties of textiles, it is necessary to sew different varieties of textiles directly together or connect them with guide cloths for continuous production. In the prior art, the tracking of textile processing progress was initially done by manually inputting or scanning the batch number of the textile to record the processing progress of the textile variety. After improvement, a seam detection device was set up to detect the seam signal between two pieces of textiles, and a pulse signal was generated according to the detected seam signal. The processing progress of different varieties of textiles was obtained by recording and tracking the number of pulse signals.
[0004] However, the improved method for automatically tracking the progress of textile processing has the following disadvantages. First, the seam detection device can only detect the seam signals between textiles. However, for the same type of textiles, if the length of the textile to be processed is long, there will also be seam signals, which will result in the accuracy of the processing progress tracking not being guaranteed. At the same time, since the textile processing progress is tracked by pulse signals, the processing progress cannot be tracked in real time. Summary of the invention
[0005] In order to solve the problems of low tracking accuracy and inability to achieve real-time tracking in existing textile processing progress tracking methods, the present invention provides a tracking control system for textile processing progress, the system comprising:
[0006] Data unit: obtains data on the type of textile to be processed, the amount to be processed and the source image;
[0007] Image acquisition unit: collects the processing images of textiles in each processing node in real time and puts them into the image set;
[0008] A preprocessing unit: based on the image set, obtaining an image of the first textile before processing as a first image, and based on the source image, preprocessing the first image to obtain type data of the first textile;
[0009] Feature unit: extract feature data of the first image as first feature data, determine at least one feature point in the first feature data as the first feature point, and record the times when the first feature point passes through the first processing node, the second processing node, ..., and the Nth processing node in sequence, respectively t1, t2, ..., and t N and put it into a first preset time set; based on the first preset time set, calculate the time interval between the first feature point passing through adjacent processing nodes to obtain a calculation result as a first calculation result, where N is a positive integer;
[0010] The progress tracking unit: based on the type data of the first textile, obtains the amount of the first textile to be processed as the first amount to be processed; obtains the t of the first processing node M At time t1 to t M In the time interval of time t1, it is determined whether different types of textiles appear; if so, it is determined that the first textile has been processed, and the different types of textiles are defined as second textiles, and the second textile is processed to obtain a processing result. Based on the processing result, the processing progress of the second textile is tracked and displayed through a preset terminal; if not, the time interval from t1 to t2 is calculated. M The time interval between t1 and t M In the time interval of the moment, the operation data of the textile equipment is the first operation data, based on the first time interval, the first calculation result and the first operation data, the completion amount of the first textile is obtained as the first completion amount, the ratio of the first completion amount to the first amount to be processed is calculated as the first ratio, the first ratio is visualized and displayed through the preset terminal, and M is a positive integer greater than 1.
[0011] The present invention is implemented by the following technical scheme: first, the type data of the textile to be processed, the amount of different textiles to be processed and the source image are obtained through the data unit, and the source image is used to help determine the type data of the textile to be processed later. Then the image acquisition unit collects the processing image of each processing node in the textile process in real time, and puts all the collected images into an image set; the preprocessing unit preprocesses the first image before the first textile is processed to obtain the type data of the first textile, and the amount of the first textile to be processed can be obtained later through the type data.
[0012] Since it is difficult to extract feature points with key features in actual processing of textiles, the present invention extracts feature data from a first image of the first textile before processing by setting a feature unit, determines at least one feature point (or multiple features) in the extracted first feature data, and records the moment when the feature point passes through each processing node in turn. Since there are differences in textile materials, it is difficult to ensure consistent processing efficiency and difficulty for different types of textiles even under the same processing parameters. Therefore, in order to achieve real-time tracking of the progress of textiles, it is necessary to perform statistics on the processing efficiency of different textiles. This solution obtains a first calculation result by counting the time intervals between the first feature point passing through adjacent processing nodes, and reflects the difference in processing efficiency of textile equipment for different types of textiles based on the first calculation result.
[0013] Finally, the progress tracking unit tracks the textile processing progress in real time and displays it through a preset terminal. The specific steps of achieving real-time tracking of textile processing progress are as follows: obtaining the t of the first processing node M At time t1 to t M In the time interval from t1 to t2, it is determined whether different types of textiles appear. Because when processing small batches and multiple varieties of textiles, different varieties of textiles will be sewn together or connected with guide cloths. At the same time, when the length of the textiles to be processed is long, they will also be sewn together or connected with guide cloths. Therefore, the first preset method is used to determine whether different types of textiles appear in the time interval. If so, it means that the first textile has been processed. At this time, it is necessary to track the second textile, process the second textile to obtain a processing result, and based on the processing result, the processing progress of the second textile is tracked in real time; if not, it means that the first textile is being processed. Therefore, it is only necessary to track the processing progress of the first textile, and calculate the time from t1 to t2. M The first time interval between t1 and t M Within the time interval, the first operating data of the textile equipment is obtained, and finally the completion amount of the first textile is obtained through the first time interval, the first calculation result and the first operating data, and the ratio between the completed amount and the amount to be processed is calculated. The ratio is the processing progress of the first textile, and the ratio is visualized and displayed through a preset terminal, so that the user can view the processing progress of the textile in real time.
[0014] Further, using the first preset method to determine whether different types of textiles appear includes:
[0015] Continuously acquiring multiple frames of processed images of the first processing node on the first textile;
[0016] Processing the multiple frames of processed images to obtain a sample image of the first textile at the first processing node;
[0017] The Euclidean distance between all processed images of the first processing node and the sample image is calculated as a second calculation result;
[0018] Based on the second calculation result, a processed image whose Euclidean distance with the sample image exceeds a first preset value among all processed images is obtained as a first frame of processed image;
[0019] Based on the first processed image, continuously obtain the Euclidean distances between R processed images after the first processed image and the sample image and put them into a first distance set, where R is a positive integer;
[0020] Calculate the average value of all Euclidean distances in the first distance set, and determine whether the average value exceeds a second preset value. If so, determine that the textiles before and after the first frame of processed image belong to different types; if not, determine that the textiles before and after the first frame of processed image belong to the same type.
[0021] Among them, the existing tracking system for textile processing progress detects the seam signal between two pieces of textiles through a seam detection device, generates a pulse signal according to the detected seam signal, and distinguishes different types of textiles. However, in the actual processing process, there are also seams for textiles with a large processing volume. Therefore, in order to distinguish different types of textiles, firstly, multiple frames of textile images are continuously acquired, and the sample image of the textile processing is determined by the multiple frames of textile images. Then, based on the sample image, the Euclidean distance between all images of the subsequent first processing node and the sample image is calculated. If the Euclidean distance does not exceed the first preset value, it means that they belong to the same type of textiles. If the Euclidean distance exceeds the first preset value, it means that a seam signal appears between the textiles, but it cannot be determined whether the textiles at both ends of the seam are the same textiles. Therefore, when the Euclidean distance between the first frame of processed image and the sample image exceeds the first preset value, the continuous R frames of processed images after the first frame of processed image are continuously acquired. By calculating the average value of the Euclidean distance between the R frame of processed image and the sample image, if the average value exceeds the second preset value, it means that the textiles before and after the first frame of processed image belong to different types. If the average value does not exceed the second preset value, it means that the textiles before and after the first frame of processed image belong to the same type. The reason for using the average value of the Euclidean distance between multiple frames of processed images and sample images is to improve the accuracy of textile type discrimination.
[0022] Furthermore, using a third preset method to process the multiple frames of processed images to obtain a sample image of the first textile at the first processing node includes:
[0023] A sample model is created, and the multiple frames of processed images are input into the sample model as an input set; the sample model is trained, and the sample image is output using the trained sample model.
[0024] Among them, the processing of sample images adopts the method of neural network model learning to improve the efficiency of sample image acquisition.
[0025] Furthermore, training the sample model includes:
[0026] Creating a preset number of networks, and evenly dividing the multiple frames of processed images into the multiple networks;
[0027] Based on the principle of permutation and combination, the Euclidean distance between any two frames of processed images in any two networks is iteratively calculated and placed in the second distance set, until the Euclidean distance between any frame of processed images in any network and any frame of processed images in other networks is calculated;
[0028] Calculate the average of all Euclidean distances, and select a group of processed images that are closest to the average, namely processed image A and processed image B;
[0029] Based on the second distance set, obtaining the closest corresponding Euclidean distance to the processed image A except the processed image B as the first Euclidean distance;
[0030] Based on the second distance set, obtaining the closest corresponding Euclidean distance to the processed image B except the processed image A as the second Euclidean distance;
[0031] If the first Euclidean distance is greater than the second Euclidean distance, the processed image B is used as a sample image; if the second Euclidean distance is greater than the first Euclidean distance, the processed image A is used as a sample image.
[0032] Among them, since the number of samples of textile processing images is small and the gap between images is small, in order to improve the accuracy of sample image acquisition, this scheme first creates a preset number of networks, and then divides multiple frames of processed images into multiple networks. Based on the principle of permutation and combination, each frame of each network is subjected to Euclidean distance calculation with images in other networks to increase the number of training samples, and then the average value of all Euclidean distances is calculated. Based on the average value, a group of processed images A and B corresponding to the closest distance to the average value are obtained, and then the first Euclidean distance corresponding to the closest distance to processed image A except processed image B is calculated, and the second Euclidean distance corresponding to the closest distance to processed image B except processed image A is calculated. If the first Euclidean distance is greater than the second Euclidean distance, it means that processed image B is more suitable as a sample image. If the second Euclidean distance is greater than the first Euclidean distance, it means that processed image A is more suitable as a sample image. Training the sample model by the above method can improve the efficiency of sample image acquisition.
[0033] Further, using a second preset method to process the second textile comprises:
[0034] Based on the first preset method, acquiring an image of the second textile before processing as a second image;
[0035] Extracting feature data of the second image as second feature data, and determining at least one feature point in the second feature data as a second feature point;
[0036] Record the time when the second feature point passes through the first processing node, the second processing node, ..., and the Nth processing node in sequence and put them into a second preset time set;
[0037] Based on the second preset time set, a calculation result obtained by calculating the time interval between the second feature point passing through adjacent processing nodes is obtained as a fourth calculation result;
[0038] The time at which the second image is acquired is t D , D is a positive integer, and 1<D<M;
[0039] Calculate t D to M The time interval between is the second time interval, and t D to M In the time interval of the moment, the operation data of the textile equipment is the second operation data;
[0040] Based on the second time interval, the fourth calculation result and the second operation data, obtaining the completion amount of the second textile as a second completion amount;
[0041] Based on the type data of the second textile, obtaining the to-be-processed amount of the second textile as the second to-be-processed amount;
[0042] Calculating a ratio of the second completed amount to the second amount to be processed as a second ratio;
[0043] The second ratio is visualized and displayed through the preset terminal.
[0044] Among them, the second textile is processed by a second preset method, and its specific processing method is similar to the processing progress tracking method of the first textile. First, a second image of the second textile before processing is obtained, second feature data is extracted from the second image, and at least one second feature point is determined in the second feature data. Then, the moments corresponding to the second feature point passing through the first processing node, the second processing node, ..., and the Nth processing node are recorded and put into a second preset moment set. Based on the moment set, the time interval between the second feature point passing through adjacent processing nodes is calculated to obtain a fourth calculation result. Finally, the second completed amount of the second textile is obtained through the second time interval, the fourth calculation result and the second operating data. Based on the type data of the second textile, the second amount to be processed of the second textile is obtained. By calculating the ratio between the second completed amount and the second amount to be processed and updating it in real time, real-time tracking of the processing progress of the second textile is achieved.
[0045] Further, based on the source image, preprocessing the first image includes:
[0046] Match the first image with the source image to determine whether there is a successful active image match. If so, name the corresponding source image as the first source image, and obtain the textile type data corresponding to the first source image as the textile type data corresponding to the first image; if not, process the first image.
[0047] Among them, the source image is a sample image of different types of textiles provided by a textile raw material supplier or manufacturer, but the sample image is not completely matched with the actual processed textile image. Therefore, the preprocessing is first to match the first image with the source image. If the match is successful, the corresponding type data is directly obtained. If the match fails, the first image is processed.
[0048] Further, using a fourth preset method to process the first image includes:
[0049] The Euclidean distance between all source images and the first image is calculated to obtain a calculation result as a third calculation result;
[0050] Based on the third calculation result, a preset number of source images closest to the first image are screened and placed into a source image set;
[0051] Based on the source image set, the textile type data corresponding to all source images are used as pseudo type data corresponding to the first image;
[0052] Acquire multiple frames of image data of the first textile at each processing node, operation data of the textile equipment as third operation data, and completion amount data of the first textile;
[0053] Creating a correction model, and inputting the pseudo-type data, the multi-frame image data, the third operation data and the completion amount data as an input set into the correction model;
[0054] The correction model is trained, and the pseudo-type data is corrected using the trained model to obtain textile type data corresponding to the first image.
[0055] Among them, for the first image that cannot be successfully matched with the source image, this scheme adopts to find a frame of source image closest to the first image in the source image. In order to maximize the accuracy of finding the closest source image, the Euclidean distance between all source images and the first image is first calculated, and a preset number of source images closest to the first image are screened. The type data of these source images are used as pseudo-type data corresponding to the first image, and a correction model is created. The pseudo-type data, image data of the first textile at each processing node, equipment operation data and completion volume data are input into the correction model as an input set. By training the correction model, the type data corresponding to the first image can be determined in time based on the trained correction model.
[0056] Furthermore, training the correction model includes:
[0057] Extracting feature data of each frame of the multiple frames of image data and placing them into a corresponding data set, and performing dimensionality reduction processing on the feature data in each data set;
[0058] The multiple frames of image data after dimensionality reduction processing, the third operation data and the completion data are used as constraints, and the pseudo-type data is continuously corrected until there is a last frame of the second source image in the source image set that meets the constraints, and the textile type data corresponding to the second source image is used as the textile type data corresponding to the first image.
[0059] Among them, the feature data of each frame of the multiple frames are extracted, and the feature data in each data set are subjected to dimensionality reduction processing through a preset algorithm (such as the SNE algorithm). Dimensionality reduction is the process of converting high-dimensional data into low-dimensional data while ensuring the representative characteristics or distribution of the data, which has the effect of data visualization and data simplification. Then, the multi-frame image data, equipment operation data and textile completion data after dimensionality reduction processing are used as constraints, and the pseudo-type data are continuously corrected until only the type data corresponding to one frame of the source image meets the constraint condition, and the type data corresponding to the source image is used as the type data of the first image.
[0060] Furthermore, visualizing the first ratio includes: processing the first ratio using a preset component, and data displayed by the preset component changes dynamically with the first ratio.
[0061] The first ratio is input into the preset component, and the data displayed by the preset component can change dynamically with the first ratio. The user can view the processing progress of different textiles in real time through the preset component in the preset terminal.
[0062] In order to solve the problems of low tracking accuracy and inability to achieve real-time tracking in existing textile processing progress tracking methods, the present invention provides a tracking control method for textile processing progress, which includes the following steps:
[0063] Obtaining data on the type of textile to be processed, the amount to be processed and the source image;
[0064] The processed images of textiles in each processing node are collected in real time and put into an image set;
[0065] Based on the image set, an image of a first textile before being processed is obtained as a first image, and based on the source image, the first image is preprocessed to obtain type data of the first textile;
[0066] Extract feature data of the first image as first feature data, determine at least one feature point in the first feature data as a first feature point, and record the times t1, t2, ..., and t2 corresponding to the first feature point passing through the first processing node, the second processing node, ..., and the Nth processing node in sequence. N and put it into a first preset time set; based on the first preset time set, calculate the time interval between the first feature point passing through adjacent processing nodes to obtain a calculation result as a first calculation result, where N is a positive integer;
[0067] Based on the type data of the first textile, the amount of the first textile to be processed is obtained as the first amount to be processed; and t of the first processing node is obtained. M At time t1 to tM In the time interval of time t1, it is determined whether different types of textiles appear; if so, it is determined that the first textile has been processed, and the different types of textiles are defined as second textiles, and the second textile is processed to obtain a processing result. Based on the processing result, the processing progress of the second textile is tracked and displayed through a preset terminal; if not, the time interval from t1 to t2 is calculated. M The time interval between t1 and t M In the time interval of the moment, the operation data of the textile equipment is the first operation data, based on the first time interval, the first calculation result and the first operation data, the completion amount of the first textile is obtained as the first completion amount, the ratio of the first completion amount to the first amount to be processed is calculated as the first ratio, the first ratio is visualized and displayed through the preset terminal, and M is a positive integer greater than 1.
[0068] One or more technical solutions provided by the present invention have at least the following technical effects or advantages:
[0069] The present invention acquires basic data of the textile to be processed by setting a data unit, an image acquisition unit acquires processing images of the textile at each processing node, a preprocessing unit processes to obtain type data of the textile to be processed, and then, through a feature unit, records and calculates the time intervals between different textiles passing through adjacent processing nodes to obtain a first calculation result. Based on the first calculation result, the difference in processing efficiency of textile equipment for different textiles is reflected, and then the progress of textile processing in different scenarios is tracked through a progress tracking unit, which not only realizes real-time tracking of textile processing progress, but also improves the accuracy of processing progress tracking.
[0070] The present invention determines whether different types of textiles appear by setting a first preset method. Since the sample image of the textile is determined by the processed image of the textile itself, and the different types of textiles are determined by calculating the similarity between the subsequent image and the sample image, the determination method is more accurate than the existing seam signal detection method.
[0071] The present invention sets a sample model and trains the sample model. By using the trained sample model, the corresponding sample image can be quickly and accurately obtained based on multiple frames of processed images of textiles.
[0072] The present invention can quickly and accurately obtain the type data of the textile to be processed, for which the type data of the textile cannot be directly determined through the source image, through the fourth preset method and the correction model. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of the present invention, and do not constitute a limitation on the embodiments of the present invention;
[0074] Figure 1 It is a schematic diagram of the composition of a tracking control system for textile processing progress in the present invention;
[0075] Figure 2 It is a schematic flow chart of a tracking control method for textile processing progress in the present invention. DETAILED DESCRIPTION
[0076] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0077] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those within the scope of this description. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0078] Embodiment 1
[0079] Please refer to Figure 1 , Figure 1 This is a schematic diagram of a tracking control system for textile processing progress in the present invention, the system comprising:
[0080] Data unit: obtains data on the type of textile to be processed, the amount to be processed and the source image;
[0081] Image acquisition unit: collects the processing images of textiles in each processing node in real time and puts them into the image set;
[0082] A preprocessing unit: based on the image set, obtaining an image of the first textile before processing as a first image, and based on the source image, preprocessing the first image to obtain type data of the first textile;
[0083] Feature unit: extract feature data of the first image as first feature data, determine at least one feature point in the first feature data as the first feature point, and record the times when the first feature point passes through the first processing node, the second processing node, ..., and the Nth processing node in sequence, respectively t1, t2, ..., and t N and put it into a first preset time set; based on the first preset time set, calculate the time interval between the first feature point passing through adjacent processing nodes to obtain a calculation result as a first calculation result, where N is a positive integer;
[0084] The progress tracking unit: based on the type data of the first textile, obtains the amount of the first textile to be processed as the first amount to be processed; obtains the t of the first processing node M At time t1 to t M In the time interval of time t1, it is determined whether different types of textiles appear; if so, it is determined that the first textile has been processed, and the different types of textiles are defined as second textiles, and the second textile is processed to obtain a processing result. Based on the processing result, the processing progress of the second textile is tracked and displayed through a preset terminal; if not, the time interval from t1 to t2 is calculated. M The time interval between t1 and t M In the time interval of the moment, the operation data of the textile equipment is the first operation data, based on the first time interval, the first calculation result and the first operation data, the completion amount of the first textile is obtained as the first completion amount, the ratio of the first completion amount to the first amount to be processed is calculated as the first ratio, the first ratio is visualized and displayed through the preset terminal, and M is a positive integer greater than 1.
[0085] The specific embodiment of the present invention is as follows: the data unit is used to obtain the type data of the textile to be processed, the amount of different textiles to be processed and the source image, and then the image acquisition unit collects the processed image of each processing node in the textile process in real time, and puts all the collected images into an image set. The image acquisition unit can use an industrial camera. The model of the industrial camera can be selected according to actual conditions, and the present invention does not make specific restrictions. The preprocessing unit preprocesses the first image before the first textile is processed to obtain the type data of the first textile. Through the type data of the textile, the amount of the textile to be processed can be obtained.
[0086] Feature points are extracted through feature units, and the moments when the feature points pass through each processing node in turn are recorded. Due to differences in textile materials, it is difficult to ensure consistent processing efficiency and difficulty for different types of textiles even under the same processing parameters. This solution obtains a first calculation result by counting the time intervals between the first feature point passing through adjacent processing nodes, and reflects the differences in processing efficiency of textile equipment for different types of textiles based on the first calculation result.
[0087] Finally, the progress tracking unit tracks the textile processing progress in real time and obtains the t of the first processing node. M At time t1 to t MIn the time interval, a first preset method is used to determine whether different types of textiles appear. If yes, it means that the first textile has been processed. At this time, the second textile needs to be tracked. The second textile is processed by the second preset method to obtain a processing result. Based on the processing result, the processing progress of the second textile is tracked in real time. The real-time tracking of the processing progress of the second textile has been described in other embodiments and will not be described in this embodiment. If no, it means that the first textile is being processed. Therefore, it is only necessary to track the processing progress of the first textile, and the time from t1 to t M The first time interval between t1 and t M The first operation data of the textile equipment is obtained within the time interval, and finally the completion amount of the first textile is obtained through the first time interval, the first calculation result and the first operation data, and the ratio between the completion amount and the amount to be processed is calculated, and the ratio is visualized and displayed through a preset terminal, so that the user can view the processing progress of the textile in real time.
[0088] Wherein, using the first preset method to determine whether different types of textiles appear includes:
[0089] Continuously acquiring multiple frames of processed images of the first processing node on the first textile;
[0090] Processing the multiple frames of processed images to obtain a sample image of the first textile at the first processing node;
[0091] The Euclidean distance between all processed images of the first processing node and the sample image is calculated as a second calculation result;
[0092] Based on the second calculation result, a processed image whose Euclidean distance with the sample image exceeds a first preset value among all processed images is obtained as a first frame of processed image;
[0093] Based on the first processed image, continuously obtain the Euclidean distances between R processed images after the first processed image and the sample image and put them into a first distance set, where R is a positive integer;
[0094] Calculate the average value of all Euclidean distances in the first distance set, and determine whether the average value exceeds a second preset value. If so, determine that the textiles before and after the first frame of processed image belong to different types; if not, determine that the textiles before and after the first frame of processed image belong to the same type.
[0095] First, a plurality of frames of processed images of the textile are continuously acquired, and a sample image of the textile processing is determined through the processed images of the plurality of frames of the textile. Then, based on the sample image, the Euclidean distance between all images of the subsequent first processing node and the sample image is calculated. If the Euclidean distance does not exceed a first preset value, it indicates that the textiles belong to the same type. If the Euclidean distance exceeds the first preset value, it indicates that a seam signal appears between the textiles, but it cannot be determined whether the textiles at both ends of the seam are the same textile. Therefore, when the Euclidean distance between the first frame of processed image and the sample image exceeds the first preset value, R consecutive frames of processed images are continuously acquired after the first frame of processed image. By calculating the average value of the Euclidean distance between the R frames of processed image and the sample image, if the average value exceeds a second preset value, it indicates that the textiles before and after the first frame of processed image belong to different types. If the average value does not exceed the second preset value, it indicates that the textiles before and after the first frame of processed image belong to the same type.
[0096] Wherein, using a third preset method to process the multiple frames of processed images to obtain a sample image of the first textile at the first processing node includes:
[0097] A sample model is created, and the multiple frames of processed images are input into the sample model as an input set; the sample model is trained, and the sample image is output using the trained sample model.
[0098] The method of neural network model learning is used to process sample images to improve the efficiency of sample image acquisition.
[0099] Wherein, training the sample model includes:
[0100] Creating a preset number of networks, and evenly dividing the multiple frames of processed images into the multiple networks;
[0101] Based on the principle of permutation and combination, the Euclidean distance between any two frames of processed images in any two networks is iteratively calculated and placed in the second distance set, until the Euclidean distance between any frame of processed images in any network and any frame of processed images in other networks is calculated;
[0102] Calculate the average of all Euclidean distances, and select a group of processed images that are closest to the average, namely processed image A and processed image B;
[0103] Based on the second distance set, obtaining the closest corresponding Euclidean distance to the processed image A except the processed image B as the first Euclidean distance;
[0104] Based on the second distance set, obtaining the closest corresponding Euclidean distance to the processed image B except the processed image A as the second Euclidean distance;
[0105] If the first Euclidean distance is greater than the second Euclidean distance, the processed image B is used as a sample image; if the second Euclidean distance is greater than the first Euclidean distance, the processed image A is used as a sample image.
[0106] For example, if the number of networks is 4 and the number of multi-frame processed images is 8, the 8 frames of processed images are evenly divided into 4 networks. Based on the principle of permutation and combination, the Euclidean distance between any two frames of processed images between any two networks is calculated, that is, 24 Euclidean distances between processed images are obtained, and the average value of these 24 Euclidean distances is calculated as z. A group of corresponding processed images with the closest distance to z are selected, namely, processed image A and processed image B. Then, the first Euclidean distance corresponding to the processed image A except processed image B is x, and the second Euclidean distance corresponding to the processed image B except processed image A is y. If x>y, the processed image B is used as the sample image, and if y>x, the processed image A is used as the sample image.
[0107] Wherein, using the second preset method to process the second textile comprises:
[0108] Based on the first preset method, acquiring an image of the second textile before processing as a second image;
[0109] Extracting feature data of the second image as second feature data, and determining at least one feature point in the second feature data as a second feature point;
[0110] Record the time when the second feature point passes through the first processing node, the second processing node, ..., and the Nth processing node in sequence and put them into a second preset time set;
[0111] Based on the second preset time set, a calculation result obtained by calculating the time interval between the second feature point passing through adjacent processing nodes is obtained as a fourth calculation result;
[0112] The time at which the second image is acquired is t D , D is a positive integer, and 1<D<M;
[0113] Calculate t D to M The time interval between is the second time interval, and t D to M In the time interval of the moment, the operation data of the textile equipment is the second operation data;
[0114] Based on the second time interval, the fourth calculation result and the second operation data, obtaining the completion amount of the second textile as a second completion amount;
[0115] Based on the type data of the second textile, obtaining the to-be-processed amount of the second textile as the second to-be-processed amount;
[0116] Calculating a ratio of the second completed amount to the second amount to be processed as a second ratio;
[0117] The second ratio is visualized and displayed through the preset terminal.
[0118] The second textile is processed by a second preset method, and its specific processing method is similar to the processing progress tracking method of the first textile. First, a second image of the second textile before processing is obtained, second feature data is extracted from the second image, and at least one second feature point is determined in the second feature data. Then, the moments corresponding to the second feature point passing through the first processing node, the second processing node, ..., and the Nth processing node are recorded and put into a second preset moment set. Based on the moment set, the time interval between the second feature point passing through adjacent processing nodes is calculated to obtain a fourth calculation result. Finally, the second completed amount of the second textile is obtained through the second time interval, the fourth calculation result and the second operating data. Based on the type data of the second textile, the second amount to be processed of the second textile is obtained. By calculating the ratio between the second completed amount and the second amount to be processed and updating it in real time, real-time tracking of the processing progress of the second textile is achieved.
[0119] Wherein, preprocessing the first image based on the source image includes:
[0120] Match the first image with the source image to determine whether there is a successful active image match. If so, name the corresponding source image as the first source image, and obtain the textile type data corresponding to the first source image as the textile type data corresponding to the first image; if not, process the first image.
[0121] The source image is a sample image of different types of textiles provided by a textile raw material supplier or manufacturer. The preprocessing step is to first match the first image with the source image. If the match is successful, the corresponding textile type data is directly obtained. If the match fails, the fourth preset method needs to be used for processing.
[0122] The using the fourth preset method to process the first image includes:
[0123] The Euclidean distance between all source images and the first image is calculated to obtain a calculation result as a third calculation result;
[0124] Based on the third calculation result, a preset number of source images closest to the first image are screened and placed into a source image set;
[0125] Based on the source image set, the textile type data corresponding to all source images are used as pseudo type data corresponding to the first image;
[0126] Acquire multiple frames of image data of the first textile at each processing node, operation data of the textile equipment as third operation data, and completion amount data of the first textile;
[0127] Creating a correction model, and inputting the pseudo-type data, the multi-frame image data, the third operation data and the completion amount data as an input set into the correction model;
[0128] The correction model is trained, and the pseudo-type data is corrected using the trained model to obtain textile type data corresponding to the first image.
[0129] Since there are small differences between different types of textiles, when matching the source images to determine the textile type data corresponding to the first image, an unsuccessful match may occur. This solution first calculates the Euclidean distance between all source images and the first image to screen out a preset number (such as 5) of source images, and these 5 source images are similar to the first image. The textile type data corresponding to these 5 source images are used as textile pseudo-type data of the first image. Then, a correction model is created and the pseudo-type data is corrected using the trained correction model until only the textile type data corresponding to one of the source images remains, and this textile type data is used as the textile type data corresponding to the first image.
[0130] Wherein, training the correction model includes:
[0131] Extracting feature data of each frame of the multiple frames of image data and placing them into a corresponding data set, and performing dimensionality reduction processing on the feature data in each data set;
[0132] The multiple frames of image data after dimensionality reduction processing, the third operation data and the completion data are used as constraints, and the pseudo-type data is continuously corrected until there is a last frame of the second source image in the source image set that meets the constraints, and the textile type data corresponding to the second source image is used as the textile type data corresponding to the first image.
[0133] The purpose of dimensionality reduction processing on data is to convert high-dimensional data into low-dimensional data while ensuring the representative characteristics or distribution of the data, so as to simplify the data. The multi-frame image data, the third operation data and the real-time completion data of textiles after dimensionality reduction processing are used as constraints to continuously correct the pseudo-type data. For example, the real-time completion data of textiles is used as one of the constraints. The amount of textiles to be processed corresponding to type H is h, and the amount of textiles to be processed corresponding to type K is k. When the real-time completion amount of the first textile exceeds k, it means that the type of the first textile is not type K. The type data corresponding to type K is removed from the pseudo-type data, and the type H data is retained. The above data only serve to explain and illustrate, and can be adjusted according to actual conditions. The present invention does not make specific limitations.
[0134] The visual processing of the first ratio includes: using a preset component to process the first ratio, and the data displayed by the preset component changes dynamically with the first ratio.
[0135] The preset component can select other components such as a pie chart component and a bar chart component, which is not specifically limited in the present invention, and the data displayed by the preset component changes dynamically with the first ratio, so that the processing personnel can clearly understand the real-time progress of different textile processing through the preset terminal.
[0136] Embodiment 2
[0137] Please refer to Figure 2 , Figure 2 The present invention is a flowchart of a tracking control method for textile processing progress, the method comprising the following steps:
[0138] Obtaining data on the type of textile to be processed, the amount to be processed and the source image;
[0139] The processed images of textiles in each processing node are collected in real time and put into an image set;
[0140] Based on the image set, an image of a first textile before being processed is obtained as a first image, and based on the source image, the first image is preprocessed to obtain type data of the first textile;
[0141] Extract feature data of the first image as first feature data, determine at least one feature point in the first feature data as a first feature point, and record the times t1, t2, ..., and t2 corresponding to the first feature point passing through the first processing node, the second processing node, ..., and the Nth processing node in sequence. N and put it into a first preset time set; based on the first preset time set, calculate the time interval between the first feature point passing through adjacent processing nodes to obtain a calculation result as a first calculation result, where N is a positive integer;
[0142] Based on the type data of the first textile, the amount of the first textile to be processed is obtained as the first amount to be processed; and t of the first processing node is obtained. M At time t1 to t M In the time interval of time t1, it is determined whether different types of textiles appear; if so, it is determined that the first textile has been processed, and the different types of textiles are defined as second textiles, and the second textile is processed to obtain a processing result. Based on the processing result, the processing progress of the second textile is tracked and displayed through a preset terminal; if not, the time interval from t1 to t2 is calculated. M The time interval between t1 and t M In the time interval of the moment, the operation data of the textile equipment is the first operation data, based on the first time interval, the first calculation result and the first operation data, the completion amount of the first textile is obtained as the first completion amount, the ratio of the first completion amount to the first amount to be processed is calculated as the first ratio, the first ratio is visualized and displayed through the preset terminal, and M is a positive integer greater than 1.
[0143] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0144] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A tracking control system for textile processing progress, characterized in that: The system comprises: Data unit: obtains data on the type of textile to be processed, the amount to be processed and the source image; Image acquisition unit: collects the processing images of textiles in each processing node in real time and puts them into the image set; A preprocessing unit: based on the image set, obtaining an image of the first textile before processing as a first image, and based on the source image, preprocessing the first image to obtain type data of the first textile; Feature unit: extract feature data of the first image as first feature data, determine at least one feature point in the first feature data as the first feature point, and record the times when the first feature point passes through the first processing node, the second processing node, ..., and the Nth processing node in sequence, respectively t1, t2, ..., and t N and put it into a first preset time set; based on the first preset time set, calculate the time interval between the first feature point passing through adjacent processing nodes to obtain a calculation result as a first calculation result, where N is a positive integer; The progress tracking unit: based on the type data of the first textile, obtains the amount of the first textile to be processed as the first amount to be processed; obtains the t of the first processing node M At time t1 to t M In the time interval of time t1, it is determined whether different types of textiles appear; if so, it is determined that the first textile has been processed, and the different types of textiles are defined as second textiles, and the second textile is processed to obtain a processing result. Based on the processing result, the processing progress of the second textile is tracked and displayed through a preset terminal; if not, the time interval from t1 to t2 is calculated. M The time interval between t1 and t M In the time interval of the moment, the operation data of the textile equipment is the first operation data, based on the first time interval, the first calculation result and the first operation data, the completion amount of the first textile is obtained as the first completion amount, the ratio of the first completion amount to the first amount to be processed is calculated as the first ratio, the first ratio is visualized and displayed through the preset terminal, and M is a positive integer greater than 1; The first preset method for determining whether different types of textiles are present includes: Continuously acquiring multiple frames of processed images of the first processing node on the first textile; Processing the multiple frames of processed images to obtain a sample image of the first textile at the first processing node; The Euclidean distance between all processed images of the first processing node and the sample image is calculated as a second calculation result; Based on the second calculation result, a processed image whose Euclidean distance with the sample image exceeds a first preset value among all processed images is obtained as a first frame of processed image; Based on the first processed image, continuously obtain the Euclidean distances between R processed images after the first processed image and the sample image and put them into a first distance set, where R is a positive integer; Calculate the average value of all Euclidean distances in the first distance set, and determine whether the average value exceeds a second preset value. If so, determine that the textiles before and after the first frame of processed image belong to different types; if not, determine that the textiles before and after the first frame of processed image belong to the same type.
2. A tracking and control system for textile processing progress according to claim 1, characterized in that: Using a third preset method to process the multiple frames of processed images to obtain a sample image of the first textile at the first processing node includes: A sample model is created, and the multiple frames of processed images are input into the sample model as an input set; the sample model is trained, and the sample image is output using the trained sample model.
3. A tracking and control system for textile processing progress according to claim 2, characterized in that: Training the sample model includes: Creating a preset number of networks, and evenly dividing the multiple frames of processed images into the multiple networks; Based on the principle of permutation and combination, the Euclidean distance between any two frames of processed images in any two networks is iteratively calculated and placed in the second distance set, until the Euclidean distance between any frame of processed images in any network and any frame of processed images in other networks is calculated; Calculate the average of all Euclidean distances, and select a group of processed images that are closest to the average, namely processed image A and processed image B; Based on the second distance set, obtaining the closest corresponding Euclidean distance to the processed image A except the processed image B as the first Euclidean distance; Based on the second distance set, obtaining the closest corresponding Euclidean distance to the processed image B except the processed image A as the second Euclidean distance; If the first Euclidean distance is greater than the second Euclidean distance, the processed image B is used as a sample image; if the second Euclidean distance is greater than the first Euclidean distance, the processed image A is used as a sample image.
4. A tracking and control system for textile processing progress according to claim 1, characterized in that: The second textile is treated by the second preset method, comprising: Based on the first preset method, acquiring an image of the second textile before processing as a second image; Extracting feature data of the second image as second feature data, and determining at least one feature point in the second feature data as a second feature point; Record the time when the second feature point passes through the first processing node, the second processing node, ..., and the Nth processing node in sequence and put them into a second preset time set; Based on the second preset time set, a calculation result obtained by calculating the time interval between the second feature point passing through adjacent processing nodes is obtained as a fourth calculation result; The time at which the second image is acquired is t D , D is a positive integer, and 1<D<M; Calculate t D to M The time interval between is the second time interval, and t D to M In the time interval of the moment, the operation data of the textile equipment is the second operation data; Based on the second time interval, the fourth calculation result and the second operation data, obtaining the completion amount of the second textile as a second completion amount; Based on the type data of the second textile, obtaining the to-be-processed amount of the second textile as the second to-be-processed amount; Calculating a ratio of the second completed amount to the second amount to be processed as a second ratio; The second ratio is visualized and displayed through the preset terminal.
5. A tracking and control system for textile processing progress according to claim 1, characterized in that: Based on the source image, preprocessing the first image includes: Match the first image with the source image to determine whether there is a successful active image match. If so, name the corresponding source image as the first source image, and obtain the textile type data corresponding to the first source image as the textile type data corresponding to the first image; if not, process the first image.
6. A tracking and control system for textile processing progress according to claim 5, characterized in that: Using the fourth preset method to process the first image includes: The Euclidean distance between all source images and the first image is calculated to obtain a calculation result as a third calculation result; Based on the third calculation result, a preset number of source images closest to the first image are screened and placed into a source image set; Based on the source image set, the textile type data corresponding to all source images are used as pseudo type data corresponding to the first image; Acquire multiple frames of image data of the first textile at each processing node, operation data of the textile equipment as third operation data, and completion amount data of the first textile; Creating a correction model, and inputting the pseudo-type data, the multi-frame image data, the third operation data and the completion amount data as an input set into the correction model; The correction model is trained, and the pseudo-type data is corrected using the trained model to obtain textile type data corresponding to the first image.
7. A tracking and control system for textile processing progress according to claim 6, characterized in that: Training the modified model includes: Extracting feature data of each frame of the multiple frames of image data and placing them into a corresponding data set, and performing dimensionality reduction processing on the feature data in each data set; The multiple frames of image data after dimensionality reduction processing, the third operation data and the completion data are used as constraints, and the pseudo-type data is continuously corrected until there is a last frame of the second source image in the source image set that meets the constraints, and the textile type data corresponding to the second source image is used as the textile type data corresponding to the first image.
8. A tracking and control system for textile processing progress according to claim 1, characterized in that: The visual processing of the first ratio includes: using a preset component to process the first ratio, and the data displayed by the preset component changes dynamically with the first ratio.
9. A tracking and control method for textile processing progress, characterized in that: The method comprises the following steps: Obtaining data on the type of textile to be processed, the amount to be processed and the source image; The processed images of textiles in each processing node are collected in real time and put into an image set; Based on the image set, an image of a first textile before processing is obtained as a first image, and based on the source image, the first image is preprocessed to obtain type data of the first textile; Extract feature data of the first image as first feature data, determine at least one feature point in the first feature data as a first feature point, and record the times t1, t2, ..., and t2 corresponding to the first feature point passing through the first processing node, the second processing node, ..., and the Nth processing node in sequence. N and put it into a first preset time set; based on the first preset time set, calculate the time interval between the first feature point passing through adjacent processing nodes to obtain a calculation result as a first calculation result, where N is a positive integer; Based on the type data of the first textile, the amount of the first textile to be processed is obtained as the first amount to be processed; and t of the first processing node is obtained. M At time t1 to t M In the time interval of time t1, it is determined whether different types of textiles appear; if so, it is determined that the first textile has been processed, and the different types of textiles are defined as second textiles, and the second textile is processed to obtain a processing result. Based on the processing result, the processing progress of the second textile is tracked and displayed through a preset terminal; if not, the time interval from t1 to t2 is calculated. M The time interval between t1 and t M In the time interval of the moment, the operation data of the textile equipment is the first operation data, based on the first time interval, the first calculation result and the first operation data, the completion amount of the first textile is obtained as the first completion amount, the ratio of the first completion amount to the first amount to be processed is calculated as the first ratio, the first ratio is visualized and displayed through the preset terminal, and M is a positive integer greater than 1; The first preset method for determining whether different types of textiles are present includes: Continuously acquiring multiple frames of processed images of the first processing node on the first textile; Processing the multiple frames of processed images to obtain a sample image of the first textile at the first processing node; The Euclidean distance between all processed images of the first processing node and the sample image is calculated as a second calculation result; Based on the second calculation result, a processed image whose Euclidean distance with the sample image exceeds a first preset value among all processed images is obtained as a first frame of processed image; Based on the first processed image, continuously obtain the Euclidean distances between R processed images after the first processed image and the sample image and put them into a first distance set, where R is a positive integer; Calculate the average value of all Euclidean distances in the first distance set, and determine whether the average value exceeds a second preset value. If so, determine that the textiles before and after the first frame of processed image belong to different types; if not, determine that the textiles before and after the first frame of processed image belong to the same type.
Citation Information
Patent Citations
Textile classification and identification method based on infrared spectrum detection technology
CN111369500A
Management method, system and device for cloth production and storage medium
CN112613754A
Intelligent production progress monitoring system for textile mill production line
CN114326628A
Textile preparation system based on self-adjustment
CN116084075A
Device and method for flaw location detection in fabric and markings
US20120133763A1
