Loose sequin pattern drawing method and apparatus, device, and storage medium
By obtaining the attribute parameters of loose beads and the relative coordinates of stitches, calculating the rotation angle and drawing position, and drawing a three-dimensional rendering of loose beads, the problem of poor display effect of loose bead patterns in the existing technology is solved, and an intuitive and realistic display effect is achieved.
Patent Information
- Application Number
- PCT/CN2023/100038
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2023-06-13
- Publication Date
- 2024-10-03
AI Technical Summary
Existing loose bead patterns are mainly displayed based on lines or simple geometric plane figures, resulting in poor display effects.
By obtaining the attribute parameters of the loose beads and the relative coordinates of the stitches, the rotation angle of the loose beads and the drawing position of the three-dimensional rendering are calculated, and the three-dimensional rendering of the loose beads is drawn to achieve an intuitive and realistic display.
The three-dimensional effect drawing of loose bead patterns has been realized, which improves the intuitiveness and fidelity of the display effect.
Smart Images

Figure CN2023100038_03102024_PF_FP_ABST
Abstract
Description
Loose bead pattern drawing method, device, equipment and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 27, 2023, with application number 202310305300.X and application name “Scattered Bead Pattern Drawing Method, Device, Equipment and Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of embroidery technology, and more specifically, to a method, device, equipment and storage medium for drawing a loose bead pattern. Background Art
[0003] Sequin embroidery, also known as beadwork, uses various types of loose beads, including hollow beads, tube beads, artificial gemstones, and shimmering sequins, to create a dazzling, shimmering effect on clothing. Currently, sequin embroidery is commonly used on stage costumes to enhance their beauty and appeal. It is also widely used on shoe uppers, handbags, jewelry boxes, and more.
[0004] Before embroidering a loose bead pattern on an embroidery machine, it is necessary to preview the loose bead pattern on the electronic control head to visually check the finished product. However, most current loose bead patterns are displayed based on lines or simple geometric shapes, resulting in poor display quality.
[0005] Summary of the Invention
[0006] The purpose of the present application is to provide a method, device, equipment and storage medium for drawing a scattered bead pattern, which can solve the problem of poor display effect when the scattered bead pattern is displayed based on lines or simple geometric plane figures through a scattered bead three-dimensional effect diagram.
[0007] In a first aspect, an embodiment of the present application provides a method for drawing a loose bead pattern, comprising: obtaining loose bead attribute parameters and stitch relative coordinates of the loose beads in the loose bead pattern to be drawn, the loose bead attribute parameters including loose bead type, loose bead color, and loose bead size; obtaining a loose bead three-dimensional effect diagram according to the loose bead attribute parameters; determining a loose bead rotation angle and a drawing position corresponding to the loose bead three-dimensional effect diagram according to the stitch relative coordinates; drawing the loose bead three-dimensional effect diagram to the drawing position according to the loose bead rotation angle, and obtaining a three-dimensional effect diagram corresponding to the loose bead pattern.
[0008] In one possible implementation, determining the rotation angle of the loose beads based on the relative coordinates of the stitches includes:
[0009] According to the relative coordinates of the stitches, the absolute coordinates of the stitches corresponding to the loose beads are obtained; according to the absolute coordinates of the stitches corresponding to the loose beads, the image coordinates of the stitches corresponding to the loose beads are determined; according to the image coordinates of adjacent stitches, the horizontal angle between adjacent stitches in the image is determined, and the rotation angle of the loose beads is determined to be the horizontal angle.
[0010] In one possible implementation method, the image coordinates of the stitches corresponding to the loose beads are determined based on the absolute coordinates of the stitches corresponding to the loose beads, including: multiplying the absolute coordinates of the stitches corresponding to the loose beads by a proportional coefficient to obtain the image coordinates of the stitches corresponding to the loose beads, and the proportional coefficient is the ratio of the loose bead pattern size to the loose bead pattern drawing area.
[0011] In a possible implementation, the drawing position corresponding to the scattered beads 3D effect image is determined according to the following method: the middle position of adjacent stitches is determined as the drawing position corresponding to the scattered beads 3D effect image.
[0012] In one possible implementation, a scattered bead three-dimensional effect diagram is drawn to a drawing position according to the scattered bead rotation angle, including: adjusting the size of the scattered bead three-dimensional effect diagram to the product of the scattered bead size and the proportional coefficient, and rotating the scattered bead three-dimensional effect diagram according to the scattered bead rotation angle to obtain an adjusted scattered bead three-dimensional effect diagram; and drawing the adjusted scattered bead three-dimensional effect diagram to the drawing position.
[0013] In a possible implementation, the method for drawing a scattered bead pattern further includes: determining an embroidery progress corresponding to the scattered bead pattern; and when drawing a three-dimensional effect diagram of the scattered bead pattern, performing differentiated drawing according to the embroidery progress.
[0014] In one possible implementation, the method for drawing a scattered bead pattern also includes: before drawing, displaying a setting page for setting the scattered bead attribute parameters; receiving a setting operation of the scattered bead attribute parameters acting on the setting page; and generating a corresponding scattered bead three-dimensional effect diagram in response to the setting operation.
[0015] In a second aspect, an embodiment of the present application provides a device for drawing a scattered bead pattern, comprising:
[0016] A first acquisition module is used to acquire the loose bead attribute parameters and stitch relative coordinates of the loose beads in the loose bead pattern to be drawn, wherein the loose bead attribute parameters include the loose bead type, loose bead color and loose bead size;
[0017] The second acquisition module is used to obtain a three-dimensional effect image of the scattered beads according to the scattered beads attribute parameters;
[0018] A determination module is used to determine the rotation angle of the scattered beads and the corresponding drawing position of the scattered beads three-dimensional effect image according to the relative coordinates of the needle traces;
[0019] The drawing module is used to draw a three-dimensional effect diagram of the scattered beads to the drawing position according to the rotation angle of the scattered beads, and obtain a three-dimensional effect diagram corresponding to the scattered bead pattern.
[0020] In one possible implementation, the determination module is specifically used to: obtain the absolute coordinates of the stitches corresponding to the loose beads based on the relative coordinates of the stitches; determine the image coordinates of the stitches corresponding to the loose beads based on the absolute coordinates of the stitches corresponding to the loose beads; determine the horizontal angle between adjacent stitches in the image based on the image coordinates of adjacent stitches, and determine the rotation angle of the loose beads as the horizontal angle.
[0021] In one possible implementation, the determination module can also be used to: multiply the absolute coordinates of the stitches corresponding to the loose beads by a proportional coefficient to obtain the image coordinates of the stitches corresponding to the loose beads, where the proportional coefficient is the ratio of the loose bead pattern size to the loose bead pattern drawing area.
[0022] In a possible implementation, the drawing position corresponding to the scattered beads 3D effect image is determined according to the following method: the middle position of adjacent stitches is determined as the drawing position corresponding to the scattered beads 3D effect image.
[0023] In one possible implementation, the drawing module is specifically used to: adjust the size of the scattered bead three-dimensional effect image to the product of the scattered bead size and the proportional coefficient, and rotate it according to the scattered bead rotation angle to obtain the adjusted scattered bead three-dimensional effect image; draw the adjusted scattered bead three-dimensional effect image to the drawing position.
[0024] In a possible implementation, the scattered bead pattern drawing device further includes an embroidery module, which is used to: determine the embroidery progress corresponding to the scattered bead pattern; and when drawing the three-dimensional effect diagram of the scattered bead pattern, perform differentiated drawing according to the embroidery progress.
[0025] In one possible implementation, the scattered bead pattern drawing device also includes a generation module, which is used to: display a setting page for setting scattered bead attribute parameters before drawing; receive setting operations of the scattered bead attribute parameters acting on the setting page; and generate a corresponding scattered bead three-dimensional effect diagram in response to the setting operation.
[0026] In a third aspect, the present application provides an electronic device comprising: at least one processor; and a memory connected to the at least one processor; wherein the memory is used to store instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the scattered bead pattern drawing method provided in the first aspect.
[0027] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed, they are used to implement the scattered bead pattern drawing method provided in the first aspect.
[0028] In a fifth aspect, the present application provides a program product, which includes computer-executable instructions. When the computer-executable instructions are executed, the method for drawing a scattered bead pattern provided in the first aspect is implemented.
[0029] This application provides a method, device, equipment, and storage medium for drawing a loose bead pattern. The method obtains the loose bead attribute parameters and stitch relative coordinates of the loose beads in the loose bead pattern to be drawn, and then obtains a loose bead 3D rendering based on the loose bead attribute parameters, namely, the loose bead type, loose bead color, and loose bead size. Furthermore, based on the stitch relative coordinates, the loose bead rotation angle and the corresponding drawing position of the loose bead 3D rendering are determined. Based on the loose bead rotation angle, the loose bead 3D rendering is drawn to the drawing position to obtain a 3D rendering corresponding to the loose bead pattern. Based on the loose bead 3D rendering, the 3D rendering corresponding to the loose bead pattern drawn in this application can intuitively and realistically demonstrate the embroidery effect of the loose bead pattern. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0031] FIG1 is a flow chart of a method for drawing a scattered bead pattern according to an embodiment of the present application;
[0032] FIG2 is an interface diagram for setting scattered bead attribute parameters according to the type of scattered beads provided in an embodiment of the present application;
[0033] FIG3 is an interface diagram for setting the property parameters of scattered beads provided in an embodiment of the present application;
[0034] FIG4 is a schematic diagram of the shapes corresponding to the three-dimensional effect images of different types of scattered beads provided in an embodiment of the present application;
[0035] FIG5 is a schematic diagram of a three-dimensional effect diagram corresponding to a scattered bead pattern provided in an embodiment of the present application;
[0036] FIG6 is a flow chart of a method for drawing a scattered bead pattern according to another embodiment of the present application;
[0037] FIG7 is a schematic diagram of the interface for embroidering a loose bead pattern provided in an embodiment of the present application;
[0038] FIG8 is a schematic structural diagram of a scattered bead pattern drawing device provided in one embodiment of the present application;
[0039] FIG9 is a schematic structural diagram of an electronic device provided in one embodiment of the present application.
[0040] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0041] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0042] First, let’s explain the terms involved in this application:
[0043] Loose beads: the material of sequin embroidery, also known as bead embroidery, is made of hollow beads, bead tubes, artificial gems, glittering sequins, etc., embroidered on clothing to create a jeweled and dazzling effect. It is generally used on stage performance costumes to increase the beauty and appeal of clothing. It is also widely used on shoe uppers, handbags, jewelry boxes, etc.
[0044] Embroidery pattern: a sample of embroidery. The embroidery machine can embroider various complex embroidery products according to the pattern data.
[0045] Rice beads: loose beads shaped like rice grains;
[0046] Tube beads: tubular loose beads;
[0047] Bubble beads: pearl-like loose beads;
[0048] Diamond beads: diamond-shaped loose beads.
[0049] Based on the problem that most of the loose bead patterns in the related art are displayed based on lines or simple geometric plane figures, resulting in poor display effects, the present application pre-fabricates loose bead three-dimensional effect diagrams corresponding to various loose beads on an embroidery machine, and sets the loose bead attribute parameters corresponding to the loose beads, namely the loose bead type, loose bead color and loose bead size. When previewing the loose bead pattern, the loose bead rotation angle and the drawing position corresponding to the loose bead three-dimensional effect diagram are calculated according to the relative coordinates of the stitches in the loose bead pattern. Further, according to the loose bead rotation angle, the loose bead three-dimensional effect diagram is drawn to the drawing position to obtain the three-dimensional effect diagram corresponding to the loose bead pattern. The three-dimensional effect diagram corresponding to the drawn loose bead pattern can intuitively and realistically display the embroidery effect of the loose bead pattern.
[0050] To facilitate understanding, the application scenarios of the embodiments of the present application are first introduced.
[0051] The application scenarios of the embodiments of the present application include embroidery machines. Before embroidering a pattern, the user needs to preview the pattern on the electronically controlled operating head. By previewing the pattern, the user can intuitively see the finished product effect after the pattern is embroidered. In the application scenarios of the embodiments of the present application, it is mainly used for embroidering loose bead patterns. Before embroidering a loose bead pattern, the embroidery machine first draws a three-dimensional effect diagram corresponding to the loose bead pattern for the user to preview on the electronically controlled operating head. Specifically, first, the corresponding loose bead attribute parameters in the loose bead pattern are set, and based on the loose bead attribute parameters, the loose bead three-dimensional effect diagram is preset in the embroidery machine system, and further, the loose bead rotation angle and the drawing position corresponding to the loose bead three-dimensional effect diagram are calculated in real time according to the relative coordinates of the stitches in the loose bead pattern, and according to the loose bead rotation angle, the loose bead three-dimensional effect diagram is drawn to the drawing position to obtain the three-dimensional effect diagram corresponding to the loose bead pattern.
[0052] It can be understood that the execution entity provided in the embodiment of the present application can be an embroidery machine.
[0053] Based on the above application scenarios, with the embroidery machine as the execution body, the method for drawing the scattered bead pattern provided in the embodiment of the present application is described in detail below in combination with specific embodiments.
[0054] FIG1 is a flow chart of a method for drawing a scattered bead pattern according to an embodiment of the present application. As shown in FIG1 , the method for drawing a scattered bead pattern includes the following steps:
[0055] S101, obtaining the loose bead attribute parameters and stitch relative coordinates of the loose beads in the loose bead pattern to be drawn, wherein the loose bead attribute parameters include the loose bead type, loose bead color, and loose bead size.
[0056] For example, the types of loose beads can be rice beads, tube beads, bubble beads, and diamond beads, etc.
[0057] For example, the color of the loose beads can be orange, yellow, gray, blue, green, white, purple, etc.
[0058] For example, the loose beads may be any size between 2 mm and 12 mm.
[0059] In one possible implementation, the bead attribute parameters of the loose beads in the loose bead pattern can be determined based on the loose bead type determined in the loose bead pattern based on customer requirements. For example, the loose bead type can be represented by uppercase letters, lowercase letters, numbers, etc. For example, when the loose bead type is represented by A beads - H beads, the correspondence between the loose bead type and the loose bead attribute parameters can be: A beads represent 2mm orange bubble beads, B beads represent 2mm red diamond beads, C beads represent 2mm yellow rice beads, D beads represent 2mm blue tube beads, E beads represent 2mm green bubble beads, F beads represent 2mm purple diamond beads, G beads represent 2mm white diamond beads, and H beads represent 2mm orange diamond beads.
[0060] It is understandable that the number of types of loose beads in the loose bead pattern is determined according to the actual needs of the customer. In the loose bead pattern drawing method provided in the embodiment of the present application, the number of types of loose beads is not limited.
[0061] Figure 2 illustrates an interface for setting bead attribute parameters based on bead type, as provided in an embodiment of the present application. As shown in Figure 2 , this interface includes edit boxes 21 for setting the bead type and corresponding bead attribute parameters. Specifically, bead type is denoted by AH, and bead attribute parameters can be set in the corresponding edit boxes 21 based on the bead type. As shown in Figure 2 , the correspondence between bead type and bead attribute parameters is similar to that described above and will not be further elaborated here.
[0062] Figure 3 shows an interface for setting the properties of loose beads in an embodiment of the present application. As shown in Figure 3 , the interface includes settings for loose bead size, type, and color. Specifically, the size can be set in the corresponding edit box 31, while the type and color can be set using the triangular direction selection buttons 32.
[0063] Stitch relative coordinates can also be called loose bead codes or loose bead needle codes, which indicate the relative coordinates of each stitch corresponding to the loose beads.
[0064] S102, obtaining a three-dimensional effect diagram of the scattered beads according to the scattered beads attribute parameters.
[0065] Optionally, the scattered bead three-dimensional effect image can be drawn based on the hardware and software platform of the embroidery machine and stored in the embroidery machine system for use in drawing or embroidering the scattered bead pattern.
[0066] FIG4 is a schematic diagram of the shapes corresponding to the three-dimensional effect images of different types of loose beads provided in the embodiments of the present application. As shown in FIG4 , the shape of the three-dimensional effect image corresponding to rice beads is similar to a rounded cube 41, the shape of the three-dimensional effect image corresponding to tube beads is similar to a rectangular parallelepiped 42, the shape of the three-dimensional effect image corresponding to diamond beads is similar to a cone 43, and the shape of the corresponding three-dimensional effect image is similar to a sphere 44. It is understood that, based on different combinations of loose bead type, loose bead color, and loose bead size, we can obtain a variety of different loose bead three-dimensional effect images. The loose bead drawing method provided in the embodiments of the present application does not limit the types of loose bead three-dimensional effect images.
[0067] In one possible implementation, obtaining a 3D rendering of scattered beads based on scattered bead attribute parameters may include the following steps: prior to drawing, displaying a settings page for setting the scattered bead attribute parameters, receiving a setting operation for the scattered bead attribute parameters on the settings page, and generating a corresponding 3D rendering of the scattered beads in response to the setting operation. It should be noted that the 3D rendering of the scattered bead patterns provided in the embodiments of this application can be generated in real time.
[0068] In another possible implementation, a three-dimensional effect image of the scattered beads can be obtained from the embroidery machine system according to the attribute parameters of the scattered beads.
[0069] S103, determining the scattered bead rotation angle and the corresponding drawing position of the scattered bead three-dimensional effect image according to the relative coordinates of the needle trace.
[0070] The bead rotation angle is the angle at which the beads need to be rotated when drawing the bead pattern. The bead drawing position is the specific drawing position of the beads in the 3D rendering corresponding to the bead pattern.
[0071] According to the relative coordinates of the needle trace, the rotation angle of the scattered beads and the corresponding drawing position of the scattered beads three-dimensional effect image are determined, which will be explained in detail in conjunction with specific embodiments below.
[0072] S104, drawing a three-dimensional effect diagram of the scattered beads to a drawing position according to the rotation angle of the scattered beads, and obtaining a three-dimensional effect diagram corresponding to the scattered bead pattern.
[0073] Optionally, the size of the scattered bead 3D effect image is adjusted to the product of the scattered bead size and a scale factor, and the image is rotated according to a scattered bead rotation angle to obtain an adjusted scattered bead 3D effect image, and the adjusted scattered bead 3D effect image is drawn at the drawing position. The scale factor is the ratio of the scattered bead pattern size to the scattered bead pattern drawing area.
[0074] Figure 5 is a schematic diagram of a 3D rendering corresponding to a loose bead pattern provided in an embodiment of the present application. As shown in Figure 5 , the 3D rendering corresponding to the loose bead pattern can intuitively display the loose bead pattern. It should be noted that in the method for drawing a loose bead pattern provided in an embodiment of the present application, the color of the loose beads in the 3D rendering corresponding to the drawn loose bead pattern is consistent with the color of the loose beads set in the loose bead attribute parameters. Figure 5 does not display the color of the loose beads.
[0075] The embodiment of the present application obtains the bead attribute parameters and stitch relative coordinates of the loose beads in the loose bead pattern to be drawn, and obtains a loose bead 3D rendering based on the loose bead attribute parameters, namely, the bead type, color, and size. Furthermore, based on the stitch relative coordinates, the loose bead rotation angle and the corresponding drawing position of the loose bead 3D rendering are determined. The loose bead 3D rendering is then drawn to the drawing position based on the loose bead rotation angle, thereby obtaining a 3D rendering corresponding to the loose bead pattern. Based on the loose bead 3D rendering, the 3D rendering corresponding to the loose bead pattern obtained by the present application can intuitively and realistically display the embroidery effect of the loose bead pattern.
[0076] Based on the above embodiment, the following describes in detail step S103 of determining the rotation angle of the scattered beads according to the relative coordinates of the needle trace in conjunction with FIG. 6 .
[0077] FIG6 is a flow chart of a method for drawing a scattered bead pattern according to another embodiment of the present application. As shown in FIG6 , determining the scattered bead rotation angle according to the relative coordinates of the stitches may further include the following steps:
[0078] S601, obtaining the absolute coordinates of the stitches corresponding to the loose beads according to the relative coordinates of the stitches.
[0079] Optionally, the absolute coordinates of the stitches corresponding to the loose beads can be obtained by summing the relative coordinates of the stitches. For example, the absolute coordinates of the current stitch of the loose beads can be the sum of the absolute coordinates of the previous stitch of the loose beads and the relative coordinates of the current stitch.
[0080] S602, determining the image coordinates of the stitches corresponding to the loose beads according to the absolute coordinates of the stitches corresponding to the loose beads.
[0081] Optionally, the absolute coordinates of the stitches corresponding to the loose beads are multiplied by a proportional coefficient to obtain the image coordinates of the stitches corresponding to the loose beads, wherein the proportional coefficient is the ratio of the loose bead pattern size to the loose bead pattern drawing area.
[0082] It can be understood that the image coordinates corresponding to the scattered beads are the position coordinates in the scattered beads three-dimensional effect picture.
[0083] S603: Determine the horizontal angle between adjacent stitches in the image based on the image coordinates of the adjacent stitches.
[0084] Exemplarily, adjacent stitches may be the current stitch and the previous stitch.
[0085] Optionally, the angle between the image coordinates of the current needle and the image coordinates of the previous needle in the horizontal direction is calculated.
[0086] S604, determining that the scattered beads rotation angle is a horizontal angle.
[0087] In the embodiments of the present application, the absolute coordinates of the stitches corresponding to the loose beads are obtained based on the relative coordinates of the stitches. The image coordinates of the stitches corresponding to the loose beads are determined based on the absolute coordinates of the stitches. The horizontal angle between adjacent stitches in the image is determined based on the image coordinates of adjacent stitches, and the rotation angle of the loose beads is determined as the horizontal angle. By calculating the rotation angle of the loose beads when drawing a loose bead pattern based on the relative coordinates of the stitches, the resulting 3D rendering of the loose beads is more intuitive and the display effect is more realistic.
[0088] Optionally, in the method for drawing a scattered bead pattern provided in an embodiment of the present application, the drawing position corresponding to the scattered bead 3D effect image is determined by determining the middle position of adjacent stitches as the drawing position corresponding to the scattered bead 3D effect image. Specifically, the middle position of adjacent stitches can be the middle coordinate between the image coordinates corresponding to the adjacent stitches.
[0089] It should be noted that the method for drawing a loose bead pattern provided in the embodiments of the present application can also be used to determine the embroidery progress corresponding to the loose bead pattern. In one possible implementation, the embroidery progress corresponding to the loose bead pattern is determined, and when drawing a three-dimensional rendering of the loose bead pattern, the drawing is differentiated according to the embroidery progress.
[0090] For example, the embroidery progress corresponding to the loose bead pattern may be the start of embroidery of the loose bead pattern, the embroidery of the loose bead pattern is in progress, and the embroidery of the loose bead pattern is completed.
[0091] For example, when drawing a three-dimensional effect diagram of a loose bead pattern, when the embroidery progress is to start embroidering the loose bead pattern, the color of the loose beads in the three-dimensional effect diagram of the loose bead pattern is drawn as the original color or transparent color; when the embroidery progress is to be in the process of embroidering the loose bead pattern, the color of the loose beads that have been completed in the body effect diagram of the loose bead pattern is drawn according to the color corresponding to the three-dimensional effect diagram of the loose bead; when the embroidery progress is to be completed for the embroidery of the loose bead pattern, the color of all the loose beads in the three-dimensional effect diagram of the loose bead pattern is drawn according to the color corresponding to the three-dimensional effect diagram of the loose bead.
[0092] In another possible implementation, the embroidery progress of the loose bead pattern can also be determined based on the progress bar displayed on the interface diagram.
[0093] Figure 7 is a schematic diagram of the interface for embroidering a loose bead pattern provided by an embodiment of the present application. As shown in Figure 7 , the arrow indicates the direction of embroidery (i.e., counterclockwise). A white cross 71 indicates the location of the embroidery in progress. The loose beads shown within the black rectangular frame 72 indicate that the embroidery has been completed. The dashed box 73 represents the embroidery progress bar. As can be seen from the figure, the embroidery of the current loose bead pattern is 31% complete. It should be noted that the color of the completed loose beads within the black rectangular frame 72 is drawn according to the loose bead color set in the loose bead attribute parameters. The color of the loose beads is not shown in Figure 7; the color of the loose beads currently being embroidered is drawn in gray.
[0094] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0095] FIG8 is a schematic diagram of the structure of a scattered bead pattern drawing device provided in an embodiment of the present application. As shown in FIG8 , the scattered bead pattern drawing device 80 includes: a first acquisition module 810 , a second acquisition module 820 , a determination module 830 and a drawing module 840 .
[0096] Among them, the first acquisition module 810 is used to obtain the loose bead attribute parameters and stitch relative coordinates of the loose beads in the loose bead pattern to be drawn, and the loose bead attribute parameters include loose bead type, loose bead color and loose bead size; the second acquisition module 820 is used to obtain a loose bead three-dimensional effect diagram based on the loose bead attribute parameters; the determination module 830 is used to determine the loose bead rotation angle and the corresponding drawing position of the loose bead three-dimensional effect diagram based on the stitch relative coordinates; the drawing module 840 is used to draw the loose bead three-dimensional effect diagram to the drawing position according to the loose bead rotation angle, and obtain the three-dimensional effect diagram corresponding to the loose bead pattern.
[0097] In one possible implementation, the determination module 830 is specifically used to: obtain the absolute coordinates of the stitches corresponding to the loose beads based on the relative coordinates of the stitches; determine the image coordinates of the stitches corresponding to the loose beads based on the absolute coordinates of the stitches corresponding to the loose beads; determine the horizontal angle between adjacent stitches in the image based on the image coordinates of adjacent stitches, and determine the rotation angle of the loose beads as the horizontal angle.
[0098] In one possible implementation, the determination module 830 may also be used to multiply the absolute coordinates of the stitches corresponding to the loose beads by a proportional coefficient to obtain the image coordinates of the stitches corresponding to the loose beads, where the proportional coefficient is the ratio of the loose bead pattern size to the loose bead pattern drawing area.
[0099] In a possible implementation, the drawing position corresponding to the scattered beads 3D effect image is determined according to the following method: the middle position of adjacent stitches is determined as the drawing position corresponding to the scattered beads 3D effect image.
[0100] In one possible implementation, the drawing module 840 is specifically used to: adjust the size of the scattered bead three-dimensional effect image to the product of the scattered bead size and the proportional coefficient, and rotate it according to the scattered bead rotation angle to obtain the adjusted scattered bead three-dimensional effect image; draw the adjusted scattered bead three-dimensional effect image to the drawing position.
[0101] In a possible implementation, the scattered bead pattern drawing device further includes an embroidery module (not shown), which is used to: determine the embroidery progress corresponding to the scattered bead pattern; and when drawing the three-dimensional effect diagram of the scattered bead pattern, draw it differently according to the embroidery progress.
[0102] In one possible implementation, the scattered bead pattern drawing device also includes a generation module (not shown), which is used to: display a setting page for setting scattered bead attribute parameters before drawing; receive setting operations of the scattered bead attribute parameters acting on the setting page; and generate a corresponding scattered bead three-dimensional effect diagram in response to the setting operation.
[0103] The device provided in the embodiment of the present application can be used to execute the method steps provided in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0104] It should be noted that it should be understood that the division of the various modules of the above device is merely a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. Moreover, these modules can all be implemented in the form of software called by a processing element; or they can all be implemented in the form of hardware; or some modules can be implemented in the form of software called by a processing element, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated into a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called by a processing element of the above device to perform the functions of the above processing module. The implementation of other modules is similar. In addition, these modules can all or partly be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed by the hardware integrated logic circuit in the processor element or by instructions in the form of software.
[0105] For example, the above modules can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more microprocessors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented by scheduling program code through a processing element, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0106] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. Available media may be magnetic media (eg, floppy disks, hard disks, tapes), optical media (eg, Digital Video Discs (DVDs)), or semiconductor media (eg, solid state disks (SSDs)).
[0107] Figure 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in Figure 9, the electronic device 90 includes: at least one processor 910, a memory 920, a communication interface 930, and a system bus 940. Among them, the memory 920 and the communication interface 930 are connected to the processor 910 via the system bus 940 and complete communication with each other. The memory 920 is used to store instructions, the communication interface 930 is used to communicate with other devices, and the processor 910 is used to call instructions in the memory to execute the method steps provided in the above method embodiment. The specific implementation method and technical effects are similar and will not be repeated here.
[0108] The system bus 940 mentioned in FIG. 9 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The system bus 940 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figure shows only one thick line, but this does not imply that there is only one bus or only one type of bus.
[0109] The communication interface 930 is used to implement communication between the database access apparatus and other devices (such as clients, read-write libraries, and read-only libraries).
[0110] The memory 920 may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0111] The processor 910 can be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0112] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method steps in the above-mentioned method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0113] The present application also provides a program product comprising computer-executable instructions. When the computer-executable instructions are executed, the method steps in the above method embodiment are implemented. The specific implementation methods and technical effects are similar and will not be described in detail here.
[0114] Those skilled in the art will readily envision other embodiments of the invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0115] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0116] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
Claims
1. A method for drawing a scattered bead pattern, characterized in that: include: Obtaining the loose bead attribute parameters and the relative coordinates of the stitches of the loose beads in the loose bead pattern to be drawn, wherein the loose bead attribute parameters include the loose bead type, the loose bead color and the loose bead size; According to the scattered beads property parameters, a scattered beads three-dimensional effect diagram is obtained; Determine the rotation angle of the scattered beads and the drawing position corresponding to the scattered beads three-dimensional effect image according to the relative coordinates of the needle traces; According to the rotation angle of the scattered beads, the scattered beads three-dimensional effect diagram is drawn to the drawing position to obtain the three-dimensional effect diagram corresponding to the scattered beads pattern.
2. The method for drawing a scattered bead pattern according to claim 1, characterized in that: According to the relative coordinates of the needle trace, the rotation angle of the scattered beads is determined, including: According to the relative coordinates of the stitches, the absolute coordinates of the stitches corresponding to the loose beads are obtained; Determining the image coordinates of the stitches corresponding to the loose beads according to the absolute coordinates of the stitches corresponding to the loose beads; According to the image coordinates of adjacent stitches, determine the horizontal angles between adjacent stitches in the image; The scattered beads rotation angle is determined to be the horizontal angle.
3. The method for drawing a scattered bead pattern according to claim 2, characterized in that: Determining the image coordinates of the stitches corresponding to the loose beads according to the absolute coordinates of the stitches corresponding to the loose beads includes: The absolute coordinates of the stitches corresponding to the loose beads are multiplied by a proportional coefficient to obtain the image coordinates of the stitches corresponding to the loose beads, wherein the proportional coefficient is the ratio of the size of the loose bead pattern to the drawing area of the loose bead pattern.
4. The method for drawing a scattered bead pattern according to claim 2, characterized in that: The drawing position corresponding to the scattered bead three-dimensional effect diagram is determined according to the following method: The middle position of the adjacent stitches is determined as the drawing position corresponding to the scattered beads three-dimensional effect image.
5. The method for drawing a scattered bead pattern according to claim 2, characterized in that: Drawing the scattered beads three-dimensional effect image to the drawing position according to the scattered beads rotation angle includes: The size of the scattered bead three-dimensional effect image is adjusted to the product of the scattered bead size and the proportional coefficient, and the scattered bead is rotated according to the scattered bead rotation angle to obtain an adjusted scattered bead three-dimensional effect image; Draw the adjusted scattered beads three-dimensional effect image to the drawing position.
6. The method for drawing a scattered bead pattern according to any one of claims 1 to 5, characterized in that: Also includes: Determining the embroidery progress corresponding to the loose bead pattern; When drawing the three-dimensional effect diagram of the scattered bead pattern, different drawing is performed according to the embroidery progress.
7. The method for drawing a scattered bead pattern according to any one of claims 1 to 5, characterized in that: Also includes: Before drawing, the setting page for setting the property parameters of loose beads is displayed; receiving a setting operation of a loose bead attribute parameter acting on the setting page; In response to the setting operation, a corresponding scattered bead three-dimensional effect diagram is generated.
8. A device for drawing a scattered bead pattern, characterized in that: include: A first acquisition module is used to acquire the loose bead attribute parameters and the relative coordinates of the stitches of the loose beads in the loose bead pattern to be drawn, wherein the loose bead attribute parameters include the loose bead type, the loose bead color and the loose bead size; A second acquisition module is used to acquire a scattered bead stereoscopic effect image according to the scattered bead attribute parameters; A determination module, used to determine the rotation angle of the scattered beads and the drawing position corresponding to the scattered beads three-dimensional effect image according to the relative coordinates of the needle traces; A drawing module is used to draw the scattered beads three-dimensional effect image to the drawing position according to the rotation angle of the scattered beads, so as to obtain the three-dimensional effect image corresponding to the scattered beads pattern.
9. An electronic device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory is used to store instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the scattered bead pattern drawing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method for drawing a loose bead pattern according to any one of claims 1 to 7 when executed by a processor.
Citation Information
Patent Citations
Pearl embroidery design system
CN101393655A
Pattern plate making method, device, electronic device and storage medium
CN109667076A
Embroidery effect picture generation method and device, storage medium and electronic equipment
CN113362443A
Loose bead pattern drawing method, device and equipment and storage medium
CN116145344A
Sewing machine, apparatus, and non-transitory computer-readable medium storing computer-readable instructions
US20140109815A1
