Method for rapidly generating bartack and button sewing patterns
By applying straight seams, bent seams, arc seams, round-trip seams and their combinations on the sewing machine, combined with parameter adjustment and error compensation, the problem of non-professionals in generating knots and nail buckle patterns is solved, achieving high-quality and beautiful pattern generation.
Patent Information
- Application Number
- CN202510576380.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-07-18
AI Technical Summary
It is difficult for non-professionals in the prior art to accurately set the key points of patterns on sewing machines, and they cannot independently adjust the structural characteristics parameters of the knot and nail buckle patterns. The calculation error of the microcontroller leads to shifting the sewing trajectory, affecting the quality and aesthetics of sewing.
Four basic trajectory algorithms and combinations of straight seams, curved seams, arc seams, and round-trip circumferential seams are used to receive user parameter modification instructions through the sewing machine operation panel, and recalculate the sewing trajectory with the uniform allocation error compensation algorithm to ensure the consistent end point.
It enables non-professionals to quickly generate diverse patterns on the sewing machine panel without professional software, ensuring sewing quality and aesthetics, eliminating microcontroller rounding errors, and improving operation simplicity and controllability of details.
Smart Images

Figure CN120330962A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sewing equipment control, and particularly relates to a method for quickly generating bartack and button sewing patterns. Background Art
[0002] As a core component of modern industrial sewing equipment, the electronic pattern sewing machine realizes the automatic sewing of complex patterns by controlling the coordinated movement of the sewing needle and the fabric. With the rapid development of industries such as clothing and luggage, the market's demand for the diversity and customization of sewing patterns is increasing day by day. In particular, the ability to quickly generate and finely adjust special patterns such as bartacks and buttons has become a pain point in the industry.
[0003] In order to solve the above-mentioned industry pain points, the comparative document CN102634933A discloses a method for editing and generating patterns of an electronic pattern sewing machine, including methods for generating basic pattern patterns such as empty movement, straight line, circle, arc, curve, and polygon. It is characterized in that: on the basis of the method for generating the basic pattern patterns, methods for generating pattern patterns such as same-direction multiple stitches, reverse multiple stitches, supplementary stitches, front and back reverse stitches, and overlapping stitches are realized.
[0004] However, in the process of implementing the technical solution of the present invention in the embodiments of the present application, the inventors of the present application found that the above technologies have at least the following technical problems:
[0005] 1. It is necessary for the user to manually input the control stitch point coordinates or draw the trajectory through the graphical interface, and it is difficult for non-professionals to accurately set the key points. For example, when generating a half-moon bartack pattern, it is necessary to input the starting point, ending point, and center coordinates of the base stitch and the arc stitch in sequence, and the operation is cumbersome and error-prone;
[0006] 2. Although it supports the setting of basic parameters such as stitch density and length, it does not design a special parameter control logic for the structural characteristics of bartack / button patterns. For example, in a half-moon bartack, it is impossible to separately adjust the length of the base stitch (parameter c) and the radius of the arc stitch (parameter R), and only the pattern can be scaled as a whole, resulting in an imbalance in the ratio of the base stitch to the arc stitch, affecting the sewing strength and aesthetics;
[0007] 3. The uniform stitch density algorithm is adopted, but the problem of rounding down when the single-chip microcomputer calculates the number of stitches is not considered, which will cause errors. Such errors accumulate segment by segment in complex patterns, ultimately resulting in the deviation of the sewing trajectory, thereby affecting the sewing quality and aesthetics. Summary of the Invention
[0008] The present application provides a method for quickly generating bartack and buttonholing patterns, which solves the technical problem in the prior art of how to enable non-professionals to directly generate diverse bartack and buttonholing patterns by adjusting parameters on the sewing machine operation panel without relying on a computer and professional software, and ensures sewing quality and aesthetics. It realizes the technical effects that the operation of generating patterns is simple without relying on professionals and professional software, has a strong ability to independently adjust detailed parameters to ensure controllable details, and dynamically adjusts the previous stitch length to eliminate the end point deviation caused by the rounding of the single-chip microcomputer, thereby improving the sewing quality and aesthetics.
[0009] The present application provides a method for quickly generating bartack and buttonholing patterns, characterized by including the following steps:
[0010] Based on four basic trajectory algorithms of straight stitch, zigzag stitch, arc stitch, and reciprocating circular stitch and their combinations, 18 pattern prototypes of 12 preset pattern types are generated.
[0011] Receive a parameter modification instruction of any pattern prototype from the user through the sewing machine operation panel, where the parameters include at least one of stitch length, number of stitches, length, and width.
[0012] According to the modified parameters, recalculate the sewing trajectory through the average error compensation algorithm to ensure that the final landing point is consistent with the actual end point, and generate an updated pattern.
[0013] In the above method for quickly generating bartack and buttonholing patterns, it is characterized in that the implementation of the average error compensation algorithm includes:
[0014] When calculating the initial number of stitches, round the quotient of the stitch length and the length to determine the integer number of stitches.
[0015] Calculate the total length error, and gradually compensate the error by 0.1 unit to the stitch lengths of the first N stitches, where N is the integer part of 10 times the error value. 0.1 unit is 0.1 mm.
[0016] In the above method for quickly generating bartack and buttonholing patterns, it is characterized in that in the straight stitch algorithm, the trajectory is generated through the following steps:
[0017] Input the starting point coordinates (x1, y1), the underlay length c, and the stitch length d.
[0018] Calculate the initial number of stitches needlecnt = round(c / d);
[0019] According to the average error compensation algorithm, adjust the stitch lengths of the first N stitches to d + 0.1, the remaining number of stitches is needlecnt - N, and the stitch length is d.
[0020] Calculate the end point coordinates (x2, y2) based on the adjusted stitch lengths.
[0021] In the above method for quickly generating bartack and buttonholing patterns, it is characterized in that in the zigzag stitch algorithm, the trajectory is generated through the following steps:
[0022] Judge whether the starting point and the ending point are on a diagonal line. If so, generate the trajectory according to the following steps:
[0023] Input the starting point coordinates (x1, y1), the straight stitch distance g, the horizontal stitch distance w, and the length c;
[0024] Derive the ending point coordinates (x2, y2) according to the formulas X2 = x1 ± c and Y2 = y1 ± w;
[0025] Calculate the number of stitches needlecnt = (c / g) + 1;
[0026] If not, generate the trajectory according to the following steps:
[0027] Input the starting point coordinates (x1, y1), the straight stitch distance g, the horizontal stitch distance w, and the length c;
[0028] Calculate the initial number of stitches needlecnt = round(c / g);
[0029] Adjust the straight stitch distance of the first N stitches to g + 0.1 according to the equal error compensation algorithm, and the remaining number of stitches is needlecnt - N, and the straight stitch distance is g;
[0030] Calculate the ending point coordinates (x2, y2) based on the adjusted straight stitch distance;
[0031] Or generate the trajectory according to the following steps:
[0032] If the ending point coordinates e(x2, y2) are known, sew to the penultimate stitch according to the parameters w, g, record the current coordinates, and subtract the current coordinates from the ending point coordinates e to get the displacement of the last stitch to ensure that the ending point is the actual landing point.
[0033] In the above method for quickly generating bartack and buttonholing patterns, it is characterized in that in the arc stitch algorithm, the trajectory is generated through the following steps:
[0034] Input the starting point coordinates s(x1, y1), the ending point coordinates e(x2, y2), the stitch distance len, and the arc radius R;
[0035] Calculate the center coordinates O based on the Pythagorean theorem, and determine the starting angle and ending angle of the arc through the inverse trigonometric function;
[0036] Divide the arc into segments according to the stitch distance len, and calculate the corresponding central angle and sewing point coordinates for each segment.
[0037] In the above method for quickly generating buttonhole and button sewing patterns, it is characterized in that in the back-and-forth circular sewing algorithm, a trajectory is generated through the following steps:
[0038] Input the inner diameter r, outer diameter R, stitch pitch p, and the number of end points;
[0039] Determine the cross-sewing path according to the number of end points, and calculate the coordinates of the alternating sewing points of the inner circle and the outer circle through trigonometric functions;
[0040] Restrict the range of the number of end points to 2 - 5, and the range of the rotation angle to 0° - 360°.
[0041] In the above method for quickly generating buttonhole and button sewing patterns, it is characterized in that the maximum number of stitches of the parameters is limited to 300 stitches, and the stitch pitch adjustment range is 0.1 mm - 12.7 mm.
[0042] In the above method for quickly generating buttonhole and button sewing patterns, it is characterized in that the operation panel supports two user modes:
[0043] Stitch pitch fixed mode: After the user sets the stitch pitch, the system automatically calculates the number of stitches and the end point coordinates;
[0044] Number of stitches fixed mode: After the user sets the number of stitches, the system automatically calculates the stitch pitch and the end point coordinates.
[0045] In the above method for quickly generating buttonhole and button sewing patterns, it is characterized in that the method further includes:
[0046] Real-time display of the pattern preview after parameter adjustment on the dot matrix screen or touch screen of the sewing machine;
[0047] Support the user to save the custom parameter combination and associate it with a specific pattern prototype.
[0048] In the above method for quickly generating buttonhole and button sewing patterns, it is characterized in that the 18 pattern prototypes include:
[0049] Half-moon buttonhole, linear buttonhole, round head hole shape, 5-hole cross button sewing, square, square cross, rectangular pattern, round head hole rectangle, round head hole cone buttonhole shape, elastic splicing pattern, snap button shape pattern and their combined variants.
[0050] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0051] 1. Due to the technical means of directly adjusting parameters on the sewing machine panel with independent parameter adjustment and eliminating the end - point deviation through the sharing error compensation algorithm, it effectively solves the technical problem in the prior art of how to enable non - professionals to directly generate diverse buttonhole stitches and button sewing patterns through parameter adjustment on the sewing machine operation panel without relying on a computer and professional software, and ensure the sewing quality and aesthetics. Furthermore, it realizes the technical effect that the operation is simple when generating patterns without relying on professionals and professional software, has a strong ability to independently adjust detailed parameters to ensure controllable details, and dynamically adjusts the previous stitch length to eliminate the end - point deviation caused by the single - chip microcomputer rounding, thereby improving the sewing quality and aesthetics;
[0052] 2. Preset a dedicated pattern library to enhance the generation effect: Provide 12 buttonhole stitch and button sewing pattern prototypes (a total of 18), covering mainstream market demands such as square crosses, 5 - hole button sewing, and round - head hole shapes. Users can directly call the preset templates and quickly generate customized patterns by adjusting parameters without having to design the trajectory from scratch;
[0053] 3. Simplify user interaction and lower the operation threshold: Package the complex pattern generation logic into an intuitive parameter adjustment function on the sewing machine operation panel. Non - professionals can quickly generate high - quality patterns without having to master professional software or the skill of controlling stitch points input;
[0054] 4. Optimize the algorithm combination and trajectory generation efficiency: Based on the flexible combination of four basic trajectories (straight stitch, zigzag stitch, arc stitch, reciprocating circular stitch), combined with parametric algorithms, quickly generate diverse patterns.
[0055] 5. Enhance device compatibility and scenario adaptability: Support the adaptation of operation panels of multiple models, covering mainstream industrial sewing equipment. In addition, the algorithm design is compatible with dot - matrix screens and touchscreens to ensure a consistent user experience in different hardware environments. Brief Description of the Drawings
[0056] Figure 1 is the flowchart of the method for quickly generating buttonhole stitches and button sewing patterns.
[0057] Figure 2 is the flowchart of the implementation of the straight - stitch algorithm.
[0058] Figure 3 is the schematic diagram of the straight - stitch.
[0059] Figure 4 is the flowchart of the implementation of the zigzag - stitch algorithm.
[0060] Figure 5 is the schematic diagram of the zigzag - stitch.
[0061] Figure 6 is the flowchart of the implementation of the arc - stitch algorithm.
[0062] Figure 7 It is a schematic diagram of an arc seam.
[0063] Figure 8 It is a flow chart of the algorithm implementation for the round-trip circular seam.
[0064] Figure 9 It is a schematic diagram of a half-moon bartack pattern.
[0065] Figure 10 It is a schematic diagram of a linear bartack pattern.
[0066] Figure 11 It is a schematic diagram of a round head hole pattern.
[0067] Figure 12 It is a schematic diagram of a 5-hole cross button sewing.
[0068] Figure 13 It is a comparison case of the pattern effects after parameter adjustment Figure 1 .
[0069] Figure 14 It is a comparison case of the pattern effects after parameter adjustment Figure 2 . Detailed implementation manners
[0070] By providing a method for quickly generating bartack and button sewing patterns in the embodiments of the present application, the technical problem in the prior art of how to enable non-professionals to directly generate diverse bartack and button sewing patterns by parameter adjustment on the sewing machine operation panel without relying on a computer and professional software, and ensure the sewing quality and aesthetics is solved.
[0071] The technical solutions in the embodiments of the present application for solving the above technical problems are generally as follows:
[0072] Based on four basic trajectory algorithms of straight seam, zigzag seam, arc seam, and round-trip circular seam and their combinations, 18 pattern prototypes of 12 preset pattern types are generated;
[0073] Receive a parameter modification instruction from the user for any pattern prototype through the sewing machine operation panel, and the parameters include at least one of stitch length, number of stitches, length, and width;
[0074] According to the modified parameters, recalculate the sewing trajectory through the equal-error compensation algorithm to ensure that the final landing point is consistent with the actual end point, and generate an updated pattern.
[0075] Non-professionals can directly adjust parameters on the sewing machine panel to generate patterns, eliminating the need for professionals and professional software. The operation is simple. Moreover, detailed parameter adjustment can be carried out on the sewing machine panel to ensure controllable details, replacing the simple overall size scaling in the prior art that causes visual errors, thereby improving the sewing quality and aesthetics. Additionally, the equal-error compensation algorithm is adopted to eliminate the end-point deviation caused by the integer-taking of the single-chip microcomputer, thus improving the sewing quality and aesthetics.
[0076] To better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the specification drawings and specific embodiments.
[0077] Embodiment 1
[0078] As Figure 1 shown, a method for quickly generating bartack and buttonholing patterns is provided, including the following steps:
[0079] Based on four basic trajectory algorithms of straight stitch, zigzag stitch, arc stitch, and reciprocating circular stitch and their combinations, 18 pattern prototypes of 12 preset pattern types are generated;
[0080] Receive, through the sewing machine operation panel, a parameter modification instruction from the user for any pattern prototype, where the parameters include at least one of stitch length, number of stitches, length, and width;
[0081] According to the modified parameters, recalculate the sewing trajectory through the equal-error compensation algorithm to ensure that the final landing point is consistent with the actual end point, and generate an updated pattern.
[0082] Specifically, the algorithms of the four basic trajectories of straight stitch, zigzag stitch, arc stitch, and reciprocating circular stitch will be introduced in detail below respectively.
[0083] The trajectory algorithm of the straight stitch is detailed as follows:
[0084] As Figure 3 shown, the constraint conditions of the straight stitch are stitch length d, number of stitches NeedleCnt, and underlay length c. As Figure 2 shown, the trajectory is generated through the following steps:
[0085] Input the starting point coordinates (x1, y1), underlay length c, and stitch length d;
[0086] Calculate the initial number of stitches needlecnt = round(c / d);
[0087] According to the equal-error compensation algorithm, adjust the stitch length of the first N stitches to d + 0.1, and the remaining number of stitches is needlecnt - N, with the stitch length being d;
[0088] Calculate the end point coordinates (x2, y2) based on the adjusted stitch length.
[0089] Since the number of stitches is always an integer and the microcontroller has a floor function (4.3 == 4, 4.7 == 4), there will be a large error when calculating the number of stitches. For example, 30 / 2.1 ≈ 14.29, while the microcontroller takes the value of 14. When calculating the length or the end point by reverse deduction: 2.1 * 14 = 29.4, then there is an error errnum of 30 - 29.4 = 0.6. To eliminate this error errnum and ensure that the end point coordinates calculated according to a specific stitch pitch or number of stitches are equal to the actual end point coordinates, that is, the landing point of the last stitch must be the actual end point, an evenly distributed error compensation algorithm is introduced.
[0090] The specific steps of the evenly distributed error compensation algorithm are as follows:
[0091] When calculating the initial number of stitches, round the quotient of the stitch pitch and the length to determine the integer number of stitches;
[0092] Calculate the total length error, and gradually compensate the error to the stitch pitches of the first N stitches in units of 0.1, where N is the integer part of 10 times the error value.
[0093] That is, evenly distribute the error part in units of 0.1mm within the first 10 * errnum stitches. The specific implementation process:
[0094] Number of stitches - needlecnt, length - c, stitch pitch - d, number of compensation times - compenstcnt
[0095] Initial calculation of the number of stitches: needlecnt = c / d; (manually add a rounding algorithm)
[0096] Calculation of the number of compensation times: compenstcnt = (c - needle * d) % needle; (calculate based on 10 times the original value, and the remainder result is an integer), that is, the first N stitches;
[0097] Compensation result: The stitch pitch within the first compenstcnt stitches is (d + 0.1), and the stitch pitch of the subsequent (needlecnt - compenstcnt) stitches is d.
[0098] Specifically for the previous specific example, the error errnum is 0.6, that is, when sewing the first 6 stitches, add 0.1 to the original stitch pitch of 2.1, that is, sew the first 6 stitches with a stitch pitch of 2.2, and sew the subsequent 14 - 6 = 8 stitches with a stitch pitch of 2.1, thus ensuring that the landing point of the last stitch is the actual end point.
[0099] The trajectory algorithm of the zigzag stitch is detailed as follows:
[0100] Such as Figure 5As shown in the figure, the constraint conditions of the zigzag stitch are the straight stitch distance \(g\), the horizontal stitch distance \(w\), the length \(c\), and the number of stitches \(needlecnt\), including the following situations:
[0101] 1. The starting point and the ending point are on a diagonal line. As Figure 4 shown, given parameters: starting point coordinates \(s(x1,y1)\), straight stitch distance \(g\), length \(c\), horizontal stitch distance \(w\), generate the trajectory through the following steps:
[0102] Input the starting point coordinates \((x1,y1)\), straight stitch distance \(g\), horizontal stitch distance \(w\), and length \(c\);
[0103] Derive the ending point coordinates \((x2,y2)\) according to the formulas \(X2 = x1\pm c\) and \(Y2 = y1\pm w\);
[0104] Calculate the number of stitches \(needlecnt=(c / g)+1\).
[0105] Sometimes there is a situation where the ending point coordinates \(e(x2,y2)\) are known, but \(g\) and \(w\) are unknown, and the starting and ending point coordinates \(se\) need to be used for back-calculation.
[0106] 2. The starting point and the ending point are not on a diagonal line, then generate the trajectory according to the following steps:
[0107] Input the starting point coordinates \((x1,y1)\), straight stitch distance \(g\), horizontal stitch distance \(w\), and length \(c\);
[0108] Calculate the initial number of stitches \(needlecnt = round(c / g)\);
[0109] Adjust the straight stitch distance of the first \(N\) stitches to \(g + 0.1\) according to the equal-error compensation algorithm, and the remaining number of stitches is \(needlecnt - N\), with the straight stitch distance being \(g\);
[0110] Calculate the ending point coordinates \((x2,y2)\) based on the adjusted straight stitch distance;
[0111] Or generate the trajectory according to the following steps:
[0112] If the ending point coordinates \(e(x2,y2)\) are known, sew to the second-to-last stitch according to the parameters \(w\) and \(g\), record the current coordinates, and subtract the current coordinates from the ending point coordinates \(e\) to get the displacement of the last stitch, ensuring that the ending point is the actual landing point.
[0113] The trajectory algorithm of the circular arc stitch is detailed as follows:
[0114] As Figure 7 shown, on the sewing machine, the connection between two stitches is always a straight line. Therefore, using the idea of limits here, the stitch distance between every two stitches is the corresponding circular arc length, and the central angle corresponding to each arc length is equal. As Figure 6 shown, generate the trajectory through the following steps:
[0115] Input the starting point coordinates s(x1, y1), the ending point coordinates e(x2, y2), the stitch pitch len, and the arc radius R;
[0116] Reverse calculate the length S = |e - s| from the starting and ending coordinates se;
[0117] Calculate the center coordinates O based on the Pythagorean theorem, and determine the starting and ending angles of the arc through inverse trigonometric functions;
[0118] According to the Pythagorean theorem: (oe height) 2 = R 2 -(S / 2) 2 After obtaining S and the oe height, the center coordinates O can be obtained; use inverse trigonometric functions to obtain the starting and ending angles: (the height of os is Hos, the height of oe is Hoe), the starting angle <As = π - asin(Hos / R), the ending angle <Ae = asin(Hoe / R);
[0119] Divide the number of arc segments equally according to the stitch pitch len, and calculate the corresponding central angle of each segment and the sewing point coordinates.
[0120] Calculate the arc length Cse = (<As - <Ae)*R, calculate the number of arc segments arcnt = Cse / len, the central angle corresponding to each arc length <avg = (<As - <Ae) / arcnt, and use trigonometric functions x = cosa*R, y = sina*R, (a is the angle) to calculate the coordinates of each sewing point.
[0121] The trajectory algorithm for the round-trip circular seam is detailed as follows:
[0122] As Figure 8 shown, the round-trip circular seam is mainly used for sewing patterns with circularity rules but the sewing trajectories not on the same circle. The trajectory is generated through the following steps:
[0123] Input the inner diameter r, outer diameter R, stitch pitch p, and the number of end points;
[0124] Determine the cross-sewing path according to the number of end points, and calculate the coordinates of the alternating sewing points of the inner and outer circles through trigonometric functions;
[0125] Restrict the range of the number of end points to 2 - 5, and the rotation angle range to 0° - 360°.
[0126] Combining the above four basic trajectories in different ways can obtain various pattern types, such as the following pattern types:
[0127] 1. Half-moon pattern, as Figure 9As shown, it is composed of a straight stitch part, a zigzag stitch part, and an arc stitch part. The final pattern details are determined by the following elements: the length of the lockstitch (a), the horizontal stitch distance of the lockstitch (b), the length of the backstitch (c), the vertical stitch distance of the backstitch (d), the vertical stitch distance of the half-moon shape (e), the height of the pattern (f), and the vertical stitch distance of the zigzag stitch (g).
[0128] 2. Linear lockstitch pattern, such as Figure 10 As shown, it includes two basic stitches, namely the straight stitch and the zigzag stitch, and loads parameters such as the horizontal stitch distance of the lockstitch (h), the length of the lockstitch (L2), the vertical stitch distance of the lockstitch (p2), the length of the backstitch (L1), and the stitch distance of the backstitch (p1) to define the pattern trajectory and details.
[0129] 3. Round head hole pattern, such as Figure 11 As shown, it includes two basic stitches, namely the backstitch part and the arc stitch part, and is determined by the inner diameter (r), the outer diameter (R), the hole diameter (r <= L <= R), and the number of end points (d1d2d3d4…dn).
[0130] 4. 5-hole cross button sewing, such as Figure 11 As shown, it uses a circular sewing method of back and forth crossing. The constraints are: the number of holes (2, 3, 4, 5), the number of lines between holes (1 - 9), and the rotation degree (0 - 360°).
[0131] Other patterns: Such as square, square cross, rectangular pattern, round head hole rectangle, round head hole cone lockstitch shape, elastic splicing pattern, snap button pattern, etc. are not analyzed one by one here. They can all be composed of the above four basic trajectories. A total of 18 pattern prototypes of 12 preset pattern types can be generated. Users can directly call the preset templates and quickly generate customized patterns by adjusting parameters without designing the trajectory from scratch. With a preset dedicated pattern library, compared with the existing technology without a preset pattern library, the generation effect is improved.
[0132] Among them, the 18 pattern prototypes include: half-moon lockstitch, linear lockstitch, round head hole shape, 5-hole cross button sewing, square, square cross, rectangular pattern, round head hole rectangle, round head hole cone lockstitch shape, elastic splicing pattern, snap button pattern and their combined variants.
[0133] In the prior art system, when modifying the original pattern, only the overall size can be scaled, and the detailed parameters cannot be adjusted. If adjustment is needed, it relies on professionals to modify and draw through professional software on devices such as computers, and then import it into the system. The operation is troublesome and relies on professionals. At the same time, simple overall magnification or reduction will reduce the sewing quality. In this embodiment, it does not rely on professionals and professional software. Users can directly enter parameter modification instructions for any pattern prototype on the sewing machine operation panel, and can achieve the adjustment of detailed parameters to ensure that the details are controllable. Thus, non-professionals can directly generate diversified buttonholing and button sewing patterns by adjusting parameters on the sewing machine operation panel without relying on a computer and professional software, and ensure the sewing quality and aesthetics. The operation is simple and convenient, and the sewing quality and aesthetics are guaranteed. The parameters that can be adjusted in detail include at least one of stitch length, number of stitches, length, and width. Among them, the maximum number of stitches for the parameter is limited to 300 stitches, and the stitch length adjustment range is 0.1mm - 12.7mm. Finally, according to the modified parameters, the equal error compensation algorithm is used to recalculate the sewing trajectory, eliminate the end point deviation caused by the single-chip microcomputer rounding, ensure that the final landing point is consistent with the actual end point, and generate an updated pattern, thereby improving the sewing quality and aesthetics. As Figure 13 and 14 is the comparison effect before and after the user adjusts a certain parameter of a certain pattern according to actual needs, and the algorithm recalculates and generates a new pattern.
[0134] Based on the flexible combination of four basic trajectories (straight stitch, zigzag stitch, arc stitch, reciprocating circular stitch), combined with the parametric algorithm, diversified patterns are quickly generated to optimize the algorithm combination and trajectory generation efficiency.
[0135] Among them, to enhance device compatibility and scenario adaptability: support the adaptation of operation panels of multiple models, covering mainstream industrial sewing equipment. In addition, the algorithm design is compatible with dot matrix screens and touch screens to ensure the same user experience in different hardware environments.
[0136] To simplify user interaction and lower the operation threshold, the operation panel supports two user modes:
[0137] Stitch length fixed mode: After the user sets the stitch length, the system automatically calculates the number of stitches and the end point coordinates;
[0138] Number of stitches fixed mode: After the user sets the number of stitches, the system automatically calculates the stitch length and the end point coordinates.
[0139] The preview of the pattern after parameter adjustment is displayed in real time on the dot matrix screen or touch screen of the sewing machine;
[0140] Support users to save custom parameter combinations and associate them with specific pattern prototypes.
[0141] The complex pattern generation logic is encapsulated into an intuitive parameter adjustment function on the sewing machine operation panel, enabling non-professionals to quickly generate high-quality patterns without having to master professional software or the skill of inputting stitch points.
[0142] Those skilled in the art should understand that the embodiments of the present invention may be provided as a method, a system, or a computer program product. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) that contain computer-usable program code.
[0143] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to 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 instructions executed by the processor of the computer or other programmable data processing devices generate a device for realizing the functions specified in Figure 1 one or more of the flows Figure 1 or a combination of flows and / or blocks
[0144] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that realizes the functions specified in Figure 1 one or more of the flows Figure 1 or a combination of flows and / or blocks
[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are performed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for realizing the functions specified in Figure 1 one or more of the flows Figure 1 or a combination of flows and / or blocks
[0146] Although the preferred embodiments of the present invention have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once they learn of the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications that fall within the scope of the present invention.
[0147] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.
Claims
1. A method for quickly generating hemming and button sewing patterns, characterized in that, It includes the following steps: Based on four basic trajectory algorithms of straight stitch, zigzag stitch, arc stitch, and reciprocating circular stitch and their combinations, 18 pattern prototypes of 12 preset pattern types are generated; Receive a parameter modification instruction for any pattern prototype from the user through the sewing machine operation panel, where the parameters include at least one of stitch length, number of stitches, length, and width; According to the modified parameters, recalculate the sewing trajectory through the average error compensation algorithm to ensure that the final landing point is consistent with the actual end point, and generate an updated pattern.
2. The method for quickly generating bartack and button sewing patterns according to claim 1, characterized in that, The implementation of the average error compensation algorithm includes: When calculating the initial number of stitches, round the quotient of the stitch length and the length to determine the integer number of stitches; Calculate the total length error, and gradually compensate the error by 0.1 unit to the stitch lengths of the first N stitches, where N is the integer part of 10 times the error value.
3. A method for quickly generating bartack and buttonholing patterns according to claim 2, characterized in that, In the straight stitch algorithm, the trajectory is generated through the following steps: Input the starting point coordinates (x1, y1), the base length c, and the stitch length d; Calculate the initial number of stitches needlecnt = round(c / d); According to the average error compensation algorithm, adjust the stitch lengths of the first N stitches to d + 0.1, the remaining number of stitches is needlecnt - N, and the stitch length is d; Calculate the end point coordinates (x2, y2) based on the adjusted stitch lengths.
4. A method for quickly generating bartack and buttonholing patterns according to claim 2, characterized in that, In the zigzag stitch algorithm, the trajectory is generated through the following steps: Judge whether the starting point and the end point are on a diagonal line. If so, generate the trajectory according to the following steps: Input the starting point coordinates (x1, y1), the straight stitch length g, the horizontal stitch length w, and the length c; Derive the end point coordinates (x2, y2) according to the formulas X2 = x1 ± c, Y2 = y1 ± w; Calculate the number of stitches needlecnt = (c / g) + 1; If not, generate the trajectory according to the following steps: Input the starting point coordinates (x1, y1), the straight stitch length g, the horizontal stitch length w, and the length c; Calculate the initial number of stitches needlecnt = round(c / g); According to the average error compensation algorithm, adjust the straight stitch lengths of the first N stitches to g + 0.1, the remaining number of stitches is needlecnt - N, and the straight stitch length is g; Calculate the end point coordinates (x2, y2) based on the adjusted straight stitch lengths; Or generate the trajectory according to the following steps: If the end point coordinates e(x2, y2) are known, sew to the second last stitch according to the parameters w, g, record the current coordinates, and subtract the current coordinates from the end point coordinates e to obtain the displacement of the last stitch to ensure that the end point is the actual landing point.
5. A method for quickly generating bartack and button sewing patterns according to claim 1, characterized in that, In the arc stitch algorithm, the trajectory is generated through the following steps: Input the starting point coordinates s(x1, y1), the end point coordinates e(x2, y2), the stitch length len, and the arc radius R; Calculate the center coordinates O based on the Pythagorean theorem, and determine the starting angle and ending angle of the arc through inverse trigonometric functions; Divide the arc into segments according to the stitch length len, and calculate the corresponding central angle and sewing point coordinates for each segment.
6. The method for quickly generating bartack and button sewing patterns according to claim 1, characterized in that, In the reciprocating circular stitch algorithm, the trajectory is generated through the following steps: Input the inner diameter r, the outer diameter R, the stitch length p, and the number of end points; Determine the cross-sewing path according to the number of end points, and calculate the coordinates of the alternating sewing points of the inner circle and the outer circle through trigonometric functions; Restrict the range of the number of end points to 2 - 5 and the rotation angle range to 0° - 360°.
7. A method for quickly generating bartack and buttonholing patterns according to claim 1, characterized in that, The maximum number of stitches for the said parameters is limited to 300 stitches, and the stitch pitch adjustment range is 0.1 mm - 12.7 mm.
8. A method for quickly generating bartack and buttonholing patterns according to any one of claims 1-7, characterized in that, The said operation panel supports two user modes: Stitch pitch fixed mode: After the user sets the stitch pitch, the system automatically calculates the number of stitches and the end coordinates; Number of stitches fixed mode: After the user sets the number of stitches, the system automatically calculates the stitch pitch and the end coordinates.
9. A method for quickly generating bartack and button sewing patterns according to any one of claims 1-7, characterized in that, The said method further includes: Real-time display of the pattern preview after parameter adjustment on the dot matrix screen or touch screen of the sewing machine; Support for the user to save custom parameter combinations and associate them with specific pattern prototypes.
10. A method for quickly generating bartack and button sewing patterns according to any one of claims 1-7, characterized in that, The said 18 pattern prototypes include: Half-moon bartack, linear bartack, round head hole shape, 5-hole cross buttonhole, square, square cross, rectangular pattern, round head hole rectangle, round head hole cone bartack shape, elastic splicing pattern, snap button pattern and their combined variants.
Citation Information
Patent Citations
Pattern editing and pattern generating method for electronic pattern machine
CN102634933A