A bed sheet dyeing formula optimization method and system
By analyzing the pH value of the dye liquid and the color characteristics of the dyed sheet sample image, and iteratively adjusting the color fixative dosage, the problem of low accuracy in the control of additive amount in traditional dyeing formulas is solved, and the optimization of the bed sheet dyeing formula is achieved to ensure the stability of the color and durability reduce production costs.
Patent Information
- Application Number
- CN202411230374.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-09-04
AI Technical Summary
The accuracy of the additive amount control of the traditional sheet dyeing formula is low during the formulation of the product, which makes it difficult to guarantee color stability and durability, and is prone to color difference problems, resulting in waste of dyes and chemicals and increasing production costs.
By obtaining the pH value of the dye liquid and the dyed bed sheet sample image in the initial dyeing experiment, analyzing the degree of change of the pH value and the color characteristics, iteratively adjusting the fixing agent dosage until the target color is reached, determining the optimal fixing agent dosage, combining the entropy value and The mean difference calculates the degree of change in the pH value, quantifies the dyeing effect indicators, and optimizes the dyeing formula.
It improves the accuracy of the adjustment of the fixing agent dosage, enhances the accuracy of the dyeing formula, ensures color durability and uniformity, reduces the waste of dyes and chemicals, reduces production costs, and improves dyeing efficiency and the texture of the bed sheet.
Smart Images

Figure CN118735660B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of data management, and in particular to a bed sheet dyeing formula optimization method and system. Background Art
[0002] Bed sheets are an indispensable household item in people's daily lives. Their color stability, durability and environmental friendliness are crucial to the user experience. With the development of the textile industry, some advanced dyeing technologies and equipment have gradually been applied, but there are still deficiencies in the optimization of dyeing methods. In order to ensure the color characteristics of bed sheets, it is necessary to formulate a suitable bed sheet dyeing method. The dyeing formula formulation process of traditional dyeing methods usually needs to consider multiple factors such as dye selection, ratio, process parameters, etc. The complexity and interrelationship of these factors make it more difficult to manually prepare dyeing formulas.
[0003] The traditional dyeing formula has low control accuracy for the amount of additives added, which makes it impossible to optimize the dyeing formula for sheets, and it is difficult to ensure the stability of the color of sheets during washing and daily use. It is easy to cause color difference problems and the success rate of color matching is low. The amount of additives added in the traditional dyeing formula formulation process usually relies on experience and trial and error, resulting in waste of dyes and chemicals, and it is impossible to accurately guarantee the dyeing effect of the formula on the sheets, which increases the production cost of the sheets to a certain extent. Traditional computer color matching obtains theoretical matching dyeing formulas, which do not take into account the actual differences in dyes, dyeing processes, etc., and the robustness of dyeing formula formulation is low. Summary of the invention
[0004] In order to solve the technical problem that the traditional dyeing formula formulation has low control accuracy for the amount of auxiliaries added and cannot achieve the optimization of bed sheet dyeing formula, the purpose of the present invention is to provide a bed sheet dyeing formula optimization method and system, and the technical scheme adopted is as follows:
[0005] An embodiment of the present invention provides a method for optimizing a bed sheet dyeing formula, the method comprising the following steps:
[0006] Obtaining the pH value of the dye solution at each moment during the initial dyeing experiment; wherein, the color of the dyed bed sheet sample after the initial dyeing experiment is not the target color, and the amount of the fixing agent used during the initial dyeing experiment is recorded as the initial amount to be adjusted;
[0007] According to the pH value of the dye solution at each moment during the initial dyeing experiment, the degree of change of the pH value corresponding to the initial amount to be adjusted is determined;
[0008] Obtaining a dyed bed sheet sample image after the initial dyeing experiment, analyzing the color characteristics of the dyed bed sheet sample image, and determining a dyeing effect index corresponding to the initial amount to be adjusted;
[0009] According to the initial amount to be adjusted, the degree of change of the pH value corresponding to the initial amount to be adjusted and the dyeing effect index, the amount of the fixing agent in the next dyeing experiment is determined and recorded as the next amount to be adjusted;
[0010] Based on the next amount to be adjusted, the dyed sheet sample after the next dyeing experiment is obtained, and whether the color of the dyed sheet sample after the next dyeing experiment is the target color is determined. If it is not the target color, the amount of fixing agent in the dyeing experiment is continuously iterated and adjusted until the color of the dyed sheet sample after the current dyeing experiment is the target color, and the amount of fixing agent in the current dyeing experiment is used as the optimal amount of fixing agent.
[0011] Further, the step of determining the pH value change degree corresponding to the initial amount to be adjusted according to the pH value of the dye solution at each moment during the initial dyeing experiment includes:
[0012] Performing curve fitting on the pH value of the dye solution at each moment during the initial dyeing experiment to obtain a pH value fitting curve;
[0013] The amplitudes corresponding to the adjacent maximum and minimum points in the pH value fitting curve are taken as the target amplitudes, and then the entropy values of all target amplitudes corresponding to the pH value fitting curve are calculated;
[0014] According to each target amplitude in the pH value fitting curve and the average of all target amplitudes, the difference between all target amplitudes and the average of all target amplitudes is determined;
[0015] The degree of change of the pH value corresponding to the initial amount to be adjusted is determined by combining the entropy value of all the target amplitudes, the difference between all the target amplitudes and the mean of all the target amplitudes.
[0016] Furthermore, the calculation formula for the degree of change of the pH value corresponding to the initial amount to be adjusted is:
[0017] ; In the formula, is the degree of change of the pH value corresponding to the initial amount to be adjusted, i is the i-th target amplitude in the pH value fitting curve, and the target amplitudes are equal and recorded as a type of target amplitude, i is the category number of the target amplitude corresponding to the pH value fitting curve, and I is the number of categories of the target amplitude corresponding to the pH value fitting curve. is the frequency of occurrence of the i-th target amplitude in the pH value fitting curve, H is the number of target amplitudes in the pH value fitting curve, is the probability of occurrence of the i-th target amplitude in the pH value fitting curve, is an exponential function, is the entropy value of all target amplitudes corresponding to the pH value fitting curve, is the serial number of the target amplitude in the pH value fitting curve, H is the number of target amplitudes in the pH value fitting curve, is the uth target amplitude in the pH value fitting curve, is the mean of all target amplitudes in the pH value fitting curve, For Find the absolute value, is the difference between all target amplitudes in the pH fit curve and the mean of all target amplitudes.
[0018] Furthermore, the analyzing the color characteristics of the dyed bed sheet sample image to determine the dyeing effect index corresponding to the amount to be adjusted for the first time includes:
[0019] Obtain a standard dyed bed sheet image, and determine the color vividness corresponding to the amount to be adjusted initially according to the saturation of each pixel in the standard dyed bed sheet image and the dyed bed sheet sample image;
[0020] Determine the color uniformity corresponding to the amount to be adjusted initially according to the brightness of each pixel in the dyed bed sheet sample image;
[0021] Obtaining dyed bed sheet sample images before and after the washing fastness test; determining the color fastness corresponding to the initial amount to be adjusted according to the brightness of each pixel in the dyed bed sheet sample images before and after the washing fastness test;
[0022] Determine the dyeing effect index corresponding to the initial dosage to be adjusted based on the color vividness, color uniformity and color fastness corresponding to the initial dosage to be adjusted.
[0023] Furthermore, the step of determining the color vividness corresponding to the amount to be adjusted for the first time according to the saturation of each pixel in the standard dyed bed sheet image and the dyed bed sheet sample image includes:
[0024] Calculate the saturation mean corresponding to all pixels in the standard dyed bed sheet image and the saturation mean of all pixels in the dyed bed sheet sample image, invert the absolute value of the difference between the two saturation means, and use the absolute value of the difference after the inversion operation as the color vividness corresponding to the initial amount to be adjusted.
[0025] Furthermore, the step of determining the color uniformity corresponding to the amount to be adjusted for the first time according to the brightness of each pixel in the dyed bed sheet sample image includes:
[0026] The variance of the brightness of all pixels in the dyed bed sheet sample image is calculated, the variance of the brightness of all pixels is inverted, and the variance after the inversion operation is used as the color uniformity corresponding to the initial amount to be adjusted.
[0027] Further, the color fastness corresponding to the amount to be adjusted for the first time is determined according to the brightness of each pixel in the dyed bed sheet sample image before and after the washing fastness test, including:
[0028] According to the brightness of each pixel in the dyed bed sheet sample images before and after the washing fastness test, the mean square error between the pixels in the two dyed bed sheet sample images is calculated, the mean square error is negated, and the mean square error after the negation operation is used as the color fastness corresponding to the initial amount to be adjusted.
[0029] Further, the method of determining the amount of the fixing agent in the next dyeing experiment according to the initial amount to be adjusted, the degree of change of the pH value corresponding to the initial amount to be adjusted, and the dyeing effect index includes:
[0030] Determine the adjustment coefficient of the initial amount to be adjusted according to the pH value change degree and dyeing effect index corresponding to the initial amount to be adjusted;
[0031] The product of the initial amount to be adjusted and the adjustment coefficient of the initial amount to be adjusted is used as the amount of fixing agent in the next dyeing experiment.
[0032] Furthermore, the calculation formula of the adjustment coefficient of the initial amount to be adjusted is:
[0033] ; In the formula, is the adjustment coefficient of the initial amount to be adjusted, th is the hyperbolic tangent function, is the pH value change corresponding to the initial amount to be adjusted, It is the dyeing effect index corresponding to the initial dosage to be adjusted.
[0034] An embodiment of the present invention further provides a bed sheet dyeing formula optimization system, including a processor and a memory, wherein the processor is used to process instructions stored in the memory to implement a bed sheet dyeing formula optimization method.
[0035] The present invention has the following beneficial effects:
[0036] The present invention analyzes the change of the pH value of the dye solution during the initial dyeing experiment based on the relationship between the amount of the color fixing agent and the change of the pH value, and determines the degree of change of the pH value; quantifies the dyeing effect index based on the color characteristics of the dyed bed sheet sample image; adjusts the amount of the color fixing agent during the initial dyeing experiment through the degree of change of the pH value and the dyeing effect index, and determines the amount of the color fixing agent during the next dyeing experiment, so as to obtain the optimal amount of the color fixing agent; analyzes the results of the initial dyeing experiment from two aspects, which can effectively improve the accuracy of the adjustment of the amount of the color fixing agent, and then enhance the numerical accuracy of the amount of the color fixing agent during the next dyeing experiment; determines the optimal amount of the color fixing agent, improves the accuracy of the formulation of the bed sheet dyeing formula, and has the advantages of It helps to optimize the sheet dyeing formula. At the same time, the optimal amount of fixing agent can improve the permeability of the dye, make it better adhere to the fiber, and improve the dyeing efficiency; the optimization of the sheet dyeing formula can ensure the dyeing effect of the dye formula on the sheet, for example, the color persistence, color uniformity, durability and other aspects of the sheet, and can effectively avoid the negative impact of excessive fixing agent on the environment, and ensure the feel and texture of the sheet; compared with the traditional dyeing formula formulation relying on experience, the present invention can effectively avoid the waste of dyes and chemicals, and help to reduce the production cost of the sheet; the present invention takes into account the characteristics of the dyeing process of the dyed cloth, can improve the robustness of the sheet dyeing formula formulation, and is mainly suitable for the field of formula formulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 This is a flow chart of a bed sheet dyeing formula optimization method according to an embodiment of the present invention;
[0039] Figure 2 This is a flow chart of the steps for determining the dyeing effect index corresponding to the initial amount to be adjusted in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the technical solutions proposed by the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0042] The application scenarios targeted by the embodiments of the present invention may be:
[0043] In the process of preparing the bed sheet dye, the proportion of ingredients used in each batch of dyeing is ensured to be accurate through the formulated standards and formula ratios. Dyeing auxiliaries play a key role in the bed sheet dyeing process, and can affect multiple links in the dyeing process, including color vividness, dyeing efficiency, dyeing uniformity, and quality of finished bed sheets. This embodiment mainly describes the addition of color fixing agents in the formulation of bed sheet dyeing formulas, determines the optimal amount of auxiliaries added to the dye based on small-scale experiments before formal production, optimizes the bed sheet dyeing formula, and ensures the dyeing effect and color fastness of the finished bed sheet.
[0044] Specifically, this embodiment provides a bed sheet dyeing formula optimization method, a flow chart of a bed sheet dyeing formula optimization method, such as Figure 1 As shown, the following steps are included:
[0045] S1, obtain the pH value of the dye solution at each moment during the initial dyeing experiment.
[0046] The preparation work for the dyeing experiment includes: first prepare the original fabric samples of the bed sheets. The original fabric samples are usually made of cotton, linen and other materials. When obtaining the fabric samples, some necessary pretreatment processes can be carried out to ensure that the fabric is clean, such as removing impurities and pre-washing. Then, the customer or design team determines the color of the bed sheet and records the color of the bed sheet as the target color. The content to be determined includes: specific description of the color, hue, brightness and saturation requirements; secondly, select the appropriate dye according to the target color, and mix the dye according to a certain proportion according to the formulated formula rules; then, add an appropriate amount of fixing agent, dissolve and mix it with the dye in water, and then put the mixed formula into the dyeing machine; finally, put the original fabric sample of the bed sheet into the dyeing machine, and carry out small-scale experimental operations in turn. It should be noted that the amount of fixing agent added in each experiment shows an increasing trend, and is constantly adjusted until the color of the dyed bed sheet sample after the current dyeing experiment is the target color.
[0047] After the initial dyeing experiment is completed, it is determined that the color of the dyed bed sheet sample after the initial dyeing experiment is not the target color. If the color of the dyed bed sheet sample is the target color, the experiment is terminated, and the dyeing formula in the initial dyeing experiment is used as the optimal formula. If the color of the dyed bed sheet sample is not the target color, the amount of color fixing agent in the dyeing formula in the initial dyeing experiment is adjusted based on the initial dyeing result, and the next dyeing experiment is continued. In order to analyze the influence of the amount of color fixing agent in the initial dyeing experiment on the dyeing result, the amount of color fixing agent and the pH value (Potential of Hydrogen) of the dye solution at each moment are recorded during the initial dyeing experiment to provide data support for the subsequent experimental result analysis. Among them, for the convenience of description, the amount of color fixing agent in the initial dyeing experiment is recorded as the initial amount to be adjusted. The initial amount to be adjusted can be set by the implementer based on actual experience, and no specific limitation is made here.
[0048] Fixing agent is an auxiliary agent used in the dyeing process. Its main function is to enhance the combination of dye and fiber and improve the fastness of dyeing. A certain amount of fixing agent can improve the permeability of dye, make the dye better adhere to the fiber, and increase the efficiency of dyeing; while excessive fixing agent may have a negative impact on the environment, and also affect the feel and texture of the sheets, making the finished sheets hard and rough. Therefore, it is necessary to balance the amount of fixing agent added in the formula design to ensure that while improving the fastness of the dyeing, the impact on the finished sheets is minimized.
[0049] S2, according to the pH value of the dye solution at each moment during the initial dyeing experiment, determine the pH value change degree corresponding to the initial amount to be adjusted.
[0050] It should be noted that the more drastic the pH fluctuation during the initial dyeing experiment, the more abnormal the pH fluctuation, which means that the initial adjusted amount of the fixing agent is not effective, and the more it is necessary to adjust the initial adjusted amount of the fixing agent.
[0051] In the first step, a curve fitting is performed on the pH value of the dye solution at each moment during the initial dyeing experiment to obtain a pH value fitting curve.
[0052] In the present embodiment, the least square method can be utilized to perform curve fitting on the pH value of the dye liquor in the initial dyeing experiment at each moment, and a fitting curve is obtained, which is recorded as the pH value fitting curve. The pH value event sequence is converted into a fitting curve in order to facilitate the analysis of the variation of the pH value in the entire initial dyeing experiment. The implementation process of the least square method is a prior art, which will not be described here. Of course, the implementer can also adopt other methods to implement the curve fitting operation. The horizontal axis of the pH value fitting curve is time, and the vertical axis is the pH value.
[0053] In the second step, the amplitudes corresponding to the adjacent maximum and minimum points in the pH value fitting curve are taken as the target amplitudes, and then the entropy values of all target amplitudes corresponding to the pH value fitting curve are calculated.
[0054] In this embodiment, each extreme point in the pH value fitting curve is first determined, and the extreme points include maximum points and minimum points; then, according to the positions of each pair of adjacent maximum points and minimum points in the pH value fitting curve, the amplitudes corresponding to each pair of adjacent maximum points and minimum points are calculated, and the amplitudes corresponding to the adjacent maximum points and minimum points are used as target amplitudes to obtain each target amplitude; finally, according to each target amplitude, the entropy values of all target amplitudes are calculated. The calculation formula of the entropy value is an existing formula and will not be repeated here.
[0055] In the third step, according to each target amplitude in the pH value fitting curve and the average of all target amplitudes, the difference between all target amplitudes and the average of all target amplitudes is determined.
[0056] In this embodiment, the absolute value of the difference between each target amplitude and the average of all target amplitudes is calculated first, and then the cumulative sum of the absolute values of the differences of each amplitude is calculated, and the cumulative sum of the absolute values of the differences of each amplitude is used as the difference between all target amplitudes and the average of all target amplitudes.
[0057] The fourth step is to determine the degree of change of the pH value corresponding to the initial amount to be adjusted by combining the entropy values of all target amplitudes, the differences between all target amplitudes and the means of all target amplitudes.
[0058] In this embodiment, the entropy value of all target amplitudes and the difference between all target amplitudes and the mean of all target amplitudes are combined by multiplication, that is, the product of the entropy value of all target amplitudes and the difference between all target amplitudes and the mean of all target amplitudes is used as the degree of change of the pH value corresponding to the initial amount to be adjusted.
[0059] As an example, the calculation formula for the pH value change corresponding to the initial amount to be adjusted can be:
[0060] ; In the formula, is the degree of change of the pH value corresponding to the initial amount to be adjusted, i is the i-th target amplitude in the pH value fitting curve, and the target amplitudes are equal and recorded as a type of target amplitude, i is the category number of the target amplitude corresponding to the pH value fitting curve, and I is the number of categories of the target amplitude corresponding to the pH value fitting curve. is the frequency of occurrence of the i-th target amplitude in the pH value fitting curve, H is the number of target amplitudes in the pH value fitting curve, is the probability of occurrence of the i-th target amplitude in the pH value fitting curve, is an exponential function, is the entropy value of all target amplitudes corresponding to the pH value fitting curve, is the serial number of the target amplitude in the pH value fitting curve, H is the number of target amplitudes in the pH value fitting curve, is the uth target amplitude in the pH value fitting curve, is the mean of all target amplitudes in the pH value fitting curve, For Find the absolute value, is the difference between all target amplitudes in the pH fit curve and the mean of all target amplitudes.
[0061] In the calculation formula of the pH value change degree, Indicates the degree of disorder in the target amplitude distribution in the pH value fitting curve. The larger the value, the more chaotic the target amplitude distribution in the pH value fitting curve is, and the higher the uncertainty of the target amplitude data distribution is; Indicates the degree of dispersion of the target amplitude distribution in the pH value fitting curve. The larger the value, the more discrete the target amplitude distribution in the pH value fitting curve; the degree of pH value change indicates the degree of fluctuation of the pH value fitting curve. The greater the pH value change, the more unreasonable the addition of the fixing agent during the initial dyeing experiment, and the more it is necessary to adjust the initial amount to be adjusted later.
[0062] S3, obtaining a sample image of the dyed bed sheet after the initial dyeing experiment, analyzing the color characteristics of the sample image of the dyed bed sheet, and determining a dyeing effect index corresponding to the initial amount to be adjusted.
[0063] In the actual dyeing formula formulation process, experiments and adjustments are required to determine the optimal amount of fixing agent. The amount of fixing agent added has an important impact on the dyeing effect, for example, the color persistence, color uniformity, and durability of the bed sheet dyeing. Therefore, according to the color characteristics of the dyed bed sheet sample image after the initial dyeing experiment, the dyeing effect after the initial dyeing experiment is analyzed, which can play a role in regulating the initial amount to be adjusted.
[0064] In this embodiment, a camera is first used to capture an image of a dyed bed sheet sample after the initial dyeing experiment, i.e., a dyed bed sheet sample image, and the dyed bed sheet sample image is converted into an HSB (Hue Saturation Brightness) color space to determine the saturation and brightness of each pixel in the dyed bed sheet sample image, so as to analyze the color characteristics of the dyed bed sheet sample image and quantify the dyeing effect index. A flowchart of the steps for determining the dyeing effect index corresponding to the initial amount to be adjusted is shown in FIG. Figure 2 shown.
[0065] The first step is to obtain a standard dyed bed sheet image, and determine the color vividness corresponding to the initial amount to be adjusted according to the saturation of each pixel in the standard dyed bed sheet image and the dyed bed sheet sample image.
[0066] In this embodiment, the saturation mean corresponding to all pixels in the standard dyed sheet image and the saturation mean of all pixels in the dyed sheet sample image are calculated, the absolute value of the difference between the two saturation means is negated, and the absolute value of the difference after the negation operation is used as the color vividness corresponding to the initial amount to be adjusted.
[0067] It should be noted that the standard dyed bed sheet image is an image of a control sample of the standard dyed bed sheet. The smaller the difference between the two saturation means, the smaller the difference in color vividness between the dyed bed sheet sample after the initial dyeing experiment and the standard dyed bed sheet, and the higher the color vividness after the initial dyeing experiment.
[0068] In the second step, the color uniformity corresponding to the initial amount to be adjusted is determined according to the brightness of each pixel in the dyed bed sheet sample image.
[0069] In this embodiment, the variance of the brightness of all pixels in the dyed bed sheet sample image is calculated, the variance of the brightness of all pixels is inverted, and the variance after the inversion operation is used as the color uniformity corresponding to the initial amount to be adjusted.
[0070] It should be noted that the variance of the brightness of all pixels in the dyed bed sheet sample image can characterize the color uniformity of the dyed bed sheet sample. The smaller the variance of the brightness of all pixels, the more stable the brightness distribution of all pixels in the dyed bed sheet sample image and the higher the color uniformity.
[0071] The third step is to obtain the sample images of the dyed bed sheet before and after the washing fastness test; and determine the color fastness corresponding to the initial amount to be adjusted according to the brightness of each pixel in the sample images of the dyed bed sheet before and after the washing fastness test.
[0072] In this embodiment, the mean square error between the pixels in the two dyed bed sheet sample images is calculated based on the brightness of each pixel in the dyed bed sheet sample images before and after the washing fastness test, the mean square error is negated, and the mean square error after the negation operation is used as the color fastness corresponding to the initial amount to be adjusted.
[0073] It should be noted that the washing fastness test can be used to analyze the color fastness of dyed bed sheet samples. The greater the difference in brightness between the dyed bed sheet sample images before and after the washing fastness test, the higher the degree of dye shedding during the washing process, and the lower the color fastness of the dyed bed sheet sample after the initial dyeing experiment. The mean square error can be used to analyze the similarity of pixel brightness between the dyed bed sheet sample images before and after the washing fastness test. The smaller the mean square error, the higher the similarity.
[0074] The fourth step is to determine the dyeing effect index corresponding to the initial amount to be adjusted based on the color vividness, color uniformity and color fastness corresponding to the initial amount to be adjusted.
[0075] In this embodiment, the color vividness, color uniformity, and color fastness corresponding to the initial amount to be adjusted are combined by multiplication to obtain the dyeing effect index corresponding to the initial amount to be adjusted. The greater the color vividness, color uniformity, and color fastness, the higher the dyeing effect index, the smaller the degree of adjustment of the initial amount to be adjusted, that is, the smaller the adjustment coefficient of the initial amount to be adjusted determined later.
[0076] As an example, the calculation formula for the dyeing effect index corresponding to the initial amount to be adjusted can be:
[0077] ; In the formula, is the dyeing effect index corresponding to the initial amount to be adjusted, exp is an exponential function with a natural constant as the base, is the mean saturation value of all pixels in the standard dyed bed sheet image, is the mean saturation value of all pixels in the dyed bed sheet sample image after the initial dyeing experiment, For Find the absolute value, is the variance of the brightness of all pixels in the dyed bed sheet sample image after the initial dyeing experiment, is the brightness of each pixel in the dyed bed sheet sample image before the washing fastness test, is the brightness of each pixel in the dyed bed sheet sample image after the washing fastness test, is the mean square error function.
[0078] In the calculation formula of dyeing effect index, , as well as They are negatively correlated with the dyeing effect index, so it is necessary to , as well as Perform the inversion operation, It can be used to implement the negation operation of a numerical value. Of course, the implementer can also use other methods to implement the negation operation of a numerical value, which is not specifically limited here.
[0079] S4, according to the initial amount to be adjusted, the pH value change degree corresponding to the initial amount to be adjusted and the dyeing effect index, determine the amount of the fixing agent in the next dyeing experiment, and record it as the next amount to be adjusted.
[0080] In the process of determining the dyeing formula for bed sheets, a small-scale dyeing experiment is required. The bed sheet samples are used for testing. By analyzing the dyeing results of the previous dyeing experiment, the amount of fixing agent used in the next dyeing experiment is quantified, and the optimal amount of fixing agent is finally determined. By obtaining the optimal amount of fixing agent, the accuracy of the optimal dyeing formula for the target color can be improved.
[0081] The first step is to determine the adjustment coefficient of the initial amount to be adjusted according to the pH value change degree and dyeing effect index corresponding to the initial amount to be adjusted.
[0082] As an example, the calculation formula for the adjustment coefficient of the initial amount to be adjusted can be:
[0083] ; In the formula, is the adjustment coefficient of the initial amount to be adjusted, th is the hyperbolic tangent function, is the pH value change corresponding to the initial amount to be adjusted, It is the dyeing effect index corresponding to the initial dosage to be adjusted.
[0084] In the calculation formula of the adjustment coefficient, the degree of change of pH value It is positively correlated with the adjustment coefficient. The larger the value, the more dramatic the change in pH value of the dye during the initial dyeing experiment, the more abnormal the initial amount of the fixing agent to be adjusted, and the more it needs to be adjusted; Dyeing effect index It is negatively correlated with the adjustment coefficient. The larger it is, the better the dyeing effect of the dyed bed sheet sample after the initial dyeing experiment, the more normal the initial amount of the fixing agent to be adjusted is, and the less it is necessary to adjust the initial amount to be adjusted; The Euclidean norm of the pH value variation characteristics of the dye corresponding to the initial dyeing experiment and the dyeing effect of the dyed bed sheet sample can be used to adjust the amount of fixing agent used in the initial dyeing experiment. The larger the coefficient is, the greater the degree of adjustment for the initial amount to be adjusted; the adjustment coefficient can be used to determine the amount of fixing agent for the next dyeing experiment after the initial dyeing experiment.
[0085] In the second step, the product of the initial amount to be adjusted and the adjustment coefficient of the initial amount to be adjusted is used as the amount of fixing agent in the next dyeing experiment.
[0086] In this embodiment, the amount of the fixing agent in the initial dyeing experiment is adjusted according to the adjustment coefficient of the initial amount to be adjusted, and the product of the initial amount to be adjusted and the adjustment coefficient of the initial amount to be adjusted is used as the amount of the fixing agent in the next dyeing experiment after the initial dyeing experiment. The next dyeing experiment refers to the next dyeing experiment after the initial dyeing experiment.
[0087] S5, based on the next amount to be adjusted, obtain the dyed sheet sample after the next dyeing experiment, and determine whether the color of the dyed sheet sample after the next dyeing experiment is the target color. If it is not the target color, continuously iteratively adjust the amount of fixing agent during the dyeing experiment until the color of the dyed sheet sample after the current dyeing experiment is the target color.
[0088] In this embodiment, the amount of fixing agent used in the next dyeing experiment is adjusted to the amount to be adjusted next time, and the next dyeing experiment is carried out. A dyed sheet sample after the next dyeing experiment can be obtained, and it is determined whether the color of the dyed sheet sample after the next dyeing experiment is the target color. The target color is the sheet color determined by the customer or the design team. If it is not the target color, refer to the process of determining the adjustment coefficient of the amount of fixing agent in the initial dyeing experiment, determine the adjustment coefficient of the amount of fixing agent in the next dyeing experiment, adjust the amount to be adjusted next time, obtain the amount of fixing agent in the next dyeing experiment, and conduct the next dyeing experiment to obtain the dyed bed sheet sample after the next dyeing experiment, and judge whether the color of the dyed bed sheet sample after the next dyeing experiment is the target color. If it is still not the target color, continuously iteratively adjust the amount of fixing agent in the dyeing experiment until the color of the dyed bed sheet sample after the current dyeing experiment is the target color, stop the dyeing experiment, and use the amount of fixing agent in the current dyeing experiment as the optimal amount of fixing agent. Determining the optimal amount of fixing agent can improve the accuracy of the dyeing formula of the bed sheet and achieve the optimization of the bed sheet dyeing formula.
[0089] Among them, the next dyeing experiment refers to the next dyeing experiment of the next dyeing experiment; judging whether the color of the dyed sheet sample after the dyeing experiment is the target color can be achieved by combining visual observation with a color measuring instrument. The specific method for judging whether the color is the target color is the prior art, which is not within the protection scope of the present invention and will not be elaborated here.
[0090] So far, this embodiment has obtained the optimal amount of fixing agent by adjusting the amount of fixing agent during each dyeing experiment. The dyeing formula of the bed sheet can be optimized through the optimal amount of fixing agent. The optimization of the dyeing formula can ensure the dyeing effect of the dye formula on the bed sheet, and can effectively avoid the negative impact of excessive fixing agent on the environment, thereby ensuring the feel and texture of the bed sheet.
[0091] An embodiment of the present invention further provides a bed sheet dyeing formula optimization system, comprising a processor and a memory, wherein the processor is used to process instructions stored in the memory to implement a bed sheet dyeing formula optimization method.
[0092] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A bed sheet dyeing formula optimization method, characterized in that: The following steps are involved: Obtaining the pH value of the dye solution at each moment during the initial dyeing experiment; wherein, the color of the dyed bed sheet sample after the initial dyeing experiment is not the target color, and the amount of the fixing agent used during the initial dyeing experiment is recorded as the initial amount to be adjusted; According to the pH value of the dye solution at each moment during the initial dyeing experiment, the degree of change of the pH value corresponding to the initial amount to be adjusted is determined; Obtaining a dyed bed sheet sample image after the initial dyeing experiment, analyzing the color characteristics of the dyed bed sheet sample image, and determining a dyeing effect index corresponding to the initial amount to be adjusted; According to the initial amount to be adjusted, the pH value change degree corresponding to the initial amount to be adjusted and the dyeing effect index, the amount of fixing agent used in the next dyeing experiment is determined and recorded as the next amount to be adjusted; Based on the next amount to be adjusted, a dyed bed sheet sample after the next dyeing experiment is obtained, and whether the color of the dyed bed sheet sample after the next dyeing experiment is the target color is determined. If it is not the target color, the amount of the color fixing agent in the dyeing experiment is continuously adjusted iteratively until the color of the dyed bed sheet sample after the current dyeing experiment is the target color, and the amount of the color fixing agent in the current dyeing experiment is used as the optimal amount of the color fixing agent; The step of determining the pH value change degree corresponding to the initial amount to be adjusted according to the pH value of the dye solution at each moment during the initial dyeing experiment comprises: Performing curve fitting on the pH value of the dye solution at each moment during the initial dyeing experiment to obtain a pH value fitting curve; The amplitudes corresponding to the adjacent maximum and minimum points in the pH value fitting curve are taken as the target amplitudes, and then the entropy values of all target amplitudes corresponding to the pH value fitting curve are calculated; According to each target amplitude in the pH value fitting curve and the average of all target amplitudes, the difference between all target amplitudes and the average of all target amplitudes is determined; Determine the degree of change of the pH value corresponding to the initial amount to be adjusted by combining the entropy value of all the target amplitudes, the difference between all the target amplitudes and the mean of all the target amplitudes; The step of analyzing the color characteristics of the dyed bed sheet sample image and determining the dyeing effect index corresponding to the amount to be adjusted for the first time includes: Obtain a standard dyed bed sheet image, and determine the color vividness corresponding to the amount to be adjusted initially according to the saturation of each pixel in the standard dyed bed sheet image and the dyed bed sheet sample image; Determine the color uniformity corresponding to the amount to be adjusted initially according to the brightness of each pixel in the dyed bed sheet sample image; Obtaining dyed bed sheet sample images before and after the washing fastness test; determining the color fastness corresponding to the initial amount to be adjusted according to the brightness of each pixel in the dyed bed sheet sample images before and after the washing fastness test; Determine the dyeing effect index corresponding to the initial amount to be adjusted based on the color vividness, color uniformity and color fastness corresponding to the initial amount to be adjusted; The method of determining the amount of the fixing agent in the next dyeing experiment according to the initial amount to be adjusted, the degree of change of the pH value corresponding to the initial amount to be adjusted, and the dyeing effect index comprises: Determine the adjustment coefficient of the initial amount to be adjusted according to the pH value change degree and dyeing effect index corresponding to the initial amount to be adjusted; The product of the initial amount to be adjusted and the adjustment coefficient of the initial amount to be adjusted is used as the amount of fixing agent in the next dyeing experiment; The calculation formula of the adjustment coefficient of the initial amount to be adjusted is: ; In the formula, is the adjustment coefficient of the initial amount to be adjusted, th is the hyperbolic tangent function, is the pH value change corresponding to the initial amount to be adjusted, It is the dyeing effect index corresponding to the initial dosage to be adjusted.
2. A bed sheet dyeing formula optimization method according to claim 1, characterized in that: The calculation formula for the pH value change degree corresponding to the initial amount to be adjusted is: ; In the formula, is the degree of change of the pH value corresponding to the initial amount to be adjusted, i is the i-th target amplitude in the pH value fitting curve, and the target amplitudes are equal and recorded as a type of target amplitude, i is the category number of the target amplitude corresponding to the pH value fitting curve, and I is the number of categories of the target amplitude corresponding to the pH value fitting curve. is the frequency of occurrence of the i-th target amplitude in the pH value fitting curve, H is the number of target amplitudes in the pH value fitting curve, is the probability of occurrence of the i-th target amplitude in the pH value fitting curve, is an exponential function, is the entropy value of all target amplitudes corresponding to the pH value fitting curve, is the serial number of the target amplitude in the pH value fitting curve, H is the number of target amplitudes in the pH value fitting curve, is the uth target amplitude in the pH value fitting curve, is the mean of all target amplitudes in the pH value fitting curve, For Find the absolute value, is the difference between all target amplitudes in the pH fit curve and the mean of all target amplitudes.
3. A bed sheet dyeing formula optimization method according to claim 1, characterized in that: The step of determining the color vividness corresponding to the amount to be adjusted initially according to the saturation of each pixel in the standard dyed bed sheet image and the dyed bed sheet sample image includes: Calculate the saturation mean corresponding to all pixels in the standard dyed bed sheet image and the saturation mean of all pixels in the dyed bed sheet sample image, invert the absolute value of the difference between the two saturation means, and use the absolute value of the difference after the inversion operation as the color vividness corresponding to the initial amount to be adjusted.
4. A bed sheet dyeing formula optimization method according to claim 1, characterized in that: The step of determining the color uniformity corresponding to the amount to be adjusted for the first time according to the brightness of each pixel in the dyed bed sheet sample image includes: The variance of the brightness of all pixels in the dyed bed sheet sample image is calculated, the variance of the brightness of all pixels is inverted, and the variance after the inversion operation is used as the color uniformity corresponding to the initial amount to be adjusted.
5. A bed sheet dyeing formula optimization method according to claim 1, characterized in that: The step of determining the color fastness corresponding to the amount to be adjusted for the first time according to the brightness of each pixel in the dyed bed sheet sample image before and after the washing fastness test comprises: According to the brightness of each pixel in the dyed bed sheet sample images before and after the washing fastness test, the mean square error between the pixels in the two dyed bed sheet sample images is calculated, the mean square error is negated, and the mean square error after the negation operation is used as the color fastness corresponding to the initial amount to be adjusted.
6. A bed sheet dyeing formula optimization system, characterized in that: It comprises a processor and a memory, wherein the processor is used to process instructions stored in the memory to implement a bed sheet dyeing formula optimization method as described in any one of claims 1-5.
