Yarn color determination method and device
By calculating the color difference between the yarn and the fabric color and adjusting it, the problem of changes in the yarn color during the processing process is solved, and the accurate control of the fabric color and the improvement of production efficiency are achieved.
Patent Information
- Application Number
- CN202411865881.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-11
AI Technical Summary
In the textile industry, yarn color is prone to uncontrollable changes during processing, resulting in deviations from the expected targets in the final fabric color, and it is difficult for the prior art to accurately predict these changes.
By taking the current yarn color and the current fabric color, calculate the color difference between them, and adjust the yarn color according to the target color to ensure that the final fabric color is consistent with the target color.
The final color of the fabric is predicted during the yarn stage and the yarn color formula is adjusted according to the color change rules, reducing rework and waste, improving production efficiency and color consistency.
Smart Images

Figure CN119808551A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of weaving and textile design, and in particular to a method and a device for determining the color of a yarn. Background Art
[0002] In the textile industry, color control and matching is a complex and important process. Designers usually select the corresponding yarn according to the expected fabric color, but due to the multiple processes (such as yarn weaving, refining, cleaning, etc.) during the processing, the yarn color and fabric color change uncontrollably during the production process, and the final fabric color often deviates from the expected target. Even the color of knitted fabrics and woven fabrics made of the same yarn may differ.
[0003] Currently, manufacturers rarely consider the impact of the production process on the final color of the fabric, and existing technical means are difficult to accurately predict these changes. Even adjustments based on experience are unstable, resulting in the inability to effectively ensure that the final fabric color accurately achieves the target color.
[0004] Existing color matching methods mainly rely on experience or simple color difference measurement, which cannot effectively solve the problem of color deviation in the fabric production process. Traditional methods compare the color difference between yarn and fabric, but. Therefore, how to foresee the final color of the fabric at the yarn stage and adjust the color formula of the yarn according to the law of color change has become a technical problem that needs to be solved in the textile production process. Summary of the invention
[0005] In order to solve the problem that there is a difference between the color of a fabric made from yarn and the target color in the above-mentioned prior art, the purpose of the present invention is to provide a method and device for determining the color of yarn, which can adjust the color of the yarn according to the law of color change so that the color of the processed fabric is consistent with the target color.
[0006] To achieve the above-mentioned object of the invention, one embodiment of the present invention provides a method for determining the color of a yarn, comprising the following steps:
[0007] Acquiring a color of a current yarn, wherein the current yarn is determined according to a target color of a target fabric;
[0008] Acquiring a color of a current fabric, wherein the current fabric is obtained by weaving the current yarn;
[0009] Calculating a current color difference between the color of the current yarn and the color of the current fabric;
[0010] The color of the target yarn is determined according to the current color difference and the target color.
[0011] As a further improvement of the present invention, the steps are also included:
[0012] Converting the color of the current yarn, the color of the current fabric, and the target color into coordinates in a color space;
[0013] The calculating the current color difference between the color of the current yarn and the color of the current fabric comprises:
[0014] Calculating the coordinate difference between the color coordinate of the current yarn and the color coordinate of the current fabric;
[0015] Determining the color of the target yarn according to the current color difference and the target color includes:
[0016] The color coordinates of the target yarn are determined according to the coordinate difference and the target color coordinates.
[0017] As a further improvement of the present invention, the color space is a space established based on the Lab color model or the LCH color model.
[0018] As a further improvement of the present invention, the steps are also included:
[0019] Adjusting the color space, setting the coordinates of the target color as the origin of the color space;
[0020] Based on the adjusted color space, the color of the current yarn and the color coordinates of the current fabric are determined.
[0021] As a further improvement of the present invention, the steps are also included:
[0022] Determining the color of the current yarn according to the target color, wherein the color difference between the color of the current yarn and the target color is within a first color difference range;
[0023] Determining a current color powder formula of the current yarn according to the color of the current yarn, wherein the current color powder formula is determined according to a reflectivity curve corresponding to the color of the current yarn;
[0024] The method of obtaining the color of the current yarn includes:
[0025] Obtaining the color of the current yarn produced based on the current color powder formula;
[0026] The method for determining the yarn color also includes the steps of:
[0027] According to the color of the target yarn, an updated toner formula of the target yarn is determined, wherein the updated toner formula is determined according to a reflectivity curve corresponding to the color of the target yarn.
[0028] As a further improvement of the present invention, the steps are also included:
[0029] Obtaining the color of a renewed fabric, wherein the renewed fabric is obtained by weaving a yarn produced based on the renewed color powder formula;
[0030] calculating an updated color difference between the color of the target yarn and the color of the updated fabric;
[0031] Determining whether the updated color difference is within a second color difference range;
[0032] If yes, the updated toner formula is the target toner formula;
[0033] If not, the updated color difference is replaced by a new current color difference, and a new color of the target yarn is determined based on the updated current color difference and the target color.
[0034] As a further improvement of the present invention, the steps are also included:
[0035] Get the observation angle and set the light source;
[0036] Under the set light source and the observation angle, the color of the current yarn and the color of the current fabric are detected.
[0037] As a further improvement of the present invention, the steps are also included:
[0038] Recording the color of the current yarn after each process in the weaving process;
[0039] The yarn properties of the current yarn, each process, and the color corresponding to each process are recorded in the process color database, wherein the yarn properties include at least one of color, color powder formula, material, etc.
[0040] As a further improvement of the present invention, the steps are also included:
[0041] Defining a forward function of a color prediction neural network model, the forward function is used to determine the color change during the weaving process, and the trainable parameters of the color prediction neural network model include the color after each process;
[0042] Using the process color database to train the color prediction neural network model;
[0043] The method of obtaining the color of the current fabric includes:
[0044] The color of the current fabric is determined according to the trained color prediction neural network model.
[0045] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention provides a device for determining the color of a yarn, comprising:
[0046] A first acquisition module is used to acquire the color of the current yarn, wherein the current yarn is determined according to the target color of the target fabric;
[0047] A second acquisition module is used to acquire the color of a current fabric, wherein the current fabric is obtained by weaving the current yarn;
[0048] a calculation module, for calculating a current color difference between the color of the current yarn and the color of the current fabric;
[0049] The determination module is used to determine the color of the target yarn according to the current color difference and the target color.
[0050] Compared with the prior art, the present invention has the following beneficial effects: the method for determining the yarn color obtains the current yarn color and the current fabric color and calculates the color difference between them. This difference reflects the change process of the yarn color of the current yarn in the textile process, so that the yarn color required for the target color can be inferred based on the difference, and this color can ensure that the color of the final fabric is consistent with the target color. By quantifying the color difference and making adjustments, the rework and waste problems in subsequent production are reduced, the production efficiency is improved, the cost is reduced, the problem of color change from yarn to fabric during the processing process is solved, and finally a fabric consistent with the target color required by the designer is obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 is a flow chart of a method for determining a current yarn according to an embodiment of the present invention;
[0052] Figure 2 is a flow chart of a method for determining yarn color according to an embodiment of the present invention;
[0053] Figure 3 is a schematic diagram of a principle for determining yarn color according to an embodiment of the present invention;
[0054] Figure 4 is a flow chart of a method for determining yarn color according to another embodiment of the present invention;
[0055] Figure 5 1 is a schematic diagram of a module of a device for determining yarn color according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.
[0057] An embodiment of the present invention provides a method and device for determining the color of a yarn. The method can adjust the color of the yarn according to the law of color change so that the color of the processed fabric is consistent with the target color.
[0058] In this embodiment, yarn is the basic unit of textile, which refers to a collection of filaments or short fibers formed by twisting natural fibers or chemical fibers; fabric can be a woven fabric or a knitted fabric, and a woven fabric is a flat fabric formed by warp yarn and weft yarn according to a certain interweaving rule; a knitted fabric is woven by forming a coil structure through yarn.
[0059] Yarn can be produced from colored masterbatches. By adding different color formulas to the masterbatches, masterbatches of different colors can be prepared. In the subsequent processes, such as fabric manufacturing, refining (such as degumming, degreasing, impurity removal, etc.), finishing (such as improving wrinkle resistance, softness, wear resistance, etc.), and post-finishing (such as soft finishing, coating treatment, anti-ultraviolet treatment, etc.), no subsequent dyeing process is required in the process of obtaining fabrics, that is, a direct connection from the color of the masterbatch or the color of the yarn to the color of the fabric is established. For example, when a user needs green fabric, the green masterbatch color powder formula is prepared, and the masterbatch is mixed with the base fiber during the spinning process to prepare green yarn, and after weaving production, green woven fabrics, knitted fabrics or other types of textiles are obtained.
[0060] In addition, the yarn may also be various types of existing finished products, which have been dyed in the early stage to obtain yarns of various materials and colors.
[0061] The yarn corresponding to each color may have yarn properties of the corresponding yarn, such as color, color powder formula, material, color fastness, price, light source adaptability and observation angle consistency.
[0062] First, before running the yarn color determination method, such as Figure 1 As shown, you can run the following steps:
[0063] Step S11: determining the color of the current yarn according to the target color, wherein the color difference between the color of the current yarn and the target color is within a first color difference range;
[0064] Step S12: determining a current color powder formula of the current yarn according to the color of the current yarn, wherein the current color powder formula is determined according to a reflectivity curve corresponding to the color of the current yarn.
[0065] According to the current yarn determined by the target color, by limiting the color difference within the first color difference range, it is ensured that the color of the initial yarn is roughly close to the target color of the fabric, that is, the fabric will not be produced by yarns of other colors that are very different and completely unrelated. Here, the color matching software can be used to determine the color powder formula of the yarn. The color matching software predicts the color effect by simulating the reflectivity and adjusts the color powder formula on this basis. Based on the current color powder formula, the corresponding masterbatch can be produced to produce the corresponding yarn; or the yarn can be dyed with a dye of the corresponding formula to obtain the yarn of the corresponding color; or the yarn information of the finished yarn carries the color powder formula information, and the yarn consistent with the current color powder formula composition and proportion is determined according to the color powder formula information.
[0066] Through steps S11 to S12, the initial yarn obtained is the current yarn. Then, the color is measured by a spectrophotometer to obtain the color under a specific light source, such as the LabCH value, where the L value represents the brightness of the color, a and b represent the chromaticity of the color, C represents the chromaticity, and H represents the hue, where a (red-green axis) and b (yellow-blue axis).
[0067] Other colors below, such as the color of the current fabric, the color after each process, can also be measured by spectrophotometer.
[0068] Combine the following Figures 2 to 4 , illustrating a color-based textile determination method provided by an embodiment of the present invention. Although the present application provides method operation steps as shown in the following implementation manner or flow chart, based on routine or no creative labor, in the steps of the method where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the implementation manner of the present application.
[0069] A method for determining the color of a yarn in this embodiment is as follows: Figure 2 As shown, the following steps are included:
[0070] Step S20: Acquire the color of the current yarn, wherein the current yarn is determined according to the target color of the target fabric.
[0071] Step S30: obtaining the color of the current fabric, wherein the current fabric is obtained by weaving the current yarn.
[0072] Step S40: Calculating the current color difference between the color of the current yarn and the color of the current fabric.
[0073] Step S50: determining the color of the target yarn according to the current color difference and the target color.
[0074] Usually, the target color of the target fabric is the color required by the designer or customer. The target color reflects the designer's expectation of the appearance of the entire fabric. The current yarn is a yarn of the same or similar color selected according to the target color. In the prior art, it generally stays at the above steps S11-S12, that is, the yarn with a color close to the target color of the target fabric is selected, while this embodiment focuses on the influence of the processing steps during the fabric production process and the color difference between the yarn color and the final fabric color. This embodiment calculates the color difference between the current yarn color and the current fabric color by obtaining the current yarn color and the current fabric color. This difference reflects the change in the yarn color during the textile process (such as weaving, refining, cleaning, etc.). In this way, it is possible to clearly know how the yarn color is affected by the processing steps, so as to understand the relationship between the yarn color and the final fabric color, and ensure that the final fabric can reach the color expected by the designer. This process eliminates the manual experience adjustment in the production process, provides a more accurate formula adjustment result, reduces the multiple trial and error processes caused by color inconsistency, thereby improving production efficiency and reducing costs, while ensuring the color consistency between each production batch, and avoiding color difference fluctuations caused by improper yarn selection or inaccurate color difference compensation.
[0075] In addition, since the color of the current yarn is generally relatively close to the target color of the target fabric, the color powder formula of the current yarn is generally not too different from the color powder formula of the target yarn color determined in step S50, that is, similar color powder formulas undergo the same processing steps and become the same type of fabric, and the color change process is basically the same. Therefore, in general, the color of the target yarn corresponding to the target fabric can be inferred from the current color difference between the color of the current yarn and the color of the current fabric.
[0076] Furthermore, the method for determining the yarn color of this embodiment also includes the steps of:
[0077] The color of the current yarn, the color of the current fabric, and the target color are converted into coordinates in a color space.
[0078] Step S40 further includes:
[0079] The coordinate difference between the color coordinate of the current yarn and the color coordinate of the current fabric is calculated.
[0080] Step S50 further includes:
[0081] The color coordinates of the target yarn are determined according to the coordinate difference and the target color coordinates.
[0082] like Figure 3 As shown, this embodiment adjusts the color formula by using the color coordinate difference, and in particular, uses the coordinate difference in the color space to infer the color of the target yarn.
[0083] First, the colors of the current yarn and the current fabric need to be converted into coordinates in the color space. The most common color space is the Lab color space (or LCH). The definition of LabCH is as described above, where the Lab color model is a color space proposed by the International Commission on Illumination (CIE), and the LCH color model is a three-dimensional color space derived from the Lab model.
[0084] In this way, the difference between the current yarn color (L1, a1, b1) and the current fabric color (L2, a2, b2) can be represented by the coordinate difference Δ. For example, the coordinate difference can be represented as (ΔL, Δa, Δb), where ΔL = L2-L1, Δa = a2-a1, Δb = b2-b1. This difference represents how the color of the yarn changes during the yarn-to-fabric manufacturing process.
[0085] The coordinates of the target color are (L0, a0, b0). By subtracting the current color difference (ΔL, Δa, Δb), the color coordinates of the target yarn can be calculated:
[0086] Color coordinates of target yarn = (L0, a0, b0) - (ΔL, Δa, Δb).
[0087] In this embodiment, the color coordinates of the target yarn are equal to the coordinates of the target fabric color minus the difference between the current fabric color and the yarn color, so as to infer which yarn is used to produce the fabric color, which can ultimately be closer to or reach the expected target color.
[0088] Furthermore, the method for determining the yarn color of this embodiment also includes the steps of:
[0089] Adjusting the color space, setting the coordinates of the target color as the origin of the color space;
[0090] Based on the adjusted color space, the color of the current yarn and the color coordinates of the current fabric are determined.
[0091] This embodiment translates the standard coordinate system in the color space so that the target color is used as the new origin. Under this adjustment, the target color becomes the reference point for calculation, and the color difference calculation is performed around this reference point, avoiding complex coordinate transformations and redundant calculation steps, and improving the accuracy and simplicity of color compensation and difference calculation.
[0092] by Figure 3For example, the coordinate system can be a Lab coordinate system or a LCH coordinate system. The origin in the figure, that is, point O is the target color, point A is the current yarn color, point D is the current fabric color, and points BC are the colors obtained after each intermediate process, such as grey cloth weaving, refining, and cleaning. The color of the target yarn finally determined in this embodiment is point E. The yarn at point E can reach point O after the processing steps, points F and G.
[0093] The above implementation is based on the addition and subtraction of coordinates in the color space of the rectangular coordinate system. In other implementations, the spatial operation rules of the polar coordinate system can be used, or other color difference formulas can be used to find the color change relationship, thereby inferring the color of the yarn.
[0094] In the above, the final color of the target yarn is obtained mainly based on a single adjustment of the current color difference. However, in some cases, this process may be continued twice or more. For example, when some colors are similar but the color powder formulas may be very different, the following method may be used for improvement.
[0095] like Figure 4 As shown, the method for determining the yarn color of this embodiment also includes the steps of:
[0096] Step S60: determining an updated color powder formula of the target yarn according to the color of the target yarn, wherein the updated color powder formula is determined according to a reflectivity curve corresponding to the color of the target yarn.
[0097] Step S70: obtaining the color of the updated fabric, wherein the updated fabric is obtained by weaving yarn produced based on the updated color powder formula.
[0098] Step S80: Calculating the updated color difference between the color of the target yarn and the color of the updated fabric.
[0099] Step S90: determining whether the updated color difference is within a second color difference range.
[0100] Step S91: If yes, the updated toner formula is the target toner formula.
[0101] Step S92: If not, replace the updated color difference with the new current color difference, and then return to the above step S50.
[0102] The above steps gradually optimize and adjust the color powder formula through an iterative process. Since the color powder formula is calculated by color matching software, in some cases, the formula of similar colors may have a large difference in proportion, or the composition of the formula is different. When the color powder formulas of different compositions undergo the same process, the color changes may be inconsistent. Therefore, when it is determined in step S90 that the updated color difference is not within the second color difference range, the new color difference is calculated and the above step S50 is re-run. In this way, even if the color powder formula of the first and second colors is very different and the ideal result cannot be obtained, the color powder formula of the third and second colors is closer and the ideal result can be obtained. In this way, by gradually approaching the target color, reducing the impact of the initial formula deviation, and comparing the color changes in different processing stages, the color powder formula is optimized to ensure that the final fabric color accurately reaches the target color.
[0103] Furthermore, the method for determining the yarn color of this embodiment also includes the steps of:
[0104] Get the observation angle and set the light source;
[0105] Under the set light source and the observation angle, the color of the current yarn and the color of the current fabric are detected.
[0106] Colors may appear different under different light sources. Therefore, setting a uniform light source and observation angle, or producing according to the user-specified observation angle and set light source, can improve color accuracy and keep color measurement results consistent in different environments, thereby ensuring the comparability of color data and the reliability of the color adjustment process, thereby providing a more accurate basis for subsequent yarn adjustments and ultimately achieving the expected target color of the fabric.
[0107] In addition, the method for determining the yarn color of this embodiment also includes the steps of:
[0108] Recording the color of the current yarn after each process in the weaving process;
[0109] The yarn properties of the current yarn, each process, and the color corresponding to each process are recorded in the process color database, wherein the yarn properties include at least one of color, color powder formula, material, etc.
[0110] This embodiment establishes a process color database to record the color changes after each process. This database contains the color data of the yarn after each process, as well as related fabric properties, such as the color after being made into grey cloth, the color after refining, the color after weaving, etc. When a certain yarn passes through each process, the database will record the changes in the color of the yarn, and the color changes and other conditions (such as color powder formula, fabric material) of each process are recorded in detail.
[0111] The perfect data record not only facilitates production personnel to trace back the cause of color changes, but also provides a reference for subsequent color adjustments. At the same time, the record improves production transparency, reduces problems caused by color instability, and can predict possible color changes based on similar conditions.
[0112] The color obtained above, such as the color of the current fabric, is obtained by manual detection. In other embodiments below, the method for determining the color of the yarn further includes the steps of:
[0113] Defining a forward function of a color prediction neural network model, the forward function is used to determine the color change during the weaving process, and the trainable parameters of the color prediction neural network model include the color after each process;
[0114] The color prediction neural network model is trained using the process color database.
[0115] The method of obtaining the color of the current fabric also includes:
[0116] The color of the current fabric is determined according to the trained color prediction neural network model.
[0117] This embodiment uses a neural network model to predict the color change of the yarn during the entire processing process based on the accumulated data, without the need for repeated physical production and testing. The color prediction neural network model learns the color change rules of each process based on the accumulated process color database.
[0118] During the training process, the color prediction neural network model will identify the correlation between different processes based on the fabric properties recorded in the database and the color change data after each process. The color prediction neural network model adjusts the trainable parameters of the color prediction neural network model so that it can accurately predict the color changes after each process. After training, this model can be used to predict the color changes of new yarns or fabrics under similar processes, thereby automatically predicting the final color after multiple processes without actual production. Compared with traditional manual color measurement, the prediction of the color prediction neural network model can obtain the color of the current fabric faster.
[0119] Compared with the prior art, this embodiment has the following beneficial effects:
[0120] The yarn color determination method obtains the current yarn color and the current fabric color and calculates the color difference between them. This difference reflects the change process of the yarn color of the current yarn in the textile process, so that the yarn color required for the target color can be inferred based on the difference. This color can ensure that the color of the final fabric matches the target color. By quantifying the color difference and making adjustments, the rework and waste problems in subsequent production are reduced, production efficiency is improved, costs are reduced, and the problem of color change from yarn to fabric during the processing process is solved, and finally a fabric consistent with the target color required by the designer is obtained.
[0121] In one embodiment, a device for determining the color of a yarn is provided, such as Figure 5 The yarn color determination device includes modules, and the specific functions of each module are as follows:
[0122] A first acquisition module is used to acquire the color of the current yarn, wherein the current yarn is determined according to the target color of the target fabric;
[0123] A second acquisition module is used to acquire the color of a current fabric, wherein the current fabric is obtained by weaving the current yarn;
[0124] a calculation module, for calculating a current color difference between the color of the current yarn and the color of the current fabric;
[0125] The determination module is used to determine the color of the target yarn according to the current color difference and the target color.
[0126] It should be noted that for details not disclosed in the device for determining the yarn color of the embodiment of the present invention, please refer to the details disclosed in the method for determining the yarn color of the embodiment of the present invention.
[0127] Those skilled in the art will appreciate that the module schematic diagram is merely an example of a device for determining yarn color, and does not constitute a limitation on the terminal device of the device for determining yarn color. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the device for determining yarn color may also include input and output devices, network access devices, buses, etc.
[0128] The yarn color determination device may also include computing devices such as computers, notebooks, PDAs, and cloud servers, as well as including but not limited to a processing module, a storage module, and a computer program stored in the storage module and executable on the processing module, such as the above-mentioned yarn color determination method program. When the processing module executes the computer program, the steps in the above-mentioned yarn color determination method embodiments are implemented, such as Figure 1 , 2 , steps shown in 4.
[0129] It should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation mode may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
[0130] The series of detailed descriptions listed above are only specific descriptions of feasible implementation methods of the present invention. They are not intended to limit the scope of protection of the present invention. Any equivalent implementation methods or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for determining yarn color, characterized in that: The steps include: Acquiring a color of a current yarn, wherein the current yarn is determined according to a target color of a target fabric; Acquiring a color of a current fabric, wherein the current fabric is obtained by weaving the current yarn; Calculating a current color difference between the color of the current yarn and the color of the current fabric; The color of the target yarn is determined according to the current color difference and the target color.
2. The method for determining the color of yarn according to claim 1, characterized in that: Also includes the steps: Converting the color of the current yarn, the color of the current fabric, and the target color into coordinates in a color space; The calculating the current color difference between the color of the current yarn and the color of the current fabric comprises: Calculating the coordinate difference between the color coordinate of the current yarn and the color coordinate of the current fabric; Determining the color of the target yarn according to the current color difference and the target color includes: The color coordinates of the target yarn are determined according to the coordinate difference and the target color coordinates.
3. The method for determining the color of yarn according to claim 2, characterized in that: The color space is a space established based on the Lab color model or the LCH color model.
4. The method for determining the color of yarn according to claim 3, characterized in that: Also includes the steps: Adjusting the color space, setting the coordinates of the target color as the origin of the color space; Based on the adjusted color space, the color of the current yarn and the color coordinates of the current fabric are determined.
5. The method for determining the color of yarn according to claim 1, characterized in that: Also includes the steps: Determining the color of the current yarn according to the target color, wherein the color difference between the color of the current yarn and the target color is within a first color difference range; Determining a current color powder formula of the current yarn according to the color of the current yarn, wherein the current color powder formula is determined according to a reflectivity curve corresponding to the color of the current yarn; The method of obtaining the color of the current yarn includes: Obtaining the color of the current yarn produced based on the current color powder formula; The method for determining the yarn color also includes the steps of: According to the color of the target yarn, an updated toner formula of the target yarn is determined, wherein the updated toner formula is determined according to a reflectivity curve corresponding to the color of the target yarn.
6. The method for determining the color of yarn according to claim 5, characterized in that: Also includes the steps: Obtaining the color of a renewed fabric, wherein the renewed fabric is obtained by weaving a yarn produced based on the renewed color powder formula; calculating an updated color difference between the color of the target yarn and the color of the updated fabric; Determining whether the updated color difference is within a second color difference range; If yes, the updated toner formula is the target toner formula; If not, the updated color difference is replaced by a new current color difference, and a new color of the target yarn is determined based on the updated current color difference and the target color.
7. The method for determining the color of yarn according to claim 1, characterized in that: Also includes the steps: Get the observation angle and set the light source; Under the set light source and the observation angle, the color of the current yarn and the color of the current fabric are detected.
8. The method for determining the color of yarn according to claim 1, characterized in that: Also includes the steps: Recording the color of the current yarn after each process in the weaving process; The yarn properties of the current yarn, each process, and the color corresponding to each process are recorded in the process color database, wherein the yarn properties include at least one of color, color powder formula, material, etc.
9. The method for determining the color of yarn according to claim 8, characterized in that: Also includes the steps: Defining a forward function of a color prediction neural network model, the forward function is used to determine the color change during the weaving process, and the trainable parameters of the color prediction neural network model include the color after each process; Using the process color database to train the color prediction neural network model; The method of obtaining the color of the current fabric includes: The color of the current fabric is determined according to the trained color prediction neural network model.
10. A device for determining yarn color, characterized in that: include: A first acquisition module is used to acquire the color of the current yarn, wherein the current yarn is determined according to the target color of the target fabric; A second acquisition module is used to acquire the color of a current fabric, wherein the current fabric is obtained by weaving the current yarn; a calculation module, for calculating a current color difference between the color of the current yarn and the color of the current fabric; The determination module is used to determine the color of the target yarn according to the current color difference and the target color.