Plaque It!
Sponsored by: Flash of Genius |
This application claims priority from Japanese Patent Applications No. 2004-040938, filed on Feb. 18, 2004, and No. 2004-043172, filed on Feb. 19, 2004, No. 2004-096584, filed on Mar. 29, 2004, the entire subject matters of the applications are incorporated herein by reference thereto.
The present invention relates to an image editing device capable of creating print data, and a print/embroidery data creating method, device and a printing/embroidering system that create print/embroidery data.
Conventionally, there has been known a printing system that prints, in accordance with image data representing people, animals, sceneries and the like, an image pattern on a fabric such as a T-shirt with, for example, an inkjet printer. On the other hand, there has also been know an embroidering system that embroiders, in accordance with the image data, an image pattern on a fabric such as the T-shirt with, for example, an embroidering machine.
Printing of an image on the fabric and embroidering of an image on the fabric are often combined such that, for example, an image is embroidered on a T-shirt, and then, another image is printed on the embroidered image pattern. For this purpose, it is necessary to prepare print data for the printer, and embroidery data for the embroidering machine.
When the print data and the embroidery data are created independently, the resultant images of printing and embroidering do not have consistency therebetween in their positions and sizes. Conventionally, the adjustment is done by the user, which depends on the skill of the user. Such an adjustment should be done manually, and accordingly, it is troublesome and heavy burden to the user.
Japanese Patent Provisional Publication No. HEI 5-272046 discloses an embroidering machine equipped with a printer. With this embroidering machine, either the printing operation or embroidering operation can be executed easily, without replacing the fabric between the embroidering machine and the printer. According to the disclosed embroidering machine a combination pattern of printed image and embroidery can be formed on the fabric accurately. Further, according to the embroidering machine, threads of an embroidery that is formed by the embroidering machine can be colored with the printer equipped to the embroidering machine.
Even in the embroidering machine equipped with the printer as described above, the print data and the embroidery data are created according to a conventional method, i.e., created independently, based on the same image data. Since the fabric need not be replaced, the printed image and the embroidered image do not shift from each other. However, since the embroidery data and print data may not have consistency in position and size, even if a mechanical adjustment is accurate, there still remains some errors in position and/or size of the output images (i.e., printed/embroidered patterns). Therefore, even if the embroidering machine disclosed in Japanese Patent Provisional Publication No. HEI 5-272046 is used, the user is still required to adjust the position and/or size of the images, which is a troublesome and time-consuming job for the operator.
Further to the above, there is a case in which an image is printed on an embroidery. In such a case, a further problem may arise.
When an image is printed on a paper with an inkjet printer, permeability of ink of the paper is considered to be substantially even over the surface of the paper. When an image is printed on the fabric, the permeability differs may be different from that of the paper. Further, depending on the type of the fabric, the permeability may also be different. Therefore, in order to maintain the image quality, the ink ejection amount should be adjusted in accordance with the type of the fabric.
For example, Japanese Patent Publication No. 3100790 discloses an image recording device which contains a plurality of tables defining a relationship between the data corresponding to the darkness (thickness density) and the number of recording dots for a plurality of types of fabrics. When an image is printed on a fabric, one of the plurality of tables is selected corresponding to the type of the fabric, and obtains the number of recording dots corresponding to the value of the image data representing the thickness density. Then, based on the thus obtained data, a recording head is driven to form a gradation image on the fabric.
Japanese Patent Provisional Publication No. P2000-343687A discloses a printing device and a printing method that control a printing operation such that, for recording mediums having a variety of ink fixing property, a main scanning is performed with controlling an inkjet head standby time in accordance with information on the ink fixability. With this control, it is ensured that ink dots are formed and fixed. It should be noted that, as the information related to the ink fixability, information regarding the permeability of the ink for respective objects is used.
Japanese Patent Provisional Publication No. HEI 8-242386 also discloses an inkjet printer and an inkjet printing method. In this publication, when a printing operation is executed for fabrics of a plurality of types of fibers, image processing parameters are determined based on the image processing parameters of respective fibers and the composition ratio of the plurality of types of fibers so that the optimum coloring property is obtained for each type of fiber.
As described above, the devices and methods in the above-described publications, an appropriate printing operation is performed in accordance with the type of the material (fiber). It should be noted that, in each of the publications described above, it is assumed that, the property of the fabric remains unchanged during each printing operation. There are cases where the fabric contains weaving portions, embroidered portions or patch work portions, and thus, contains portions having different properties in terms of the ink permeability. The above-described publications cannot deal with a printing operation with respect to a fabric including a plurality of areas having different permeability.
The present invention is advantageous in that, when an image pattern represented by image data is printed and embroidered on a fabric, a part of the image pattern suitable to be embroidered and a part suitable to be printed are automatically determined and the print data and embroidery data are created with consistency regarding the position and size of the image therebetween. Further, it is possible that the print data and embroidery data are combined to a single piece of data.
The present invention is also advantageous in that the ink ejection amount can be controlled appropriately even when an object surface, on which an image is formed, has a plurality of areas respectively having different ink permeability characteristics.
According to an aspect of the invention, there is provided a print/embroidery data creating device that creates print/embroidery data from image data which is a collection of a plurality of pixels, the print/embroidery data being printed by a printer and embroidered by an embroidering machine. The print/embroidery data creating device is provided with a usable color designating system that allows a user to designate at least one usable color, an output information setting system that allows the user to set an output size and an output position of each of an embroidery of the embroidery data formed by the embroidering machine and a printout of the print data formed by the printer, a pixel examining system that examines whether each pixel of the image data corresponds to the usable color, an area setting system that sets a pixel area, which is a collection of pixels, determined to correspond to the usable color as a usable color area and sets an area which does not correspond to the usable color area as a print area, an embroidery data creating system that creates embroidery data such that a pixel area set as the usable color area by the area setting system is output as embroidered with a thread having a color corresponding to the usable color, the usable color area being output with the size set by the output information setting system at the position set by the output information setting system by the embroidering machine, and a print data creating system that creates print data such that a pixel area set as the print area by the area setting system is output as printed area with a color corresponding to the pixel color, the print area being output with the size set by the output information setting system at the position set by the output information setting system by the printer.
Optionally, the print/embroidery data creating device may further include a print/embroidery data creating system that creates print/embroidering data including both the print data and embroidering data.
Further, a ratio of a size of the image data in units of pixel to a measurable size of an embroidery formed by the embroidering machine is equal to a ratio of a size of the image data in units of pixel to a measurable size of a printout formed by the printing device.
Furthermore, the embroidery data may include information indicating color code of each thread and position and size of the embroidery the embroidery data represents, and stitch data indicating stitches for expressing the specific area.
Still optionally, the print data may include a pixel area of the image data which has been set as the print area, and position and size of a printout.
Optionally, the embroidery data creating system may create second embroidery data based on a pixel area that has been set as the print area by the area setting system.
Further, the second embroidery data may include a color code for white thread, size and position of an embroidery, and stitch data indicating needle fall points of the embroidering machine to express the print area with an embroidery.
The print/embroidery data creating device may further include a thread table storing a relationship between a plurality of embroidery thread and color codes thereof. The usable color designating system may designate one of the colors corresponding to the codes stored in the thread table as the usable color.
Further optionally, the pixel examining system may determine that a pixel corresponds to the usable color when a distance of the color of the pixel and the usable color in a certain color space is smaller than a predetermined threshold value.
According to a further aspect of the invention, there is provided a computer program product comprising computer accessible instructions that cause a computer to serve as a print/embroidery data creating device that creates print/embroidery data from image data which is a collection of a plurality of pixels, the print/embroidery data being printed/embroidered by printer/embroidering machine. The print/embroidery data creating device may include a usable color designating system that allows a user to designate at least one usable color, an output information setting system that allows the user to set an output size and an output position of each of an embroidery of the embroidery data formed by the embroidering machine and a printout of the print data formed by the printer, a pixel examining system that examines whether each pixel of the image data corresponds to the usable color, an area setting system that sets a pixel area, which is a collection of pixels, determined to correspond to the usable color as a usable color area and sets an area which does not correspond to the usable color area as a print area, an embroidery data creating system that creates embroidery data such that a pixel area set as the usable color area by the area setting system is output as embroidered with a thread having a color corresponding to the usable color, the usable color area being output with the size set by the output information setting system at the position set by the output information setting system by the embroidering machine, and a print data creating system that creates print data such that a pixel area set as the print area by the area setting system is output as printed area with a color corresponding to the pixel color, the print area being output with the size set by the output information setting system at the position set by the output information setting system by the printer.
According to a furthermore aspect of the invention, there is provided a method of creating print/embroidery data from image data, the print/embroidery data being printed/embroidered by a printer and an embroidering machine, the method including the steps of designating at least one usable color, first setting an output size and an output position of each of an embroidery of the embroidery data formed by the embroidering machine and a printout of the print data formed by the printer, judging whether each pixel of the image data corresponds to the usable color, second setting a pixel area, which is a collection of pixels, determined to correspond to the usable color as a usable color area and sets an area which does not correspond to the usable color area as a print area, creating embroidery data such that a pixel area set as the usable color area is embroidered with a thread having a color corresponding to the usable color, the usable color area being output with the size set by the first setting step at the position set by the first setting step, and creating print data such that a pixel area set as the print area by the second setting step is output as printed area with a color corresponding to the pixel color, the print area being output with the size set by first setting step at the position set by the first setting step.
According to another aspect of the invention, there is provided a structure of print/embroidery data, which includes embroidery data which is read by an embroidering machine that forms an embroidery on an object, the embroidery data corresponding to an output size and an output position on the object, and print data which is read by a printing device that forms a printed image on the object, the print data corresponding to the output size and the output position on the object.
Optionally, a ratio of a size of the image data in units of pixel to a measurable size of an embroidery formed by the embroidering machine is equal to a ratio of a size of the image data in units of pixel to a measurable size of a printout formed by the printing device.
Further, the embroidery data may be configured to include information indicating color code of each thread and position and size of the embroidery the embroidery data represents, an d stitch data indicating stitches for expressing the specific area.
Furthermore, the print data may be configured to include a pixel area of the image data which has been set as the print area, and position and size of a printout.
According to a further aspect of the invention, there is provided a print/embroidery data creating device that creates print/embroidery data from image data which is a collection of a plurality of pixels, the print/embroidery data being printed by a printer and embroidered by an embroidering machine. The print/embroidery data creating device includes a usable color designating system that allows a user to designate at least one usable color of at least one thread, an output information setting system that allows the user to set an output size and an output position of each of an embroidery of the embroidery data formed by the embroidering machine and a printout of the print data formed by the printer, a stitch data setting system that sets stitch data constituting an embroidery pattern, a minute area setting system that sets a line segment constituting an expressive portion of a stitch of the stitch data as a minute area of the image data, a judging system that judges whether at least one pixel included in the minute area set by the minute area setting system corresponds to the usable color, an area setting system that sets the minute area as the embroidery area if the judging system determines that the at least one pixel included in the minute area corresponds to the usable color, the area setting system setting the minute area as the print area if the judging system determines that the at least one pixel included in the minute area does not correspond to the usable color, an embroidery data creating system that creates embroidery data such that each minute area determined as the embroidery area by the area setting system is output as embroidered with a thread having a color corresponding to the usable color, the minute area being output with the size set by the output information setting system at the position set by the output information setting system by the embroidering machine, and a print data creating system that creates print data such that each minute area determined as the print area by the area setting system is output as a printout with a color corresponding to the pixel color, the minute area being output with the size set by the output information setting system at the position set by the output information setting system by the printer.
Optionally, the area setting system may set the minute area as the embroidery area if the pixel examining system determines that a predetermined portion or more of at least one pixel included in the minute area corresponds to the usable color.
Further optionally, the area setting system may set the minute area as the embroidery area if a color of a pixel corresponding to the start of the stitch corresponds to one of the usable colors, and if the pixel examining system determines that a predetermined portion or more of at least one pixel included in the minute area corresponds to the usable color.
Still optionally, the stitch data setting system may include a stitch data reading system that reads preliminarily prepared stitch data.
Further, the area setting system may set a part of the image data excluding all of the minute areas as the print areas.
Optionally, the embroidery data creating system may create second embroidery data from the minute areas set as the print areas by the area setting system.
Furthermore, the pixel examining system may determine that a pixel corresponds to the usable color if a distance between the color of the pixel and the color of the usable color in a predetermined color space is greater than a predetermined threshold value.
Optionally, the print/embroidery data creating device may further include a print/embroidery data creating system that creates print/embroidery data containing the print data and the embroidery data in a related manner.
According to another aspect of the invention, there is provided a method of creating print/embroidery data from image data, the print/embroidery data being printed/embroidered by a printer and an embroidering machine. The method includes the steps of designating at least one usable color of at least one thread, setting an output size and an output position of each of an embroidery of the embroidery data formed by the embroidering machine and a printout of the print data formed by the printer, setting stitch data constituting an embroidery pattern, setting a line segment constituting an expressive portion of a stitch of the stitch data as a minute area of the image data, judging whether at least one pixel included in the minute area set by the minute area setting system corresponds to the usable color, setting the minute area as the embroidery area if the at least one pixel included in the minute area corresponds to the usable color, otherwise setting the minute area as the print area if the at least one pixel included in the minute area does not correspond to the usable color, creating embroidery data such that each minute area is output as embroidered with a thread having a color corresponding to the usable color, the minute area being output with the size at the position as set, and creating print data such that each minute area is output as a printout with a color corresponding to the pixel color, the minute area being output with the size at the position as set.
According to a further aspect of the invention, there is provided a computer program product comprising computer accessible instructions that cause a computer to serve as a print/embroidery data creating device that creates print/embroidery data from image data which is a collection of a plurality of pixels, the print/embroidery data being printed/embroidered by printer/embroidering machine. The instructions realizes the method described above. In other words, with the method, the computer serves as the print/embroidery data creating device which includes a usable color designating system that allows a user to designate at least one usable color of at least one thread, an output information setting system that allows the user to set an output size and an output position of each of an embroidery of the embroidery data formed by the embroidering machine and a printout of the print data formed by the printer, a stitch data setting system that sets stitch data constituting an embroidery pattern, a minute area setting system that sets a line segment constituting an expressive portion of a stitch of the stitch data as a minute area of the image data, a judging system that judges whether at least one pixel included in the minute area set by the minute area setting system corresponds to the usable color, an area setting system that sets the minute area as the embroidery area if the judging system determines that the at least one pixel included in the minute area corresponds to the usable color, the area setting system setting the minute area as the print area if the judging system determines that the at least one pixel included in the minute area does not correspond to the usable color, an embroidery data creating system that creates embroidery data such that each minute area determined as the embroidery area by the area setting system is output as embroidered with a thread having a color corresponding to the usable color, the minute area being output with the size set by the output information setting system at the position set by the output information setting system by the embroidering machine, and a print data creating system that creates print data such that each minute area determined as the print area by the area setting system is output as a printout with a color corresponding to the pixel color, the minute area being output with the size set by the output information setting system at the position set by the output information setting system by the printer.
According to another aspect of the invention, there is provided an image editing device capable of creating print data for an inkjet printer that ejects ink drops from an inkjet head to a fabric to print an image thereon. The image editing device is provided with a display device that displays image data input to the image editing device, an area designating system that allows a user to designate a specific area of the input image data displayed on the display device, an ejection amount designating system that allows the user to designate an ejection amount of ink, which is ejected from the inkjet head, corresponding to the specific area designated by the user, an ejection amount storing system that stores the ejection amount of ink designated by the ejection amount designating system, and a print data creating system that creates print data for the specific area based on the ejection amount of ink stored in the ejection amount storing system.
Optionally, the fabric may include a plurality of areas respectively having different permeability, and the area designating system designates a portion of the input image corresponding to one of the plurality of areas as the specific area.
Further optionally, the plurality of areas have different types of material, respectively. Alternatively or optionally, the plurality of areas may have different surface conditions, respectively.
Further, the image editing device may include a reading system that reads a surface of the fabric as captured image data, and a display controlling system that displays the captured image data read with the reading system on the display device together with the input image in an overlapped manner. The area designating system may allow the user to refer to the captured image data when the specific area is designated.
Still optionally, the image editing device may include an embroidery data creating system that creates embroidery data which is used by an embroidering machine to form an image pattern on the fabric. The area designating system may allow the user to designate an area of the input image data corresponding to the embroidery data created by the embroidery data creating system.
Further, the image editing device may include a color conversion table storing system that stores a plurality of color conversion tables corresponding to ink ejection amounts through the inkjet head, and a selecting system that selects one of the color conversion tables stored in the color conversion table storing area, the one of the color conversion tables corresponding to the ink ejection amount designated by the ink ejection amount designating system.
According to another aspect of the invention, there is provided a method of creating print data for an inkjet printer that ejects ink drops from an inkjet head to a fabric to print an image thereon. The method includes the steps of displaying input image data, first designating a specific area of the input image data displayed on the display device, second designating an ejection amount of ink, which is ejected from the inkjet head, corresponding to the specific area designated in the first designating step, storing the ejection amount of ink designated in the second designating step, and creating the print data for the specific area based on the ejection amount of ink stored in the storing step.
Optionally, the fabric may include a plurality of areas respectively having different permeability, and the first designating step designates a portion of the input image corresponding to one of the plurality of areas as the specific area.
Still optionally, the plurality of areas have different types of material, respectively.
Further, the plurality of areas may have different surface conditions, respectively.
Further optionally, the image editing method may further includes the steps of reading a surface of the fabric as captured image data, and displaying the captured image data read with the reading system on the display device together with the input image in an overlapped manner, The first designating step may refer to the captured image data when designating the specific area.
The image editing method may further include a step of creating embroidery data which is used by an embroidering machine to form an image pattern on the fabric. The first designating step may designate an area of the input image data corresponding to the embroidery data created by the embroidery data creating system.
Further, the image editing method may include the steps of storing a plurality of color conversion tables corresponding to ink ejection amounts through the inkjet head, and selecting one of the color conversion tables stored in the color conversion table storing steps, the one of the color conversion tables corresponding to the ink ejection amount designated second designating step.
According to a further aspect of the invention, there is provided a computer program product comprising computer accessible instructions that cause a computer to execute a method of creating print data for an inkjet printer that ejects ink drops from an inkjet head to a fabric to print an image thereon, the instructions comprising displaying input image data, first designating a specific area of the input image data displayed on the display device, second designating an ejection amount of ink, which is ejected from the inkjet head, corresponding to the specific area designated in the first designating step, storing the ejection amount of ink designated in the second designating step, and creating the print data for the specific area based on the ejection amount of ink stored in the storing step.
FIG. 1 shows a system configuration of a print/embroidery data creating device to according to the present invention;
FIG. 2 is a block diagram illustrating an electrical configuration of an image editing device according to the invention;
FIG. 3 schematically shows a structure of a RAM of the image editing device shown in FIG. 1;
FIG. 4 is a flowchart illustrating an overall flow from input of image data to output of image pattern on an object according to a first embodiment;
FIG. 5 is an exemplary image of the image data;
FIG. 6 is a flowchart illustrating a main procedure of the print/embroidery data creating procedure;
FIG. 7 shows a usable color input dialogue;
FIG. 8 shows a color correspondence table;
FIG. 9 is a flowchart illustrating a usable color area separating procedure;
FIGS. 10A and 10B respectively show usable color area and print area set by the usable color area separating procedure;
FIGS. 11A and 11B show embroidery data corresponding to the usable color area and to the print area set by the usable color area separating procedure, respectively;
FIG. 12 shows an example of the embroidery data synthesized by an embroidery data synthesizing procedure;
FIG. 13 is a conceptual chart illustrating the stitch data contained in the embroidery data;
FIG. 14 shows an exemplary image represented by the embroidery data which is data synthesized by the embroidery data synthesizing procedure;
FIG. 15 shows a exemplary table indicating the print data which is data created by the embroidery data synthesizing procedure;
FIG. 16 shows a exemplary image represented by the print data which is data created by the embroidery data synthesizing procedure;
FIGS. 17A-17C illustrate image patterns output by a print/embroidery data editing procedure;
FIGS. 18A-18C illustrate image patterns output by a print/embroidery data editing procedure according to a second embodiment;
FIG. 19 shows a usable color input window;
FIG. 20 shows a thread-color table;
FIG. 21 shows an example of image data;
FIG. 22 is a flowchart illustrating the main flow of the print/embroidery data creating procedure according to a third embodiment;
FIG. 23 shows an example of a stitch designation dialogue;
FIGS. 24 and 25 are charts illustrating the output size and position of the image pattern;
FIG. 26 is a flowchart illustrating the color continuity examining procedure according to the third embodiment;
FIG. 27 shows a relationship between the pixels constituting the image data and the assumed stitches;
FIG. 28 shows an output pattern corresponding to the image data shown in FIG. 21;
FIG. 29 shows embroidery areas determined from the image data shown in FIG. 21;
FIG. 30 shows a print area determined from the image data shown in FIG. 21;
FIG. 31 shows an example of the output pattern based on the synthesized embroidery data;
FIG. 32 shows an output pattern corresponding to the print data;
FIGS. 33A-33C illustrate output patterns according to the third embodiment;
FIGS. 34A-34C illustrate output patterns according to a modification of the third embodiment;
FIG. 35 shows an exemplary structure of a color conversion table stored in a color conversion table storing area;
FIG. 36 is a flowchart illustrating a main procedure of the image editing device according to a fourth embodiment;
FIG. 37 is a flowchart illustrating an area designating procedure called in the main procedure shown in FIG. 36;
FIG. 38 is a flowchart illustrating an embroidery data creating procedure called in the main procedure shown in FIG. 36;
FIG. 39 is a flowchart illustrating an ejection amount designating procedure called in the main procedure shown in FIG. 36;
FIG. 40 is a flowchart illustrating a print data creating procedure called in the main procedure sown in FIG. 36;
FIG. 41 is an example of a screen image corresponding to input image data;
FIG. 42 is similar to FIG. 41 and further a dialogue requesting a user to designate an area;
FIG. 43 is a screen image showing a dialogue requesting the user to de designate the ink ejection amount level;
FIG. 44 is a screen image showing the image to be formed and ink ejection amounts at respective areas;
FIG. 45 is a screen image when areas for the embroidery data have been designated;
FIG. 46 is an exemplary screen image of the designated areas for the embroidery data with a type of embroidery being indicated;
FIG. 47 is a screen image of a pattern to be formed in accordance with the embroidery data and the print data; and
FIG. 48 is a flowchart illustrating an overall flow according to a fifth embodiment.
Referring now to the accompanying drawings, embodiments of the invention will be described in detail.
Initially, a print/embroidery data creating device 1 according to the present invention will be described with reference to FIGS. 1 through 3.
The print/embroidery data creating device 1 creates print/embroidery data, which is a combination of print data and embroidery data related to each other, based on a single piece of image data so that a pattern represented by the image data is printed/embroidered by an inkjet printer and an embroidery machine.
The inkjet printer is a printer which ejects drops of ink to an object to form images/characters on the object. Specifically, the inkjet printer is configured such that ink is introduced a plurality of ejection channels provided to inkjet heads from an ink reservoir. By selectively driving actuators such as heat generating elements or piezoelectric elements, ink drops are ejected from ejection nozzles respectively provided to the ink ejection channels. When a color image is printed, the color of each pixel of the image is divided into components of three primary colors, cyan (C), magenta (M) and yellow (Y), and by adjusting the thickness density of each color component, a desired color is realized. A black pixel is formed as a mixture of three primary color components having maximum values. It is known, however, the black formed by mixing the three primary colors has low contrast and dull. Therefore, recently, the black component is added and a color image is typically formed with CMYK components.
The inkjet printer is connected with a personal computer (PC) that controls the operation of the inkjet printer. The PC stores various applications (programs) controlling the operation of the inkjet printer, and a printer driver that converts the print data to data intrinsic to the inkjet printer. Further, the ink jet printer is provided with a memory card read/write drive. Thus, by inserting a memory card storing print data, the print data can be input to the inkjet printer from an external device. Typically, the print data includes data indicating pixel areas which is defined as a print area, and information indicative of print position and size. In accordance with the print data configured as above, a control mechanism of the inkjet printer automatically executes a printing operation, in accordance with the print data.
An embroidering machine is configured such that an embroidery frame for holding a fabric which will be embroidered is moved horizontally by a horizontal driving system to a position in an X-Y coordinate system. While the embroidery frame is being moved horizontally, sewing (embroidering) operation is performed so that a desired pattern is formed on the fabric held by the embroidery frame. The horizontal driving system and sewing mechanism are controlled by a control unit having a microprocessor built in the embroidering machine.
The embroidering machine has a memory card read/write device. By loading a memory card storing the embroidery data, it embroidery data can be input to the embroidering machine from an external device. Typically, the embroidery data contains color code, information indicating positions and sizes of embroideries, and stitch data used for respective embroideries. Based on the embroidery data, the embroidering machine automatically executes the embroidering operation.
FIG. 1 shows a system configuration of a print/embroidery data creating device 1 according to the invention, and FIG. 2 is a block diagram showing a functional configuration of the print/embroidery data creating device 1 .
The print/embroidery data creating device 1 is for editing/creating the embroidery data and print data to be supplied to the embroidering machine and inkjet printer, respectively. The print/embroidery data creating device 1 includes a main body 10 , a mouse 21 , a keyboard 22 , a memory card connector 23 , a display 24 , an image scanner 25 and a printer 26 . The mouse 21 , keyboard 22 , memory card connector 23 , display 24 , image scanner 25 and printer 26 are all connected to the main body 10 .
As shown in FIG. 2, the print/embroidery data creating device 1 includes a CPU 11 , a ROM 12 , a RAM 13 , and an I/O interface 14 . The mouse 21 , keyboard 22 , memory card connector 23 , display 24 , image scanner 25 and inkjet printer 26 are connected to the I/O interface 14 . In FIG. 2, MC denotes a memory card to be inserted in the memory connector 23 . The I/O interface 14 is also connected with an HDD (hard disk drive) 70 . The HDD 70 includes a program storing area 7 storing programs executed by the CPU 11 , and a color conversion table storing area 72 .
The CPU 11 executes various operations in accordance with a print/embroidery data creating program, which is stored in the ROM 12 . It should be noted that, if the print/embroidery data creating device 1 is a dedicated device, the program may be stored in the ROM 12 . If the device 1 is used as a general purpose device, the program may be stored in the HDD and is retrieved in the RAM 13 for execution.
The RAM 13 is a readable/writable memory and is capable of storing image data transmitted from the image scanner 25 and/or retrieved from an external device such as the hard disk (not shown), CD-ROM and CD-R.
Next, the overall flow of operations from input of image data to completion of producing the T-shirt will be described in detail.
FIG. 2 schematically shows a structure of the RAM 13 of the image editing device 1 shown in FIG. 1. As illustrated, the RAM 13 has a print data storing area 321 for temporarily storing print data created by the print/embroidery data creating device 1 , an input image data storing area 322 for storing an input image prepared and input by a user of the print/embroidery data creating device 1 , a scanned image data storing area 323 for storing the imaged data representing the image scanned by the scanner 25 , and an ejection amount storing area 324 (which will be referred to in a fourth embodiment) for temporarily storing the ink ejection amount designated by the user with respect each of the designated areas of the image data. Although not indicated, the RAM 13 also includes other areas for storing various data.
FIG. 4 is a flowchart illustrating an overall operation from input of image data to output of image pattern on an object (e.g., T-shirt). FIG. 5 shows an example of the input image data.
As shown in FIG. 4, a user of the print/embroidery data creating device 1 inputs image data in the main body 10 . The image data to be input may be created using the image scanner 25 , or retrieved from an external storage such as the hard disk, CD-ROM, CD-R and input to the main body 10 . According to the first embodiment, it is assumed that a photograph of a person as shown in FIG. 5 is scanned by the image scanner 25 to generate the image data.
Next, upon instruction of the user, a print/embroidery data creating procedure is executed (S 202 ). By the print/embroidery data creating procedure, the print/embroidery data is created based on the image data input in S 201 .
The print/embroidery data creating procedure will be described in detail.
FIG. 6 is a flowchart illustrating a main procedure of the print/embroidery data creating procedure which is called in S 202 of the flowchart shown in FIG. 4. In this procedure, process requests the user to designate usable colors (S 211 ). The term “usable color(s)” in this specification is defined as colors to be used in the embroidering machine and are arbitrarily designated by the user. Specifically, in S 211 , a usable color input dialogue as shown in FIG. 7 is displayed on the display 24 . Then, the user designates, using the mouse 21 and keyboard 22 , one of more colors as the usable colors. In this step (S 211 ), process firstly asks the user to input the number of colors of the embroidery threads to be used. Then, process requires the user to fill in the usable color input dialogue by the input number of times so that the color information and color code for each embroidery thread is set. As the information for each embroidery thread has been input, a usable color table as shown in FIG. 8 is created.
In the usable color table shown in FIG. 8, the RGB values are stored related to the color codes, respectively. The usable color table is created in the RAM 13 of the main body 10 , and stored in the RAM 13 . Optionally, the user may set the order of usage of the colors (threads) in S 211 , which may also be stored in the RAM 13 . It should be noted that the order of the usage of the color threads may be set beforehand, or the user may input the order following input instructions displayed on the display 24 . The designated usage colors should be identical to the colors of the threads used in the embroidering machine. However, it may be modified such that the threads having colors not identical but close to the designated usage colors may be selected in the embroidering machine.
In the first embodiment, for the sake of brevity, it is assumed that the user designate “black” as the usable color. Thus, through the input dialogue shown in FIG. 7, the thread information and color code for black are input, and in the usable color table (FIG. 8), the color code of the black thread and its RGB values are stored.
In S 212 , the user designates the output size and output position. The output size represents the actual size of an image formed (printed/embroidered) on the fabric (e.g., T-shirt), and the output position represents the actual position of the image formed on the fabric. The user inputs the output size and output position, using the mouse 21 and keyboard 22 , through an input dialogue (not shown) displayed on the display 24 . Although not shown, it is preferable that the designation of the size and position may be input using the unit of cm (centimeters), mm (millimeters), inches or the like. The unit of pixel may be inappropriate for this purpose since it does not indicate a measurable length. In the first embodiment, it is assumed that the image as shown in FIG. 5 is output at a predetermined position on the T-shirt, the size of the image being 120 mm (H)×90 mm (W).
It should be noted that, when the image shown in FIG. 5 is input, either the entire image or only a part of the image may be output. In the first embodiment, it is assumed that, in the image shown in FIG. 5, a background portion other than the person is excluded from the output image, and only the face and neck of the person are output by printing and embroidery. It should be note that designation of portions to be output can be done by displaying an image as shown in FIG. 5 on the display 24 , and allowing the user to designate the portions to be output with the mouse 21 and the keyboard 22 . Such an image editing process is well-known, and is not described in detail herein.
When the usable colors are designated in S 211 , and the output size and position are designated in S 212 , an area separating procedure is executed in S 213 . In the area separating procedure, process judges whether each pixel of the image data input in S 201 corresponds to the usable colors designated in S 211 . If the color of a pixel corresponds to one of the usable colors, the pixel is determined to be in an area which is embroidered with the thread having the corresponding color. Otherwise, the pixel is determined to be out of areas which are embroidered. The pixels which are not included in the embroidered areas are formed by printing (i.e., regarded to be included in a printing area). In the first embodiment, as described above, the usable color is assumed to be one, black. Additionally, it is assumed that, in the embroidering machine, the other area (i.e., the area other than the areas corresponding to the usable colors) is embroidered with white threads.
As shown in FIG. 9, in the area separation procedure (S 213 ), a threshold value T is set (S 231 ). The threshold value T serves as a standard for determining whether it belongs to the usable color areas. The threshold value T may be determined by the user for each usable color, or one threshold value T may be used for all the usable colors. Alternatively, a value preliminarily stored in the main body 10 may be used automatically as the threshold value T.
Next, for each pixel of the image data input in S 201 , scanning is performed and each pixel is examined. For this purpose, an initial point (X=0, Y=0) of the X-Y coordinate system is set (S 232 ). Then, the RGB values of a pixel (X, Y) are obtained (S 233 ). Since the first values of X and Y are 0 and 0, respectively, initially, the RGB values of pixel (0, 0) are obtained.
When the RGB values of the pixel (X, Y) are obtained in S 233 , a color difference distance D is calculated (S 234 ). The color difference distance is the absolute value of a distance between the RGB values of the usable color and those of the notice pixel. When the color distance value D is greater, the difference between the color of the notice pixel and the usable color is greater, and if the color distance value D is smaller, the difference between the color of the notice pixel and the usable color is also smaller. The color difference distance D is defined by the following formula:
D ={square root}{square root over (( r 1 −r 2) 2 +( g 1 −g 2) 2 +( b 1 −b 2) 2 )} (1)
where the RGB values of the usable color are (r1, g1, b1), and the RGB values of the notice pixel are (r2, g2, b2).
Next, the color difference distance D calculated in S 234 and the threshold value T set in S 231 are compared (S 235 ). As a result of the comparison, if the color difference distance D is equal to or less than the threshold value T (S 235 : YES), the notice pixel is determined to fall within the usable color area (S 236 ). If the color difference distance D is greater than the threshold value T (S 235 : NO), the notice pixel is determined to be in the print area (S 237 ).
That is, in S 235 , if the color difference distance D is equal to or smaller than the threshold value T, process determines that the color of the notice pixel is within a color range which can be expressed as the usable color. If the color difference distance D is greater than the threshold value T, process determines that the color of the notice pixel is very different from the usable color and the pixel color cannot be expressed using the usable colors. In such a case, the notice pixel is determined to be within a print range in which the color is expressed by the printed image.
If all the pixels have not been processed (S 238 : NO), that is, there remains unprocessed pixels, next values of X and Y coordinates are set (S 239 ), and process returns to S 233 . Until all the pixels are processed, steps S 233 through S 238 are repeated. As a result, for example, the usable color is “black”, an area consists of a group of pixels corresponding to “black” is set as the usable color area, and the other areas are set as the print areas.
After all the pixels constituting the image data have been processed (S 238 : YES), if the procedure has not been performed for all the usable colors (S 240 : NO), process returns to S 231 . That is, if a plurality of usable colors have been designated in S 211 and for at least one of the usable colors, the above steps have not been executed, process returns to S 231 . If for all the usable colors, the above steps have been finished, process finished the procedure. Accordingly, for all the usable colors designated in S 211 , steps S 231 -S 240 are repeated. As a result, if in S 211 , “black” and “red” are designated, the usable color areas and print areas for “black” and the usable color areas and print areas for “red” are set. If a plurality of usable color areas are set; areas which do not correspond to any one of the usable colors are determined as the print areas, finally, and the other areas are set as one of the plurality of usable color areas.
As above, by the area separation procedure (FIG. 6: S 213 ), the pixels of the image data input in S 201 are categorized into the pixels included in the usable color areas, which will be embroidered by the embroidering machine, and the pixels included in the print areas, which will be formed by the inkjet printer. According to the first embodiment, the image data input is S 201 is a photographic image of a human face as shown in FIG. 5, and the usable color designated by the user in S 211 is “black”. Therefore, the pixels of the image data shown in FIG. 5 are grouped and separated as shown in FIGS. 10A and 10B. As shown in FIG. 10A, in this example, the area set as the usable color area corresponds to the hair portion, the pixels of which has a relatively small color difference distance D with respect to “black”. The other areas, i.e., the pixels of the area other than the usable color area correspond to the portion of the face other than the hair portion as shown in FIG. 10B.
Back to FIG. 6, in the main body 10 , an embroidery data creating procedure is executed (S 214 ) after the area separation procedure (S 214 ). In the embroidery data creation procedure, the embroidery data is created based on the usable color areas.
The embroidery data includes a color code, an embroidery position, a size of the embroidery and stitch data indicating stitches for forming an image pattern with stitches. The stitch data indicates stitch positions by means of, for example, a moving amount, at every stitch, of the fabric in the X-axis and Y-axis directions in the X-Y coordinate system intrinsic to the embroidering machine.
Further, in the embroidery data creating procedure (S 214 ), the image data represented in units of pixels is converted into the actual output size. The position at which the image pattern is embroidered is also represented by actual position on the fabric. Thus, the stitch data including the actual stitch positions on the fabric is created. In this example of the first embodiment, in S 212 , the user has designated that the image of 12 cm (H)×9 cm (W) is output on a predetermined position of the fabric.
It should be noted that a ratio of the size of the image data in units of the pixel to the size thereof in units of the actual length (cm, mm or the like) in the embroidery data creating procedure (S 214 ) is equal to a ratio of the size of the image data in units of pixel to the size thereof printed out by the inkjet printer in the print data creating procedure (S 216 ). With this setting, the embroidery data created by the embroidery data creating procedure (S 214 ) and the print data created by the print data creating procedure (S 216 ) are converted at the same ratio. Therefore, there embroidery data and the print data have consistency in the output sizes and output positions.
Various methods have been conventionally known for creating the embroidery data from the image data, and any one of the conventional methods can be employed in the present invention. In the first embodiment, as an example, the embroidery data creating method described in Japanese Patent Provisional Publication No. P2001-259268A is employed. This method is particularly applicable when the original image having a characteristic such that its thickness density or color changes two-dimensionally and continuously is to be re-formed with the embroidery.
According to the first embodiment, in S 214 , the embroidery data for the usable color of “black” is created. Further, according to the first embodiment, to the areas other than the usable color area (i.e., the print area), an embroidery with “white” threads is assigned. Therefore, according to the first embodiment, with respect to the area set as the print area, the embroidery data creating procedure (S 214 ) is executed, and the embroidery data of the usable color of “white” is created, which will be referred to as second embroidery data.
FIG. 11A shows the pattern represented by the embroidery data of the usable color (i.e., “black”). In the usable color area set in the area separation procedure (FIG. 9) corresponding to the hair portion of the person shown in FIG. 5, the embroidery data for the “black” thread is created. FIG. 11B shows the pattern represented by the embroidery data of the color of “white”. As afore-mentioned, for the area determined as the print area in S 213 , which is the area other than the hair portion of the person shown in FIG. 5, the second embroidery data, which represent the embroidery with “white” thread. It should be noted that the output size of each of the patterns shown in FIGS. 11A and 11B is 12 cm (H)×9 cm (W), which has been input by the user in S 212 .
In the main body 10 , when the embroidery data creating procedure (S 214 ) is executed and the embroidery data for each usable color is created, an embroidery data synthesizing procedure for combining all the pieces of the embroidery data into one embroidery data is executed (S 215 ). That is, the embroidery data for each usable color is synthesized to form the synthesized embroidery data having a form of: “color code for white”+“stitch data in print area”+“color code for usable color 1”+“stitch data corresponding to usable color 1”+“color code for usable color 2”+“stitch data corresponding to usable color 2” . . . “color code for usable color n”+“stitch data corresponding to usable color n”. The synthesized embroidery data is configured such that embroidery data for respective usable colors is bunched into one data, and further contains the stitch data indicating the position of the embroidery on the fabric and related information including the color codes of the usable colors. The synthesized embroidery data represents the actual output size and output position of the embroidery formed by the embroidering machine.
The embroidery data will be described in detail, referring to FIGS. 12 and 13.
As shown in FIG. 12, the synthesized embroidery data includes the color change code 41 , stitch code 42 , feed code 43 and end code 44 . The color change code 41 indicates the color code of the usable color. The stitch code 42 is coordinate information indicating embroidered positions using the thread of the usable color indicated by the color change code 41 . The feed code 43 is inserted between discrete stitches and indicates a break of continuous stitches. The end code 44 is a indication code provided at the end of the embroidery data. The embroidering machine recognized the end of the embroidery data as it detects the end code 44 . Each piece of embroidery data corresponding to each usable color starts from the color change code 41 , and includes repetition of the stitch code 42 and feed code 43 . The embroidery data for respective usable colors are synthesized to one piece of data and the end code 44 is added at the end thereof. The thus created data is the synthesized embroidery data created in S 214 .
In the embroidering machine, the synthesized embroidery data is read from the top. When the color change code 41 is read, the thread having the color same as the usable color indicated by the color change code 41 is automatically set to a predetermined position, or notifies the user that the thread should be placed at the predetermined position. Then, in accordance with the coordinates (stitch points) indicated in the subsequent stitch code 42 , the embroidery operation using the thread of the usable color is executed. In the example of FIG. 12, the stitch code 42 is configured such that the moving amounts of the fabric in the X and Y directions for each stitch are indicated with continuous values of the X-coordinate and Y-coordinate.
Further, when the feed code 43 is read, in the embroidering machine, it is determined that the operation comes to the end of the continuing stitches, and the ending stitch is performed. Thereafter, the next stitch code 42 is read, the fabric is moved such that the next needle fall point indicated in the stitch code 42 is located at the needle position with the embroidering movement being stopped. When the needle fall point is located at the needle position, the ending stitch is executed again. As above, before and after the feed code 43 , the ending stitches are performed. The ending stitches are performed because of the following reason.
In a case of embroidering, the length of one stitch is 1-3 mm. When the embroidery is to be formed with the same usable color is discontinued, if the stitches are done continuously without forming a break, the embroidery may be unraveled. Therefore, between the discontinued stitches, the feed code 43 is provided so that the continuous stitches are grouped and included in the stitch code 42 , and at the first needle fall point and the last needle fall point of each stitch code 42 , the ending stitches are formed to prevent the unraveling of the embroidery.
When the embroidery operation (i.e., repetition of the stitch code 42 and the feed code 43 ) is executed for all the color codes 41 , and lastly, the end code 44 is read, the end of the embroidery data is recognized in the embroidering machine, and the embroidery operation is finished.
As shown in FIG. 13, the stitches indicated by solid lines are the series of a plurality of stitches (stitch codes 42 ), and indicated by a plurality of coordinates indicating the stitch positions (e.g., (Xa, Ya), (Xm1, Ym1), (Xm2, Ym2), . . . , (Xb, Yb)). At the coordinates of the beginning and end of the series of stitches, the end stitching 44 is performed. When the feed code 43 is read, the fabric is fed such that a stitching point is moved from the coordinate (Xb, Yb) representing the end of the stitch code 42 to the coordinate (Xc, Yc) representing the start of the stitch code 43 with the embroidery being unapplied. Thereafter, beginning from the coordinate (Xc, Yc), the embroidery according to the stitch code 43 is started in the order of the coordinates (needle fall points) of (Xc, Yc), (Xn1, Yn1), (Xn2, Yn2), . . . (Xd, Yd).
In the first embodiment described above, the second embroidery data for white threads is created for the pixel area(s) other than the usable color area(s) (i.e., for the print areas) although “white” is not designated as the usable colors. Thus, according to the first embodiment, the “color code for white” and “stitch data for the print area” are incorporated in the embroidery data, at the beginning thereof.
It is of course possible to modify the above such that the embroidery is not formed in the area(s) other than the usable color area (i.e., the print area(s)). In such a case, the embroidery data, which is a combination of a plurality of pieces of embroidery data respectively for a plurality of usable colors such as “color code for usable color 1”+“stitch data for usable color 1”+“color code for usable color 2”+“stitch data for usable color 2” . . . +“color code for usable color n”+“stitch data for usable color n” is created.
FIG. 14 shows an exemplary image represented by the synthesized embroidery data which is a combination of a plurality of pieces of embroidery data corresponding to a plurality of usable colors created in S 215 . By synthesizing the embroidery data respectively representing the patterns shown in FIGS. 11A and 11B, the hair portion, which corresponds to the usable color area, is embroidered with black threads, and other portions of the face, which is set as the print area, is embroidered with white threads, the resultant data (i.e., the synthesized embroidery data) represents the pattern shown in FIG. 14. It should be noted that the synthesized embroidery data also represents the pattern of 12 cm(H)×9 cm(W) on the T-shirt, and the pattern is embroidered at the designated portion of the fabric.
Back to FIG. 6, a print data creating procedure for creating the print data corresponding to the print area is executed in S 216 .
In S 216 , the output size is determined such that the ratio of the size of the image data in units of pixel to the pattern output by the inkjet printer in units of actual dimension (i.e., cm, mm or the like) is equal to the ratio of the size of the image data in units of pixel to the pattern output by the embroidering machine in units of actual dimension (i.e., cm, mm or the like). With this configuration, since the print data created in the print data creating procedure (S 216 ) and the embroidery data created in the embroidery data creating procedure (S 214 ) uses the same conversion ratio, the embroidery data and the print data have consistency in output sizes.
In the print data creating procedure (S 216 ), the print data is created in accordance with the data of the pixels in the print area (i.e., the area other than the usable color area) which is set in the area separation procedure (S 213 ). Specifically, according to the first embodiment, the image area shown in FIG. 10B is set as the print area. That is, the area other than the area of the hair is set as the area to be printed by the inkjet printer.
It should be noted that various methods for creating the print data based on the image data have been known conventionally. Further, various methods are employed depending on a application and/or data format to be used. Importantly, any one of such methods can be employed in the print/embroidery data creating device 1 according to the first embodiment. Only an exemplary application of one method will be described below.
In the print data creating procedure (S 216 ), data items necessary for creating the print data based on the image data are set. The necessary data items include, at least, “print range”, “print resolution” and “print-subject image”. The “print area” represents the output size and output position on the object (e.g., T-shirt) when the image pattern is printed by the inkjet printer. The “print resolution” represents the number indicating the resolution at which the image is printed by the inkjet printer. In other word, the “print resolution” indicates the quality of the printed image. The “print-subject image” is the information of the pixel areas constituting the image data to be printed.
By the information “print area”, the output size is defined by the height and width, and the output position is defined by a horizontal start position and a vertical start position. In this example, the size (i.e., 12 cm(H)×9 cm(W)) which is input by the user in S 212 is obtained. This size is expressed in inch, 4.72 inches (i.e., approximately 12 cm) in height×3.54 inches (i.e., approximately 9 cm) in width. As the “print-subject image”, the image data 24 B which is set as the print area in the area separation procedure in S 213 is set. Further, the “print resolution” can be a value the user arbitrarily set of a predetermined default value may be used. In this example, it is assumed that the “print resolution” is 600 dpi (H)×600 dpi (W).
After each of the data items are set as above, the print data having the structure shown in FIG. 15 is generated.
As shown in FIG. 15, the print data includes:
The print data further includes an image data designation code 55 which is an identifier indicating that the data designates the image data information. The image data information includes:
The pixel values 59 are repeatedly indicated to indicate the values for all the pixels constituting the image data, whose size is indicated by the image size 57 . At the end of the print data, the end code 60 is provided, which is an identifier indicating the end of the print data.
The print data is configured such that the print area excluding the hair portion is printed by the inkjet printer as shown in FIG. 16. The output size of the image data is 4.72 inches in height (i.e., approximately 12 cm) and 3.54 inches in width (i.e., approximately 9 cm). The print resolution is 600 dpi in height and 600 dpi in width. Therefore, the numbers of print dots within the output area of the image data are 2833 dots×2126 dots (600 dpi×4.72 inches=2833 dots in height, and 600 dpi×3.54 inches=2126 dots in width). The image data is magnified/reduces so that the modified image data is expressed the above number of dots. Then, in the inkjet printer, the printing operation is executed in units of dots. It should be noted that the print data also corresponds to the output size and output position input by the user in S 212 , similarly to the embroidery data.
Back to FIG. 6, in the main body 10 , the print/embroidery data editing procedure is executed in S 217 . In the print/embroidery data editing procedure, the embroidery data created in S 215 and the print data created in S 216 are edited and a single piece of data is created, in which the embroidery data and the print data are related to each other.
In the print/embroidery data editing procedure (S 217 ), data is edited to have a structure: “embroidery data start code”+“embroidery data”+“print data start code”+“print data”+“print/embroidery data end code”.
Optionally, at the top of the print/embroidery data, a “print/embroidery data start code” which is an identifier indicating the start of the print/embroidery data may be provided. Further optionally, to each of the embroidery data and the print data, the “start code” and the “end code” may be added. In such a case, “print/embroidery data end code” is unnecessary.
As above, the print/embroidery data creating procedure (S 202 ) is executed, and the embroidery data to be used in the embroidering machine and the print data to be used in the inkjet printer are created in related fashion.
When the print/embroidery data is created (FIG. 4, S 202 ), the print data and embroidery data included in the print/embroidery data are output to the memory card inserted in the memory card connector 23 (S 203 ). When the data is transmitted to the memory card, embroidery data transmitting application installed in the print/embroidery data creating device 1 converts the print/embroidery data into data having a predetermined format which can be interpreted by the embroidering machine.
The “embroidery data start code” is the identifier indicating the start of the embroidery data of the print/embroidery data. When the embroidery data transmitting application reads this identifier, the following data, i.e., “embroidery data” is transmitted to the memory card, and when the application reads the “print data start code”, it finishes transmitting the data.
Print data transmitting application installed in the print/embroidery data creating device 1 converts the print/embroidery data into data having a predetermined format which can be directly interpreted by the inkjet printer. A “print data start code” is an identified indicating the start of the print data in the print/embroidery data. When the print data transmitting application read this identifier, the following data, i.e., “print data” is transmitted to the memory card. When the print data transmitting application reads the “print/embroidery data end code”, it finishes transmission of the data. As above, the print data and the embroidery data are converted and output to the memory card.
Optionally, the print/embroidery data creating device 1 and the inkjet printer may be connected and the data may be transmitted directly from the print/embroidery data creating device to the inkjet printer.
The user inserts the memory card in which the embroidery data has been stored in S 203 into the memory card device connected to the embroidering machine, and sets the objective fabric (T-shirt) at the predetermined position of the embroidering machine, and starts the embroidery operation.
In the embroidering machine, the embroidery data is retrieved from the memory card loaded to the memory card device, and the embroidering operation for embroidering the pattern on the T-shirt is automatically executed in accordance with the retrieved embroidery data.
As a result of the embroidering operation of the embroidering machine, the content of the embroidery data shown in FIG. 14 is transferred onto the T-shirt as an embroidery pattern. That is, corresponding to the hair portion which is set as the usable color area in the area separating procedure (S 213 ), an embroidery using the usable color “black” is formed. Further, corresponding to the area which is not set as the area other than the usable color area (i.e., the print area), an embroidery using the white thread is formed. It should be noted that the output size is 12 cm(H) 9 cm(W), which is the size input by the user in S 212 , and the output position is the position input by the user in S 212 .
When the embroidering operation by the embroidering machine is finished, the memory card in which the print data has been stored in S 203 is loaded in the memory card device provided to the personal computer that controls the operation of the inkjet printer, and transmits the print data into the inkjet printer. After the T-shirt on which the embroidery is formed by the embroidering machine is placed at a predetermined position of the inkjet printer, the printing operation is started.
In the inkjet printer, the converted print data is transmitted from the memory card loaded to the memory card device, and the printing operation is executed in accordance with the transmitted print data (S 205 ).
The print data created in S 202 reflects the output size of the inkjet printer and a relative output position with respect to the print area of the inkjet printer. Then, in S 203 , the print data is converted into a format that can be interpreted by the inkjet printer using a printer driver and the like. Thus, if the printer is in an environment where the print data contained in the print/embroidery data into a form that can be interpreted by the printer, any printer can use the print data.
As above, in the inkjet printer, the automatic printing operation to print the image pattern on the T-shirt is executed in accordance with the print data contained in the print/embroidery data. Thus, the image shown in FIG. 16, which is represented by the print data, is printed on the T-shirt. That is, the printing operation is performed to print the pixel area which is set as the print area (i.e., the area other than the hair portion) in the area separating procedure of S 213 . Regarding the example shown in FIG. 16, an image 4.27 inches high (i.e., approximately 12 cm)×3.54 inches wide (i.e., approximately 9 cm) is printed with 2833 dots in height×2126 dots in width on the T-shirt at a predetermined output position.
On a portion of the T-shirt where the embroidery with white threads is formed, the image shown in FIG. 16 (i.e., an image other than the hair of the image shown in FIG. 5) is printed.
As a result, as shown in FIGS. 17A-17C, the face of the person represented by the image data is formed on the T-shirt as a combination of the embroidered area and printed area. That is, the embroidery data representing the image shown in FIG. 17A indicates that the hair portion is embroidered with the black thread and the other area is embroidered with the white thread. Further, the print data representing the image shown in FIG. 17B indicates that the image other than the hair portion is printed. As a result of the embroidery shown in FIG. 17A and the printing shown in FIG. 17B, the face shown in FIG. 17C is formed on the T-shirt.
As described above, with the print/embroidery data creating device 1 according to the first embodiment, the pixels constituting the image data are analyzed and usable color area(s) and the print area(s) are set. Then, the embroidery data corresponding to the usable color area(s) and the print data corresponding to the print data area(s) are created in a related manner. Further, based on the image data, the outputs which well reflect the characteristics of embroidery and printing can be obtained. As described, the print data and embroidery data have consistency in the output size and position of the image pattern.
Further, based on the usable colors designated by the user, the pixels constituting the image data is analyzed and the usable color area and print area are set. Therefore, the print data and embroidery data which meet various conditions such as the user's needs, performance of the embroidering machine and the like can be created, freely and arbitrily. Further, the print data and embroidery data corresponding to the output size and position designated by the user can be created. Further, the print/embroidery data including the print data and embroidery data which are related to each other can be created.
When the printing/embroidering operations are performed based on the print data and embroidery data, the image pattern represented by the image data is formed on the T-shirt in such a manner that the printed pattern and embroidered pattern are combined. Further, the printed pattern and the embroidered pattern have consistency in the output size and output position. Therefore, the characteristics of respective patterns (i.e., printed pattern and embroidered pattern) are well made use of, and an image having different impression in comparison with the image formed only by printing or embroidering can be output on the fabric such as the T-shirt.
Furthermore, since the embroidery data and print data are edited and one piece of print/embroidery data is created, it is convenient in comparison with a case where the print data and embroidery data exist separately. Further, by forming a single piece of data, the consistency between the data can be improved.
In the first embodiment, in the print area, the embroidery with the white thread is formed, and then the image pattern is printed thereon. Thus, the output in which the image is printed on the embroidery can be obtained, which provides a flavor that has not been obtained conventionally.
Next, a print/embroidery data creating device according to a second embodiment will be described. According to the first embodiment, only the area set as the usable color area is embroidered. That is, in the first embodiment, for the area other than the usable color area, the second embroidery data is created. Then, in the first embodiment, the embroidery with the white thread is formed based on the second embroidery data. In the second embodiment, for the print area, only the printed image by the inkjet printer is formed.
FIGS. 18A-18C illustrate an image pattern output by a print/embroidery data editing procedure according to the second embodiment. That is, FIGS. 18A-18C show an embroidered pattern represented by embroidery data, a printed pattern represented by print data, and a resultant pattern formed on a T-shirt, respectively.
FIG. 18A shows the pattern represented by the embroidery data, which indicates that only the hair portion of the face is embroidered with the black thread. FIG. 18B shows the print data, which is similar to the print data according to the first embodiment. As the pattern shown in FIG. 18A and the pattern shown in FIG. 18B are embroidered/printed, the image pattern shown in FIG. 18C is formed on the T-shirt. The other features are similar to those of the first embodiment.
According to the second embodiment, since it is unnecessary to form the embroidery with the white thread in the print area, that is, only the printing by the inkjet printer is performed for the print area, the entire process of forming the print/embroidery image pattern on the T-shirt can be done quicker. If the embroidery with the white thread is formed in the print area, it is necessary that the embroidery should be done prior to the printing so that printed image is formed on the embroidery with the while thread. According to the second embodiment, since the embroidery is not formed for the print area, there are no overlapped portions between the printed image pattern and the embroidered image pattern. Therefore, the order of the printing and embroidering can be set freely.
Next, a print/embroidery data creating device according to a third embodiment will be described. The hardware configuration of the print/embroidery data creating device according to the third embodiment is similar to that of the first embodiment. According to the third embodiment, it is assumed that image data representing an image 4 shown in FIG. 21 is scanned with the image scanner 25 in S 201 (see FIG. 4). As shown in FIG. 21, the image 4 is configured such that a left-hand side half includes a pixel area 4 a which is black, and a right-hand side half includes a pixel area 4 b which is white. At the boundary of the black pixel area 4 a and the white pixel area 4 b , a pixel area 4 c is formed, in which the color gradually changes from black to white in the left-to-right direction.
In S 202 , the print/embroidery data is created based in the input data 4 . FIG. 22 is a flowchart illustrating the main flow of the print/embroidery data creating procedure. The print/embroidery data creating procedure shown in FIG. 22 is similar to that shown in FIG. 6 except that step 211 A is added after S 211 and S 213 of FIG. 6 is replaced with S 213 A. Since the steps of FIG. 22 having the same numbers of steps of FIG. 6 are substantially the same, description will be made in detail only on steps S 211 A and S 13 A.
In S 211 A, an assumption of a stitch is made. The assumption of stitch is to set the type of stitch to be carried out by the embroidering machine preliminary. That is, there a plurality of types (e.g., column fill stitch, satin stitch etc.) of stitching for embroidering a pattern. In S 211 A, process request the user to designate the type of stitch to be used for embroidering. The direction of the stitches, pitch of the stitches and density thereof are also input by the user.
Specifically, a stitch designation dialogue as shown in FIG. 23 is displayed on the display 24 . The user designates a desired type of stitch through this dialogue using the mouse 21 and keyboard 22 . In the example shown in FIG. 23, the type of the stitch, direction, density and pitch can be input by the selection from a pull-down menu or typed in an input box. In the example shown in FIG. 23, the assumption stitch for outputting the image data 4 on the fabric such as the T-shirt, a pitch is set to 3 mm and the density is set to 3 lines/mm.
In S 212 , the output size and position are designated by the user. Similar to the first and second embodiments, for the explanation purpose, it is assumed that the output size is 120 mm in height and 90 mm in width.
FIGS. 24 and 25 are charts illustrating the output size and position of the image pattern. The image data 4 (FIG. 21) to be output on the fabric such as the T-shirt as embroidered and/or printed pattern with the size of 120 mm(H)×90 mm(W). In particular, when the image pattern is output by the embroidering, since the type of stitch has been set to the horizontal column fill stitch in the stitch assumption process, the image data 4 is output in accordance with the set stitch as shown in FIG. 24. That is, a plurality of horizontally extending stitches. Since the stitches are made at the pitch of 3 mm and 3 lines/mm, as shown in FIG. 25, in the horizontal direction, each stitch is formed to have a width of 3 mm, and accordingly, 30 stitches are formed in the width direction within the output area having the width of 90 mm. In the vertical direction, three stitches are formed within a height of 1 mm. Therefore, in the vertical direction, 360 stitches are formed in the vertical direction within the output area having the height of 120 mm.
Next, in S 213 A, a color continuity examining procedure is executed. In the color continuity examining procedure, with respect to the image data input in S 201 , it is examined whether a plurality of pixels included in a small area corresponding to each stitch correspond to the same usable color. If the plurality of pixels included in a small area corresponding a stitch corresponds to the same color, the pixels corresponding to the stitch are set as the embroidery area. Otherwise, the area is set as the print area. According to the third embodiment, the area other than the areas corresponding to the usable colors (i.e., the print area), an embroidery with the white thread is formed, similarly to the second embodiment.
The color continuity examining procedure (S 213 A) will be described in detail hereinafter. FIG. 26 is a flowchart illustrating the color continuity examining procedure in detail.
As shown in FIG. 26, in the color continuity examining procedure, a threshold value T is set (S 331 ). The threshold value T is used as a standard to determine whether each pixel constituting the image data should be determined to be included in the embroidery area The threshold value T may be arbitrarily set by the user, or a single threshold value T commonly used for the examination with respect to all the usable colors. Alternatively, a preliminarily stored threshold value T in the main body 10 may be automatically set.
In S 332 , a stitch subject to be examined is identified (S 332 ). That is, one of the stitches necessary to output the image data 4 is identified as the subject of the examination.
Here, a relationship between the pixels constituting the image data 4 input in S 201 , the stitch assumed in S 211 A and the output size and position designated in S 212 will be described. As aforementioned, the image pattern represented by the image data 4 is to be output with the output size of 120 mm(H)×90 mm(W), on the designated T-shirt, in accordance with the 360 stitches which are made by the embroidering machine.
FIG. 27 shows a relationship between the pixels constituting the image data 4 and the assumed stitches. As shown in FIG. 27, start and end points of the assumed stitch are the needle fall points of the embroidering machine. The needle fall points correspond to a plurality of pixels of the image data 4 , respectively. For example, the start point of the stitch corresponds to pixel 401 , and the end point of the stitch corresponds to the end point 205 .
In S 332 , one of the assumed 360 stitches is identified. In this example, it is assumed that the stitch closer to the start position of the coordinate system of the embroidering machine is selected. Then, a small area corresponding to the identified stitch is set, and a pixel 401 (X0, Y0) corresponding to the start point of the stitch within the small area is obtained (S 333 ). In S 334 , the RGB values of the pixel 401 (X0, Y0) obtained in S 333 is obtained.
In S 335 , the usable color used for the examination is determined (S 335 ). The determination of the usable color is carried out such that the usable color table (FIG. 8) is referred to and one of the usable colors contained in the usable color table is identified in the order of the entry therein.
In S 336 , based on the RGB values of the pixel 401 (X0, Y0) obtained in S 334 and the RGB values of the usable color identified in S 335 , the color difference distance D is calculated (S 336 ) in accordance with the formula (1) described above.
In S 337 , the color difference distance D is compared with the threshold value T. If it is determined that the color difference distance D is greater than the threshold value T (S 337 : YES), the color of the pixel 401 (X0, Y0) is very different from the usable color and cannot be expressed using the usable color. Therefore, in such a case, it is inappropriate to form the pixel 401 (X0, Y0) with the thread of the usable color. If the procedure is executed for all the usable colors (S 338 : NO), process returns to S 335 and the next usable color is identified from the usable color table. As above, steps S 335 through S 338 are repeatedly executed to judge the color difference of the pixel (X0, Y0) wi