A kind of computer for colouring method of leather coloring
Technical field
The present invention relates to a kind of computer for colouring methods of leather coloring, and in particular to when a kind of leather or textile dyeing
Computer provides the method for formula forecast.
Background technique
Leather industry is an ancient, backward but capacity to earn foreign exchange through exports and stronger industry, although have passed through thousands of years
Development is not got rid of but always with situation handmade, based on experience control.The degree of automation of enterprise is very low, currently,
Domestic leather processing factory all uses Man-made Color Matching without exception, i.e., after dye-works is connected to client's sample, by dyeing master worker according to warp
The substantially formula for providing standard color sample is tested, then trial dyeing, then mixed colours, finally determines dyeing recipe.Obvious Man-made Color Matching pair
The skill requirement for dyeing master worker is very high and time-consuming and laborious, significantly limits the raising of leather processing factory production efficiency.And it answers
It replaces manually matching colors with computer, then can greatly improve the production efficiency of factory.Therefore, answered in leather processing enterprise
It will be a kind of new trend with computer color technology.
Computer for colouring technology has been widely applied in textile printing and dyeing industry, but does not answer substantially in leather coloring color matching
With.Computer for colouring technology is difficult to have in the major technique reason that leather industry is promoted: leather material difference is big, different seasons
Section, Different climate, different sources, the same kind skin base of different growing stages are very big to dyestuff absorption difference.It must be set up fitting thus
Close the computer for colouring method of leather color matching.
By historical sample library, solving conventional model by neural network algorithm with production actual sample can not answer the present invention
Pair specific production technology influence, improve an accuracy rate of color matching, push the automatization level of leather and textile industry
It is promoted, generates huge economic benefit.
Summary of the invention
The present invention is according to the above status, the characteristics of according to leather coloring, provides a kind of leather that primary color matching accuracy rate is high
Computer for colouring method.
The technical scheme adopted by the invention to solve the technical problem is that: a kind of computer for colouring method of leather coloring,
Characterized by the following steps:
1) reflectivity for measuring sample to be matched colors is Rt(λ) converts K/S through SKM model formationt(λ)。
2) with K/St(λ) is input item, and the prediction of the equal reflectivity of weight is carried out by trained BP neural network, obtains K/Swt
(λ)。
3) spectrum simulation algorithm is utilized, by K/Si(λ) is fitted K/Swt(λ) is calculated to obtain to dye by least square method and be matched
Square C (x1,x2...xn)。
A kind of computer for colouring method of leather coloring, which is characterized in that the survey of reflectivity in the step 1)
Integral ball-type dual-beam spectrophotometric color measurement instrument is used, λ wave-length coverage is visible light 400-700nm, wavelength interval 10nm.Select skin
The front of plate is colour examining face, and respectively in left, center, right shoulder, left, center, right ridge, left, center, right stern, measurement is averaged.
A kind of computer for colouring method of the leather coloring, which is characterized in that in the step 1, the SKM mould of use
Type is the mono- Constant Model of Kubeil-Munk, and expression formula is formula (1).
(formula 1)
The computer for colouring method of a kind of leather coloring, which is characterized in that using frequent in the step 2
With the BP neural network of database training.
The computer for colouring method of a kind of leather coloring, which is characterized in that BP nerve net is used in the step 2
Network is by K/Ss(λ) is input item, the equal K/S of weightw(λ) is that output item is built-up.By the sample stored in common prescription library into
Row albedo measurement obtains Rs(λ) is K/S through SKM model conversations(λ), the equal K/S value K/S of weightw(λ) is then matched by sample is corresponding
Side is transformed.
A kind of computer for colouring method of leather coloring, which is characterized in that the equal K/S value K/S of weightw(λ) is by converting
Formula (2) calculates, x1,x2...xnFor formula percentage.K/Si(λ) is reflection of i-th of composition dyestuff after SKM model conversation
Rate value.
K/Sw(λ)=x1K/S1(λ)+x2K/S2(λ)+…+xnK/Sn(λ) (formula 2)
The computer for colouring method of a kind of leather coloring, which is characterized in that the step 2) BP neural network
Training, intermediate hidden layer use logsig function, and output layer uses purelin function, using " Levenberg-Marquardt "
Algorithm.
A kind of computer for colouring method of leather coloring, which is characterized in that step 4) the digital simulation object
For K/Sw(λ), rather than K/St(λ), and be formulated using the spectral match algorithm calculating based on least square method.
Detailed description of the invention
The color matching flow chart of Fig. 1 embodiment of the present invention.
Fig. 2 is the training result schematic diagram of the embodiment of the present invention.
Fig. 3 is R described in the embodiment of the present invention 1t1(λ),K/St1(λ),K/Swt1(λ),Rc1The waveform diagram of (λ).
Fig. 4 is R described in the embodiment of the present invention 1t2(λ),K/St2(λ),K/Swt2(λ),Rc2The waveform diagram of (λ).
Fig. 5 is R described in the embodiment of the present invention 1t3(λ),K/St3(λ),K/Swt3(λ),Rc3The waveform diagram of (λ).
Fig. 6 is R described in the embodiment of the present invention 1t4(λ),K/St4(λ),K/Swt4(λ),Rc4The waveform diagram of (λ).
Specific embodiment
Embodiment 1
A simple sample database is used in embodiment of the present invention.The database share dyestuff in 3 (yellow E-3G,
Red S-BR, indigo plant E-BL).Sample group that it is stored is at being shown in Table 1.
1 data base set of table
Note: E-3G is Huang E-3G, and S-BR is red S-BR, and E-BL is indigo plant E-BL
Wherein, the building and training of BP neural network model: the training sample stored in common prescription library is measured
Obtain Rs(λ) is K/S by SKM model conversations(λ).The R of 3 dyestuffsi(λ) is through SKM model conversation K/Si(λ), according to formula and
K/S is calculated in formula 2w(λ).With K/Ss(λ) is input item, corresponding K/Sw(λ) is output item, and building BP neural network is matched
Color model.Here simplest 3-tier architecture is used, with sample pattern reflectivity K/Ss(λ) is input layer, and N number of hidden layer is (N number of
Number is arranged by experience Binding experiment, is set as here 38), with the equal model spectrum K/S of weightw(λ) is output layer, whereinEstablish K/Ss(λ) and K/SwNeural network model between (λ), the structure such as following figure
It is shown.Intermediate hidden layer uses logsig function, and output layer uses purelin function, using " Levenberg-Marquardt "
Algorithm.
The algorithm is run in the Matlab 2011b version with Neural Network Toolbox, and intermediate hidden layer uses
Logsig function, output layer are used purelin function, are calculated in this example using " trainlm (Levenberg-Marquardt) "
Method, main code are as follows :=net=newff (K/Ss(λ),K/Sw(λ),38,{'logsig','purelin'},'
trainlm');% model construction [net, tr]=train (net, K/Ss(λ),K/Sw(λ),[],[],val,test);% instruction
Practice, val, test are respectively the verifying formulated and training set.Training result is shown in Fig. 2.
When color matching, the reflectivity for measuring sample to be matched colors is Rt(λ) converts K/S through SKM model formationt(λ), with K/St
(λ) is input item, is predicted by BP neural network color matching model, and prediction obtains the equal K/S value K/S of weightwt(λ)。
K/Swt(λ)=sim (net, K/St(λ));% predicted with trained neural network, input data K/
St(λ) obtains the equal K/S value K/S of pre- check weighingwt(λ)。
Spectrum simulation algorithm is finally utilized, by K/Si(λ) is fitted K/Swt(λ) is dyed by least square method calculating
It is formulated C (x1,x2...xn)。
Specifically, the equal K/S value K/S of the weight of acquisitionwt(λ), therefore the equal K/S value K/S of weightwt(λ) and color matching composition xiAnd K/
SiMeet following formula between (λ),
Expansion are as follows:
If:
Then: K/Sw=P × C,
Since above-mentioned equation is n unknown quantity of 31 equation solutions (usual n < 31), need to solve using least square method
Equation group obtains the spectral match algorithm are as follows:
C=(PTP)-1PTf(Rw)
Then following step is carried out, specifically includes that the reflectivity of (1) measurement standard specimen (red 1.2% Huang 0.8%), and is converted
For model reflectivity;Measurement uses Datacolor600 spectral luminosity instrument, 400~700nm of wave-length coverage, wavelength interval 10nm.
Use Rt1(λ) is indicated, by Rt1(λ) substitutes into color matching model formula (1), is converted into model reflectivity K/St1(λ);(2) with K/St1(λ)
For input layer, the good BP neural network of application training is calculated, and obtains K/Swt1(λ);(3) monochromatic model reflectivity K/S is usedt1
The equal model reflectivity K/S of (λ) fitting weightwt1(λ) obtains formula C with least square method1(red 1.06%, Huang is 0.82%);
(4) formula C according to weather report1It draws a design, and measures the reflectivity R for color of drawing a designc1(λ);Calculate standard specimen Rt1(λ) and color of drawing a design
Rc1Color difference between (λ), obtaining CMC color difference is 0.32.Color matching is completed.Rt1(λ),K/St1(λ),K/Swt1(λ),Rc1(λ) is shown in figure
3。
Embodiment 2:
In the embodiment of the present invention and comparative example, as illustratively and convenient for comparing, one is used simply
Sample database.The database shares 3 dyestuffs (yellow E-3G, red S-BR, blue E-BL).Sample group that it is stored is at being shown in Table 1.
1 data base set of table
Note: E-3G is Huang E-3G, and S-BR is red S-BR, and E-BL is indigo plant E-BL
Wherein, the building and training of BP neural network model: the training sample stored in common prescription library is measured
Obtain Rs(λ) is K/S by SKM model conversations(λ).The R of 3 dyestuffsi(λ) is through SKM model conversation K/Si(λ), according to formula and
K/S is calculated in formula 2w(λ).With K/Ss(λ) is input item, corresponding K/Sw(λ) is output item, and building BP neural network is matched
Color model.Here simplest 3-tier architecture is used, with sample pattern reflectivity K/Ss(λ) is input layer, and N number of hidden layer is (N number of
Number is arranged by experience Binding experiment, is set as here 38), with the equal model spectrum K/S of weightw(λ) is output layer, whereinEstablish K/Ss(λ) and K/SwNeural network model between (λ), structure are as follows
Shown in figure.Intermediate hidden layer uses logsig function, and output layer uses purelin function, using " Levenberg-
Marquardt " algorithm.
The algorithm is run in the Matlab 2011b version with Neural Network Toolbox, and intermediate hidden layer uses
Logsig function, output layer are used purelin function, are calculated in this example using " trainlm (Levenberg-Marquardt) "
Method, main code are as follows:
Net=newff (K/Ss(λ),K/Sw(λ),38,{'logsig','purelin'},'trainlm');% model structure
It builds
[net, tr]=train (net, K/Ss(λ),K/Sw(λ),[],[],val,test);% training, val, test points
The verifying that Wei do not formulate and training set.
Training solves to see Fig. 2.
When color matching, the reflectivity for measuring sample to be matched colors is Rt(λ) converts K/S through SKM model formationt(λ), with K/St
(λ) is input item, is predicted by BP neural network color matching model, and prediction obtains the equal K/S value K/S of weightwt(λ)。
K/Swt(λ)=sim (net, K/St(λ));% predicted with trained neural network, input data K/St
(λ) obtains the equal K/S value K/S of pre- check weighingwt(λ)。
Spectrum simulation algorithm is finally utilized, by K/Si(λ) is fitted K/Swt(λ) is dyed by least square method calculating
It is formulated C (x1,x2...xn)。
Specifically, the equal K/S value K/S of the weight of acquisitionwt(λ), therefore the equal K/S value K/S of weightwt(λ) and color matching composition xiAnd K/
SiMeet following formula between (λ),
Expansion are as follows:
If:
Then: K/Sw=P × C,
Since above-mentioned equation is n unknown quantity of 31 equation solutions (usual n < 31), need to solve using least square method
Equation group obtains the spectral match algorithm are as follows:
C=(PTP)-1PTf(Rw)
Then the reflectivity of following key steps (1) measurement standard specimen (yellow 0.4% indigo plant 1.6%) is carried out, and is converted into model
Reflectivity;Measurement uses Datacolor600 spectral luminosity instrument, 400~700nm of wave-length coverage, wavelength interval 10nm.Use Rt2(λ)
It indicates, by Rt2(λ) substitutes into color matching model formula (1), is converted into model K/S value K/St2(λ);(2) with K/St2(λ) is input layer,
The good BP neural network of application training is calculated, and K/S is obtainedwt2(λ);(3) monochromatic model K/S value K/S is usedt2(λ) fitting weight is equal
Model K/S value K/Swt2(λ) obtains formula C with least square method2(red 0.12% Huang 0.22%, indigo plant is 1.58%);(4) root
According to the formula C of forecast2It draws a design, and measures the reflectivity R for color of drawing a designc2(λ);Calculate standard specimen Rt2(λ) and the color R that draws a designc2(λ)
Between color difference, obtain CMC color difference be 0.21.Color matching is completed.Rt2(λ),K/St2(λ),K/Swt2(λ),Rc2(λ) is shown in Fig. 4.
Embodiment 3:
In the embodiment of the present invention and comparative example, as illustratively and convenient for comparing, one is used simply
Sample database.The database shares 3 dyestuffs (yellow E-3G, red S-BR, blue E-BL).Sample group that it is stored is at being shown in Table 1.
1 data base set of table
Note: E-3G is Huang E-3G, and S-BR is red S-BR, and E-BL is indigo plant E-BL
Wherein, the building and training of BP neural network model: the training sample stored in common prescription library is measured
Obtain Rs(λ) is K/S by SKM model conversations(λ).The R of 3 dyestuffsi(λ) is through SKM model conversation K/Si(λ), according to formula and
K/S is calculated in formula 2w(λ).With K/Ss(λ) is input item, corresponding K/Sw(λ) is output item, and building BP neural network is matched
Color model.Here simplest 3-tier architecture is used, with sample pattern reflectivity K/Ss(λ) is input layer, and N number of hidden layer is (N number of
Number is arranged by experience Binding experiment, is set as here 38), with the equal model spectrum K/S of weightw(λ) is output layer, whereinEstablish K/Ss(λ) and K/SwNeural network model between (λ), structure is such as
Shown in the following figure.Intermediate hidden layer uses logsig function, and output layer uses purelin function, using " Levenberg-
Marquardt " algorithm.
The algorithm is run in the Matlab 2011b version with Neural Network Toolbox, and intermediate hidden layer uses
Logsig function, output layer are used purelin function, are calculated in this example using " trainlm (Levenberg-Marquardt) "
Method, main code are as follows:
Net=newff (K/Ss (λ), K/Sw(λ),38,{'logsig','purelin'},'trainlm');% model
Building
[net, tr]=train (net, K/Ss(λ),K/Sw(λ),[],[],val,test);% training, val, test
The verifying respectively formulated and training set.
Training solves to see Fig. 2.
When color matching, the reflectivity for measuring sample to be matched colors is Rt(λ) converts K/S through SKM model formationt(λ), with K/St
(λ) is input item, is predicted by BP neural network color matching model, and prediction obtains the equal K/S value K/S of weightwt(λ)。
K/Swt(λ)=sim (net, K/St(λ));% predicted with trained neural network, input data K/St
(λ) obtains the equal K/S value K/S of pre- check weighingwt(λ)。
Spectrum simulation algorithm is finally utilized, by K/Si(λ) is fitted K/Swt(λ) is dyed by least square method calculating
It is formulated C (x1,x2...xn)。
Specifically, the equal K/S value K/S of the weight of acquisitionwt(λ), therefore the equal K/S value K/S of weightwt(λ) and color matching composition xiAnd K/
SiMeet following formula between (λ),
Expansion are as follows:
If:
Then: K/Sw=P × C,
Since above-mentioned equation is n unknown quantity of 31 equation solutions (usual n < 31), need to solve using least square method
Equation group obtains the spectral match algorithm are as follows:
C=(PTP)-1PTf(Rw)
Then following key steps are carried out: (1) measuring the reflectivity of standard specimen (red 0.8% indigo plant 1.2%), and is converted into model
Reflectivity;Measurement uses Datacolor600 spectral luminosity instrument, 400~700nm of wave-length coverage, wavelength interval 10nm.Use Rt3(λ)
It indicates, by Rt3(λ) substitutes into color matching model formula (1), is converted into model K/S value K/St3(λ);(2) with K/St3(λ) is input layer,
The good BP neural network of application training is calculated, and K/S is obtainedwt3(λ);(3) monochromatic model K/S value K/S is usedt3(λ) fitting weight is equal
Model K/S value K/Swt3(λ), with least square method, obtaining formula C3, (red 0.69%, Huang 0.08%, indigo plant is 1.25%);(4) root
According to the formula C of forecast3It draws a design, and measures the reflectivity R for color of drawing a designc3(λ);Calculate standard specimen Rt3(λ) and the color R that draws a designc3(λ)
Between color difference, obtain CMC color difference be 0.27.Color matching is completed.Rt3(λ),K/St3(λ),K/Swt3(λ),Rc3(λ) is shown in Fig. 5.
Embodiment 4:
In the embodiment of the present invention and comparative example, as illustratively and convenient for comparing, one is used simply
Sample database.The database shares 3 dyestuffs (yellow E-3G, red S-BR, blue E-BL).Sample group that it is stored is at being shown in Table 1.
1 data base set of table
Note: E-3G is Huang E-3G, and S-BR is red S-BR, and E-BL is indigo plant E-BL
Wherein, the building and training of BP neural network model: the training sample stored in common prescription library is measured
Obtain Rs(λ) is K/S by SKM model conversations(λ).The R of 3 dyestuffsi(λ) is through SKM model conversation K/Si(λ), according to formula and
K/S is calculated in formula 2w(λ).With K/Ss(λ) is input item, corresponding K/Sw(λ) is output item, and building BP neural network is matched
Color model.Here simplest 3-tier architecture is used, with sample pattern reflectivity K/Ss(λ) is input layer, and N number of hidden layer is (N number of
Number is arranged by experience Binding experiment, is set as here 38), with the equal model spectrum K/S of weightw(λ) is output layer, whereinEstablish K/Ss(λ) and K/SwNeural network model between (λ), structure are as follows
Shown in figure.Intermediate hidden layer uses logsig function, and output layer uses purelin function, using " Levenberg-
Marquardt " algorithm.
The algorithm is run in the Matlab 2011b version with Neural Network Toolbox, and intermediate hidden layer uses
Logsig function, output layer are used purelin function, are calculated in this example using " trainlm (Levenberg-Marquardt) "
Method, main code are as follows:
Net=newff (K/Ss (λ), K/Sw(λ),38,{'logsig','purelin'},'trainlm');% model
Building
[net, tr]=train (net, K/Ss(λ),K/Sw(λ),[],[],val,test);% training, val, test points
The verifying that Wei do not formulate and training set.
Training solves to see Fig. 2.
When color matching, the reflectivity for measuring sample to be matched colors is Rt(λ) converts K/S through SKM model formationt(λ), with K/St
(λ) is input item, is predicted by BP neural network color matching model, and prediction obtains the equal K/S value K/S of weightwt(λ)。
K/Swt(λ)=sim (net, K/St(λ));% predicted with trained neural network, input data K/St
(λ) obtains the equal K/S value K/S of pre- check weighingwt(λ)。
Spectrum simulation algorithm is finally utilized, by K/Si(λ) is fitted K/Swt(λ) is dyed by least square method calculating
It is formulated C (x1,x2...xn)。
Specifically, the equal K/S value K/S of the weight of acquisitionwt(λ), therefore the equal K/S value K/S of weightwt(λ) and color matching composition xiAnd K/
SiMeet following formula between (λ),
Expansion are as follows:
If:
Then: K/Sw=P × C,
Since above-mentioned equation is n unknown quantity of 31 equation solutions (usual n < 31), need to solve using least square method
Equation group obtains the spectral match algorithm are as follows:
C=(PTP)-1PTf(Rw)
Then it carries out following step: (1) measuring the reflectivity of standard specimen (red 0.6% yellow 0.6% indigo plant 0.8%), and be converted into
Model reflectivity;Measurement uses Datacolor600 spectral luminosity instrument, 400~700nm of wave-length coverage, wavelength interval 10nm.With
Rt4(λ) is indicated, by Rt4(λ) substitutes into color matching model formula (1), is converted into model K/S value K/St4(λ);(2) with K/St4(λ) is defeated
Enter layer, the good BP neural network of application training is calculated, and K/S is obtainedwt4(λ);(3) monochromatic model reflectivity K/S is usedt4(λ) is quasi-
Close the equal model K/S value K/S of weightwt4(λ) obtains formula C with least square method4(red 0.57% yellow 0.69% indigo plant 0.87%);
(4) formula C according to weather report4It draws a design, and measures the reflectivity R for color of drawing a designc4(λ);Calculate standard specimen Rt4(λ) and color of drawing a design
Rc4Color difference between (λ), obtaining CMC color difference is 0.14.Color matching is completed.Rt4(λ),K/St4(λ),K/Swt4(λ),Rc4(λ) is shown in figure
6。
The computer for colouring method of dyeing provided by the present invention is described in detail above, tool used herein
Principle and implementation of the present invention are described for body example, the above embodiments are only used to help understand this hair
Bright method and core concept;At the same time, for those skilled in the art is being embodied according to the thought of the present invention
There will be changes in mode and application range, in conclusion the content of the present specification portion is interpreted as limitation of the present invention.