Summary of the invention
The purpose of the invention is to overcome above-mentioned problems of the prior art, it is fast, high-efficient to provide a kind of speed
The color-woven fabric design producing method of high fast reaction with accuracy.
In order to achieve the above object, the technical solution adopted by the present invention are as follows:
A kind of color-woven fabric design producing method of fast reaction, steps are as follows:
(1) classification is carried out by flower pattern and institutional framework after acquisition fabric image establish fabric image database;Acquire fabric
It is shot when image using CCD camera, acquisition environment is seal case, CIE standard illuminants D65 or CIE standard illuminants A
(color measuring, calculating and the light source of evaluation to be used for specified in standard GB/T3978-2008 " standard illuminants and geometrical condition "
For D65 and A light source), wherein the angle of D65 light source directive parabolic mirror is 20 ° -30 °, A light source directive parabolic reflector
The angle of mirror is 30 ° -45 °;
When illumination is mapped to body surface, can generate three kinds of situations: reflected light, transmitted light and part light are absorbed by object
And it is converted into heat.The reflected light and transmitted light of body surface determine the color that object is presented, it is therefore necessary to determine object
The color of material and environment light source.Color-woven fabric is opaque article, without the concern for the transmitted light face that therefore its surface is presented
Color base is originally reflected by it light decision.Reflected light is made of three components: Ambient, diffusing reflection and mirror-reflection.Wherein environment
Reflection is that incident light is unevenly incident on body surface from ambient enviroment and unequally reflects to all directions, diffusing reflection point
Amount and specular component indicate that specific light source irradiates the reflected light generated on a surface of an.We will avoid this excessively uneven
Environment light, therefore acquire color-woven fabric image when selection in the cabinet of sealing.Then specific light source preferentially selects CIE D65
Light source, D65 correlated color temperature of light source are that the relative spectral power distributions of 6500K and real daylight are closer, and light source is closest to consecutive days
Other apparent tones of light effect, hardly band, can preferably reflect the true colors of object, therefore when acquiring fabric picture
Optimal selection is D65 light source.But some customer requirements use A light source, A light source be correlated colour temperature be 2856K it is photochromic it is white in
Band point is yellow, but since its colour temperature is low, and the penetration power ratio D65 light source of light is strong (brighter).
Final fabric surface reflection light model can be expressed as I=kcIc+krIr+kfIf, wherein kc、kr、kfRespectively environment
Reflection, diffusing reflection, ratio shared by three components of mirror-reflection, Ic、Ir、IfRespectively Ambient component, diffusing reflection component,
Specular components, Ir=Ipd× cosi, If=Ips×cosnθ, IpdThe brightness of reflected light, i are when for light source vertical incidence
The incidence angle of light source, IpsFor the mirror-reflection brightness on mirror-reflection direction, θ is the folder in mirror-reflection direction and direction of visual lines
Angle, n are the convergence index of specular light.
For color measuring, calculating according to specified in standard GB/T3978-2008 " standard illuminants and geometrical condition "
Have with the geometrical condition in evaluation about reflection: di:8 ° of (diffusion: 8 ° include specular component), de:8 ° of (diffusion: 8 ° of exclusion mirror surfaces
Ingredient), 45 ° a:0 ° (45 ° of annulus/vertical), 45 ° x:0 ° (45 ° of one directions/vertical), d:0 ° (not including mirror-reflection strictly)
Deng, and opposite with above-mentioned principle same optical path 8 °: di, 8 °: de, 0 °: 45 ° a, 0 °: 45 ° x, 0 °: d etc..
In general, color analysis needs uniform diffusion illumination, bright mirror-reflection is avoided, according to standard, with two
D65/A illuminator is pointed into sample for 45 ° in sample two sides, and this lighting method eliminates the mirror of smooth or curved sample surfaces
Face reflection, highlights the beam-shaping effect of sample, is more suitable for lacklustre material.But fabric is a kind of between height diffusion and bloom
Material between pool, the image only generated by diffused light is very coarse, without surface texture, is not suitable for carrying out visual analysis.And root
According to di:8 ° of standard (diffusion: 8 ° include specular component): although this geometrical condition contains mirror-reflection but is not reduced very
The ratio of mostly irreflexive ingredient, so that cloth textured structure is unintelligible.Therefore ideal irradiating angle should between 8 ° -45 °,
This patent introduces gloss (because according to above-mentioned mould by the directional lighting and introduction parabolic mirror of different angle (8 ° -45 °)
Type formula knows I with the increase I of incidence angler、IfReduce, the texture of shooting can be unintelligible, so needing to increase luminous intensity), from
Three shade, coloured light, texture aspects carry out the characteristic effect that Comprehensive Evaluation considers sample, and the final result is D65
The angle of light source directive parabolic mirror is that 20 ° -30 ° of irradiating angle effect is best;A light source directive is to parabolic mirror
Angle be 30 ° -45 ° irradiating angle effect preferably (the beam intensity ratio D65 of A light source is strong, when 20 ° -30 °, Ir、IfIt is larger, phase
The received light intensity of machine is too strong, and shooting effect is poor, therefore angle should be greater than 30 °).
It is not only available clearly cloth textured and due to making to the reduction that lens aperture reflects under best shooting angle
Collected color is obtained compared to there is only diffusion illuminations better precision (reducing the standard deviation of L* and b* significantly), is made
The actual look of image and fabric is very close.And when shooting angle is less than 20 ° or is greater than 45 °, it is clapped under this shooting angle
The texture effect for the fabric taken the photograph and practical texture difference on effect are larger, and the fabric color of shooting and color difference in kind are larger
It is unsatisfactory for the requirement of Δ E < 1, is unfavorable for the fabric that portions of client directly selects in fabric Image Database in this way and modifies or produce,
Texture is unintelligible and big with color difference in kind.
(2) n and the matched image of sample fabric are screened from fabric image database, it is described to match the figure for referring to screening
As belonging to same flower pattern library and tissue bank with sample fabric, and the difference of color value and color difference difference are in a certain range;
(3) flower pattern of n matching image is compared with the flower pattern of sample fabric, it is consistent if any flower pattern and color difference meets
It is required that image then directly produced, then adjust the color of image extremely if any the image that flower pattern is consistent but color difference is unsatisfactory for requiring
Color difference is produced after meeting the requirements, and is used CAD progress Fabric Simulation to design if the consistent image of no flower pattern and is met the requirements
Image after produced;The flower pattern unanimously refers to flower pattern difference in areas in a certain range.
As a preferred technical scheme:
A kind of color-woven fabric design producing method of fast reaction as described above, the value range of n are 5~10.
A kind of color-woven fabric design producing method of fast reaction as described above, step (1) are specific as follows:
(1.1) acquisition parameters are arranged before shooting are as follows: aperture 5.6, shutter 1/13, to guarantee face in shooting, collecting fabric image
The consistency and accuracy for expecting acquisition can effectively solve the exposure problems of shooting image, mention the quality for shooting image substantially
Height corrects computer screen color using display color rectifier, with reduce the color that shows on the screen of photo of shooting with
The difference of original sample, and the color difference for adjusting display background color and collected fabric is more than or equal to 4 grades, to improve shooting picture and reality
The consistency of fabric;
(1.2) successively classify by flower pattern and institutional framework to the fabric image of acquisition, i.e., divided first by flower pattern
Class establishes multiple flower pattern libraries, such as smooth surface library (no obvious texture), trellis library, bar shaped library, point word bank, stereo garage, then every
Classification is carried out by institutional framework under a flower pattern library and establishes multiple tissue banks, such as smooth surface library: satin weave library, plain weave library;Trellis library: plain weave
Library, twill library, the grid library of complex tissue, flowers oblique line library etc.;Bar shaped library: plain weave library, united organization change Fang Pingku, galassing
Library, brokentwlllweave library etc.;Stereo garage: Chong Jingku, weight latitude library, double-layered structure library etc.;When retrieving fabric select tissue bank after again into
Row image retrieval is effectively shortened the time of retrieval, improves the precision of retrieval;
(1.3) by flower pattern, institutional framework, the ingredient of fabric, warp-wise yarn branch, latitude after the fabric image of acquisition being numbered
To yarn count, fabric tissue and through obtaining fabric image database to the common input database of color.
A kind of color-woven fabric design producing method of fast reaction as described above, step (2) are specific as follows:
(2.1) the flower pattern library belonging to first judging sample fabric in fabric image database, then judge affiliated tissue bank;
(2.2) search and image similar in sample fabric in tissue bank are matched by color characteristic, i.e., to sample fabric
Yarn take the float value set on the rgb value plus-minus of each color obtained into color value range after color and colour examining, according to color
Value range searches for image in tissue bank;
(2.3) n matching image is filtered out from the image searched, that is, calculates the image and sample fabric figure searched
The color difference of picture is arranged the image searched by color difference from small to large ord, and the n images searched are as matching before choosing
Image.
A kind of color-woven fabric design producing method of fast reaction as described above, the root of the yarn for taking color and colour examining
Number is 40~70.The color value measured at this time tends to be steady, and color difference also tends to minimum value, and when dyed yarn list yarn removal stores color
It is generally also stored using 40-70 one thread, the present invention provides guidance for actual production.
A kind of color-woven fabric design producing method of fast reaction as described above, in step (3), by n matching image
Flower pattern be compared with the flower pattern of sample fabric specifically: after n matching image is numbered from 1 to n respectively extract
Flower pattern difference in areas Δ S is calculated after pattern profile with image and sample fabrici=| Si-S0|, wherein S0For the flower of sample fabric
Type area, SiFor the flower pattern area of i-th of matching image, i=1,2...n, if Δ Si≤0.05S0(or it is set on demand
His feasible value), then i-th of matching image is consistent with the flower pattern of sample fabric, on the contrary then inconsistent.
A kind of color-woven fabric design producing method of fast reaction as described above, in step (3), the color difference satisfaction is wanted
Seeking Truth refers to color difference Δ E < 1, and the color of the adjustment image refers to that but color difference consistent to flower pattern is unsatisfactory for desired sample fabric figure
As in color Lab value be finely adjusted to color difference meet the requirements after produced.
A kind of color-woven fabric design producing method of fast reaction as described above, it is described that Fabric Simulation is carried out using CAD
Specific step is as follows for design:
1) it with the Lab value of Datacolor measurement sample fabric color, then generates QTX file and imports in CAD;Directly lead
Enter to effectively shorten development cycle of sample fabric in CAD;
2) flower pattern library is first selected in CAD, reselection tissue bank carries out yarn row according to the flower pattern of selection and institutional framework
Column and yarn design obtain CAD paper card;
3) aobvious Xiang Xiaoguo is selected according to the arranging density of yarn, when through it is close less than 100 per inch when using aobvious latitude effect,
When through it is close be greater than 100 per inch less than 180 per inch when without using aobvious Xiang Xiaoguo, when through it is close be greater than 180 per inch when
Using aobvious through effect;The yarn of different arranging densities uses different aobvious warps and aobvious latitude effect, so that the flower pattern of CAD paper card, face
The otherness of color and sample cloth reduces;
4) color of CAD paper card is modified according to the coefficient transformation model of different colour systems, the difference colour system is
Number transformation models be respectively red colour system (L-x, a+y, b+z), blue series (L-x, a+y, b-z), yellow class (L+x, a-y, b+z),
Green system (L-x, a-y, b+z), violet (L-x, a+y, b+z), grey colour system (L-x, a+y, b+z), brown system (L-x, a-y, b+
Z), black system (L-x, a+y, b-z), wherein L, a and b are the color value of sample fabric, and x, y and z are constant, value range point
It Wei 1~5,1~8 and 1~10;The coefficient transformation model of different colour systems realizes high simulated effect of the fabric on CAD paper card,
The consistency for improving CAD paper card Yu sample fabric color improves the success rate of design fabric;
5) judge whether CAD paper card meets the requirements, if it is, production, on the contrary then return step 4) continue to correct.
The design production cycle of fabric can significantly be shortened by carrying out Fabric Simulation design using CAD, save fabric
Production and transportation cost.
A kind of color-woven fabric design producing method of fast reaction as described above will carry out Fabric Simulation using CAD and set
It counts flower pattern, institutional framework, the ingredient of fabric, warp-wise yarn branch, broadwise yarn count, fabric group after finally obtained image is numbered
It knits and through into color typing fabric image database, to extend the data in fabric image database, when fabric image number
When enough according to data in library, client can in fabric image database flower pattern required for on-line selection oneself and color it is straight
It connects and places an order online.
A kind of color-woven fabric design producing method of fast reaction as described above, the color difference are public using CIELAB color difference
Formula is calculated.
The utility model has the advantages that
(1) the color-woven fabric design producing method of a kind of fast reaction of the invention, it is right in selection flower pattern when retrieving fabric
Image retrieval is carried out after the tissue bank answered again, is effectively shortened the time of retrieval, improves the precision of retrieval.
(2) the color-woven fabric design producing method of a kind of fast reaction of the invention, shoot before acquisition parameters setting and
The correction of indicator screen color and the adjustment of background color reduce the difference of color and original sample that the photo of shooting is shown on the screen
It is different, it ensure that the consistency and accuracy of fabric acquisition.
(3) the color-woven fabric design producing method of a kind of fast reaction of the invention, establishes CAD paper card and different colour systems
Coefficient transformation model, improve CAD paper card and consistency of colour in kind, improve the success rate of design fabric, significantly
The design production cycle for shortening fabric, saved the production and transportation cost of fabric.
(4) the color-woven fabric design producing method of a kind of fast reaction of the invention is increased by introducing parabolic mirror
Luminous intensity is added, and devising directive parabolic reflector mirror angle under d 65 illuminant is 20 ° -30 °, the directive parabolic under A light source
Face mirror angle is 30 ° -45 °, can preferably embody the color and tissue texture quality effect of fabric in this way, ensure that shooting
The consistency (clean mark and with color difference Δ in kind E < 1) of picture and practical fabric, client therefore can be directly in fabric Image Database
Middle selection fabric is directly modified or is produced, and the design time of fabric is saved.
(5) the color-woven fabric design producing method of a kind of fast reaction of the invention is established fabric Image Database while being used
CAD Fabric Simulation design supplement extension Image Database, while the image of Facsimile fabric can carry out on-line normalization and resource-sharing, realize
The on-line normalizations of features such as the color and flower pattern of fabric with exchange, saved find the time for needing fabric to expend and manpower at
This, shortens design and the production cycle of color-woven fabric, realizes quick, efficient and accurate design and the life of sample fabric
It produces.
Embodiment 1
A kind of color-woven fabric design producing method of fast reaction, as shown in Figure 1, the specific steps are as follows:
(1) classification is carried out by flower pattern and institutional framework after acquisition fabric image establish fabric image database;Acquire fabric
It is shot when image using CCD camera, acquisition environment is as shown in Fig. 2, acquisition environment is seal case, CIE standard illuminants
D65 or CIE standard illuminants A, wherein the angle of D65 light source directive parabolic mirror is 20 ° -30 °, A light source directive parabolic
The angle of face reflecting mirror is 30 ° -45 °, and specific step is as follows;
(1.1) acquisition parameters are set before shooting are as follows: aperture 5.6, shutter 1/13 correct electricity using display color rectifier
Brain screen color, and the color difference for adjusting display background color and collected fabric is more than or equal to 4 grades;
(1.2) classification being carried out by flower pattern first and establishing flower pattern library, flower pattern library includes smooth surface library (without obvious texture), trellis
Then library, bar shaped library and stereo garage carry out classification by institutional framework under each flower pattern library and establish tissue bank, wherein smooth surface library
Including satin weave library and plain weave library;Trellis library includes plain weave library, twill library, the grid library of complex tissue and flowers oblique line library;Bar shaped library
Including plain weave library, united organization variation Fang Pingku, galassing library and brokentwlllweave library;Stereo garage includes Chong Jingku, weight latitude library and bilayer
Tissue bank;
(1.3) by flower pattern, institutional framework, the ingredient of fabric, warp-wise yarn branch, latitude after the fabric image of acquisition being numbered
To yarn count, fabric tissue and through obtaining fabric image database to the common input database of color;
(2) n and the matched image of sample fabric are screened from fabric image database, n value is 5~10, specific to walk
It is rapid as follows;
(2.1) the flower pattern library belonging to first judging sample fabric in fabric image database, then judge affiliated tissue bank;
(2.2) search and image similar in sample fabric in tissue bank are matched by color characteristic, i.e., to sample fabric
40~70 one threads take the float value set on the rgb value plus-minus of each color obtained into color value range after color and colour examining,
Image is searched in tissue bank according to color value range;
(2.3) n matching image is filtered out from the image searched, that is, calculates the image and sample fabric figure searched
The color difference of picture is arranged the image searched by color difference from small to large ord, and the n images searched are as matching before choosing
Image;
(3) flower pattern of n matching image is compared with the flower pattern of sample fabric, specific as follows:
It is counted after extracting the pattern profile of matching image and sample fabric after n matching image is numbered from 1 to n respectively
Calculate flower pattern difference in areas Δ Si=| Si-S0|, wherein S0For the flower pattern area of sample fabric, SiFor the flower pattern face of i-th of matching image
Product, i=1,2...n, if Δ Si≤0.05S0(or on demand set other feasible values), then i-th of matching image and sample
The flower pattern of fabric is consistent, on the contrary then inconsistent;
If any flower pattern it is consistent and using CIELAB color difference formula be calculated color difference meet Δ E < 1 image it is then direct
Produced, if any flower pattern is consistent but color difference be unsatisfactory for the image of Δ E < 1 then to the Lab value of sample fabric image be finely adjusted to
Color difference is produced after meeting the requirements;
CAD is used given birth to after Fabric Simulation designs the image met the requirements if the consistent image of no flower pattern
It produces, the specific steps are as follows:
1) it with the Lab value of Datacolor measurement sample fabric color, then generates QTX file and imports in CAD;
2) flower pattern library is first selected in CAD, reselection tissue bank carries out yarn row according to the flower pattern of selection and institutional framework
Column and yarn design obtain CAD paper card;
3) aobvious Xiang Xiaoguo is selected according to the arranging density of yarn, when through it is close less than 100 per inch when using aobvious latitude effect,
When through it is close be greater than 100 per inch less than 180 per inch when without using aobvious Xiang Xiaoguo, when through it is close be greater than 180 per inch when
Using aobvious through effect;
4) color of CAD paper card is modified according to the coefficient transformation model of different colour systems, the difference colour system is
Number transformation models be respectively red colour system (L-x, a+y, b+z), blue series (L-x, a+y, b-z), yellow class (L+x, a-y, b+z),
Green system (L-x, a-y, b+z), violet (L-x, a+y, b+z), grey colour system (L-x, a+y, b+z), brown system (L-x, a-y, b+
Z), black system (L-x, a+y, b-z), wherein L, a and b are the color value of sample fabric, and x, y and z are constant, value range point
It Wei 1~5,1~8 and 1~10;
5) judge whether CAD paper card meets the requirements, if it is, production, on the contrary then return step 4) continue to correct.
It designs after finally obtained image is numbered finally, Fabric Simulation will be carried out using CAD by flower pattern, knot of tissue
Structure, the ingredient of fabric, warp-wise yarn branch, broadwise yarn count, fabric tissue and through into color typing fabric image database, to expand
Data in developable surface material image database, when data are enough in fabric image database, client can be in fabric image number
It places an order according to flower pattern required for on-line selection in library oneself and color direct-on-line.
A kind of color-woven fabric design producing method of fast reaction of the invention, saved find need fabric expend when
Between and human cost, significantly shorten design and the production cycle of color-woven fabric, realize the quick, efficient of sample fabric
With accurate design and production.
Comparative example 1
A kind of color-woven fabric design producing method, as shown in figure 3, sample fabric sets up meter by dyed yarn, laboratory is dyed,
Looming weaving, later period sample cloth arrange, product inspection and a series of final hair design production procedures of sample need to spend 4 day time in total,
And 1 day time need to be only spent using the design producing method of the embodiment of the present invention 1.
Embodiment 1 and comparative example 1 are compared as can be seen that design producing method of the invention significantly shortens color
The design of knitted fabric and production cycle realize quick, efficient and accurate design and the production of sample fabric.