Printing device and printing method

The printing device and method address the challenge of fabric pattern distortions by extracting and aligning pattern areas within a predetermined distance, ensuring precise print alignment on fabrics with distorted patterns.

JP7533165B2Active Publication Date: 2024-08-14SEIKO EPSON CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2020197296
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-08-14
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

When printing on fabrics with patterns, distortions or expansions/contractions during transportation cause difficulties in accurately understanding the positional relationship between patterns, making it challenging to properly align prints.

Method used

A printing device and method that includes a conveyance section, imaging section, and printing section, which extracts pattern areas using image data comparisons, sets a search source pattern area, and specifies positional relationships by searching adjacent areas within a predetermined distance, allowing for accurate alignment and printing.

Benefits of technology

Enables accurate alignment and printing on fabrics with distorted patterns by repeatedly specifying positional relationships between pattern areas, ensuring precise print placement despite fabric distortions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007533165000004
    Figure 0007533165000004
  • Figure 0007533165000005
    Figure 0007533165000005
  • Figure 0007533165000003
    Figure 0007533165000003
Patent Text Reader

Abstract

To solve the problem that it is difficult to accurately specify a positional relation between pattern areas.SOLUTION: A printing device comprises: a pattern extraction part that extracts a pattern area from second image data, on the basis of a result of comparison of first image data expressing a pattern with second image data generated by imaging a cloth being conveyed; a printing image generation part that generates printing image data by arranging third image data that express an image which should be printed to be superimposed on the pattern so that the data match a positional relation between pattern areas; and a printing control part that makes a printing part execute printing of the printing image data on the cloth being conveyed. The pattern extraction part executes: positional relation specifying processing in which one of the pattern areas is set as a search source, the pattern area in which searching becomes successful in a certain range set in a position separated by a predetermined distance in a predetermined searching direction away from the pattern area of the search source is set as a searching destination and a position in the pattern area, of the search destination is memorized when the position is adjacent to the pattern area of the search destination in the searching direction; and positional relation specifying processing in which the pattern area of the search destination is set as a new pattern of the search destination.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

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, it is assumed that, in the case where a fabric on which a pattern is formed is used as a print medium, the pattern is extracted from a captured image obtained by capturing an image of the fabric being transported. In many cases, a pattern is periodically formed on the fabric, but the fabric may be distorted or stretched (hereinafter, "distortion, etc.") during transport, and the patterns are not necessarily arranged orderly in the vertical or horizontal directions in the captured image. In order to perform appropriate printing on the fabric, it is necessary to grasp the positional relationship between the patterns on the fabric, but due to the influence of the above-mentioned distortion, etc., it is not easy to correctly grasp the positional relationship between the patterns extracted from the captured image. [Means for solving the problem]

[0005] the pattern extraction unit extracts a pattern area corresponding to the pattern in first image data representing the pattern based on a comparison between the first image data representing the pattern and second image data generated by the imaging unit capturing an image of the fabric; a print image generation unit generates print image data by arranging third image data representing an image to be printed over the pattern to match a positional relationship of the extracted pattern area; and a print control unit causes the printing unit to print the print image data on the fabric, wherein the pattern extraction unit performs a positional relationship determination process to determine one of the pattern areas as a search source pattern area, determine the pattern area successfully searched for within a certain range set at a position a predetermined distance away from the search source pattern area in a predetermined search direction as a search destination pattern area, and store the position of the search destination pattern area as adjacent to the search source pattern area in the search direction, and performs the positional relationship determination process with the search destination pattern area as the new search source pattern area.

[0006] The printing method includes a conveying step of conveying a fabric on which a pattern has been formed in a conveying direction, an imaging step of imaging the fabric as it is conveyed, a pattern extraction step of extracting a pattern area in the second image data corresponding to the pattern based on a comparison between first image data representing the pattern and second image data generated by imaging the fabric, a print image generation step of generating print image data by arranging third image data representing an image to be printed over the pattern to match the positional relationship of the extracted pattern area, and a printing step of printing the print image data on the fabric as it is conveyed, in which the pattern extraction step executes a positional relationship specifying process in which one of the pattern areas is set as a search source pattern area, the pattern area successfully searched for within a certain range set at a position a predetermined distance away from the search source pattern area in a predetermined search direction is set as a search destination pattern area, and the position of the search destination pattern area is stored as being adjacent to the search source pattern area in the search direction, and the positional relationship specifying process is performed with the search destination pattern area as the new search source 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 S130. [Figure 6] FIG. 4 is a diagram showing the center coordinates of extracted pattern areas in a list; [Figure 7] FIG. 11 is a diagram for explaining step S130 using a concrete example. [Figure 8] FIG. 4 is a diagram for explaining steps S140 and S150 using a concrete example. [Figure 9] 5A and 5B are diagrams illustrating examples of pattern image data and a portion of captured image data. [Figure 10] FIG. 10A is a diagram showing a pattern area having a 1 / 2 phase shift relationship, and FIG. 10B is a diagram showing a pattern area having a 1 / 3 phase shift relationship. 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 as a processor, a ROM 11b, a RAM 11c, etc., and 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. This completes the registration of the pattern image data. 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 simplify step S100 by registering the basic image data itself in the storage unit 18 as pattern image data.

[0030] 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".

[0031] 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 imaging in step S110. A plurality of patterns are represented side by side in the captured image data. Therefore, the pattern extraction unit 12b extracts a pattern area for each of the patterns represented side by side in the captured image data. Step S120 corresponds to a "pattern extraction step."

[0032] The pattern extraction unit 12b may use an image recognition technique to extract an image region having a similarity to the pattern image data higher than a predetermined level as a pattern region. Specifically, the pattern extraction unit 12b extracts an edge of an image in the 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 pattern image data with the distribution of edges in the captured image data while shifting the position and while deforming the 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 pattern region. Note that, similar to the process of step S120, 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.

[0033] In this embodiment, the directions of each image data, such as the pattern image data, the captured image data, and the print image data, handled by the control unit 11 will be described in relation to the transport direction D1 and the width direction D2. Here, if the width direction D2 is regarded as the X-axis and the transport direction D1 is regarded as the Y-axis, the coordinates of the captured image data are defined in a two-dimensional plane by the orthogonal X-Y axes. Therefore, the process of extracting a pattern area from the captured image data is a process of identifying the coordinates of the pattern area in the captured image data. More specifically, the pattern extraction unit 12b acquires the center coordinates of an area in the captured image data that can be evaluated as one pattern area according to the degree of coincidence of the edge distribution as described above, as the extraction result of one pattern area. Through such a process, the pattern extraction unit 12b extracts multiple pattern areas from the captured image data.

[0034] In step S130, the pattern extraction unit 12b specifies the positional relationship between the multiple pattern regions extracted in step S 120. Step S130 may also be considered as part of the pattern extraction process. FIG. 5 is a flowchart showing the details of step S130. In step S131, the pattern extraction unit 12b sets at least one of the multiple pattern regions extracted in step S120 as a "search source pattern region."

[0035] FIG. 6 shows a list of the center coordinates of the pattern regions extracted in step S120. FIG. 6 shows the correspondence between the pattern region name and the center coordinates (X, Y) of each pattern region. For example, the center coordinates of pattern region A1 are (x1, y1). The information obtained as a result of the extraction of pattern regions in step S120 is information on the center coordinates (X, Y) of each pattern region. For ease of explanation, FIG. 6 shows the pattern region name for each pattern region. Of course, the pattern extraction unit 12b can assign pattern region names to the center coordinates (X, Y) of each pattern region obtained in step S120 in order to distinguish them.

[0036] In the first step S131 of step S130, the pattern extraction unit 12b sets, as a search source, for example, a pattern region having the smallest X and Y coordinates among the pattern regions shown in Fig. 6. Here, as an example, it is assumed that the pattern region A1 is set as the search source.

[0037] In step S132, the pattern extraction unit 12b sets a search range based on the search source pattern area. Specifically, the pattern extraction unit 12b sets a certain range at a position a predetermined distance away in a predetermined search direction from the search source pattern area as the search range. The predetermined distance here refers to a predetermined distance suitable for searching other pattern areas adjacent to the search source.

[0038] In step S133, the pattern extraction unit 12b searches for a pattern area within the search range. In this case, the search is successful if the central coordinates of the pattern area can be found within the search range. The pattern area successfully searched for in step S133 is called the "search target pattern area."

[0039] In step S134, the pattern extraction unit 12b stores the positional relationship between the search source pattern area and the search destination pattern area. In this case, the pattern extraction unit 12b stores information that the position of the search destination pattern area is adjacent to the search source pattern area in the search direction. Steps S131 to S134 correspond to the positional relationship determination process.

[0040] In step S135, the pattern extraction unit 12b determines whether or not there remains a pattern region to be used as a search source, and if there remains a pattern region to be used as a search source, the pattern extraction unit 12b judges "Yes" and proceeds to step S131. For example, when the pattern extraction unit 12b has at least used all of the pattern regions extracted in step S120 as search source pattern regions or has stored their positional relationships with the search source pattern regions, the pattern extraction unit 12b may judge "No", that is, there are no pattern regions to be used as search sources, and end step S130. If the search in step S133 is unsuccessful, the pattern extraction unit 12b may essentially skip step S134 and proceed to the judgment in step S135.

[0041] In step 131 after "Yes" in step S135, the pattern extraction unit 12b sets a pattern area that has not yet been set as a search source among the pattern areas extracted in step S120 as a new search source pattern area and repeats the positional relationship determination process. At this time, the pattern extraction unit 12b may set the search destination pattern area as the new search source pattern area and repeat the positional relationship determination process.

[0042] Fig. 7 is a diagram for explaining step S130 with a specific example. Fig. 7 shows the central coordinates of a portion of a pattern area in a two-dimensional plane defined by orthogonal X and Y axes. In the diagram, the positive X-axis direction may be understood to correspond to the width direction D2, and the negative X-axis direction to correspond to the opposite direction to the width direction D2. In addition, the positive Y-axis direction corresponds to the upstream direction in the transport direction D1, and the negative Y-axis direction corresponds to the downstream direction in the transport direction D1.

[0043] In step S131, which is the first step in step S130, the pattern extraction unit 12b sets, for example, the pattern region A1 as the search source. FIG. 7 shows the center coordinates (x1, y1) of the pattern region A1. In step S132, the pattern extraction unit 12b, which has set the pattern region A1 as the search source, sets a circle C1 centered at a position separated by a predetermined distance W in the positive direction of the X axis from the center coordinates (x1, y1), and sets a circle C2 centered at a position separated by a distance W in the negative direction of the X axis from the center coordinates (x1, y1). Furthermore, the pattern extraction unit 12b sets a circle C3 centered at a position separated by a predetermined distance H in the negative direction of the Y axis from the center coordinates (x1, y1), and sets a circle C4 centered at a position separated by a distance H in the positive direction of the Y axis from the center coordinates (x1, y1).

[0044] That is, the direction parallel to the X-axis or the direction parallel to the Y-axis corresponds to the predetermined search direction. Moreover, such search directions can be said to be the horizontal and vertical directions of the captured image data. The direction parallel to the width direction D2 can be interpreted as the horizontal direction, and the direction parallel to the transport direction D1 can be interpreted as the vertical direction. The distances H and W are the ideal vertical and horizontal lengths of the pattern area, and are predetermined values ​​in this embodiment. Alternatively, the pattern extraction unit 12b may treat the vertical length of the pattern image data as the distance H, and the horizontal length of the pattern image data as the distance W.

[0045] The circles C1, C2, C3, and C4 thus set are search ranges based on the pattern area A1, which is the search source. The diameter of the circle as the search range is also determined in advance, and is a value suitable for searching other pattern areas adjacent to the search source. In step S133, the pattern extraction unit 12b searches for the center coordinates of the pattern area in each of the circles C1, C2, C3, and C4, and sets the pattern area whose center coordinates are included in these circles as the pattern area to be searched. According to FIG. 7, the center coordinates (x2, y2) of the pattern area A2 are included in the circle C1, and the center coordinates (x4, y4) of the pattern area A4 are included in the circle C4. Therefore, when the circle C1 is set as the search range, the search for the pattern area A2 is successful, and when the circle C4 is set as the search range, the search for the pattern area A4 is successful. In FIG. 7, among the circles set as the search range, the circles that include the center coordinates of the pattern area are indicated by solid lines, and the circles that do not include the center coordinates of the pattern area are indicated by two-dot chain lines.

[0046] In step S134, the pattern extraction unit 12b stores positional relationship information that the search destination pattern area A2 is adjacent to the search source pattern area A1 in the + direction of the X axis, and the search destination pattern area A4 is adjacent to the search source pattern area A1 in the + direction of the Y axis. After this step S134, in step S131 following the determination of "Yes" in step S135, the pattern extraction unit 12b sets each of the pattern areas A2 and A4 as new search sources.

[0047] Therefore, in step S132, the pattern extraction unit 12b sets a circle C5 centered at a position distance W away from the center coordinates (x2, y2) of the pattern region A2 in the positive direction of the X axis, sets a circle C6 centered at a position distance H away from the center coordinates (x2, y2) in the negative direction of the Y axis, and sets a circle C7 centered at a position distance H away from the center coordinates (x2, y2) in the positive direction of the Y axis. Similarly, the pattern extraction unit 12b sets a circle C8 centered at a position distance W away from the center coordinates (x4, y4) of the pattern region A4 in the positive direction of the X axis, sets a circle C9 centered at a position distance W away from the center coordinates (x4, y4) in the negative direction of the X axis, and sets a circle C10 centered at a position distance H away from the center coordinates (x4, y4) in the positive direction of the Y axis. In addition, the pattern extraction unit 12b does not need to set a circle as a search range in any of the four directions, namely, the X-axis +·- directions and the Y-axis +·- directions, based on the pattern area to be searched, where the adjacent relationship with other pattern areas is already known.

[0048] In step S133, the pattern extraction unit 12b searches for the center coordinates of the pattern region in each of the circles C5, C6, C7, C8, C9, and C10, and sets the pattern regions whose center coordinates are in these circles as the search target pattern regions. According to Fig. 7, the center coordinates (x3, y3) of the pattern region A3 are in the circle C5, and the center coordinates (x5, y5) of the pattern region A5 are in the circle C7. Furthermore, the center coordinates (x5, y5) of the pattern region A5 are in the circle C8, and the center coordinates (x6, y6) of the pattern region A6 are in the circle C10.

[0049] Therefore, in step S134, the pattern extraction unit 12b stores positional relationship information that the search destination pattern region A3 is adjacent to the search source pattern region A2 in the + direction of the X axis, and the search destination pattern region A5 is adjacent to the search source pattern region A2 in the + direction of the Y axis. Similarly, the pattern extraction unit 12b stores positional relationship information that the search destination pattern region A5 is adjacent to the search source pattern region A4 in the + direction of the X axis, and the search destination pattern region A6 is adjacent to the search source pattern region A4 in the + direction of the Y axis. After this step S134, in step S131 after the determination of "Yes" in step S135, the pattern extraction unit 12b sets each of the pattern regions A3, A5, and A6 as the search source. Thereafter, the same process is repeated.

[0050] In this way, the pattern extraction unit 12b repeats the positional relationship determination process by generating a search chain in which the search destination pattern area whose coordinates were found from the search range becomes the new search source. This allows the pattern extraction unit 12b to accurately determine the positional relationship between the multiple pattern areas extracted in step S120, such as which pattern areas are adjacent to each other in which direction.

[0051] Returning to the explanation of Figure 3. In step S140, 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. 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 color printing range. The colored image data is stored in advance in, for example, the storage unit 18. Alternatively, the control unit 11 inputs colored image data stored in a PC, for example, from 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.

[0052] In the captured image data, the center coordinates of each pattern area are ideally spaced at regular intervals along the conveying direction D1 and the width direction D2. In addition, the pattern area is ideally a rectangle with a vertical length of H and a horizontal length of W. However, since the fabric 30 being conveyed may be distorted as described above, the positional relationship of the center coordinates of the multiple pattern areas extracted from the captured image data in step S120 may also be affected by such distortion. For example, the pattern area A2 adjacent to the pattern area A1 in the + direction of the X axis is ideally assumed to have a center coincident with the center of the circle C1, but according to the example of FIG. 7, the center coordinates (x2, y2) of the pattern area A2 are shifted from the center of the circle C1. In addition, the pattern area A4 adjacent to the pattern area A1 in the + direction of the Y axis is ideally assumed to have a center coincident with the center of the circle C4, but according to the example of FIG. 7, the center coordinates (x4, y4) of the pattern area A4 are shifted from the center of the circle C4.

[0053] Therefore, in executing step S140, the pattern extraction unit 12b or the print image generation unit 12c identifies the shape of each pattern area in the captured image data based on the central coordinates of the pattern area extracted in step S120 and the positional relationship of the pattern area identified in step S130. In this case, the pattern extraction unit 12b may identify the shape of each pattern area by repeating a process of calculating the coordinates of the four corners of a rectangle having one central coordinate at its center or approximately at its center according to the distance and positional relationship between the coordinates of the central coordinates of the adjacent surrounding pattern areas. Each pattern area identified in this way may have a distorted or stretched shape due to distortion of the fabric 30, etc.

[0054] The print image generating unit 12c transforms the shape of the colored image data to fit the individual shapes of the pattern regions. For example, affine transformation including image enlargement, reduction, rotation, shearing, and other transformation methods are used as the transformation method. This type of transformation is the correction in step S140. Depending on the shape of the pattern region, the correction in step S140 may not be necessary.

[0055] In step S150, the print image generating unit 12c generates print image data by arranging the multiple colored image data that have been through step S140 in correspondence with the positional relationship of the multiple pattern areas in the captured image data. The print image data is image data obtained by combining the multiple colored image data that have been through step S140, and is an image to be printed on the area of ​​the fabric 30 that has been captured. These steps S140 and S150 correspond to a "print image generating step" that generates print image data by arranging the third image data in accordance with the positional relationship of the extracted pattern areas.

[0056] A specific example of steps S140 and S150 will be described with reference to FIG. 8. Reference numeral 50 denotes colored image data 50. In the example of FIG. 8, 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 in length and width. Reference numeral 51a denotes colored image data 51a obtained after the colored image data 50 has been corrected to fit the shape of a pattern area A1 having center coordinates (x1, y1). Similarly, reference numeral 51b denotes colored image data 51b obtained after the colored image data 50 has been corrected to fit the shape of a pattern area A2 adjacent to the pattern area A1 in the +X-axis direction. In FIG. 8, the boundary of the colored image data after correction is indicated by a partially dashed line.

[0057] Reference numeral 51c denotes colored image data 51c obtained after the colored image data 50 is corrected to match the shape of pattern area A3 adjacent to pattern area A2 in the + direction of the X axis. Reference numeral 51d denotes colored image data 51d obtained after the colored image data 50 is corrected to match the shape of pattern area A4 adjacent to pattern area A1 in the + direction of the Y axis. The print image data 51 is obtained by combining such colored image data 51a, 51b, 51c, 51d... according to the positional relationship of the pattern areas in the captured image data.

[0058] 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 S150 according to the captured image data sequentially obtained from the imaging unit 15. That is, the control unit 11 executes steps S120 and S130 for captured image data of a predetermined size sequentially obtained from the imaging unit 15, and executes steps S140 and S150 in response to the results of steps S120 and S130. The print image data 51 shown in Fig. 8 is print image data obtained as a result of one cycle of steps S120 to S150.

[0059] In step S160, the print control unit 12d starts printing the print image data generated in step S150 onto the fabric 30. That is, step S160 starts the "printing process." The print image generation unit 12c sequentially generates print image data by repeating steps S140 and S150, 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 the converted print image data in a buffer.

[0060] 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.

[0061] 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.

[0062] After printing is started in step S160, the control unit 11 determines whether or not printing is to be ended (step S170). If printing is to be ended, the control unit 11 determines "Yes" and proceeds to end processing in step S180. 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 planned length of fabric 30 is completed.

[0063] In the end process of step S180, 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 S150, 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.

[0064] 3.N times search: The positional relationship specification process will be further described. In the positional relationship specification process, the pattern extraction unit 12b may search for a pattern area adjacent to the search source pattern area as described above, and may also search for a pattern area located at a certain distance from the search source pattern area. That is, in steps S131 to S133, the pattern extraction unit 12b sets the pattern area successfully searched within a certain range set at a position at a predetermined distance×N away from the search source pattern area in the search direction as the "N-fold search destination pattern area." Then, in step S134, it stores that the position of the N-fold search destination pattern area is N positions away from the search source pattern area in the search direction. N is an integer equal to or greater than 2. Here, N=2. Incidentally, being one position away from the search source pattern area means being adjacent to the search source pattern area.

[0065] 7 again. It is assumed that the pattern extraction unit 12b sets the pattern area A1 having the center coordinates (x1, y1) as the search source in step S131. In this case, in step S132, the pattern extraction unit 12b sets, as a search range based on the center coordinates (x1, y1), a circle centered at a position distanced W×2 away from the center coordinates (x1, y1) in the positive direction of the X axis, a circle centered at a position distanced W×2 away from the center coordinates (x1, y1) in the negative direction of the X axis, a circle centered at a position distanced H×2 away from the center coordinates (x1, y1) in the negative direction of the Y axis, and a circle centered at a position distanced H×2 away from the center coordinates (x1, y1) in the positive direction of the Y axis, in addition to the circles C1, C2, C3, and C4 shown in FIG. 7. Then, in step S133, the pattern extraction unit 12b searches for the center coordinates of the pattern area in each of these eight circles.

[0066] Depending on the accuracy of the pattern region extraction in step S120, a part of the pattern region actually represented in the captured image data may not be extracted. Let us assume that the center coordinates (x2, y2) of the pattern region A2 are not extracted in step S120. If the center coordinates (x2, y2) are not extracted, the pattern extraction unit 12b cannot find the center coordinates of the pattern region from the circle C1 set based on the center coordinates (x1, y1) of the pattern region A1. Then, the search chain, which is based on the premise that multiple pattern regions are adjacent to each other in the search direction, is broken, and it becomes impossible to search for the pattern region A3, etc., which is located in the +X-axis direction from the pattern region A1.

[0067] To address this inconvenience, as described above, by performing a search within a certain range at a position a specified distance x N away from the pattern area to be searched in the search direction, even if it is not possible to search for adjacent pattern area A2 using pattern area A1 as the search source, it is possible to search for pattern area A3 with center coordinates (x3, y3), which is two areas away from pattern area A1 in the + direction of the X axis.

[0068] In addition, when considering the influence of distortion of the fabric 30, the farther the search range set based on the pattern area of ​​the search source is from the search source, the less likely it is that a pattern area N positions away from the pattern area of ​​the search source in the search direction will be correctly searched for. Therefore, it is appropriate to set N to about 2 or 3.

[0069] Furthermore, according to the positional relationship specification process, even if the central coordinates (x2, y2) of the pattern region A2 are not extracted in step S120 as described above, the search chain can bypass the pattern region A2 and search for pattern region A3, etc., which is located in the positive direction of the X axis from the pattern region A1. Specifically, the pattern region A4 with central coordinates (x4, y4) adjacent in the positive direction of the Y axis is searched for, with the pattern region A1 having central coordinates (x1, y1) as the search source. Then, in a chain reaction to this, the pattern region A5 with central coordinates (x5, y5) adjacent in the positive direction of the X axis is searched for, with the pattern region A4 as the search source, and further, a pattern region not shown in FIG. 7 adjacent in the positive direction of the X axis is searched for, and further, with this pattern region not shown as the search source, the pattern region A3 with central coordinates (x3, y3) adjacent in the negative direction of the Y axis is searched for.

[0070] 4. How to determine the size of the search area: Up to this point, it has been explained that the diameter of the circle set as the search range in step S132 is a predetermined value, but the method of determining the size of the search range may be, for example, as follows.

[0071] 9 illustrates the pattern image data 40 registered in step S100 and a portion of the captured image data 41 generated by imaging in step S110. Fig. 9 also specifically illustrates a pattern in the image data that is composed of a heart shape, etc. In step S120, the pattern extraction unit 12b extracts a pattern area from the captured image data 41 based on a comparison between the pattern image data 40 and the captured image data 41.

[0072] In Fig. 9, each solid-line frame designated by reference symbol 42 in the captured image data 41 is a pattern region 42. Also, each dashed-line frame designated by reference symbol 43 in Fig. 9 is a pattern region 43. Both of the pattern regions 42, 43 have the same pattern as the pattern image data 40. As can be seen from the above description, in step S120, the pattern extraction unit 12b extracts the center coordinates of each of the pattern regions 42, 43 in the captured image data 41.

[0073] Focusing on each solid-line frame in the captured image data 41, pattern regions 42 are continuous in the captured image data 41 without overlapping at a fixed period. Focusing on each dashed-line frame in the captured image data 41, pattern regions 43 are continuous in the captured image data 41 without overlapping at a fixed period. Pattern regions 42 and 43 are shifted from each other by a distance of 1 / 2 the period of the pattern regions in both the conveyance direction D1 and the width direction D2. In this way, designs that allow similar pattern regions to be extracted from positions shifted by a distance of 1 / 2 the occurrence period of a certain pattern region are adopted for various fabrics 30.

[0074] In this embodiment, a relationship in which the pattern regions 42 and 43 partially overlap each other and are shifted from each other by a distance of 1 / 2 the period of the pattern regions in the conveying direction D1 and the width direction D2 is called a "1 / 2 phase shift" relationship. The pattern regions 42 are continuous without overlapping each other and are in the same phase. The pattern regions 43 are also continuous without overlapping each other and are in the same phase. The area covered by the connection of the multiple pattern regions 42 is also covered by the connection of the multiple pattern regions 43. Therefore, considering that the print image generating unit 12c arranges the colored image data in accordance with the positional relationship of the pattern regions in steps S140 and S150 to generate a continuous print image data, it is sufficient for the print image generating unit 12c to have information on either the pattern region 42 or the pattern region 43 which are in a 1 / 2 phase shift relationship. Therefore, the pattern extracting unit 12b sets a search range of a size that can search for a pattern region in the same phase and cannot search for a pattern region in a different phase, based on the pattern region to be searched for.

[0075] FIG. 10A, like FIG. 9, uses solid and dashed lines to show several pattern areas that are 1 / 2 phase shifted in the captured image data. For ease of viewing, FIG. 10A omits the patterns shown in FIG. 9. The symbols Ap and Ar indicate two pattern areas Ap and Ar that are in phase and adjacent in the + direction of the X-axis. The pattern areas Ap and Ar may be interpreted as an example of the pattern areas 42 shown in FIG. 9. On the other hand, the symbols Aq and As indicate two pattern areas Aq and As that are in phase and adjacent in the + direction of the X-axis. The pattern areas Aq and As may be interpreted as an example of the pattern areas 43 shown in FIG. 9. In other words, the pattern areas Ap and Ar and the pattern areas Aq and As are in a 1 / 2 phase shifted relationship.

[0076] 10A, the pattern areas Ap, Aq, Ar, and As are each simply shown as a rectangle, but as described above, the actual shape of the pattern area may be distorted or stretched due to the influence of distortion of the fabric 30. In step S120, the center coordinates (X, Y) of each of the pattern areas Ap, Aq, Ar, and As are obtained as the extraction result of the pattern area.

[0077] When the pattern extraction unit 12b sets the pattern region Ap as the search source in step S131, the pattern extraction unit 12b sets, in step S132, a circle Cp whose center is a position distance W away from the center coordinates (xp, yp) of the pattern region Ap in the X-axis + direction as one of the search ranges. The circle Cp is, of course, a search range for searching for the center coordinates of the pattern region Ar adjacent to the pattern region Ap in the X-axis + direction. Furthermore, the center coordinates of the pattern region As that are in a 1 / 2 phase shift relationship with the circle Cp should not be searched for. Similarly, when the pattern extraction unit 12b sets the pattern region Aq as the search source in step S131, the pattern extraction unit 12b sets, in step S132, a circle Cq whose center is a position distance W away from the center coordinates (xq, yq) of the pattern region Aq in the X-axis + direction as one of the search ranges. The circle Cq is a search range for searching for the center coordinates of the pattern region As adjacent to the pattern region Aq in the X-axis + direction, and the center coordinates of the pattern region Ar that are in a 1 / 2 phase shift relationship with the circle Cq should not be searched for.

[0078] Therefore, the pattern extraction unit 12b sets the diameter of the circle as the search range to a predetermined value shorter than 1 / 2 the length of the diagonal of the pattern image data. The vertical and horizontal sizes of the pattern image data can be said to be almost the same as the vertical and horizontal sizes of the pattern area. Therefore, if the diameter of the circle as the search range is set to a length shorter than 1 / 2 the length of the diagonal of the pattern image data, two search ranges set as circles Cp and Cq with two pattern areas that are 1 / 2 phase shifted as search sources will not theoretically overlap. As a result, by the chain of searches described above, the pattern extraction unit 12b can store the positional relationship between pattern areas in the same phase.

[0079] The following provides a supplementary explanation of the processing from step S135 onwards, assuming that the captured image data includes pattern areas that are 1 / 2 phase shifted. When the captured image data includes pattern areas that are 1 / 2 phase shifted, approximately half of the pattern areas whose central coordinates are shown in Fig. 6 belong to a group of in-phase pattern areas (first group), and approximately the remaining pattern areas belong to a group of in-phase pattern areas that are 1 / 2 phase shifted from the first group (second group).

[0080] If the pattern area set as the search source in step S131 happens to be a pattern area belonging to the first group, the pattern extraction unit 12b repeats steps S131 to S134, thereby storing the positional relationship between the pattern areas belonging to the first group. In step S132, the diameter of the circle as the search range is set to a predetermined value shorter than 1 / 2 the length of the diagonal line of the pattern image data. When the pattern extraction unit 12b stores the adjacency relationship and the like for all pattern areas belonging to the first group and proceeds to step S135, there remains a pattern area that has not yet been set as a search source, so the process proceeds to step S131 from the determination of "Yes", and the search destination pattern area found in the most recent step S133 is set as the new search source.

[0081] However, because this new search source pattern area is a pattern area belonging to the first group, there are no pattern areas that can be searched using the new search source pattern area as a reference other than the other pattern areas in the first group whose positional relationships have already been stored, and the search chain is essentially broken. When the search chain is broken in this way, in step S131, the pattern extraction unit 12b sets one of the pattern areas that has not yet been used as a search source as a new search source, and repeats steps S131 to S134. As a result, the pattern extraction unit 12b also stores the positional relationships between the pattern areas belonging to the second group.

[0082] Therefore, when the determination is "No" in step S135, the pattern extraction unit 12b can classify the information of the multiple pattern regions as shown in FIG. 6 into a first group and a second group based on the presence or absence of a positional relationship. There is no positional relationship between the first group and the second group as recognized by the pattern extraction unit 12b. In addition, depending on the accuracy of the extraction of the pattern region in step S120, the center coordinates of a region that does not actually correspond to the pattern expressed by the pattern image data may be erroneously extracted. Such an erroneously extracted center coordinate is called a false pattern region. The position of the false pattern region in the captured image data is irregular, and even if the false pattern region is used as the search source, it is basically not possible to successfully search for the pattern region of the first group or the pattern region of the second group. Therefore, when the determination is "No" in step S135, the pattern extraction unit 12b can classify the information of the multiple pattern regions extracted in step S120 into a first group, a second group, and further into a group of false pattern regions.

[0083] The pattern extraction unit 12b provides the print image generation unit 12c with information on the positional relationship of the pattern areas of any one of the groups divided as described above, and causes the print image generation unit 12c to carry out step S140 and subsequent steps. Basically, the pattern extraction unit 12b selects one group containing the largest number of pattern areas, and provides the print image generation unit 12c with information on the positional relationship of the pattern areas. For example, the pattern extraction unit 12b provides the print image generation unit 12c with information on the positional relationship of the pattern areas of the first group, and discards information on the second group and the group of false pattern areas. Note that the group of false pattern areas has a significantly smaller number of pattern areas than the first and second groups, and therefore it is easy to determine that this is a group whose information should not be provided to the print image generation unit 12c.

[0084] The pattern designs used in the fabric 30 include, in addition to the 1 / 2 phase shift illustrated in FIG. 9, for example, designs composed of pattern areas having a 1 / 3 phase shift relationship, and designs composed of pattern areas having a 1 / 4 phase shift relationship. FIG. 10B shows several pattern areas in the captured image data that are out of phase by 1 / 3 with solid and broken lines. In FIG. 10B, the patterns themselves are omitted for ease of viewing, as in FIG. 10A. Explanations common to FIG. 10A will be omitted for FIG. 10B. In FIG. 10B, the symbols At and Av indicate two pattern areas At and Av that are in phase and adjacent to each other in the + direction of the X axis, and the symbols Au and Aw indicate two pattern areas Au and Aw that are in phase and adjacent to each other in the + direction of the X axis. That is, in FIG. 10B, the pattern areas At and Av and the pattern areas Au and Aw partially overlap each other and are out of phase with each other by a distance of 1 / 3 of the period of the pattern areas in the conveying direction D1 and the width direction D2, and have a relationship of being out of phase by 1 / 3.

[0085] When the pattern extraction unit 12b sets the pattern area At as the search source in step S131, the pattern extraction unit 12b sets a circle Ct centered at a position distanced W in the X-axis positive direction from the center coordinates (xt, yt) of the pattern area At as one of the search ranges in step S132. The circle Ct is a search range for searching for the center coordinates of the pattern area Av adjacent to the pattern area At in the X-axis positive direction, and the center coordinates of the pattern area Aw, which are in a 1 / 3 phase shift relationship, should not be searched for by this circle Ct. Similarly, when the pattern extraction unit 12b sets the pattern area Au as the search source in step S131, the pattern extraction unit 12b sets a circle Cu centered at a position distanced W in the X-axis positive direction from the center coordinates (xu, yu) of the pattern area Au as one of the search ranges in step S132. The circle Cu is a search range for searching for the center coordinates of the pattern area Aw adjacent to the pattern area Au in the X-axis positive direction, and the center coordinates of the pattern area Av, which are in a 1 / 3 phase shift relationship, should not be searched for by this circle Cu.

[0086] Although not shown in the figure, in the example of FIG. 10B, a group of pattern areas that have a 2 / 3 phase shift relationship with the pattern areas At and Av and a 1 / 3 phase shift relationship with the pattern areas Au and Aw also exists in the captured image data. In FIG. 10B, the pattern extraction unit 12b sets the diameter of the circle as the search range to a predetermined value shorter than 1 / 3 of the length of the diagonal line of the pattern image data. With this configuration, two search ranges set as circles Ct and Cu with the pattern areas each having a 1 / 3 phase shift relationship as the search source do not theoretically overlap. As a result, in step S130, the pattern extraction unit 12b stores the positional relationship of a plurality of pattern areas (first group) in the same phase including the pattern areas At and Av, stores the positional relationship of a plurality of pattern areas (second group) in the same phase including the pattern areas Au and Aw, and further stores the positional relationship of a plurality of pattern areas (third group) in the same phase that do not belong to either the first group or the second group. The pattern extraction unit 12b may provide the print image generation unit 12c with information on the positional relationship of the pattern areas of any one of the first to third groups, and cause the print image generation unit 12c to carry out step S140 and thereafter.

[0087] According to the examples of Figures 9, 10A and 10B, when the captured image data has a pattern area having a 1 / J phase shift relationship, in step S132, the pattern extraction unit 12b determines the diameter D of the circle as the search range to be a value that satisfies the following formula (1) based on J and the length L of the diagonal of the pattern image data. D <L×1 / J …(1)

[0088] The value of J depends on the design adopted for the fabric 30. The pattern extraction unit 12b may obtain J by some means, for example, by performing an operation on the operation receiving unit 14 by the user.

[0089] 5. Summary: Thus, according to this 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 representing 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 positioning third image data representing an image to be printed over the pattern to match the positional relationship of 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. Then, the pattern extraction unit 12b performs a positional relationship specifying process in which one of the pattern areas is set as a search source pattern area, a pattern area that has been successfully searched within a certain range set at a position a predetermined distance away from the search source pattern area in a predetermined search direction is set as a search destination pattern area, and the position of the search destination pattern area is stored as being adjacent to the search source pattern area in the search direction.Furthermore, the pattern extraction unit 12b performs a positional relationship specifying process in which the search destination pattern area is set as a new search source pattern area.

[0090] As described above, due to the influence of distortion of the fabric 30, the pattern areas in the second image data are not necessarily arranged in an orderly manner along the vertical or horizontal direction. Moreover, the information obtained by extracting the pattern areas in step S120 is merely a list of center coordinates as shown in FIG. 6. Therefore, in the past, it was difficult to accurately grasp the positional relationship between the pattern areas in the captured image data. In contrast, according to this embodiment, the pattern extraction unit 12b repeats the positional relationship determination process of storing the adjacency relationship between the search source pattern area and the search destination pattern area found within a certain range set based on the search source pattern area, with the search destination pattern area as the new search source.

[0091] That is, although the arrangement of the pattern areas in the second image data may be distorted or slanted due to the influence of distortion of the fabric 30, if the positional relationship of adjacent pattern areas is such that the deviation from the ideal positional relationship in the transport direction D1 or width direction D2 is small, it is easy to search for one based on the other. Therefore, by repeating the positional relationship determination process as in this embodiment, the pattern extraction unit 12b can accurately determine the positional relationship between the pattern areas for multiple pattern areas. Note that while adjacent means adjacent in the specific examples described above, it may also mean a positional relationship in which the pattern areas are adjacent to each other but cannot be said to be in contact.

[0092] Furthermore, according to this embodiment, when N is an integer greater than or equal to 2, the pattern extraction unit 12b may, in the positional relationship determination process, determine a pattern area that is successfully searched within a certain range set at a position away from the pattern area of ​​the search source by a predetermined distance x N in the search direction as the pattern area of ​​the N-fold search destination, and store the position of the pattern area of ​​the N-fold search destination as being N positions away from the pattern area of ​​the search source in the search direction. According to the above configuration, it is easy to prevent the chain of searches caused by the repetition of the positional relationship specifying process from being interrupted.

[0093] Furthermore, according to this embodiment, in the positional relationship specifying process, the pattern extraction unit 12b may perform a search in the vertical direction of the second image data as the search direction, and may also perform a search in the horizontal direction of the second image data as the search direction. According to the above configuration, it is possible to identify the positional relationship between a plurality of pattern areas that are repeatedly present two-dimensionally in the second image data. However, this embodiment can also be applied to the case where the positional relationship is specified for a plurality of pattern regions arranged one-dimensionally.

[0094] Furthermore, according to this embodiment, when the certain range is a circle, the pattern extraction unit 12b may set the diameter of the circle to a length shorter than 1 / 2 the length of the diagonal of the first image data. According to the above configuration, the pattern extraction unit 12b can exclude pattern areas in the second image data that have a different phase relationship, such as a 1 / 2 phase shift, from the search destination, search for pattern areas that have the same phase relationship, and store the positional connection between the search source and the search destination.

[0095] Furthermore, according to this embodiment, when the pattern extraction unit 12b has determined that all of the multiple pattern areas extracted from the second image data are at least the pattern areas of the search source or has stored their positional relationship with the pattern areas of the search source, the pattern extraction unit 12b groups the multiple pattern areas based on whether or not there is a connection in their positional relationship, and when the pattern areas are divided into multiple groups, provides information on the positional relationship of the pattern areas of any one of the groups to the print image generation unit 12c. According to the above configuration, when the second image data includes pattern areas having different phase relationships, the pattern extraction unit 12b can provide the print image generation unit 12c with necessary information, without waste, for generating print image data.

[0096] 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 extraction step of extracting a pattern area corresponding to the pattern in the second image data based on a comparison between the first image data expressing the pattern and the second image data generated by imaging the fabric 30, a print image generation step of generating print image data by arranging the third image data expressing an image to be printed over the pattern so as to match the positional relationship of the extracted pattern area, and a printing step of printing the print image data on the conveyed fabric 30. The pattern extraction step performs a positional relationship specification process in which one of the pattern areas is set as a search source pattern area, a pattern area successfully searched within a certain range set at a position a predetermined distance away from the search source pattern area in a predetermined search direction is set as a search destination pattern area, and the position of the search destination pattern area is stored as adjacent to the search source pattern area in the search direction. Furthermore, the pattern extraction step performs a positional relationship specification process with the search destination pattern area as a new search source pattern area.

[0097] 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.

[0098] 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.

[0099] The certain range that is set as the search range at a position a predetermined distance away from the pattern region to be searched is not limited to a circle, and may be, for example, an ellipse or a polygon. 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]

[0100] 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...textile, 40...pattern image data, 41...captured image data, 42, 43...pattern area, 50, 51a, 51b, 51c, 51d...colored image data, 51...print image data

Claims

1. a conveying section that conveys the fabric on which the pattern is formed 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 expressing an image to be printed over the pattern so as to match the positional relationship of 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 is a positional relationship specifying process is executed to determine one of the pattern areas as a search source pattern area, determine a pattern area that has been successfully searched within a certain range set at a position a predetermined distance away from the search source pattern area in a predetermined search direction as a search destination pattern area, and store the position of the search destination pattern area as adjacent to the search source pattern area in the search direction; a printing device that performs the positional relationship specifying process by treating the search target pattern area as a new search source pattern area;

2. The printing device described in claim 1, characterized in that, when N is an integer greater than or equal to 2, the pattern extraction unit, in the positional relationship determination process, sets the pattern area that is successfully searched within a certain range set at a position away from the pattern area of ​​the search source in the search direction to be the pattern area of ​​the N-fold search destination, and stores the position of the pattern area of ​​the N-fold search destination as being N positions away from the pattern area of ​​the search source in the search direction.

3. A printing device as described in claim 1 or claim 2, characterized in that, in the positional relationship determination process, the pattern extraction unit performs the search using the vertical direction of the second image data as the search direction, and also performs the search using the horizontal direction of the second image data as the search direction.

4. A printing device according to any one of claims 1 to 3, characterized in that, when the certain range is a circle, the pattern extraction unit sets the diameter of the circle to a length shorter than 1 / 2 the length of the diagonal of the first image data.

5. The pattern extraction unit is when all of the plurality of pattern regions extracted from the second image data have been determined to be at least the pattern region of the search source or the positional relationship with the pattern region of the search source has been stored, the plurality of pattern regions are grouped based on the presence or absence of a connection in positional relationship; 5. The printing device according to claim 4, wherein when the pattern regions are divided into a plurality of groups, information on the positional relationship of the pattern regions of any one of the groups is provided to the print image generating section.

6. a conveying step of conveying the fabric on which the pattern is formed 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 positional relationship of the extracted pattern area; a printing step of printing the print image data on the transported fabric, The pattern extraction step includes: a positional relationship specifying process is executed to determine one of the pattern areas as a search source pattern area, determine a pattern area that has been successfully searched within a certain range set at a position a predetermined distance away from the search source pattern area in a predetermined search direction as a search destination pattern area, and store the position of the search destination pattern area as adjacent to the search source pattern area in the search direction; a printing method comprising the steps of: performing the positional relationship specifying process on the pattern area of ​​the search destination as a new pattern area of ​​the search source;

Citation Information

Patent Citations

  • Precise digital printing method for fabric by utilizing digital printing machine and fabric

    EP3653391A1

  • Frame extracting device and rectangle extracting device

    JP1997050527A

  • Method and apparatus for imaging

    JP1999300948A

  • How to print on a flat substrate and assembly and computer program products

    JP2004501000A

  • Position detection method and program, and measurement device

    JP2010198089A