An embroidery method, terminal device and storage medium

CN116926797BActive Publication Date: 2026-08-14ZHUJI MAYA ELECTRIC APPLIANCE MACHINERY
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-21
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0003]上述操作过程,需根据上一版布料的绣花位置人工重新进行定位,才能继续下一版绣花作业,难以保证绣花的连续性,影响工作效率

Benefits of technology

[0012]根据本发明实施例,保证绣花的连续性,提高工作效率;能够自动完成金片(珠子、丝带、绳子等)的刺绣,金片(珠子、丝带、绳子等)可以准确刺绣在图案的预设位置处,保证良好的刺绣的效果。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116926797B_ABST
    Figure CN116926797B_ABST
Patent Text Reader

Abstract

This invention discloses an embroidery method, terminal device, and storage medium. The embroidery method includes: acquiring a template pattern; setting the starting position of the template pattern; acquiring the starting position coordinates of the pattern to be embroidered corresponding to the template pattern on the Nth fabric according to the starting position of the template pattern, where N is a positive integer; sorting the patterns to be embroidered corresponding to the template pattern according to a preset rule to generate an embroidery trajectory; and embroidering the Nth fabric according to the embroidery trajectory. The embroidery method of this application can solve the problem of precise positioning embroidery, ensure the continuity of embroidery, and improve the embroidery effect; it can automatically complete the embroidery of sequins (beads, ribbons, ropes, etc.), and the sequins (beads, ribbons, ropes, etc.) can be accurately embroidered at preset positions on the pattern, ensuring a good embroidery effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application generally relates to the field of computerized embroidery machine technology, and in particular to an embroidery method, terminal equipment and storage medium. Background Technology

[0002] Computerized embroidery machines offer fast and efficient embroidery. However, when embroidering large pieces of fabric, the operator needs to release the fabric clamps, readjust the fabric position, and relock it after completing one area. Adjusting the fabric position or changing the fabric mid-process requires re-matching the pattern.

[0003] The above operation requires manual repositioning based on the embroidery position of the previous fabric before the next embroidery work can continue, making it difficult to ensure the continuity of the embroidery and affecting work efficiency. Summary of the Invention

[0004] The present invention aims to at least solve one of the technical problems existing in the prior art. Therefore, one objective of the present invention is to propose an embroidery method that solves the problem of precise positioning in embroidery, ensures the continuity of the embroidery, and improves the embroidery effect.

[0005] Secondly, embodiments of this application provide a terminal device.

[0006] Thirdly, embodiments of this application provide a computer-readable storage medium.

[0007] An embroidery method according to a first aspect of the present invention includes: obtaining a template pattern;

[0008] Set the starting position of the embroidery in the template pattern;

[0009] Based on the starting position of the template pattern, obtain the starting position coordinates of the pattern to be embroidered corresponding to the template pattern on the Nth version of the fabric, where N is a positive integer;

[0010] According to preset rules, the patterns to be embroidered corresponding to the template pattern are sorted to generate embroidery tracks;

[0011] Embroider the Nth version of the fabric according to the embroidery trajectory.

[0012] According to embodiments of the present invention, the continuity of embroidery is ensured and work efficiency is improved; the embroidery of sequins (beads, ribbons, ropes, etc.) can be completed automatically, and the sequins (beads, ribbons, ropes, etc.) can be accurately embroidered at the preset positions of the pattern, ensuring a good embroidery effect.

[0013] According to some embodiments of the present invention, obtaining the template pattern includes:

[0014] Obtain a photograph of the first fabric, the photograph of which includes multiple patterns of different shapes;

[0015] The template pattern is selected based on the photograph of the first version of the fabric.

[0016] According to some embodiments of the present invention, the step of sorting the template pattern according to a preset rule to generate an embroidery trajectory includes:

[0017] Obtain the X-axis coordinate of the starting position of the embroidery pattern corresponding to the template pattern.

[0018] Sort the various patterns to be embroidered according to their X-axis coordinates, either from smallest to largest or from largest to smallest.

[0019] Generate the embroidery trajectory.

[0020] According to some embodiments of the present invention, if the X coordinates of the starting positions of at least two of the embroidery patterns are the same, the embroidery patterns are sorted in ascending order of their Y coordinates, or in descending order of their Y coordinates.

[0021] According to some embodiments of the present invention, embroidering the Nth version of the fabric according to the embroidery trajectory includes:

[0022] Preset embroidered pattern

[0023] The preset pattern matches the template pattern;

[0024] Embroider the pattern to be embroidered according to the preset pattern.

[0025] According to some embodiments of the present invention, before the step of sorting the patterns to be embroidered corresponding to the template pattern according to a preset rule to generate the embroidery trajectory,

[0026] It also includes the step of: obtaining the rotation angle based on the outer contour of the template pattern and the outer contour of the pattern to be embroidered.

[0027] According to some embodiments of the present invention, obtaining the rotation angle based on the outline of the template pattern and the outline of the pattern to be embroidered includes:

[0028] Generate the largest circumcircle C1 based on the outer contour of the template pattern;

[0029] Generate the largest circumcircle C2 based on the outer contour of the pattern to be embroidered;

[0030] The center of the circumcircle C1 coincides with the center of the circumcircle C2;

[0031] Rotate the template pattern counterclockwise or clockwise by α, where |α| < 90°, so that the outer contour of the template pattern coincides with the outer contour of the pattern to be embroidered.

[0032] According to some embodiments of the present invention, the Nth version of the fabric is embroidered according to the embroidery trajectory and the rotation angle.

[0033] According to an embodiment of the second aspect of the present invention, the terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to implement the above-described embroidery method when executing the program.

[0034] According to an embodiment of a third aspect of the present invention, a computer-readable storage medium thereon stores a computer program for the above-described embroidery method.

[0035] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0036] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0037] Figure 1 This is an isometric schematic diagram of an embroidery device according to an embodiment of the present invention;

[0038] Figure 2 This is a left view of an embroidery device according to an embodiment of the present invention;

[0039] Figure 3 This is a flowchart illustrating an embroidery method according to an embodiment of the present invention;

[0040] Figure 4 This is a photographic schematic diagram of the first version of the fabric according to an embodiment of the present invention;

[0041] Figure 5 This is a schematic diagram of the embroidery trajectory on the Nth version of the fabric according to an embodiment of the present invention;

[0042] Figure 6 This is a schematic diagram of a gold foil flower pattern according to an embodiment of the present invention;

[0043] Figure 7 This is a schematic diagram of the rotation angle between template pattern H2 and pattern H2a according to an embodiment of the present invention;

[0044] Figure 8 This is the embroidery effect after rotating pattern H2a according to an embodiment of the present invention;

[0045] Figure 9 This is the embroidery effect of pattern H2a without rotation according to an embodiment of the present invention;

[0046] Figure 10 This is a schematic diagram of a device structure according to an embodiment of the present invention. Detailed Implementation

[0047] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the relevant disclosure and not intended to limit the scope of the disclosure. Furthermore, it should be noted that, for ease of description, only the parts relevant to the disclosure are shown in the accompanying drawings.

[0048] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0049] Figures 1-2 A schematic diagram of an embroidery device is shown.

[0050] like Figure 1 and Figure 2 As shown, the embroidery equipment includes a frame 10, a machine head 20, a table 40, a fabric clamping assembly (not shown), an image acquisition device 40, a first fabric rolling mechanism 51, and a second fabric rolling mechanism 52.

[0051] The frame 10 includes a main beam 11 and a lower frame 12 connected vertically. Multiple camera heads 20 are installed on the main beam 11. A platform 30 is provided on the lower frame 12. Meanwhile, the image acquisition device 40 is connected to the lower frame 12 through a connector so that the image acquisition device 40 is located directly above the platform 30 and is higher than the top of the main beam 11.

[0052] A fabric clamping assembly is provided on the platform 30, which can automatically clamp and release the fabric.

[0053] The first fabric winding mechanism 51 and the second fabric winding mechanism 52 are located on the front and rear sides of the frame 10. The second fabric winding mechanism 52 is used to output new fabric. The fabric is output from the second fabric winding mechanism 52, passes through the fabric clamping assembly, and finally enters the first fabric winding mechanism 51.

[0054] The machine head 20 works in conjunction with the fabric clamping assembly to embroider the fabric to be embroidered within the fabric clamping assembly. After the fabric is finished being embroidered, the fabric clamping assembly releases the fabric inside, the first fabric roll mechanism 51 rolls up the embroidered fabric, and at the same time the second fabric roll mechanism 52 outputs new fabric to be embroidered.

[0055] It should be noted that the fabric is either printed or already embroidered. Gold sequins (beads, ribbons, ropes, etc.) are used to decorate the fabric at predetermined positions within the floral pattern using an image acquisition device 40, enhancing its aesthetic appeal.

[0056] The working principle of embroidery equipment:

[0057] Before embroidery, the fabric is output from the second fabric roll mechanism 52, passes through the fabric clamping assembly, and finally enters the first fabric roll mechanism 51. The fabric currently located on the fabric clamping assembly is defined as the first fabric.

[0058] After the embroidery head finishes embroidering the first fabric with sequins (beads, ribbons, ropes, etc.), the fabric clamping assembly automatically releases the fabric. The second fabric winding mechanism 52, in conjunction with the first fabric winding mechanism 51, winds the first fabric onto the first fabric winding mechanism 51. Simultaneously, the second fabric winding mechanism 52 outputs new fabric into the fabric clamping assembly. The fabric currently positioned on the fabric clamping assembly is defined as the second fabric.

[0059] After the machine head finishes embroidering the second version of fabric sequins (beads, ribbons, ropes, etc.), the fabric clamping component automatically releases the fabric.

[0060] The process described above is repeated, so it will not be elaborated further. It should be noted that the patterns on the first, second, third, fourth, ..., Nth versions of the fabric are exactly the same.

[0061] Of course, it is understandable that the machine head can be beaded on the i-th print of fabric, or ribbon embroidery on the i-th print of fabric, or rope embroidery on the i-th print of fabric, and so on.

[0062] Specifically, the following examples use the second version of the gold sequin embroidery fabric as an example, such as... Figure 3 As shown, the embroidery method based on embroidery equipment includes the following steps:

[0063] S1. Obtain the template pattern;

[0064] It should be noted that the image acquisition device 40 takes pictures of the first version of the fabric, and the pictures of the first version of the fabric are transmitted to the control system of the embroidery equipment. The control system of the embroidery equipment obtains the template pattern based on the pictures of the first version of the fabric. The pictures of the first version of the fabric include patterns of multiple different shapes.

[0065] For example: The image acquisition device takes pictures of the first version of the fabric. The pictures of the first version of the fabric are as follows: Figure 4 As shown, the patterns presented on the first version of the fabric include 3 patterns H1: pattern H1a, pattern H1b, and pattern H1c; 3 patterns H2: pattern H2a, pattern H2b, and pattern H2c; 3 patterns H3: pattern H3a, pattern H3b, and pattern H3c; and 2 patterns H4: pattern H4a and pattern H4b.

[0066] The control system of the embroidery equipment selects any one of the three patterns H1 based on the photo of the first piece of fabric and defines it as template pattern H1; selects any one of the three patterns H2 and defines it as template pattern H2; selects any one of the three patterns H3 and defines it as template pattern H3; and selects any one of the two patterns H4 and defines it as template pattern H4.

[0067] S2. Set the starting position of the embroidery in the template pattern;

[0068] It should be noted that the starting position of the embroidery can be set by those skilled in the art based on the shape of the pattern, and this embodiment does not impose any limitations. Setting the starting position helps to improve the embroidery effect.

[0069] For example, the starting point of template pattern H1, that is, the starting position of the embroidery, such as... Figure 4 As shown; the starting point of template pattern H2, that is, the starting position of the embroidery, is as follows. Figure 4 As shown; the starting point of template pattern H3, that is, the starting position of the embroidery, is as follows. Figure 4 As shown; the starting point of template pattern H4, that is, the starting position of the embroidery, is as follows. Figure 4 As shown.

[0070] S3. Based on the starting position of the template pattern, obtain the starting position coordinates of the pattern to be embroidered corresponding to the template pattern on the Nth version of the fabric, where N is a positive integer;

[0071] It should be noted that N here can be 1, 2, 3, etc. That is, the first version of the fabric is embroidered with gold sequins, the second version of the fabric is embroidered with gold sequins, the third version of the fabric is embroidered with gold sequins, and so on.

[0072] For example, for the gold sequin embroidery on the second version of the fabric, the image acquisition device 40 can acquire the starting position coordinates of each pattern on the second version of the fabric. That is, according to the starting position of the template pattern H1, the coordinates of the starting positions of all patterns H1 corresponding to the template pattern H1 on the Nth version of the fabric are obtained, that is, the starting position coordinates of H1a, H1b, and H1c are obtained.

[0073] Based on the starting position of template pattern H2, obtain the coordinates of the starting positions of all patterns H2 corresponding to template pattern H2 on the Nth version of the fabric, that is, obtain the starting position coordinates of H2a, H2b, and H2c.

[0074] Based on the starting position of template pattern H3, obtain the coordinates of the starting positions of all patterns H3 corresponding to template pattern H3 on the Nth version of the fabric, that is, obtain the starting position coordinates of H3a, H3b, and H3c.

[0075] Based on the starting position of template pattern H4, obtain the coordinates of the starting positions of all patterns H4 corresponding to template pattern H4 on the Nth version of the fabric, that is, obtain the starting position coordinates of H4a and H4b.

[0076] In actual production, because the tension of the first and second fabric plates differs between the clamping components, the image acquisition device 40 can capture the starting coordinates of each pattern on the first fabric plate when embroidering it; similarly, the image acquisition device 40 can capture the starting coordinates of each pattern on the third fabric plate when embroidering it. This setup helps the sequins to be accurately embroidered at the preset positions of the patterns, ensuring a good embroidery effect.

[0077] S4. According to preset rules, sort the starting position coordinates of the embroidery pattern corresponding to the template pattern, generate the embroidery trajectory, and embroider the Nth version of the fabric according to the embroidery trajectory.

[0078] For example, the starting coordinates of patterns H2a, H2b, H2c, H3a, H3b, H3c, and H4a and H4b on the second version of the fabric have been obtained.

[0079] S41. Obtain the X coordinate of the starting position coordinates of patterns H1a-H1c, H2a-H2c, H3a-H3c, and H4a-H4b.

[0080] S42. Sort the patterns H1a-H1c, H2a-H2c, H3a-H3c, and H4a-H4b according to their X-axis coordinates from smallest to largest.

[0081] For example, the starting coordinates of H1c are (2, 2), and the starting coordinates of H4b are (3, 5).

[0082] Compare the X-coordinates of the starting positions of H1c and H4b, and sort them from smallest to largest, i.e., H1c-H4b.

[0083] S43. If at least two patterns have the same X coordinate, then compare the Y coordinates of the at least two patterns and sort them from smallest to largest.

[0084] For example, the starting coordinates of H4b are (3, 5), and the starting coordinates of H2b are (3, 8, 3).

[0085] If the X-coordinate of the starting position of H4b is equal to the X-coordinate of the starting position of H2b, then compare the Y-coordinate of the starting position of H4b with the Y-coordinate of the starting position of H2b, and sort them in ascending order, i.e., H4b-H2b.

[0086] Therefore, according to the preset rules, the patterns H1c, H4b, and H2b are sorted, and the resulting embroidery chain is H1c-H4b-H2b.

[0087] Of course, it is understandable that patterns H1a-H1c, H2a-H2c, H3a-H3c, and H4a-H4b can also be sorted from largest to smallest according to their X-axis coordinates. Correspondingly, if at least two patterns have the same X-coordinate, then the Y-coordinates of the at least two patterns are compared and sorted from largest to smallest.

[0088] S5. Embroider the Nth version of the fabric according to the embroidery trajectory.

[0089] It should be noted that embroidering the Nth version of the fabric according to the embroidery pattern includes the following steps:

[0090] S51. Pre-set gold foil versions H1, H2, H3, and H4, such as... Figure 5 As shown, those skilled in the art can set the gold foil version H1, gold foil version H2, gold foil version H3, and gold foil version H4 themselves.

[0091] S52, Template pattern H1 matches gold foil version H1, template pattern H2 matches gold foil version H2, template pattern H3 matches gold foil version H3, template pattern H4 matches gold foil version H4.

[0092] S53. When embroidering the second version of the fabric, patterns H1a-H1c should be embroidered according to the gold sequin pattern H1; patterns H2a-H2c should be embroidered according to the gold sequin pattern H2; patterns H3a-H3c should be embroidered according to the gold sequin pattern H3; and patterns H4a-H4b should be embroidered according to the gold sequin pattern H4.

[0093] In summary, the embroidery method based on embroidery equipment ensures the continuity of embroidery and improves work efficiency; it can automatically complete the embroidery of sequins (beads, ribbons, ropes, etc.), and the sequins (beads, ribbons, ropes, etc.) can be accurately embroidered at the preset positions of the pattern, ensuring a good embroidery effect.

[0094] In practical applications, when the pattern on the fabric rotates due to varying tension during fabric fixing or fabric misalignment in the Mth fabric pattern, the embroidery effect is affected. Here, M is greater than or equal to 2, and M is a positive integer.

[0095] Before step S4 and after step S3, the method further includes the step of obtaining a rotation angle based on the outer contour of the template pattern and the outer contour of the pattern to be embroidered.

[0096] It should be noted that M here can be 2, 3, 4, etc. That is, gold sequin embroidery on the second version of the fabric, gold sequin embroidery on the third version of the fabric, gold sequin embroidery on the fourth version of the fabric, and so on.

[0097] For example, for the gold sequin embroidery on the second version of the fabric, the outline of each pattern on the second version of the fabric can be captured by the image acquisition device 40.

[0098] The outline of template pattern H1 is compared with the outlines of patterns H1a, H1b, and H1c respectively. If the outline of template pattern H1 cannot be superimposed with the outlines of patterns H1a, H1b, and H1c, the rotation angles α, β, and γ of template pattern H1 are obtained in sequence so that the outline of template pattern H1 can be superimposed with the outlines of patterns H1a, H1b, and H1c.

[0099] Similarly, the outline of template pattern H2 is compared with the outlines of patterns H2a, H2b, and H2c respectively; the outline of template pattern H3 is compared with the outlines of patterns H3a, H3b, and H3c respectively; and the outline of template pattern H4 is compared with the outlines of patterns H4a and H4b respectively.

[0100] In detail, the outline of template pattern H1 is compared with the outline of pattern H2a:

[0101] 1) Template pattern H2 generates its largest circumcircle C1;

[0102] 2) Pattern H2a generates its largest circumcircle C2;

[0103] 3) Align the center of circumcircle C1 with the center of circumcircle C2;

[0104] 4) Rotate the template pattern H2 counterclockwise (clockwise) by an angle α, |α| < 90°, so that the outline of the template pattern H2 coincides with the outline of the pattern H2a.

[0105] Furthermore, in step S5, patterns H1a-H1c are embroidered according to the gold sequin pattern H1 and rotation angles α1, β1, and γ1; patterns H2a-H2c are embroidered according to the gold sequin pattern H2 and rotation angles α2, β2, and γ2; patterns H3a-H3c are embroidered according to the gold sequin pattern H3 and rotation angles α3, β3, and γ3; and patterns H4a-H4b are embroidered according to the gold sequin pattern H4 and rotation angles α4 and β4.

[0106] For example, such as Figure 7 As shown, pattern H2a is embroidered based on the gold sequin pattern H2 and a rotation angle α2. The template pattern H2 is rotated clockwise by an angle α2, and the outline of the template pattern H2 coincides with the outline of pattern H2a, thus achieving the embroidery effect shown. Figure 8 As stated above.

[0107] However, Figure 9 The pattern H2a was embroidered according to the gold foil pattern H2. However, the angle α2 was not rotated during the embroidery process, resulting in a different embroidery effect than desired.

[0108] This setup allows for precise embroidery of gold pieces (beads, ribbons, ropes, etc.) at the pre-set positions of the design, ensuring a good embroidery effect.

[0109] On the other hand, the terminal device provided in the embodiments of this application includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the embroidery method described above.

[0110] The following is for reference. Figure 10 , Figure 10 This is a schematic diagram of the computer system structure of the terminal device according to an embodiment of this application.

[0111] like Figure 10 As shown, the computer system includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 902 or programs loaded from storage section 903 into random access memory (RAM) 903. RAM 903 also stores various programs and data required for system operation. CPU 901, ROM 902, and RAM 903 are interconnected via bus 904. Input / output (I / O) interface 905 is also connected to bus 904.

[0112] The following components are connected to I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to I / O interface 905 as needed. A removable medium 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 910 as needed so that computer programs read from it can be installed into storage section 908 as needed.

[0113] Specifically, according to embodiments of this application, the above reference flow Figure 3The described process can be implemented as a computer software program. For example, embodiments of this application include a computer program product comprising a computer program carried on a machine-readable medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 903, and / or installed from removable medium 911. When the computer program is executed by central processing unit (CPU) 901, it performs the functions defined in the system of this application.

[0114] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0115] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0116] The units or modules described in the embodiments of this application can be implemented in software or hardware. The described units or modules can also be housed in a processor; for example, a processor may be described as including a first display module and a second display module. The names of these units or modules do not necessarily limit the specific unit or module itself; for example, the second display module may also be described as "for setting the starting position of the embroidery in the template pattern".

[0117] In another aspect, this application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable storage medium stores one or more programs that are used by one or more processors to execute the embroidery method described in this application.

[0118] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the foregoing disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.

Claims

1. An embroidery method, characterized in that, include: Get the template pattern; Set the starting position of the embroidery in the template pattern; Based on the starting position of the template pattern, obtain the starting position coordinates of the pattern to be embroidered corresponding to the template pattern on the Nth version of the fabric, where N is a positive integer; Obtaining a rotation angle based on the outer contour of the template pattern and the outer contour of the pattern to be embroidered includes: generating the largest circumcircle C1 based on the outer contour of the template pattern; generating the largest circumcircle C2 based on the outer contour of the pattern to be embroidered; aligning the center of the circumcircle C1 with the center of the circumcircle C2; ​​and rotating the template pattern counterclockwise or clockwise by α, where |α| < 90°, so that the outer contour of the template pattern coincides with the outer contour of the pattern to be embroidered. According to preset rules, the patterns to be embroidered corresponding to the template pattern are sorted to generate embroidery tracks; Embroider the Nth version of the fabric according to the embroidery trajectory.

2. The embroidery method according to claim 1, characterized in that, The process of obtaining the template pattern includes: Obtain a photo of the first version of the fabric, which includes patterns of multiple different shapes; The template pattern is selected based on the photograph of the first version of the fabric.

3. The embroidery method according to claim 1, characterized in that, The step of sorting the template patterns according to preset rules to generate embroidery tracks includes: Obtain the X-axis coordinate of the starting position of the embroidery pattern corresponding to the template pattern. Sort the various patterns to be embroidered according to their X-axis coordinates, either from smallest to largest or from largest to smallest. Generate the embroidery trajectory.

4. The embroidery method according to claim 3, characterized in that, If the X-coordinates of the starting positions of at least two of the embroidery patterns are the same, then the embroidery patterns are sorted in ascending order of their Y-coordinates, or in descending order of their Y-coordinates.

5. The embroidery method according to claim 1, characterized in that, The process of embroidering the Nth version of the fabric according to the embroidery trajectory includes: Preset embroidered pattern The preset pattern matches the template pattern; Embroider the pattern to be embroidered according to the preset pattern.

6. The embroidery method according to claim 1, characterized in that, The Nth version of the fabric is embroidered according to the embroidery trajectory and the rotation angle.

7. A terminal device, characterized in that, The terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to implement the embroidery method as described in any one of claims 1-6 when executing the program.

8. A computer-readable storage medium having a computer program stored thereon for implementing the embroidery method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Embroidery position correction method, device, system, equipment and product

    CN115717303A