Drawing method of flower pattern module, knitting flat knitting machine and computer-readable storage medium
By using the method of converting representative color codes and vertical page numbers into horizontal page numbers in the knitting machine, the problem of discontinuity of the flower pattern module is solved, and the accuracy and modification efficiency of the flower pattern module are improved.
Patent Information
- Application Number
- CN202310424157.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2043-04-19
AI Technical Summary
In the prior art, when drawing the pattern module, the knitting horizontal machine adopts the horizontal page number representation method, resulting in discontinuous knitting actions, prone to errors and low inspection and modification efficiency.
By obtaining the representative color code and vertical page number of the flower pattern module, converting it to horizontal page number, and combining the representative color code and woven color code, the flower pattern module is drawn, and the flower pattern module is represented by a combination of vertical and horizontal page numbers.
Improve the accuracy of the representation of the flower pattern module and the inspection and modification efficiency, ensure that the flower pattern module is arranged consistently in visually, and reduce errors.
Smart Images

Figure CN116657316B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of textile display, and particularly to a method for drawing a pattern module, a flat knitting machine, and a computer-readable storage medium. Background Art
[0002] Currently, the application of flat knitting machines in clothing design and textile is becoming more and more popular. When drawing a pattern, knitting data is generated based on the knitting process, that is, a pattern file is generated. The pattern file represents a custom pattern action through a pattern module, and represents the drawn pattern module through a representative color code. When drawing a pattern module, the representative color code is expanded into the pattern module it represents.
[0003] A pattern module usually uses a row of representative color code rows to represent custom knitting actions. For complex pattern modules, the pattern actions are paged, and different page numbers represent different knitting actions. Due to the inconsistent lengths between garment pieces resulting in inconsistent page numbers on the same row, usually the pattern module adopts a horizontal page number representation method to set different page numbers of the same pattern module on the same row. For example, the body and sleeves of a coat usually have different lengths, resulting in a visual misalignment of the pattern. In the pattern file, this is manifested as different page numbers on the same row, and different page numbers can be represented on the same row through the horizontal page number representation method.
[0004] However, using the horizontal page number representation method, the knitting actions between adjacent page numbers are not continuous, resulting in easy errors in the representation of the pattern module and low inspection and modification efficiency. Summary of the Invention
[0005] To solve the above problems, the present application provides a method for drawing a pattern module, a flat knitting machine, and a computer-readable storage medium.
[0006] To solve the above technical problems, the present application provides a first technical solution, which provides a method for drawing a pattern module. The drawing method includes: obtaining the representative color code of the pattern module, the page number identifier corresponding to the representative color code, and a plurality of vertical page numbers corresponding to the page number identifier; obtaining the pattern module based on the representative color code and the plurality of vertical page numbers; converting the plurality of vertical page numbers into corresponding plurality of horizontal page numbers through the page number identifier; and drawing the pattern module based on the representative color code and the horizontal page numbers.
[0007] Wherein, the step of obtaining the representative color code of the pattern module, the page number identifier corresponding to the representative color code, and the plurality of vertical page numbers corresponding to the page number identifier includes: obtaining the pattern actions of the pattern module, paging the pattern actions to obtain the plurality of vertical page numbers and a plurality of knitting actions corresponding to the plurality of vertical page numbers; and the page number identifier is used to represent the plurality of vertical page numbers of the pattern module.
[0008] Among them, the step of obtaining the pattern module based on the representative color code and a plurality of the vertical page numbers includes: obtaining a plurality of knitting color codes based on the representative color code and a plurality of the vertical page numbers; obtaining a module identifier of the pattern module based on the representative color code and a plurality of the knitting color codes, for representing the effective range of the pattern module; setting a type identifier within the effective range, for representing the type of the pattern module; obtaining the pattern module based on the representative color code, the knitting color codes, the module identifier, the type identifier, the page number identifier, and the vertical page numbers.
[0009] Among them, the step of obtaining a plurality of knitting color codes based on the representative color code and a plurality of the vertical page numbers includes: obtaining the knitting color codes corresponding to a plurality of the knitting actions based on the representative color code and a plurality of the vertical page numbers.
[0010] Among them, the step of obtaining the knitting color codes corresponding to a plurality of the knitting actions based on the representative color code and a plurality of the vertical page numbers includes: dividing a plurality of the representative color codes into a first type of representative color codes and a second type of representative color codes; obtaining a first knitting color code row based on the vertical page numbers and the first type of representative color codes, and obtaining a second knitting color code row based on the vertical page numbers and the second type of representative color codes; the first knitting color code row corresponds to a first knitting action, and the second knitting color code row corresponds to a second knitting action.
[0011] Among them, the step of converting a plurality of the vertical page numbers into corresponding a plurality of horizontal page numbers through the page number identifier includes: obtaining a plurality of the horizontal page numbers based on the representative color code and a plurality of the vertical page numbers, and a plurality of the horizontal page numbers correspond one by one to a plurality of the knitting color code rows.
[0012] Among them, the step of drawing the pattern module based on the representative color code and the horizontal page numbers includes: obtaining a plurality of pattern sub-modules based on the representative color code and the horizontal page numbers; drawing the pattern module based on a plurality of the pattern sub-modules.
[0013] Among them, the step of obtaining a plurality of pattern sub-modules based on the representative color code and the horizontal page numbers includes: obtaining the pattern sub-module based on the representative color code, the knitting color codes, the module identifier, the type identifier, the page number identifier, and the horizontal page numbers.
[0014] To solve the above technical problems, another technical solution provided by this application is: providing a knitting flat knitting machine, the knitting flat knitting machine includes a processor and a memory connected to the processor, wherein, the memory is used for storing a computer program, and the processor is used for executing the computer program to implement the pattern module drawing method as described above.
[0015] To solve the above technical problems, another technical solution provided by this application is: to provide a computer-readable storage medium storing a computer program, which is used to implement the drawing method of the flower pattern module as described above when executed by a processor.
[0016] This application provides a drawing method for a flower pattern module, including: obtaining the representative color code of the flower pattern module, the page number identifier corresponding to the representative color code, and a plurality of vertical page numbers corresponding to the page number identifier; obtaining the flower pattern module based on the representative color code and the plurality of vertical page numbers; converting the plurality of vertical page numbers into corresponding horizontal page numbers through the page number identifier; and drawing the flower pattern module based on the representative color code and the horizontal page numbers. Based on the above method, representing the flower pattern module by the representative color code and the vertical page numbers, and drawing the flower pattern module by the representative color code and the horizontal page numbers can improve the accuracy of representing the flower pattern module and the efficiency of checking and modifying the flower pattern module. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of this application and form a part of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation to this application. In the drawings:
[0018] Figure 1 is a schematic flowchart of an embodiment of the drawing method of the flower pattern module provided by this application;
[0019] Figure 2 is a schematic structural diagram of an embodiment of the flower pattern module provided by this application;
[0020] Figure 3 is a schematic structural diagram of another embodiment of the flower pattern module provided by this application;
[0021] Figure 4 is a schematic flowchart of another embodiment of the drawing method of the flower pattern module provided by this application;
[0022] Figure 5 is a schematic flowchart of yet another embodiment of the drawing method of the flower pattern module provided by this application;
[0023] Figure 6 is a schematic structural diagram of yet another embodiment of the flower pattern module provided;
[0024] Figure 7 is a schematic structural diagram of an embodiment of the flower pattern sub-module provided by this application;
[0025] Figure 8 is a schematic structural diagram of yet another embodiment of the flower pattern module provided by this application;
[0026] Figure 9It is a schematic diagram of the framework of an embodiment of the knitting flat knitting machine provided by this application;
[0027] Figure 10 It is a schematic diagram of the structure of an embodiment of the computer-readable storage medium provided by this application. Detailed implementation manners
[0028] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following will describe in detail the specific implementation manners of the present invention with reference to the accompanying drawings. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. Additionally, it should be noted that for the sake of convenience of description, only the parts related to the present invention rather than all the structures are shown in the drawings. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
[0029] The terms "first", "second", etc. in the present invention are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products, or devices.
[0030] Referring to "embodiments" herein means that the specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the present invention. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0031] Based on the above problems, this application provides a method for drawing a pattern module, which can run in a browser or an application, and is adapted to various operating systems, such as Windows operating system, MacOS operating system, or Android operating system. Among them, the application can be plate-making software, such as CAD software. The following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application.
[0032] Please refer to Figure 1 , Figure 1 It is a schematic flowchart of an embodiment of a method for drawing a pattern module provided by this application. The method for drawing a pattern module in this embodiment is applied to a knitting flat knitting machine. The method for drawing a pattern module in this embodiment includes the following steps:
[0033] S101: Obtain the representative color code of the pattern module, the page number identifier corresponding to the representative color code, and multiple vertical page numbers corresponding to the page number identifier.
[0034] Among them, the representative color code of the pattern module is used to represent the pattern module. The pattern module can include one or more types of representative color codes. Multiple types of representative color codes can be different color codes sharing a set of basic knitting structures. Usually, a row of representative color codes is used to represent customized knitting actions, and the customized knitting actions can be designed according to the actual knitting process. The page number identifier is used to represent multiple vertical page numbers of the pattern module, and each type of representative color code corresponds to multiple vertical page numbers.
[0035] Furthermore, obtain the pattern actions of the pattern module, paginate the pattern actions to obtain multiple vertical page numbers and multiple knitting actions corresponding to the multiple vertical page numbers.
[0036] Among them, the pattern actions of the pattern module are the overall pattern actions of the pattern module. Paginating the pattern actions means splitting the pattern actions into multiple knitting actions and representing different knitting actions on different page numbers.
[0037] S102: Obtain the pattern module based on the representative color code and multiple vertical page numbers.
[0038] Among them, through the representative color code and multiple vertical page numbers, multiple knitting actions can be represented. Combining the multiple knitting actions together, the pattern actions of the pattern module can be obtained. Based on the representative color code and multiple vertical page numbers, expand the representative color code into the pattern module it represents.
[0039] S103: Convert multiple vertical page numbers into corresponding multiple horizontal page numbers through the page number identifier.
[0040] Among them, the multiple vertical page numbers are arranged in sequence from bottom to top, and the corresponding multiple rows of representative color code rows are also arranged in sequence from bottom to top, corresponding to the visual arrangement method of the pattern module. When a knitting flatbed knits the pattern module, the knitting needles knit in the horizontal direction. Due to the diversity of the pattern, the lengths between garment pieces are inconsistent or the pattern attributes of the pattern itself, there is a situation where the page numbers on the same row are inconsistent, and it is necessary to use horizontal page numbers to represent different page numbers on the same row. The knitting flatbed converts multiple vertical page numbers into corresponding multiple horizontal page numbers by identifying the page number identifier.
[0041] S104: Draw the pattern module based on the representative color code and the horizontal page numbers.
[0042] Among them, multiple knitting actions are represented by representative color codes and multiple vertical page numbers. After converting the multiple vertical page numbers into corresponding multiple horizontal page numbers, the multiple knitting actions are represented by the representative color codes and the multiple horizontal page numbers. Based on the representative color codes and the multiple horizontal page numbers, the representative color codes are expanded into the pattern modules they represent and drawn.
[0043] Therefore, this embodiment provides a method for drawing a pattern module, including: obtaining the representative color code of the pattern module, the page number identifier corresponding to the representative color code, and multiple vertical page numbers corresponding to the page number identifier; obtaining the pattern module based on the representative color code and the multiple vertical page numbers; converting the multiple vertical page numbers into corresponding multiple horizontal page numbers through the page number identifier; and drawing the pattern module based on the representative color code and the horizontal page numbers. Based on the above method, the pattern module is represented by the representative color code and the vertical page number, and the pattern module is drawn by the representative color code and the horizontal page number, which conforms to the visual arrangement of the pattern module and can represent different horizontal page numbers in the same row, improving the accuracy of the pattern module representation and the efficiency of pattern module inspection and modification.
[0044] Please refer to Figure 2 , such as Figure 2 shown in Figure 2 FIG. 12 is a schematic structural diagram of an embodiment of the pattern module provided by the present application. The pattern module 10 includes a first type of representative color code 135, a second type of representative color code 136, a first page number 1, and a second page number 2. Among them, the first page number 1 and the second page number 2 are vertical page numbers and are arranged in sequence in the vertical direction. The pattern module 10 includes two types of representative color codes. The first page number 1 and the second page number 2 corresponding to the first type of representative color code 135 can respectively represent two different knitting actions, and the first page number 1 and the second page number 2 corresponding to the second type of representative color code 136 can respectively represent two different knitting actions.
[0045] Among them, the number of representative color codes, the number of page numbers, the stacking method of representative color codes, etc. included in the pattern module 10 can all be designed according to the actual knitting process and are not limited herein.
[0046] Please refer to Figure 3 , Figure 3 FIG. 22 is a schematic structural diagram of another embodiment of the pattern module drawing method provided by the present application. As Figure 3 shown in
[0047] In other embodiments, the pattern module 10 includes multiple types of representative color codes and multiple page numbers, and the multiple page numbers and page number identifiers are arranged on the same line. For example, Figure 2 In the illustrated embodiment, after converting the vertical page numbers into corresponding horizontal page numbers, the first page number 1 and the second page number 2 corresponding to the first type of representative color code 135, the first page number 1 and the second page number 2 corresponding to the second type of representative color code 136, and the page number identifier 60 are arranged on the same line.
[0048] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of another embodiment of the method for drawing a pattern module provided by this application. This embodiment is Figure 1 a specific implementation manner for obtaining a pattern module based on representative color codes and multiple vertical page numbers. The method for drawing the pattern module in this embodiment includes the following steps:
[0049] S401: Obtain a plurality of knitting color codes based on representative color codes and multiple vertical page numbers.
[0050] Among them, a plurality of knitting actions can be represented by representative color codes and multiple vertical page numbers. By using representative color codes and multiple vertical page numbers, a plurality of knitting color codes are obtained to represent corresponding knitting actions. The knitting color codes represent different knitting stitches, that is, different basic knitting actions. For example, a red color block is used to represent the knitting action on the front bed, a green color block is used to represent the knitting action on the back bed, and other colors can represent actions such as purling and needle transfer. Optionally, the knitting page numbers can also use different numbers to represent different knitting stitches, or use a combination of numbers and color blocks of different colors to represent different knitting stitches.
[0051] The number of color blocks included in the vertical page number can be adjusted according to the complexity of the knitting action. For example, a complex knitting action requires multiple knitting color codes to represent it. If multiple knitting color codes occupy 7 rows of positions, the vertical page number is represented by 7 consecutive color blocks.
[0052] S402: Obtain a module identifier of the pattern module based on representative color codes and multiple knitting color codes, which is used to represent the effective range of the pattern module.
[0053] Among them, the module identifier includes a column of vertically arranged same-color color blocks, and the range of the module identifier corresponds to the vertical range of the pattern module.
[0054] S403: Set a type identifier within the effective range to represent the type of the pattern module.
[0055] Among them, the types of the pattern modules correspond to different knitting processes, and the knitting processes include printing, embroidery, jacquard or burnout. Set corresponding type identifiers for each knitting process. The type identifier can be set above or below the corresponding knitting color code. The type identifier can be represented by a color block different from the representative color code, the knitting color code, the module identifier, the page number identifier, and the vertical page number. The type identifier can also be represented by a color block with a shape.
[0056] For example, the type identifier of the jacquard process is a color block with a "down arrow", and the type identifier is set below the corresponding knitting color code to ensure that the knitting color codes representing the front bed knitting actions are in one column or the knitting color codes representing the back bed knitting actions are in one column.
[0057] S404: Obtain the pattern module based on the representative color code, the knitting color code, the module identifier, the type identifier, the page number identifier, and the vertical page number.
[0058] Therefore, through the method of this embodiment, multiple knitting actions can be represented by the representative color code and multiple vertical page numbers, and the knitting color codes corresponding to the knitting actions are obtained. According to the representative color code and the knitting color code, the effective range of the pattern module is obtained and represented by the module identifier. The type identifier is used to represent the type of the pattern module, and the page number identifier is used to represent the multiple vertical page numbers of the pattern module. The pattern module is obtained based on the representative color code, the knitting color code, the module identifier, the type identifier, the page number identifier, and the vertical page number.
[0059] Among them, based on the representative color code and multiple vertical page numbers, the knitting color codes corresponding to multiple knitting actions are obtained. Specifically, please refer to Figure 5 , Figure 5 which is a schematic flow chart of another embodiment of the method for drawing a pattern module provided by this application. The method for drawing a pattern module in this embodiment includes the following steps:
[0060] S501: Divide multiple representative color codes into a first type of representative color code and a second type of representative color code.
[0061] Among them, the first type of representative color code and the second type of representative color code are represented by color blocks with different numbers, or by color blocks with different colors, or by a combination of numbers and color blocks with different colors.
[0062] S502: Obtain the first knitting color code row based on the vertical page number and the first type of representative color code, and obtain the second knitting color code row based on the vertical page number and the second type of representative color code.
[0063] Among them, one knitting action is represented by one row of knitting color codes, and the number of knitting color codes included in one row of knitting color codes is equal to the number of representative color codes included in one row of representative color codes.
[0064] Furthermore, the arrangement direction of the braided color code rows is set corresponding to the arrangement direction of the vertical page numbers. For example, the vertical page numbers are arranged in sequence from bottom to top, and the braided color code rows corresponding to the vertical page numbers are also arranged in sequence from bottom to top.
[0065] Optionally, the braided color code can be bound and set with the vertical page numbers. For example, the color blocks used to represent the vertical page numbers are also used to represent a knitting stitch. For example, the red color block represents the first page of the vertical page number and represents the knitting action of the front bed; the green color block represents the second page of the vertical page number and represents the knitting action of the back bed; the yellow color block represents the third page of the vertical page number and represents the purl stitch action; if the knitting actions corresponding to the first page of the vertical page number and the representative color code include the knitting action of the front bed and the purl stitch action, then the braided color code row representing the knitting action includes the red color block, and the yellow color block representing the purl stitch action is set below the color block where the purl stitch action is performed.
[0066] S503: The first braided color code row corresponds to the first knitting action, and the second braided color code row corresponds to the second knitting action.
[0067] Therefore, through the method of this embodiment, the knitting actions are represented by the representative color code and the vertical page numbers, and the braided color code rows corresponding to the knitting actions are obtained.
[0068] Please refer to Figure 6 , Figure 6 which is a schematic structural diagram of another embodiment of the pattern module provided by this application. Specifically, the drawing method of the pattern module of this embodiment can run in a browser or an application program, and the browser or the application program also includes multiple windows, such as a drawing window, a function window, and a layer window, etc. The drawing window 20 draws the first type of representative color code 135, the second type of representative color code 136, the type identifier 62, and the braided color code 63. The braided color code 63 includes the first braided color code row 631, the second braided color code row 632, the third braided color code row 633, and the fourth braided color code row 634. The function window 30 draws the first page number 1, the second page number 2, the page number identifier 60, and the module identifier 61. The first page number 1 and the second page number 2 are vertical page numbers. The page number identifier 60 is set in the same column as the first page number 1 and the second page number 2, and is set in the same row as the first type of representative color code 135 and the second type of representative color code 136. The first page number 1 in the drawing window 20 is used to represent the end of the pattern module. The module identifier 61 is used to represent the effective range of the pattern module.
[0069] Among them, the first knitting color code row 631 is obtained based on the first page number 1 of the vertical page number and the first type of representative color code 135. The first knitting color code row 631 corresponds to the first knitting action. The second knitting color code row 632 is obtained based on the first page number 1 of the vertical page number and the second type of representative color code 136. The second knitting color code row 632 corresponds to the second knitting action. The third knitting color code row 633 is obtained based on the second page number 2 of the vertical page number and the first type of representative color code 135. The third knitting color code row 633 corresponds to the third knitting action. The fourth knitting color code row 634 is obtained based on the second page number 2 of the vertical page number and the second type of representative color code 136. The fourth knitting color code row 634 corresponds to the fourth knitting action.
[0070] Taking the third knitting action as an example, the pattern module includes a type identifier 62, which is used to represent the type of the pattern module, and different arrangement methods are set according to different types.
[0071] Furthermore, based on the representative color code, knitting color code, module identifier, type identifier, page number identifier, and horizontal page number, a pattern sub-module is obtained. Figure 7 It is a schematic structural diagram of an embodiment of the pattern sub-module provided by this application. Figure 7 It is related to Figure 6 The pattern sub-module corresponding to the third knitting action in, includes a page number identifier 60, a module identifier 61, a type identifier 62, a first page number 1, a second page number 2, and a third knitting color code row 633.
[0072] Based on multiple pattern sub-modules, a pattern module is drawn. The drawn pattern module is as Figure 8 shown. Figure 8 It is a schematic structural diagram of another embodiment of the pattern module provided by this application. The pattern module 10 includes a first pattern sub-module 81, a second pattern sub-module 82, a third pattern sub-module 83, a fourth pattern sub-module 84, a page number identifier 60, and a module identifier 61. The module identifier 61 includes a first module identifier 611 and a second module identifier 612. The page number identifier 60 is correspondingly set with the first page number 1 of the first pattern sub-module 81 and the second page number 2 of the second pattern sub-module 82. The page number identifier 60 is correspondingly set with the first page number 1 of the third pattern sub-module 83 and the second page number 2 of the fourth pattern sub-module 84.
[0073] Please refer to Figure 9 , Figure 9 It is a schematic framework diagram of an embodiment of the knitting flat knitting machine provided by this application. As Figure 9 shown, the knitting flat knitting machine 100 includes a processor 101 and a memory 102 connected to the processor 101. Among them, the memory 102 is used to store computer programs, and the processor 101 is used to execute the computer programs to implement the above stability test method.
[0074] Among them, the processor 101 can also be referred to as a CPU (Central Processing Unit). The processor 101 may be an electronic chip with signal processing capabilities. The processor 101 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0075] The memory 102 can be a memory module, a TF card, etc., and can store all the information in the knitting machine 100. All the input original data, computer programs, intermediate operation results, and final operation results are saved in the memory 102. It stores and retrieves information according to the location specified by the processor 101. With the memory 102, the knitting machine 100 has a memory function and can ensure normal operation. The memory 102 of the knitting machine 100 can be divided into a main memory (internal memory) and an auxiliary memory (external memory) according to its use, or there is also a classification method of dividing it into an external memory and an internal memory. The external memory is usually a magnetic medium or an optical disc, etc., which can store information for a long time. The internal memory refers to the storage component on the motherboard, which is used to store the data and programs being currently executed, but is only used to temporarily store programs and data. When the power is turned off or cut off, the data will be lost.
[0076] Please refer to Figure 10 , Figure 10 is a schematic structural diagram of an embodiment of the computer-readable storage medium provided by this application. As Figure 10 shown, the computer-readable storage medium 110 stores program instructions 111 that can implement all the above methods.
[0077] If the units integrated in the functional units in the embodiments of this application are implemented in the form of software functional units and sold or used as independent products, they can be stored in the computer-readable storage medium 110. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. The computer-readable storage medium 110 includes several instructions in a program instruction 111 to enable a computer device (which can be a personal computer, a system server, or a network device, etc.), an electronic device (such as an MP3, an MP4, etc., can also be a mobile terminal such as a mobile phone, a tablet computer, a wearable device, etc., or can also be a desktop computer, etc.) or a processor to execute all or part of the steps of the methods of various embodiments of this application.
[0078] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media 110 (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0079] The present application is described with reference to the flow diagrams and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each flow and / or block in the flow diagrams and / or block diagrams, as well as the combination of flows and / or blocks in the flow diagrams and / or block diagrams, can be implemented by the computer-readable storage media 110. These computer-readable storage media 110 can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the program instructions 111 executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0080] These computer-readable storage media 110 can also be stored in a memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the program instructions 111 stored in the computer-readable storage media 110 generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0081] These computer-readable storage media 110 can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the program instructions 111 executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0082] Any process or method description represented in the flowchart or described otherwise herein may be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a specific logical function or process. The scope of the preferred embodiments of the present application includes additional implementations, where the functions may be executed in a substantially simultaneous manner or in an order opposite to that shown or discussed, according to the functions involved, which should be understood by those skilled in the technical field to which the embodiments of the present application pertain.
[0083] The logic and / or steps represented in the flowchart or described otherwise herein, for example, may be considered a sequenced list of executable instructions for implementing a logical function and may be embodied in any medium for use by or in connection with an instruction execution system, apparatus, or device (which may be a personal computer, a server, a network device, or other system that can fetch instructions from the instruction execution system, apparatus, or device and execute the instructions).
[0084] The above are only the embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. A method for drawing a flower pattern module, characterized in that, The drawing method includes: Obtaining the representative color code of the pattern module, the page number identifier corresponding to the representative color code, and a plurality of vertical page numbers corresponding to the page number identifier; Based on the representative color code and the plurality of vertical page numbers, obtaining the pattern module; Converting the plurality of vertical page numbers into corresponding horizontal page numbers through the page number identifier; Drawing the pattern module based on the representative color code and the horizontal page numbers; Among them, the step of obtaining the representative color code of the pattern module, the page number identifier corresponding to the representative color code, and a plurality of vertical page numbers corresponding to the page number identifier includes: Obtaining the pattern action of the pattern module, paging the pattern action to obtain a plurality of the vertical page numbers and a plurality of knitting actions corresponding to the plurality of vertical page numbers; The page number identifier is used to represent the plurality of vertical page numbers of the pattern module; Among them, the step of obtaining the pattern module based on the representative color code and the plurality of vertical page numbers includes: Based on the representative color code and the plurality of vertical page numbers, obtaining a plurality of knitting color codes; Based on the representative color code and the plurality of knitting color codes, obtaining the module identifier of the pattern module, which is used to represent the effective range of the pattern module; Setting a type identifier within the effective range to represent the type of the pattern module; Based on the representative color code, the knitting color codes, the module identifier, the type identifier, the page number identifier, and the vertical page numbers, obtaining the pattern module; Among them, the step of converting the plurality of vertical page numbers into corresponding horizontal page numbers through the page number identifier includes: Based on the representative color code and the plurality of vertical page numbers, obtaining a plurality of the horizontal page numbers, and the plurality of horizontal page numbers correspond one by one to the plurality of knitting color code rows.
2. The drawing method according to claim 1, wherein The step of obtaining a plurality of knitting color codes based on the representative color code and the plurality of vertical page numbers includes: Based on the representative color code and the plurality of vertical page numbers, obtaining the knitting color codes corresponding to the plurality of knitting actions.
3. The drawing method according to claim 2, characterized in that The step of obtaining the knitting color codes corresponding to the plurality of knitting actions based on the representative color code and the plurality of vertical page numbers includes: Dividing the plurality of representative color codes into a first type of representative color code and a second type of representative color code; Obtaining a first knitting color code row based on the vertical page numbers and the first type of representative color code, and obtaining a second knitting color code row based on the vertical page numbers and the second type of representative color code; The first knitting color code row corresponds to a first knitting action, and the second knitting color code row corresponds to a second knitting action.
4. The drawing method according to claim 1, characterized in that The step of drawing the pattern module based on the representative color code and the horizontal page numbers includes: Based on the representative color code and the horizontal page numbers, obtaining a plurality of pattern sub-modules; Drawing the pattern module based on the plurality of pattern sub-modules.
5. The drawing method according to claim 4, characterized in that, The step of obtaining a plurality of pattern sub-modules based on the representative color code and the horizontal page numbers includes: Based on the representative color code, the knitting color codes, the module identifier, the type identifier, the page number identifier, and the horizontal page numbers, obtaining the pattern sub-module.
6. A flat knitting machine, characterized in that, It includes a processor and a memory connected to the processor. Among them, program data is stored in the memory, and the processor retrieves the program data stored in the memory to execute the drawing method according to any one of claims 1-5.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and the computer program is used to implement the drawing method according to any one of claims 1-5 when executed by a processor.
Citation Information
Patent Citations
Generation method and generation system of pattern file for knitting
CN110765652A
Paging methods of pattern module, pattern drawing method, and equipment
CN111411445A