This application claims priority to Japanese Patent Application No. 2009-257191, filed Nov. 10, 2009, the content of which is hereby incorporated herein by reference.
The present disclosure relates to an embroidery data processing apparatus and a computer-readable medium that stores an embroidery data processing program that allow a user's desired embroidery pattern to be sewn.
A sewing machine is known that is configured to determine a method of arranging unit patterns in accordance with input by a user and sew an embroidery pattern formed by the unit patterns. In the known sewing machine, for example, the user may set two contour lines such as a circle or a heart shape. A method of arranging unit patterns is determined such that all the unit patterns are within an area defined by the two contour lines. Based on the determined arrangement method, sewing is performed on a work cloth. According to the known sewing machine, it is possible to sew the unit patterns within a shape of the user's desired contour lines.
Using the known sewing machine, a user can only set a shape of an area in which unit patterns are to be arranged. The user may not be able to appropriately set a distance between the unit patterns, an arrangement of the unit patterns, and so on to cause the sewing machine to sew a desired embroidery pattern. Therefore, an embroidery pattern that can be sewn by the sewing machine may be monotonous.
Various exemplary embodiments of the broad principles derived herein provide an embroidery data processing apparatus and a computer-readable medium that stores an embroidery data processing program that are capable of generating diverse embroidery data sets in which unit patterns are arranged in an arrangement that a user desires.
Exemplary embodiments provide an embroidery data processing apparatus that processes embroidery data for sewing an embroidery pattern including a plurality of unit patterns arranged on a work cloth using a sewing machine that is capable of performing embroidery sewing. The embroidery data processing apparatus includes a reference point setting unit that sets, within a sewing area, positions of at least three reference points to be used to determine a plurality of arrangement positions of the plurality of unit patterns, the sewing area being an area in which sewing can be performed, and a reference line setting unit that sets two reference lines being straight lines that intersect each other and each pass through at least two reference points of the at least three reference points. The embroidery data processing apparatus also includes a plane setting unit that sets a reference plane by setting two sets of a plurality of virtual lines arranged in a matrix. Each set of the plurality of virtual lines is arranged based on a distance between at least two reference points through which one of the two reference lines passes and being parallel to the other of the two reference lines. The reference plane is a plane on which the plurality of unit patterns are to be arranged. The one of the two reference lines is different for each of the two sets of plurality of virtual lines. The embroidery data processing apparatus further includes a position determination unit that determines the plurality of arrangement positions based on the reference plane, a pattern selection unit that selects a type for the plurality of unit patterns from at least one type of unit pattern for which embroidery data is stored in a memory, and an arrangement unit that arranges the plurality of unit patterns of the type selected by the pattern selection unit in the plurality of arrangement positions determined by the position determination unit.
Exemplary embodiments also provide a computer-readable medium storing an embroidery data processing program for processing embroidery data for sewing an embroidery pattern including a plurality of unit patterns arranged on a work cloth. The program comprising instructions that cause a computer to perform the steps of setting, within a sewing area, positions of at least three reference points to be used to determine a plurality of arrangement positions of the plurality of unit patterns, the sewing area being an area in which sewing can be performed, and setting two reference lines being straight lines that intersect each other and each pass through at least two reference points of the at least three reference points. The program also includes instructions that cause the computer to perform the steps of setting a reference plane by setting two sets of a plurality of virtual lines arranged in a matrix. Each set of the plurality of virtual lines is arranged based on a distance between at least two reference points through which one of the two reference lines passes and being parallel to the other of the two reference lines. The reference plane is a plane on which the plurality of unit patterns are to be arranged. The one of the two reference lines is different for each of the two sets of plurality of virtual lines. The program further includes instructions that cause the computer to perform the steps of determining the plurality of arrangement positions based on the reference plane, selecting a type for the plurality of unit patterns from at least one type of unit pattern for which embroidery data is stored in a memory, and arranging the plurality of unit patterns of the selected type in the determined plurality of arrangement positions.
Exemplary embodiments will be described below in detail with reference to the accompanying drawings in which:
Hereinafter, a sewing machine 1 that is an embodiment of an embroidery data processing apparatus according to the present disclosure will be explained with reference to the drawings. The referenced drawings are used to explain technological features that can be used in the present disclosure. Device configurations, flowcharts of various types of processing, and the like that are shown in the drawings are merely explanatory examples and do not have the effect of limiting the present disclosure only to those examples.
A physical configuration of the sewing machine 1 will be explained with reference to
An embroidery frame 12 is disposed on the bed 2. The embroidery frame 12 holds in place a work cloth 13. The embroidery frame 12 is moved by an embroidery frame moving mechanism 14 in an X axis direction (the left-right direction of the sewing machine 1) and a Y axis direction (the front-rear direction of the sewing machine 1). In the sewing machine 1, the needle bar 7 and the like are driven while the work cloth 13 is moved by the embroidery frame moving mechanism 14, so that sewing of an embroidery pattern is performed. Operations of the embroidery frame moving mechanism 14, the needle bar 7, and the like are controlled by a CPU 61 (refer to
A liquid crystal display 10 is provided on a front face of the pillar 3. A touch panel 16 is provided on a surface of the liquid crystal display 10. An embroidery pattern, an input key, and the like may be displayed on the liquid crystal display 10. A user may input one of a desired embroidery pattern and an operating command to the sewing machine 1 by touching a portion of the touch panel 16 that corresponds to the position where the one of the embroidery pattern and the input key is displayed on the liquid crystal display 10. An image that is captured by an image sensor 50 that will be described below may be displayed on the liquid crystal display 10. By operating the touch panel 16 using a stylus pen (not shown in the drawings) or the like, the user may specify a position of a reference point and an area in which an embroidery pattern will be sewn, which will be explained below. A card slot 17 (refer to
A thread spool (not shown in the drawings) that are used in sewing and the like may be provided in the arm 4. A front cover 19 is provided on the front faces of the arm 4 and the head 5. A plurality of operation switches such as a sewing start/stop switch 21, a reverse stitch switch 22, and the like are provided on the front cover 19. The sewing start/stop switch 21 is used for issuing a command to start or stop the sewing. The reverse stitch switch 22 is used for feeding a cloth from the rear toward the front, which is the opposite of the normal feed direction. A speed controller 23 is also provided on the front cover 19. The speed controller 23 is used for adjusting a sewing speed (a revolution speed of the drive shaft). The image sensor 50 (refer to
The image sensor 50 is a known CMOS image sensor and may capture an image. The image sensor 50 is provided such that the image sensor 50 faces downward. The image sensor 50 is capable of capturing an image of an area that includes a needle drop point. The needle drop point is a point at which a needle (not shown in the drawings) that is attached to the needle bar 7 pierces the work cloth 13. The image sensor 50 may be one of a CCD camera and another image capturing element.
The main electrical configuration of the sewing machine 1 will be explained with reference to
The CPU 61 performs various types of computations and processing in accordance with a control program and performs control over the sewing machine 1. The ROM 62 is a read-only storage element. The ROM 62 stores the control program and the like. The RAM 63 is a storage element that can be read from and written to as desired. The RAM 63 temporarily stores various types of data such as data for an image captured by the image sensor 50, computational results, and the like. The EEPROM 64 is a non-volatile memory. The EEPROM 64 stores various types of data including image data for a message, an operation key, and the like that are displayed on the liquid crystal display 10. The external access RAM 68 reads various types of data such as embroidery data of a unit pattern and the like from the memory card 70 that is connected to the card slot 17. In the present embodiment, the memory card 70 that is connected to the external access RAM 68 may include a unit pattern data storage area 71. The unit pattern data storage area 71 stores various types of data that are related to a plurality of types of unit patterns. In the sewing machine 1, it is possible to generate diverse embroidery data sets by arranging the unit patterns with regularity in accordance with a command from the user.
The sewing start/stop switch 21, the reverse stitch switch 22, the speed controller 23, the touch panel 16, the image sensor 50, and the like are connected to the input interface 65. Drive circuits 73 to 77 are electrically connected to the output interface 66. The drive circuit 73 drives a feed adjustment pulse motor 78. The feed adjustment pulse motor 78 adjusts a distance by which the cloth is fed by a feed dog (not shown in the drawings). The drive circuit 74 drives a sewing machine motor 79, which rotates the drive shaft. The drive circuits 75 and 76 respectively drive an X axis motor 80 and a Y axis motor 81. The X axis motor 80 and the Y axis motor 81 respectively move the embroidery frame 12 in the X axis direction and in the Y axis direction. The drive circuit 77 drives the liquid crystal display 10.
Processing performed by the sewing machine 1 according to the present embodiment will be explained with reference to
The sewing machine 1 may perform first data generating processing and second data generating processing to generate the embroidery data. In the first data generating processing, the embroidery data is generated based on two reference lines that intersect with each other and on positions of a plurality of reference points located on the reference lines. In the second data generating processing, the embroidery data is generated based on a shape of a parallelogram that is determined by three reference points. The user may operate the touch panel 16 or the like to issue a command to the sewing machine 1 to perform one the first data generating processing and the second data generating processing.
When the reference lines, which are used as references in generating the embroidery data, are set in the first data generating processing, the sewing machine 1 may perform one of first reference line setting processing and second reference line setting processing. In the first reference line setting processing, the user may operate the touch panel 16 to set the reference lines in the sewing machine 1. In the second reference line setting processing, the user may set the reference lines in the sewing machine 1 by specifying points on the work cloth 13 and causing the image sensor 50 to capture an image of the points. The user may issue a command to the sewing machine 1 to perform one the first reference line setting processing and the second reference line setting processing. The reference lines are virtually used as references to generate the embroidery data. In actuality, the reference lines are not drawn on the work cloth 13.
Hereinafter, the first data generating processing will be explained. When a command is issued to the sewing machine 1 to perform the first data generating processing, the CPU 61 starts the first data generating processing shown in
As shown in
A counter i, which indicates a reference point number, is set to 1 (step S24). A determination is made as to whether an operation has been performed to set a reference point between points [i] and [i+1] (step S25). In a case where the user has performed an operation to additionally set a reference point (YES at step S25), a specification of a position of a point [i+2] is accepted only when the point [i+2] is between the points [i] and [i+1] on the reference line (step S26). The counter i is increased by 1 (step S27), and then the processing returns to the determination at step S25. When no operation has been performed to set a reference point and an operation has been performed to terminate the setting of the reference point (NO at step S25), a determination is made as to whether two reference lines that intersect with each other have been set (step S28). If the two reference lines have not been set (NO at step S28), the processing returns to step S21. Then, the processing is performed to set the next reference line.
In a case where the two intersecting reference lines has been set (YES at step S28 in
As shown in
As shown in
An area of a parallelogram is calculated that has two pairs of opposite sides that are respectively parallel to the reference lines 31 and 32 and in which a length of the opposite sides in each of the pairs is a shortest distance between the reference points on each of the reference lines (step S9). In the example shown in
Rectangular areas are determined that fit into the calculated area of the parallelogram. One of the determined rectangular areas is set as an area in which the unit pattern will be sewn (step S10). Specifically, the size of one of the rectangular areas is the size of each of the unit patterns to be sewn. In the present embodiment, as shown in
As shown in
One of the arrangement positions that is within the sewing target area 38 is selected from among the arrangement positions in the arrangement set in the processing at one of steps S7 and S8, (step S43). A determination is made as to whether a unit pattern fits inside the sewing target area 38 in a case where the unit pattern is positioned in the selected arrangement position (step S44). If the unit pattern does not fit inside the sewing target area 38, namely, if the unit pattern to be positioned overlaps with a boundary of the sewing target area 38 (NO at step S44), the processing directly shifts to the next determination (step S46). If the unit pattern fits inside the sewing target area 38 (YES at step S44), the unit pattern is positioned in the selected arrangement position (step S45). Next, a determination is made as to whether the processing at steps S44 and S45 has been performed for all the arrangement positions within the sewing target area 38 (step S46). If the processing at steps S44 and S45 has not been performed for all the arrangement positions (NO at step S46), the processing returns to step S43. If the processing at steps S44 and S45 has been performed for all the arrangement positions (YES at step S46), the processing returns to the first data generating processing (refer to
An example of the first arrangement, in which the intersection points of the straight lines are set as the arrangement positions of the centers of the unit patterns, will be explained with reference to
An example of the second arrangement, in which the straight lines are set as the boundaries of the unit patterns, will be explained with reference to
As described above, the positions of at least three reference points are set in the sewing machine 1 of the present embodiment. Based on the positions of the set reference points, the two mutually intersecting reference lines 31 and 32 are set. Based on the distance between the reference points through which the reference lines 31 and 32 pass, a plurality of straight lines that run parallel to the reference lines 31 and 32 respectively are set. In this way, a reference plane on which the straight lines are arranged in a matrix is set. In the sewing machine 1, arrangement positions of the plurality of unit patterns are determined based on the set reference plane. The embroidery data is generated by positioning the selected type of unit patterns at the determined arrangement positions. As a result, in the sewing machine 1, it is possible to generate a variety of embroidery data in which, according to the positions of the set reference points, a distance between the unit patterns to be sewn, the arrangement of the unit patterns, etc. are different. It is possible to sew the plurality of unit patterns that are arranged in a user's desired arrangement on the work cloth 13.
Specifically, the user may freely set the distance between the unit patterns by varying the setting of the reference points. The arrangement of the unit patterns may be freely set. In addition, the angle at which the reference lines intersect may be freely set. As a result, the user may cause the sewing machine 1 to perform sewing of a desired variety of patterns.
In the sewing machine 1, the positions of the reference points are set in accordance with the operation of the touch panel 16 such that each of the set plurality of reference points is passed through by at least one of the two reference lines 31 and 32. Therefore, in the sewing machine 1, even when four or more reference points are set, the reference plane may be easily and accurately set based on the set reference points, and the embroidery data may be generated.
In the sewing machine 1, the intersection points of the straight lines on the reference plane may be determined as the arrangement positions of the centers of the unit patterns. In this case, the set reference points are set as the centers of the unit patterns, and the unit patterns are arranged with regularity. As a result, the user may easily ascertain the positions at which the unit patterns will be arranged and cause the sewing machine 1 to generate an embroidery data. Further, in the sewing machine 1, the straight lines on the reference plane may be set as the boundaries of the areas in which the unit patterns will be arranged, and the arrangement position of the unit patterns are thus determined. In this case, the user may accurately ascertain the boundaries of the areas in which the unit patterns will be arranged and cause the sewing machine 1 to generate an embroidery data.
In the sewing machine 1, the unit patterns may be arranged such that all the unit patterns fit inside the sewing target area 38 that has been set by the user. As a consequence, it is possible to generate embroidery data that suits the sewing target area 38, outside which the embroidery pattern will not extend. In addition, when the user has issued a command to the sewing machine 1 to perform the first reference line setting processing, by operating the touch panel 16 while viewing the work cloth 13 displayed on the liquid crystal display 10, the user may set the reference points at appropriate positions on the work cloth 13 as required. Furthermore, in the sewing machine 1, it is possible to perform sewing, based on the generated embroidery data, at an appropriate position on the sewing area of the work cloth 13 whose image has been captured by the image sensor 50. After the embroidery data has been generated, it is not necessary for the user to perform an operation such as adjusting the position of the work cloth 13 etc.
Next, processing will be explained in a case where a command is issued to perform the second reference line setting processing. In the second reference line setting processing, the user may specify in advance three or more points in desired positions on the work cloth 13, and use the embroidery frame 12 to set the work cloth 13 to the sewing machine 1 (refer to
As shown in
Next, the specified reference lines 51 and 52 are displayed on the liquid crystal display 10 (step S53). One of a recognized point that is not positioned on either the reference line 51 or 52 and a recognized point that has been selected by the user to have its position corrected is extracted (step S54). A position of the extracted recognized point is corrected to be on one of the reference lines (step S55). In the example shown in
Next, a determination is made as to whether there is a recognized point that is not on either the reference line 51 or 52 (step S56). If the recognized point exists that is not on either the reference line 51 or 52 (YES at step S56), the processing returns to step S54. Then, the position of the recognized point is corrected to be on one of the reference lines (steps S54 and S55). If no recognized point exists that is not on either the reference line 51 or 52 (NO at step S56), a determination is made as to whether a command has been given to redo the setting of the reference lines (step S57). If there is a command to redo the setting of the reference lines (YES at step S57), the processing returns to step S52. If there is a command to complete the setting of the reference lines (NO at step S57), the positions of the recognized points at that point in time are determined as the positions of the reference points. Then, the processing returns to the first data generating processing (refer to
As described above, when the user issued a command to the sewing machine 1 to perform the second reference line setting processing, points may be specified on the work cloth 13 and an image of the specified points may be captured by the image sensor 50. In this way, the reference points may be easily set at appropriate positions on the work cloth 13. In the sewing machine 1, even if a recognized point is not on either the reference line 51 or 52, the position of the recognized point (the reference point) may be corrected to be on at least one of the reference lines. Therefore, the recognized points may be appropriately used for generating data of a reference plane.
The second data generating processing will be explained. Unlike in the case of the first data generating processing, embroidery data is generated based on the shape of a parallelogram in the second data generating processing. In the following explanation, the same step numbers are respectively allocated to steps of the processing that are the same as in the first data generating processing, and an explanation of those same steps is omitted or simplified.
The user may specify three points on the work cloth 13 and input a command to the sewing machine 1 to perform the second data generating processing. When the command to perform the second data generating processing is input, the CPU 61 of the sewing machine 1 starts the second data generating processing shown in
As shown in
Next, a selection of a parallelogram is received (step S84). While viewing an arrow 57 displayed on the liquid crystal display 10, the user may operate the touch panel 16 to select a desired one of the three parallelograms 54 to 56. Of the four sides of the selected parallelogram, the CPU 61 extracts two adjacent sides, and sets straight lines that are extended lines of the extracted two sides as the reference lines (step S85). The processing returns to the second data generating processing (refer to
As shown in
As described above, when a command is issued to the sewing machine 1 to perform the second data generating processing, the sewing machine 1 may generate data of a reference plane based on a selected one of the three parallelograms. The selected parallelogram is formed in a plurality on the reference plane. As a result, the user may cause the sewing machine 1 to generate embroidery data while accurately ascertaining the shape of the area of the parallelogram in which a unit pattern will be arranged.
The embroidery data processing apparatus and the storage medium of the present disclosure are not limited to the embodiment that is described above, and various types of modifications may be made. For example, in the above-described embodiment, the embroidery data for sewing the plurality of unit patterns is generated by the sewing machine 1. However, the above-described embroidery data generating processing may be performed in another device such as a known personal computer or the like. In the above-described embodiment, programs that are executed by the CPU 61 to perform various types of processing are stored in the ROM 62. However, the programs may be stored in another storage medium such as the EEPROM 64, a CDROM, which is not shown in the drawings, or the like.
In the above-described embodiment, when the CPU 61 performs the second data generating processing to generate the embroidery data based on the shape of the parallelogram, the reference points are set by recognizing the positions of the points specified on the work cloth 13 by image processing. However, even in the second data generating processing, the CPU 61 may set the reference points in accordance with operation of the touch panel 16 or the like in the same manner as the processing at steps S21, S22, and S26 shown in
In the above-described embodiment, in the reference plane setting processing (refer to
In the above-described embodiment, the selection of a unit pattern (refer to step S41 in
In the above-described embodiment, when a command is issued to set the straight lines on the reference plane as the boundaries of the unit patterns, the CPU 61 determines the arrangement positions of the centers of the unit patterns to be the centers of the parallelograms formed by the straight lines. However, the centers of the parallelograms may not be the arrangement positions of the centers of the unit patterns. In other words, as long as the unit patterns to be arranged do not overlap with the straight lines, the CPU 61 may freely determine the arrangement positions of the unit patterns. The CPU 61 may change the size of the unit patterns to be arranged, in accordance with the size of the area of each of the parallelograms in which the unit patterns will be arranged.
The apparatus and methods described above with reference to the various embodiments are merely examples. It goes without saying that they are not confined to the depicted embodiments. While various features have been described in conjunction with the examples outlined above, various alternatives, modifications, variations, and/or improvements of those features and/or examples may be possible. Accordingly, the examples, as set forth above, are intended to be illustrative. Various changes may be made without departing from the broad spirit and scope of the underlying principles.
Number | Date | Country | Kind |
---|---|---|---|
2009-257191 | Nov 2009 | JP | national |