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

By using a knitting pattern decomposition and transformation method, the original pixel image is selected and decomposed to generate a set of unit design images corresponding to each partition area. This solves the problem of low efficiency in pattern design in existing technologies and realizes efficient pattern data conversion and knitting manufacturing.

CN121544739APending Publication Date: 2026-02-17石狮市睿宝科技有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511365318.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-23
Publication Date
2026-02-17

AI Technical Summary

Technical Problem

Existing technologies in circular knitting machines have low efficiency in pattern design, and the decomposition and synthesis of patterns are time-consuming and prone to errors. They cannot meet the process requirements of multiple regions, resulting in high production costs and extended delivery times.

Method used

By selecting regions from the original pixel image, it is decomposed into multiple partition regions. Each partition region is then disassembled and its texture replacement rules are set to generate a set of unit design images corresponding to each partition region. These are then stitched together to form a complete design image, which is ultimately converted into electronic texture plate data.

Benefits of technology

It improves design flexibility, meets the process requirements of multiple regions, reduces decomposition and synthesis time, improves fabric pattern making efficiency and pattern quality, and reduces raw material waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121544739A_ABST
    Figure CN121544739A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of knitted fabric design, in particular to a knitting pattern decomposition and transformation method, device and equipment and a storage medium, and the method comprises the steps: carrying out the region selection of an obtained original image, obtaining a plurality of sub-regions, carrying out the disassembly of each sub-region, obtaining the disassembly information corresponding to each sub-region, and carrying out the disassembly of each sub-region. Then, based on the disassembly information of each subarea, setting a line replacement rule to obtain a line replacement rule corresponding to each subarea, and according to the line replacement rule, performing laying processing on the disassembly information of the corresponding subarea to obtain a unit design map set corresponding to each subarea; and finally, splicing the unit design pattern set to obtain a complete design pattern, and converting the complete design pattern into electronic pattern card data for weaving manufacturing, so that the multi-region process requirements are met, the decomposition and synthesis time is shortened, and the problem that the multi-process requirements cannot be met by the unified replacement line number in the traditional scheme is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of knitted fabric design technology, and in particular to a method, apparatus, equipment and storage medium for decomposing and transforming knitted patterns. Background Technology

[0002] In the field of circular knitting machines, computerized jacquard needle selection systems must first convert the pattern into a data file containing jacquard knitting process parameters before driving the machine to knit. Currently, most jacquard decomposition and conversion systems on the market rely on WAC process software, which is only compatible with ordinary process machines and is insufficient to meet the increasingly complex pattern requirements. Under current technology, designers spend a lot of time designing pattern files that meet the process requirements, and pattern decomposition and synthesis require a lot of effort. Due to the large size and complex process, it is easy to make mistakes when debugging fabric samples, and the errors are difficult to locate, resulting in repeated modifications and tests, low efficiency in fabric pattern making, and serious waste of raw materials. The excessively long cycle from design to production not only increases production costs but also extends delivery time, causing economic losses to enterprises and customers.

[0003] Although a patent (patent number: CN116497515B) proposes a knitted pattern decomposition and transformation scheme, which simplifies the decomposition process and improves efficiency to some extent by disassembling the original pixel image row by row and calling the process texture template to lay out the replacement texture, this scheme can only use a uniform decomposition mode for a single pattern image. All decomposition units must follow the same texture replacement row setting. However, in actual production, complex patterns often need to be adapted to different processes for different areas (such as some areas need fine textures and some areas need simplified textures). A uniform replacement row number cannot meet the needs of multiple processes and still requires manual adjustment, which not only increases the workload but also easily introduces errors, failing to completely solve the problem of adaptability and efficiency of complex pattern design. Summary of the Invention

[0004] In order to overcome the shortcomings of the prior art, the purpose of this invention is to provide a method for decomposing and transforming knitted patterns, which improves design flexibility, meets the needs of multi-regional processes, reduces decomposition and synthesis time, and solves the problem that the traditional solution of uniformly replacing rows cannot meet the needs of multiple processes.

[0005] The first aspect of this invention provides a method for decomposing and transforming knitted patterns, comprising: acquiring an original pixel image; selecting regions in the original pixel image to obtain multiple partitioned regions; decomposing each partitioned region to obtain decomposition information corresponding to each partitioned region, the decomposition information including multiple decomposition units; setting pattern replacement rules based on the decomposition information of each partitioned region to obtain pattern replacement rules corresponding to each partitioned region; laying out the decomposition information of the corresponding partitioned regions according to the pattern replacement rules to obtain a set of unit design images corresponding to each partitioned region; splicing the set of unit design images to obtain a complete design image; and converting the complete design image into electronic pattern data for knitting manufacturing.

[0006] Optionally, in a first implementation of the first aspect of the present invention, before obtaining the original pixel image and performing region selection on the original pixel image to obtain multiple partitioned regions, the method further includes: obtaining a drawing image with a pattern; performing color mapping processing on the drawing image to generate a true-color image; and performing pixel processing on the true-color image to generate the original pixel image.

[0007] Optionally, in a second implementation of the first aspect of the present invention, the step of obtaining the original pixel image and performing region selection on the original pixel image to obtain multiple partitioned regions includes: obtaining the original pixel image; in response to multiple bounding box operations performed by the user on the original pixel image, obtaining multiple bounding box regions formed by the user's bounding box selection; for each bounding box region, using the height of the bounding box region as the vertical dimension and the width of the original pixel image as the horizontal dimension, determining the region defined by the vertical dimension and the horizontal dimension as a partitioned region, thereby obtaining multiple non-overlapping partitioned regions.

[0008] Optionally, in a third implementation of the first aspect of the present invention, the step of disassembling each partition region to obtain disassembly information corresponding to each partition region, wherein the disassembly information includes multiple disassembly units, includes: performing row number identification processing on each partition region to obtain the row number corresponding to each partition region; performing row-by-row disassembly operation on each partition region based on the row number corresponding to each partition region to generate disassembly information containing multiple disassembly units, and sequentially labeling each disassembly unit of each partition region according to the disassembly order.

[0009] Optionally, in the fourth implementation of the first aspect of the present invention, the step of setting texture replacement rules based on the disassembly information of each partition region to obtain texture replacement rules corresponding to each partition region includes: obtaining a preset number of replacement texture rows corresponding to each partition region; obtaining the color arrangement of multiple disassembly units to obtain color features corresponding to each partition region; and setting texture replacement rules corresponding to each partition region based on the number of replacement texture rows and the color features.

[0010] Optionally, in a fifth implementation of the first aspect of the present invention, the step of processing the disassembly information of the corresponding partition area according to the texture replacement rule to obtain a set of unit design diagrams corresponding to each partition area includes: obtaining a preset process texture template, the process texture template including at least one row of textures; identifying cells of the disassembly information corresponding to each partition area to obtain multiple cells; processing each cell of the corresponding partition area according to the texture replacement rule corresponding to each partition area to obtain a set of unit design diagrams corresponding to each partition area, the set of unit design diagrams including multiple unit design diagrams, wherein each unit design diagram includes at least one target row, extracting a row of textures from the process texture template as a target texture, and laying the target texture in the target row.

[0011] Optionally, in a sixth implementation of the first aspect of the present invention, the step of splicing the set of unit design drawings to obtain a complete design drawing includes: obtaining the sequence number of each disassembly unit in each partition region; adding the sequence number to the unit design drawing corresponding to the disassembly unit to obtain a set of unit design drawings with sequence numbers corresponding to each partition region; performing a splicing operation on the set of unit design drawings according to the sequence number to obtain multiple region design drawings; and splicing the multiple region design drawings to obtain the complete design drawing.

[0012] A second aspect of the present invention provides a knitted pattern decomposition and transformation device, comprising: a region selection module for acquiring an original pixel image and selecting regions from the original pixel image to obtain multiple partitioned regions; a decomposition module for decomposing each partitioned region to obtain decomposition information corresponding to each partitioned region, the decomposition information including multiple decomposition units; a rule setting module for setting pattern replacement rules according to the multiple decomposition units to obtain pattern replacement rules corresponding to each partitioned region; a laying module for laying out the decomposition information of the corresponding partitioned regions according to the pattern replacement rules to obtain a set of unit design images corresponding to each partitioned region; a splicing module for splicing the set of unit design images to obtain a complete design image; and a conversion module for converting the complete design image into electronic pattern data for knitting manufacturing.

[0013] A third aspect of the present invention provides a knitting pattern decomposition and transformation device, the knitting pattern decomposition and transformation device comprising: a memory and at least one processor, the memory storing instructions; at least one processor calling the instructions in the memory to cause the knitting pattern decomposition and transformation device to perform each step of the knitting pattern decomposition and transformation method described in any of the preceding claims.

[0014] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed by a processor, implement the steps of the knitting pattern decomposition and transformation method described in any of the preceding claims.

[0015] In the technical solution of this invention, multiple partitioned regions are obtained by selecting regions from the acquired original image. Each partitioned region is then disassembled to obtain disassembly information corresponding to each region. Based on the disassembly information of each partitioned region, texture replacement rules are set to obtain texture replacement rules corresponding to each region. The disassembly information of the corresponding partitioned region is then laid out according to the texture replacement rules to obtain a set of unit design images corresponding to each region. Finally, the set of unit design images is spliced ​​to obtain a complete design image, which is then converted into electronic pattern data for weaving manufacturing. This improves design flexibility, meets the needs of multi-region processes, reduces decomposition and synthesis time, and solves the problem that traditional solutions can only generate one fixed disassembly mode for a single pattern image, making it impossible to flexibly adjust according to the multi-process requirements in actual production. Attached Figure Description

[0016] Figure 1 A flowchart illustrating the knitting pattern decomposition and transformation method provided in this embodiment of the invention; Figure 2 A schematic diagram of the original pixel image provided in an embodiment of the present invention; Figure 3 A schematic diagram of the process texture template provided in an embodiment of the present invention; Figure 4 A schematic diagram of the first disassembly unit and replacement texture provided in an embodiment of the present invention; Figure 5 A schematic diagram of the second disassembly unit and replacement texture provided in an embodiment of the present invention; Figure 6 A schematic diagram of the third disassembly unit and replacement texture provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the fourth disassembly unit and replacement texture provided in an embodiment of the present invention; Figure 8 This is a schematic diagram of the fifth disassembly unit and replacement texture provided in an embodiment of the present invention; Figure 9 This is a schematic diagram of the structure of the knitting pattern decomposition and transformation device provided in an embodiment of the present invention; Figure 10 This is a schematic diagram of the structure of the knitting pattern decomposition and transformation device provided in an embodiment of the present invention. Detailed Implementation

[0017] This invention provides a method, apparatus, device, and storage medium for decomposing and transforming knitted patterns. In this invention, the terms "first," "second," "third," "fourth," etc. (if present)," in the specification, claims, and accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" or "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0018] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 One embodiment of the knitting pattern decomposition and transformation method in this invention includes: 101. Obtain the original pixel image, and perform region selection on the original pixel image to obtain multiple partition regions; In this embodiment, areas can be divided according to different process characteristics. For example, areas with fine patterns requiring high weaving density, areas with basic patterns of low density, and areas with multi-color layering can be divided independently to form multiple non-overlapping partitioned areas. By matching process parameters to partitions, waste of raw materials caused by over-processing can be avoided. At the same time, the machine can weave efficiently according to the characteristics of each area, improving the success rate of fabric pattern making and production efficiency.

[0019] 102. Each partition area is disassembled separately to obtain disassembly information corresponding to each partition area. The disassembly information includes multiple disassembly units. In this embodiment, as the size of the flower pattern increases and the complexity of the process improves, directly setting process parameters and replacing textures on the complete flower pattern image is prone to processing bottlenecks and parameter setting conflicts due to the large amount of data, and it is difficult to accurately locate local process requirements. However, by decomposing each partition area separately, decomposition information corresponding to each partition area is obtained. The decomposition information includes multiple decomposition units, which can break down large-scale and complex flower pattern data into several independent small data units. Each decomposition unit corresponds to only one row of pixels of the flower pattern, which greatly reduces the processing difficulty of individual data units and makes subsequent operations such as color arrangement analysis and texture replacement rule setting easier to execute, effectively simplifying the overall processing of large-sized and complex flower patterns.

[0020] 103. Based on the disassembly information of each partition area, set the texture replacement rules respectively to obtain the texture replacement rules corresponding to each partition area; In this embodiment, when faced with complex patterns, if there is no unified pattern replacement rule, the designer needs to replan the pattern when dealing with each pattern, which is time-consuming and labor-intensive. After setting the rule, the replacement method can be quickly determined based on the color characteristics, reducing the time and effort required for design. Moreover, different pattern replacement rules can be set for different partition areas, which solves the problem that a single rule cannot take into account the process differences of multiple areas.

[0021] 104. According to the texture replacement rules, the disassembly information of the corresponding partition areas is processed to obtain a set of unit design drawings corresponding to each partition area; In this embodiment, the laying operation transforms abstract color information into a texture structure with practical weaving process significance. Each disassembly unit in the disassembly information generates a unit design diagram with N rows, where N is the preset number of replacement texture rows in the texture replacement rules. This effectively simplifies the process conversion of complex patterns. Compared to the texture chaos that easily occurs with traditional irregular laying, this operation, through regular mapping, can quickly convert large-size, multi-color disassembly files into standardized unit design diagrams, reducing the time and effort required for design. Furthermore, it ensures that the laid unit design diagram accurately matches the expected texture effect, avoiding color and texture misalignment caused by irregular laying and guaranteeing the pattern quality of subsequent woven products.

[0022] 105. The set of unit design drawings is spliced ​​together to obtain a complete design drawing; In this embodiment, the scattered unit design drawings are reintegrated into complete pattern data, which solves the problem of data fragmentation after disassembly and ensures that the final generated design drawing can fully present the pattern details and color distribution of the original pattern, avoiding pattern loss or misalignment caused by data dispersion.

[0023] 106. Convert the complete design drawing into electronic pattern data for weaving manufacturing.

[0024] In this embodiment, the visual and technological information, such as the pattern, color distribution, and texture structure contained in the complete design drawing, is transformed into a set of digital process parameters (i.e., electronic pattern data used for knitting manufacturing) that can be recognized and read by the computer of the knitting machine. These data cover the key instructions related to jacquard needle selection and loop knitting in the knitting process, which can directly drive the circular knitting machine to complete the knitting operation according to the design requirements. This realizes the effective transformation of pattern design information into production execution data, and solves the problems of low efficiency, poor accuracy, and difficulty in adapting to complex patterns in traditional manual pattern making. It enables the designed pattern to be quickly transformed into machine-executable process instructions, ensuring that the knitting process accurately reproduces the pattern design effect.

[0025] This application discloses a method for decomposing and transforming knitted patterns. By selecting regions from the acquired original image, multiple partitioned regions are obtained. Each partitioned region is then decomposed to obtain corresponding decomposition information. Based on the decomposition information of each partitioned region, texture replacement rules are set to obtain texture replacement rules corresponding to each partitioned region. The decomposition information of the corresponding partitioned regions is then processed according to the texture replacement rules to obtain a set of unit design images corresponding to each partitioned region. Finally, the set of unit design images is spliced ​​to obtain a complete design image, which is then converted into electronic pattern data for knitting manufacturing. This method improves design flexibility, meets the needs of multi-region processes, reduces decomposition and synthesis time, and solves the problem that traditional solutions can only generate a fixed decomposition mode for a single pattern image, making it impossible to flexibly adjust according to the multiple process requirements in actual production.

[0026] In this embodiment of the invention, before obtaining the original pixel image and performing region selection on the original pixel image to obtain multiple partitioned regions, the method further includes: obtaining a drawing image with a pattern; performing color mapping processing on the drawing image to generate a true-color image; and performing pixel processing on the true-color image to generate the original pixel image.

[0027] In this embodiment, a patterned drawing is first obtained. Then, based on the color system of the drawing (which may be grayscale, pseudocolor, or specific coded colors), a correspondence between it and the true color RGB space is established. Through color mapping processing, the color information of the drawing is converted into a true color image where each pixel contains three channels (red, green, and blue, 8 bits each, for a total of 24 bits) and can display approximately 16.7 million colors. Then, the true color image is subjected to pixel-level standardization processing (such as unifying pixel resolution, determining the number of rows and columns of the pixel array, and extracting the color value of each pixel). Finally, a clear original pixel image with well-defined structure and clear color data is generated. By converting the drawn image into a true-color image through color mapping, the color details and visual effects of the floral design can be fully preserved, avoiding the loss of design information due to incompatible color systems. Furthermore, by generating original pixel images through pixel processing, the true-color image can be transformed into structured data that is easy to divide into subdivision units, making subsequent disassembly operations easier to perform. This effectively simplifies the subsequent processing flow for large-sized and complex floral designs. At the same time, standardized original pixel images reduce errors in subsequent disassembly and process adaptation stages, improving the efficiency and accuracy of floral design decomposition and transformation. In this embodiment of the invention, the step of obtaining the original pixel image and performing region selection on the original pixel image to obtain multiple partitioned regions includes: obtaining the original pixel image; in response to multiple bounding box operations performed by the user on the original pixel image, obtaining multiple bounding box regions formed by the user's bounding box selection; for each bounding box region, using the height of the bounding box region as the vertical dimension and the width of the original pixel image as the horizontal dimension, determining the region defined by the vertical dimension and the horizontal dimension as a partitioned region, thereby obtaining multiple non-overlapping partitioned regions.

[0028] In this embodiment, the system responds to multiple selection actions performed by the user through the interface, capturing the range defined by each selection as the selection area. Then, for each selection area, its vertical (height) dimension is retained as the vertical dimension of the partitioned area, while the width of the original pixel image is used as the horizontal dimension. The resulting rectangular area is a single partitioned area. If there are areas not selected by the user, these areas are defaulted to the same partitioned area. For example, if the user performs two selections through the interface, resulting in a first and a second partitioned area, the remaining unselected area is the default partitioned area. The multiple partitioned areas obtained in this way do not overlap in the original pixel image, collectively covering the entire range of the original pixel image. By unifying the horizontal dimensions, each partitioned area maintains consistency in the horizontal dimension, avoiding data misalignment during subsequent row-by-row splitting and texture laying due to differences in horizontal dimensions.

[0029] In this embodiment of the invention, each partition region is disassembled to obtain disassembly information corresponding to each partition region. The disassembly information includes multiple disassembly units, including: performing row number identification processing on each partition region to obtain the row number corresponding to each partition region; performing row-by-row disassembly operation on each partition region based on the row number of each partition region to generate disassembly information containing multiple disassembly units, and sequentially labeling each disassembly unit of each partition region according to the disassembly order.

[0030] In this embodiment, the knitting process of the circular knitting machine is based on the "row" as the basic time unit. The loops are knitted row by row along the longitudinal direction. The presentation of the pattern must be consistent with the physical knitting rhythm of the machine. Row-by-row decomposition allows the decomposition unit of the pattern data to directly correspond to the actual knitting unit of the machine, avoiding subsequent data conversion deviations caused by misalignment between the decomposition dimension and the process rhythm. At the same time, the pixel color arrangement within each row of the original pixel image is continuous. Row-by-row decomposition can completely preserve the color distribution characteristics of each row without the need to divide pixels across rows, thus avoiding damage to the integrity of the local pattern. Especially for large-sized and complex patterns, it can split large-scale data into several independent small decomposition files, reducing the processing difficulty of individual data units and providing a clear data foundation for setting pattern replacement rules according to color arrangement.

[0031] In this embodiment, since the disassembled units need to generate unit design images separately and then be reassembled into a complete design image, if there is no clear sequence label, the splicing order of the unit design images is likely to be chaotic, resulting in misalignment and distortion of the pattern in the complete design image. Therefore, numbering the sequence during the disassembly process can accurately record the position order of each disassembled unit in the original pixel image, ensuring that the row and column logic of the original pattern can be strictly followed during subsequent splicing.

[0032] In this embodiment of the invention, the step of setting texture replacement rules based on the disassembly information of each partition region to obtain texture replacement rules corresponding to each partition region includes: obtaining a preset number of replacement texture rows corresponding to each partition region; obtaining the color arrangement of multiple disassembly units to obtain color features corresponding to each partition region; and setting texture replacement rules corresponding to each partition region based on the number of replacement texture rows and the color features.

[0033] In this embodiment, after the original pixel image is partitioned, the number of replacement texture rows (i.e., the number of vertical rows required when each disassembly unit generates a unit design image) is retrieved according to the process requirements of each partition. The number of replacement texture rows in each partition can be different or the same. Then, the color arrangement information of all disassembly units in each partition is extracted to form corresponding color features. Finally, based on the preset number of replacement texture rows as a framework and combined with the color features of the partition, a texture replacement rule adapted to the partition is formulated, so that the texture replacement rule of each partition not only meets the row number requirement but also accurately matches its own color distribution characteristics. By matching a preset number of replacement texture rows to each partition, the differentiated process requirements of different partitions can be met, avoiding the limitations of a single row number setting. Formulating rules based on color features can ensure that the texture and color depth are matched, avoiding mismatch problems caused by uniform rules and ensuring the pattern reproduction accuracy.

[0034] In this embodiment of the invention, the step of laying out the disassembly information of the corresponding partition area according to the texture replacement rule to obtain a set of unit design diagrams corresponding to each partition area includes: obtaining a preset process texture template, the process texture template including at least one row of textures; identifying cells of the disassembly information corresponding to each partition area to obtain multiple cells; laying out each cell of the corresponding partition area according to the texture replacement rule corresponding to each partition area to obtain a set of unit design diagrams corresponding to each partition area, the set of unit design diagrams including multiple unit design diagrams, wherein each unit design diagram includes at least one target row, extracting a row of textures from the process texture template as a target texture, and laying the target texture in the target row.

[0035] In this embodiment, the preset process texture template is specifically generated according to creative needs, including creating a new process texture template or selecting a preset process texture template. That is, the designer can recreate the process texture template according to creative needs, or select a preset process texture template from the database. It can be understood that the recreated process texture template is automatically stored in the database after being saved, so that the designer can use it as a preset process texture template in the next design.

[0036] In this embodiment, after setting the texture replacement rules for the partitioned areas, the cells of the disassembly information for each partitioned area are first identified, that is, the cells of multiple disassembly units in the disassembly information are identified to obtain multiple cells. Then, according to the corresponding texture replacement rules, each cell is processed to obtain a set of unit design diagrams corresponding to each partitioned area. The set of unit design diagrams includes multiple unit design diagrams. Each unit design diagram includes at least one target row. A texture is extracted from the process texture template as the target texture and laid in the target row. In addition, each unit design diagram also includes a fill row. Any color is selected as the fill color of a certain color feature and laid in any fill row of the replacement texture.

[0037] Please refer to Figure 2 and Figure 8 In this embodiment, for ease of understanding, the following example is used for illustration: Figure 2As shown, the original pixel image is a five-column, five-row array. In the first row, the first three cells are green and the last two are blue; in the second row, the first four cells are green and the last cell is blue; in the third row, the first two cells are green and the last two are blue; in the fourth row, the first three cells are green and the last two are blue; and in the fifth row, the first three cells are green and the last two are blue. This five-column, five-row array image is then partitioned. The first and second rows are designated as the first partition, and the third through fifth rows are designated as the second partition. Please refer to [link / reference]. Figure 3 The process texture template is a two-row, three-column array image, where the cell colors in the first row are green, white, and green respectively; the cell colors in the second row are white, blue, and gray respectively; in this embodiment, each row of the process texture template is extracted sequentially to lay the replacement texture.

[0038] Please see Figure 4 and Figure 5 Taking the laying process of each cell in the first partition area as an example, the disassembly information of the first partition area includes two disassembly units, namely the first disassembly unit and the second disassembly unit.

[0039] Please see Figure 4 The color arrangement of the first disassembly unit is: green-green-green-blue-blue, with 3 rows of replacement patterns. The replacement rules are as follows: in the first row, green is replaced with red, and blue is left blank; in the second row, green is left blank, and blue remains unchanged; in the third row, the first row of the process pattern template is extracted and replaced with green, and blue is left blank. The first row of the extracted process pattern template is then laid out, resulting in the following replacement patterns: first row: red-red-red-blank-blank; second row: blank-blank-blank-blue-blue; third row: green-white-green-blank-blank.

[0040] Please see Figure 5 The second disassembly unit's color arrangement is: green-green-green-green-blue, with 3 rows of replacement patterns. The replacement rules are: in the first row, green is replaced with red, and blue is left blank; in the second row, green is left blank, and blue remains unchanged; in the third row, the second row is extracted from the process pattern template, replacing green, and blue is left blank. The second row of the extracted process pattern template is then applied, resulting in the second replacement pattern: first row: red-red-red-red-blank; second row: blank-blank-blank-blank-blue; third row: white-blue-gray-white-blank.

[0041] Please see Figure 6 , Figure 7 and Figure 8 Taking the laying process of each cell in the second partition area as an example, the disassembly information of the second partition area includes three disassembly units, namely the third disassembly unit, the fourth disassembly unit and the fifth disassembly unit.

[0042] Please see Figure 6 The color arrangement of the third disassembly unit is: green-green-blue-blue-blue, with 2 rows of replacement patterns. The replacement rules are: the first row of replacement patterns has no green pattern (i.e., blank), and blue is replaced with red. The second row is extracted from the process pattern template, replacing green, and blue is left blank. The first row of the extracted process pattern template is then laid out, resulting in the following first row of replacement patterns: blank-blank-red-red-red; the second row is: green-white-green-blank-blank.

[0043] Please see Figure 7 The fourth disassembly unit's color arrangement is: green-green-green-blue-blue, with two rows of replacement patterns. The replacement rules are: in the first row, green is replaced with red, and blue is left blank; in the second row, the second row is extracted from the pattern template, replacing green and blue with red. The first row of the extracted pattern template is laid out, resulting in the first row of the first replacement pattern being: red-red-red-blank-blank; and the second row being: white-blue-gray-red-red-red.

[0044] Please see Figure 8 The fifth disassembly unit's color arrangement is: green-green-green-blue-blue, with two rows of replacement patterns. The replacement rules are: the first row of replacement patterns leaves green unchanged and blue blank; the second row extracts the first row from the pattern template, replacing green and replacing blue with red. The first row of the extracted pattern template is then laid out, resulting in the first row of the first replacement pattern being: green-green-green-blank-blank; the second row being: green-white-green-red-red.

[0045] In this embodiment of the invention, the step of stitching together the set of unit design drawings to obtain a complete design drawing includes: obtaining the sequence number of each disassembly unit in each partition region; adding the sequence number to the unit design drawing corresponding to the disassembly unit to obtain a set of unit design drawings with sequence numbers corresponding to each partition region; performing a stitching operation on the set of unit design drawings according to the sequence number to obtain multiple region design drawings; and stitching together the multiple region design drawings to obtain the complete design drawing.

[0046] In this embodiment, after generating the unit design diagrams for each partition, the sequence numbers marked during the previous disassembly are extracted from the disassembly units within each partition, and these sequence numbers are added to the unit design diagrams generated by each disassembly unit. This makes each partition a set of unit design diagrams containing sequence numbers. Then, based on the sequence numbers, the unit design diagram sets for each partition are vertically arranged and stitched together according to the original row order to form a region design diagram that can completely present the pattern information of that partition. Finally, the region design diagrams of all partitions are stitched together according to their positional relationship in the original pixel image, resulting in a complete design diagram that covers all the information of the original pattern and has a complete row and column structure. By adding sequence numbers to the unit design diagrams, the position of each unit design diagram in the original pattern can be accurately located, avoiding row order confusion when stitching unit design diagrams within a single partition, and ensuring that the region design diagram can completely restore the pattern logic within the partition. For example, as... Figures 2 to 8 As shown, in the example above, after the first and second disassembly units perform the laying process, they obtain a first unit design image and a second unit design image. By sequentially splicing the first and second unit design images, the first region design image is obtained. Similarly, after the third, fourth, and fifth disassembly units perform the laying process, they obtain a third unit design image, a fourth unit design image, and a fifth unit design image. By sequentially splicing the third, fourth, and fifth unit design images, the second region design image is obtained. Finally, the first and second region design images are spliced ​​together according to their positional relationship in the original pixel image to obtain a complete design image. This complete design image has 12 rows and 5 columns, forming a 5-column, 12-row matrix.

[0047] The above describes the knitting pattern decomposition and transformation method in the embodiments of the present invention. The following describes the knitting pattern decomposition and transformation device in the embodiments of the present invention. Please refer to [link / reference]. Figure 9 One embodiment of the knitting pattern decomposition and transformation device of the present invention includes: Region selection module 901: used to acquire the original pixel image and perform region selection on the original pixel image to obtain multiple partition regions; Disassembly module 902: used to disassemble each partition area separately to obtain disassembly information corresponding to each partition area, wherein the disassembly information includes multiple disassembly units; Rule setting module 903: used to set texture replacement rules according to the multiple disassembly units, so as to obtain texture replacement rules corresponding to each partition area; Laying module 904: used to lay out the disassembly information of the corresponding partition area according to the texture replacement rules, and obtain the unit design map set corresponding to each partition area; splicing module 905: used to splice the set of unit design drawings to obtain a complete design drawing; Conversion module 906: used to convert the complete design drawing into electronic pattern data for weaving manufacturing.

[0048] Based on the same ideas as the methods in the above embodiments, the apparatus provided in this application can implement the methods in the above embodiments.

[0049] above Figure 9 The knitting pattern decomposition and transformation device in this embodiment of the invention is described in detail from the perspective of modular functional entities. The knitting pattern decomposition and transformation device in this embodiment of the invention is described in detail below from the perspective of hardware processing.

[0050] Figure 10 This is a schematic diagram of the structure of a knitting pattern decomposition and transformation device 1000 provided in an embodiment of the present invention. The knitting pattern decomposition and transformation device 1000 can vary considerably due to different configurations or performance. It may include one or more central processing units (CPUs) 1010 (e.g., one or more processors) and a memory 1020, and one or more storage media 1030 (e.g., one or more mass storage devices) storing application programs 1033 or data 1032. The memory 1020 and storage media 1030 can be temporary or persistent storage. The program stored in the storage media 1030 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the knitting pattern decomposition and transformation device 1000. Furthermore, the processor 1010 may be configured to communicate with the storage media 1030 and execute the series of instruction operations in the storage media 1030 on the knitting pattern decomposition and transformation device 1000 to implement the steps of the knitting pattern decomposition and transformation methods provided in the above-described method embodiments.

[0051] The knitting pattern decomposition and transformation device 1000 may also include one or more power supplies 1040, one or more wired or wireless network interfaces 1050, one or more input / output interfaces 1060, and / or one or more operating systems 1031, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 10 The knitting pattern decomposition and transformation device structure shown does not constitute a limitation on the knitting pattern decomposition and transformation device. It may include more or fewer parts than shown, or combine certain parts, or have different arrangements of parts.

[0052] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the steps of the knitting pattern decomposition and transformation method.

[0053] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0054] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0055] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for decomposing and transforming knitted patterns, characterized in that, The method comprises the following steps: obtaining an original pixel map, performing region selection on the original pixel map to obtain a plurality of partition regions; performing disassembly on each partition region respectively to obtain disassembly information corresponding to each partition region, the disassembly information comprising a plurality of disassembly units; based on the disassembly information of each partition region, setting a texture replacement rule respectively to obtain a texture replacement rule corresponding to each partition region; performing paving processing on the disassembly information of the corresponding partition region according to the texture replacement rule to obtain a unit design map set corresponding to each partition region; splicing the unit design map set to obtain a complete design map; converting the complete design map into electronic texture plate data for weaving manufacturing.

2. The knit pattern breakdown transformation method according to claim 1, characterized in that, Before the step of obtaining an original pixel map and performing region selection on the original pixel map to obtain a plurality of partition regions, the method further comprises the following steps: obtaining a drawing map with a pattern; performing color mapping processing on the drawing map to generate a true color image; performing pixel processing on the true color image to generate the original pixel map.

3. The knit pattern breakdown transformation method according to claim 1, wherein, The step of obtaining an original pixel map and performing region selection on the original pixel map to obtain a plurality of partition regions comprises the following steps: obtaining the original pixel map; in response to a plurality of frame selection operations performed by a user on the original pixel map, obtaining a plurality of frame selection regions formed by the user frame selection; for each frame selection region, taking the height of the frame selection region as the vertical dimension and taking the width of the original pixel map as the horizontal dimension, determining the region defined by the vertical dimension and the horizontal dimension as a partition region to obtain a plurality of mutually non-overlapping partition regions.

4. The knit pattern breakdown transformation method according to claim 1, wherein, The step of performing disassembly on each partition region respectively to obtain disassembly information corresponding to each partition region, the disassembly information comprising a plurality of disassembly units, comprises the following steps: performing row number identification processing on each partition region to obtain the row number corresponding to each partition region respectively; based on the row number corresponding to each partition region respectively, performing row-by-row disassembly operation on each partition region to generate disassembly information containing a plurality of disassembly units, and sequentially labeling each disassembly unit of each partition region according to the disassembly order.

5. The knit pattern breakdown transformation method according to claim 1, wherein, The step of setting a texture replacement rule based on the disassembly information of each partition region to obtain a texture replacement rule corresponding to each partition region comprises the following steps: obtaining a preset replacement texture row number corresponding to each partition region; obtaining color arrangement of a plurality of disassembly units to obtain color features corresponding to each partition region; based on the replacement texture row number and the color features, setting a texture replacement rule corresponding to each partition region.

6. The knit pattern breakdown transformation method according to claim 4, wherein, The step of performing paving processing on the disassembly information of the corresponding partition region according to the texture replacement rule to obtain a unit design map set corresponding to each partition region comprises the following steps: obtaining a preset process texture template, the process texture template comprising at least one row of texture; identifying cells of the disassembly information corresponding to each partition region to obtain a plurality of cells; According to the texture replacement rules corresponding to each partition area, each cell of the corresponding partition area is laid out to obtain a set of unit design drawings for each partition area. The set of unit design drawings includes multiple unit design drawings, wherein each unit design drawing includes at least one target row. A line of texture is extracted from the process texture template as the target texture and laid out in the target row.

7. The knit pattern breakdown transformation method according to claim 6, wherein, The step of stitching together the set of unit design drawings to obtain a complete design drawing includes: Obtain the sequence number of each disassembly unit in each partition region, add the sequence number to the unit design diagram corresponding to the disassembly unit, and obtain a set of unit design diagrams with sequence numbers corresponding to each partition region. The unit design drawings are spliced ​​together according to the order number to obtain multiple region design drawings; The complete design drawing is obtained by stitching together the design drawings of multiple regions.

8. A knit pattern resolution conversion apparatus characterized by comprising: include: Region selection module: used to acquire the original pixel image and perform region selection on the original pixel image to obtain multiple partition regions; Disassembly module: used to disassemble each partition area separately to obtain disassembly information corresponding to each partition area, wherein the disassembly information includes multiple disassembly units; Rule setting module: used to set texture replacement rules for each of the multiple disassembly units, so as to obtain texture replacement rules corresponding to each partition area; Laying module: used to lay out the disassembly information of the corresponding partition area according to the texture replacement rules, so as to obtain the unit design map set corresponding to each partition area; The splicing module is used to splice the set of unit design drawings to obtain a complete design drawing; Conversion module: Used to convert the complete design drawing into electronic pattern data for weaving manufacturing.

9. A knit pattern decomposition conversion apparatus characterized by comprising: The knitting pattern decomposition and transformation device includes: a memory and at least one processor, wherein the memory stores instructions; At least one of the processors invokes the instructions in the memory to cause the knitting pattern decomposition and transformation device to perform the various steps of the knitting pattern decomposition and transformation method as described in any one of claims 1-7.

10. A computer-readable storage medium having stored thereon instructions, the instructions comprising, When the instructions are executed by the processor, they implement the steps of the knitting pattern decomposition and transformation method as described in any one of claims 1-7.

Citation Information

Patent Citations

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

    CN116497515B