CN113393542A - Embroidery effect graph generation method and device, electronic equipment and storage medium - Google Patents

Embroidery effect graph generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113393542A
CN113393542A CN202110742791.5A CN202110742791A CN113393542A CN 113393542 A CN113393542 A CN 113393542A CN 202110742791 A CN202110742791 A CN 202110742791A CN 113393542 A CN113393542 A CN 113393542A
Authority
CN
China
Prior art keywords
embroidery
color
map
intermediate image
pixel size
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.)
Granted
Application number
CN202110742791.5A
Other languages
Chinese (zh)
Other versions
CN113393542B (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 CN202110742791.5A priority Critical patent/CN113393542B/en
Publication of CN113393542A publication Critical patent/CN113393542A/en
Application granted granted Critical
Publication of CN113393542B publication Critical patent/CN113393542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Sewing Machines And Sewing (AREA)

Abstract

The application relates to an embroidery effect picture generation method, an embroidery effect picture generation device, electronic equipment and a storage medium, wherein the pixel size of a color map and the pixel size of a customized area are obtained, and the color map is used for representing embroidery patterns on an embroidery product; converting the reliable color map into an intermediate image matched with the pixel size of the customized area; generating an embroidery needle path by using the intermediate image; and processing the intermediate image according to the embroidery needle path to obtain an embroidery effect picture of the embroidery product. When the information of the embroidery needle path is determined, the involved color-leaning chart is converted into the customized area, so that the pixel size of the color-leaning chart is matched with the pixel size of the customized area, and the embroidery effect graph obtained based on the intermediate image can embody the embroidery needle path effect matched with the color-leaning chart. The problem that the size of an embroidery image provided by a user is not matched with a customization area in an embroidery product customization scene in the prior art is solved.

Description

Embroidery effect graph generation method and device, electronic equipment 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 effect map, an electronic device, 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. The customized embroidery product may include a plurality of faces that are available for embroidery, the size of the customized area of different faces may be different, and the size of the customized area may also be different from the size of the embroidery image provided by the user (buyer), so that a white border may exist on the embroidery product obtained by embroidery at a position corresponding to the embroidery image. And (4) obtaining a sample by a merchant through printing and printing based on the image with the white edge, and mailing the sample to the user. The user may not be satisfied with the effect of the embroidery product displayed on the sample after receiving the sample with the white border.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The application provides an embroidery effect picture generation method and device, electronic equipment and a storage medium, which are used for solving the problem that in the prior art, in an embroidery product customization scene, the size of an embroidery image provided by a user is not matched with a customization area.
In a first aspect, the present application provides an embroidery effect map generating method, including: acquiring the pixel size of a color depending map and the pixel size of a customized area, wherein the color depending map is used for representing patterns embroidered on an embroidery product; converting the reliable color map into an intermediate image matched with the pixel size of the customized area; generating an embroidery needle path by using the intermediate image; and processing the intermediate image according to the embroidery needle path to obtain an embroidery effect image of the embroidery product.
In an alternative embodiment of the present application, obtaining the pixel size of the customized region includes: determining the physical size and preset resolution of the customized area; and multiplying the physical size by a preset resolution as the pixel size of the customized area.
In an alternative embodiment of the present application, generating an embroidery stitch using the intermediate image includes: sending the intermediate image to an embroidery machine, wherein an embroidery stitch is generated by the embroidery machine according to the intermediate image, and the embroidery machine is used for embroidering a pattern corresponding to the color map on the embroidery product; or identifying a first parameter of each subarea in the color chart, wherein the colors of any two adjacent subareas are different; screening out second parameters of which the difference value with the first parameters is not larger than a parameter threshold value from preset second parameters of each standby path for each sub-region; summarizing the standby paths corresponding to the screened second parameters to obtain an embroidery needle path; wherein the first parameter comprises at least one of: the outline of the sub-region, the pixel size of the sub-region, and the position of the sub-region in the reliable map.
In an optional embodiment of the present application, processing the intermediate image according to an embroidery stitch to obtain an embroidery effect map of an embroidery product includes: and adding the embroidery needle path after the imaging processing to the intermediate image to obtain an embroidery effect picture.
In an optional embodiment of the present application, after the processing the intermediate image according to the embroidery stitch to obtain the embroidery effect map of the embroidery product, the method further includes: and sending the embroidery effect picture to a user client, wherein the user client is used for displaying the embroidery effect picture to a user.
In an optional embodiment of the present application, before obtaining the pixel size of the color map, the method further includes: acquiring an embroidery image; screening out embroidery threads with a color difference value smaller than a color threshold value from the embroidery threads aiming at each color in the embroidery image; and replacing the corresponding color in the embroidery image by the color of the screened embroidery thread to obtain a color-dependent map.
In a second aspect, the present application provides an embroidery effect map generating apparatus, comprising:
an acquisition module configured to: acquiring the pixel size of a color depending map and the pixel size of a customized area, wherein the color depending map is used for representing patterns embroidered on an embroidery product;
an intermediate image determination module configured to: converting the reliable color map into an intermediate image matched with the pixel size of the customized area;
an embroidery needle path generation module configured to: generating an embroidery needle path by using the intermediate image;
an embroidery effect map generation module configured to: and processing the intermediate image according to the embroidery needle path to obtain an embroidery effect image of the embroidery product.
In an optional embodiment of the present application, the obtaining module is specifically configured to: determining the physical size and preset resolution of the customized area;
and multiplying the physical size by a preset resolution as the pixel size of the customized area.
In an optional embodiment of the present application, the embroidery needle path generating module is specifically configured to:
sending the intermediate image to an embroidery machine, wherein an embroidery stitch is generated by the embroidery machine according to the intermediate image, and the embroidery machine is used for embroidering a pattern corresponding to the color map on the embroidery product; alternatively, the first and second electrodes may be,
identifying a first parameter of each subregion in the color dependence map, wherein the color of any two adjacent subregions is different; screening out second parameters of which the difference value with the first parameters is not larger than a parameter threshold value from preset second parameters of each standby path for each sub-region; summarizing the standby paths corresponding to the screened second parameters to obtain an embroidery needle path; wherein the first parameter comprises at least one of: the outline of the sub-region, the pixel size of the sub-region, and the position of the sub-region in the reliable map.
In an optional embodiment of the present application, the embroidery effect map generating module is specifically configured to:
and adding the embroidery needle path after the imaging processing to the intermediate image to obtain an embroidery effect picture.
In an optional embodiment of the present application, the apparatus further comprises: a transmitting module, wherein the transmitting module is configured to:
and sending the embroidery effect picture to a user client, wherein the user client is used for displaying the embroidery effect picture to a user.
In an optional embodiment of the present application, the apparatus further comprises: a color map generation module, wherein the color map generation module is configured to:
acquiring an embroidery image;
screening out embroidery threads with a color difference value smaller than a color threshold value from the embroidery threads aiming at each color in the embroidery image;
and replacing the corresponding color in the embroidery image by the color of the screened embroidery thread to obtain a color-dependent map.
In a third aspect, there is provided an embroidery effect map generating device applied in the C2M mode, the embroidery effect map generating device comprising the apparatus of any one of the second aspects.
In a fourth aspect, there is provided a user client for use in the C2M mode, the user client comprising the apparatus of any 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 for implementing the steps of the embroidery effect map generation 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, realizes the steps of the embroidery effect map generation method according to 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, when the embroidery needle path information is determined, the related color-dependent map is converted into the customized area, so that the pixel size of the color-dependent map is matched with the pixel size of the customized area, and the embroidery needle path effect matched with the color-dependent map can be embodied on the embroidery effect map obtained based on the intermediate image. The problem that the size of an embroidery image provided by a user is not matched with a customization area in an embroidery product customization scene in the prior art is solved.
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 of the present invention or the technical solutions in the prior art, 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 that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a scene schematic diagram related to an embroidery effect diagram generating method for an image according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an embroidery effect graph obtained by the method for generating an embroidery effect graph of an image according to the embodiment of the application;
fig. 3 is a flowchart illustrating a method for generating an embroidery effect map of an image according to an embodiment of the present application;
FIG. 4 is a schematic view of an apparatus corresponding to the process of FIG. 3;
fig. 5 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.
Before the embroidery effect diagram generation process of the present invention is invented, an application scenario and a part of basic concepts related to the present invention will be described.
Illustratively, the scene involved in the embroidery effect map generation method of the image in the present invention may be as shown in fig. 1. In the scenario shown in fig. 1, a customization platform (an execution subject of the embroidery effect map generation method in the present application) may be communicatively connected with a plurality of user clients (e.g., user client 1 to user client m in fig. 1).
In the present invention, when the customized area is customized for embroidery, the customized area may also be understood as an embroidery area. In the three-dimensional modeling process of the product, the customized area is set, and a user can customize the product in the customized area, such as customizing images, characters and the like in the customized area, which can be shown in fig. 2.
When a user uploads customized content (such as an image) in the customization area, if the image is too large, the user can drag the image by himself to determine which part of the content in the image is displayed in the customization area.
In an optional embodiment of the present invention, the color map may be obtained by processing an image uploaded by the user client, or may be obtained by processing an image provided by the user from the customization platform through the user client.
Now, the process of generating the embroidery effect map in the present invention is described, as shown in fig. 3, the process of generating the embroidery effect map in the present invention may include the following steps:
s300: the pixel size of the reliable color image and the pixel size of the customized area are obtained.
In an alternative embodiment of the present invention, the process of determining the pixel size of the customization region may be: determining a physical size of the customization region; the physical size of the custom region is multiplied by the resolution (762 DPI as shown in fig. 2), and the result is taken as the pixel size of the custom region (3000 px × 3000px as shown in fig. 2).
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.
S302: the reliable color map is converted into an intermediate image that matches the pixel size of the custom area.
In the process of the present invention, in order to obtain an embroidery stitch which is matched with an actual image embroidery condition and can guide an image embroidery process, an image which is matched with the pixel size of a customized area and can be used in the image embroidery process needs to be obtained. By the mapping based on the pixel size in this step, an image, i.e., an intermediate image, can be obtained, as shown in fig. 3. In an alternative embodiment of the present application, the transformation may be accomplished by mapping the reliable color map to the custom area.
In an alternative embodiment of the present invention, the process of implementing the conversion may be: a first pixel coordinate system (e.g., Euclidean coordinate system) is established in the customized region, and a first coordinate position of a first designated pixel (any pixel on a non-coordinate origin in the customized region) in the first pixel coordinate system in the customized region is determined. 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.
In order to avoid the deformation of the intermediate image compared with the pre-conversion color-dependent map caused by the conversion process, in an optional embodiment of the present invention, after the color-dependent map is obtained, the color-dependent map may be clipped, so that the aspect ratio of the color-dependent map is the same as the aspect ratio of the customized region.
The invention is exemplarily illustrated by taking the case that the customized region and the color map are both rectangular, and in other alternative embodiments, the customized region and the color map may also be star-shaped, circular, irregular, and the like.
S304: and generating an embroidery needle path by using the intermediate image.
In the present invention, the embroidery stitch is a path taken by the embroidery machine when embroidering a color map in an area corresponding to the customized area. In the present invention, the embroidery stitch can be characterized by information of the embroidery stitch. Wherein, the information of the embroidery needle path may include at least one of the following: embroidering the color of the embroidery thread, the pixel width of the embroidery needle path and the position of the embroidery needle path on the embroidery product, wherein the color of the embroidery thread is adopted under the condition of corresponding to the pattern of the color chart.
The embroidery machine of the invention can comprise at least one needle head, and the needle heads can correspond to embroidery threads with different colors one by one.
S306: and processing the intermediate image according to the embroidery needle path to obtain an embroidery effect image of the embroidery product.
The embroidery effect picture in the invention is the picture combined with the embroidery needle path. Various information of the embroidery stitch can be embodied in the embroidery effect map. The resulting embroidery effect map may be as shown in fig. 2.
As can be seen from the foregoing, the information on the embroidery needle path in the present invention is obtained based on the intermediate image, and since the pixel size of the intermediate image is the same as the pixel size of the customized area, and the pixel size of the customized area is obtained according to the physical size of the customized area, the information on the embroidery needle path obtained through the process of the present invention can embody the physical size characteristics matching the customized area.
Because the embroidery stitch information obtained by the process of the invention can meet the requirements of the buyer and the merchant, the obtained embroidery effect graph can be sent to the user client through the step.
In a real scene, when the embroidery machine performs image embroidery, the characteristics (e.g., color) of the embroidered pattern may be affected by the color of the embroidery thread provided by the merchant. Taking the aforementioned example that the embroidery machine is an embroidery machine as a continuation, if the first color 1 and the first color 2 are not included in the colors of the embroidery thread provided by the merchant, some sub-areas in the embroidery image provided by the user are filled with the first color 1 or the first color 2. The embroidery machine cannot embroider the sub-area filled with the first color 1 or the first color 2.
In the present invention, the customized region may include several (one or more) sub-regions, and any two adjacent sub-regions have different colors. Similarly, the color map obtained based on the embroidery image also includes a plurality of sub-regions, each sub-region in the color map may correspond to a sub-region of the embroidery image one by one, the color map shown in fig. 2 includes 8 sub-regions, the color map includes two colors (i.e., a first color 1 and a first color 2), and the colors of two adjacent sub-regions are different (i.e., the first color 1 and the first color 2 are alternately arranged in the 8 sub-regions according to the arrangement order of the sub-regions).
The method aims to solve the problem that a user cannot know the difference before acquiring an embroidery product due to the difference between the colors of embroidery threads provided by a merchant and partial colors in a color matching map. In an alternative embodiment of the present invention, the customization platform may first acquire an embroidery image. For each color in the embroidery image, the merchant provides each embroidery thread, and selects the embroidery thread with the difference value with the color smaller than the color threshold value. And replacing the corresponding color in the embroidery image by the color of the screened embroidery thread to obtain a color-dependent map.
Wherein, the colors of the embroidery threads can be stored in a color library in advance, and the colors can be characterized by color values (e.g., RGB color values). The customization platform then screens out the color library for a color that corresponds to each color of the embroidery image.
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 identical to 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 merchant (the embroidery condition may be determined to some extent by the color of the embroidery thread).
The embroidery effect diagram obtained based on the color-dependent diagram and used for being sent to the user client side can at least reflect the embroidery conditions provided by the merchant from the color scheme, so that the user can know the influence of the embroidery conditions on the embroidery product through the embroidery effect diagram, and the user can make a next decision.
In addition, the embroidery needle path information in the invention can also comprise the width of the needle path generated when the needle head performs embroidery.
It can be understood that, when the embroidery effect map is displayed at the user client, the visual experience brought to the user by the widths of the different embroidery needle paths is different. The width of the embroidery needle path is too small, which causes the embroidery needle path in the embroidery effect picture to be not clear enough to a certain extent. The width of the embroidery needle path can be represented by the pixel width of the embroidery needle path.
In order to avoid the phenomenon that the embroidery stitch is not clear enough, in an optional embodiment of the present invention, the customization platform identifies the pixel width of the embroidery stitch shown in the embroidery effect graph, and increases the pixel size of the customization area if the pixel width of the embroidery stitch is smaller than a preset width threshold (specifically, the sum of the resolution and a preset adjustment step size may be used as a new pixel density). And then, according to the customized area with the increased pixel size, obtaining the embroidery effect graph again until the pixel width of the embroidery needle path shown in the obtained embroidery effect graph is not less than a preset width threshold value. And then, sending the embroidery effect graph with the pixel width of the embroidery stitch not less than the preset width threshold to the user client.
It can be seen that in this embodiment, a clearer embroidery effect map can be provided for the user by adjusting the pixel size of the customized area.
In an alternative embodiment of the present disclosure, the process of determining the information of the embroidery stitch may be: sending the intermediate image to an embroidery machine, so that appointed software installed in the embroidery machine generates an embroidery needle path according to the intermediate image; and acquiring the embroidery needle path information returned by the embroidery machine. When the embroidery machine is an embroidery machine, the designated software may be embroidery machine printing software.
In another alternative embodiment of the present invention, the customized platform of the present invention comprises a database for storing the preset backup paths. The alternate path may be an embroidery stitch that the embroidery machine may provide while performing embroidery. For example, when the embroidery machine is an embroidery machine, several kinds of standby paths are preset in a control system of the embroidery machine, and when the embroidery machine actually performs embroidery, the control system selects one of the several kinds of standby paths to perform embroidery on a sub-area so as to obtain the pattern of the sub-area.
The embroidery machine can select the embroidery needle path of each sub-area from the standby path according to the designated parameters. The specified parameters include at least one of: the outline of the sub-region, the pixel size of the sub-region. And after the intermediate image is obtained, identifying the designated parameters of the sub-regions, and screening out the designated parameters with the highest matching degree with the designated parameters of the sub-regions from the number of the designated parameters of each standby path to serve as target parameters. And taking the target parameter corresponding to the standby path as the standby path adopted when the subarea is embroidered.
The method is applicable to a C2M mode, namely a Customer-to-factory (Customer-to-factory) mode, namely a Customer-to-factory mode, wherein a manufacturer is directly connected with a Customer, namely a Customer directly reaches a factory, and the connection between the manufacturer and the Customer is emphasized. 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 that can be short-circuited, such as stock, logistics, total sales, distribution, etc., cuts down all unnecessary costs including stock, allows users to purchase ultra-high quality products at ultra-low prices, and allows manufacturers to directly face user demands.
Based on the same idea, the invention further provides an embroidery effect map generation device, as shown in fig. 4, the embroidery effect map generation device comprises one or more of the following modules:
an acquisition module 400 configured to: and acquiring the pixel size of a color map and the pixel size of a customized area, wherein the color map is used for representing the patterns embroidered on the embroidery product.
An intermediate image determination module 402 configured to: the reliable color map is converted into an intermediate image that matches the pixel size of the custom area.
An embroidery needle path generating module 404 configured to: generating an embroidery stitch by using the intermediate image, wherein the embroidery stitch is used for representing a stitch corresponding to a pattern of the color chart on the embroidery product, and the information of the embroidery stitch comprises at least one of the following: the embroidery product corresponds 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.
An embroidery effect map generation module 406 configured to: and processing the intermediate image according to the embroidery needle path to obtain an embroidery effect image of the embroidery product.
In an alternative embodiment of the present invention, the obtaining module 400 is specifically configured to: determining the physical size and preset resolution of the customized area; and multiplying the physical size by a preset resolution as the pixel size of the customized area.
In an alternative embodiment of the present invention, the embroidery needle path generating module 404 is specifically configured to:
sending the intermediate image to an embroidery machine, wherein an embroidery stitch is generated by the embroidery machine according to the intermediate image, and the embroidery machine is used for embroidering a pattern corresponding to the color map on the embroidery product; alternatively, the first and second electrodes may be,
identifying a first parameter of each subregion in the color dependence map, wherein the color of any two adjacent subregions is different; screening out second parameters of which the difference value with the first parameters is not larger than a parameter threshold value from preset second parameters of each standby path for each sub-region; summarizing the standby paths corresponding to the screened second parameters to obtain an embroidery needle path; wherein the first parameter comprises at least one of: the outline of the sub-region, the pixel size of the sub-region, and the position of the sub-region in the reliable map.
In an alternative embodiment of the present invention, the embroidery effect map generating module 406 is specifically configured to: and adding the embroidery needle path after the imaging processing to the intermediate image to obtain an embroidery effect picture.
In an alternative embodiment of the present invention, the embroidery effect map generating module 406 is specifically configured to: and sending the embroidery effect picture to a user client, wherein the user client is used for displaying the embroidery effect picture to a user.
In an alternative embodiment of the present invention, the apparatus further comprises: and a color map generation module. Is configured to: acquiring an embroidery image; screening out embroidery threads with a color difference value smaller than a color threshold value from the embroidery threads aiming at each color in the embroidery image; and replacing the corresponding color in the embroidery image by the color of the screened embroidery thread to obtain a color-dependent map.
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. 4, an electronic device according to an embodiment of the present application includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete mutual communication via the communication bus 114,
a memory 113 for storing a computer program;
in an embodiment of the present application, the processor 111, configured to execute the program stored in the memory 113, to implement the control method for generating the embroidery effect map provided in any one of the foregoing method embodiments, includes:
the present application also provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the embroidery effect map generation method for images provided by 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 foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present 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.

Claims (17)

1. An embroidery effect map generation method, characterized in that the method comprises:
acquiring the pixel size of a color map and the pixel size of a customized area, wherein the color map is used for representing patterns embroidered on an embroidery product;
converting the reliable color map into an intermediate image matched with the pixel size of the customized area;
generating an embroidery needle path by using the intermediate image;
and processing the intermediate image according to the embroidery needle path to obtain an embroidery effect picture of the embroidery product.
2. The method of claim 1, wherein obtaining the pixel size of the custom region comprises:
determining the physical size and preset resolution of the customized area;
and multiplying the physical size by the preset resolution as the pixel size of the customized area.
3. The method of claim 1, wherein generating an embroidery stitch using the intermediate image comprises:
sending the intermediate image to an embroidery machine, wherein the embroidery stitch is generated by the embroidery machine according to the intermediate image, and the embroidery machine is used for embroidering a pattern corresponding to the color-matching map on the embroidery product; alternatively, the first and second electrodes may be,
identifying a first parameter of each subarea in the color chart, wherein the color of any two adjacent subareas is different; screening out second parameters of which the difference value with the first parameters is not larger than a parameter threshold value from preset second parameters of each standby path for each sub-region; summarizing the standby paths corresponding to the screened second parameters to obtain an embroidery needle path; wherein the first parameter comprises at least one of: the outline of the sub-region, the pixel size of the sub-region, and the position of the sub-region in the reliable map.
4. The method according to claim 1, wherein processing the intermediate image according to the embroidery stitch to obtain an embroidery effect map of the embroidery product comprises:
and adding the embroidery needle path after the imaging processing to the intermediate image to obtain an embroidery effect picture.
5. The method according to claim 1, wherein after processing the intermediate image according to the embroidery stitch to obtain an embroidery effect map of the embroidery product, the method further comprises:
and sending the embroidery effect picture to a user client, wherein the user client is used for displaying the embroidery effect picture to a user.
6. The method of claim 1, wherein prior to obtaining the pixel size of the reliable map, the method further comprises:
acquiring an embroidery image;
screening out embroidery threads with a difference value smaller than a color threshold value from the embroidery threads aiming at each color in the embroidery image;
and replacing the corresponding color in the embroidery image with the color of the screened embroidery thread to obtain a color-dependent map.
7. An embroidery effect map generating apparatus, characterized in that the apparatus comprises:
an acquisition module configured to: acquiring the pixel size of a color map and the pixel size of a customized area, wherein the color map is used for representing patterns embroidered on an embroidery product;
an intermediate image determination module configured to: converting the reliable color map into an intermediate image matched with the pixel size of the customized area;
an embroidery needle path generation module configured to: generating an embroidery needle path by using the intermediate image;
an embroidery effect map generation module configured to: and processing the intermediate image according to the embroidery needle path to obtain an embroidery effect picture of the embroidery product.
8. The apparatus of claim 7, wherein the acquisition module is specifically configured to: determining the physical size and preset resolution of the customized area;
and multiplying the physical size by the preset resolution as the pixel size of the customized area.
9. The apparatus of claim 7, wherein the embroidery stitch generation module is specifically configured to:
sending the intermediate image to an embroidery machine, wherein the embroidery stitch is generated by the embroidery machine according to the intermediate image, and the embroidery machine is used for embroidering a pattern corresponding to the color-matching map on the embroidery product; alternatively, the first and second electrodes may be,
identifying a first parameter of each subarea in the color chart, wherein the color of any two adjacent subareas is different; screening out second parameters of which the difference value with the first parameters is not larger than a parameter threshold value from preset second parameters of each standby path for each sub-region; summarizing the standby paths corresponding to the screened second parameters to obtain an embroidery needle path; wherein the first parameter comprises at least one of: the outline of the sub-region, the pixel size of the sub-region, and the position of the sub-region in the reliable map.
10. The apparatus according to claim 7, wherein the embroidery effect map generation module is specifically configured to:
and adding the embroidery needle path after the imaging processing to the intermediate image to obtain an embroidery effect picture.
11. The apparatus of claim 7, further comprising: a transmitting module, wherein the transmitting module is configured to:
and sending the embroidery effect picture to a user client, wherein the user client is used for displaying the embroidery effect picture to a user.
12. The apparatus of claim 7, further comprising: a color map generation module, wherein the color map generation module is configured to:
acquiring an embroidery image;
screening out embroidery threads with a difference value smaller than a color threshold value from the embroidery threads aiming at each color in the embroidery image;
and replacing the corresponding color in the embroidery image with the color of the screened embroidery thread to obtain a color-dependent map.
13. An embroidery effect map generating device applied in C2M mode, characterized in that the embroidery effect map generating device comprises the apparatus of any one of claims 7-12.
14. A user client for use in C2M mode, the user client comprising the apparatus of any one of claims 7-12.
15. 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 7 to 12.
16. A computer-readable storage medium, characterized in that the storage medium stores one or more programs executable by one or more processors to implement the embroidery effect map generation method according to any one of claims 1 to 6.
17. 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-6.
CN202110742791.5A 2021-06-30 2021-06-30 Embroidery effect graph generation method and device, electronic equipment and storage medium Active CN113393542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110742791.5A CN113393542B (en) 2021-06-30 2021-06-30 Embroidery effect graph generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110742791.5A CN113393542B (en) 2021-06-30 2021-06-30 Embroidery effect graph generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113393542A true CN113393542A (en) 2021-09-14
CN113393542B CN113393542B (en) 2022-08-02

Family

ID=77624876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110742791.5A Active CN113393542B (en) 2021-06-30 2021-06-30 Embroidery effect graph generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113393542B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048689A1 (en) * 2004-08-30 2006-03-09 Billert Debbi L Method of making hand accessorizable embroidered designs
EP2228476A1 (en) * 2009-03-10 2010-09-15 Lässer AG Individual part supply device for sewing, quilting and embroidering machines, sewing, quilting or embroidering machine with the device and method for sewing on an individual part
CN101859335A (en) * 2010-05-18 2010-10-13 南京大学 Computer-aided crewel embroidery production method
CN107012601A (en) * 2017-03-15 2017-08-04 苏州大学 A kind of high-resolution machine embroidery method
US20170350051A1 (en) * 2016-06-03 2017-12-07 DRAWstitch International Ltd. Method of Converting Photo Image Into Realistic and Customized Embroidery
CN107895298A (en) * 2017-11-07 2018-04-10 常州艾贝服饰有限公司 A kind of method and system for being used to customize intimate apparel
CN112633397A (en) * 2020-12-29 2021-04-09 江苏惟妙纺织科技有限公司 Embroidery customization method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048689A1 (en) * 2004-08-30 2006-03-09 Billert Debbi L Method of making hand accessorizable embroidered designs
EP2228476A1 (en) * 2009-03-10 2010-09-15 Lässer AG Individual part supply device for sewing, quilting and embroidering machines, sewing, quilting or embroidering machine with the device and method for sewing on an individual part
CN101859335A (en) * 2010-05-18 2010-10-13 南京大学 Computer-aided crewel embroidery production method
US20170350051A1 (en) * 2016-06-03 2017-12-07 DRAWstitch International Ltd. Method of Converting Photo Image Into Realistic and Customized Embroidery
CN107012601A (en) * 2017-03-15 2017-08-04 苏州大学 A kind of high-resolution machine embroidery method
CN107895298A (en) * 2017-11-07 2018-04-10 常州艾贝服饰有限公司 A kind of method and system for being used to customize intimate apparel
CN112633397A (en) * 2020-12-29 2021-04-09 江苏惟妙纺织科技有限公司 Embroidery customization method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨克微等: "物像空间依赖的乱针绣针法定义与风格生成", 《计算机辅助设计与图形学学报》 *

Also Published As

Publication number Publication date
CN113393542B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
US8259350B2 (en) Job-specific print defect management
US8798781B2 (en) Method and system for converting an image to a color-reduced image mapped to embroidery thread colors
US6868189B1 (en) Image processing apparatus, an image processing method, and a computer readable medium having recorded thereon a processing program for permitting a computer to perform image processing routines
US5794553A (en) Embroidery data processing apparatus
US20070067179A1 (en) Framed art visualization software
US20090027732A1 (en) Image processing apparatus, image processing method, and computer program
US8929663B2 (en) Image processing device identifying region in image as one of uniform region and nonuniform region
JP2001259268A (en) Embroidery data creating device and recording medium recorded with embroidery data creating program
US20060055708A1 (en) Graphical user interface for a keyer
US20120206490A1 (en) Print data creating apparatus, print data creating method, and computer program product
CN113393542B (en) Embroidery effect graph generation method and device, electronic equipment and storage medium
US7023448B1 (en) Selecting rendering intent
CN111145091A (en) Image splicing method and device, electronic equipment and storage medium
CN113373607B (en) Embroidery needle path generation method and device and storage medium
US8897909B2 (en) Embroidery data generation apparatus and computer program product
US10731280B2 (en) Non-transitory computer-readable storage medium storing embroidery data generation program, and embroidery data generation device
CN116703887A (en) Embroidery defect detection method, system and storage medium for visual comparison
JP3436420B2 (en) Image graphic processing method and image graphic processing apparatus
JP4082019B2 (en) Embroidery data creation device, embroidery data creation program, and recording medium recorded with embroidery data creation program
CN113379856B (en) Embroidery effect graph generation method and device and storage medium
JP2014083339A (en) Embroidery data creating device and computer-readable medium
JP3333579B2 (en) Embroidery data generator
US11952691B2 (en) Applique data management apparatus, sewing machine, and storage medium storing applique data management program
Júnior et al. An approach for non-photorealistic rendering that is appealing to human viewers
JPH11169568A (en) Image data processing device, embroidery data processing device, recording medium recording image data processing program, and recording medium recording embroidery data processing program

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