Embroidery machine and control method thereof

By using a projector in conjunction with the embroidery frame in the embroidery machine, a pattern image that matches the actual embroidery effect is generated, solving the problem of inaccurate positioning in the existing technology, improving the layout efficiency and operation accuracy of the embroidery machine, and reducing material waste.

CN121161539APending Publication Date: 2025-12-19FUZHOU RUINENG CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511211165.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-27
Publication Date
2025-12-19

AI Technical Summary

Technical Problem

Existing embroidery machines cannot directly present the final embroidery effect during layout, leading to deviations in the operator's visual observation of the position, low positioning accuracy, and reliance on the operator's experience, resulting in material waste and low efficiency.

Method used

The design uses a projector and embroidery frame together. The controller acquires embroidery pattern data and generates pattern images, which are then projected onto the embroidery fabric to ensure that the pattern image matches the actual embroidery effect. The operator can directly and accurately locate the embroidery position through the pattern image.

Benefits of technology

It improves the layout efficiency and overall operation accuracy of embroidery machines, reduces material waste caused by repeated adjustments, reduces reliance on operator experience, and increases production efficiency and yield.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121161539A_ABST
    Figure CN121161539A_ABST
Patent Text Reader

Abstract

The invention discloses an embroidery machine and a control method thereof. An embroidery frame of the embroidery machine is used for fixing embroidery cloth to be embroidered; the projector is located above the tabouret, and the distance between a lens of the projector and the tabouret is equal to the focal length of the projector; the controller is used for acquiring embroidery pattern data, synthesizing the embroidery pattern data into a pattern image, and controlling the projector to project the pattern image onto the embroidery cloth, so that the pattern size of the pattern image projected onto the embroidery cloth is the same as the actual size of the embroidery pattern data. The distance between the lens of the projector and the tabouret is set as the focal length, so that the definition of the pattern image on the embroidery cloth can be ensured; the controller performs projection according to the pattern image, so that the pattern image projected on the embroidery cloth is the same as the actual embroidery effect, an operator can directly and accurately position the embroidery position through the pattern image, the pattern positioning accuracy in the plate making process is improved, the material waste caused by repeated debugging is reduced, and the typesetting efficiency of the embroidery machine is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of fabric processing, in particular to an embroidery machine and a control method thereof. BACKGROUND

[0002] When the existing embroidery machine is arranged, the operator usually needs to observe the embroidery cloth position on the embroidery frame according to the naked eye, and judges whether the current position meets the embroidery requirements according to experience. Since the starting position of the on-machine file of the embroidery machine is not directly related to the current needle position, there is sometimes a certain offset, which causes the position observed by the naked eye of the operator to deviate, the positioning accuracy is low, and the final embroidery effect on the embroidery cloth cannot be directly presented through naked eye observation, so that the embroidery effect on the embroidery cloth cannot be directly observed during arrangement. SUMMARY

[0003] To solve the above technical problems, the present application provides an embroidery machine and a control method thereof.

[0004] To solve the above problems, the present application provides a first technical solution: providing an embroidery machine, comprising a machine body, an embroidery frame, a projector and a controller; the embroidery frame is arranged on the machine body, and the embroidery frame is used to fix the embroidery cloth to be embroidered; the projector is arranged on the machine body, and the projector is located above the embroidery frame; the distance between the lens of the projector and the embroidery frame is equal to the focal length of the projector; the controller is connected with the projector, and the controller is used to acquire embroidery pattern data; the controller is also used to synthesize the embroidery pattern data into a pattern image, so as to control the projector to project the pattern image onto the embroidery cloth.

[0005] Optionally, when the embroidery pattern data is synthesized into the pattern image, the controller is used to acquire a first size parameter of the embroidery pattern data, so as to calculate the pixel distribution data of the projector under the first size parameter; the controller is also used to convert the preview image corresponding to the embroidery pattern data into an image corresponding to the pixel distribution data, so as to obtain the pattern image.

[0006] Optionally, when the pixel distribution data of the projector under the first size parameter is calculated, the controller is used to acquire the projection resolution and the projection size parameter of the projector; the controller is used to calculate the pixel distribution data according to the projection resolution, the projection size parameter and the first size parameter, so as to convert the preview image into the pattern image corresponding to the pixel distribution data.

[0007] Optionally, the controller is configured to calculate a first ratio of a ratio of the projection resolution to the projection size parameter, and calculate a second ratio of the first size parameter to the first ratio, and take the second ratio as the pixel distribution data.

[0008] Optionally, the controller is configured to perform at least one of scaling, rotating, mirroring, or the like on the embroidery pattern data to obtain the preview image corresponding to the embroidery pattern data.

[0009] Optionally, the controller is configured to: obtain a starting point of the embroidery pattern from the embroidery pattern data; obtain a deviation value of a projection screen coordinate of the projector from a needle-down point coordinate, and calculate a distance between the starting point and the needle-down point coordinate according to the deviation value; and control the embroidery frame to move based on the distance, so that the embroidery needle is aligned with the starting point and the embroidery needle starts to embroider at the expected embroidery position of the pattern image.

[0010] Optionally, the controller is configured to establish a communication connection with the projector in one of a high-definition multimedia interface, a universal serial bus, an Ethernet, a wireless local area network, and Bluetooth.

[0011] To solve the above problems, the present application provides a second technical solution: providing a control method of an embroidery machine, applied to the embroidery machine as above, the control method of the embroidery machine comprising: obtaining embroidery pattern data; synthesizing the embroidery pattern data into a pattern image; controlling a projector to project the pattern image onto an embroidery cloth to perform layout through the projected pattern image.

[0012] Optionally, before the step of synthesizing the embroidery pattern data into a pattern image, the control method further comprises: generating an input interface, the input interface comprising a resolution configuration item and an image size configuration item; in response to user selection of the resolution configuration item and the image size configuration item, obtaining the projection resolution of the projector from the resolution configuration item, and obtaining the projection size parameter of the projector from the image size configuration item.

[0013] Optionally, the step of synthesizing the embroidery pattern data into a pattern image comprises: obtaining a first size parameter of the embroidery pattern data; calculating pixel distribution data of the projector under the first size parameter according to the projection resolution, the projection size parameter, and the first size parameter; and converting a preview image corresponding to the embroidery pattern data into an image corresponding to the pixel distribution data to obtain the pattern image.

[0014] The application provides an embroidery machine and a control method thereof. The embroidery machine comprises a machine body, an embroidery frame, a projector and a controller. The embroidery frame is arranged on the machine body and is used for fixing embroidery cloth to be embroidered. The projector is arranged on the machine body and is located above the embroidery frame. The distance between the lens of the projector and the embroidery frame is equal to the focal length of the projector. The controller is connected with the projector. The controller is used for acquiring embroidery pattern data. The controller is also used for synthesizing the embroidery pattern data into a pattern image and controlling the projector to project the pattern image onto the embroidery cloth, so that the size of the pattern image projected onto the embroidery cloth is the same as the actual size of the embroidery pattern data. According to the application, the distance between the lens of the projector and the embroidery frame is set as the focal length, so that the definition of the pattern image on the embroidery cloth can be ensured. The controller generates the pattern image according to the embroidery pattern data and projects the pattern image, so that the pattern image projected on the embroidery cloth is the same as the actual embroidery effect. The operator can directly and accurately position the embroidery position through the pattern image, the accuracy of pattern positioning in the plate making process is improved, the material waste caused by repeated debugging is reduced, the layout efficiency of the embroidery machine is significantly improved, the dependence on the experience of the operator is reduced, and the accuracy and production efficiency of the overall embroidery operation are improved. BRIEF DESCRIPTION OF DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description only some embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor. Among them:

[0016] Figure 1 FIG. 1 is a structural schematic diagram of a first embodiment of the embroidery machine provided by the application;

[0017] Figure 2 FIG. 2 is a structural schematic diagram of a second embodiment of the embroidery machine provided by the application;

[0018] Figure 3 FIG. 3 is a flow schematic diagram of an embodiment of the control method of the embroidery machine provided by the application.

[0019] Among them, 20, embroidery frame; 21, embroidery cloth; 30, projector; 40, controller. DETAILED DESCRIPTION

[0020] The technical solutions in the embodiments of the application will be described clearly and completely below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only some embodiments of the application, not all embodiments. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the application.

[0021] It should be noted that if the application embodiments have directionality indication (such as up, down, left, right, front, back, …), the directionality indication is only used to explain the relative position relationship, motion condition and the like between components in a certain specific posture (as shown in the drawings), and if the specific posture changes, the directionality indication also changes accordingly.

[0022] In addition, if the application embodiments have descriptions such as "first", "second", etc., the "first", "second" and the like are only for description purposes, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features limited by "first", "second" can explicitly or implicitly include at least one of the features. In addition, the technical solutions of each embodiment can be combined with each other, but it must be based on the realization of ordinary skilled in the art, when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, nor within the protection scope claimed by the present application.

[0023] The application embodiments first propose an embroidery machine, please see Figure 1 , Figure 1 is a structural schematic diagram of the first embodiment of the embroidery machine provided by the present application. As Figure 1 indicated, the embroidery machine includes a machine body (not shown in the figure), an embroidery frame 20, a projector 30 and a controller 40.

[0024] The embroidery frame 20 is arranged on the machine body, and is used to fix the embroidery cloth 21 to be embroidered. The projector 30 is arranged on the machine body, and is located above the embroidery frame 20. The distance between the lens of the projector 30 and the embroidery frame 20 is equal to the focal length of the projector 30. The controller 40 is connected with the projector 30, and is used to acquire the embroidery pattern data. The controller 40 is also used to synthesize the embroidery pattern data into a pattern image, and control the projector 30 to project the pattern image onto the embroidery cloth 21, so that the pattern size of the pattern image projected onto the embroidery cloth 21 is the same as the actual size of the embroidery pattern data.

[0025] Specifically, the embroidery machine includes a machine body for support, an embroidery frame 20 for fixing the embroidery cloth 21, and a projector 30 located above the embroidery frame 20. The distance between the lens of the projector 30 and the embroidery frame 20 is equal to the focal length of the projector 30, so as to ensure that the image projected by the projector 30 on the embroidery cloth 21 is clear. The relative position relationship between the embroidery frame 20 and the projector 30 can be flexibly set according to the size and focal length of the projector 30; and / or, the installation height of the projector 30 relative to the embroidery frame 20 and the focal length can be adjusted through a standard positioning card, so that the image size projected by the projector 30 is the same as the positioning card, and the position and size of the pattern image projected by the projector 30 for pre-embroidery are ensured to be the same as the actual embroidery.

[0026] The controller 40 is in communication connection with the projector 30. The controller 40 is configured to receive the embroidery pattern data and generate a corresponding pattern image. The projector 30 is configured to receive the pattern image transmitted by the controller 40 and project the pattern image onto the embroidery cloth 21. The controller 40 has a conversion relationship between the pixel size of the pattern image and the actual size of the embroidery pattern. Therefore, the controller 40 can adjust the actual embroidery pattern indicated in the embroidery pattern data to a proper image size through an image scaling algorithm to obtain the pattern image. The pattern size of the pattern image is the size of the pattern in the pattern image, and the actual size of the embroidery pattern data is the actual size of the pattern data in the embroidery pattern data. For example, the controller 40 can obtain the actual size of the corresponding embroidery pattern data by obtaining the size parameter in the embroidery pattern data to generate the corresponding pattern image.

[0027] The projector 30 projects the pattern image onto the embroidery cloth 21, so that the operator can visually observe the position and size of the actual embroidery pattern through the pattern image on the embroidery cloth 21. The model, resolution, and focal length range of the projector 30 can be selected according to actual needs.

[0028] Therefore, in the embodiment of the present application, by setting the distance between the lens of the projector 30 and the embroidery frame 20 to the focal length, the clarity of the pattern image on the embroidery cloth 21 can be ensured. The controller 40 generates the pattern image according to the embroidery pattern data and projects the pattern image, so that the pattern image projected on the embroidery cloth 21 maintains a 1:1 ratio with the actual embroidery effect. The operator can directly and accurately position the embroidery position through the pattern image, improve the accuracy of pattern positioning in the plate making process, reduce material waste caused by repeated debugging, significantly improve the layout efficiency of the embroidery machine, reduce the dependence on the operator's experience, and improve the accuracy and production efficiency of the overall embroidery operation.

[0029] In an embodiment, when the embroidery pattern data is integrated into the pattern image, the controller 40 is configured to obtain a first size parameter of the embroidery pattern data to calculate pixel distribution data of the projector 30 under the first size parameter. The controller 40 is further configured to convert a preview image corresponding to the embroidery pattern data into an image corresponding to the pixel distribution data to obtain the pattern image.

[0030] Specifically, the embroidery pattern data includes a first size parameter corresponding to the embroidery pattern and a preview image of the embroidery pattern, and the first size parameter corresponds to the graphic size of the embroidery pattern. When generating the pattern image, the controller 40 first acquires the first size parameter in the embroidery pattern data, calculates the pixel distribution rule of the projected image under a certain size of the embroidery pattern according to the first size parameter, and obtains the pixel distribution data. The controller 40 is also used to convert the preview image into an image corresponding to the pixel distribution data after obtaining the pixel distribution data, so as to obtain the pattern image, and the resolution size of the pattern image is the same as the first size parameter, so as to ensure that the pattern image projected by the projector 30 is the same as the actual embroidery effect in proportion and position on the screen.

[0031] In the calculation of the pixel distribution data, the controller 40 can but not limited to establish a conversion relationship between the resolution of the projector 30 and the projected actual size, for example, calculate the actual physical size corresponding to a single pixel point, and then inversely deduce the pixel distribution of the pattern image according to the actual required size of the embroidery, so as to adjust the pixel density of the preview image according to the pixel distribution data to ensure the consistency of the projected pattern image with the actual embroidery result on the screen. In specific implementation, the controller 40 can perform image conversion on the preview image according to the actual effect, and the image conversion mode includes but is not limited to scaling, rotating, mirroring and the like of the preview image through an interpolation algorithm, or the image conversion mode includes but is not limited to at least one of adjusting the resolution parameter of the preview image through filtering, resolution reconstruction, increasing the number of pixels, generating high-frequency details and the like, so that the generated pattern image can match the display capability of the projector 30 and ensure the clarity of the projected screen.

[0032] Therefore, in the embodiment, the controller 40 calculates the pixel distribution data of the projector 30 through the first size parameter, generates the pattern image corresponding to the actual size according to the pixel distribution data, so that the pattern image projected on the embroidery cloth 21 keeps a 1:1 proportion with the actual embroidery effect, and reduces the positioning deviation caused by the naked eye judgment of the operator in the prior art. The operator can directly perform accurate layout through the projected pattern image, significantly improves the work efficiency and reduces the material waste caused by repeated debugging, and further improves the production efficiency and the yield.

[0033] Optionally, in the calculation of the pixel distribution data of the projector 30 under the first size parameter, the controller 40 is used to acquire the projection resolution and the projection size parameter of the projector 30; the controller 40 is used to calculate the pixel distribution data according to the projection resolution, the projection size parameter and the first size parameter, so as to convert the preview image into the pattern image corresponding to the pixel distribution data.

[0034] Specifically, the controller 40 is configured to obtain a projection resolution of the projector 30 and a projection size parameter, the projection resolution including a number of pixel points of the projector 30 in a horizontal direction and a vertical direction. For example, the projection resolution can include 1280*800, representing that the number of pixel points of the projector 30 in the horizontal direction is 1280 and the number of pixel points of the projector 30 in the vertical direction is 800. The projection size parameter refers to a physical size of a projection frame actually projected by the projector 30, and the projection size parameter includes a size of the projection frame in the horizontal direction and the vertical direction. For example, the projection size parameter can be represented by x mm*y mm. The first size parameter refers to a physical size of the embroidery pattern after actual embroidery, and the first size parameter includes a size of the embroidery pattern in the horizontal direction and the vertical direction. For example, the first size parameter can be represented by K mm*L mm.

[0035] The controller 40 is configured to calculate the pixel distribution data according to the projection resolution, the projection size parameter, and the first size parameter. For example, the actual physical size of the embroidery pattern corresponding to each pixel point can be calculated by a ratio of the projection resolution to the projection size parameter, and then the pixel distribution and the image resolution required for projection of the embroidery pattern can be calculated according to the first size parameter. The controller 40 is further configured to scale the preview image to the size of the image resolution and synthesize the preview image onto the canvas of the projector 30 to obtain the pattern image.

[0036] Therefore, the embroidery machine of the embodiment can perform size conversion through the controller 40 to ensure that embroidery pattern data of different sizes can be accurately projected on the projector 30 to obtain the same effect as the actual effect, improve the layout efficiency and positioning accuracy, and thus reduce the error of the operator using naked eyes to position the pattern in the prior art. The projected pattern image can intuitively present the final embroidery effect, and the operator can directly position the embroidery position through the projected pattern image to align the needle eye position and improve the accuracy of the embroidery position, thereby reducing the waste of fabric caused by repeated testing. The dependence on the experience of the operator is reduced, and the embodiment is particularly suitable for personalized application scenarios such as single-head embroidery machines. Through pixel-level size conversion, it is ensured that embroidery patterns of different sizes can be accurately projected on different projection devices, the layout efficiency and positioning accuracy are improved, and embroidery errors caused by proportion deviation are avoided.

[0037] Further, the controller 40 is configured to calculate a first ratio of the projection resolution to the projection size parameter, and the controller 40 is further configured to calculate a second ratio of the first size parameter to the first ratio, so as to take the second ratio as the pixel distribution data.

[0038] Specifically, when calculating the pixel distribution data, the controller 40 can calculate a first ratio of a ratio of the projection resolution and the projection size parameter, so as to represent the actual physical size of the embroidery pattern corresponding to each pixel point by the first ratio. The controller 40 is further configured to calculate a second ratio of a ratio of the first size parameter and the first ratio. The second ratio (or the pixel distribution data) can be used to represent the number of pixel points (or the resolution) of the pattern image projected by the projector 30 in the horizontal direction and the vertical direction. Exemplarily, the actual physical size of the embroidery pattern corresponding to each pixel point can include a physical size N in the horizontal direction and a physical size M in the vertical direction. That is, the first size can be represented by N = x / W and / or M = y / H. In a possible manner, N can be but is not limited to equal to M. At this time, the second ratio can be represented by (K / N)*(L / N). At this time, the controller 40 is configured to scale the preview image to the pattern image of the size of (K / N)*(L / N), so that the pattern image can be projected to have the same physical size as the actual embroidery pattern under the pixel distribution data.

[0039] Therefore, the controller 40 of the embodiment can calculate the pixel distribution data of the pattern image by accurately calculating the ratio relationship between the resolution and the physical size, so that the pattern image can automatically match the size having the corresponding proportional relationship with the actual embroidery pattern, reduce or avoid the positioning deviation caused by the judgment of the operator using artificial experience, enable the projected pattern image to intuitively present the final embroidery effect, reduce the repeated debugging time, and be especially suitable for the single-head embroidery machine having a wide market in the personalized embroidery, so as to reduce the requirement of the operator of the single-head embroidery machine on the operation experience and improve the accuracy and production efficiency of the overall embroidery operation.

[0040] Optionally, the controller 40 is configured to perform at least one operation of scaling, rotating, mirroring, etc. on the embroidery pattern data, so as to obtain the preview image corresponding to the embroidery pattern data.

[0041] Specifically, the operator can perform at least one operation of scaling, rotating, mirroring, etc. on the original pattern in the embroidery pattern data by the controller 40, so as to adjust the presentation effect of the embroidery pattern and obtain the preview image to be embroidered. The embroidery machine can include a screen, which can be but is not limited to a terminal screen connected with the embroidery machine or a visual screen fixed to the embroidery machine. The screen is configured to be used by the operator to operate the embroidery pattern data, so that the original pattern of the embroidery pattern data can be subjected to at least one operation of scaling, rotating, mirroring, etc. according to the demand of the operator. The specific operation can be adjusted according to the actual demand. Exemplarily, the above operation can be a single scaling process or a rotating operation, or can be a combined operation of scaling and rotating, mirroring, etc. For example, the original pattern is rotated by a specific angle and then scaled synchronously, or is flipped symmetrically and then the size is adjusted to adapt to the position of the embroidery cloth 21.

[0042] Through the above mode, the embroidery machine of the embodiment can simultaneously support adjustment of the original pattern in the embroidery pattern data, so as to facilitate the operator to modify the preview picture synchronously, adapt to different embroidery requirements, and overall improve the use efficiency and user experience of the equipment.

[0043] In an embodiment, the controller 40 establishes a communication connection with the projector 30 in one of the following ways: high-definition multimedia interface, universal serial bus, Ethernet, wireless local area network, and Bluetooth.

[0044] Specifically, the controller 40 and the projector 30 exchange data in one of the following ways: high-definition multimedia interface (HDMI), universal serial bus (USB), Ethernet, wireless local area network (WIFI), or Bluetooth, to realize real-time communication between the controller 40 and the projector 30 and ensure accurate transmission of the pattern image. In specific implementation, wired or wireless connection can be selected according to the device layout, for example, using an Ethernet cable in a fixed installation scenario, or using Bluetooth or Wi-Fi wireless connection in a mobile operation scenario; or the communication mode can be configured according to the use cost, which is not limited here.

[0045] In an embodiment, the controller 40 is configured to: obtain a starting point of the embroidery pattern from the embroidery pattern data; obtain a deviation value between a projection picture coordinate of the projector 30 and a needle point coordinate; calculate a distance between the starting point and the needle point coordinate according to the deviation value; and control the embroidery frame 20 to move based on the distance, so that the embroidery needle is aligned with the starting point and the embroidery needle starts to embroider at the expected embroidery position of the pattern image.

[0046] Specifically, the embroidery pattern data includes a stencil file, and the stencil file indicates the position of the starting point of the embroidery pattern. Therefore, the controller 40 is configured to obtain the coordinate of the starting point of the embroidery pattern from the embroidery pattern data. The controller 40 is further configured to calculate the distance between the coordinate of the starting point and the needle point coordinate of the embroidery needle at the current time according to the deviation value. The controller 40 is further configured to control the embroidery frame 20 to move along the connecting line of the two points based on the calculated distance between the starting point and the needle point coordinate, so that the embroidery needle is aligned with the starting point. For example, the distance between the starting point and the needle point coordinate can include a first distance in the horizontal direction of the coordinate and a second distance in the vertical direction of the coordinate. When the motion mechanism drives the embroidery frame 20 to move through two direction motors, the controller 40 is configured to control the embroidery frame 20 to move in the horizontal direction based on the first distance and to move in the vertical direction based on the second distance, so that the embroidery needle is aligned with the starting point.

[0047] After the embroidery needle is aligned with the starting point, the embroidery needle starts to embroider at the expected embroidery position of the pattern image on the embroidery cloth 21 and forms a needle trace on the embroidery cloth 21 by continuing to control the action of the embroidery needle and the movement of the embroidery frame 20, so as to form the embroidery pattern.

[0048] Therefore, the positioning method of the embodiment can realize high-precision alignment of the embroidery position by calculating the distance between the starting point and the actual needle point and driving the embroidery frame 20 to move, effectively eliminates the positioning error caused by traditional manual judgment, significantly improves the layout efficiency, and reduces the secondary adjustment caused by visual deviation.

[0049] Optionally, the deviation value is used to represent the coordinate deviation value between the needle point coordinate of the embroidery needle at the current moment and a preset point in the pattern image projected by the projector 30.

[0050] Specifically, please refer to Figure 2 , Figure 2 is a structural schematic diagram of a second embodiment of the embroidery machine provided by the present application. As shown in Figure 2 , when the deviation value of the projection screen coordinate of the projector 30 and the needle point coordinate is obtained, the controller 40 is configured to: control the embroidery frame 20 to move so that the embroidery needle is aligned with the calibration point of the projector 30; record the initial coordinate before the embroidery frame 20 moves, and record the offset coordinate of the embroidery frame 20 when the embroidery needle is aligned with the calibration point; and calculate the deviation value based on the initial coordinate and the offset coordinate. At this time, in the process of moving the embroidery frame 20, the controller 40 is configured to record the initial coordinate before the embroidery frame 20 moves, and record the offset coordinate of the embroidery frame 20 when the embroidery needle is aligned with the calibration point.

[0051] After obtaining the initial coordinate before the embroidery frame 20 moves and the offset coordinate when the calibration point is aligned, the controller 40 is configured to calculate the deviation value based on the initial coordinate and the offset coordinate. The initial coordinate and the offset coordinate include coordinate values in the horizontal direction and the vertical direction, and the deviation value can include a coordinate difference value in the horizontal direction and a coordinate difference value in the vertical direction. For example, the initial coordinate is (X0, Y0), the offset coordinate is (X1, Y1), the coordinate difference value in the horizontal direction is ΔX = X1-X0, and the coordinate difference value in the vertical direction is ΔY = Y1-Y0.

[0052] When the controller 40 obtains the deviation value by calibration, it is usually executed after the initial installation of the projector 30, or automatically triggered after the position of the embroidery machine is moved, or triggered when the actual embroidery position of the embroidery cloth 21 does not match the expected embroidery position. For example, the controller 40 is further configured to: control the image acquisition member to sample images of the embroidery frame 20 at a preset frequency to obtain a sampling image of the image acquisition member; and in response to the fact that the actual starting point indicated in the sampling image is different from the coordinate of the starting point in the embroidery pattern data, generate a warning information to recalculate the deviation value at the current moment based on the warning information.

[0053] The embodiment of the present application also provides a control method of an embroidery machine. The control method can be applied to the embroidery machine of any of the above embodiments. Please refer to Figure 3 ,Figure 3 is a flowchart of an embodiment of the control method of the embroidery machine provided in the present application. As shown in the figure, the control method comprises the following steps: Figure 3

[0054] Step S11: Obtain embroidery pattern data.

[0055] Specifically, the embroidery pattern data comprises a stencil file when the embroidery machine is started, and by obtaining the embroidery pattern data, a preview image corresponding to the embroidery pattern and related size information are obtained.

[0056] Step S12: Synthesize the embroidery pattern data into a pattern image.

[0057] After obtaining the embroidery pattern data, the embroidery pattern data is synthesized into a pattern image.

[0058] Step S13: Control the projector 30 to project the pattern image onto the embroidery cloth 21, so that the pattern size of the pattern image projected onto the embroidery cloth 21 is the same as the actual size of the embroidery pattern data.

[0059] After obtaining the corresponding pattern image, the projector 30 is controlled to project the pattern image onto the embroidery cloth 21, so that the pattern size of the pattern image projected onto the embroidery cloth 21 is the same as the actual size of the embroidery pattern data. When implemented, the projector 30 needs to be installed above the embroidery frame 20, and the relationship between each pixel point in the projection of the projector 30 and the actual size of the embroidery pattern is calculated, so that the projection size of the pattern image generated by the projector 30 is the same as the actual embroidery effect.

[0060] Therefore, in the control method of the embodiment of the present application, the operator can directly and accurately position the embroidery position through the pattern image projected by the projector 30, improve the accuracy of pattern positioning in the plate making process, reduce material waste caused by repeated debugging, significantly improve the layout efficiency of the embroidery machine, reduce the dependence on the experience of the operator, and improve the accuracy and production efficiency of the overall embroidery operation.

[0061] In an embodiment, before step S12, the control method further comprises the following steps: generating an input interface, the input interface comprising a resolution configuration item and an image size configuration item. In response to the selection of the resolution configuration item and the image size configuration item by the user, the projection resolution of the projector 30 is obtained from the resolution configuration item, and the projection size parameter of the projector 30 is obtained from the image size configuration item.

[0062] ​Specifically, before the embroidery pattern data is synthesized into an image, an input interface including a resolution configuration item and an image size configuration item is generated, allowing an operator to adjust the parameters of the projector 30 through the input interface, so that the embroidery machine of the embodiment can be applicable to projectors 30 of different specifications. In a possible manner, the projector 30 can be detachably arranged on the machine body, and when the projector 30 of the embroidery machine fails, the projector 30 can be replaced to enable the embroidery machine to continue to work. Alternatively, the resolution and image size of the projector 30 can be adjusted according to the relative size of the embroidery pattern and the embroidery cloth 21, to improve the practicability of the embroidery machine for various pattern types and the demand for complex operations.

[0063] The resolution configuration item is used for the operator to set the projection resolution. The image size configuration item is used for the operator to set the projection size parameter. After the user selects the resolution configuration item and the image size configuration item, the projection resolution of the projector 30 is obtained from the resolution configuration item, and the projection size parameter of the projector 30 is obtained from the image size configuration item.

[0064] Therefore, the control method of the embodiment of the application ensures that the subsequently generated pattern image strictly corresponds to the actual embroidery size by configuring the resolution and size of the projector 30 in advance, significantly improves the layout efficiency through interface interaction, and expands the application range of the embroidery machine.

[0065] Optionally, the step S21 includes: obtaining a first size parameter of the embroidery pattern data; calculating pixel distribution data of the projector 30 in projection under the first size parameter according to the projection resolution, the projection size parameter, and the first size parameter; and converting a preview image corresponding to the embroidery pattern data into an image corresponding to the pixel distribution data to obtain the pattern image.

[0066] Specifically, after the projection resolution, the projection size parameter, and the first size parameter are obtained, the pixel distribution data is calculated according to the projection resolution, the projection size parameter, and the first size parameter. For example, the actual physical size of the embroidery pattern corresponding to each pixel point can be calculated through the ratio of the projection resolution and the projection size parameter, and then the first size parameter is converted to calculate the pixel distribution of the embroidery pattern in projection and the image resolution required for projection, i.e., the pixel distribution data.

[0067] The above only describes the embodiments of the application, and does not limit the patent scope of the application, and any equivalent structure or equivalent flow transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the application.

Claims

1. An embroidery machine, characterized in that, include: body; An embroidery frame is provided on the machine body and is used to fix the embroidery cloth to be embroidered; A projector is mounted on the machine body, the projector is located above the embroidery frame, and the distance between the lens of the projector and the embroidery frame is equal to the focal length of the projector; A controller, connected to the projector, is used to acquire embroidery pattern data, and is also used to synthesize the embroidery pattern data into a pattern image, and control the projector to project the pattern image onto the embroidery fabric, so that the pattern size of the pattern image projected onto the embroidery fabric is the same as the actual size of the embroidery pattern data.

2. The embroidery machine according to claim 1, characterized in that, When synthesizing the embroidery pattern data into the pattern image, the controller is used to obtain a first size parameter of the embroidery pattern data to calculate the pixel distribution data of the projector under the first size parameter; the controller is also used to convert the preview image corresponding to the embroidery pattern data into an image corresponding to the pixel distribution data to obtain the pattern image.

3. The embroidery machine according to claim 2, characterized in that, When calculating the pixel distribution data of the projector projecting under the first size parameter, the controller is used to obtain the projection resolution and projection size parameter of the projector; the controller is used to calculate the pixel distribution data based on the projection resolution, the projection size parameter and the first size parameter, so as to convert the preview image into the pattern image corresponding to the pixel distribution data.

4. The embroidery machine according to claim 3, characterized in that, The controller is used to calculate a first ratio of the projection resolution to the projection size parameter, and the controller is also used to calculate a second ratio of the first size parameter to the first ratio, so as to use the second ratio as the pixel distribution data.

5. The embroidery machine according to claim 2, characterized in that, The controller is used to perform at least one operation on the embroidery pattern data, such as scaling, rotating, or mirroring, to obtain the preview image corresponding to the embroidery pattern data.

6. The embroidery machine according to claim 1, characterized in that, The controller is used for: Obtain the starting point of the embroidery pattern from the embroidery pattern data; Obtain the deviation value between the coordinates of the projected image of the projector and the coordinates of the stitch point, and calculate the distance between the coordinates of the starting point and the stitch point based on the deviation value; The embroidery frame is moved based on the distance to align the embroidery needle with the starting point, and the embroidery needle begins embroidery at the intended embroidery position on the pattern image.

7. The embroidery machine according to claim 1, characterized in that, The controller establishes a communication connection with the projector via one of the following methods: high-definition multimedia interface, universal serial bus, Ethernet, wireless local area network, or Bluetooth.

8. A control method for an embroidery machine, characterized in that, The control method for the embroidery machine as described in any one of claims 1-7 includes: Obtain embroidery pattern data; The embroidery pattern data is combined into a pattern image; The projector is controlled to project the pattern image onto the embroidery fabric for layout.

9. The control method according to claim 8, characterized in that, Before the step of synthesizing the embroidery pattern data into a pattern image, the control method further includes: Generate an input interface, which includes resolution configuration items and image size configuration items; In response to the user's selection of the resolution configuration item and the image size configuration item, the projection resolution of the projector is obtained from the resolution configuration item, and the projection size parameter of the projector is obtained from the image size configuration item.

10. The control method according to claim 9, characterized in that, The step of synthesizing the embroidery pattern data into a pattern image includes: Obtain the first size parameter of the embroidery pattern data; Based on the projection resolution, the projection size parameter, and the first size parameter, calculate the pixel distribution data of the projector projecting under the first size parameter; The preview image corresponding to the embroidery pattern data is converted into an image corresponding to the pixel distribution data to obtain the pattern image.