Color difference measuring method, color difference measuring device, electronic device, storage medium, and program

By dividing the fabric into multiple segments and collecting the color values ​​of multiple sample points, the problem of inconsistent color after textile dyeing is solved, and accurate measurement and correction of fabric color is achieved.

JP2025044185AActive Publication Date: 2025-04-01ZHEJIANG HENGYI PETROCHEMICAL CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024161260
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-19
Filing Date
2024-09-18
Publication Date
2025-04-01
Estimated Expiration
2044-09-18

AI Technical Summary

Technical Problem

During the textile dyeing process, the actual color may be different from the expected color, resulting in the need to detect and correct the dyeing results.

Method used

Using one method, by dividing the fabric into segments and using a detection unit to collect the color values ​​of multiple sample points for each segment, determining the effective sample points and calculating the color difference value to accurately measure the color difference of the fabric.

Benefits of technology

Improves the accuracy and efficiency of color detection, ensuring accurate measurement and correction of fabric dyeing results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025044185000001_ABST
    Figure 2025044185000001_ABST
Patent Text Reader

Abstract

To provide a color difference measuring method, a color difference measuring device, an electronic device, a storage medium, and a program.SOLUTION: The color difference measuring method includes: sequentially conveying each textile segment of a textile to be measured to a measurement port of a detection unit to collect color values at a plurality of sampling locations; determining a time range within which a target segment of the textile to be measured passes through the measurement port of the detection unit, wherein the target segment is one textile segment of the textile to be measured; selecting valid sampling locations for the target segment based on the time range and the sampling time points of the plurality of sampling locations; and determining a color difference value for a corresponding target wound yarn package based on the color values of the valid sampling locations and a reference value.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to the technical field of data processing, and in particular to technical fields such as color difference measurement. [Background technology]

[0002] Woven fabrics are flat, soft, sheet-like materials formed by crisscrossing, intertwining, and connecting small, soft, long pieces. Woven fabrics include woven fabrics, knitted fabrics, tertiary woven fabrics, nonwoven fabrics, triaxial woven fabrics, and three-dimensional woven fabrics. All of these fabrics can be dyed. Summary of the Invention [Problem to be solved by the invention]

[0003] However, the actual color after dyeing may deviate from the expected color, so it is necessary to inspect the dyeing results of the textile. [Means for solving the problem]

[0004] The present disclosure provides a color difference measurement method, a color difference measurement apparatus, an electronic device, a storage medium, and a program to solve or alleviate one or more technical problems in the prior art.

[0005] In a first aspect, the present disclosure provides a color difference measuring method, wherein a measured fabric is woven using a plurality of yarn winding packages, and the measured fabric has fabric segments corresponding to each yarn winding package, and has a partition between different fabric segments, and the color difference measuring method includes: Sequentially conveying each fabric segment of the measured fabric to a measurement port of the detection unit, so that the detection unit collects color values ​​of a plurality of sampling points on the measured fabric according to a predetermined sequence of sampling points; determining a time range during which a target segment of the measured fabric passes through a measurement opening of the detection unit during a process of transporting the measured fabric to the detection unit and sampling the fabric, the target segment being any one of the fabric segments of the measured fabric; selecting valid sampling points for the target segment from among the plurality of sampling points based on a time range and sampling time points of the plurality of sampling points; determining a color difference value of the target wound yarn package corresponding to the target segment based on the color values ​​of the valid sampling locations and the reference value.

[0006] In a second aspect, the present disclosure provides a color difference measuring device, wherein a measured fabric is woven using a plurality of yarn winding packages, and has fabric segments corresponding to each yarn winding package in the measured fabric, with a partition between different fabric segments; and the color difference measuring device comprises: a transport module for transporting each fabric segment of the measured fabric sequentially to a measurement port of the detection unit so that the detection unit collects color values ​​of a plurality of sampling points on the measured fabric according to a sequence of preset sampling times; a first determination module for determining a time range in which a target segment of the measured fabric passes through a measurement opening of the detection unit during a process of transporting the measured fabric to the detection unit for sampling, the target segment being any one of the fabric segments of the measured fabric; a selection module for selecting valid sampling points of the target segment from the plurality of sampling points based on a time range and sampling time points of the plurality of sampling points; and a second determination module for determining a color difference value of the target wound yarn package corresponding to the target segment based on the color values ​​of the valid sampling points and the reference value.

[0007] In a third aspect, the present disclosure provides an electronic device, the device comprising: At least one processor; a memory in communication with the at least one processor; The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, cause the implementation of any one of the methods in the embodiments of the present disclosure.

[0008] In a fourth aspect, there is provided a non-transitory computer-readable storage medium having stored thereon computer instructions for causing a computer to perform any one of the methods in the embodiments of the present disclosure.

[0009] In a fifth aspect, a program is provided, which, when executed by a processor, implements any one of the methods in the embodiments of the present disclosure.

[0010] The beneficial effects of the technical solution provided by the present disclosure include at least the following: The time range during which the target segment passes through the measurement opening of the detection unit is compared with the sampling time points of multiple sampling points to obtain the color value of the valid sampling point, which helps to improve the accuracy of the detection of the color of the measured fabric based on the detection unit; The color difference value can be more accurately determined based on the color value of the valid sampling point, which helps to improve the accuracy of the color difference detection result of the wound yarn package corresponding to the measured fabric.

[0011] It should be understood that the contents described herein are not intended to describe key or important features of the embodiments of the present disclosure, nor are they used to limit the scope of the present disclosure, other features of the present disclosure are facilitated by the following specification.

[0012] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the several accompanying drawings indicate the same or similar components or elements. The accompanying drawings are not necessarily drawn to scale. It should be understood that the drawings depict only some examples provided by the present disclosure and should not be considered as limiting the scope of the present disclosure. [Brief description of the drawings]

[0013] [Figure 1] FIG. 2 is a schematic diagram showing a configuration of a measured fabric according to an embodiment of the present disclosure. [Diagram 2]FIG. 13 is a schematic diagram illustrating a configuration of a color detection device according to another embodiment of the present disclosure. [Diagram 3] 4 is a flowchart of a color difference measurement method according to another embodiment of the present disclosure. [Figure 4] FIG. 13 is a schematic diagram illustrating a configuration of a color detection device according to another embodiment of the present disclosure. [Diagram 5] FIG. 13 is a schematic diagram illustrating a configuration of a color detection device according to another embodiment of the present disclosure. [Figure 6] FIG. 13 is a schematic diagram for determining a time range of a target segment in another embodiment of the present disclosure. [Figure 7] FIG. 13 is a schematic diagram for sampling a target segment in another embodiment of the present disclosure. [Figure 8] FIG. 13 is a schematic diagram for determining effective sampling points of a target segment in another embodiment of the present disclosure. [Figure 9] FIG. 13 is a schematic diagram showing a configuration of a color difference measuring device according to another embodiment of the present disclosure. [Figure 10] FIG. 2 is a block diagram of an electronic device for implementing a color difference measurement method according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] The present disclosure will now be described in more detail with reference to the accompanying drawings, in which like numbers represent functionally identical or similar elements, and in which various aspects of the embodiments are illustrated, and which, unless otherwise noted, are not necessarily drawn to scale.

[0015] Furthermore, in order to better explain the present disclosure, many specific details are described in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can be similarly implemented without specific details. In some embodiments, methods, means, components, circuits, etc. that are well known to those skilled in the art are not described in detail so as not to obscure the subject matter of the present disclosure.

[0016] The textile is woven using yarn on a yarn winding package. In the embodiment of the present disclosure, the dyeing result of the yarn on each yarn winding package needs to be detected using a color detection device. Here, in the embodiment of the present disclosure, in order to improve the detection efficiency, the measured textile is woven using a plurality of yarn winding packages, and each yarn winding package has a corresponding textile segment in the measured textile, and has a division between different textile segments. FIG. 1 is a schematic diagram showing the configuration of the measured textile in the embodiment of the present disclosure. In FIG. 1, the measured textile is woven from textile segment 1, textile segment 2, textile segment 3, ... textile segment N, has a division between textile segment 1 and textile segment 2, has a division between textile segment 2 and textile segment 3, and has a division between textile segment N-1 and textile segment N. Therefore, there is a correspondence between each textile segment and each yarn winding package. Specifically, fabric segment 1 corresponds to yarn winding package 1, fabric segment 2 corresponds to yarn winding package 2, fabric segment 3 corresponds to yarn winding package 3, and fabric segment N corresponds to yarn winding package N, where N is a positive integer equal to or greater than 1.

[0017] Here, the widths of the divisions may be the same or different, which allows detection of multiple wound yarn packages using one measured fabric.

[0018] 2 is a schematic diagram showing a configuration of a color detection device according to an embodiment of the present disclosure. Core components of the color detection device include a housing 201, a detection unit 202 located inside the housing, an inlet and an outlet arranged opposite each other along a first direction in the housing, a mounting member 203, and a moving assembly 204.

[0019] Here, the detection unit 202 is for detecting the color of the measured textile. The core components of the detection unit 202 may be composed of a spectrometer or a colorimeter, and the embodiment of the present disclosure is not limited thereto, as long as the color value of the measured textile can be measured. The mounting member 203 is for fitting the measured textile. The moving assembly 204 is connected to the mounting member 203. The moving assembly 204 is for driving the measured textile to move along a first direction relative to the housing 201 so that the measured textile can enter the housing 201 from the inlet and exit the housing 201 from the outlet, thereby allowing the measured textile to pass through the measurement port of the detection unit 202 during the transport process, and enabling color measurement at the sampling point of the measured textile to be realized.

[0020] Thus, the color detector samples a number of sample points on the measured fabric, and when performing this, a sequence of predefined sampling times can be set, which sequence includes a number of time points, e.g. sequence 1<t1、t2…tn> Here, the detection unit performs sampling according to the sequence.

[0021] The embodiment of the present disclosure provides a color difference measurement method because the color value of each wound yarn package needs to be detected. Figure 3 is a flow chart of the color difference measurement method in one embodiment of the present disclosure, which includes:

[0022] In S301, each fabric segment of the measured fabric is sequentially conveyed to the measurement port of the detection unit, and the detection unit collects color values ​​of multiple sampling points on the measured fabric according to a preset sequence of sampling times.

[0023] Here, the detector samples the color value of the measured fabric. Since the color value of one sampling point may be limited, generally, color values ​​of a sufficient number of sampling points are collected. In the embodiment of the present disclosure, the number of sampling points is not limited.

[0024] The preset sampling time points can be determined in various ways, and a plurality of preset sampling time points constitute a sequence of preset sampling time points, but the embodiment of the present disclosure does not limit the method of determining the preset sampling time points. For example, the preset sampling time points can be obtained by direct manual setting. Specifically, when two sampling points are set for each fabric segment, the sequence of sampling time points can be directly manual set as follows:

[0025]

number

[0026] JPEG2025044185000003.jpg144164

[0027] JPEG2025044185000004.jpg62164

[0028] However, during the use of the detection unit, the state of the measured fabric may affect the detection result of the color difference. For example, in the process of fitting the measured fabric to the mounting member, the measured fabric is usually inevitably pulled, and if the pulling tension is uneven, the local width of the measured fabric (i.e., the width along the direction in which the fabric segments are arranged in series) may deviate from the expected width. In this case, when the detection unit samples the measured fabric, the obtained sampling point may be inaccurate, for example, the sampling point may deviate from the part of the measured fabric that needs to be sampled. In this case, the measured color of the measured fabric may differ from the expected color of the measured fabric, which affects the detection result of the color difference of the wound yarn package analyzed based on the measured color of the measured fabric. However, due to the constraints of the hardware equipment conditions, it is usually difficult to completely avoid the measured fabric being pulled. Therefore, if the problem of inaccuracy in sampling by the detection unit can be overcome even when the measured fabric is pulled, the problem of the color difference of the wound yarn package measured by the detection unit may be inaccurate can be effectively solved.

[0029] Therefore, in the process of transporting the measured fabric to the detection unit by the mounting member and the moving assembly for sampling in S302, the time range during which the target segment of the measured fabric passes through the measurement opening of the detection unit can be determined.

[0030] The target segment is any fabric segment of the measured fabric. The time range in which the target segment of the measured fabric passes through the measurement opening of the detector can be understood as the time between the time when the target segment first arrives at the measurement opening of the detector and the time when the target segment leaves the measurement opening of the detector.

[0031] In S303, a valid sampling point of the target segment is selected from the multiple sampling points according to the time range and the sampling time points of the multiple sampling points.

[0032] Here, the multiple sampling points collected in the measured fabric are not necessarily all valid for the target segment. That is, when the sampling time is within the above time range, the corresponding sampling point is a valid sampling point belonging to the target segment. Therefore, when the sampling time is not within the above time range, the corresponding sampling point is an invalid sampling point for the target segment, and these invalid sampling points need to be discarded.

[0033] In S304, a color difference value of the target wound yarn package corresponding to the target segment is determined based on the color values ​​of the valid sampling points and the reference value.

[0034] Here, the reference value can be customized, that is, any color value can be set as the reference value (i.e., expected value) according to actual needs. The color difference value can be obtained from the color value and the reference value.

[0035] In the embodiment of the present disclosure, the time range during which the target segment passes through the measurement opening of the detection unit is compared with the sampling time points of the multiple sampling points to select the valid sampling points of the target segment, thereby obtaining the color values ​​of the valid sampling points, thereby improving the detection accuracy of the color of the measured fabric by the detection unit. Compared with the case where the color difference value of the target wound yarn package corresponding to the target segment is directly determined based on the color values ​​of the multiple sampling points, the determined color difference value based on the color values ​​of the valid sampling points can be more accurate, which is helpful in improving the accuracy of the color difference detection result of the wound yarn package corresponding to the measured fabric.

[0036] In some embodiments, a valid sampling point is a sampling point that does not lie on a division of a target segment.

[0037] Here, since the dividing portion of the target segment may occupy a certain width in the measured fabric, the sampling points for the target segment may also be located at the dividing portion of the target segment, and the portion of the sampling point located at the dividing portion of the target segment should also be discarded, i.e., the valid sampling points do not include the sampling points located at the dividing portion of the target segment.

[0038] In an embodiment of the present disclosure, a difference in color value also exists between the target segment and the divided portion of the target segment, and since the divided portion does not, strictly speaking, correspond to the same winding package as the target segment, by not using the sampling points in the divided portion of the target segment as valid sampling points, it is possible to avoid the color values ​​of the sampling points in the divided portion affecting the color values ​​of the target segment, and to improve the accuracy of the color values ​​and color difference values ​​of the target segment measured based on the valid sampling points.

[0039] In some embodiments, determining the time range during which the target segment of the measured fabric passes through the measurement aperture of the detector can be achieved in two ways:

[0040] Method 1

[0041] In step A1, when the tension fluctuation during the entire transport process of the measured fabric is less than the fluctuation threshold, the time required for the entire process of transporting the measured fabric so that the measured fabric completely passes through the measurement opening is acquired.

[0042] Here, the tension fluctuation during the entire transport process of the measured fabric can be measured by a tension sensor, and the fluctuation threshold is a criterion for measuring the tension fluctuation width. If the tension fluctuation during the entire transport process of the measured fabric is smaller than the fluctuation threshold, i.e., the tension is uniform, it is considered that the width of each fabric segment throughout the measured fabric is the same. The tension fluctuation during the entire transport process of the measured fabric can be controlled by a PID (proportional, integral, derivative) control algorithm.

[0043] In step A2, based on the time required for this entire process, the time required for the delivery of the target segment is determined to obtain a time range.

[0044] Here, when the width of each fabric segment is the same throughout the entire measured fabric, if the total number of fabric segments of the measured fabric is known, the time required for the entire process can be divided by the total number of fabric segments to obtain the transport time required for any fabric segment of the measured fabric, and the transport time required for each fabric segment is the same, and the time required to transport the target segment can be obtained. In the embodiment of the present disclosure, the time required to transport the target segment is set to the time range in which the target segment passes through the measurement port of the detection unit.

[0045] In an embodiment of the present disclosure, when the tension is uniform throughout the entire transport process of the measured fabric, the time range in which the target segment passes through the measurement port of the detection unit can be determined directly based on the total number of fabric segments in the measured fabric and the time required for the entire process of transporting the measured fabric to the measurement port, which helps to improve the efficiency of determining that time range.

[0046] Method 2

[0047] In step B1, when the tension fluctuation during the entire transport process of the measured fabric is greater than the fluctuation threshold, images of the transport process in which the measured fabric is transported to the measurement port of the detection unit are acquired.

[0048] In addition, when the tension fluctuation measured by the tension sensor is larger than the fluctuation threshold, that is, when the tension is non-uniform, the corresponding widths of each fabric segment in the entire measured fabric are usually not the same, and in this case, it is difficult to determine the time range in which the target segment passes through the measurement port of the detection unit by the above-mentioned method 1. Therefore, in the process of transporting the measured fabric to the detection unit and sampling it, images of the transport process of the measured fabric can be simultaneously obtained based on the line scan camera.

[0049] Here, the line scan camera can capture one pixel line of the scanned article by scanning the article with the camera of the line scan camera. The vision processor or image capture card software stores these one pixel line and reconstructs the final two-dimensional image of the scanned article by these one pixel line. Line scan cameras usually have a shorter exposure time than area array scan cameras, and the cost of acquiring images is slightly lower than that of area array cameras, so the image acquisition method using line scan cameras is suitable for collecting high-resolution images of fast moving articles such as fast moving textiles.

[0050] In an embodiment of the present disclosure, since the measured fabric moves within the detection unit and the moving speed is generally relatively fast, a line scan camera can be used to scan one row of pixel lines on the measured fabric in the order in which it passes, thereby constructing an image of the transport process in which the measured fabric is transported to the measurement port of the detection unit.

[0051] 4 is a schematic diagram showing the configuration of a color detection device equipped with a line scan camera 205 according to an embodiment of the present disclosure. As shown in FIG. 4, the line scan camera 205 is disposed inside the color detector housing 201, and scans and samples the measured fabric at the same time and position as the detection unit 202, making it easy to directly compare time points.

[0052] 5 is a schematic diagram showing the configuration of another color detection device including a line scan camera 205 in an embodiment of the present disclosure. As shown in FIG. 5, the line scan camera 205 is disposed outside the color detector housing 201, and can scan the measured fabric to obtain images of the transport process, and the present disclosure does not limit the specific location of the line scan camera. At this time, the time when the line scan camera 205 scans the target position on the measured fabric and the time when the detection unit 202 samples the target position can be matched by calculation, and the two time points can be compared.

[0053] In step B2, image analysis is performed on the images of the transport process to determine the time range during which the target segment passes through the measurement opening of the detection unit.

[0054] In an embodiment of the present disclosure, when the influence of tension fluctuations is large, a line scan camera is used to scan the measured fabric and obtain images of the transport process in which the measured fabric is transported to the measurement port of the detection unit, which is less costly and obtains higher quality images of the transport process than an area array camera, and also makes it easy to determine the time range in which the target segment passes through the measurement port of the detection unit based on the images of the transport process.

[0055] In implementation, image analysis can be achieved in two ways:

[0056] Method 1) Image analysis based on color values ​​of row pixels

[0057] In step C1, the color values ​​of the row pixels of the in-process image are analyzed to identify the divisions of different fabric segments.

[0058] Since the dividing section has a color value and the color value of the fabric segment and the dividing section are different, adjacent fabric segments are separated by the dividing section, and therefore, in the measured fabric, the dividing section between each fabric segment can be identified. For example, taking the measured fabric in FIG. 1 as an example, the color of the dividing section of the actual measured fabric has a large color difference with the surrounding area. Based on this, when it is detected that the color difference between the pixels of the previous row and the pixels of the next row in the measured fabric is larger than the color difference threshold, it can be determined that the pixels of the previous row or the pixels of the next row are the junction between the dividing section and the fabric segment. In this way, the start row and the end row of the dividing section can be determined.

[0059] In step C2, a time range in which the target segment passes through the measurement port of the detection unit is determined based on the scanning time of the divided portion of the target segment.

[0060] Here, the division part may have a certain width in the measured fabric, that is, the division part may be composed of multiple rows of pixels. Therefore, when determining the time range in which the target segment passes through the measurement port based on the scanning time of the division part, the influence of the time range in which the division part is scanned on the time range in which the target segment passes through the measurement port should not be considered. For example, as shown in FIG. 6, a schematic diagram for determining the time range of the target segment. In FIG. 6, the scanning time range of the division part is t1-t2, t3-t4, and at this time, when the time range in which the target segment passes through the measurement port is determined based on the scanning time of the division part, this time range is t2-t3.

[0061] In an embodiment of the present disclosure, by performing image analysis on the color values ​​of row pixels of the image during the conveying process, the division section can be identified based on different color values, and the scanning time of the division section can be used to confirm the time range in which the target segment passes through the measurement port of the detection section, which is helpful in accurately identifying the time range in which the target segment passes through the measurement port of the detection section.

[0062] Method 2) Image analysis using a segmentation recognition network

[0063] In step D1, images of the transportation process are input to a pre-trained segmentation identification network to identify segments of the target segment.

[0064] Here, by adopting a pre-trained segmentation identification network, automatic identification of segmentations in the images of the transportation process can be realized, and the segmentations of the target segment can be identified.

[0065] In step D2, a time range in which the target segment passes through the measurement port of the detection unit is determined based on the scanning time of the divided portion of the target segment.

[0066] In the embodiment of the present disclosure, the image of the conveying process is analyzed through the dividing part identification network, so that the dividing part of the target segment can be automatically identified, which helps to improve the efficiency of identifying the dividing part. The scanning time of the dividing part is used to check the time range in which the target segment passes through the measurement port of the detection part, which helps to accurately identify the time range in which the target segment passes through the measurement port of the detection part.

[0067] The width of each fabric segment in the measured fabric may be different due to tension fluctuations. In this case, when sampling is performed on the target segment, the obtained sampling point may not belong to the target segment. For example, if the sampling point is located at a division or another fabric segment, the color value of the target segment calculated based on the sampling point may be shifted, which may affect the color difference value of the target segment. Therefore, it is necessary to select a valid sampling point that truly belongs to the target segment from among multiple sampling points. For example, in FIG. 7, there is a target segment, a fabric segment 1, and a fabric segment 2. In this case, sampling is required for the target segment, but the sampling point 1 of the target segment is located at the fabric segment 1, the sampling point 2 is located at the division, and the sampling point 5 is located at the fabric segment 2. In this case, the sampling point 3 and the sampling point 4 are the valid sampling points of the target segment. The sampling point 5 is determined as the valid sampling point of the fabric segment 2 after the target segment, and the sampling point 1 is determined as the valid sampling point of the fabric segment 1 before the target segment.

[0068] In some embodiments, valid sampling points for a target segment can be selected from the multiple sampling points based on the time range and the sampling time points of the multiple sampling points, including:

[0069] In step E1, the sampling time of the target segment is determined from a pre-defined sequence of sampling time points.

[0070] In FIG. 7, the time from t1 corresponding to sampling point 1 to t5 corresponding to sampling point 5 is the sampling time of the target segment.

[0071] In step E2, based on the sampling time of the target segment, the sampling points whose sampling time points are within a time range are selected as valid sampling points of the target segment.

[0072] Here, all valid sampling points of a target segment originate from the target segment, i.e., all valid sampling points of a target segment are located in the target segment.

[0073] To better understand how to determine the valid sampling points of a target segment from a sequence of preset sampling time points, the process will be described below with reference to FIG. 8. FIG. 8 is a schematic diagram for determining the valid sampling points of a target segment in an embodiment of the present disclosure. In FIG. 8, the preset sampling time points are 1.07s and 1.11s, but the time range corresponding to the target segment is 1.05s-1.09s, and the preset sampling time point in the range of 1.05s-1.09s is 1.07s, so the sampling point corresponding to 1.07s is the valid sampling point in the target segment.

[0074] In the embodiment of the present disclosure, by selecting valid sampling points of the target segment from among multiple sampling points, it is possible to avoid the sampling points being located on other fabric segments and affecting the calculated color value and color difference value of the target segment, which is helpful in improving the accuracy of the color value and color difference value of the target segment measured based on a color difference meter.

[0075] In some embodiments, when it is necessary to obtain images of the transport process of the measured fabric based on a line scan camera and to sample the measured fabric based on a detection unit to obtain valid sampling locations of the target segment, the system time of the line scan camera and the system time of the detection unit are synchronized to time-align the system time of the line scan camera and the system time of the detection unit, thereby facilitating direct comparison of the sampling time point and the time range of the target segment.

[0076] In some embodiments, calculating the average color value of multiple valid sampling points of the target segment and setting this average as the color value of the target segment helps to realize an average level of the color value of the target segment and can improve the accuracy of determining the color value of the target segment.

[0077] In addition, after selecting sampling points whose sampling time falls within the time range as valid sampling points of the target segment, sampling points whose sampling time belongs to the target segment but that are determined not to be valid sampling points can be collected into a set of points to be processed, and the following operations can be performed on each of the points to be processed in the set.

[0078] In step F1, the row pixel closest to the sampling time point of the location to be processed in the acquisition and collection of row pixels of the image during the transport process is determined.

[0079] In step F2, if the row pixel does not belong to a segment, the fabric segment in which the row pixel is located is determined.

[0080] In step F3, the location to be processed is determined as the valid sampling location of the fabric segment in which the row pixel is located.

[0081] Continuing with the example of FIG. 7, within the sampling time of the target segment, sampling point 1, sampling point 2, and sampling point 5 are outside the time range of the target segment, so they are not valid sampling points of the target segment, and sampling point 1, sampling point 2, and sampling point 5 are collected into a set of points to be processed. For sampling point 1 in the set of points to be processed, the row pixel closest to the sampling time of sampling point 1 belongs to textile segment 1, so sampling point 1 becomes a valid sampling point of textile segment 1. For sampling point 2 in the set of points to be processed, the row pixel closest to the sampling time of sampling point 2 belongs to the division section, so sampling point 2 is an invalid sampling point. For sampling point 5 in the set of points to be processed, the row pixel closest to the sampling time of sampling point 5 belongs to textile segment 2, so sampling point 5 becomes a valid sampling point of textile segment 2.

[0082] In an embodiment of the present disclosure, after selecting valid sampling points of a target segment, other sampling points within the sampling time of the target segment other than the valid sampling points of the target segment are re-determined as points to be processed, and it is determined whether the points to be processed are valid sampling points of other fabric segments, which helps to improve the utilization rate of sampling points.

[0083] Based on the same technical idea, an embodiment of the present disclosure provides a color difference measuring device 900, in which the measured fabric is woven using a plurality of yarn winding packages, and the measured fabric has fabric segments corresponding to each yarn winding package, and there is a partition between different fabric segments. As shown in FIG. 9, the color difference measuring device: a conveying module 901 for conveying each fabric segment of the measured fabric to a measuring port of the detecting unit in sequence so that the detecting unit can collect color values ​​of a plurality of sampling points on the measured fabric according to a sequence of preset sampling times; A first determination module 902 for determining a time range in which a target segment of the measured fabric passes through a measurement opening of the detection unit during a process of transporting the measured fabric to the detection unit for sampling, the target segment being any fabric segment of the measured fabric; a selection module 903 for selecting valid sampling points of the target segment from the multiple sampling points based on a time range and sampling time points of the multiple sampling points; and a second determination module 904 for determining a color difference value of the target wound yarn package corresponding to the target segment based on the color values ​​of the valid sampling points and the reference value.

[0084] In some embodiments, the first determination module comprises: a first acquisition unit for acquiring a time required for the entire process of transporting the measured fabric so that the measured fabric completely passes through the measurement opening when the tension fluctuation during the entire transport process of the measured fabric is less than a fluctuation threshold value; and a first determining unit for determining the time required for transporting the target segment based on the time required for the entire process to obtain a time range.

[0085] In some embodiments, the first determination module comprises: a second acquisition unit for acquiring images of the transport process of transporting the measured fabric to the measurement port of the detection unit when the tension fluctuation during the entire transport process of the measured fabric is greater than a fluctuation threshold value, the second acquisition unit acquiring images of the transport process based on a line scan camera during the process of transporting the measured fabric to the detection unit and sampling it; and an analysis unit for performing image analysis on the images of the transport process to determine the time range during which the target segment passes through the measurement opening of the detection unit.

[0086] In some embodiments, the analysis unit specifically: analyzing color values ​​of row pixels of the in-process image to identify divisions of different fabric segments; and determining a time range in which the target segment passes through the measurement opening of the detection unit based on the scanning time of the divided portion of the target segment.

[0087] In some embodiments, the analysis unit specifically: inputting the images of the transportation process into a pre-trained segmentation identification network to identify segments of the target segment; and determining a time range in which the target segment passes through the measurement opening of the detection unit based on the scanning time of the divided portion of the target segment.

[0088] In some embodiments, the sorting module comprises: a second determination unit for determining a sampling time of the target segment from a sequence of preset sampling instants; A selection unit is provided for selecting sampling points whose sampling time points are in a time range based on the sampling time of the target segment as valid sampling points of the target segment.

[0089] In some embodiments, the sorting unit specifically: The sampling points that are determined to be not valid sampling points even though the sampling time belongs to the target segment are collected into a set of points to be processed, and for each of the points to be processed in the set, determining the row pixels of the image during the transport process that are collected at the time points closest to the sampling time points of the portion to be processed, and acquiring the image during the transport process based on a line scan camera during the process of transporting the measured fabric to the detection unit and sampling the fabric; determining the fabric segment in which the row pixel is located if the row pixel does not belong to a partition; determining the location to be processed as the valid sampling location of the fabric segment in which the row pixel is located.

[0090] In some embodiments, a valid sampling point is a sampling point that does not lie within a division of a target segment.

[0091] The specific functions and exemplary descriptions of each module and sub-module of the apparatus according to the embodiments of the present disclosure may refer to the relevant descriptions of the corresponding steps in the above-mentioned method embodiments, and will not be repeated here.

[0092] In the technical solution disclosed herein, the acquisition, storage, and application of users' personal information complies with the provisions of relevant laws and regulations and does not violate public order and morals.

[0093] FIG. 10 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 10, the electronic device includes a memory 1010 and a processor 1020, and the memory 1010 stores a computer program executable by the processor 1020. The number of the memory 1010 and the processor 1020 may be one or more. The memory 1010 may store one or more computer programs, which, when executed by the electronic device, cause the electronic device to perform the method provided by the above method embodiment. The electronic device may further include: A communication interface 1030 is used to communicate with an external device and perform data interaction and transmission.

[0094] When the memory 1010, the processor 1020, and the communication interface 1030 are implemented independently, the memory 1010, the processor 1020, and the communication interface 1030 are connected to each other via a bus and can communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be classified into an address bus, a data bus, a control bus, etc. For ease of explanation, only one thick line is shown in FIG. 10, but this does not indicate only one bus or only one type of bus.

[0095] Optionally, in a specific implementation, when the memory 1010, the processor 1020, and the communication interface 1030 are integrated on one chip, the memory 1010, the processor 1020, and the communication interface 1030 can communicate with each other via an internal interface.

[0096] It should be understood that the processor may be a Central Processing Unit (CPU) or may be other general purpose processors, Digital Signal Processing (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware assemblies, etc. The general purpose processor may be a microprocessor or any conventional processor, etc. Additionally, the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.

[0097] Additionally, optionally, the memory may include read-only memory and random access memory, and may further include non-volatile random access memory. The memory may be either volatile or non-volatile memory, or may include both volatile and non-volatile memory. Here, non-volatile memory may include Read-Only Memory (ROM), Programmable ROM (PROM), Erasable PROM (EPROM), Electrically EPROM (EEPROM), or flash memory. Volatile memory may include Random Access Memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available. For example, static random access memory (Static RAM, SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (Enhanced SDRAM, ESDRAM), synchlink DRAM (Synchlink DRAM, SLDRAM), and direct RAMBUS RAM (DR RAM).

[0098] The above-mentioned embodiments may be implemented in whole or in part in software, hardware, firmware, or any combination thereof. When implemented in software, the whole or in part may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, a process or function according to the embodiments of the present disclosure is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, Bluetooth, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device including a server, a data center, etc. integrated with one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a Digital Versatile Disc (DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)). Note that the computer-readable storage medium referred to in this disclosure may be a non-volatile storage medium, in other words, a non-transitory storage medium.

[0099] Those skilled in the art can understand that all or part of the steps for realizing the above embodiments may be implemented by hardware, or may be implemented by instructing relevant hardware by a program, and the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.

[0100] In describing the embodiments of the present disclosure, the reference words "one embodiment", "several embodiments", "examples", "particular examples", or "several examples" mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. And, the specific features, structures, materials, or characteristics described can be combined in any suitable manner in any one or more embodiments or examples. Furthermore, a person skilled in the art may combine different embodiments or examples and features of different embodiments or examples described in the present disclosure to the extent that they are not mutually inconsistent.

[0101] In the description of the embodiments of the present disclosure, unless otherwise stated, " / " means "or", for example, A / B can mean either A or B. "And / or" in the present disclosure is only for describing the related relationship of related objects, and indicates that three types of relationships may exist, for example, A and / or B can indicate the following three types of situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0102] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying a relative importance, nor should they be construed as implying a number of technical features shown. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present disclosure, "plurality" means two or more, unless otherwise specified.

[0103] The above are merely illustrative examples of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure should be included within the scope of protection of the present disclosure.

Claims

1. A color difference measurement method, comprising: The measured fabric is woven using a plurality of yarn winding packages, and has fabric segments corresponding to the respective yarn winding packages in the measured fabric, and has divisions between different fabric segments; The color difference measuring method includes: Sequentially conveying each fabric segment of the measured fabric to a measurement port of a detection unit, and the detection unit collecting color values ​​of a plurality of sampling points on the measured fabric according to a predetermined sequence of sampling points; determining a time range during which a target segment of the measured fabric passes through a measurement opening of the detection unit during a process of transporting the measured fabric to the detection unit and sampling the fabric, the target segment being any one of the fabric segments of the measured fabric; selecting valid sampling points for the target segment from among the plurality of sampling points based on the time range and sampling time points of the plurality of sampling points; determining a color difference value of a target wound yarn package corresponding to the target segment based on the color values ​​of the valid sampling points and a reference value. Color difference measurement method.

2. Determining a time range during which the target segment of the measured fabric passes through the measurement opening of the detection unit includes: When the tension fluctuation during the entire transport process of the measured fabric is less than the fluctuation threshold, acquiring the time required for the entire process of transporting the measured fabric so that the measured fabric completely passes through the measurement opening; determining a time required to deliver the target segment based on the time required for the entire process to obtain the time range; The color difference measuring method according to claim 1 .

3. Determining a time range during which the target segment of the measured fabric passes through the measurement opening of the detection unit includes: When the tension fluctuation during the entire transport process of the measured fabric is greater than a fluctuation threshold, an image of the transport process of the measured fabric being transported to the measurement port of the detection unit is acquired, and during the process of transporting the measured fabric to the detection unit and sampling the fabric, the image of the transport process is acquired based on a line scan camera; and performing image analysis on the image of the transport process to determine a time range during which the target segment passes through a measurement opening of the detection unit. The color difference measuring method according to claim 1 .

4. performing image analysis on the image of the transport process to determine a time range in which the target segment passes through the measurement opening of the detection unit; analyzing color values ​​of row pixels of the process image to identify divisions of different fabric segments; determining a time range in which the target segment passes through a measurement port of the detection unit based on a scanning time of the divided portion of the target segment; The color difference measuring method according to claim 3.

5. performing image analysis on the image of the transport process to determine a time range in which the target segment passes through the measurement opening of the detection unit; inputting images of the transport process into a pre-trained segmentation identification network to identify segments of the target segment; determining a time range in which the target segment passes through a measurement port of the detection unit based on a scanning time of the divided portion of the target segment; The color difference measuring method according to claim 3.

6. Selecting valid sampling points of the target segment from among the plurality of sampling points based on the time range and sampling time points of the plurality of sampling points includes: determining a sampling time for the target segment from the sequence of predetermined sampling times; and selecting sampling points whose sampling time points are within the time range as valid sampling points of the target segment based on a sampling time of the target segment. The color difference measuring method according to claim 1 .

7. After selecting the sampling points whose sampling time points are in the time range as valid sampling points of the target segment, the color difference measurement method includes: Collecting the sampling points that are determined to be not valid sampling points even though the sampling time belongs to the target segment into a set of points to be processed, and for each of the points to be processed in the set, determining a row pixel whose collection time of the row pixel of the image during the transport process is closest to the sampling time of the portion to be processed, and acquiring the image during the transport process based on a line scan camera during the process of transporting the measured fabric to the detection unit and sampling the fabric; determining the fabric segment in which said row pixel is located if said row pixel does not belong to said partition; determining said location to be processed as a valid sampling location of the fabric segment in which said row pixel is located; The color difference measuring method according to claim 6.

8. The valid sampling points are sampling points that are not located in a division portion of the target segment. The color difference measuring method according to claim 1 .

9. A color difference measuring device, comprising: The measured fabric is woven using a plurality of yarn winding packages, and has fabric segments corresponding to the respective yarn winding packages in the measured fabric, and has divisions between different fabric segments; The color difference measuring device is a transport module for transporting each fabric segment of the measured fabric to a measurement port of the detection unit in sequence so that the detection unit can collect color values ​​of a plurality of sampling points on the measured fabric according to a sequence of preset sampling times; a first determination module for determining a time range in which a target segment of the measured fabric passes through a measurement opening of the detection unit during a process of transporting the measured fabric to the detection unit and sampling the fabric, the target segment being any one of the fabric segments of the measured fabric; a selection module for selecting valid sampling points of the target segment from among the plurality of sampling points based on the time range and sampling time points of the plurality of sampling points; and a second determination module for determining a color difference value of a target wound yarn package corresponding to the target segment based on the color values ​​of the valid sampling points and a reference value. Color difference measuring device.

10. At least one processor; a memory in communication with the at least one processor; The memory stores instructions executable by the at least one processor, the instructions, when executed by the at least one processor, causing the at least one processor to perform a color difference measurement method according to any one of claims 1 to 8. Electronic devices.

11. A non-transitory computer readable storage medium for storing instructions that cause a computer to carry out the color difference measurement method according to any one of claims 1 to 8.

12. A program for implementing the color difference measuring method according to any one of claims 1 to 8 when executed by a processor in a computer.

Citation Information

Patent Citations

  • Textile color identification method and system

    CN105787508A

  • Fabric color difference detection device

    CN217819970U

  • Cotton yarn printing and dyeing color difference detection device

    CN217980550U

  • A method of continuous measurement of colouring of textile surfaces and a measuring machine for carrying out the method

    EP3035035A1

  • Henshokujobutsuno jidoshikisasokuteihoho oyobi sonosochi

    JP1976099088A