Printing device and printing method
The printing device and method address pattern extraction inaccuracies and efficiency issues by dividing image data to extract partial patterns, ensuring precise alignment and continuous conveyance, thus enhancing printing accuracy and efficiency on distorted fabrics.
Patent Information
- Application Number
- JP2020196817
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-27
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-11-27
AI Technical Summary
When printing on fabrics with patterns, distortions during transportation can lead to inaccurate pattern extraction and reduced printing efficiency due to the need to slow down or stop conveyance to complete processing, especially for large patterns.
A printing device and method that divides image data vertically and horizontally to extract partial pattern areas, allowing for accurate matching and generation of print image data without slowing down conveyance, using a conveyance unit, imaging unit, printing unit, pattern extraction unit, and print image generation unit to align and print the pattern.
Enables precise pattern extraction and printing with reduced misalignment, maintaining high efficiency by allowing continuous conveyance and rapid image data generation, even with large patterns.
Smart Images

Figure 0007563137000001 
Figure 0007563137000002 
Figure 0007563137000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a printing apparatus and a printing method. [Background technology]
[0002] There is known a technique for searching for candidates similar to features of a reference image obtained by photographing a non-defective product that serves as a model for the product, within an image to be inspected (see Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2017-96750 A Summary of the Invention [Problem to be solved by the invention]
[0004] Here, when a fabric with a pattern is used as a print medium, it is assumed that the pattern is extracted from a captured image obtained by capturing an image of the fabric being transported. The fabric may be distorted or stretched (hereinafter, "distortion, etc.") during transport, and in a situation where such distortion, etc. exists, it is necessary to extract the pattern from the captured image or print a picture to match the pattern. However, when the size of one pattern formed on the fabric is relatively large, the influence of distortion, etc., tends to reduce the accuracy of extracting the pattern from the captured image, or tends to cause a large deviation between the picture to be printed and the pattern. Furthermore, if the size of a single pattern is large, it may not be possible to complete all the necessary processes, such as extracting the pattern from the captured image and generating the data for printing, within the limited time between capturing an image of the fabric and starting printing. In this case, the transport speed of the fabric must be reduced or transport must be temporarily stopped in order to wait for all the necessary processes to be completed, reducing the efficiency of printing. There is a need for a solution to at least one of these problems. [Means for solving the problem]
[0005] The printing device prints the fabric on which the pattern is formed. A printing device for conveying a material and printing on the material, a conveying unit that conveys the fabric in a conveying direction, an imaging unit that images the fabric conveyed by the conveying unit, a printing unit that prints on the fabric conveyed by the conveying unit, a pattern extraction unit that extracts a pattern area corresponding to the pattern in the second image data based on a comparison between first image data expressing the pattern and second image data generated by imaging the fabric by the imaging unit, a print image generation unit that generates print image data by arranging third image data expressing an image to be printed over the pattern so as to match the extracted pattern area, and a print control unit that causes the printing unit to print the print image data on the fabric, wherein the pattern extraction unit Expressing the above pattern a plurality of divided first image data obtained by dividing the first image data in at least one of the vertical direction and the horizontal direction is compared with the second image data, thereby extracting a partial pattern area corresponding to the partial pattern expressed by the divided first image data from the second image data, and the print image generating unit Representing the image to be printed over the pattern The print image data is generated by dividing the third image data in at least one of the vertical and horizontal directions to obtain a plurality of divided third image data, and arranging each of the divided third image data in accordance with the extracted partial pattern area.
[0006] The printing method is to print the fabric with a pattern. A printing method for printing on a fabric, comprising: a conveying step of conveying the fabric in a conveying direction, an imaging step of imaging the conveyed fabric, a pattern extracting step of extracting a pattern area corresponding to the pattern in the second image data based on a comparison between first image data expressing the pattern and second image data generated by imaging the fabric, a print image generating step of generating print image data by arranging third image data expressing an image to be printed over the pattern so as to match the extracted pattern area, and a printing step of printing the print image data on the conveyed fabric. Including , the pattern extraction step in teeth, Expressing the above patterna step of comparing each of a plurality of divided first image data obtained by dividing the first image data in at least one of the vertical direction and the horizontal direction with the second image data to extract a partial pattern area corresponding to the partial pattern expressed by the divided first image data from the second image data; in teeth, Representing the image to be printed over the pattern The print image data is generated by dividing the third image data in at least one of the vertical and horizontal directions to obtain a plurality of divided third image data, and arranging each of the divided third image data in accordance with the extracted partial pattern area. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a block diagram showing a simplified configuration of a printing apparatus. [Diagram 2] FIG. 2A is a view showing the transported fabric and the configuration in the vicinity thereof from an upper-downward perspective, and FIG. 2B is a view showing a part of the configuration shown in FIG. 2A from an upstream-downstream perspective. [Diagram 3] 4 is a flowchart showing a printing process. [Figure 4] 11 is a flowchart showing details of step S100. [Diagram 5] 11 is a flowchart showing details of step S120. [Figure 6] FIG. 11 is a diagram for explaining step S120 using a specific example. [Figure 7] FIG. 4 is a diagram for explaining steps S130 and S140 using a concrete example. [Figure 8] 7 is a diagram showing an example of pattern image data and captured image data different from those in FIG. 6; [Figure 9] FIG. 11 is a table showing extraction probabilities of partial pattern regions. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that each drawing is merely an example for explaining the present embodiment. Since each drawing is an example, the proportions and shapes may not be accurate, the drawings may not match each other, and some parts may be omitted.
[0009] 1.Device configuration: FIG. 1 shows a simplified configuration of a printing device 10 according to this embodiment. The printing device 10 executes a printing method. The printing device 10 includes a control unit 11, a display unit 13, an operation reception unit 14, an imaging unit 15, a transport unit 16, a printing unit 17, a storage unit 18, etc. The control unit 11 includes one or more ICs having a CPU 11a, a ROM 11b, a RAM 11c, etc. as a processor, other non-volatile memories, etc.
[0010] In the control unit 11, a processor, i.e., a CPU 11a, executes arithmetic processing according to one or more programs 12 stored in a ROM 11b or other memory, using a RAM 11c or the like as a work area, thereby controlling the printing device 10. By following the programs 12, the control unit 11 functions as a pattern registration unit 12a, a pattern extraction unit 12b, a print image generation unit 12c, a print control unit 12d, and the like. Note that the processor is not limited to a single CPU, and may be configured to perform processing using multiple CPUs or a hardware circuit such as an ASIC, or may be configured to perform processing in cooperation with a CPU and a hardware circuit.
[0011] The display unit 13 is a means for displaying visual information, and is configured, for example, by a liquid crystal display, an organic electroluminescence display, or the like. The display unit 13 may be configured to include a display and a drive circuit for driving the display. The operation reception unit 14 is a means for receiving operations by a user, and is realized, for example, by a physical button, a touch panel, a mouse, a keyboard, or the like. Of course, the touch panel may be realized as one function of the display unit 13. The display unit 13 and the operation reception unit 14 may be part of the configuration of the printing device 10, or may be peripheral devices external to the printing device 10.
[0012] The transport unit 16 is a mechanism for transporting the print medium under the control of the control unit 11. In this embodiment, the print medium is assumed to be a fabric on which a three-dimensional pattern is formed by devising a weaving method of threads or fibers, such as a jacquard woven fabric or lace fabric. Some kind of pattern, or a group of patterns, is formed in a repeated pattern on the fabric. In the following, one or a group of patterns will be treated as one pattern.
[0013] Conveying unit 16 includes, for example, a pay-out roller that pays out the unprinted fabric wound in a roll downstream in the conveyance direction, a belt and rollers for further conveying the paid-out fabric, a take-up roller that re-winds the fabric after printing into a roll and collects it, a motor for rotating each roller and belt, etc. Hereinafter, the upstream and downstream of the conveying direction by conveying unit 16 will also be simply referred to as upstream and downstream.
[0014] The imaging unit 15 captures an image of the fabric being transported by the transport unit 16 under the control of the control unit 11. The imaging unit 15 includes a light source that illuminates the fabric, an imaging element that receives light reflected from the fabric, and generates and outputs image data as the imaging result.
[0015] The printing unit 17 prints on the fabric conveyed by the conveying unit 16 under the control of the control unit 11. The printing unit 17 is provided downstream of the imaging unit 15. The printing unit 17 prints on the fabric based on print image data sent from the control unit 11. The printing unit 17 can perform printing by ejecting ink of multiple colors such as cyan, magenta, yellow, black, etc., using an inkjet method. According to the inkjet method, the printing unit 17 prints on the fabric by ejecting dots of ink from nozzles (not shown) based on print image data that specifies dot-on or dot-off of each ink for each pixel.
[0016] The storage unit 18 is a storage means such as a non-volatile memory, a hard disk drive, etc. The storage unit 18 may be understood as a part of the control unit 11. The RAM 11c may be understood as a part of the storage unit 18.
[0017] The printing device 10 may be called a recording device, an image forming device, a printer, etc. The printing device 10 may be realized not only by a single independent device, but also by multiple devices connected to each other so as to be able to communicate with each other via a communication interface or a network. The printing device 10 made up of multiple devices may be called a printing system 10.
[0018] The printing system 10 includes, for example, a printer including an imaging unit 15, a transport unit 16, and a printing unit 17, and one or more information processing devices that function as the control unit 11. The information processing device is, for example, a personal computer (PC), a server, a smartphone, a tablet terminal, or a device having a processing capability equivalent thereto. In the printing system 10, a device that functions as the control unit 11 may be called an image processing device, a print control device, or the like. Of course, some of the devices that constitute the printing system 10 may also be considered as an invention.
[0019] Fig. 2A shows the transported fabric 30 and the structure around the fabric 30 from a perspective looking downward. In Fig. 2A, the pattern formed in advance on the fabric 30 is not shown. In Fig. 2A, the transport direction of the fabric 30 by the transport unit 16 is indicated by reference symbol D1. Reference symbol 22 denotes an endless belt 22 that is a part of the transport unit 16. The fabric 30 placed on the endless belt 22 is transported from upstream to downstream as the endless belt 22 rotates.
[0020] As shown in FIG. 2A, a carriage 20 is disposed above the endless belt 22. The carriage 20 is capable of reciprocating movement along a direction D2 that intersects with the conveying direction D1. Here, "intersect" means "orthogonal," but "orthogonal" may be understood to include not only strict orthogonal but also errors that occur during the manufacturing process of the product. The carriage 20 moves along a long guide member 21 in the direction D2. The direction D2 is also referred to as the main scanning direction of the carriage 20 and the print head 19. The direction D2 is also referred to as the width direction of the fabric 30.
[0021] The carriage 20 carries a print head 19. In other words, the print head 19 moves back and forth together with the carriage 20 in the width direction D2. The carriage 20 and print head 19 constitute the printing unit 17. Although not shown, the print head 19 has a plurality of nozzles opened on its lower surface facing the endless belt 22. The print head 19 ejects ink from the nozzles based on print image data while moving together with the carriage 20 in the width direction D2.
[0022] As shown in FIG. 2A, the imaging unit 15 is disposed at a predetermined position above the endless belt 22 and upstream of the carriage 20 and the print head 19. FIG. 2B shows a part of the configuration shown in FIG. 2A from a viewpoint facing from upstream to downstream. The imaging unit 15 has an imaging surface 15a on the lower surface facing the endless belt 22, and images the fabric 30 on the endless belt 22 through the imaging surface 15a. The imaging unit 15 is, for example, a line-scan type camera in which multiple imaging elements are arranged along the width direction D2 inside. The imaging unit 15 repeats imaging on a line-by-line basis through a lens and imaging elements (not shown) provided on the imaging surface 15a. In FIG. 2B, the imaging range of the imaging unit 15 in the width direction D2 is illustrated by a dashed line. The imaging unit 15 can image almost the entire range of the endless belt 22 in the width direction D2 by the function of the lens.
[0023] The configuration of the imaging unit 15 is not limited to the example shown in Figs. 2A and 2B. For example, a configuration may be adopted in which a plurality of imaging units 15 are arranged along the width direction D2 above the endless belt 22, and each of the plurality of imaging units 15 is responsible for imaging a portion of the entire range of the endless belt 22 in the width direction D2. Alternatively, the imaging unit 15 may be a line sensor configured by arranging a plurality of imaging elements over almost the entire range of the endless belt 22 in the width direction D2. Alternatively, the imaging unit 15 may be mounted on a carriage that is movable along the width direction D2, similar to the print head 19 being mounted on the carriage 20, and may be configured to image the endless belt 22 while moving in the width direction D2 by the carriage.
[0024] 2.Printing method: FIG. 3 is a flowchart showing the printing process executed by the control unit 11 in accordance with the program 12. In FIG. In step S100, the pattern registration unit 12a of the control unit 11 registers pattern image data expressing the pattern formed on the fabric 30 in the storage unit 18. The pattern image data corresponds to the "first image data", and step S100 corresponds to a registration process.
[0025] FIG. 4 is a flowchart showing the details of step S100. In step S102, the pattern registration unit 12a acquires basic image data expressing a pattern of the fabric 30. The fabric 30 is, for example, a woven fabric into which a single pattern designed by a designer is repeatedly woven. Therefore, the basic image data is image data expressing the single pattern that is generated in advance using a predetermined software for design or drafting. The pattern registration unit 12a inputs basic image data stored in a PC, for example, from an external PC of the printing device 10, in accordance with a user's operation, and stores the input basic image data in the storage unit 18.
[0026] In step S104, the pattern registration unit 12a acquires prescan data, which is image data generated by prescanning the fabric 30. Prescanning refers to reading or imaging performed prior to imaging of the fabric 30, which begins in step S110 described below. For example, the user causes a scanner external to the printing device 10 to scan the fabric 30 in advance. The pattern registration unit 12a then inputs the image data generated by this scanning from the scanner and stores it in the storage unit 18 as prescan data.
[0027] Alternatively, the prescan may be performed by the imaging unit 15. For example, the control unit 11 causes the conveying unit 16 to start conveying the fabric 30, and stops conveying the fabric 30 when the leading end of the fabric 30 reaches a position a predetermined distance downstream from the imaging unit 15. The leading end of the fabric 30 is the end portion facing downstream. The imaging unit 15 captures an image of the fabric 30 passing under the imaging unit 15 during conveyance, and the pattern registration unit 12a inputs image data generated by this imaging from the imaging unit 15 and stores the image data in the storage unit 18 as prescan data.
[0028] In step S106, the pattern registration unit 12a compares the basic image data acquired in step S102 with the pre-scan data acquired in step S104, and extracts a pattern area in the pre-scan data that corresponds to one pattern of the fabric 30. At this time, the pattern registration unit 12a uses an image recognition technique to extract an image area in the pre-scan data that has a higher similarity to the basic image data, and sets this image area as a pattern area.
[0029] Then, in step S108, the pattern registration unit 12a stores the image data corresponding to the pattern region extracted in step S106 as pattern image data in the storage unit 18. In this way, the pattern image data is registered. According to the explanation given in FIG. 4, the pattern image data is at least a part of the prescan data. However, the pattern registration unit 12a may register the basic image data itself in the storage unit 18 as pattern image data, thereby simplifying part of step S100.
[0030] Furthermore, in step S109, the pattern registration unit 12a divides the pattern image data in at least one of the vertical and horizontal directions, and registers N pieces of divided pattern image data in the storage unit 18. N is an integer equal to or greater than 2. The divided pattern image data corresponds to "divided first image data." With this, step S100 is completed.
[0031] In this embodiment, the orientation of each piece of image data, such as the pattern image data, captured image data, and print image data, handled by the control unit 11 will be described in terms of the transport direction D1 and the width direction D2. For example, the transport direction D1 may be interpreted as the vertical direction, and the width direction D2 as the horizontal direction. If the pattern registration unit 12a divides the pattern image data into three equal parts vertically and three equal parts horizontally, N=3×3, and the pattern image data can be divided into nine pieces of divided pattern image data and stored in the storage unit 18.
[0032] The number of divisions into which the pattern image data is to be divided in the vertical and horizontal directions is determined in advance. Alternatively, the pattern registration unit 12a may execute step S109 by acquiring the number of divisions in the vertical and horizontal directions through a user's operation of the operation reception unit 14. Note that in step S109, the pattern registration unit 12a may store position information of the N pieces of divided pattern image data in the pattern image data, instead of storing the N pieces of divided pattern image data.
[0033] Returning to the explanation of Figure 3. In step S110, the control unit 11 causes the imaging unit 15 to start imaging the fabric 30 being transported by the transport unit 16 at a predetermined speed. That is, in step S110, the "transportation process" of the fabric 30 is started. Also, step S110 starts the "imaging process". Line-by-line image data generated by the imaging unit 15 by imaging the fabric 30 is output sequentially to the control unit 11. The control unit 11 acquires two-dimensional captured image data by sequentially saving the line-by-line image data from the imaging unit 15. The captured image data corresponds to the "second image data".
[0034] In step S120, the pattern extraction unit 12b extracts a pattern area corresponding to the pattern of the fabric 30 in the captured image data based on a comparison between the pattern image data registered in step S100 and the captured image data generated by the imaging in step S110. A plurality of patterns are expressed side by side in the captured image data. Step S120 corresponds to a "pattern extraction step."
[0035] FIG. 5 is a flowchart showing the details of step S120. In step S121, the pattern extraction unit 12b resets the value n representing the number of the divided pattern image data to n = 0. In this embodiment, the description will be given by assigning numbers 1 to N to the N divided pattern image data registered in step S109. In step S122, the pattern extraction unit 12b increments n, that is, adds 1 to the current n to update n.
[0036] In step S123, the pattern extraction unit 12b sets the n-th divided pattern image data as the extraction criterion. In step S124, the pattern extraction unit 12b compares the divided pattern image data used as the extraction reference with the captured image data, and extracts from the captured image data a partial pattern area that corresponds to the partial pattern expressed by the reference divided pattern image data.
[0037] The pattern extraction unit 12b may use an image recognition technique to extract an image region having a similarity to the divided pattern image data higher than a predetermined level as a partial pattern region. Specifically, the pattern extraction unit 12b extracts an edge of an image in the divided pattern image data, and similarly extracts an edge of an image in the captured image data. Then, the pattern extraction unit 12b repeatedly compares the distribution of edges in the divided pattern image data with the distribution of edges in the captured image data while shifting the position of the distribution of edges and while deforming the divided pattern image data, and extracts a region in which the degree of agreement between the distributions of edges is evaluated as being higher than a predetermined level as one partial pattern region. Through such processing, the pattern extraction unit 12b extracts a partial pattern region from the captured image data. Note that, similar to the processing in step S124, in the above-mentioned step S106, the pattern registration unit 12a can extract a pattern region in the prescan data according to the degree of agreement between the distributions of edges of the images being compared.
[0038] In step S125, pattern extraction unit 12b outputs information about the partial pattern area extracted in step S124 to print image generation unit 12c for step S130 and subsequent steps. If the width direction D2 is considered to be the X-axis and the transport direction D1 is the Y-axis, then the coordinates of the captured image data are defined on a two-dimensional plane by the orthogonal X- and Y-axes. The process of extracting the partial pattern area from the captured image data is a process of identifying the coordinates of the partial pattern area within the captured image data. The coordinates of the partial pattern area are, for example, the center coordinates or the coordinates of the four corners of the partial pattern area. Therefore, in step S125, pattern extraction unit 12b only needs to output information about the coordinates of the partial pattern area.
[0039] In step S126, the pattern extraction unit 12b determines whether N=n, and if N=n, determines "Yes" and ends step S120. If N=n at the end of step S125, this means that all of the N pieces of divided pattern image data that make up the pattern image data have been set as the extraction standard in step S123, and step S124 has been executed. On the other hand, if N>n, the pattern extraction unit 12b determines "No" in step S126 and repeats steps S122 and onward.
[0040] 5, the pattern extraction unit 12b sets the 1st to Nth divided pattern image data as the extraction reference one by one in order and repeats step S124 N times. However, depending on the processing power of the CPU 11a etc., the pattern extraction unit 12b may also extract N types of partial pattern areas in parallel in step S120 using the 1st to Nth divided pattern image data as the extraction reference.
[0041] A specific example of step S120 will be described with reference to FIG. 6. Reference numeral 40 exemplifies pattern image data 40. Pattern image data 40 is image data expressing a pattern designed with a petal motif. Of course, such a pattern may be more complicated. Pattern image data 40 is divided into two equal parts in conveying direction D1 and in width direction D2, thereby being divided into four divided pattern image data 40a, 40b, 40c, and 40d. That is, in the example of FIG. 6, N=4.
[0042] 6 illustrates a portion of the captured image data 42. In the captured image data 42, a pattern similar to the pattern represented by the pattern image data 40 is repeatedly represented along both the transport direction D1 and the width direction D2. Each rectangle indicated by a solid line in the captured image data 42 is a partial pattern area 41a corresponding to a partial pattern represented by the divided pattern image data 40a. In other words, the pattern extraction unit 12b sets the divided pattern image data 40a as a criterion for extraction, and thereby extracts partial pattern areas 41a similar to the divided pattern image data 40a from multiple locations in the captured image data 42.
[0043] Similarly, each rectangle indicated by a dashed line in the captured image data 42 is a partial pattern area 41b corresponding to a partial pattern represented by the divided pattern image data 40b. The pattern extraction unit 12b sets the divided pattern image data 40b as an extraction criterion, and extracts partial pattern areas 41b similar to the divided pattern image data 40b from multiple locations in the captured image data 42. Furthermore, the rectangle indicated by a dashed dotted line in the captured image data 42 is one of the partial pattern areas 41c corresponding to the divided pattern image data 40c, and similarly, the rectangle indicated by a dashed two dotted line in the captured image data 42 is one of the partial pattern areas 41d corresponding to the divided pattern image data 40d. Of course, the partial pattern areas 41c and partial pattern areas 41d are also extracted from multiple locations in the captured image data 42.
[0044] A set of partial pattern regions 41a, 41b, 41c, and 41d constitutes one pattern region 41. In this manner, the process in which the pattern extraction unit 12b compares each of the multiple divided pattern image data 40a, 40b, 40c, and 40d constituting the pattern image data 40 with the captured image data 42 to extract the partial pattern regions 41a, 41b, 41c, and 41d corresponds to the process of extracting the pattern region 41 from the captured image data 42.
[0045] Returning to the explanation of Figure 3. In step S130, the print image generating unit 12c corrects the colored image data expressing the image to be printed over the pattern of the fabric 30 so that it fits the shape of the pattern area extracted in step S120. The colored image data corresponds to the "third image data." The colored image data is color image data generated in advance that expresses the colors to be colored in one pattern and the printing range of the colors. The colored image data is stored in advance in, for example, the storage unit 18. Alternatively, the control unit 11 inputs the colored image data stored in a PC from, for example, a PC external to the printing device 10 in accordance with a user's operation, and stores the input colored image data in the storage unit 18.
[0046] The shape of the colored image data is an ideal shape for a pattern area having one pattern, for example, a rectangle. On the other hand, the shape of each pattern area extracted from the captured image data in step S120 is basically a rectangle, but does not necessarily match the shape of the colored image data. This is because the fabric 30 being conveyed may be distorted or stretched (hereinafter, "distortion, etc."). Although not specifically depicted in FIG. 6, each of the partial pattern areas 41a, 41b, 41c, and 41d constituting each pattern area 41 extracted from the captured image data 42 may have a distorted or stretched shape due to distortion, etc. of the fabric 30.
[0047] Therefore, the print image generating unit 12c deforms each of the multiple divided colored image data obtained by dividing the colored image data in at least one of the vertical and horizontal directions to fit the individual shapes of the partial pattern areas extracted in step S120. The divided colored image data corresponds to the "third divided image data." The print image generating unit 12c divides the colored image data in the same manner as the pattern registration unit 12a divided the pattern image data in step S109 to obtain N divided pattern image data, and obtains N divided colored image data. For example, if the pattern registration unit 12a divided the pattern image data into thirds vertically and thirds horizontally to obtain nine divided pattern image data, the print image generating unit 12c similarly divides the colored image data into thirds vertically and thirds horizontally to obtain nine divided colored image data.
[0048] Then, the print image generating unit 12c transforms one divided colored image data to fit the shape of a partial pattern area whose position in the pattern area corresponds to the position of the divided colored image data in the colored image data. The transformation method may be, for example, affine transformation including image enlargement, reduction, rotation, shearing, or other transformation methods. This type of transformation is the correction in step S130. Depending on the shape of the pattern area, the correction in step S130 may not be necessary.
[0049] In step S140, the print image generating unit 12c generates print image data by arranging the multiple divided colored image data that have been through step S130 in correspondence with the arrangement of the partial pattern areas and pattern areas in the captured image data. The print image data is image data obtained by combining the multiple divided colored image data that have been through step S130, and is an image to be printed on the area of the fabric 30 that has been captured. These steps S130 and S140 correspond to a "print image generating step" that generates print image data by arranging the third image data to match the extracted pattern area.
[0050] Based on the explanation of FIG. 6, a specific example of steps S130 and S140 will be explained with reference to FIG. 7. Reference numeral 50 denotes colored image data 50. The colored image data 50 is color image data that expresses colors to be overlaid on a pattern designed with a petal motif. The colored image data 50 may be interpreted as an image having the same or nearly the same size as the pattern image data 40 in length and width. Like the pattern image data 40, the colored image data 50 is divided into two equal parts in the conveying direction D1 and in the width direction D2, resulting in four divided colored image data 50a, 50b, 50c, and 50d.
[0051] Reference numeral 51a denotes divided colored image data 51a obtained after the divided colored image data 50a is corrected to match the shape of the partial pattern region 41a constituting one pattern region 41. Similarly, reference numeral 51b denotes divided colored image data 51b obtained after the divided colored image data 50b is corrected to match the shape of the partial pattern region 41b constituting said one pattern region 41. Reference numeral 51c denotes divided colored image data 51c obtained after the divided colored image data 50c is corrected to match the shape of the partial pattern region 41c constituting said one pattern region 41. Reference numeral 51d denotes divided colored image data 51d obtained after the divided colored image data 50d is corrected to match the shape of the partial pattern region 41d constituting said one pattern region 41.
[0052] In Fig. 7, the boundaries of the divided colored image data are partially indicated by dashed lines. Also, the distortion of the pattern caused by the distortion of the fabric 30, which is not shown in Fig. 6, is shown in Fig. 7. In step S130, the print image generating unit 12c repeatedly corrects the divided colored image data 50a, 50b, 50c, and 50d for each pattern area 41 consisting of the partial pattern areas 41a, 41b, 41c, and 41d extracted in step S120. The divided colored image data 51a, 51b, 51c, and 51d thus corrected are combined in accordance with the positional relationship of the partial pattern areas 41a, 41b, 41c, and 41d in the pattern area 41 and the arrangement of the pattern area 41 in the captured image data 42 to form the print image data 52.
[0053] As indicated by the dashed arrow in Fig. 3, after starting imaging of the fabric 30 in step S110, the control unit 11 repeats steps S120 to S140 according to the captured image data sequentially obtained from the imaging unit 15. That is, the control unit 11 executes step S120 for captured image data of a predetermined size sequentially obtained from the imaging unit 15, and executes steps S130 and S140 in response to the result of step S120. The print image data 52 shown in Fig. 7 is print image data obtained as a result of one cycle of steps S120 to S140.
[0054] In step S150, the print control unit 12d starts printing the print image data generated in step S140 onto the fabric 30. That is, step S150 starts the "printing process." The print image generation unit 12c repeats step S140 to sequentially generate print image data, and outputs the print image data to the print control unit 12d in the order in which they were generated. The print control unit 12d appropriately applies necessary processes, such as so-called color conversion processing and halftone processing, to the print image data acquired from the print image generation unit 12c, and converts it into print image data in a format used for printing by the printing unit 17. The print control unit 12d may temporarily store such converted print image data in a buffer.
[0055] Then, the print control unit 12d transfers the converted print image data to the print unit 17, and at a predetermined timing when the position of the fabric 30, for which imaging was started in step S110, reaches under the print head 19, causes the print unit 17 to start printing by moving the carriage 20 and discharging ink from the print head 19 based on the print image data. As a result, the color images expressed by the individual color image data constituting the print image data are printed superimposed on the patterns on the fabric 30 in a form that matches the individual patterns on the fabric 30.
[0056] The transport unit 16 is provided with an encoder that detects the amount of rotation of the rollers and belts that rotate for transport. The print control unit 12d calculates the transport distance of the fabric 30 according to the detection signal from the encoder. Therefore, the print control unit 12d can grasp the current position of the fabric 30 in the transport direction D1 where imaging was started in step S110, and can cause the print unit 17 to start printing on the fabric 30 when that position reaches under the print head 19.
[0057] After printing is started in step S150, the control unit 11 determines whether or not printing is to be ended (step S160). If printing is to be ended, the control unit 11 determines "Yes" and proceeds to end processing in step S170. The control unit 11 determines that printing is to be ended, for example, when an instruction to end printing is received from the user or when the transport of the fabric 30 of the planned length is completed.
[0058] In the end process of step S170, the control unit 11 stops the imaging unit 15 from capturing images of the fabric 30. After the control unit 11 causes the printing unit 17 to execute printing based on the print image data generated in the final cycle of steps S120 to S140, the control unit 11 stops driving the conveying unit 16 and the printing unit 17, and ends the flowchart of Fig. 3. Of course, the control unit 11 may stop the conveying unit 16 after controlling necessary processes such as the collection of the fabric 30 by the winding roller.
[0059] 3.Selection of partial pattern regions based on extraction accuracy: As described above, the pattern extraction unit 12b extracts partial pattern areas by comparing the captured image data in units of divided pattern image data. In this case, if a single pattern contains multiple similar partial patterns, when a certain divided pattern image data is set as the extraction criterion in step S123 and step S124 is executed, all of the multiple partial patterns may be extracted as partial pattern areas. However, from a single pattern, one partial pattern area should essentially be extracted based on one divided pattern image data. In consideration of such a situation, the pattern extraction unit 12b may calculate the certainty of extraction of the partial pattern area in step S120 and select information on the partial pattern area required for the processing in step S130 and subsequent steps, as described below.
[0060] Fig. 8 shows an example of pattern image data and captured image data different from those in Fig. 6. Reference numeral 43 denotes pattern image data 43 expressing one pattern. The pattern image data 43 is divided into two equal parts in the conveying direction D1 and into three equal parts in the width direction D2, resulting in six divided pattern image data 43a, 43b, 43c, 43d, 43e, and 43f. That is, in the example of Fig. 8, N=6.
[0061] 8, the partial patterns represented by the divided pattern image data 43a, 43b, 43c, 43d, 43e, and 43f are simplified and depicted as a square pattern "□", a circle pattern "◯", and a star pattern "☆". According to this, for example, the partial pattern represented by the divided pattern image data 43a is similar to the partial pattern represented by the divided pattern image data 43e. Also, the partial pattern represented by the divided pattern image data 43b is similar to the partial pattern represented by the divided pattern image data 43f. Also, the partial pattern represented by the divided pattern image data 43c is similar to the partial pattern represented by the divided pattern image data 43d.
[0062] 8 illustrates a portion of the captured image data 45. In the captured image data 45, a pattern similar to the pattern represented by the pattern image data 43 is repeatedly represented along both the conveying direction D1 and the width direction D2. The rectangles indicated by dashed lines in the captured image data 45 are partial pattern areas 44a, 44b, 44c, 44d, 44e, 44f, 44g, 44h, 44i, 44j, 44k, 44l, 44m, 44n, 44o, 44p, 44q, 44r, 44s, 44t, 44u, 44v, 44w, 44x... extracted in step S124 in FIG.
[0063] When the pattern extraction unit 12b executes step S124 with the divided pattern image data 43a set as the extraction reference in step S123, the pattern extraction unit 12b extracts partial pattern areas 44a, 44d, 44h, 44k, 44m, 44p, 44t, and 44w according to the example of Fig. 8. However, the partial pattern areas 44a, 44d, 44h, 44k, 44m, 44p, 44t, and 44w also include partial pattern areas that should be extracted when the divided pattern image data 43e is set as the extraction reference, not the divided pattern image data 43a. Therefore, for each partial pattern area extracted in step S124, the pattern extraction unit 12b calculates the certainty of extraction based on a comparison between the positional relationship between this partial pattern area and other partial pattern areas extracted around it, and the positional relationship between a plurality of divided pattern image data in the pattern image data. Hereinafter, the certainty of extraction is also referred to as "extraction certainty." Each of the multiple partial pattern areas extracted from multiple positions of the captured image data as corresponding to a partial pattern represented by a certain piece of divided pattern image data corresponds to a "first partial pattern area."
[0064] Here, a method for calculating the extraction probability of each of the partial pattern areas 44a and 44h will be described using an example in which the partial pattern area 44a and the partial pattern area 44h of the square pattern "□" are extracted from the captured image data 45 when the divided pattern image data 43a is set as the extraction reference. In this case, each of the partial pattern areas 44a and 44h is a first partial pattern area. The square pattern "□" is a partial pattern area extracted when the divided pattern image data 43a or the divided pattern image data 43e is set as the extraction reference. In FIG. 8, for convenience of explanation, the width direction D2 is regarded as the X-axis + direction, the opposite direction to the width direction D2 is regarded as the X-axis - direction, the upstream direction in the transport direction D1 is regarded as the Y-axis + direction, and the downstream direction in the transport direction D1 is regarded as the Y-axis - direction.
[0065] First, the extraction accuracy of the partial pattern region 44a is calculated. With reference to the positional relationship between the divided pattern image data 43a and the divided pattern image data 43b, 43c, 43d, 43e, and 43f in the pattern image data 43, the partial pattern region adjacent to the partial pattern region 44a in the positive direction of the X axis in the captured image data 45 should correspond to the circular pattern "◯". The circular pattern "◯" is a partial pattern region extracted when the divided pattern image data 43b or the divided pattern image data 43f is set as the extraction reference. Since the partial pattern region 44b of the circular pattern "◯" is extracted adjacent to the partial pattern region 44a in the positive direction of the X axis in the captured image data 45, the pattern extraction unit 12b sets the extraction accuracy of the partial pattern region 44a to +1 in response to this fact.
[0066] Similarly, when the positional relationship between the divided pattern image data 43a and the divided pattern image data 43b, 43c, 43d, 43e, and 43f is referenced, the partial pattern area two steps away (next to the next) from the partial pattern area 44a in the + direction of the X axis should correspond to the star pattern "☆". The star pattern "☆" is the partial pattern area extracted when the divided pattern image data 43c or the divided pattern image data 43d is set as the extraction standard. In the captured image data 45, the partial pattern area 44c with the star pattern "☆" has been extracted two steps away from the partial pattern area 44a in the + direction of the X axis, so the pattern extraction unit 12b adds +1 to the extraction probability of the partial pattern area 44a.
[0067] Furthermore, the partial pattern area adjacent to partial pattern area 44a in the + direction on the Y axis should correspond to the star pattern "☆", and partial pattern area 44g of the star pattern "☆" has been extracted adjacent to partial pattern area 44a in the + direction on the Y axis. Therefore, pattern extraction unit 12b adds +1 to the extraction probability of partial pattern area 44a. Furthermore, the partial pattern area one region ahead in the +X-axis direction and one region ahead in the +Y-axis direction from partial pattern area 44a should correspond to a rectangular pattern "□", and partial pattern area 44h of a rectangular pattern "□" has been extracted one region ahead in the +X-axis direction and one region ahead in the +Y-axis direction from partial pattern area 44a. Therefore, pattern extraction unit 12b adds +1 to the extraction probability of partial pattern area 44a. Furthermore, the partial pattern region two ahead in the +X-axis direction and one ahead in the +Y-axis direction from partial pattern region 44a should correspond to a circular pattern "◯", and partial pattern region 44i of a circular pattern "◯" has been extracted two ahead in the +X-axis direction and one ahead in the +Y-axis direction from partial pattern region 44a. Therefore, pattern extraction unit 12b adds +1 to the extraction probability of partial pattern region 44a.
[0068] As a result of adding the extraction accuracy in this way, the pattern extraction unit 12b calculates an extraction accuracy of "+5" for the partial pattern area 44a extracted from the captured image data 45 using the divided pattern image data 43a as the extraction reference. In a situation where the pattern image data 43 is divided into 6 as shown in Figure 8, the extraction accuracy of "+5" means the highest point of extraction accuracy.
[0069] Similarly, the extraction accuracy of partial pattern region 44h is calculated. As described above, when referring to the positional relationship between divided pattern image data 43a and divided pattern image data 43b, 43c, 43d, 43e, and 43f in pattern image data 43, the partial pattern region adjacent to partial pattern region 44h in the +X direction in the captured image data 45 should correspond to the circular pattern "O", and partial pattern region 44i of the circular pattern "O" has been extracted adjacent to partial pattern region 44h in the +X direction. Therefore, pattern extraction unit 12b sets the extraction accuracy of partial pattern region 44h to +1. Furthermore, a star pattern "☆" sub-pattern region 44j is extracted two regions away from the sub-pattern region 44h in the +X-axis direction. Therefore, the pattern extraction unit 12b adds +1 to the extraction accuracy of the sub-pattern region 44h.
[0070] However, the partial pattern area adjacent to partial pattern area 44h in the + direction on the Y axis should correspond to a star pattern "☆", but the partial pattern area 44n extracted adjacent to partial pattern area 44h in the + direction on the Y axis is a circle pattern "◯". Based on this fact, pattern extraction unit 12b does not add points to the extraction probability of partial pattern area 44h. Furthermore, the partial pattern area one step ahead in the +X-axis direction and one step ahead in the +Y-axis direction from partial pattern area 44h should correspond to a rectangular pattern "□", but the partial pattern area 44o extracted is a star pattern "☆" one step ahead in the +X-axis direction and one step ahead in the +Y-axis direction from partial pattern area 44h. Based on this fact, pattern extraction unit 12b does not add any points to the extraction probability of partial pattern area 44h. Furthermore, the partial pattern area two ahead in the +X direction and one ahead in the +Y direction from partial pattern area 44h should correspond to a circular pattern "◯", but the partial pattern area 44p with a rectangular pattern "□" has been extracted two ahead in the +X direction and one ahead in the +Y direction from partial pattern area 44h. Based on this fact, the pattern extraction unit 12b does not add any points to the extraction probability of partial pattern area 44h.
[0071] As a result of adding the extraction probability in this way, the pattern extraction unit 12b calculates the extraction probability of the partial pattern area 44h extracted from the captured image data 45 using the divided pattern image data 43a as the extraction reference to be "+2." In other words, even if partial pattern area 44a and partial pattern area 44h can be extracted from captured image data 45 using divided pattern image data 43a as the extraction standard, due to the difference in extraction accuracy, it can be seen that, as the extraction result based on divided pattern image data 43a, partial pattern area 44a is a correct extraction result, and partial pattern area 44h is an incorrect extraction result.
[0072] Next, the calculation of the extraction probability of partial pattern areas 44b and 44i will be explained using an example in which partial pattern area 44b and partial pattern area 44i of a circular pattern "◯" are extracted from captured image data 45 when divided pattern image data 43b is set as the extraction standard.
[0073] First, the extraction accuracy of the partial pattern region 44b is calculated. With reference to the positional relationship between the divided pattern image data 43b and the divided pattern image data 43a, 43c, 43d, 43e, and 43f in the pattern image data 43, the partial pattern region adjacent to the partial pattern region 44b in the negative direction of the X axis in the captured image data 45 should correspond to a square pattern "□", and the partial pattern region 44a of the square pattern "□" has been extracted adjacent to the partial pattern region 44b in the negative direction of the X axis. Therefore, the pattern extraction unit 12b sets the extraction accuracy of the partial pattern region 44b to +1. Furthermore, the partial pattern region 44c of the star pattern "☆" has been extracted adjacent to the partial pattern region 44b in the positive direction of the X axis, so the pattern extraction unit 12b adds +1 to the extraction accuracy of the partial pattern region 44b. Furthermore, since a partial pattern region 44g of a star pattern "☆" is extracted one step ahead of the partial pattern region 44b in the negative X-axis direction and one step ahead of the partial pattern region 44b in the positive Y-axis direction, the pattern extraction unit 12b adds +1 to the extraction accuracy of the partial pattern region 44b. Furthermore, since a partial pattern region 44h of a square pattern "□" is extracted next to the partial pattern region 44b in the positive Y-axis direction, the pattern extraction unit 12b adds +1 to the extraction accuracy of the partial pattern region 44b. Furthermore, since a partial pattern region 44i of a round pattern "◯" is extracted one step ahead of the partial pattern region 44b in the positive X-axis direction and one step ahead of the partial pattern region 44b in the positive Y-axis direction, the pattern extraction unit 12b adds +1 to the extraction accuracy of the partial pattern region 44b. Therefore, the pattern extraction unit 12b calculates an extraction accuracy of "+5" for the partial pattern region 44b extracted from the captured image data 45 using the divided pattern image data 43b as the extraction reference.
[0074] Similarly, the extraction accuracy of the partial pattern region 44i is calculated. In the captured image data 45, a partial pattern region 44h having a square pattern "□" is extracted adjacent to the partial pattern region 44i in the negative X-axis direction. Therefore, the pattern extraction unit 12b sets the extraction accuracy of the partial pattern region 44i to +1. Furthermore, a partial pattern region 44j having a star pattern "☆" is extracted adjacent to the partial pattern region 44i in the positive X-axis direction, so the pattern extraction unit 12b adds +1 to the extraction accuracy of the partial pattern region 44i. However, the partial pattern region 44n one step ahead of the partial pattern region 44i in the negative X-axis direction and one step ahead of the partial pattern region 44i in the positive Y-axis direction is not a star pattern "☆", so based on this fact, the pattern extraction unit 12b does not add a point to the extraction accuracy of the partial pattern region 44i. Furthermore, partial pattern region 44o adjacent to partial pattern region 44i in the +Y direction is not a rectangular pattern "□", and based on this fact, pattern extraction unit 12b does not add any points to the extraction accuracy of partial pattern region 44i. Furthermore, partial pattern region 44p one step ahead of partial pattern region 44i in the +X direction and one step ahead in the +Y direction is not a circular pattern "◯", and based on this fact, pattern extraction unit 12b does not add any points to the extraction accuracy of partial pattern region 44i. Therefore, pattern extraction unit 12b calculates an extraction accuracy of "+2" for partial pattern region 44i extracted from captured image data 45 using divided pattern image data 43b as the extraction reference.
[0075] In this way, even if partial pattern area 44b and partial pattern area 44i can be extracted from captured image data 45 using divided pattern image data 43b as the extraction standard, due to the difference in extraction accuracy, it can be seen that, as the extraction result based on divided pattern image data 43b, partial pattern area 44b is a correct extraction result, and partial pattern area 44i is an incorrect extraction result.
[0076] FIG. 9 shows, in a table format, the extraction accuracy for each combination of the divided pattern image data used as the extraction reference and the partial pattern area extracted from the captured image data using the divided pattern image data used as the extraction reference. The pattern extraction unit 12b calculates the extraction accuracy for each extracted partial pattern area from the positional relationship with the surrounding partial pattern areas as described above. According to FIG. 9, for example, the partial pattern area 44a can be extracted both when the divided pattern image data 43a is used as the extraction reference and when the divided pattern image data 43e is used as the extraction reference. However, since the extraction accuracy when the divided pattern image data 43a is used as the extraction reference is "+5" and the extraction accuracy when the divided pattern image data 43e is used as the extraction reference is "+1", it can be seen that the partial pattern area 44a extracted using the divided pattern image data 43a as the reference is a correct extraction result, and the partial pattern area 44a extracted using the divided pattern image data 43e as the reference is an incorrect extraction result.
[0077] Pattern extraction unit 12b calculates the extraction probability at the timing of step S125, and when an extraction probability such as that shown in Fig. 9 is obtained, it selects partial pattern areas with an extraction probability of "+5" and outputs information about the selected partial pattern areas to print image generation unit 12c as the extraction result. Alternatively, pattern extraction unit 12b selects partial pattern areas with a calculated extraction probability equal to or greater than a predetermined threshold value from the partial pattern areas extracted in step S124, and outputs information about the selected partial pattern areas to print image generation unit 12c as the extraction result. In other words, pattern extraction unit 12b provides the extraction results of first partial pattern areas with a relatively high extraction probability from among first partial pattern areas at multiple positions to print image generation unit 12c for generating print image data.
[0078] As can be seen from the above explanation, the calculation of the extraction probability requires reference to the positional relationships of the extracted partial pattern areas, and is therefore performed after a plurality of partial pattern areas have been extracted from a certain area of the captured image data. Therefore, the pattern extraction unit 12b repeats steps S122, S123, and S124 a plurality of times, and when it has finished extracting partial pattern areas that are continuous and have a predetermined size in the captured image data 45 as shown in Fig. 8, it may calculate the extraction probability for each partial pattern area and select the partial pattern areas based on the extraction probability in step S125.
[0079] The calculation of the extraction probability is possible even in a situation where a group of multiple partial pattern areas corresponding to one piece of pattern image data has not been extracted. It is assumed that the pattern extraction unit 12b has not acquired the portion of the captured image data 45 having the partial pattern areas 44s, 44t, 44u, 44v, 44w, and 44x at the time of step S120, due to the speed at which the captured image data 45 is generated. Even in such a case, the pattern extraction unit 12b calculates, for example, the extraction probability of partial pattern area 44m from its relationship with partial pattern area 44n and partial pattern area 44o.
[0080] Specifically, the pattern extraction unit 12b uses the number of other partial pattern areas referred to in calculating the extraction probability of partial pattern area 44m as a parameter, and determines the extraction probability as the ratio of the number of partial pattern areas whose positional relationship with partial pattern area 44m matches the positional relationship of the divided pattern image data in pattern image data 43. In other words, for partial pattern area 44m extracted based on divided pattern image data 43a as a reference, the positional relationship with the referenced partial pattern area 44n and partial pattern area 44o matches the positional relationship between divided pattern image data 43a and divided pattern image data 43b and divided pattern image data 43c, so the extraction probability is 2 / 2, that is, 100%. Even when the extraction probability is calculated as a ratio in this way, the pattern extraction unit 12b can select partial pattern areas with a relatively high extraction probability by using a threshold value, for example.
[0081] 4. Summary: As described above, according to the present embodiment, the printing device 10 includes a conveying unit 16 that conveys the fabric 30 on which a pattern is formed in the conveying direction D1, an imaging unit 15 that images the fabric 30 conveyed by the conveying unit 16, a printing unit 17 that prints on the fabric 30 conveyed by the conveying unit 16, a pattern extraction unit 12b that extracts a pattern area corresponding to the pattern in the second image data based on a comparison between first image data expressing the pattern and second image data generated by imaging the fabric 30 by the imaging unit 15, a print image generation unit 12c that generates print image data by arranging third image data expressing an image to be printed over the pattern so as to match the extracted pattern area, and a print control unit 12d that causes the printing unit 17 to print the print image data on the fabric 30. The pattern extraction unit 12b compares each of a plurality of divided first image data obtained by dividing the first image data in at least one of the vertical and horizontal directions with the second image data, thereby extracting a partial pattern area corresponding to the partial pattern expressed by the divided first image data from the second image data. The print image generation unit 12c generates print image data by arranging each of a plurality of divided third image data obtained by dividing the third image data in at least one of the vertical and horizontal directions according to the extracted partial pattern area.
[0082] According to the above configuration, the pattern extraction unit 12b extracts partial pattern areas from the second image data by comparing the second image data with the divided first image data units, not the first image data units. This makes it possible to reduce the influence of distortions in the fabric 30 or large sizes of the first image data, and to accurately extract partial pattern areas, and as a result, to extract with high accuracy the pattern area, which is a collection of partial pattern areas. In addition, the print image generation unit 12c generates print image data by arranging the print image data in units of divided third image data in correspondence with the partial pattern areas. Therefore, compared to arranging and printing in units of third image data in accordance with the pattern areas, it is easier to make fine adjustments and corrections, and it is easier to reduce the misalignment between the pattern and the image to be printed over the pattern.
[0083] As can be seen from FIG. 2A, the distance between the imaging unit 15 and the print head 19 in the conveying direction D1 is determined by the product standard. The control unit 11, which acquires the second image data generated by the imaging unit 15 capturing the conveyed fabric 30, needs to finish generating the print image data required to start printing before the fabric 30 reaches the print head 19. However, when each pattern formed on the fabric 30 is large, if the print image data is generated after extracting a pattern area corresponding to one pattern from the second image data, it will not be in time for the start of printing on the fabric 30, and it becomes necessary to reduce the conveying speed of the fabric 30 or temporarily stop conveying it. To address such inconvenience, in this embodiment, partial pattern areas are extracted from the second image data in units of divided first image data, and print image data is generated according to the partial pattern areas in units of divided third image data. Therefore, it is possible to generate print image data sequentially without waiting for the imaging of an entire pattern or the extraction of an entire pattern area, and it is possible to avoid a decrease in printing efficiency.
[0084] This embodiment includes a configuration in which the pattern extraction unit 12b handles divided first image data obtained by dividing the first image data only in the vertical direction, and the print image generation unit 12c handles divided third image data obtained by dividing the third image data only in the vertical direction. Similarly, this embodiment includes a configuration in which the pattern extraction unit 12b handles divided first image data obtained by dividing the first image data only in the horizontal direction, and the print image generation unit 12c handles divided third image data obtained by dividing the third image data only in the horizontal direction.
[0085] Furthermore, according to this embodiment, when first partial pattern areas corresponding to a partial pattern represented by one divided first image data are extracted from multiple positions in the second image data, pattern extraction unit 12b calculates the certainty of extraction for each first partial pattern area at the multiple positions based on a comparison between the positional relationship between the first partial pattern area and other partial pattern areas extracted around the first partial pattern area and the positional relationship between the multiple divided first image data in the first image data. Then, the extraction results of first partial pattern areas with a relatively high certainty among the first partial pattern areas at the multiple positions are provided to print image generation unit 12c for generating print image data. According to the above configuration, the pattern extraction unit 12b calculates the accuracy of extraction of the partial pattern areas, that is, the extraction probability, and thereby eliminates partial pattern areas that have been erroneously extracted from the second image data in comparison with the divided first image data, and provides information on correctly extracted partial pattern areas for generating print image data. This makes it possible to avoid, for example, generating print image data by combining the divided third image data in an incorrect position, and ensures print quality.
[0086] In addition to the printing device 10, this embodiment discloses inventions in various categories, such as systems, programs, and methods. The printing method includes a conveying step of conveying the fabric 30 on which the pattern is formed in the conveying direction D1, an imaging step of imaging the conveyed fabric 30, a pattern extracting step of extracting a pattern area corresponding to the pattern in the second image data based on a comparison between first image data expressing the pattern and second image data generated by imaging the fabric 30, a print image generating step of generating print image data by arranging third image data expressing an image to be printed over the pattern so as to match the extracted pattern area, and a printing step of printing the print image data on the conveyed fabric 30. The pattern extracting step extracts partial pattern areas corresponding to the partial pattern expressed by the divided first image data from the second image data by comparing each of a plurality of divided first image data obtained by dividing the first image data at least in one of the vertical direction and the horizontal direction with the second image data, and the print image generating step generates print image data by arranging each of a plurality of divided third image data obtained by dividing the third image data at least in one of the vertical direction and the horizontal direction according to the extracted partial pattern area.
[0087] 2A shows a so-called serial printer configuration in which the print head 19 is mounted on the carriage 20 and moves, but the print head 19 may be a so-called line-type head. In other words, the print head 19 may be a long print head that is not mounted on the carriage 20 and can cover the width of the fabric 30 along the width direction D2.
[0088] 2A and 2B, the component indicated by the reference symbol 22 may not be an endless belt, but may be a platen that serves as a platform that supports the fabric 30 from below. In other words, the fabric 30 transported by rollers (not shown) may be interpreted as moving on the platen. This embodiment can also be applied to the case where a material other than the fabric 30, for example, a print medium made of paper on which a pattern is formed, is used for printing. [Explanation of symbols]
[0089] 10...printing device, 11...control unit, 12...program, 12a...pattern registration unit, 12b...pattern extraction unit, 12c...print image generation unit, 12d...print control unit, 13...display unit, 14...operation reception unit, 15...imaging unit, 16...transport unit, 17...printing unit, 18...storage unit, 19...print head, 20...carriage, 22...endless belt, 30...fabric, 40, 43...pattern image data, 40a, 40b, 40c, 40d, 43a, 43b, 43c, 43d, 43e, 43f... Divided pattern image data, 41...pattern area, 41a, 41b, 41c, 41d, 44a, 44b, 44c, 44d, 44e, 44f, 44g, 44h, 44i, 44j, 44k, 44l, 44m, 44n, 44o, 44p, 44q, 44r, 44s, 44t, 44u, 44v, 44w, 44x...partial pattern area, 42, 45...captured image data, 50...colored image data, 50a, 50b, 50c, 50d...divided colored image data, 52...printed image data
Claims
1. A printing device that conveys a fabric on which a pattern is formed and prints on the fabric, A conveying section that conveys the fabric in a conveying direction; an imaging unit that images the fabric conveyed by the conveying unit; a printing unit that prints on the fabric transported by the transport unit; a pattern extraction unit that extracts a pattern area corresponding to the pattern in the second image data based on a comparison between first image data expressing the pattern and second image data generated by the imaging unit; a print image generating unit that generates print image data by arranging third image data, which represents an image to be printed over the pattern, so as to match the extracted pattern area; a print control unit that causes the printing unit to print the print image data on the fabric, the pattern extraction unit compares the second image data with each of a plurality of divided first image data obtained by dividing the first image data expressing the pattern in at least one of a vertical direction and a horizontal direction, and extracts from the second image data a partial pattern area corresponding to the partial pattern expressed by the divided first image data; The printing device is characterized in that the print image generation unit generates the print image data by dividing the third image data, which represents the image to be printed over the pattern, in at least one of the vertical and horizontal directions, and arranging each of the multiple divided third image data according to the extracted partial pattern area.
2. The pattern extraction unit is when a first partial pattern area corresponding to a partial pattern represented by one of the divided first image data is extracted from a plurality of positions of the second image data, a degree of extraction is calculated for each of the first partial pattern areas at the plurality of positions based on a comparison between a positional relationship between the first partial pattern area and other partial pattern areas extracted around the first partial pattern area and a positional relationship between a plurality of the divided first image data in the first image data, 2. The printing device according to claim 1, wherein the extraction result of the first partial pattern area having a relatively high certainty among the first partial pattern areas at multiple positions is provided to the print image generation unit for generating the print image data.
3. A printing method for conveying a fabric on which a pattern is formed and printing on the fabric, comprising the steps of: A conveying step of conveying the fabric in a conveying direction; an imaging step of imaging the fabric being conveyed; a pattern extraction step of extracting a pattern area corresponding to the pattern in the second image data based on a comparison between first image data expressing the pattern and second image data generated by imaging the fabric; a print image generating step of generating print image data by arranging third image data expressing an image to be printed over the pattern so as to match the extracted pattern area; a printing step of printing the print image data on the transported fabric, In the pattern extraction step, a partial pattern area corresponding to the partial pattern represented by the divided first image data is extracted from the second image data by comparing each of a plurality of divided first image data obtained by dividing the first image data representing the pattern in at least one of the vertical direction and the horizontal direction with the second image data; A printing method characterized in that, in the print image generation process, the print image data is generated by dividing the third image data, which represents the image to be printed over the pattern, in at least one of the vertical and horizontal directions, and arranging each of the multiple divided third image data according to the extracted partial pattern area.
Citation Information
Patent Citations
Precise digital printing method for fabric by utilizing digital printing machine and fabric
EP3653391A1
Method and apparatus for imaging
JP1999300948A
Image processing method and image processor
JP2000215317A
How to print on a flat substrate and assembly and computer program products
JP2004501000A
Image similarity calculation system, image search system, image similarity calculation method, and image similarity calculation program
JP2006331460A
