A method, device, equipment and storage medium for decomposing and transforming knitting patterns

Through the knitted pattern decomposition and transformation method, the drawn diagram is converted into the original pixel diagram and disassembled, and the process pattern template is called to lay the replacement patterns. Finally, the unit design diagram is arranged and spliced ​​and converted into electronic pattern board data, solving the problems of difficult and low yield in the existing technology, and achieving efficient design and weaving process.

CN116497515BActive Publication Date: 2025-05-27FOSHAN RUIBAO INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202310292836.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2025-05-27
Estimated Expiration
2043-03-23

AI Technical Summary

Technical Problem

In the prior art, the decomposition and transformation of knitted patterns is difficult and the yield is low, which leads to designers spending a lot of time and energy when designing patterns and debugging fabric samples by machines, and errors are prone to occur, resulting in low efficiency in plate making of knitted fabric samples and serious waste of raw materials.

Method used

By importing the drawn map with a pattern, converting it into a true color image, and converting it into the original pixel image based on the true color image, presetting the process pattern template, identifying the number of rows of the original pixel image as a disassembly unit for disassembly, and obtaining the disassembly file. Then, the number of replacement lines is set according to the disassembly file, and the process pattern template is called to lay the replacement patterns to obtain the unit’s design drawing. Finally, the unit’s design drawing is arranged and spliced, and converted into electronic pattern board data for knitting and weaving.

Benefits of technology

This method simplifies the disassembly of large and complex patterns, reduces the time and effort required for design, improves the efficiency of knitted fabric patterning, reduces waste of raw materials, and provides convenient editing and quick viewing for design, improving the efficiency of design creation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116497515B_ABST
    Figure CN116497515B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for decomposing and transforming knitting patterns, which includes importing a drawing with a pattern and converting it into a true-color image; converting the true-color image into an original pixel map and generating a process texture template according to creative requirements; identifying the number of rows of the original pixel map as M, and sequentially disassembling each row of the original pixel map to obtain M disassembly files; setting the number of rows of the replacement texture as N, and laying the replacement texture by calling the process texture template according to the color arrangement to obtain a unit jacquard pattern with N rows; splicing the M unit jacquard patterns to obtain a complete jacquard pattern and converting it into electronic card data for knitting and weaving. Converting the drawing into the original pixel map is beneficial to dividing the disassembly unit and performing disassembly, simplifies the disassembly process of patterns with large sizes and complex processes, effectively reduces the time and effort required for design, can easily reveal error points during the review process, avoids the occurrence of repeated modification situations, and improves the efficiency of knitting fabric sample making.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of knitting fabric design, and particularly to a method, device, equipment and storage medium for decomposing and transforming knitting patterns. Background Art

[0002] The computer jacquard needle selection system of a circular knitting machine needs to transform the pattern to form a data file containing knitting jacquard technology. At present, in the field of circular knitting machines, the jacquard decomposition and transformation on the market all adopt software with WAC technology. This decomposition and transformation method is only applicable to process models with ordinary requirements. As people's demand for clothing fabrics is getting higher and higher, the pattern size is getting larger and larger, the knitting function of the machine is getting richer and richer, and the intelligence level of the machine is getting higher and higher. This puts forward higher requirements for pattern designers.

[0003] It takes designers longer and longer to design a pattern file that meets the corresponding knitting process. Due to the large pattern size and complex process, a large amount of time and energy are required only for pattern decomposition and synthesis. If there is a slight mistake, errors will occur when debugging the cloth sample on the machine. Sometimes, the error points are very difficult to find and need to be repeatedly modified and tested. Eventually, the efficiency of knitting cloth sample proofing is low, and the waste of knitting raw materials is serious. From the design of a pattern to its production, it takes a lot of time, resulting in increased costs. Prolonging the delivery time will also cause economic losses to customers. It can be seen that the existing technology still needs to be improved. Summary of the Invention

[0004] In view of the deficiencies of the above-mentioned prior art, the purpose of the present invention is to provide a method, device, equipment and storage medium for decomposing and transforming knitting patterns, which are used to solve the problems of difficult decomposition and transformation of knitting patterns and low yield in the prior art.

[0005] To achieve the above purpose, the present invention adopts the following technical solutions: A method for decomposing and transforming knitting patterns includes the following steps: importing a drawing with a pattern and converting it into a true-color image; converting the true-color image into an original pixel map; presetting a process texture template, where the process texture template includes at least one row of texture; identifying that the number of rows of the original pixel map is M, where M is an integer and not zero, and using each row of the original pixel map as a disassembly unit for disassembly to obtain M disassembly files; setting the number of rows of the replacement texture to N according to the disassembly files, where N is an integer and greater than 1, and laying each row of the replacement texture by calling the process texture template according to the color arrangement in each disassembly file to obtain a unit design drawing with N rows; arranging and splicing the M unit design drawings to obtain a complete design drawing with M*N rows; and converting the complete design drawing into electronic card data for knitting and weaving.

[0006] The number of rows of the replacement pattern is set to N according to the disassembly file, where N is an integer greater than 1. According to the color arrangement in each disassembly file, a process pattern template is called to lay each row in the replacement pattern, obtaining a unit design drawing with N rows, including: obtaining the color arrangement in the disassembly file and distinguishing the color characteristics in each cell; setting a replacement rule for each row in the replacement pattern according to the color characteristics; laying each cell in the replacement pattern according to the replacement rule, obtaining a unit design drawing with N rows.

[0007] The step of setting a replacement rule for each row in the replacement pattern according to the color characteristics includes: the unit design drawing with N rows includes at least one target row, and one row of pattern is extracted from the process pattern template as the target pattern; the target pattern is laid in any target row of the replacement pattern.

[0008] The step of extracting one row of pattern from the process pattern template as the target pattern and laying the target pattern in any target row of the replacement pattern includes: the unit design drawing with N rows also includes a filling row, any color is selected as the filling color for a certain color characteristic, and the filling color is laid in any filling row of the replacement pattern.

[0009] The number of rows of the original pixel map is identified as M, where M is an integer and not equal to 0. The original pixel map is disassembled with each row as a disassembly unit, obtaining M disassembly files, including: confirming that the number of rows of the original pixel map is M; using pattern CAD software to disassemble the original pixel map; obtaining M disassembly files.

[0010] The step of arranging and splicing M unit design drawings to obtain a complete design drawing with M*N rows; and converting the complete design drawing into electronic card data for knitting and weaving includes: numbering the disassembly order of each disassembly unit during disassembly and marking it in the corresponding unit design drawing; splicing and organizing multiple unit design drawings according to the order number to obtain a complete design drawing; converting the complete design drawing into electronic card data for knitting and weaving; transmitting the electronic card data from the design computer to the knitting machine computer; and the knitting machine computer performs knitting and weaving according to the electronic card data.

[0011] To achieve the above object, the present invention also adopts the following technical solutions: A knitting pattern decomposition and transformation device, comprising: an import module for importing a drawing with a pattern and converting it into a true-color image; a generation module for converting the true-color image into an original pixel map and presetting a process texture template, where the process texture template includes at least one row of texture; a disassembly module for identifying that the number of rows of the original pixel map is M, where M is an integer and not zero, and disassembling each row of the original pixel map as a disassembly unit to obtain M disassembly files; a laying module for setting the number of rows of the replacement texture to N according to the disassembly files, where N is an integer and greater than 1, and laying each row of the replacement texture by calling the process texture template according to the color arrangement in each disassembly file to obtain a unit design drawing with N rows; a splicing module for arranging and splicing M unit design drawings to obtain a complete design drawing with M*N rows; and converting the complete design drawing into electronic card data for knitting and weaving.

[0012] To achieve the above object, the present invention also adopts the following technical solutions: A knitting pattern decomposition and transformation device, comprising a memory and at least one processor, where computer-readable instructions are stored in the memory; the at least one processor calls the computer-readable instructions in the memory to execute each step of the knitting pattern decomposition and transformation method as described above.

[0013] To achieve the above object, the present invention also adopts the following technical solutions: A computer-readable storage medium, on which computer-readable instructions are stored, characterized in that when the computer-readable instructions are executed by a processor, each step of the knitting pattern decomposition and transformation method as described above is implemented.

[0014] As described above, the knitting pattern decomposition and transformation method, device, equipment and storage medium of the present invention have the following beneficial effects: Converting the drawing into an original pixel map is beneficial to dividing the disassembly unit and performing disassembly, simplifying the disassembly process of large-size and complex-process patterns. Calling the process texture template to lay the replacement texture can effectively reduce the time and effort required for design. The clearly distinguishable unit design drawings can easily reveal error points during the review process, avoiding repeated modification situations, improving the efficiency of knitting fabric sample making, and reducing waste of knitting raw materials; in addition, the optimization of the decomposition and transformation process can also provide convenience for convenient editing and quick viewing in design, greatly improving the efficiency of design creation. Description of the Drawings

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0016] Figure 1 It is a flowchart of the knitting pattern decomposition and transformation method provided by the present invention;

[0017] Figure 2 It is another flowchart of the knitting pattern decomposition and transformation method provided by the present invention;

[0018] Figure 3 It is another flowchart of the knitting pattern decomposition and transformation method provided by the present invention;

[0019] Figure 4 It is a schematic diagram of the original pixel map in the first embodiment of the present invention;

[0020] Figure 5 It is a schematic diagram of the process texture template in the first embodiment of the present invention;

[0021] Figure 6 It is a schematic diagram of the first disassembly file and the replacement texture in the first embodiment of the present invention;

[0022] Figure 7 It is a schematic diagram of the second disassembly file and the replacement texture in the first embodiment of the present invention;

[0023] Figure 8 It is a schematic diagram of the third disassembly file and the replacement texture in the first embodiment of the present invention;

[0024] Figure 9 It is a schematic diagram of the structure of the knitting pattern decomposition and transformation device provided by the present invention;

[0025] Figure 10 It is a schematic diagram of the structure of the knitting pattern decomposition and transformation equipment provided by the present invention. Detailed implementation manners

[0026] The present invention provides a knitting pattern decomposition and transformation method, device, equipment and storage medium. To make the purpose, technical solution and effect of the present invention clearer and more definite, the following further describes the present invention in detail with reference to the accompanying drawings and by way of examples.

[0027] In the description of the present invention, it should be understood that the orientation or positional relationship indicated by terms such as "up and down, left and right" is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, and should not be construed as a limitation to the present invention. In addition, terms such as "installation" and "connection" should be understood in a broad sense. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0028] Embodiment 1

[0029] Please refer to Figures 1 to 8 , the present invention provides a method for decomposing and transforming knitting patterns, including the following steps: 101. Import a drawing with a pattern and convert it into a true-color image; 102. Convert the true-color image into an original pixel map, and preset a process texture template, where the process texture template includes at least one row of texture; 103. Identify that the number of rows of the original pixel map is M, where M is an integer and not 0, and disassemble each row of the original pixel map as a disassembly unit to obtain M disassembly files; 104. Set the number of rows of the replacement texture to N according to the disassembly files, where N is an integer and greater than 1, and lay each row of the replacement texture by calling the process texture template according to the color arrangement in each disassembly file to obtain a unit design drawing with N rows; 105. Arrange and splice the M unit design drawings to obtain a complete design drawing with M*N rows; and convert the complete design drawing into electronic card data for knitting and weaving. Converting the drawing into an original pixel map is beneficial for dividing the disassembly unit and performing disassembly, simplifying the disassembly process of patterns with large sizes and complex processes. Laying the replacement texture by calling the process texture template can effectively reduce the time and effort required for design. The clearly distinguishable unit design drawings can easily reveal error points during the review process, avoid repeated modification, improve the efficiency of knitting sample making, and reduce waste of knitting raw materials. In addition, the optimization of the decomposition and transformation process can also provide convenience for convenient editing and quick viewing in design, greatly improving the efficiency of design creation.

[0030] In this embodiment, presetting the process texture template specifically means generating a process texture template according to the creative requirements, including creating a new process texture template or selecting a preset process texture template. That is, the designer can re-create a process texture template according to the creative requirements or select a preset process texture template from the database. It can be understood that the re-created process texture template is automatically stored in the database after being saved, which is convenient for the designer to select as a preset process texture template during the next design.

[0031] Specifically, set the number of rows of the replacement pattern as N according to the disassembly file, where N is an integer greater than 1. According to the color arrangement in each disassembly file, call the process pattern template to lay each row in the replacement pattern to obtain a unit design drawing with N rows, including: 201. Obtain the color arrangement in the disassembly file and distinguish the color characteristics of each cell; 202. In each row of the replacement pattern, set a replacement rule for the color characteristics; 203. Lay each cell in the replacement pattern according to the replacement rule to obtain a unit design drawing with N rows. Specifically, in each row of the replacement pattern, set a replacement rule for the color characteristics, including: the unit design drawing with N rows includes at least one target row, extract a row of pattern from the process pattern template as the target pattern; lay the target pattern in any target row of the replacement pattern. More specifically, extract a row of pattern from the process pattern template as the target pattern; lay the target pattern in any target row of the replacement pattern, including: the unit design drawing with N rows also includes a filling row, select any color as the filling color for a certain color characteristic, and lay the filling color in any filling row of the replacement pattern.

[0032] Please refer to Figures 4 to 8 , in this embodiment, for the sake of easy understanding, it is illustrated by the following example: As Figure 4 shown, the original pixel map is an image of a five-column and three-row array, where the first three cells in the first row are green and the last two cells are blue; the first four cells in the second row are green and the last one cell is blue; the first four cells in the third row are green and the last one cell is blue. Please refer to Figure 5 , the process pattern template is an image of a two-row and three-column array, where the cell colors in the first row are green, white, and green in sequence; the cell colors in the second row are white, blue, and gray in sequence; in this embodiment, each row of the process pattern template is sequentially extracted for laying the replacement pattern.

[0033] Please refer to Figure 6 , the original pixel map is disassembled into three disassembly files. The color arrangement of the first disassembly file is: green - green - green - blue - blue, and the number of rows of the replacement pattern is set to 3. The set replacement rule is: in the first row of the replacement pattern, replace green with red and mark blue as blank; in the second row, mark green as blank and keep blue unchanged; in the third row, extract the first row from the process pattern template to replace green and mark blue as blank. Extract the first row of the process pattern template for laying, and through conversion, the first row of the first replacement pattern is: red - red - red - blank - blank; the second row is: blank - blank - blank - blue - blue; the third row is: green - white - green - blank - blank.

[0034] Please refer to Figure 7, the color sorting of the second disassembled file is: green - green - green - green - blue, and the number of rows of the replacement pattern is set to 3. The set replacement rule is: in the first row of the replacement pattern, green is replaced with red and blue is marked as blank; in the second row, green is marked as blank and blue remains unchanged; in the third row, the first row is extracted from the process pattern template to replace green and blue is marked as blank. The second row of the process pattern template is extracted for laying, and through conversion, the first row of the second replacement pattern is: red - red - red - red - blank; the second row is: blank - blank - blank - blank - blue; the third row is: white - blue - gray - white - blank.

[0035] Please refer to Figure 8 , the color sorting of the third disassembled file is: green - green - green - green - blue, and the number of rows of the replacement pattern is set to 3. The set replacement rule is: in the first row of the replacement pattern, green is replaced with red and blue is marked as blank; in the second row, green is marked as blank and blue remains unchanged; in the third row, the first row is extracted from the process pattern template to replace green and blue is marked as blank, and the replacement process is circular laying. The first row of the process pattern template is repeatedly extracted for laying, and through conversion, the first row of the third replacement pattern is: red - red - red - red - blank; the second row is: blank - blank - blank - blank - blue; the third row is: green - white - green - green - blank.

[0036] Optionally, it includes: confirming that the number of rows of the original pixel map is M; using pattern CAD software to disassemble the original pixel map; obtaining M disassembled files; that is, during the sequential disassembly process with each row of the original pixel map as the disassembly unit, using pattern CAD software to sequentially disassemble the original pixel map. More specifically, M unit jacquard diagrams are arranged and spliced to obtain a complete jacquard diagram with M * N rows; the complete jacquard diagram is converted into electronic card data for knitting and weaving, including: 301. During disassembly, sequence numbers are assigned to the disassembly sequence of each disassembly unit and marked in the corresponding unit jacquard diagram; 302. Multiple unit jacquard diagrams are spliced and organized according to the sequence numbers to obtain a complete jacquard diagram; 303. The complete jacquard diagram is converted into electronic card data for knitting and weaving by a design computer; specifically, the electronic card data is transmitted from the design computer to the knitting machine computer; the knitting machine computer performs knitting and weaving according to the electronic card data. That is, M unit jacquard diagrams are spliced in the order of the disassembly units of the original pixel map.

[0037] The first disassembled file, the second disassembled file, and the third disassembled file in the above example are sequentially spliced to obtain a complete jacquard diagram. The number of rows of the above complete jacquard diagram is 9 rows, and the number of columns is 5 columns, forming a complete jacquard diagram in a 5-column 9-row array.

[0038] Embodiment 2

[0039] Please refer to Figure 9 According to the present invention, a knitting pattern decomposition and transformation device is provided, comprising: an import module for importing a drawing with a pattern and converting it into a true-color image; a generation module for converting the true-color image into an original pixel map and presetting a process texture template, where the process texture template includes at least one row of texture; a disassembly module for identifying that the number of rows of the original pixel map is M, where M is an integer and not zero, and disassembling each row of the original pixel map as a disassembly unit to obtain M disassembly files; a laying module for setting the number of rows of the replacement texture as N, where N is an integer and greater than 1, and laying each row of the replacement texture by calling the process texture template according to the color arrangement in each disassembly file to obtain a unit design drawing with N rows; a splicing module for arranging and splicing the M unit design drawings to obtain a complete design drawing with M*N rows; and converting the complete design drawing into electronic card data for knitting and weaving.

[0040] Embodiment III

[0041] Please refer to Figure 10 According to the present invention, a knitting pattern decomposition and transformation device is provided, comprising a memory and at least one processor, where computer-readable instructions are stored in the memory; the at least one processor calls the computer-readable instructions in the memory to execute each step of the knitting pattern decomposition and transformation method as described above.

[0042] Embodiment IV

[0043] A computer-readable storage medium, on which computer-readable instructions are stored, characterized in that when the computer-readable instructions are executed by a processor, each step of the knitting pattern decomposition and transformation method as described above is implemented.

[0044] In summary, for the knitting pattern decomposition and transformation method, device, equipment and storage medium of the present invention, converting the drawing into an original pixel map is beneficial to dividing the disassembly unit and performing disassembly, simplifying the disassembly process of large-size and complex-process patterns. Laying the replacement texture by calling the process texture template can effectively reduce the time and effort required for design. The clearly distinguishable unit design drawings can easily reveal error points during the review process, avoiding repeated modification situations, improving the efficiency of knitting fabric sample making, and reducing waste of knitting raw materials; in addition, the optimization of the decomposition and transformation process can also provide convenience for convenient editing and quick viewing of the design, greatly improving the efficiency of design creation. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0045] It can be understood that for those of ordinary skill in the art, equivalent substitutions or changes can be made according to the technical solutions and inventive concepts of the present invention, and all such changes or substitutions should fall within the protection scope of the present invention.

Claims

1. A method for decomposing and transforming knitting patterns, characterized in that, it includes the following steps: Import a drawing with a pattern and convert it into a true-color image; Convert the true-color image into an original pixel map; Preset a process texture template, and the process texture template includes at least one row of texture; Identify that the number of rows of the original pixel map is M, where M is an integer and not 0, and use each row of the original pixel map as a disassembly unit for disassembly to obtain M disassembly files; Set the number of rows of the replacement texture to N according to the disassembly file, where N is an integer and greater than 1; Obtain the color arrangement in the disassembly file and distinguish the color characteristics in each cell; Set replacement rules for the color characteristics in each row of the replacement texture; Lay each cell in the replacement texture according to the replacement rules to obtain a unit design drawing with N rows. Among them, the unit design drawing with N rows includes at least one target row, and extract one row of texture from the process texture template as the target texture; lay the target texture in any target row of the replacement texture; Arrange and splice M unit design drawings to obtain a complete design drawing with M*N rows; and convert the complete design drawing into electronic pattern data for knitting and weaving.

2. The method for decomposing and transforming knitting patterns according to claim 1, characterized in that, the step of identifying that the number of rows of the original pixel map is M, where M is an integer and not 0, and using each row of the original pixel map as a disassembly unit for disassembly to obtain M disassembly files includes, confirm that the number of rows of the original pixel map is M; Use pattern weaving CAD software to disassemble the original pixel map; Obtain M disassembly files.

3. The method for decomposing and transforming knitting patterns according to claim 2, characterized in that, the step of arranging and splicing M unit design drawings to obtain a complete design drawing with M*N rows; and converting the complete design drawing into electronic pattern data for knitting and weaving includes, Number the disassembly order of each disassembly unit during disassembly and mark it in the corresponding unit design drawing; Splice and organize multiple unit design drawings according to the order number to obtain a complete design drawing; The complete design drawing is converted into electronic pattern data for knitting and weaving.

4. A device for decomposing and transforming knitting patterns, characterized in that, it includes: An import module for importing a drawing with a pattern and converting it into a true-color image; A generation module for converting the true-color image into an original pixel map and presetting a process texture template, and the process texture template includes at least one row of texture; A disassembly module for identifying that the number of rows of the original pixel map is M, where M is an integer and not 0, and using each row of the original pixel map as a disassembly unit for disassembly to obtain M disassembly files; A laying module for setting the number of rows of the replacement texture to N according to the disassembly file, where N is an integer and greater than 1; obtaining the color arrangement in the disassembly file and distinguishing the color characteristics in each cell; In each row of the replacement pattern, set replacement rules for color features; lay each cell in the replacement pattern according to the replacement rules to obtain a unit design pattern with N rows, where the unit design pattern with N rows includes at least one target row, and extract one row of the pattern from the process pattern template as the target pattern; lay the target pattern in any target row of the replacement pattern; A splicing module, configured to arrange and splice M unit design patterns to obtain a complete design pattern with M*N rows; and convert the complete design pattern into electronic card data for knitting and weaving.

5. A knitting pattern decomposition and transformation device, characterized in that it includes a memory and at least one processor, and computer-readable instructions are stored in the memory; the at least one processor calls the computer-readable instructions in the memory to execute each step of the knitting pattern decomposition and transformation method according to any one of claims 1-3.

6. A computer-readable storage medium, on which computer-readable instructions are stored, characterized in that when the computer-readable instructions are executed by a processor, each step of the knitting pattern decomposition and transformation method according to any one of claims 1-3 is implemented.

Citation Information

Patent Citations

  • Processing method for fewer-color multi-layer weft-knitting gray-level scene knitted fabric

    CN103409922A

  • Adaptive equalization method for color jacquard organization structure based on image segmentation

    CN106875459A

Cited By

  • Knitting pattern decomposition and transformation method, device and equipment and storage medium

    CN121544739A