Pattern spreading method and knitting apparatus

By determining the flower pattern module in the pattern expansion method and expanding in response to instructions, the cumbersome and error-prone problems of module edge weaving in the pattern drawing are solved, and simpler and more flexible flower pattern module drawing and expansion are achieved.

CN120217460APending Publication Date: 2025-06-27FUJIAN RAYNEN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510212945.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-25
Publication Date
2025-06-27

Smart Images

  • Figure CN120217460A_ABST
    Figure CN120217460A_ABST
Patent Text Reader

Abstract

The invention discloses a pattern unfolding method and knitting equipment, and the pattern unfolding method comprises the steps: determining a pattern module which at least comprises a representative color code, a representative knitting code corresponding to the representative color code, an edge color code, an edge knitting code corresponding to the edge color code, and a direction color code corresponding to the edge knitting code; in response to the drawing instruction, a pattern is drawn based on the pattern module, and the pattern comprises representative color codes; in response to an unfolding instruction, correspondingly unfolding representative color codes in the pattern into representative weaving codes to obtain an initial pattern unfolding graph; and determining a pointing direction based on the direction color code, and expanding the edge knitting code in the pointing direction representing the knitting code in the initial pattern expansion graph based on the pointing direction to obtain a final pattern expansion graph. According to the method, the edge expansion of the pattern module can be quickly and effectively obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of textile technology, particularly to a pattern expansion method and a knitting device. Background Art

[0002] To increase the aesthetic value of clothing and enhance the brand value of products, it is usually necessary to design decorative patterns on clothing. Designers give consumers a visual impact through the shape and color combination of the patterns, triggering consumers' shopping impulses.

[0003] Currently, the application of knitting devices (such as flat knitting machines) in clothing design and knitting is becoming more and more popular. When knitting pattern drawing using a knitting device, by using representative color codes to represent the representative knitting codes to be drawn, and then using the representative color codes to draw corresponding patterns, pattern expansion is to expand the representative color codes into the representative knitting codes they represent. In related technologies, there are problems such as cumbersome needle number arrangement and easy error in needle arrangement when drawing patterns and representative knitting codes. Summary of the Invention

[0004] This application provides a pattern expansion method and a knitting device, which can solve the problems of cumbersome needle number arrangement and easy error in needle arrangement during the pattern drawing process, especially the problems of cumbersome and error-prone needle arrangement, needle number, and direction, etc. at the edge of the pattern module, reduce the complexity of pattern module drawing, and visually present the drawing effect of the pattern module, especially the edge of the pattern module.

[0005] To solve the above technical problems, on the one hand, this application provides a pattern expansion method, which includes: determining a pattern module, the pattern module at least including representative color codes, representative knitting codes corresponding to the representative color codes, edge color codes, edge knitting codes corresponding to the edge color codes, and direction color codes corresponding to the edge knitting codes; in response to a drawing instruction, based on the pattern module, drawing a pattern diagram, the pattern diagram including representative color codes; in response to an expansion instruction, expanding the representative color codes corresponding in the pattern diagram into representative knitting codes to obtain an initial pattern expansion diagram; and, determining a pointing direction based on the direction color codes, and expanding the edge knitting codes in the pointing direction of the representative knitting codes in the initial pattern expansion diagram based on the pointing direction to obtain a final pattern expansion diagram.

[0006] In some embodiments, the pointing direction includes a first direction and a second direction.

[0007] Expanding the edge knitting codes in the pointing direction of the representative knitting codes in the initial pattern expansion diagram includes:

[0008] When the pointing direction is the first direction, determining a target knitting code at the edge position in the representative knitting codes, and expanding the edge knitting codes in the first direction of the target knitting code.

[0009] When the pointing direction is the second direction, an edge knitting code is extended in the second direction representing the knitting code.

[0010] In some embodiments, the number of edge color codes, edge knitting codes is the same as that of the direction color codes. The number of representative color codes is the same as that of the representative knitting codes.

[0011] In some embodiments, the first direction points to the left side of the representative knitting code, or the first direction points to the right side of the representative knitting code. The second direction points above the representative knitting code, or the second direction points below the representative knitting code.

[0012] In some embodiments, when the pointing direction is the first direction and the first direction points to the left side of the representative knitting code, determining a target knitting code at the edge position in the representative knitting code, and extending an edge knitting code in the first direction of the target knitting code, including: determining a first target knitting code at the first edge position from the representative knitting code; wherein, no knitting code is connected to the left side of the first target knitting code; extending the edge knitting code to the left of the first target knitting code.

[0013] In some embodiments, when the pointing direction is the first direction and the first direction points to the right side of the representative knitting code, determining a target knitting code at the edge position in the representative knitting code, and extending an edge knitting code in the first direction of the target knitting code, including: determining a second target knitting code at the second edge position from the representative knitting code; wherein, no knitting code is connected to the right side of the second target knitting code; extending the edge knitting code to the right of the second target knitting code.

[0014] In some embodiments, when the pointing direction is the second direction and the second direction points above the representative knitting code, extending an edge knitting code in the second direction of the representative knitting code, including: determining that the representative knitting code is in the i-th row, and extending the edge knitting code in the (i + 1)-th row.

[0015] In some embodiments, when the pointing direction is the second direction and the second direction points below the representative knitting code, extending an edge knitting code in the second direction of the representative knitting code, including: determining that the representative knitting code is in the i-th row, and extending the edge knitting code in the (i - 1)-th row.

[0016] In some embodiments, when the initial pattern unfolding diagram includes at least two adjacent rows of representative knitting codes, and the pointing direction is the second direction and the second direction points above the representative knitting code, the method further includes:

[0017] Determine that two adjacent representative knitting codes are the representative knitting code located in the i-th row and the representative knitting code located in the (i - 1)-th row respectively. Expand the edge knitting code corresponding to the representative knitting code located in the i-th row in the (i + 1)-th row; move the representative knitting code located in the (i - 1)-th row to the (i - 2)-th row, and expand the edge knitting code corresponding to the representative knitting code located in the (i - 1)-th row in the (i - 1)-th row. Or

[0018] Move the representative knitting code located in the i-th row to the (i + 1)-th row, and expand the edge knitting code corresponding to the representative knitting code located in the (i - 1)-th row in the i-th row; expand the edge knitting code corresponding to the representative knitting code located in the i-th row in the (i + 2)-th row.

[0019] In some embodiments, when the initial pattern expansion diagram includes at least two adjacent representative knitting codes, the pointing direction is the second direction, and the second direction points below the representative knitting code, the method further includes:

[0020] Determine that two adjacent representative knitting codes are the representative knitting code located in the i-th row and the representative knitting code located in the (i - 1)-th row respectively. Move the representative knitting code located in the (i - 1)-th row to the (i - 2)-th row, and expand the edge knitting code corresponding to the representative knitting code located in the i-th row in the (i - 1)-th row; expand the edge knitting code corresponding to the representative knitting code located in the (i - 1)-th row in the (i - 3)-th row. Or

[0021] Move the representative knitting code located in the i-th row to the (i + 1)-th row, and expand the edge knitting code corresponding to the representative knitting code located in the i-th row in the i-th row; expand the edge knitting code corresponding to the representative knitting code located in the (i - 1)-th row in the (i - 2)-th row.

[0022] In some embodiments, the patterns corresponding to two adjacent representative knitting codes are the same or different.

[0023] To solve the above technical problems, on the other hand, the present application provides a knitting device, which includes a memory and a processor. The memory stores a computer program, and the processor is used to execute the computer program to execute the above pattern expansion method.

[0024] In some embodiments of the present application, the pattern expansion method and knitting equipment provided can intuitively display the actions, number of needles, and directions of pattern module expansion, especially the edges of the pattern module, by determining a pattern module, which at least includes a representative color code, a representative knitting code corresponding to the representative color code, an edge color code, an edge knitting code corresponding to the edge color code, and a direction color code corresponding to the edge color code. Moreover, the customized pattern module can be changed according to user needs, supporting user modification, being relatively flexible, and the modification method being simple and convenient. Further, in response to a drawing instruction, based on the pattern module, a pattern diagram is drawn, and the pattern diagram includes a representative color code; in response to an expansion instruction, the representative color code is expanded into a representative knitting code, the pointing direction is determined based on the direction color code, and the edge knitting code is expanded in the pointing direction of the representative knitting code in the initial pattern expansion diagram based on the pointing direction to obtain the final pattern expansion diagram. Through the above method, the edge expansion of the pattern module can be obtained quickly and effectively. Through the above method, the initial pattern expansion diagram can be drawn one-to-one according to the pattern diagram without changing the pattern and arranging needles, reducing complexity and solving the cumbersome and error-prone problems such as pattern module needle arrangement, number of needles, and direction. Finally, according to the direction color code, the edge knitting code is drawn in the specified direction of the edge color code in the initial pattern expansion diagram, which can reduce the probability of errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings. Among them:

[0026] Figure 1 is a schematic flowchart of the pattern expansion method in some embodiments of the present application;

[0027] Figure 2 is a partial display schematic diagram of the human-machine interaction interface in some embodiments of the present application;

[0028] Figure 3 is a partial display schematic diagram of the human-machine interaction interface in some embodiments of the present application;

[0029] Figure 4 is a partial display schematic diagram of the human-machine interaction interface in some embodiments of the present application;

[0030] Figure 5 is a schematic diagram of the final pattern expansion diagram in some embodiments of the present application;

[0031] Figure 6 is a schematic diagram of the final pattern expansion diagram in some embodiments of the present application;

[0032] Figure 7 It is a schematic diagram of the final pattern unfolding diagram in some embodiments of the present application;

[0033] Figure 8 It is a schematic diagram of the final pattern unfolding diagram in some embodiments of the present application;

[0034] Figure 9 It is a schematic structural diagram of a knitting device in some embodiments of the present application;

[0035] Figure 10 It is a schematic structural diagram of a computer-readable storage medium in some embodiments of the present application. Detailed implementation manners

[0036] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0037] Refer to Figure 1 , Figure 1 It is a schematic flowchart of a pattern unfolding method in some embodiments of the present application. The pattern unfolding method includes:

[0038] Step 11: Determine a pattern module; wherein, the pattern module at least includes a representative color code, a representative knitting code corresponding to the representative color code, an edge color code, an edge knitting code corresponding to the edge color code, and a direction color code corresponding to the edge knitting code.

[0039] In some embodiments, the pattern module can be generated according to the user's operation, or can be directly read from a database, a server, etc.

[0040] In some embodiments, the representative color code includes at least one type of representative color code. The representative knitting code corresponding to each type of representative color code represents a pattern.

[0041] Exemplarily, the representative color code includes a first representative color code, and the knitting code corresponding to the first representative color code is a first knitting code. For example, use to represent the first representative color code, and use to represent the first knitting code.

[0042] Exemplarily, the representative color code includes a first representative color code and a second representative color code. The knitting code corresponding to the first representative color code is a first knitting code, and the knitting code corresponding to the second representative color code is a second knitting code. For example, use to represent the second representative color code, and use to represent the second knitting code.

[0043] Exemplarily, the representative color codes include a first representative color code, a second representative color code, and a third representative color code. The knitting code corresponding to the first representative color code is the first knitting code, the knitting code corresponding to the second representative color code is the second knitting code, and the knitting code corresponding to the third representative color code is the third knitting code. For example, represents the third representative color code, and represents the third knitting code.

[0044] In other embodiments, the representative color codes may also include other types, which are not limited herein.

[0045] It can be understood that the number of representative color codes corresponds one-to-one with the number of representative knitting codes. For example, the number of the first representative color code is the same as that of the first knitting code, the number of the second representative color code is the same as that of the second knitting code, and the number of the third representative color code is the same as that of the third knitting code.

[0046] In some embodiments, the pattern module at least includes a direction color code for indicating a direction. The direction color code is used to identify the edge direction of the representative knitting code, and the edge direction at least includes four directions: up, down, left, and right. Among them, the direction color codes corresponding to different directions are different. For example, represents the direction color code with the direction of "left", represents the direction color code with the direction of "right", represents the direction color code with the direction of "up", and represents the direction color code with the direction of "down".

[0047] In some embodiments, the edge knitting codes corresponding to different direction color codes are different. For example, the edge knitting code corresponding to is The edge knitting code corresponding to is The edge knitting code corresponding to is The edge knitting code corresponding to is

[0048] In some embodiments, the edge color codes corresponding to different direction color codes or different edge knitting codes are the same. For example, represents the edge color code, and the edge color codes in the four directions of left, right, up, and down are all

[0049] It can be understood that the number of direction color codes corresponds one-to-one with the number of edge color codes, the number of direction color codes corresponds one-to-one with the number of edge knitting codes, and the number of edge color codes corresponds one-to-one with the number of edge knitting codes.

[0050] In some embodiments, the edge color code is an extended part representing the color code.

[0051] In some embodiments of the present application, the representative color code, representative knitting code, edge color code, edge knitting code, direction color code, etc. included in the pattern module can be arranged according to a preset rule and on the human-computer interaction interface, which is convenient for the user to define and operate on the human-computer interaction interface and for the user to observe, and can avoid errors in subsequent steps such as drawing a pattern diagram and an initial pattern expansion diagram.

[0052] In addition, for the convenience of the user to make a comparison, in the first target area of the human-computer interaction interface, the representative color code and the edge color code can be set in the same row of the human-computer interaction interface, the representative knitting code and the edge knitting code can be set in the same row of the human-computer interaction interface, and the direction color code can be set in a separate row. Also, the representative color code and the representative knitting code can be set in the same column of the human-computer interaction interface, and the edge color code, the edge knitting code, and the direction color code can be set in the same column of the human-computer interaction interface. For details, reference can be made to Figure 2 Figure ① in Figure 3 Figure ① and Figure 4 Figure ① and other attached drawings such as

[0053] In addition, in practical applications, only the required edge knitting codes are displayed in the first target area of the human-computer interaction interface. For example, when only expansion on the left side and on the right side is required, only the edge knitting codes with the direction to the left and the edge knitting codes with the direction to the right are displayed in the first target area, that is, only and

[0054] In addition, for aesthetics, the representative color code, representative knitting code, edge color code, edge knitting code, and direction color code can be set to have the same size on the human-computer interaction interface. The representative color code, representative knitting code, edge color code, edge knitting code, and direction color code, etc. can also be set to different colors for distinction by using colors.

[0055] In some embodiments, the pattern module further includes an attribute color code, and the attribute color code is used to represent the attribute of the representative color code, and the attribute color code is used to represent a kind of loop mode of the representative knitting code. For example, use to represent the attribute color code.

[0056] Among them, the number of attribute color codes is set corresponding to the number of representative color codes and edge color codes, or the number of attribute color codes is set corresponding to the number of representative knitting codes and edge knitting codes. For details, reference can be made to Figure 2 Figure ① in Figure 3 Figure ① and Figure 4 Figure ① and other attached drawings such as

[0057] Step 12: In response to a drawing instruction, draw a pattern diagram based on the pattern module; wherein, the pattern diagram includes a representative color code.

[0058] In some embodiments, in response to a user's operation on the human-computer interaction interface, a drawing instruction is generated, and then a pattern diagram can be drawn based on the pattern module. It can be understood that the drawing instruction is related to the arrangement and quantity of the color codes represented in the pattern diagram, etc.

[0059] Before drawing a pattern diagram based on the pattern module, a preset pattern diagram can be obtained, and then the pattern diagram can be drawn according to the preset pattern diagram and the pattern model.

[0060] When drawing a pattern diagram, the pattern diagram can be drawn in the second target area of the human-computer interaction interface by means of dragging and / or copy-pasting, etc.

[0061] In some embodiments, a plurality of function buttons are displayed on the human-computer interaction interface, and different function buttons can implement different functions. For example, an undo button that supports an undo operation; a copy button that supports copying operations on selected color codes or knitting codes, etc.; a paste button that supports pasting operations on the copied color codes or knitting codes, etc.; a pull-up button and a pull-down button that support paging operations, specifically, different pattern diagrams can be changed by pulling up or pulling down. Among them, different pattern diagrams can be completed pattern diagrams or uncompleted pattern diagrams.

[0062] In some embodiments, the pattern diagram includes at least one kind of color code represented.

[0063] Exemplarily, when the color code represented includes a first color code represented, the pattern diagram includes the first color code represented. In other words, the pattern diagram is composed of the first color code represented. Among them, the quantity and arrangement of the first color code represented in the pattern diagram can be determined according to the actual situation and are not limited here. As Figure 2 shown in Figure ② in the middle, the pattern diagram includes three rows of color codes represented, and each row of color codes represented has seven first color codes represented.

[0064] Exemplarily, when the color code represented includes a first color code represented and a second color code represented, the pattern diagram includes the first color code represented and the second color code represented. In other words, the pattern diagram is composed of the first color code represented and the second color code represented. Among them, the quantity and arrangement of the first color code represented and the second color code represented in the pattern diagram can be determined according to the actual situation and are not limited here. As Figure 3 shown in Figure ② in the middle, the pattern diagram includes three rows of color codes represented. The first row includes seven first color codes represented arranged in sequence, and the second row and the third row respectively include three second color codes represented and four first color codes represented arranged in sequence.

[0065] Exemplarily, when the representative color codes include a first representative color code, a second representative color code, and a third representative color code, the pattern diagram includes the first representative color code, the second representative color code, and the third representative color code. In other words, the pattern diagram is composed of the first representative color code, the second representative color code, and the third representative color code. Among them, the quantity and arrangement of the first representative color code, the second representative color code, and the third representative color code in the pattern diagram can be determined according to the actual situation and are not limited here. As Figure 4 As shown in Figure ② in the middle, the pattern diagram includes three rows of representative color codes, and each row respectively includes seven two second representative color codes, two third representative color codes, and three first representative color codes arranged in sequence.

[0066] Step 13: In response to the unfolding instruction, expand each representative color code in the pattern diagram into a representative knitting code to obtain an initial pattern unfolding diagram.

[0067] In some embodiments, in response to the user's operation on the human-computer interaction interface, an unfolding instruction is generated, and then each representative color code in the pattern diagram can be correspondingly expanded into a corresponding representative knitting code to obtain an initial pattern unfolding diagram.

[0068] It can be understood that the unfolding instruction is related to the type, arrangement, quantity, etc. of the representative color codes in the pattern diagram. When the representative color codes include multiple types, the unfolding instruction can be an integrated instruction, which can perform the unfolding operation on all types of representative color codes. The unfolding instruction can include multiple sub-unfolding instructions, and different sub-unfolding instructions are used to perform the unfolding operation on different types of representative color codes.

[0069] In some embodiments, when drawing the initial pattern unfolding diagram, the initial pattern unfolding diagram can be drawn in the third target area of the human-computer interaction interface by means of dragging and / or copy-pasting, etc., by comparing with the pattern diagram one by one.

[0070] It can be understood that the initial pattern unfolding diagram is obtained by "replacing" the representative color codes in the pattern diagram with the corresponding knitting codes. The so-called "replacement" does not mean eliminating or removing the meaning of the pattern diagram and the representative color codes in the pattern diagram, but retaining the pattern diagram and redrawing the initial pattern unfolding diagram corresponding to the pattern Figure 1 one by one.

[0071] Exemplarily, the pattern diagram includes a first representative color code. According to the quantity and arrangement of the first representative color code in the pattern diagram, the initial pattern unfolding diagram is drawn in the third target area. Take Figure 2 the pattern diagram shown in Figure ② in the middle as an example, the corresponding initial pattern unfolding diagram is as shown in Figure 2 Figure ③ in the middle.

[0072] Exemplarily, the pattern diagram includes a first representative color code and a second representative color code. According to the quantity and arrangement of the first representative color code and the second representative color code in the pattern diagram, an initial pattern unfolding diagram is drawn within the third target area. Taking Figure 3 the pattern diagram shown in Figure ② in the middle figure as an example, the corresponding initial pattern unfolding diagram is as shown in Figure 3 Figure ③ in the middle figure.

[0073] Exemplarily, the pattern diagram includes a first representative color code, a second representative color code, and a third representative color code. According to the quantity and arrangement of the first representative color code, the second representative color code, and the third representative color code in the pattern diagram, an initial pattern unfolding diagram is drawn within the third target area. Taking Figure 4 the pattern diagram shown in Figure ② in the middle figure as an example, the corresponding initial pattern unfolding diagram is as shown in Figure 4 Figure ③ in the middle figure.

[0074] Step 14: Determine the pointing direction based on the direction color code, and extend the edge knitting codes in the pointing direction representing the knitting codes in the initial pattern unfolding diagram based on the pointing direction to obtain the final pattern unfolding diagram.

[0075] In some embodiments, when drawing the final pattern unfolding diagram, the final pattern unfolding diagram can be drawn based on the initial pattern unfolding diagram within the fourth target area of the human-computer interaction interface by means of dragging and / or copy-pasting, etc.

[0076] In some embodiments, in response to the user's operation on the human-computer interaction interface, the pointing direction is determined based on the direction color code, and the pointing direction is used to identify the edge direction of the knitting code representing.

[0077] Among them, the pointing direction includes at least a first direction and a second direction. The first direction points to the left side of the knitting code representing, or the first direction points to the right side of the knitting code representing. The second direction points to the upper side of the knitting code representing, or the second direction points to the lower side of the knitting code representing.

[0078] Or, the pointing direction includes at least four directions: up, down, left, and right. It can be used to represent that the direction is left, and use to represent that the direction is right, use to represent that the direction is up, and use to represent that the direction is down.

[0079] In some embodiments, when the pointing direction is the first direction, the target knitting code in the edge position in the knitting code representing can be determined, and the edge knitting codes are extended in the first direction of the target knitting code to obtain the final pattern unfolding diagram. It can be understood that the edge position corresponds to the first direction.

[0080] Specifically, when the pointing direction is the first direction and the first direction points to the left of the representative knitting code, the first target knitting code at the first edge position can be determined from the representative knitting code, where no knitting code is connected to the left of the first target knitting code. Thus, an edge knitting code can be extended to the left of the first target knitting code.

[0081] When the pattern diagram includes the first representative color code and the initial pattern diagram includes the first knitting code, the pointing direction points to the left of the first knitting code. Taking Figure 2 the initial pattern unfolding diagram shown in Figure ③ in the middle as an example, the corresponding final pattern unfolding diagram is as Figure 5 shown in Figure ① in the middle, and the edge knitting code is set to the left of the three first knitting codes on the left edge of the initial pattern diagram.

[0082] When the pattern diagram includes the first representative color code and the second representative color code, and the initial pattern diagram includes the first knitting code and the second knitting code, the pointing direction points to the left of the first knitting code and / or the second knitting code. Taking Figure 3 the initial pattern unfolding diagram shown in Figure ③ in the middle as an example, the corresponding final pattern unfolding diagram is as Figure 5 shown in Figure ② in the middle, and the edge knitting code is set to the left of the first knitting code and the second knitting code on the left edge of the initial pattern diagram.

[0083] When the pattern diagram includes the first representative color code, the second representative color code, and the third representative color code, and the initial pattern diagram includes the first knitting code, the second knitting code, and the third knitting code, the pointing direction points to the left of at least one of the first knitting code, the second knitting code, and the third knitting code. Taking Figure 4 the initial pattern unfolding diagram shown in Figure ③ in the middle as an example, the corresponding final pattern unfolding diagram is as Figure 5 shown in Figure ③ in the middle, and the edge knitting code is set to the left of the three second knitting codes on the left edge of the initial pattern diagram.

[0084] Specifically, when the pointing direction is the first direction and the first direction points to the right of the representative knitting code, the second target knitting code at the second edge position can be determined from the representative knitting code, where no knitting code is connected to the right of the second target knitting code. Thus, an edge knitting code is extended to the right of the second target knitting code.

[0085] When the pattern diagram includes the first representative color code and the initial pattern diagram includes the first knitting code, the pointing direction points to the right of the first knitting code. Taking Figure 2 the initial pattern unfolding diagram shown in Figure ③ in the middle as an example, the corresponding final pattern unfolding diagram is as Figure 6 shown in Figure ① in the middle, and the edge knitting code is set to the right of the three first knitting codes on the right edge of the initial pattern diagram.

[0086] When the pattern diagram includes a first representative color code and a second representative color code, and the initial pattern diagram includes a first knitting code and a second knitting code, the pointing direction points to the right side of the first knitting code and / or the second knitting code. Taking Figure 3 the initial pattern expansion diagram shown in Figure ③ in the middle figure as an example, the corresponding final pattern expansion diagram is as Figure 6 shown in Figure ② in the middle figure, and the edge knitting code is set on the right side of three first knitting codes on the right edge of the initial pattern diagram.

[0087] When the pattern diagram includes a first representative color code, a second representative color code and a third representative color code, and the initial pattern diagram includes a first knitting code, a second knitting code and a third knitting code, the pointing direction points to the right side of at least one of the first knitting code, the second knitting code and the third knitting code. Taking Figure 4 the initial pattern expansion diagram shown in Figure ③ in the middle figure as an example, the corresponding final pattern expansion diagram is as Figure 6 shown in Figure ③ in the middle figure, and the edge knitting code is set on the right side of three first knitting codes on the right edge of the initial pattern diagram.

[0088] In some embodiments, when the pointing direction is the second direction, an edge knitting code can be extended in the second direction of the representative knitting code to obtain the final pattern expansion diagram.

[0089] When the pointing direction is the second direction and the second direction points above the representative knitting code, after determining the number of rows of the representative knitting code, an edge knitting code can be extended in the row above the row number of the representative knitting code. That is, it is determined that the representative knitting code is located in the i-th row, and an edge knitting code is extended in the (i + 1)-th row.

[0090] Exemplarily, the pattern diagram includes a first representative color code. According to the quantity and arrangement of the first knitting codes in the initial pattern expansion diagram, the final pattern expansion diagram is drawn within the fourth target area.

[0091] When the pattern diagram includes a first representative color code, the initial pattern diagram includes a first knitting code, and the pointing direction points above the first knitting code, taking Figure 2 the initial pattern expansion diagram shown in Figure ③ in the middle figure as an example, the corresponding final pattern expansion diagram is as Figure 7 shown in Figure ① in the middle figure, and the edge knitting code is set above the first knitting code in the initial pattern diagram.

[0092] Exemplarily, the pattern diagram includes a first representative color code and a second representative color code. According to the quantity and arrangement of the first knitting code and the second knitting code in the initial pattern expansion diagram, the final pattern expansion diagram is drawn within the fourth target area.

[0093] When the pattern diagram includes a first representative color code and a second representative color code, the initial pattern diagram includes a first knitting code and a second knitting code, and the pointing direction points above the first knitting code and / or the second knitting code, taking Figure 3Taking the initial pattern unfolding diagram shown in Figure ③ of the Chinese figure as an example, the corresponding final pattern unfolding diagram is as Figure 7 shown in Figure ② of the Chinese figure, and the edge knitting code is set above the first knitting code and the second knitting code in the initial pattern diagram.

[0094] Exemplarily, the pattern diagram includes a first representative color code, a second representative color code, and a third representative color code. According to the quantity and arrangement of the first knitting code, the second knitting code, and the third knitting code in the initial pattern unfolding diagram, the final pattern unfolding diagram is drawn within the fourth target area.

[0095] When the pattern diagram includes a first representative color code, a second representative color code, and a third representative color code, the initial pattern diagram includes a first knitting code, a second knitting code, and a third knitting code, and the pointing direction points above at least one of the first knitting code, the second knitting code, and the third knitting code, Figure 4 Taking the initial pattern unfolding diagram shown in Figure ③ of the Chinese figure as an example, the corresponding final pattern unfolding diagram is as Figure 7 shown in Figure ③ of the Chinese figure, and the edge knitting code is set above the first knitting code, the second knitting code, and the third knitting code in the initial pattern diagram.

[0096] In some embodiments, when the initial pattern unfolding diagram includes at least two adjacent rows of representative knitting codes, the pointing direction is the second direction and the second direction points above the representative knitting codes, it can be determined that the two adjacent rows of representative knitting codes are respectively the representative knitting code located in the i-th row and the representative knitting code located in the (i - 1)-th row. An edge knitting code corresponding to the representative knitting code located in the i-th row is extended in the (i + 1)-th row; the representative knitting code located in the (i - 1)-th row is moved to the (i - 2)-th row, and an edge knitting code corresponding to the representative knitting code located in the (i - 1)-th row is extended in the (i - 1)-th row.

[0097] Taking Figure 2 Figure ③ of the Chinese figure as an example, three rows of first knitting codes are successively in the i-th row, the (i - 1)-th row, and the (i - 2)-th row. At this time, an edge knitting code of the first knitting code in the i-th row can be extended in the (i + 1)-th row, the first knitting code in the (i - 1)-th row is moved to the (i - 2)-th row, and the first knitting code in the (i - 2)-th row is moved to the (i - 3)-th row, so as to extend an edge knitting code of the first knitting code initially located in the (i - 1)-th row (the first knitting code currently located in the (i - 2)-th row) in the (i - 1)-th row, and move the initial first knitting code in the (i - 2)-th row located in the (i - 3)-th row to the (i - 4)-th row, so as to extend an edge knitting code of the first knitting code initially located in the (i - 2)-th row (the first knitting code currently located in the (i - 4)-th row) in the (i - 3)-th row, obtaining Figure 7 Figure ① of the Chinese figure.

[0098] It should be noted that the above operation steps run inside the computer. In response to the user's operation instruction, the user can directly obtain the final one as Figure 7As shown in FIG. ① in the Chinese figure, the moving process, calculation process, etc. will not be displayed.

[0099] Understandably, the moving process of the knitting code, the filling process of the edge knitting code, etc. can be carried out simultaneously or not simultaneously. That is, it can be completed in one step or in multiple steps. For example, first move the first knitting code in the (i - 2)th row, and then move the first knitting code in the (i - 1)th row. Or, move the first knitting code in the (i - 1)th row and the first knitting code in the (i - 2)th row simultaneously.

[0100] In some embodiments, when the initial pattern unfolding diagram includes at least two adjacent rows of representative knitting codes, the pointing direction is the second direction, and the second direction points above the representative knitting codes, it can be determined that the two adjacent rows of representative knitting codes are respectively the representative knitting code in the ith row and the representative knitting code in the (i - 1)th row. Move the representative knitting code in the ith row to the (i + 1)th row, and expand the edge knitting code corresponding to the representative knitting code in the (i - 1)th row in the ith row, and expand the edge knitting code corresponding to the representative knitting code in the ith row in the (i + 2)th row.

[0101] Take Figure 2 FIG. ③ in the Chinese figure as an example. The three rows of first knitting codes are successively in the ith row, the (i - 1)th row, and the (i - 2)th row. At this time, the first knitting code in the ith row can be moved to the (i + 1)th row, expand the edge knitting code of the first knitting code initially in the ith row (the first knitting code currently in the (i + 1)th row) in the (i + 2)th row, and expand the edge knitting code of the first knitting code initially in the (i - 1)th row (the first knitting code currently in the (i - 1)th row) in the ith row. Move the first knitting code in the (i - 2)th row to the (i - 3)th row, and expand the edge knitting code of the first knitting code initially in the (i - 2)th row (the first knitting code currently in the (i - 3)th row) in the (i - 2)th row, to obtain Figure 7 FIG. ① in the Chinese figure.

[0102] It should be noted that the above operation steps run inside the computer. In response to the user's operation instruction, the user can directly obtain the final result as shown in Figure 7 FIG. ① in the Chinese figure, and the moving process or calculation process therein will not be displayed.

[0103] When the pointing direction is the second direction and the second direction points below the representative knitting code, after determining the row number of the representative knitting code, the edge knitting code can be expanded in the next row of the row number of the representative knitting code. That is, it is determined that the representative knitting code is in the ith row, and the edge knitting code is expanded in the (i - 1)th row.

[0104] Exemplarily, the pattern diagram includes the first representative color code. According to the quantity and arrangement of the first knitting codes in the initial pattern unfolding diagram, the final pattern unfolding diagram is drawn in the fourth target area.

[0105] When the pattern diagram includes a first representative color code, the initial pattern diagram includes a first knitting code, and when the pointing direction points below the first knitting code, Figure 2 Taking the initial pattern unfolding diagram shown in Figure ③ in the middle as an example, the corresponding final pattern unfolding diagram is as Figure 8 shown in Figure ① in the middle, and the edge knitting code is set below the first knitting code in the initial pattern diagram.

[0106] Exemplarily, the pattern diagram includes a first representative color code and a second representative color code. According to the quantity and arrangement of the first knitting code and the second knitting code in the initial pattern unfolding diagram, the final pattern unfolding diagram is drawn within the fourth target area.

[0107] When the pattern diagram includes a first representative color code and a second representative color code, the initial pattern diagram includes a first knitting code and a second knitting code, and when the pointing direction points below the first knitting code and / or the second knitting code, Figure 3 Taking the initial pattern unfolding diagram shown in Figure ③ in the middle as an example, the corresponding final pattern unfolding diagram is as Figure 8 shown in Figure ② in the middle, and the edge knitting code is set below the first knitting code and the second knitting code in the initial pattern diagram.

[0108] Exemplarily, the pattern diagram includes a first representative color code, a second representative color code and a third representative color code. According to the quantity and arrangement of the first knitting code, the second knitting code and the third knitting code in the initial pattern unfolding diagram, the final pattern unfolding diagram is drawn within the fourth target area.

[0109] When the pattern diagram includes a first representative color code, a second representative color code and a third representative color code, the initial pattern diagram includes a first knitting code, a second knitting code and a third knitting code, and when the pointing direction points below at least one of the first knitting code, the second knitting code and the third knitting code, Figure 4 Taking the initial pattern unfolding diagram shown in Figure ③ in the middle as an example, the corresponding final pattern unfolding diagram is as Figure 8 shown in Figure ③ in the middle, and the edge knitting code is set below the first knitting code, the second knitting code and the third knitting code in the initial pattern diagram.

[0110] In some embodiments, when the initial pattern unfolding diagram includes at least two adjacent rows of representative knitting codes, the pointing direction is the second direction and the second direction points below the representative knitting codes, it is possible to determine that the two adjacent rows of representative knitting codes are the representative knitting code located in the i-th row and the representative knitting code located in the (i - 1)-th row respectively, move the representative knitting code located in the (i - 1)-th row to the (i - 2)-th row, and expand the edge knitting code corresponding to the representative knitting code located in the i-th row in the (i - 1)-th row, and expand the edge knitting code corresponding to the representative knitting code located in the (i - 1)-th row in the (i - 3)-th row. Among them, the patterns corresponding to the two adjacent rows of representative knitting codes are the same or different, and the pattern is related to the knitting code.

[0111] Taking Figure 2 Figure ③ in the middle figure as an example, the first knitting codes of three rows are successively located in the i-th row, the (i - 1)-th row, and the (i - 2)-th row. At this time, move the first knitting code in the (i - 1)-th row to the (i - 2)-th row, and move the first knitting code in the (i - 2)-th row to the (i - 3)-th row, so as to expand the edge knitting codes of the first knitting code initially located in the i-th row (the first knitting code currently located in the i-th row) in the (i - 1)-th row, move the first knitting code located in the (i - 3)-th row to the (i - 4)-th row, expand the edge knitting codes of the first knitting code initially located in the (i - 2)-th row (the first knitting code currently located in the (i - 2)-th row) in the (i - 3)-th row, and expand the edge knitting codes of the first knitting code initially displaced in the (i - 3)-th row (the first knitting code currently located in the (i - 4)-th row) in the (i - 5)-th row, to obtain Figure 7 Figure ① in the middle figure.

[0112] It should be noted that the above operation steps run inside the computer. In response to the user's operation instruction, the user can directly obtain the final result as shown in Figure 7 Figure ① in the middle figure, and the moving process or calculation process therein will not be displayed.

[0113] In some embodiments, when the initial pattern expansion diagram includes at least two adjacent rows of representative knitting codes, the pointing direction is the second direction, and the second direction points downward of the representative knitting code, the representative knitting code located in the i-th row can be moved to the (i + 1)-th row, and the edge knitting codes corresponding to the representative knitting code located in the i-th row are expanded in the i-th row, and the edge knitting codes corresponding to the representative knitting code located in the (i - 1)-th row are expanded in the (i - 2)-th row.

[0114] Taking Figure 2 Figure ③ in the middle figure as an example, the first knitting codes of three rows are successively located in the i-th row, the (i - 1)-th row, and the (i - 2)-th row. At this time, move the first knitting code in the i-th row to the (i + 1)-th row, so as to expand the edge knitting codes of the first knitting code initially located in the i-th row (the first knitting code currently located in the (i + 1)-th row) in the i-th row, move the first knitting code in the (i - 2)-th row to the (i - 3)-th row, so as to expand the edge knitting codes of the first knitting code initially located in the (i - 1)-th row (the first knitting code currently located in the (i - 1)-th row) in the (i - 2)-th row, and expand the edge knitting codes of the first knitting code initially located in the (i - 2)-th row (the first knitting code currently located in the (i - 3)-th row) in the (i - 4)-th row, to obtain Figure 7 Figure ① in the middle figure.

[0115] It should be noted that the above operation steps run inside the computer. In response to the user's operation instruction, the user can directly obtain the final result as shown in Figure 7 Figure ① in the middle figure, and the moving process or calculation process therein will not be displayed.

[0116] It should be noted that in actual production applications, there is a time interval between step 13 and step 14. However, on the human-machine interaction interface, in response to the user's expansion instruction, at this time, the final pattern expansion diagram in step 14 will be directly displayed on the human-machine interaction interface, and the initial pattern expansion diagram in step 13 will not be displayed. That is, only the first target area, the pattern module that displaces the first target area, the second target area, the pattern diagram that displaces the second target area, the fourth target area, and the final pattern expansion diagram located in the fourth target area are displayed on the human-machine interaction interface, and the third target area and the initial pattern expansion diagram of the third target area are not displayed. The user cannot directly view the initial pattern expansion diagram from the human-machine interaction interface.

[0117] In addition, corresponding operation buttons are displayed on the human-machine interaction interface, and by triggering the operation buttons, the final pattern expansion diagram can be directly obtained according to the pattern diagram.

[0118] In some embodiments, the number of knitting codes is related to the number of knitting needles. Usually, one knitting code represents knitting one needle during knitting. It can also be that one knitting code corresponds to two needles, three needles, or others, which is not limited here.

[0119] When one knitting code represents knitting one needle, generally speaking, the number of edge knitting codes of the knitting code in the first direction or the second direction is 2.

[0120] In some embodiments, multiple representative color codes in the pattern diagram can be set as multiple spaced-apart parts. For the so-called "part", reference can be made to Figures 2 to 4 Figure ① in Figures 2 to 4 As shown in Figure ① in can be "one part", and the pattern diagram can be composed of multiple "one part" and is spaced apart in the second target area of the human-machine interaction interface. At this time, during the expansion process in the fourth target area of the human-machine interaction interface, if there is an overlap between knitting codes, the overlapping knitting codes will be pushed out (i.e., moved left and right, up and down, etc.) to avoid the overlap of knitting codes. Among them, the process of pushing out the overlapping knitting codes is executed inside the computer and is not displayed on the human-machine interaction interface.

[0121] Refer to Figure 9 , Figure 9 is a schematic structural diagram of a knitting device in some embodiments of the present application. The knitting device 10 includes a memory 101 and a processor 102. The memory 101 stores a computer program, and the processor 102 is used to execute the computer program to implement the pattern expansion method described in any of the above embodiments, which will not be elaborated here.

[0122] In some embodiments, such as Figure 9As shown, the knitting device 10 further includes a human-machine interaction interface, which is coupled to the processor 102. The human-machine interaction interface can generate corresponding operation instructions in response to user operations, and the operation instructions can implement the pattern unfolding method or some steps of the pattern unfolding method described in any of the above embodiments. For example, the human-machine interaction interface is used to receive drawing instructions, unfolding instructions, etc.

[0123] In some embodiments, the knitting device 10 includes, but is not limited to, a flat knitting machine. The flat knitting machine may include a coupled human-machine interaction interface and a pattern preparation system. The human-machine interaction interface can receive operation instructions, design patterns, etc., and generate corresponding files based on the pattern preparation system. Furthermore, it can read the files and convert the read files into control files, etc., to achieve the control of the flat knitting machine.

[0124] See Figure 10 , Figure 10 is a schematic structural diagram of a computer-readable storage medium in some embodiments of the present application. The computer-readable storage medium 20 stores a computer program 201, and the computer program 201 is used to implement the pattern unfolding method described in any of the above embodiments when executed by the processor 102, which will not be elaborated here.

[0125] The processor 102 involved in the present application may be referred to as a CPU (Central Processing Unit), and may be an integrated circuit chip. It may 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.

[0126] The computer-readable storage medium 20 used in the present application includes various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), or optical discs.

[0127] In summary, the pattern unfolding method and the knitting device 10 provided in some embodiments of the present application can intuitively display the actions, number of needles, and directions of the pattern module expansion, especially the edges of the pattern module. Moreover, the customized pattern module can be changed according to user needs, supporting user modification, being relatively flexible, and the modification method being simple and convenient.

[0128] Furthermore, the edge expansion of the pattern module can be obtained quickly and effectively. Through the above method, it is possible to first draw one-to-one according to the pattern diagram to obtain the initial pattern expansion diagram, without changing and arranging needles for the pattern, reducing complexity and solving the cumbersome and error-prone problems such as pattern module needle arrangement, number of needles, and direction. Finally, according to the direction color code, the edge knitting code can be drawn in the target direction of the edge color code in the initial pattern expansion diagram, which can reduce the probability of errors.

[0129] 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 pattern development method, characterized in that: include: Determine a pattern module; wherein the pattern module at least includes a representative color code, a representative weaving code corresponding to the representative color code, an edge color code, an edge weaving code corresponding to the edge color code, and a direction color code corresponding to the edge weaving code; In response to the drawing instruction, drawing a pattern diagram based on the pattern module; wherein the pattern diagram includes the representative color code; In response to the expansion instruction, the representative color code in the pattern diagram is expanded into the representative knitting code to obtain an initial pattern expansion diagram; and The pointing direction is determined based on the directional color code, and the edge knitting code is extended in the pointing direction of the representative knitting code in the initial pattern development diagram based on the pointing direction to obtain a final pattern development diagram.

2. The method according to claim 1, characterized in that The pointing direction includes a first direction and a second direction; The step of extending the edge knitting code in the direction of the representative knitting code in the initial pattern development diagram based on the direction includes: When the pointing direction is a first direction, determining a target weaving code at an edge position in the representative weaving code, and extending the edge weaving code in the first direction of the target weaving code; When the pointing direction is the second direction, the edge weaving code is extended in the second direction representing the weaving code.

3. The method according to claim 1, characterized in that The number of the edge color codes, the edge weaving codes and the direction color codes is the same; The number of the representative color codes is the same as the number of the representative knitting codes.

4. The method according to claim 2, characterized in that: The first direction points to the left side of the representative weaving code, or the first direction points to the right side of the representative weaving code; The second direction points to the upper side of the representative knitting code, or the second direction points to the lower side of the representative knitting code.

5. The method according to claim 4, characterized in that When the pointing direction is a first direction and the first direction points to the left side of the representative weaving code, determining a target weaving code at an edge position in the representative weaving code and extending the edge weaving code in the first direction of the target weaving code includes: Determine a first target knitting code at a first edge position from the representative knitting codes; wherein the first target knitting code is not connected to any knitting code on the left side; extending the edge knitting code on the left side of the first target knitting code; When the pointing direction is a first direction and the first direction points to the right side of the representative weaving code, determining a target weaving code at an edge position in the representative weaving code and extending the edge weaving code in the first direction of the target weaving code includes: Determine a second target knitting code at a second edge position from the representative knitting code; wherein the right side of the second target knitting code is not connected to any knitting code; The edge knitting code is extended on the right side of the second target knitting code.

6. The method according to claim 4, characterized in that When the pointing direction is the second direction, and the second direction points to the upper side of the representative weaving code, the step of extending the edge weaving code in the second direction of the representative weaving code includes: Determine that the representative knitting code is located in the i-th row, and expand the edge knitting code in the i+1th row; When the pointing direction is the second direction and the second direction points to the bottom of the representative weaving code, extending the edge weaving code in the second direction of the representative weaving code includes: It is determined that the representative knitting code is located in the i-th row, and the edge knitting code is expanded in the i-1-th row.

7. The method according to claim 6, characterized in that When the initial pattern development diagram includes at least two adjacent rows of representative knitting codes, the pointing direction is a second direction, and the second direction points to the top of the representative knitting codes, the method further includes: Determine that two adjacent rows of representative knitting codes are respectively a representative knitting code located in the i-th row and a representative knitting code located in the i-1th row, and expand the edge knitting code corresponding to the representative knitting code located in the i-th row in the i+1th row; move the representative knitting code located in the i-1th row to the i-2th row, and expand the edge knitting code corresponding to the representative knitting code located in the i-1th row in the i-1th row; or The representative weaving code located in the i-th row is moved to the i+1-th row, and the edge weaving code corresponding to the representative weaving code located in the i-1-th row is expanded in the i-th row; and the edge weaving code corresponding to the representative weaving code located in the i-th row is expanded in the i+2-th row.

8. The method according to claim 6, characterized in that When the initial pattern development diagram includes at least two adjacent rows of representative knitting codes, the pointing direction is a second direction, and the second direction points to the bottom of the representative knitting codes, the method further includes: Determine that two adjacent rows of representative knitting codes are respectively a representative knitting code located in the i-th row and a representative knitting code located in the i-1th row, move the representative knitting code located in the i-1th row to the i-2th row, and expand the edge knitting code corresponding to the representative knitting code located in the i-th row in the i-1th row; expand the edge knitting code corresponding to the representative knitting code located in the i-1th row in the i-3th row; or The representative weaving code located in the i-th row is moved to the i+1-th row, and the edge weaving code corresponding to the representative weaving code located in the i-th row is expanded in the i-th row; and the edge weaving code corresponding to the representative weaving code located in the i-1-th row is expanded in the i-2-th row.

9. The method according to claim 7 or 8, characterized in that: The flower patterns corresponding to the two adjacent rows of representative knitting codes are the same or different.

10. A knitting device, characterized in that: The knitting device comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the method according to any one of claims 1 to 9.