CN107403042B - Cloth wiring method, cloth wiring device, readable storage medium and computer equipment - Google Patents

Cloth wiring method, cloth wiring device, readable storage medium and computer equipment Download PDF

Info

Publication number
CN107403042B
CN107403042B CN201710601923.6A CN201710601923A CN107403042B CN 107403042 B CN107403042 B CN 107403042B CN 201710601923 A CN201710601923 A CN 201710601923A CN 107403042 B CN107403042 B CN 107403042B
Authority
CN
China
Prior art keywords
color
value
cloth
wired
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710601923.6A
Other languages
Chinese (zh)
Other versions
CN107403042A (en
Inventor
余美玲
陈玲
徐德莉
童汉标
李彩霞
潘远明
谢丽仪
刘艳
张向敏
陈刚国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Esquel Textiles Co Ltd
Original Assignee
Guangdong Esquel Textiles Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Esquel Textiles Co Ltd filed Critical Guangdong Esquel Textiles Co Ltd
Priority to CN201710601923.6A priority Critical patent/CN107403042B/en
Publication of CN107403042A publication Critical patent/CN107403042A/en
Application granted granted Critical
Publication of CN107403042B publication Critical patent/CN107403042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/12Cloth

Abstract

The invention relates to a cloth wiring method, a cloth wiring device, a readable storage medium and computer equipment. The cloth wiring method comprises the following steps: acquiring a color value corresponding to the cloth to be distributed, a color element value and color values of alternative lines of a plurality of color numbers; respectively acquiring color differences between the cloth to be wired and each alternative line according to the color value, the color element value and the color value of the cloth to be wired; and selecting a line matched with the cloth to be wired from the corresponding alternative lines according to the plurality of color differences. Therefore, the lines matched with the cloth to be distributed can be automatically selected, the color difference analysis of human eyes by workers is not needed, the difference caused by human eye judgment can be avoided, and the distribution accuracy is improved.

Description

Cloth wiring method, cloth wiring device, readable storage medium and computer equipment
Technical Field
The invention relates to the technical field of textile, in particular to a cloth wiring method, a cloth wiring device, a readable storage medium and computer equipment.
Background
After receiving the cloth, the garment factory needs to select a thread with a color matched with the cloth so as to be used in garment making.
In a conventional method for distributing cloth, a line card and the cloth are manually compared, and a line card with a color closest to that of the cloth is selected, so that a line corresponding to the selected line card is used as a line matched with the cloth. The mode of comparing colors manually is easy to cause the situation of difference judgment by human eyes, thus leading to low wiring accuracy.
Disclosure of Invention
In view of the above, it is necessary to provide a cloth wiring method, a cloth wiring apparatus, a readable storage medium, and a computer device that can improve the wiring accuracy, in order to solve the problem of low accuracy of the conventional wiring method.
A cloth wiring method comprising:
acquiring a color value and a color element value corresponding to the cloth to be distributed;
acquiring color values of alternative lines of a plurality of color numbers;
respectively acquiring color differences between the cloth to be wired and each alternative line according to the color value, the color element value and the color value of each alternative line of the cloth to be wired;
and selecting a line matched with the cloth to be wired from the corresponding alternative lines according to the plurality of color differences.
A cloth wiring device comprising:
the first color value acquisition module is used for acquiring a color value and a color element value corresponding to the cloth to be wired;
the second color value acquisition module is used for acquiring color values of the alternative lines of the plurality of color numbers;
the color difference calculation module is used for respectively acquiring the color difference between the cloth to be wired and each alternative line according to the color value, the color element value and the color value of each alternative line of the cloth to be wired;
and the selecting and matching module is used for selecting a line matched with the cloth to be distributed from the corresponding alternative lines according to the plurality of color differences.
According to the method and the device for distributing the wires, the color value, the color element value and the color values of the multiple alternative lines of the color number corresponding to the to-be-distributed wires are obtained, then the color difference between the to-be-distributed wires and the alternative lines is respectively obtained according to the color value, the color element value and the color value of the alternative lines, and then the lines matched with the to-be-distributed wires are selected from the corresponding alternative lines according to the multiple color differences; therefore, the lines matched with the cloth to be distributed can be automatically selected, the color difference analysis of human eyes by workers is not needed, the difference caused by human eye judgment can be avoided, and the distribution accuracy is improved; simultaneously, through automatic matching, can reduce artifical working strength and improve distribution efficiency.
A readable storage medium stores a computer program, and the stored computer program realizes the steps of the above-described cloth wiring method when executed by a processor.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above-described cloth wiring method when executing the computer program.
The readable storage medium and the computer equipment realize the distribution wiring method, and can improve the wiring accuracy in the same way; meanwhile, the labor intensity can be reduced and the wiring efficiency can be improved.
Drawings
FIG. 1 is a flow chart of a method of distributing wiring in an embodiment;
FIG. 2 is a flowchart showing the steps of determining whether the woven fabric satisfies the predetermined white line matching condition;
FIG. 3 is a flow chart of a method of distributing wiring in another embodiment;
fig. 4 is a structural diagram of a distribution wiring device in an embodiment.
Detailed Description
Referring to fig. 1, a method of distributing wiring in an embodiment includes steps S110 to S170.
S110: and acquiring a color value and a color element value corresponding to the cloth to be wired.
Color values refer to the corresponding color values in a color mode. The color element value refers to a parameter value for representing a color attribute, and may include at least one of lightness, hue, and saturation. The color mode may be any of an RGB mode, a Lab color mode, a CMYK mode, an HSB mode, and the like, and a parameter indicating a color is associated with each color mode. For example, the parameters representing the color in the RGB mode include three values of R, G, and B, and when the RGB mode is used to represent the color, the color values include the R, G, and B values; the parameters for representing the color in the Lab color mode comprise three values of an L value, an a value and a b value, and when the Lab color mode is used for representing the color, the color value comprises the L value, the a value and the b value.
The color value and the color element value corresponding to the cloth to be wired may be obtained by receiving input information, for example, a worker manually inputs the color value and the color element value after determining the color value and the color element value of the cloth to be wired, in this case, step S110 includes: and receiving the input color value and the color element value to obtain the color value and the color element value corresponding to the cloth to be wired. The color value and the color element value corresponding to the cloth to be wired may also be obtained by searching, for example, the database stores in advance the corresponding relationship between the cloth identification information of each cloth and the color value and the color element value, where the cloth identification information refers to a mark for identifying the cloth, such as a name or a number, and the worker inputs the cloth identification information, and correspondingly, step S110 includes: and searching the corresponding color value and color element value according to the input cloth identification information to obtain the color value and color element value corresponding to the cloth to be wired.
S130: and acquiring color values of the alternative lines of a plurality of color numbers.
The color number indicates a symbol number for representing a color; the alternative line refers to a standby line which can be matched with the cloth to be distributed; the plurality of color numbers refer to two or more color numbers. One color number may correspond to one or more alternative lines, for example, if all alternative lines are provided by the same supplier, one color number corresponds to one alternative line; if there are several suppliers providing the optional lines, one color number may correspond to several optional lines and different suppliers. Specifically, step S130 may include: and searching the color values corresponding to the alternative lines of the plurality of color numbers from the database.
The execution sequence of step S130 and step S110 is not limited, that is, step S110 may be executed first, step S130 may be executed first, or step S110 and step S130 may be executed simultaneously.
S150: and respectively acquiring the color difference between the cloth to be distributed and each alternative line according to the color value, the color element value and the color value of the cloth to be distributed.
Color difference refers to a difference value of colors; the size of the color difference reflects the difference between the color corresponding to the color number of the alternative line and the color of the cloth to be wired. The smaller the color difference is, the smaller the difference between the color corresponding to the color number of the corresponding alternative line and the color of the cloth to be wired is.
S170: and selecting a line matched with the cloth to be wired from the corresponding alternative lines according to the plurality of color differences.
The number of color differences is equal to the number of candidate lines. According to the color difference matching line, the matching can be carried out according to the size of the color difference. Specifically, step S170 may include: and selecting the minimum color difference from the plurality of color differences, and taking the alternative line corresponding to the minimum color difference as a line matched with the cloth to be wired. It is understood that step S170 may further include: and selecting a color difference smaller than a preset value from the plurality of color differences, and taking an alternative line corresponding to the selected color difference as a line matched with the cloth to be wired. Alternatively, step S170 may further include: and sequencing the plurality of color differences from small to large, and taking the alternative lines corresponding to the color differences with the preset number in the front ranking as lines matched with the cloth to be wired.
The cloth wiring method comprises the steps of obtaining a color value corresponding to the cloth to be wired, a color element value and color values of multiple color number alternative lines, respectively obtaining the color difference between the cloth to be wired and the alternative lines according to the color value, the color element value and the color value of the alternative lines, and selecting lines matched with the cloth to be wired from the corresponding alternative lines according to the color differences; therefore, the lines matched with the cloth to be distributed can be automatically selected, the color difference analysis of human eyes by workers is not needed, the difference caused by human eye judgment can be avoided, and the distribution accuracy is improved; simultaneously, through automatic matching, can reduce artifical working strength and improve distribution efficiency.
Types of cloth generally include knitted cloth and woven cloth. In an embodiment, before the step S110, the method further includes steps (a1) to (a 3).
Step (a 1): if the fabric to be wired is a knitted fabric, step S110 is performed.
When the cloth to be wired is a knitted cloth, executing the step S110 until a line matched with the knitted cloth is obtained; in this way, all the knitted fabrics adopt a mode of wiring according to color difference.
Step (a 2): if the cloth to be distributed is the woven fabric, whether the woven fabric meets the preset white line distribution condition is judged. If not, executing step S110; if yes, go to step (a 3).
The white thread matching condition refers to a condition for matching white threads with the woven fabric and can be specifically set according to actual needs. For the woven fabric that does not satisfy the white line matching condition, wiring is performed according to the color difference by performing step S110.
Step (a 3): and taking the alternative line with the color number corresponding to the white color as a line matched with the cloth to be wired.
Each color number corresponds to a color. For the woven fabric meeting the condition of white line distribution, the alternative line with the color number corresponding to the white color is directly selected to be matched with the cloth to be distributed.
The woven fabric is formed by vertically interweaving yarns in warp and weft directions, and the color composition of the woven fabric is generally more complex than that of knitted fabric. By performing type analysis on the cloth to be wired before the step S110, the step S110 is performed on the knitted cloth and the woven fabric which does not satisfy the white-line matching condition to directly match the woven fabric which satisfies the white-line matching condition with the white line according to the color difference wiring, and the accuracy of matching the cloth and the line can be improved by performing classification matching.
In an embodiment, referring to fig. 2, the step of determining whether the woven fabric satisfies the predetermined blank line condition includes steps S101 to S106.
S101: and obtaining the white bottom area proportion of the woven fabric.
The white bottom area ratio refers to the ratio of the area of the white yarns to the total area of the fabric. Specifically, step S101 includes: and receiving the cloth identification information of the input woven fabric, and searching the white bottom area ratio corresponding to the cloth identification information. Correspondingly, various kinds of shuttle fabrics and information of the white background area ratio are correspondingly stored in the database in advance, and the white background area ratio is obtained by inquiring the database. It is understood that, in step S110, the white background area ratio may also be obtained in other manners, such as obtaining the total number of yarns of each unit pattern of the woven fabric and the number of white yarns in the warp direction or the weft direction, and calculating the white background area ratio according to the total number of yarns and the number of white yarns.
S102: and if the white bottom area ratio is smaller than the first preset value, acquiring the color degree and the white yarn occupation ratio of the woven fabric.
The first preset value can be specifically set according to actual needs; in this embodiment, the first preset value is 10%. The color degree of the woven fabric refers to the color depth of the woven fabric, and the woven fabric is sequentially arranged into three colors, namely dark color, medium color and light color from high to low. The white yarn occupation ratio refers to the ratio of the amount of white yarn used in the woven fabric to the amount of the total yarn.
Specifically, the color degree and the white yarn occupation ratio of the woven fabric can be obtained by receiving input information, namely the color degree and the white yarn occupation ratio can be directly and manually input; it can be understood that dye data, white yarn usage and total yarn usage used by the woven fabric can be obtained, the color degree can be obtained according to the dye data used, and the white yarn occupation proportion can be calculated according to the white yarn usage and the total yarn usage. For example, if the amount of the deep color dye is within the preset deep color amount range, the color degree of the woven fabric is deep color, if the amount of the deep color dye is within the preset medium color amount range, the color degree of the woven fabric is medium color, and if the amount of the deep color dye is within the preset light color amount range, the color degree of the woven fabric is light color.
S103: and when the color degree of the woven fabric is medium color or light color and the white yarn occupation ratio is greater than the preset ratio, judging that the woven fabric meets the white yarn matching condition.
The preset proportion can be specifically set according to actual needs; in this embodiment, the predetermined ratio is 20%.
S104: and if the area ratio of the white bottom is greater than or equal to a first preset value and less than or equal to a second preset value, acquiring a first dominant color of the woven fabric.
The second preset value can be specifically set according to actual needs; in this embodiment, the second preset value is 20%. The first dominant color of the woven fabric refers to the color that is a predominant proportion of the color. Specifically, the first dominant color of the woven fabric may be obtained by receiving input information, that is, information of the first dominant color may be manually input by a worker; or the amount of the dye of each color used by the woven fabric can be obtained, and the maximum amount is selected to correspond to the color of the dye to obtain the first dominant color.
S105: and when the first main color of the woven fabric is the preset color, judging that the woven fabric does not meet the white line matching condition.
The preset color is a pre-stored color which is not suitable for the white line and can be set according to actual requirements; in this embodiment, the preset colors include black and navy blue; the first dominant color of the woven fabric is black or navy, and the white line condition is not satisfied. It is understood that in other embodiments, the preset color may also include other dark color types of colors.
S106: and if the area ratio of the white bottom is greater than a second preset value, judging that the woven fabric meets the preset white line matching condition.
Whether the woven fabric meets the white line matching condition or not is judged by analyzing the white bottom area proportion, the color degree, the white yarn occupation proportion and the first dominant color of the woven fabric, and the accuracy of the white line matching condition judgment can be improved by comprehensively considering a plurality of factors, so that the accuracy of wiring is improved.
In one embodiment, referring to fig. 3, step S130 includes steps S131 to S133.
S131: optional vendor information is obtained.
For the cloth matching line, the supplier of the line can be specified according to the requirement, for example, the supplier X is specified, and then the line matched with the cloth is selected from the lines supplied by the supplier X. The optional provider information refers to information specifying a provider from which a matching line is to be picked, and may be name information of the provider. Specifically, the optional supplier information may be manually entered by a worker.
S132: and selecting a plurality of color number alternative lines corresponding to the selectable supplier information from all the alternative lines.
The alternative lines are provided by suppliers, and one supplier information may correspond to the alternative lines of a plurality of color numbers. Step S132 is specifically to select an alternative line with the corresponding provider information consistent with the optional provider information.
S133: and acquiring the color value of the selected alternative line.
By determining the corresponding alternative lines according to the selectable supplier information, wiring selection can be performed according to different supply requirements, and flexibility of wiring is improved. For example, the selectable lines include lines provided by various suppliers, and if the demander of the cloth to be wired specifies to use the line of the supplier X, the lines provided by the supplier X in various color numbers are used as the selectable lines, and the lines matched with the cloth to be wired are selected from the selectable lines without considering the lines of other suppliers.
In one embodiment, the color values include the L value, a value, and b value of the Lab color mode, and the color element values include the saturation and hue. Correspondingly, with continued reference to fig. 3, step S150 includes steps S151 through S155.
S151: and respectively calculating a lightness weighting coefficient, a saturation weighting coefficient and a hue weighting coefficient according to the L value, the saturation and the hue of the cloth to be wired.
S152: and calculating the difference of the L value, the difference of the a value and the difference of the b value according to the L value, the a value and the b value of the cloth to be distributed and the L value, the a value and the b value of the alternative line.
Specifically, the difference of the L values, the difference of the a values, and the difference of the b values are obtained by subtracting the L value, the a value, and the b value of the cloth to be wired from the L value, the a value, and the b value of the alternative line, respectively.
S153: and calculating to obtain a first parameter according to the value a and the value b of the cloth to be distributed and the value a and the value b of the alternative line.
S154: and calculating to obtain a second parameter according to the difference of the values a and b and the first parameter.
S155: and calculating the color difference between the cloth to be distributed and the corresponding alternative line according to the lightness weighting coefficient, the saturation weighting coefficient, the hue weighting coefficient, the difference value of the L values, the first parameter, the second parameter, the first preset factor and the second preset factor.
The first preset factor and the second preset factor can be specifically set according to actual conditions. Specifically, the first preset factor is a parameter for adjusting brightness relative to wide capacity, and the second preset factor is a parameter for adjusting saturation relative to wide capacity; in this embodiment, the first predetermined factor is 2, and the second predetermined factor is 1.
The color value is expressed by adopting the Lab color mode, and the color difference is obtained according to the saturation, the hue, the L value, the a value and the b value of the Lab color mode, so that the accuracy is high.
In one embodiment, step S151 includes:
Figure BDA0001357359790000071
SC=0.0638C/(1+0.0131C)+0.638 (2);
SH=SC(FT+1-F) (3);
F=[(C4)/((C4)+1900)]1/2(4);
Figure BDA0001357359790000081
step S153 includes:
ΔC=(a1 2+b1 2)1/2-(a2+b2)1/2(6);
step S154 includes:
ΔH=[(Δa)2+(Δb)2-(ΔC)2]1/2(7);
step S155 includes:
ΔE=[(ΔL/l0SL)2+(ΔC/c0SC)2+(ΔH/SH)2]1/2(8);
wherein L is the value L of the cloth to be wired, C is the saturation of the cloth to be wired, h is the hue of the cloth to be wired, F and T are a first intermediate parameter and a second intermediate parameter respectively, SLWeighting coefficients being lightness, SCWeighting coefficients for saturation, SHIs a weighting factor for the hue.
a1And b1Respectively representing the value a and the value b of the cloth to be distributed, wherein the value a and the value b are respectively representing the value a and the value b of the alternative line, and the value delta C is a first parameter; delta a is the difference of the values a, delta b is the difference of the values b, and delta H is a second parameter; Δ L is the difference in the values of L, L0And c0Respectively, a first preset factor and a second preset factor, and Δ E is a color difference.
In an embodiment, step S170 is followed by step (b1) and step (b 2).
Step (b 1): and correspondingly storing the information of the cloth to be distributed and the information of the matched line and outputting theoretical matching information.
The information of the cloth to be wired refers to information for identifying the cloth, such as the name or number of the cloth; the information of the line refers to information for identifying the line, and may include supplier information and a color number. Specifically, the theoretical matching information may be output to a display for display.
Step (b 2): and when receiving the input information of the lines of the cloth to be distributed in manual matching, correspondingly storing the input information of the lines and the information of the cloth to be matched and outputting actual matching information.
The information of the lines of the cloth to be wired is manually matched, which means that the information of the lines of the cloth to be wired is actually used by the worker and is specifically manually input. For example, if the line matching the cloth to be wired obtained in steps S110 to S170 is the line a and the line actually used by the worker for the cloth to be wired is the line B, the information on the line received in step (B2) is the information on the line B. Specifically, the actual matching information may be output to a display for display.
By respectively storing and outputting the theoretical matching information and the actual matching information, the results of the theoretical matching and the actual matching can be conveniently checked by the staff, and can be stored as historical data, so that the convenience is high.
Referring to fig. 4, the distribution wiring device in an embodiment includes a first color value obtaining module 110, a second color value obtaining module 130, a color difference calculating module 150, and a selecting and matching module 170.
The first color value obtaining module 110 is configured to obtain a color value and a color element value corresponding to a fabric to be wired.
The color value and the color element value corresponding to the cloth to be wired can be obtained by receiving input information or by searching.
The second color value obtaining module 130 is configured to obtain color values of alternative lines of a plurality of color numbers.
Specifically, the second color value obtaining module 130 may search the database for the color value corresponding to the alternative line of each color number.
The color difference calculating module 150 is configured to obtain color differences between the cloth to be wired and each of the alternative lines according to the color value of the cloth to be wired, the color element value, and the color value of each of the alternative lines.
The selecting and matching module 170 is configured to select a line matched with the cloth to be wired from the corresponding candidate lines according to the plurality of color differences.
In the distribution wiring device, the first color value acquisition module 110 acquires color values of a plurality of color number candidate lines corresponding to a to-be-wired cloth, the color element value and the second color value acquisition module 130, the color difference calculation module 150 respectively acquires color differences between the to-be-wired cloth and the candidate lines according to the color values of the to-be-wired cloth, the color element values and the color values of the candidate lines, and the selection matching module 170 selects a line matched with the to-be-wired cloth from the corresponding candidate lines according to the color differences; therefore, the lines matched with the cloth to be distributed can be automatically selected, the color difference analysis of human eyes by workers is not needed, the difference caused by human eye judgment can be avoided, and the distribution accuracy is improved; simultaneously, through automatic matching, can reduce artifical working strength and improve distribution efficiency.
In an embodiment, the fabric distribution device further includes a classification module (not shown) configured to control to execute the function of the first color value obtaining module 110 when the fabric to be distributed is a knitted fabric, determine whether the woven fabric meets a preset white line distribution condition when the fabric to be distributed is a woven fabric, if not, control to execute the function of the first color value obtaining module 110, and if so, use a candidate line whose color number corresponds to the color of white as a line matching the fabric to be distributed.
The type of the cloth to be distributed is analyzed, the knitted cloth and the woven cloth which does not meet the white line distribution condition are distributed according to the color difference, the woven cloth which meets the white line distribution condition is directly matched with the white line, and the accuracy of matching the cloth and the line can be improved by classifying and matching.
In an embodiment, the classifying module determines whether the woven fabric meets a preset blank line condition, and specifically includes: the classification module acquires the white bottom area proportion of the woven fabric; if the white bottom area proportion is smaller than a first preset value, acquiring the color degree and the white yarn occupation proportion of the woven fabric, and judging that the woven fabric meets the white yarn matching condition when the color degree of the woven fabric is medium color or light color and the white yarn occupation proportion is larger than the preset proportion; if the area ratio of the white bottom is greater than or equal to a first preset value and less than or equal to a second preset value, acquiring a first dominant color of the woven fabric, and when the first dominant color of the woven fabric is a preset color, judging that the woven fabric does not meet the white line matching condition; and if the area ratio of the white bottom is greater than a second preset value, judging that the woven fabric meets the preset white line matching condition.
Whether the woven fabric meets the white line matching condition or not is judged by analyzing the white bottom area proportion, the color degree, the white yarn occupation proportion and the first dominant color of the woven fabric, and the accuracy of the white line matching condition judgment can be improved by comprehensively considering a plurality of factors, so that the accuracy of wiring is improved.
In an embodiment, the second color value obtaining module 130 is specifically configured to: and acquiring selectable supplier information, selecting a plurality of color number alternative lines corresponding to the selectable supplier information from all the alternative lines, and acquiring color values of the selected alternative lines.
By determining the corresponding alternative lines according to the selectable supplier information, wiring selection can be performed according to different supply requirements, and flexibility of wiring is improved.
In an embodiment, the color difference calculating module 150 is specifically configured to: calculating a lightness weighting coefficient, a saturation weighting coefficient and a hue weighting coefficient according to the L value, the saturation and the hue of the cloth to be wired respectively; calculating to obtain a difference value of the L value, a value difference value of the a value and a difference value of the b value according to the L value, the a value and the b value of the cloth to be distributed and the L value, the a value and the b value of the alternative line; calculating to obtain a first parameter according to the value a and the value b of the cloth to be distributed and the value a and the value b of the alternative line; calculating to obtain a second parameter according to the difference value of the values a and b and the first parameter; and calculating the color difference between the cloth to be distributed and the corresponding alternative line according to the lightness weighting coefficient, the saturation weighting coefficient, the hue weighting coefficient, the difference value of the L values, the first parameter, the second parameter, the first preset factor and the second preset factor.
The color value is expressed by adopting the Lab color mode, and the color difference is obtained according to the saturation, the hue, the L value, the a value and the b value of the Lab color mode, so that the accuracy is high.
Specifically, the color difference calculation module 150 may calculate the color difference by using the formula (1) to the formula (8) in the above-mentioned distribution wiring method.
In an embodiment, the cloth distributing apparatus further includes a storage and output module (not shown) configured to store information of a cloth to be distributed and information of a matched line correspondingly and output theoretical matching information, and when receiving input information of a line manually matched with the cloth to be distributed, store the input information of the line and the information of the cloth to be matched correspondingly and output actual matching information.
By respectively storing and outputting the theoretical matching information and the actual matching information, the results of the theoretical matching and the actual matching can be conveniently checked by the staff, and can be stored as historical data, so that the convenience is high.
A readable storage medium stores a computer program, and the stored computer program realizes the steps of the above-described cloth wiring method when executed by a processor.
A computer device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and the steps of the cloth wiring method are realized when the processor executes the computer program.
The readable storage medium and the computer equipment realize the distribution wiring method, and can improve the wiring accuracy in the same way; meanwhile, the labor intensity can be reduced and the wiring efficiency can be improved.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A cloth wiring method is characterized by comprising the following steps:
acquiring a color value and a color element value corresponding to the cloth to be distributed;
acquiring color values of alternative lines of a plurality of color numbers;
respectively acquiring color differences between the cloth to be wired and each alternative line according to the color value, the color element value and the color value of each alternative line of the cloth to be wired;
selecting a line matched with the cloth to be wired from the corresponding alternative lines according to the plurality of color differences;
before the color value and the color element value corresponding to the cloth to be wired are obtained, the method further comprises the following steps:
if the cloth to be distributed is a knitted cloth, the step of obtaining the color value and the color element value corresponding to the cloth to be distributed is executed;
if the cloth to be distributed is woven fabric, judging whether the woven fabric meets a preset white line distribution condition;
if not, executing the step of acquiring the color value and the color element value corresponding to the cloth to be wired;
and if so, taking the alternative line with the color number corresponding to the white color as the line matched with the cloth to be wired.
2. The cloth wiring method according to claim 1, wherein the determining whether the woven cloth satisfies a preset white line matching condition includes:
acquiring the white bottom area proportion of the woven fabric;
if the white bottom area ratio is smaller than a first preset value, acquiring the color degree and the white yarn occupation ratio of the woven fabric;
when the color degree of the woven fabric is medium color or light color and the white yarn occupation ratio is greater than a preset ratio, judging that the woven fabric meets the white yarn matching condition;
if the white background area ratio is greater than or equal to the first preset value and less than or equal to a second preset value, acquiring a first dominant color of the woven fabric;
when the first dominant color of the woven fabric is a preset color, judging that the woven fabric does not meet the condition of the white line matching;
and if the white bottom area ratio is larger than the second preset value, judging that the woven fabric meets the preset white line matching condition.
3. The cloth wiring method of claim 1, wherein the obtaining color values of the alternative lines of the plurality of color numbers comprises:
acquiring optional supplier information;
selecting a plurality of color number alternative lines corresponding to the alternative supplier information from all the alternative lines;
and acquiring the color value of the selected alternative line.
4. The cloth wiring method as defined in claim 1, wherein the color values include an L value, an a value and a b value of a Lab color mode, and the color element values include a saturation and a hue; the obtaining, according to the color value of the cloth to be wired, the color element value, and the color value of each alternative line, the color difference between the cloth to be wired and each alternative line, includes:
calculating to obtain a lightness weighting coefficient, a saturation weighting coefficient and a hue weighting coefficient according to the L value, the saturation and the hue of the cloth to be wired respectively;
calculating the difference of the L value, the difference of the a value and the difference of the b value according to the L value, the a value and the b value of the cloth to be distributed and the L value, the a value and the b value of the alternative line;
calculating to obtain a first parameter according to the value a and the value b of the cloth to be distributed and the value a and the value b of the alternative line;
calculating to obtain a second parameter according to the difference of the values a, the difference of the values b and the first parameter;
and calculating the color difference between the cloth to be distributed and the corresponding alternative line according to the lightness weighting coefficient, the saturation weighting coefficient, the hue weighting coefficient, the difference value of the L value, the first parameter, the second parameter, the first preset factor and the second preset factor.
5. The cloth wiring method according to claim 4, wherein the calculating of the weighting coefficient of lightness, the weighting coefficient of saturation, and the weighting coefficient of hue according to the L value, the saturation, and the hue of the cloth to be wired respectively comprises:
Figure FDA0002592386430000021
SC=0.0638C/(1+0.0131C)+0.638;
SH=SC(FT+1-F);
F=[(C4)/((C4)+1900)]1/2
Figure FDA0002592386430000031
the calculating according to the value a and the value b of the cloth to be distributed and the value a and the value b of the alternative line to obtain a first parameter comprises:
ΔC=(a1 2+b1 2)1/2-(a2+b2)1/2
the calculating a second parameter according to the difference of the values a, the difference of the values b and the first parameter includes:
ΔH=[(Δa)2+(Δb)2-(ΔC)2]1/2
the calculating according to the weighting coefficient of the lightness, the weighting coefficient of the saturation, the weighting coefficient of the hue, the difference value of the L value, the first parameter, the second parameter, a first preset factor and a second preset factor to obtain the color difference between the cloth to be wired and the corresponding alternative line includes:
ΔE=[(ΔL/l0SL)2+(ΔC/c0SC)2+(ΔH/SH)2]1/2
wherein L is the value L of the cloth to be wired, C is the saturation of the cloth to be wired, h is the hue of the cloth to be wired, F and T are respectively a first intermediate parameter and a second intermediate parameter, SLIs a weighting coefficient of the lightness, SCAs a weighting factor for said saturation, SHA weighting factor for the hue;
a1and b1Respectively representing the value a and the value b of the cloth to be distributed, wherein the value a and the value b of the alternative line are respectively represented by a, and delta C is the first parameter; Δ a is the difference of the values a, Δ b is the difference of the values b, and Δ H is the second parameter; Δ L is the difference in the values of L,/0And c0The first preset factor and the second preset factor are respectively, Δ E is the color difference, the first preset factor is a parameter for adjusting lightness relative to width, and the second preset factor is a parameter for adjusting saturation relative to width.
6. The cloth wiring method of claim 1, wherein after selecting a line matching the cloth to be wired from the corresponding candidate lines according to the plurality of color differences, the method further comprises:
correspondingly storing the information of the cloth to be distributed and the information of the matched line and outputting theoretical matching information;
and when receiving the input information of the lines of the cloth to be distributed which is manually matched, correspondingly storing the input information of the lines and the information of the cloth to be matched and outputting actual matching information.
7. A cloth wiring device characterized by comprising:
the first color value acquisition module is used for acquiring a color value and a color element value corresponding to the cloth to be wired;
the second color value acquisition module is used for acquiring color values of the alternative lines of the plurality of color numbers;
the color difference calculation module is used for respectively acquiring the color difference between the cloth to be wired and each alternative line according to the color value, the color element value and the color value of each alternative line of the cloth to be wired;
the selecting and matching module is used for selecting a line matched with the cloth to be wired from the corresponding alternative lines according to the plurality of color differences;
and the classification module is used for controlling and executing the function of the first color value acquisition module when the cloth to be distributed is knitted cloth, judging whether the woven cloth meets a preset white line matching condition or not when the cloth to be distributed is woven cloth, if not, controlling and executing the function of the first color value acquisition module, and if so, taking an alternative line with a color number corresponding to the white color as a line matched with the cloth to be distributed.
8. A readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
9. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1-6 are implemented when the computer program is executed by the processor.
CN201710601923.6A 2017-07-21 2017-07-21 Cloth wiring method, cloth wiring device, readable storage medium and computer equipment Active CN107403042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710601923.6A CN107403042B (en) 2017-07-21 2017-07-21 Cloth wiring method, cloth wiring device, readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710601923.6A CN107403042B (en) 2017-07-21 2017-07-21 Cloth wiring method, cloth wiring device, readable storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN107403042A CN107403042A (en) 2017-11-28
CN107403042B true CN107403042B (en) 2020-10-30

Family

ID=60402266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710601923.6A Active CN107403042B (en) 2017-07-21 2017-07-21 Cloth wiring method, cloth wiring device, readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN107403042B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111626696A (en) * 2020-05-19 2020-09-04 东彩塑胶颜料(深圳)有限公司 Rapid color matching method of plastic sample plate, terminal and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347142A (en) * 2013-07-01 2013-10-09 上海理工大学 Optimized color chart realization method based on color generation adaptation representation of digital equipment
WO2015005152A1 (en) * 2013-07-09 2015-01-15 Dicグラフィックス株式会社 Color sample generating system, color sample generating method, and program for same
CN104360796A (en) * 2014-12-08 2015-02-18 三星电子(中国)研发中心 Method and device for applying colors onto electronic equipment and electronic equipment
CN105696378A (en) * 2016-03-25 2016-06-22 广东溢达纺织有限公司 Non-aqueous-medium dyeing and washing-free color fixation method for reactive dye
CN106156188A (en) * 2015-04-20 2016-11-23 金泰线业(上海)有限公司 A kind of color searching method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2554903B2 (en) * 1987-11-27 1996-11-20 蛇の目ミシン工業株式会社 Sewing machine color display
US7184170B2 (en) * 2002-03-28 2007-02-27 Clariant Finance (Bvi) Limited Method and apparatus for color management
JP4524701B2 (en) * 2005-03-24 2010-08-18 Dic株式会社 Coloring material blending rate calculating device, method and program thereof
CN104572911A (en) * 2014-12-26 2015-04-29 浙江理工大学 Pre-spinning-colored fiber color testing and matching method
CN106226249A (en) * 2016-09-29 2016-12-14 成都齐力丝绸有限公司 A kind of color digitized Compare System and method
CN106504241A (en) * 2016-10-25 2017-03-15 西安交通大学 A kind of apparatus and method of checking colors automatically

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347142A (en) * 2013-07-01 2013-10-09 上海理工大学 Optimized color chart realization method based on color generation adaptation representation of digital equipment
WO2015005152A1 (en) * 2013-07-09 2015-01-15 Dicグラフィックス株式会社 Color sample generating system, color sample generating method, and program for same
CN104360796A (en) * 2014-12-08 2015-02-18 三星电子(中国)研发中心 Method and device for applying colors onto electronic equipment and electronic equipment
CN106156188A (en) * 2015-04-20 2016-11-23 金泰线业(上海)有限公司 A kind of color searching method and system
CN105696378A (en) * 2016-03-25 2016-06-22 广东溢达纺织有限公司 Non-aqueous-medium dyeing and washing-free color fixation method for reactive dye

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Evaluating the Uniformity of Color Spaces and Performance of Color Difference Formulae;Yusheng Lian et.al;《Proceedings of Conference 7852 LED and Display Technologies》;20120620;1-11 *
测色配色仪测定纺织面料深浅色初探;顾艳等;《中国纤检》;20120531;52-54 *
电脑测色配色在毛纺行业中的应用;宋杰等;《毛纺科技》;19981231(第1期);57-61 *
纺织品颜色分类及色差检测系统研究;王婧;《中国优秀硕士学位论文全文数据库工程科技Ⅰ辑(月刊)》;20160415(第 04 期);B024-19 *

Also Published As

Publication number Publication date
CN107403042A (en) 2017-11-28

Similar Documents

Publication Publication Date Title
JP2020523062A (en) Cleaning device control method and cleaning device
US8798781B2 (en) Method and system for converting an image to a color-reduced image mapped to embroidery thread colors
CN110198437B (en) Image processing method and device, storage medium and electronic device
JP2020524534A (en) Cleaning device control method and cleaning device
CN104978186B (en) A kind of rendering intent and device of interface skin
CN103820971A (en) Intelligent washing method based on wireless automatic identification technology for washing machine
US10465315B2 (en) Aggregating textiles for production
CN107724111B (en) Textile dyeing formula obtaining method and device, storage medium and computer equipment
CN107403042B (en) Cloth wiring method, cloth wiring device, readable storage medium and computer equipment
CN104856680A (en) Automatic detection method and system for neonatal jaundice
CN114742829B (en) Method and system for detecting defects of rayon
CN105862324A (en) Detection method and device for clothes to be washed in washing machine
US9043009B2 (en) Non-transitory computer-readable medium and device
US4688178A (en) Method and apparatus for inventory control to optimize usage of colored fabric
CN107730102B (en) Yarn dyeing weight correction method, device, storage medium and computer equipment
US10731280B2 (en) Non-transitory computer-readable storage medium storing embroidery data generation program, and embroidery data generation device
CN109978720A (en) Wear methods of marking, device, smart machine and storage medium
US8897909B2 (en) Embroidery data generation apparatus and computer program product
CN105765622A (en) Method and apparatus for assigning colours to an image
US9003985B2 (en) Device and non-transitory computer-readable medium
CN108873955B (en) Color matching method for dope-dyed textile material
US10083516B2 (en) Method for segmenting a color image and digital microscope
EP1953285B1 (en) Image simulation device and method of melange yarn and program
JP6617986B2 (en) Identification apparatus, information processing apparatus, program, and identification method
CN116070863B (en) Production management method and system for replaceable collar of shirt

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant