A computer-aided color matching pattern design method, device, storage medium and equipment
Through computer-aided design technology, the color matching mold design scheme is generated using data acquisition and reverse derivation, which solves the problems of low efficiency and difficulty in innovation in the existing technology, and achieves efficient and diversified design effects.
Patent Information
- Application Number
- CN202210177829.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2042-02-25
AI Technical Summary
The prior art relies on manual design in color matching mold design, resulting in low design efficiency and difficult to achieve innovation. Computer-aided design only improves presentation efficiency, but does not realize real computer design.
Through data collection, sorting and analysis, the computer derives rules and algorithms, and inversely deduces various possible design solutions for color matching molds for designers to refer to and apply.
It improves the success rate and efficiency of color matching mold design, reduces the time and cost of manual design, increases the diversity and innovation of the design, and can better adapt to the market's multi-color and small batch needs.
Smart Images

Figure CN114693599B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of color matching pattern design, and in particular to a computer-aided color matching pattern design method, device, storage medium and equipment. Background Art
[0002] Color matching pattern is a composite effect of color and structure obtained on the cloth surface by coordinating the fabric structure with the color arrangement of the warp and weft yarns. It can make simple structure obtain rich colors and patterns, or make the same structure obtain different colors and patterns. In the design of plain fabrics, it is a good design method that can enrich the color and texture effect of the fabric. It is widely used. Common ones include various stripes, plaids, small patterns, etc. Among them, the houndstooth pattern is one of the most classic applications.
[0003] The formation principle of color matching pattern is that the warp floating point shows the warp color, and the weft floating point shows the weft color. The final color matching pattern is formed by the combination of the warp and weft floating point colors. When designing the color matching pattern of the fabric, after determining the fabric structure and the warp and weft cycle of the colored yarn, the basic shape and color of the fabric color matching pattern can be determined. The main factors affecting the color matching pattern are the fabric structure, the position of the warp and weft structure points, the number of yarn colors, the arrangement of yarn colors, etc. Any change in any of these factors will cause the color matching pattern to change accordingly, forming patterns and colors with different effects.
[0004] Because the final effect of color matching pattern is the result of the interaction of multiple factors, it is a variable influence of many to one, and it is a very difficult design. It is completely dependent on the experience of designers to carry out manual design, which requires multiple attempts, high time and labor costs, and it is difficult to have outstanding innovations. Computer-aided design is currently widely used in color matching pattern design. Computers can help quickly obtain and simulate composite effects, but each variable setting such as organization and color arrangement organization is still manually set and still requires manual design. Computer assistance only improves the presentation efficiency, but it does not really achieve design through computers. Summary of the invention
[0005] The first object of the present invention is to provide a computer-aided color matching pattern design method to address the deficiencies in the prior art.
[0006] To this end, the above-mentioned purpose of the present invention is achieved through the following technical solutions:
[0007] A computer-aided color matching pattern design method, characterized in that: the computer-aided color matching pattern design method comprises the following steps:
[0008] S1. Collect and analyze data on a large number of existing color matching and pattern fabrics;
[0009] S2, organize data to transform it into learning information that can be recognized by computers or quickly retrieved;
[0010] S3, the computer obtains rules and algorithms through the big data information obtained in step S2;
[0011] S4. The computer reversely deduce the rules and algorithms obtained in step S3, and calculates various possible color matching patterns for the designer to refer to and apply based on the effect the designer wants to achieve in the end.
[0012] Or simply input simple instructions or data to limit the final color matching pattern effect and its parameters, so as to achieve the designer's expected design concept.
[0013] While adopting the above technical solutions, the present invention may also adopt or combine the following technical solutions:
[0014] As a preferred technical solution of the present invention: Step S1 includes: collecting fabric data including plain weave, twill and jacquard, and the data of each weave fabric includes: fabric number, warp yarn color, warp yarn arrangement sequence, warp yarn cycle number, weft yarn color, weft yarn arrangement sequence, weft yarn cycle number, weave diagram, actual object, fabric color, weave-color yarn matrix diagram and fabric cloth color display diagram.
[0015] As the preferred technical solution of the present invention: step S2 includes: S2.1, defining fabric weave points and establishing a fabric weave point matrix; S2.2, defining warp and weft yarn colors and establishing a color yarn arrangement matrix; S2.3, establishing an association relationship between fabric weave points and warp and weft yarn colors.
[0016] As a preferred technical solution of the present invention: in step S2.1: use elements 1 and 0 to represent warp and weft floating points respectively, and then combine the number of warp and weft yarns in the fabric weave cycle to represent the fabric weave diagram with a two-dimensional 0-1 matrix.
[0017] As a preferred technical solution of the present invention: in step S2.2: the colors of the warp yarn and the weft yarn are represented by letters, and different letters are used to represent yarns of different colors. The warp yarn and the weft yarn of the same color can also be represented by the same letter. Combined with the number of warp and weft yarns in the fabric structure cycle, a matrix is used to represent the color yarn arrangement of the fabric.
[0018] As a preferred technical solution of the present invention: in step S2.3: a mathematical model association between the organization points and the colors of the warp and weft yarns is established with a color matching pattern matrix. Specifically, the color matching pattern matrix is constructed with the complete organization of the color matching pattern fabric, that is, the arrangement of the warp and weft yarns composed of the least yarns before the fabric organization is repeated. Each element in the color matching pattern matrix contains letters representing the warp and weft yarns, and also contains a character string formed by the numbers representing the organization points in the organization point matrix.
[0019] As a preferred technical solution of the present invention: the rule and algorithm in step S3 are obtained by:
[0020] In order to parse the color matching pattern matrix from the color matching pattern image, the corner point detection method is first used to obtain all the corner points of the image; then the longitude and latitude floating point lengths are obtained according to the distance between adjacent corner points; finally, the color matching pattern matrix is restored by combining the floating point color. ij ] N×M ;
[0021] In order to reduce the solution space and computational complexity, the minimum number of weave cycles is first calculated based on the color matching pattern matrix. Suppose the original fabric weave matrix is [x ij ] n×m , the color of the i-th weft yarn is r i , the color of the jth warp yarn is c j , then according to the target color pattern matrix, all warp and weft yarns must satisfy the following formula:
[0022] r i x ij +c j (1-x ij )=a ij ,i=1,2,...,n; j=1,2,...,m (1)
[0023] At the same time, since each warp or weft yarn has at least one weave point and cannot be all weave points, the weave matrix must satisfy the inequality constraint. Therefore, the following equation can be obtained by combining the above equation (1):
[0024]
[0025] Where: r i ,c j ,a ij ∈{1,2,...,n},x ij ∈{0,1}.
[0026] The second object of the present invention is to provide a computer-aided color matching pattern design device to address the deficiencies in the prior art.
[0027] To this end, the above-mentioned purpose of the present invention is achieved through the following technical solutions:
[0028] A computer-aided color matching and pattern design device, characterized in that: the computer-aided color matching and pattern design device comprises:
[0029] A data acquisition module is used to obtain a large amount of data parameter information of existing color matching pattern fabrics.
[0030] A data sorting module, which is used to sort the data parameter information collected by the data collection module to convert it into learning information that can be recognized or quickly retrieved by a computer;
[0031] A rule and algorithm deduction module, which is used to perform rule analysis and algorithm deduction based on the big data obtained by the data collection and sorting module;
[0032] The reverse deduction module is used to reversely deduce various possibilities of color matching patterns according to the law analysis and algorithm deduction results obtained in the law and algorithm deduction module and based on the effect that the designer finally wants to achieve.
[0033] The third object of the present invention is to provide a storage medium to address the deficiencies in the prior art.
[0034] To this end, the above-mentioned purpose of the present invention is achieved through the following technical solutions:
[0035] A storage medium, characterized in that: a computer program is stored on the storage medium, and the computer program is executed by a processor to implement the steps of the computer-aided color matching pattern design method as described above.
[0036] Another object of the present invention is to provide a device to address the deficiencies in the prior art.
[0037] To this end, the above-mentioned purpose of the present invention is achieved through the following technical solutions:
[0038] A device, characterized in that the device comprises:
[0039] A memory, the memory being used to store a computer program;
[0040] a processor for executing a computer program;
[0041] And a computer program, wherein the computer program is executed by a processor to implement the steps of the computer-aided color matching pattern design method as described above.
[0042] The present invention provides a computer-aided color matching pattern design method, device, storage medium and equipment, which realizes a design method of converting and calculating a plurality of reasonably selected organizational structures, warp and weft yarn arrangements and yarn colors from a pattern pattern through computer algorithms and applications, and then generates corresponding color matching pattern designs; the present invention changes the original many-to-one design thinking into a one-to-many restrictive design, greatly improves the success rate of color matching pattern design, improves design efficiency, greatly reduces design labor and time costs, and has more choices and greater room for development, and is more adaptable to the current market's requirements for small batches and multiple colors, which brings great benefits to fabric design. While maintaining stable development, the textile industry has taken the opportunity to increase design research and development and make good accumulation. The present invention will bring good news to design developers. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 The present invention provides a whole flow chart of the computer-aided color matching pattern design method.
[0044] Figure 2 It is a color matching pattern and corresponding schematic diagram.
[0045] Figure 3 This is a schematic diagram of inferring the fabric structure based on the color pattern.
[0046] Figure 4 This is an example of a fabric data table.
[0047] Figure 5 An example diagram of a twill weave and the corresponding weave dot matrix.
[0048] Figure 6 An example diagram of twill weave and the corresponding color yarn arrangement matrix
[0049] Figure 7 This is an example diagram of a color pattern matrix. DETAILED DESCRIPTION
[0050] The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
[0051] The present invention intends to break the traditional idea of computer-aided color matching pattern, and promote the entire color matching pattern design method in two directions, and at the same time promote it in reverse through computer algorithms.
[0052] The computer first understands the formation principle of the color matching pattern and the influence of each variable factor on the final composite effect. The color matching pattern can be divided into four areas to represent, such as Figure 2As shown in the figure: Area A is the organization diagram, Area B is the color weft arrangement, Area C is the color warp arrangement, and Area D is the final color matching pattern diagram. Taking a classic houndstooth as an example, the organization diagram of Area A is 2 up and 2 down reinforced right twill. In the figure, black represents the warp organization point, that is, the warp is above the weft, and white represents the weft organization point, that is, the weft is above the warp. Area B is the color arrangement of the weft, from top to bottom, it is 2 blue, 4 yellow, 4 blue, 4 yellow, and 2 blue for a cycle. Area C is the color arrangement of the warp, from left to right, it is 2 blue, 4 yellow, 4 blue, 4 yellow, and 2 blue for a cycle.
[0053] The key to the color matching pattern forming color through the combination of warp and weft floating point colors is that when the warp and weft are different colors, the color of which system's yarn is displayed, and this point is the organization point of which system; when the warp and weft are the same color, the warp and weft organization points are all acceptable, which is also the difficulty in manual design.
[0054] like Figure 3 As shown, Figure A is a color matching pattern with a known result; Figure B is a schematic diagram for judging the possibility of clear and unclear organization points, black represents warp organization points, white represents weft organization points, red represents that the warp and weft yarns are both red, blue represents that the warp and weft yarns are both blue, and it is uncertain whether the red and blue points are warp organization points or weft organization points; Figure C indicates that according to Figure B, there are at least 6 organization diagrams to choose from.
[0055] Specifically, the following computer-aided color matching pattern design method is adopted: Figure 1 As shown:
[0056] S1. Collect a large number of existing color matching pattern fabrics for analysis;
[0057] The fabric data needs to be further processed. This step is an important part of the preliminary preparation. First, use Excel to refine the parameters of the color matching pattern fabric to facilitate the subsequent computer calculation and verification. Figure 4 As shown. The data processing ideas and steps are divided into the following steps:
[0058] Step 1: Create a new Excel table and set up worksheets named plain, twill and dobby respectively;
[0059] Step 2: In the first column of the table, enter: fabric number, warp yarn color, warp yarn arrangement sequence, warp yarn cycle number, weft yarn color, weft yarn arrangement sequence, weft yarn cycle number, weave diagram, object, fabric color, weave-color yarn matrix diagram, and fabric surface color display diagram;
[0060] Step 3: compile the fabric data analyzed by organization classification into a table, including fabric number, warp yarn color, warp yarn arrangement sequence, warp yarn cycle number, weft yarn color, weft yarn arrangement sequence, weft yarn cycle number, organization diagram, actual object and fabric color;
[0061] S2. The collected parameters are further sorted and processed into parameters that can be understood by a computer, or data parameters can be directly retrieved quickly.
[0062] S2.1. Define organization points and establish an organization point matrix
[0063] The fabric structure reflects the distribution of warp and weft floating points and can be represented by a matrix. If each weave point in the structure is regarded as a value, and the elements 1 and 0 are used to represent the warp and weft floating points respectively, and combined with the number of warp and weft yarns in the weave cycle, a two-dimensional 0-1 matrix can be used to represent the weave diagram of the fabric. We call this matrix a weave point matrix.
[0064] The weave point matrix is unfolded like a fabric plane, with rows and columns representing weft and warp respectively. The number of rows is set to the number of weft yarn cycles in the weave cycle, 1, 2, 3, ..., m; the number of columns is set to the number of warp yarn cycles in the weave cycle, 1, 2, 3, ..., n. A certain weave can be represented as a weave consisting of m rows and n columns of yarns, and each element in the matrix represents a weave point. Take the weave diagram of twill fabric, such as Figure 5 Taking the example shown, the organization is 2 / 2↗, which is read as two up and two down right twill, the number of organization cycles is 4, the warp organization points are represented by black, and the weft organization points are white.
[0065] S2.2. Define the warp and weft colors and establish the color yarn arrangement matrix
[0066] The colors of warp and weft yarns and their arrangement order can be represented by a string representing the color. Yarn colors are represented by letters, starting from A. Different colors of yarns are represented by different letters. The same colors of warp and weft yarns are also represented by the same letter. For example, the warp and weft yarns have two colors, defined as A and B respectively. If the weft yarn color is the same as the warp yarn color, they are defined as A and B respectively. If the color of one of the weft yarns is the same as the color of warp yarn A, and the other color is different, the weft yarn colors are defined as A and C respectively. Combined with the number of warp and weft yarns in the weave cycle, a matrix can be used to represent the color yarn arrangement of the fabric. We call this matrix the color yarn arrangement matrix.
[0067] The color yarn arrangement matrix is unfolded like a plane of fabric, with rows and columns representing weft and warp respectively. The number of rows is set to the number of weft yarn cycles in the weave cycle, 1, 2, 3, ..., i; the number of columns is set to the number of warp yarn cycles in the weave cycle, 1, 2, 3, ..., j. The color arrangement of the warp and weft yarns of a certain weave can be represented as a color string consisting of i rows and j columns of colored yarns, and each element in the matrix represents the warp and weft colors of a weave point.
[0068] Take the example of the color yarn arrangement matrix of twill fabric, such as Figure 6 For example, the warp yarns are in two colors, A and B, and the weft yarns are in two colors, A and B. The yarn ordinal number is the warp yarn ordinal number from left to right, gradually increasing; the weft yarn ordinal number increases from bottom to top. The warp yarn color is in front of a string element in the matrix, and the weft yarn color is in the back. For example, AB means A is the warp yarn color and B is the weft yarn color. The warp yarn arrangement order of this organization is AABB, which can be abbreviated as 2A2B; the weft yarn arrangement order is AABB, which can be abbreviated as 2A2B.
[0069] S2.3. Establish the relationship between fabric weave points and warp and weft yarn colors
[0070] The study of the theory of color matching pattern texture by computer requires the establishment of a mathematical model connection between the weave point and the color of the colored yarn, which is also established using a matrix model. The complete weave of the color matching pattern fabric is required, that is, the state of arrangement of small units of colored yarn composed of the least yarn before the weave is repeated, that is, the arrangement order of each colored yarn and the number of colored yarns. The final color matching pattern matrix can be established based on the color warp, color weft character string and weave point matrix. It is a text-type matrix composed of character codes, reflecting the distribution law of colored yarn floating points.
[0071] Take the color matching pattern matrix example of twill fabric, such as Figure 7 As shown in the figure, the warp yarns are in two colors, A and B, and the weft yarns are in two colors, A and B. The yarn ordinal number is the warp yarn ordinal number from left to right, gradually increasing; the weft yarn ordinal number increases from bottom to top. In this matrix, taking an element 0AB in the color matching pattern matrix as an example, 0AB means that the weave point is the weft weave point, the weft yarn is on the warp yarn, and the weft yarn is B color. Figure 7 This is an example of the color matching pattern effect and actual picture of the twill 2 / 2↗.
[0072] S3, the computer obtains rules and algorithms through the big data obtained in step S2;
[0073] 3.1 Color matching pattern image analysis
[0074] In order to parse the color matching pattern matrix from the color matching pattern image, this paper uses the opencv toolbox to first use the corner detection method to obtain all the corner points of the image; then obtain the longitude and latitude floating point lengths according to the distance between adjacent corner points; finally, combine the floating point color to restore the color matching pattern matrix [a ij ] N×M .
[0075] 3.2 Reverse design mathematical model
[0076] Since the entire color pattern matrix may be composed of color matching organizations of multiple organization cycles, in order to narrow the solution space and reduce the computational complexity, this paper first calculates the minimum number of organization cycles based on the color pattern matrix, then calculates the color matching parameters within the organization cycle, and then extends it to the entire organization.
[0077] Suppose a fabric weave matrix of a weave cycle is [x ij ] n×m , the color of the i-th weft yarn is r i , the color of the jth warp yarn is c j , then according to the target color pattern matrix, all warp and weft yarns must satisfy the following formula:
[0078] r i x ij +c j (1-x ij )=a ij ,i=1,2,...,n; j=1,2,...,m (1)
[0079] Among them, [a ij ] is the color presented by the target color pattern. At the same time, since each warp or weft yarn has at least one weave point and cannot be all weave points, the weave matrix must satisfy the inequality constraint. Therefore, the following equation can be obtained by combining the above equation (1):
[0080]
[0081] Where: r i ,c j ,a ij ∈{1,2,...,n},x ij ∈{0,1}.
[0082] 3.3 Model solution
[0083] The equation described by formula (2) may have multiple solutions. This paper searches the solution space defined by formula (2) to find all solutions that meet the constraints.
[0084] According to the analysis, when the organizational process constraints are not considered, the exhaustive color warp arrangement and color weft arrangement have a total of N n+mThis paper first solves the color latitude arrangement {r i}, and then search for a reasonable color warp arrangement under the color latitude constraint {c j} and the organizational matrix [x ij ] n×m , so it is actually only necessary to traverse N n The specific search and solution process is as follows.
[0085] (1) Search for all reasonable color latitude arrangements
[0086] For each color latitude arrangement, the inequality constraint defined in formula (2) is: It can be transformed into the following equivalent equation conditions:
[0087]
[0088] If this condition is met, the color latitude arrangement is reasonable. To improve the computational efficiency, when traversing the color latitude arrangement, the color latitude arrangement is represented by the N-ary system, and the pruning strategy is used to narrow the search space. That is, if the current color latitude arrangement (represented by y) is unreasonable, that is, it does not meet formula (3), and the highest mismatch position is i, then let:
[0089] y=yy mod N i +N i (4)
[0090] The update is repeated in this way until a reasonable representation is obtained.
[0091] (2) According to each reasonable color latitude arrangement, calculate the corresponding color warp arrangement and organization matrix.
[0092] Get a reasonable color latitude arrangement {r i}, we can further determine the reasonable color warp arrangement {c j}. From formula (1), we can see that if the latitude color r i With tissue point color a ij different, the color of the tissue point is the warp color c j ; and the colors of the organization points on the same meridian must be the same, thus constructing the rationality conditions of color meridian arrangement:
[0093]
[0094] Therefore, when traversing the color warp arrangement, under the premise of satisfying formula (5), the color warp arrangement can be determined as follows:
[0095]
[0096] Finally, the color latitude arrangement {r i} and color warp arrangement {cj}, the fabric matrix can be obtained according to formula (1):
[0097]
[0098] S4, the computer reversely deduce the rules and algorithms obtained in step S3, and based on the effect that the designer wants to achieve in the end, calculate various possibilities of color matching patterns for the designer to refer to and apply; or the final color matching pattern effect and its parameters can be limited by inputting some simple instructions or data, so as to achieve the designer's expected design concept. These simple instructions can be the number of weave cycles, color yarn color, number of color yarn colors, ratio of the number of various color yarn cycles, etc. After the algorithm deduction of the computer system, it can quickly make an analysis and obtain multiple color matching pattern parameters;
[0099] Designers determine the design plan based on the actual conditions of weaving production.
[0100] The present invention also provides a computer-aided color matching pattern design device, comprising:
[0101] A data acquisition module is used to obtain a large amount of data parameter information of existing color matching pattern fabrics.
[0102] A data sorting module, which is used to sort the data parameter information collected by the data collection module to convert it into learning information that can be recognized or quickly retrieved by a computer;
[0103] A rule and algorithm deduction module, which is used to perform rule analysis and algorithm deduction based on the big data obtained by the data collection and sorting module;
[0104] The reverse deduction module is used to reversely deduce various possibilities of color matching patterns according to the law analysis and algorithm deduction results obtained in the law and algorithm deduction module and based on the effect that the designer finally wants to achieve.
[0105] The present invention also provides a storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the steps of the computer-aided color matching pattern design method as described above.
[0106] The present invention also provides a device, comprising:
[0107] A memory, the memory being used to store a computer program;
[0108] a processor for executing a computer program;
[0109] And a computer program, wherein the computer program is executed by a processor to implement the steps of the computer-aided color matching pattern design method as described above.
[0110] The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in the electronic device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical storage such as CD, DVD, BD, HVD, etc., and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD), etc.
[0111] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0112] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0114] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0115] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A computer-aided color matching pattern design method, characterized in that: The computer-aided color matching pattern design method comprises the following steps: S1. Collect and analyze data on a large number of existing color matching and pattern fabrics; S2, organize data to transform it into learning information that can be recognized by computers or quickly retrieved; S3, the computer obtains rules and algorithms through the big data information obtained in step S2; S4, the computer performs reverse deduction through the rules and algorithms obtained in step S3, and calculates various possibilities of color matching patterns for reference and application by the designer based on the effect that the designer wants to achieve in the end; Or by inputting simple instructions or data to limit the final color matching pattern effect and its parameters, so as to achieve the designer's expected design concept; In step S3, the rules and algorithms are obtained in the following way: In order to parse the color matching pattern matrix from the color matching pattern image, the corner point detection method is first used to obtain all the corner points of the image; then the longitude and latitude floating point lengths are obtained according to the distance between adjacent corner points; finally, the color matching pattern matrix is restored by combining the floating point color. ij ] N×M ; In order to reduce the solution space and computational complexity, the minimum number of weave cycles is first calculated based on the color matching pattern matrix. Suppose the original fabric weave matrix is [x ij ] n×m , the color of the i-th weft yarn is r i , the color of the jth warp yarn is c j , then according to the target color pattern matrix, all warp and weft yarns must satisfy the following formula: r i x ij +c j (1-x ij )=a ij ,i=1,2,...,n;j=1,2,...,m (1) At the same time, since each warp or weft yarn has at least one weave point and cannot be all weave points, the weave matrix must satisfy the inequality constraint. Therefore, the following equation can be obtained by combining the above equation (1): Where: r i ,c j ,a ij ∈{1,2,...,n},x ij ∈{0,1}.
2. The computer-aided color matching pattern design method according to claim 1, characterized in that: Step S1 includes: collecting fabric data including plain weave, twill and dobby weave, and the data of each weave fabric includes: fabric number, warp yarn color, warp yarn arrangement sequence, warp yarn cycle number, weft yarn color, weft yarn arrangement sequence, weft yarn cycle number, weave diagram, actual object, fabric color, weave-color yarn matrix diagram and fabric cloth color display diagram.
3. The computer-aided color matching pattern design method according to claim 1 or 2, characterized in that: Step S2 includes: S2.1, defining fabric weave points and establishing a fabric weave point matrix; S2.2, defining warp and weft yarn colors and establishing a color yarn arrangement matrix; S2.3, establishing an association relationship between fabric weave points and warp and weft yarn colors.
4. The computer-aided color matching pattern design method according to claim 3, characterized in that: In step S2.1: elements 1 and 0 are used to represent warp and weft floating points respectively, and then combined with the number of warp and weft yarns in the fabric weave cycle, a two-dimensional 0-1 matrix is used to represent the weave diagram of the fabric.
5. The computer-aided color matching pattern design method according to claim 3, characterized in that: In step S2.2: the colors of the warp and weft yarns are represented by letters. Different letters are used to represent yarns of different colors. The same letter can also be used to represent warp and weft yarns of the same color. Combined with the number of warp and weft yarns in the fabric weave cycle, a matrix is used to represent the color yarn arrangement of the fabric.
6. The computer-aided color matching pattern design method according to claim 3, characterized in that: In step S2.3: a mathematical model association between the organization points and the colors of the warp and weft yarns is established using a color matching pattern matrix. Specifically, the color matching pattern matrix is constructed using the complete organization of the color matching pattern fabric, that is, the arrangement of the warp and weft yarns composed of the least yarns before the fabric organization is repeated. Each element in the color matching pattern matrix contains letters representing the warp and weft yarns, and also contains a character string formed by the numbers representing the organization points in the organization point matrix.
7. A computer-aided color matching pattern design device, characterized in that: The computer-aided color matching pattern design device comprises: A data acquisition module is used to obtain a large amount of data parameter information of existing color matching pattern fabrics. A data sorting module, which is used to sort the data parameter information collected by the data collection module to convert it into learning information that can be recognized or quickly retrieved by a computer; A rule and algorithm deduction module, which is used to perform rule analysis and algorithm deduction based on the big data obtained by the data collection and sorting module; A reverse deduction module, which is used to reversely deduce various possibilities of color matching patterns based on the law analysis and algorithm deduction results obtained in the law and algorithm deduction module and based on the effect that the designer finally wants to achieve; The rules and algorithms are obtained as follows: In order to parse the color matching pattern matrix from the color matching pattern image, the corner point detection method is first used to obtain all the corner points of the image; then the longitude and latitude floating point lengths are obtained according to the distance between adjacent corner points; finally, the color matching pattern matrix is restored by combining the floating point color. ij ] N×M ; In order to reduce the solution space and computational complexity, the minimum number of weave cycles is first calculated based on the color matching pattern matrix. Suppose the original fabric weave matrix is [x ij ] n×m , the color of the i-th weft yarn is r i , the color of the jth warp yarn is c j , then according to the target color pattern matrix, all warp and weft yarns must satisfy the following formula: r i x ij +c j (1-x ij )=a ij ,i=1,2,...,n;j=1,2,...,m (1) At the same time, since each warp or weft yarn has at least one weave point and cannot be all weave points, the weave matrix must satisfy the inequality constraint. Therefore, the following equation can be obtained by combining the above equation (1): Where: r i ,c j ,a ij ∈{1,2,...,n},x ij ∈{0,1}.
8. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the computer-aided color matching pattern design method as described in any one of claims 1 to 6.
9. A device, characterized in that: The device comprises: A memory, the memory being used to store a computer program; a processor for executing a computer program; And a computer program, wherein the computer program is executed by a processor to implement the steps of the computer-aided color matching pattern design method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Automatic identification method of color fabric color mold pattern image based on image processing
CN102592286A
Method of Fabricating Color Jacquard Fabric
US20070263008A1