CN113373607B - Embroidery needle path generation method and device and storage medium - Google Patents

Embroidery needle path generation method and device and storage medium Download PDF

Info

Publication number
CN113373607B
CN113373607B CN202110743147.XA CN202110743147A CN113373607B CN 113373607 B CN113373607 B CN 113373607B CN 202110743147 A CN202110743147 A CN 202110743147A CN 113373607 B CN113373607 B CN 113373607B
Authority
CN
China
Prior art keywords
embroidery
color
needle path
sub
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110743147.XA
Other languages
Chinese (zh)
Other versions
CN113373607A (en
Inventor
王成庆
王延樑
李彦伟
李海锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Necessary Industrial Technology Co ltd
Original Assignee
Zhuhai Necessary Industrial Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Necessary Industrial Technology Co ltd filed Critical Zhuhai Necessary Industrial Technology Co ltd
Priority to CN202110743147.XA priority Critical patent/CN113373607B/en
Publication of CN113373607A publication Critical patent/CN113373607A/en
Application granted granted Critical
Publication of CN113373607B publication Critical patent/CN113373607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05CEMBROIDERING; TUFTING
    • D05C5/00Embroidering machines with arrangements for automatic control of a series of individual steps
    • D05C5/02Embroidering machines with arrangements for automatic control of a series of individual steps by electrical or magnetic control devices
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05CEMBROIDERING; TUFTING
    • D05C11/00Devices for guiding, feeding, handling, or treating the threads in embroidering machines; Machine needles; Operating or control mechanisms therefor
    • D05C11/16Arrangements for repeating thread patterns or for changing threads

Landscapes

  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Sewing Machines And Sewing (AREA)

Abstract

The application relates to an embroidery needle path generation method, an embroidery needle path generation device and a storage medium, wherein the method comprises the following steps: acquiring a color-dependent map, wherein each color in the color-dependent map belongs to a color set stored in a color library, and the color in the color set is the color of embroidery threads; and determining the embroidery needle path adopted when the embroidery machine is used for embroidering the color map. According to the method provided by the embodiment of the application, the embroidery needle path is generated by the color map, so that the information of the embroidery needle path contains the color of the embroidery thread, and the color of an embroidery product generated when the embroidery machine performs embroidery can be reflected. In addition, excessive manual intervention is not needed in the process of the invention, which is beneficial to reducing the error of the generated embroidery needle path and improving the efficiency of generating the embroidery needle path.

Description

Embroidery needle path generation method and device and storage medium
Technical Field
The present disclosure relates to the field of embroidery technologies, and in particular, to a method and an apparatus for generating an embroidery stitch, and a storage medium.
Background
With the development of high-tech industry, embroidery equipment and processes such as special embroidery machines, woolen embroidery machines, multi-head multi-needle computer embroidery machines and the like are increasingly popularized and applied. In the related art, an embroidery needle path used when embroidery is performed is determined in many ways by manual setting. The problems of low efficiency, large error and the like exist in the manual arrangement of the embroidery needle path.
Disclosure of Invention
The application provides an embroidery needle path generation method, an embroidery needle path generation device and a storage medium, which are used for solving the problems of low efficiency, large error and the like existing in the prior art when an embroidery needle path is manually set.
In a first aspect, the present application provides an embroidery stitch generating method, including: acquiring a color-dependent map, wherein each color in the color-dependent map belongs to a color set stored in a color library, and the color in the color set is the color of embroidery threads; and determining the embroidery needle path adopted when the embroidery machine is used for embroidering the color map.
In an alternative embodiment of the present invention, the determining the embroidery stitch to be used when embroidering the color map by using the embroidery machine includes: regarding each sub-area in the color charting map, taking one point on the edge of the sub-area as a starting point of embroidery, taking one point on the other edge as an end point of embroidery, and taking a needle path between the starting point and the end point as a sub-needle path; taking the starting point as a middle point, taking the end point as a new starting point, and taking a point which is far from the middle point by the embroidery thread width as a new end point; taking the needle path between the new starting point and the new end point as another sub-needle path until each obtained sub-needle path is fully distributed in the sub-area; each sub-needle path is used as an embroidery needle path.
In an alternative embodiment of the present invention, after determining an embroidery stitch to be used when embroidering the color map using the embroidery machine, the method further includes: and processing the color matching map according to the embroidery needle path to obtain a processed image, wherein the processed image is used for generating an identifiable embroidery file of the embroidery machine.
In an alternative embodiment of the present invention, obtaining a color map comprises: acquiring an embroidery image; screening out colors with the difference value smaller than a color threshold value from the color set aiming at each color in the embroidery image; and replacing the corresponding color in the embroidery image with the screened color to obtain a color-dependent map.
In an alternative embodiment of the present invention, the determining the embroidery stitch to be used when embroidering the color map by using the embroidery machine includes: determining the physical size and the preset resolution of the customization area; multiplying the physical size by the preset resolution as the pixel size of the customization area; converting the color map into an intermediate image matching the pixel size of the custom region; and determining the embroidery needle path adopted when the intermediate image is embroidered by the embroidery machine.
In an alternative embodiment of the present invention, the processed image comprises an SVG image.
In a second aspect, the present application provides an embroidery stitch generating device, comprising: a reliable color map generation module configured to: acquiring a color-dependent map, wherein each color in the color-dependent map belongs to a color set stored in a color library, and the color in the color set is the color of embroidery threads; an embroidery needle path generation module configured to: and determining the embroidery needle path adopted when the embroidery machine is used for embroidering the color map.
In an optional embodiment of the present invention, the embroidery needle path generating module is configured to: regarding each sub-area in the color chart, taking one point on the edge of the sub-area as a starting point of embroidery, taking one point on the other edge as an end point of embroidery, and taking a needle path between the starting point and the end point as a sub-needle path; taking the starting point as a middle point, taking the end point as a new starting point, and taking a point which is spaced from the middle point by the embroidery thread width as a new end point; taking the needle path between the new starting point and the new end point as another sub-needle path until each obtained sub-needle path is fully distributed in the sub-area; the sub-needle paths are used as embroidery needle paths.
In an optional embodiment of the present invention, the apparatus further comprises a color map processing module configured to: and processing the color matching map according to the embroidery needle path to obtain a processed image, wherein the processed image is used for generating an identifiable embroidery file of the embroidery machine.
In an optional embodiment of the present invention, the color map generating module is configured to: acquiring an embroidery image; aiming at each color in the embroidery image, screening out embroidery threads of which the difference value with the color is smaller than a color threshold value from a color set; and replacing the corresponding color in the embroidery image with the color of the screened embroidery thread to obtain a color-dependent map.
In an optional embodiment of the present invention, the embroidery needle path generating module is configured to: determining the physical size and preset resolution of the customized area; multiplying the physical size by the preset resolution as the pixel size of the customization area; converting the reliable color map into an intermediate image matched with the pixel size of the customized area; and determining the embroidery needle path adopted when the intermediate image is embroidered by the embroidery machine.
In an alternative embodiment of the invention, the processed image comprises a SVG image.
In a third aspect, an embroidery stitch generating device applied in the C2M mode is provided, and the embroidery stitch generating device includes the apparatus of any one of the second aspect.
In a fourth aspect, there is provided a user client for use in the C2M mode, the user client comprising the apparatus of any one of the second aspects.
In a fifth aspect, there is provided an e-commerce platform background server applied in the C2M mode, the e-commerce platform server including the apparatus of any one of the second aspects.
In a sixth aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor configured to implement the steps of the embroidery stitch generating method according to any one of the embodiments of the first aspect when executing the program stored in the memory.
In a seventh aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the embroidery stitch generation method as defined in any one of the embodiments of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
according to the method provided by the embodiment of the application, the embroidery needle path is generated by the color chart, so that the information of the embroidery needle path comprises the colors of embroidery threads, and the colors of embroidery products generated when the embroidery machine performs embroidery can be reflected. In addition, excessive manual intervention is not needed in the process, so that the error of the generated embroidery needle path is reduced, and the efficiency of generating the embroidery needle path is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
Fig. 1 is a schematic flow chart of an embroidery needle path generating method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an apparatus corresponding to the process of FIG. 1;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to meet the requirements of users on customized embroidery products in various scenes such as production, life and the like, after the users put forward personalized requirements, the effects which can be achieved by customization are usually predicted, and abstract products based on the personalized requirements of the users are virtualized for the users to view and modify.
Before devising the embroidery stitch generation process of the present invention, a part of the basic concepts related to the present invention will be described.
In the invention, the color chart corresponds to the image which can be realized by embroidery threads provided by a merchant and is expected to be customized on a customized product by a user. The invention does not specifically limit the image format of the color chart, for example, the color chart can have image formats mainly used for showing the visual effect of the image, such as jpg, png, and the like; in addition, the color chart can also be an image format which is output by drawing software and has both a display visual effect and editable attributes, such as PSD; further, the chargeback may also be a piece of code for generating certain visual effects.
In this case, the image format of the color chart and/or the image format of the base material may be any one of the processed image formats applicable to the present invention.
Now, a description will be given of an embroidery needle path generating process in the present invention, where it is to be noted that the embodiment of the present invention is applicable to a case where an embroidery needle path is determined for a customized embroidery image to be customized in a commodity customization interface, for example, when the embodiment is applied to a C2M mode, in a commodity customization stage in a ordering process for a customized commodity, a corresponding embroidery needle path is determined for a customized image uploaded by a user, so as to generate a customized image with an embroidery effect for the user to confirm, and further facilitate a subsequent embroidery by an embroidery machine of a corresponding merchant. The device is a device capable of determining an embroidery needle path adopted when the embroidery machine is used for embroidering the color drawing according to the color drawing of the customized image in the commodity customization scene, so that the customized image with the embroidery effect is generated to be confirmed by a user, the embroidery machine of a corresponding merchant is used for embroidering according to the embroidery needle path, and the return rate is reduced.
In a specific embodiment, the device can be an APP or an applet of an e-commerce platform capable of realizing commodity embroidery customization and ordering, and can also be other e-commerce platform user clients capable of realizing commodity embroidery customization and ordering.
Here, the terminal may be any electronic product that can perform human-computer interaction with a user through a keyboard, a touch pad, a touch screen, a remote controller, voice interaction, or a handwriting device, for example, a PC, a mobile phone, a smart phone, a PDA, a wearable device, a palm PC PPC, a wearable device, a tablet computer, a smart television, and the like, and may have an e-commerce platform user client installed thereon, which can implement customization and ordering of merchandise embroidery.
It will be understood by those skilled in the art that the above-described terminal is merely exemplary and that other existing or future existing terminals, which may be suitable for use with the present invention, are also included within the scope of the present invention and are hereby incorporated by reference. Here, the terminal includes an electronic device capable of automatically performing numerical calculation and information processing according to instructions set or stored in advance, and hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a programmable gate array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
As shown in fig. 1, the embroidery needle path generating process in the present invention may include the following steps:
s100: an embroidery image and a color set stored in a color library are obtained.
In the process of the invention, the color chart can be generated by a user through a user client of the e-commerce platform. The color library is used for storing the color set, and the color library can be loaded in the e-commerce platform user client in advance. The color set comprises a plurality of colors, and the colors in the color set are colors of various embroidery threads which can be adopted by a merchant in the process of performing embroidery to generate an embroidery product.
It should be noted that the e-commerce platform user client may be installed on a terminal, and a user may implement interaction with the e-commerce platform user client through the terminal.
S102: and determining the embroidery needle path adopted when the color image is embroidered by the embroidery machine.
In the present invention, an embroidery machine is a device for forming an image on an embroidery product.
In an alternative embodiment of the present disclosure, the pattern in the color map may be composed of a plurality of sub-regions, wherein the colors of two adjacent sub-regions are different. That is, the sub-regions in the present invention are used to distinguish the locations of different colors in the color map. Regarding each sub-area in the color chart, taking one point on the edge of the sub-area as a starting point of embroidery, taking one point on the other edge as an end point of embroidery, and taking a needle path between the starting point and the end point as a sub-needle path. And taking the starting point as a middle point, the end point as a new starting point, and taking a point which is spaced from the middle point by the embroidery thread width as a new end point. And taking the needle path between the new starting point and the new end point as another sub-needle path until the obtained sub-needle paths are fully distributed in the sub-areas. Then, each sub-needle path is set as an embroidery needle path.
In the present invention, the embroidery stitch is a path taken when the embroidery machine embroiders the closer color map in the area corresponding to the customized area. In the present invention, the embroidery stitch may be characterized by information of the embroidery stitch. Wherein, the information of the embroidery needle path may include at least one of the following: the embroidery product is corresponding to the color of the embroidery thread adopted under the condition of the pattern depending on the color chart, the pixel width of the embroidery needle path and the position of the embroidery needle path on the embroidery product.
Illustratively, the embroidery path obtained by the process in this specification may be represented by: < path d ═ M0, 0-45,290, -5-45,230, -11-45,170, -16-45,120, -21-45, 60, -27-45, 00, -32-45, -60, -37-45, -120, -43-45, -170, -48-45, -230, -53-45, -290, -58-45
… … (ignoring part of the connection points here)
-47,-405 14,-391 -48,-411 17,-394 -48,-416 20,-396 -48,-422 23,-398 -48,-427 26,-400 -48,-433 29,-403 -49,-438"fill="none"stroke="#0b2d4f"stroke-width="3"/>
Therefore, the embroidery stitch is generated by the process of the invention according to the color chart, and the information of the embroidery stitch contains the color of the embroidery thread, so that the color of the embroidery product generated when the embroidery machine performs the embroidery can be embodied. In addition, excessive manual intervention is not needed in the process of the invention, which is beneficial to reducing the error of the generated embroidery needle path and improving the efficiency of generating the embroidery needle path.
In an optional embodiment of the present invention, after obtaining the embroidery stitch, the present invention may further process the color map according to the embroidery stitch to obtain a processed image, where the processed image is used to generate an identifiable embroidery file of the embroidery machine, and the processed image may include an SVG image. SVG is an image file format, which is called Scalable Vector Graphics in english, and means Scalable Vector Graphics. It is an open standard vector graphics language developed by World Wide Web Consortium (W3C) alliance based on XML (extensible Markup language). The user can directly draw the image with the code, open the SVG image with any word processing tool, make the image have interactive function by changing part of the code, and can insert into HTML at any time to watch through a browser.
In the present invention, the color map can embody the color of the image on the embroidery product obtained under the condition of the color of the embroidery thread provided at the merchant end. The process of generating the reliable color map may be acquiring an embroidery image. And screening out colors with the difference value smaller than a color threshold value from the color set aiming at each color in the embroidery image. And replacing the corresponding color in the embroidery image with the screened color to obtain a color-dependent map. It can be seen that the colors of some sub-areas in the reliable color map in the present description may be different from the colors of the corresponding sub-areas in the embroidery image, but the difference is not too large. That is, the color chart in the present invention may not necessarily be exactly the same as the embroidery image, but the color chart is an image that is closer to the embroidery image at least in color when embroidery is performed under the embroidery condition provided by the embroidery machine (the embroidery condition may be determined to some extent by the color of the embroidery thread).
In an alternative embodiment, the user may have his own image as an embroidery image and upload it through the e-commerce platform user client. For another example, in another optional embodiment, a terminal where the e-commerce platform user client is located may store a plurality of alternative images in advance, and the user may select the uploaded image to be customized for embroidery in the terminal through the e-commerce platform user client.
In the related art, a customized embroidery product may include a plurality of faces to be embroidered, the size of a customized area of different faces may be different, and the size of the customized area may also be different from the size of an embroidery image provided by a user (buyer), so that a white border may exist on the embroidery product obtained by embroidery at a position corresponding to the embroidery image.
In an alternative embodiment of the invention, to avoid white edges on the customized product, first, the physical size and the predetermined resolution of the customized area are determined. Then, taking the product of the physical size and the preset resolution as the pixel size of the customization area; converting the reliable color map into an intermediate image matched with the pixel size of the customized area. And determining the embroidery needle path adopted when the intermediate image is embroidered by the embroidery machine. When the customization area is customized for embroidery, the customization area may also be understood as an embroidery area. In the process of three-dimensional modeling of the product, the user can customize the product in the customization area, such as customizing images, characters and the like in the customization area.
In addition, the process in the present invention may also determine the pixel size of the customized region in other manners, which is not described herein again.
In an actual scene, there may be a case where the pixel sizes of the reliable color charts employed each time the embroidery effect chart generation process is executed are different, and it is necessary to determine the pixel sizes of the reliable color charts after the reliable color charts are acquired. In an alternative embodiment of the present invention, the attribute information of the color map, which includes the pixel size, may be read by image software.
Alternatively, the transformation may be performed by establishing a first pixel coordinate system (e.g., a euclidean coordinate system) within the custom region, and determining a first coordinate position of a first designated pixel (any pixel in the custom region that is not on the origin of coordinates) in the first pixel coordinate system. And determining the ratio of the distances of the first designated pixel from at least three edges of the customized area according to the first coordinate position as a designated ratio.
Then, a second pixel coordinate system is established in the color-leaning graph, and the point, with the same ratio of the distances from at least three sides of the color-leaning graph and the specified ratio, in the color-leaning graph is determined as a second specified pixel. A second coordinate position of the second designated pixel in the second pixel coordinate system is determined. And establishing a coordinate transformation matrix according to the proportional relation between the first coordinate position and the second coordinate position.
And then, for each pixel in the color-dependent map, multiplying the coordinate of the pixel in the second pixel coordinate system by the coordinate conversion matrix to obtain the coordinate of the pixel in the first pixel coordinate system. And adding the pixel to the coordinate of the pixel in the first pixel coordinate system to obtain an intermediate image. The intermediate image has the same pixel size as the custom area.
It should be noted that there may be other methods for implementing the conversion, and the present invention is not limited to this.
The processed image can be used for meeting the production requirements of merchants, namely after the merchants obtain the processed image, the processed image can be input into specified software to obtain the recognizable embroidery files of the embroidery machine. The embroidery needle path may be a coordinate position, a line width ("stroke-width", a distance between lines embroidered by adjacent two needles), and a color ("stroke") of an embroidery thread, which are used when the needle performs embroidery in the customized area. For example, when the embroidery machine is an embroidery machine, the embroidery needle path is data of a plurality of coordinate positions, and the coordinate position represented in the embroidery needle path is the position where the embroidery needle falls.
In addition, the processed image can be used for displaying embroidery effect to a user, and specifically, the color map can be rendered according to the embroidery path to obtain an embroidery effect map. The rendering mode can be that an embroidery path is added to the color-dependent map to obtain an embroidery effect map. The embroidery path is shown in the embroidery effect picture, so that the user can intuitively know the obtained effect of the embroidery needle path in the embroidery product from the embroidery effect picture so as to be convenient for making the next decision.
The embroidery needle path generation method is applicable to a C2M mode and a C2M (Customer-to-factory) mode, namely a mode that a user directly connects a manufacturer, namely a Customer directly to a factory, and emphasizes the connection between the manufacturer and the Customer. In the C2M mode, the customer places an order directly through the platform, and the factory receives the customer's order and then designs, purchases, produces, and ships as required. The C2M model is also called an economic model, short-circuits all intermediate processes such as stock, logistics, total sales, distribution and the like which can be short-circuited, cuts down all unnecessary cost including the stock, allows users to purchase ultra-high quality products at ultra-low price, and allows the manufacturing industry to directly face the user's requirements.
Based on the same idea, the present invention further provides an embroidery needle path generating device, as shown in fig. 2, the embroidery needle path generating device includes one or more of the following modules:
a reliable color map generation module 300 configured to: acquiring a color-dependent map, wherein each color in the color-dependent map belongs to a color set stored in a color library, and the color in the color set is the color of embroidery threads;
an embroidery needle path generation module 302 configured to: and determining the embroidery needle path adopted when the color image is embroidered by the embroidery machine.
In an optional embodiment of the present invention, the embroidery needle path generating module 302 is configured to:
regarding each sub-area in the color chart, taking one point on the edge of the sub-area as a starting point of embroidery, taking one point on the other edge as an end point of embroidery, and taking a needle path between the starting point and the end point as a sub-needle path;
taking the starting point as a middle point, taking the end point as a new starting point, and taking a point which is spaced from the middle point by the embroidery thread width as a new end point;
taking the needle path between the new starting point and the new end point as another sub-needle path until each obtained sub-needle path is fully distributed in the sub-area;
each sub-needle path is used as an embroidery needle path.
In an optional embodiment of the present invention, the apparatus further includes a color chart processing module configured to:
and processing the color matching map according to the embroidery needle path to obtain a processed image, wherein the processed image is used for generating an identifiable embroidery file of the embroidery machine.
In an optional embodiment of the present invention, the color map generating module 300 is configured to:
acquiring an embroidery image;
aiming at each color in the embroidery image, screening out embroidery threads of which the difference value with the color is smaller than a color threshold value from a color set;
and replacing the corresponding color in the embroidery image with the color of the screened embroidery thread to obtain a color-dependent map.
In an optional embodiment of the present invention, the embroidery needle path generating module 302 is configured to:
determining the physical size and preset resolution of the customized area;
multiplying the physical size by the preset resolution as the pixel size of the customization area; converting the reliable color map into an intermediate image matched with the pixel size of the customized area;
and determining the embroidery needle path adopted when the intermediate image is embroidered by the embroidery machine.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
When the embodiments of the present application are specifically implemented, reference may be made to the above embodiments, and corresponding technical effects are achieved.
As shown in fig. 3, the present embodiment provides an air conditioner control device, which includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, the memory 113 complete mutual communication through the communication bus 114,
a memory 113 for storing a computer program;
in an embodiment of the present application, when the processor 111 is configured to execute the program stored in the memory 113, the method for controlling embroidery stitch generation according to any one of the foregoing method embodiments is implemented, including:
the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the embroidery needle path generating method provided in any one of the foregoing method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely illustrative of particular embodiments of the invention that enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (15)

1. An embroidery stitch generation method, characterized by comprising:
acquiring a color-dependent map, wherein each color in the color-dependent map belongs to a color set stored in a color library, and the color in the color set is the color of embroidery threads;
determining an embroidery needle path adopted when the color map is embroidered by the embroidery machine;
the embroidery stitch adopted when the embroidery machine is used for embroidering the color map comprises the following steps: regarding each sub-area in the color chart, taking a point on the edge of the sub-area as a starting point of embroidery, taking a point on the other edge as an ending point of embroidery, and taking a needle path between the starting point and the ending point as a sub-needle path, wherein the graph in the color chart is composed of a plurality of sub-areas, the colors of two adjacent sub-areas are different, and the sub-areas are used for distinguishing the positions of different colors in the color chart; taking the starting point as a middle point, taking the end point as a new starting point, and taking a point which is spaced from the middle point by the embroidery thread width as a new end point; taking the needle path between the new starting point and the new end point as another sub-needle path until each obtained sub-needle path is fully distributed in the sub-area; the sub-needle paths are used as embroidery needle paths.
2. The method of claim 1, wherein after determining an embroidery stitch to be used when embroidering the reliable color map with an embroidery machine, the method further comprises:
and processing the color matching map according to the embroidery needle path to obtain a processed image, wherein the processed image is used for generating an identifiable embroidery file of the embroidery machine.
3. The method of claim 1, wherein obtaining a color map comprises:
acquiring an embroidery image;
for each color in the embroidery image, screening out a color with a difference value smaller than a color threshold value from the color set;
and replacing the corresponding color in the embroidery image with the screened color to obtain a color-dependent map.
4. The method of claim 1, wherein determining an embroidery stitch to be used when embroidering the color map with an embroidery machine comprises:
determining the physical size and preset resolution of the customized area;
multiplying the physical size by the preset resolution as the pixel size of the customization area; converting the color map into an intermediate image matching the pixel size of the custom region;
and determining the embroidery needle path adopted when the intermediate image is embroidered by the embroidery machine.
5. The method of claim 2, wherein the processed image comprises an SVG image.
6. An embroidery stitch generating apparatus, comprising:
a color chart generation module configured to: acquiring a color-dependent map, wherein each color in the color-dependent map belongs to a color set stored in a color library, and the color in the color set is the color of embroidery threads;
an embroidery needle path generation module configured to: determining an embroidery needle path adopted when the color image is embroidered by the embroidery machine;
the embroidery needle path generation module is further configured to: regarding each sub-area in the color chart, taking a point on the edge of the sub-area as a starting point of embroidery, taking a point on the other edge as an ending point of embroidery, and taking a needle path between the starting point and the ending point as a sub-needle path, wherein the graph in the color chart is composed of a plurality of sub-areas, the colors of two adjacent sub-areas are different, and the sub-areas are used for distinguishing the positions of different colors in the color chart; taking the starting point as a middle point, taking the end point as a new starting point, and taking a point which is spaced from the middle point by the embroidery thread width as a new end point; taking the needle path between the new starting point and the new end point as another sub-needle path until each obtained sub-needle path is fully distributed in the sub-area; the sub-needle paths are used as embroidery needle paths.
7. The apparatus of claim 6, further comprising a reliable color map processing module configured to:
and processing the color matching map according to the embroidery needle path to obtain a processed image, wherein the processed image is used for generating an identifiable embroidery file of the embroidery machine.
8. The apparatus of claim 6, wherein the chartlet generation module is configured to:
acquiring an embroidery image;
aiming at each color in the embroidery image, screening out embroidery threads of which the difference value with the color is smaller than a color threshold value from a color set;
and replacing the corresponding color in the embroidery image with the color of the screened embroidery thread to obtain a color-dependent map.
9. The apparatus of claim 6, wherein the embroidery stitch generation module is configured to:
determining the physical size and the preset resolution of the customization area;
multiplying the physical size by the preset resolution as the pixel size of the customization area; converting the color map into an intermediate image matching the pixel size of the custom region;
and determining an embroidery stitch used when the intermediate image is embroidered by the embroidery machine.
10. The apparatus of claim 7, wherein the processed image comprises an SVG image.
11. An embroidery stitch generation device applied to a C2M mode, characterized in that the embroidery stitch generation device comprises the apparatus according to any one of claims 6 to 10.
12. A user client for use in C2M mode, wherein the user client comprises the apparatus of any one of claims 6-10.
13. An e-commerce platform background server for use in C2M mode, wherein the e-commerce platform server comprises the apparatus of any one of claims 6 to 10.
14. A computer-readable storage medium storing one or more programs which are executable by one or more processors to implement the embroidery needle path generating method of any one of claims 1 to 5.
15. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
CN202110743147.XA 2021-06-30 2021-06-30 Embroidery needle path generation method and device and storage medium Active CN113373607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110743147.XA CN113373607B (en) 2021-06-30 2021-06-30 Embroidery needle path generation method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110743147.XA CN113373607B (en) 2021-06-30 2021-06-30 Embroidery needle path generation method and device and storage medium

Publications (2)

Publication Number Publication Date
CN113373607A CN113373607A (en) 2021-09-10
CN113373607B true CN113373607B (en) 2022-09-13

Family

ID=77580472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110743147.XA Active CN113373607B (en) 2021-06-30 2021-06-30 Embroidery needle path generation method and device and storage medium

Country Status (1)

Country Link
CN (1) CN113373607B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113718436B (en) * 2021-09-15 2022-07-19 诸暨玛雅电器机械有限公司 Embroidery machine control method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0790060B2 (en) * 1991-05-15 1995-10-04 ブラザー工業株式会社 Sewing machine embroidery data creation device
JPH06233882A (en) * 1993-02-08 1994-08-23 Juki Corp Embroidery design reader
US7587257B2 (en) * 2004-02-18 2009-09-08 Brother Kogyo Kabushiki Kaisha Image editing device and print/embroidery data creating device
CN101859335B (en) * 2010-05-18 2011-09-07 南京大学 Computer-aided crewel embroidery production method
CN107012601B (en) * 2017-03-15 2020-02-14 苏州大学 High-resolution machine embroidery method

Also Published As

Publication number Publication date
CN113373607A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
US10606533B2 (en) Editing an image on a medium using a template including attribute information of an object in the image
CN109614424B (en) Page layout generation method, device, computing equipment and medium
CN109408764B (en) Page area dividing method, device, computing equipment and medium
US20070067179A1 (en) Framed art visualization software
US10453494B2 (en) Facilitating synchronization of motion imagery and audio
CN112016023B (en) Service processing method, device, terminal and storage medium
CN113373607B (en) Embroidery needle path generation method and device and storage medium
CN111583379A (en) Rendering method and device of virtual model, storage medium and electronic equipment
CN114997105A (en) Design template, material generation method, computing device and storage medium
US20180300770A1 (en) In-situ previewing of customizable communications
KR102247877B1 (en) Image crop method and apparatus for generating online shopping mall banner design
CN114547519B (en) Page editing method and device, electronic equipment and readable storage medium
CN115170695A (en) Method and device for generating chart picture, electronic equipment and storage medium
US11430166B1 (en) Facilitating generation of number-bullet objects
CN114254241A (en) Electronic certificate template manufacturing system and method
JP6646006B2 (en) Information presentation apparatus, information presentation method, and program
KR20200112430A (en) Online shopping mall banner design auto-generating method and apparatus
CN113362443B (en) Embroidery effect picture generation method and device, storage medium and electronic equipment
US20180253211A1 (en) Dynamic layout design
CN111782309B (en) Method and device for displaying information and computer readable storage medium
CN113393542B (en) Embroidery effect graph generation method and device, electronic equipment and storage medium
CN112748917A (en) Chart display method and device
KR102608502B1 (en) Method for Providing Mock-up Image Based on Augumented Reality and Service Providing Server Used Therefor
CN113379856B (en) Embroidery effect graph generation method and device and storage medium
US20160328770A1 (en) Personalization of products for 3d printing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant