Printer, discharge failure detection method and discharge failure detection program
The unsupervised learning method using an autoencoder in inkjet printing devices effectively detects nozzle ejection failures without extensive parameter setting or data collection, enhancing detection accuracy and reducing resource waste.
Patent Information
- Application Number
- JP2023049113
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-25
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2043-03-25
AI Technical Summary
Conventional methods for detecting nozzle ejection failures in inkjet printing devices require significant effort in setting parameters and collecting learning data, and are hindered by the rarity of ejection failures, making accurate detection difficult and inefficient.
An unsupervised learning method using an autoencoder is employed to generate a trained model for detecting nozzle ejection failures by analyzing images of test patterns, without the need for parameter setting or extensive data collection, by comparing input and output data errors.
Accurate detection of nozzle ejection failures is achieved with reduced effort, minimizing wasteful consumption of resources and improving printing quality by compensating for defective nozzles.
Smart Images

Figure 2024137554000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a printing device having an ink ejection head (print head) equipped with a large number of nozzles that eject ink, and more specifically, to a technique for detecting nozzles that are in a defective ejection state (hereinafter referred to as "faulty ejection nozzles") in such a printing device. [Background technology]
[0002] Inkjet printing devices that perform printing by ejecting ink onto a printing medium such as printing paper are widely known. In an inkjet printing device, when the ejection interval becomes long, during the period in which printing is being performed, the ink may dry due to evaporation of the solvent near the nozzle, air bubbles may get mixed into the nozzle, and dust may adhere to the nozzle. In other words, ejection failure of the nozzle may occur. When ejection failure occurs, a dot corresponding to the ejection failure nozzle is missing in the printed image, that is, a dot dropout occurs. In this case, an operation for recovering the function of the ejection failure nozzle (cleaning or flushing) is performed, or a substitute droplet ejection is performed by having another nozzle eject the ink droplets that should be ejected by the ejection failure nozzle.
[0003] Nozzle ejection defects can be roughly classified into three types, which will be described with reference to Figs. 41 to 43. Figs. 41 to 43 show a part of a printed image obtained by printing a step-like regular pattern (test pattern), and the black shaded parts are the parts where ink is applied. In Fig. 41, the dotted line part with the reference number 91 has no ink applied to the part where ink should be applied. Hereinafter, such an ejection defect is referred to as "non-ejection". In Fig. 42, the dotted line part with the reference number 92 has a shape of the part where ink is applied different from the original shape. Hereinafter, such an ejection defect is referred to as "shape defect". The shape defect also includes an ejection defect in a state where the ink is smudged due to insufficient density and an ejection defect in a state where the part where ink is applied spreads in the main scanning direction (the direction perpendicular to the conveyance direction of the printing paper). In Fig. 43, the dotted line part with the reference number 93 has ink applied to a part that is shifted in the main scanning direction from the part where ink should be applied. Hereinafter, such an ejection defect is referred to as "sideways jump".
[0004] The lateral jump will be further explained. Focusing on the dotted line portion marked with reference numeral 94 in FIG. 44, the length of W2 is longer than the length of W1. In other words, the interval between the ink-discharged portions is not constant in the main scanning direction. This type of lateral jump is called a "dimensional lateral jump." Focusing on the portion marked with reference numeral 95 in FIG. 45, the position of the ink-discharged portion 952 is clearly abnormal in relation to the positions of the ink-discharged portion 951 and the ink-discharged portion 953. This type of lateral jump is called a "lateral jump that affects quality."
[0005] In conventional inkjet printing devices, ejection defects such as those described above are detected by performing a numerical analysis based on imaging data obtained by capturing an image of a printed test pattern with an imaging device. In this regard, for example, Japanese Patent Application Laid-Open No. 2011-194734 describes a method of determining the actual landing position of ink based on the captured data, and judging whether or not the nozzle being judged is an ejection defective nozzle depending on the distance from the landing position to a reference position.
[0006] In recent years, techniques using machine learning have also been proposed for detecting nozzle discharge defects. For example, Japanese Patent Application Laid-Open No. 2019-137048 discloses a technique for classifying nozzles into good nozzles and nozzles with discharge defects using a support vector machine that has undergone supervised learning based on information on phase (deviation from the target position) and amplitude (printing consistency) obtained by evaluating the imaging data of an image in which a test pattern is printed, and labels indicating good or bad nozzles. In addition, Japanese Patent Application Laid-Open No. 2021-094853 discloses a technique for classifying nozzles by type of discharge defect by inputting imaging data of an image in which a test chart is printed into a deep neural network (DNN) such as a convolutional neural network that has undergone supervised learning based on defect information. [Prior art documents] [Patent documents]
[0007] [Patent Document 1] JP 2011-194734 A [Patent Document 2] JP 2019-137048 A [Patent Document 3] Patent Publication No. 2021-094853 Summary of the Invention [Problem to be solved by the invention]
[0008] However, according to the conventional method using numerical analysis, it is necessary to set various parameters. For example, it is necessary to set the density threshold used to detect non-ejection or shape defects, the distance threshold used to detect lateral skipping, etc., taking into consideration the printing conditions. Since the state of ink landing and penetration into the printing medium changes depending on the printing conditions, it is difficult and requires a lot of effort to appropriately set various parameters taking into consideration the printing conditions. Furthermore, according to the method using supervised learning, it is necessary to prepare a large amount of imaging data of images in a state where ejection defects occur (hereinafter referred to as "defective data"). However, since ejection defects occur rarely, it is extremely difficult to collect a sufficient amount of defective data as learning data.
[0009] SUMMARY OF THE PRESENT DISCLOSURE In view of the above, an object of the present invention is to provide an inkjet printing device that is capable of detecting nozzle ejection defects with high accuracy without requiring a great deal of effort for generating and collecting learning data or setting parameters. [Means for solving the problem]
[0010] A first aspect of the present invention is a method for detecting nozzle ejection defects in a printing device having a head unit including a plurality of nozzles that eject ink onto a printing medium transported in a predetermined transport direction, the method comprising the steps of: a learning image preparation step of preparing a plurality of learning images, each of which is formed by ejecting ink from N nozzles, where N is an integer equal to or greater than 1; a model generation step of generating a trained model configured by the autoencoder by providing the plurality of training images to the autoencoder and performing unsupervised learning as machine learning; a test pattern printing step of causing the printing device to print a test pattern to be formed by ejecting ink from the plurality of nozzles; an imaging step of imaging a print image obtained in the test pattern printing step; an image cutting step of cutting out a plurality of partial images each corresponding to N nozzles from the captured image obtained in the imaging step; a discharge defect determination step of providing each of the plurality of partial images as input data to the autoencoder constituting the trained model, and determining whether or not a nozzle in a discharge defect state is included among the N nozzles corresponding to the input data, based on a result of comparing an output data from the autoencoder and a value calculated based on the input data with a threshold value set as a parameter; Including, The plurality of learning images is characterized in that they do not include images that represent nozzle ejection defects.
[0011] The second invention is the first invention, In the model generation step, the trained model is generated for each printing condition by performing unsupervised learning for each printing condition, The discharge defect determination step is characterized in that the trained model corresponding to the printing conditions under which the test pattern was printed in the test pattern printing step is used.
[0012] The third invention is the first invention, In the model generation step, one or more printing conditions are defined as a printing condition group, and unsupervised learning is performed for each printing condition group to generate the trained model for each printing condition group. The ejection defect determination step is characterized in that the learned model corresponding to a printing condition group including the printing conditions under which the test pattern was printed in the test pattern printing step is used.
[0013] The fourth invention relates to the first invention, In the model generation step, unsupervised learning is performed for each type of ink to generate the trained model for each type of ink, The ejection defect determination step is characterized in that the learned model corresponding to the type of ink used when the test pattern was printed in the test pattern printing step is used.
[0014] The fifth invention relates to the first invention, The image cut-out step is characterized in that the position where ink is expected to be ejected from each nozzle based on design information of the test pattern is defined as a provisional ejection position, and each of the multiple partial images is cut out from the captured image based on the provisional ejection position for a predetermined one of the corresponding N nozzles.
[0015] The sixth aspect of the present invention relates to the fifth aspect of the present invention, In the image extraction step, a nozzle pitch, which is the distance between two adjacent nozzles in a direction perpendicular to the transport direction, is calculated based on the positions of two position marks included in the captured image and the number of nozzles that should eject ink into an area between the two position marks; The tentative ejection position for each nozzle is determined using the nozzle pitch.
[0016] The seventh aspect of the present invention is the first aspect of the present invention, In the image extraction step, an actual ejection position where ink is actually ejected from each nozzle is obtained based on the captured image; Each of the plurality of partial images is cut out from the captured image based on the actual ejection position of a predetermined one of the corresponding N nozzles.
[0017] The eighth aspect of the present invention relates to the seventh aspect of the present invention, The image extraction step includes: a captured image dividing step of dividing the captured image into K pieces in the transport direction, where K is an integer equal to or greater than 2, such that each divided image corresponds to one nozzle in the transport direction; an average value calculation step of calculating an average value of data of a plurality of pixels included in the transport direction for each of the K divided images obtained in the captured image division step; an actual ejection position specifying step of determining the actual ejection position for each nozzle based on the average value calculated in the average value calculating step; The present invention is characterized by comprising:
[0018] The ninth aspect of the present invention is the first aspect of the present invention, The image cut-out step is characterized in that the ideal position at which ink is ejected from each nozzle is defined as an ideal ejection position, and each of the multiple partial images is cut out from the captured image based on the ideal ejection position for a predetermined one of the corresponding N nozzles.
[0019] A tenth aspect of the present invention relates to the ninth aspect of the present invention, The image cutting step is performed by determining a nozzle among the plurality of nozzles for which the ideal ejection position is to be obtained as a target nozzle, a provisional ejection position calculation step of determining, as a provisional ejection position, a position where ink is expected to be ejected from the target nozzle and a predetermined number of nozzles in the vicinity of the target nozzle based on design information of the test pattern; an actual ejection position calculation step of determining an actual ejection position where ink is actually ejected from the predetermined number of nozzles near the target nozzle based on the captured image; a difference calculation step of calculating a difference between the provisional ejection position and the actual ejection position for each of the predetermined number of nozzles in the vicinity of the target nozzle; a difference average calculation step of calculating an average value of the differences calculated in the difference calculation step; an ideal ejection position specifying step of determining the ideal ejection position for the target nozzle by adding the average value calculated in the difference average calculating step to the tentative ejection position for the target nozzle; The present invention is characterized by comprising:
[0020] The eleventh aspect of the present invention is the first aspect of the present invention, The learning image preparation step includes: a pre-learning printing step of causing the printing device to print the test pattern and a tint pattern having a constant overall density to be formed by ejecting ink from the plurality of nozzles; a pre-learning imaging step of imaging the print image obtained in the pre-learning printing step so as to obtain a first partial image corresponding to the tint pattern and a second partial image corresponding to the test pattern; a learning image extraction step of extracting the plurality of learning images from a portion of the second partial captured image corresponding to the tint normal portion by setting a portion of the first partial captured image obtained in the pre-learning imaging step excluding the abnormal portion as a tint normal portion; The present invention is characterized by comprising:
[0021] A twelfth aspect of the present invention is the method for producing the first aspect of the present invention, the input data and the output data are composed of data of a plurality of pixels; The discharge defect determination step includes: an auto-encoding step of providing each of the plurality of partial images as the input data to the auto-encoder constituting the trained model to obtain the output data; an error calculation step of calculating a mean square error between the input data and the output data; a comparison and determination step for determining whether or not a nozzle in a discharge failure state is included among the N nozzles corresponding to the input data, based on a result of comparing the mean square error with the threshold value; Including, In the comparison and determination step, if the mean square error is greater than the threshold value, it is determined that a nozzle in a discharge failure state is included in the N nozzles corresponding to the input data.
[0022] The thirteenth aspect of the present invention relates to the first aspect of the present invention, In the learning image preparation step, a plurality of learning images each formed by ejecting ink from one nozzle are prepared, In the image cutting step, the plurality of partial images, each of which corresponds to one nozzle, are cut out from the captured image.
[0023] A fourteenth aspect of the present invention is any one of the first to thirteenth aspects of the present invention, The ejection defect detection method is characterized in that it further includes a print data correction step of correcting print data for controlling the ejection of ink from the multiple nozzles based on the results obtained in the ejection defect judgment step so as to compensate for nozzle ejection defects.
[0024] A fifteenth aspect of the present invention is a printing device including a head unit including a plurality of nozzles that eject ink onto a printing medium transported in a predetermined transport direction, an imaging device that captures a print image, and a control unit that controls the ejection of ink from the plurality of nozzles and the imaging of the print image by the imaging device, The control unit is a model generation unit that generates a trained model configured by the autoencoder by providing the autoencoder with a plurality of training images, each formed by ejecting ink from N nozzles, where N is an integer equal to or greater than 1, and performing unsupervised learning as machine learning; an image cutout unit that cuts out a plurality of partial images, each of which corresponds to N nozzles, from a captured image obtained by the imaging device capturing a print image of a test pattern to be formed by ejecting ink from the plurality of nozzles; a discharge defect determination unit that provides each of the plurality of partial images as input data to the autoencoder that constitutes the trained model, and determines whether or not a nozzle in a discharge defect state is included among the N nozzles that correspond to the input data, based on a result of comparing a value calculated based on the output data from the autoencoder and the input data with a threshold value that is set as a parameter; Including, The plurality of learning images is characterized in that they do not include images that represent nozzle ejection defects.
[0025] A sixteenth aspect of the present invention relates to the fifteenth aspect of the present invention, the head unit includes an upstream ink ejection head disposed on the upstream side in the transport direction and a downstream ink ejection head disposed on the downstream side in the transport direction, the model generation unit generates a trained model corresponding to the upstream ink ejection head and a trained model corresponding to the downstream ink ejection head by performing unsupervised learning separately on an image corresponding to the nozzles included in the upstream ink ejection head and an image corresponding to the nozzles included in the downstream ink ejection head; each of the plurality of partial images cut out by the image cutout unit corresponds to one nozzle; The discharge defect determination unit is If the upstream ink ejection head includes a nozzle corresponding to the input data, the input data is provided to the autoencoder that configures the trained model corresponding to the upstream ink ejection head; If a nozzle corresponding to the input data is included in the downstream ink ejection head, the input data is provided to the autoencoder that constitutes the trained model corresponding to the downstream ink ejection head.
[0026] A seventeenth aspect of the present invention relates to the fifteenth aspect of the present invention, The control unit further includes a learning image generation unit that generates the plurality of learning images, the imaging device captures a print image of the test pattern and a print image of a tint pattern having a constant density as a whole that is to be formed by ejecting ink from the plurality of nozzles, thereby obtaining a first partial captured image that is a captured image corresponding to the tint pattern and a second partial captured image that is a captured image corresponding to the test pattern; The learning image generation unit is characterized in that it extracts the multiple learning images from the portions of the second partial captured image corresponding to the normal tint portions, while treating the portions of the first partial captured image excluding the abnormal portions as normal tint portions.
[0027] The eighteenth aspect of the present invention relates to the fifteenth aspect of the present invention, the input data and the output data are composed of data of a plurality of pixels; The discharge defect determination unit is an autoencoder configured to receive each of the plurality of partial images as the input data and output the output data; an error calculation unit that calculates a mean square error between the input data and the output data; a comparison and determination unit that determines whether or not a nozzle in a discharge failure state is included among the N nozzles corresponding to the input data based on a result of comparing the mean square error with the threshold value; Including, The comparative judgment section is characterized in that, if the mean square error is greater than the threshold value, it judges that a nozzle in a discharge failure state is included among the N nozzles corresponding to the input data.
[0028] The 19th aspect of the present invention is any one of the 15th to 18th aspects of the present invention, The control unit is further characterized by including a print data correction unit that corrects print data for controlling the ejection of ink from the multiple nozzles so as to compensate for nozzle ejection defects based on the results of the judgment made by the ejection defect judgment unit.
[0029] A twentieth aspect of the present invention is a discharge defect detection program for detecting discharge defects of nozzles in a printing device having a head unit including a plurality of nozzles that discharge ink onto a printing medium transported in a predetermined transport direction and an imaging device that captures a print image, the program comprising: A computer included in the printing device, a model generation step of generating a trained model configured by the autoencoder by providing the autoencoder with a plurality of training images, each formed by ejecting ink from N nozzles, where N is an integer equal to or greater than 1, and performing unsupervised learning as machine learning; a test pattern printing step of causing the printing device to print a test pattern to be formed by ejecting ink from the plurality of nozzles; an imaging step of imaging a print image obtained in the test pattern printing step by the imaging device; an image cutting step of cutting out a plurality of partial images each corresponding to N nozzles from the captured image obtained in the imaging step; a discharge defect determination step of providing each of the plurality of partial images as input data to the autoencoder constituting the trained model, and determining whether or not a nozzle in a discharge defect state is included among the N nozzles corresponding to the input data, based on a result of comparing an output data from the autoencoder and a value calculated based on the input data with a threshold value set as a parameter; Run the command, The plurality of learning images is characterized in that they do not include images that represent nozzle ejection defects. Effect of the Invention
[0030] According to the first invention, a trained model for detecting nozzle discharge defects is generated by performing unsupervised learning by an autoencoder using only images that represent good discharge states. As a result, if the input data given to the autoencoder constituting the trained model is an image without discharge defects, the error between the input data and the output data (a value calculated based on the input data and the output data) will be small, and if the input data given to the autoencoder constituting the trained model is an image with discharge defects, the error between the input data and the output data will be large. Therefore, by setting a threshold value for comparison with the error as a parameter, it is possible to determine whether or not a nozzle with a discharge defect is included among the N nozzles (one or more nozzles) corresponding to each partial image given to the autoencoder as input data, without the need to set other parameters. Furthermore, although discharge defects occur rarely, only images that represent good discharge states are required as training data (training images) (the multiple learning images do not include images that represent nozzle discharge defects), so a sufficient number of training data can be easily collected. As described above, it is possible to accurately detect nozzle discharge defects without requiring a great deal of effort for generating and collecting training data and setting parameters in a printing device equipped with a head unit including multiple nozzles that discharge ink. In addition, it is possible to prevent the occurrence of missed detection of ejection defects due to insufficient parameter settings, which reduces the waste of printing media and ink due to reprinting. In this way, it can contribute to the achievement of the SDGs (Sustainable Development Goals).
[0031] According to the second aspect of the present invention, the printing conditions are taken into consideration when determining whether or not there is a nozzle ejection defect, so that it is possible to detect nozzle ejection defects with greater accuracy.
[0032] According to the third aspect of the invention, the same effects as those of the second aspect of the invention can be obtained.
[0033] According to the fourth aspect of the present invention, the type of ink is taken into consideration when determining whether or not there is a nozzle ejection defect, so that it is possible to detect nozzle ejection defects with greater accuracy.
[0034] According to the fifth aspect of the present invention, it is possible to set a reference position relatively easily when cutting out a partial image from a captured image.
[0035] According to the sixth aspect of the invention, the same effects as those of the fifth aspect of the invention can be obtained.
[0036] According to the seventh aspect of the present invention, it is possible to accurately detect shape defects among ejection defects with a relatively small number of learning data.
[0037] According to the eighth aspect of the invention, the same effects as those of the seventh aspect of the invention can be obtained.
[0038] According to the ninth aspect of the present invention, it is possible to detect non-ejection, shape defect, and lateral skipping as ejection defects, regardless of the extraction range when extracting a partial image from a captured image.
[0039] According to the tenth aspect of the present invention, the same effects as those of the ninth aspect of the present invention can be obtained.
[0040] According to the eleventh aspect of the present invention, it is possible to efficiently collect learning data.
[0041] According to the twelfth aspect of the present invention, if a threshold value is set by referring to data on mean square errors obtained in past inspections, for example, nozzle ejection defects can be detected with high accuracy.
[0042] According to the thirteenth aspect of the present invention, the size of the input / output data (image size) of the autoencoder is smaller than when images corresponding to multiple nozzles are used as learning images, so the processing load is reduced. Also, even if a reference position is not determined when cutting out a partial image from a captured image, it is possible to detect nozzle discharge defects with relatively high accuracy.
[0043] According to the fourteenth aspect of the present invention, even if there are nozzles in a discharge defect state, the print data is corrected so as to compensate for the discharge defect, thereby obtaining a high quality printout.
[0044] According to the fifteenth aspect of the present invention, the same effects as those of the first aspect of the present invention can be obtained.
[0045] According to the 16th invention above, in a printing device equipped with a head unit including an upstream ink ejection head and a downstream ink ejection head, the difference in the state of the upstream ink ejection head and the downstream ink ejection head is taken into consideration when determining whether or not there is a nozzle ejection defect, making it possible to detect nozzle ejection defects with greater accuracy.
[0046] According to the seventeenth aspect of the present invention, it is possible to efficiently collect learning data.
[0047] According to the eighteenth aspect of the present invention, if a threshold value is set by referring to data on mean square errors obtained in past inspections or the like, nozzle ejection defects can be detected with high accuracy.
[0048] According to the nineteenth aspect of the present invention, even if there are nozzles in a defective discharge state, the print data is corrected so as to compensate for the defective discharge, thereby producing a high quality printout.
[0049] According to the twentieth aspect of the present invention, the same effects as those of the first aspect of the present invention can be obtained. [Brief description of the drawings]
[0050] [Figure 1] FIG. 1 is a diagram for explaining the concept of the present invention. [Diagram 2] FIG. 1 is a diagram for explaining the concept of the present invention. [Diagram 3] FIG. 1 is a diagram for explaining the concept of the present invention. [Figure 4] 1 is a diagram illustrating the overall configuration of a printing system according to an embodiment of the present invention. [Diagram 5]FIG. 2 is a schematic diagram showing a configuration example of an inkjet printing apparatus in the embodiment. [Figure 6] FIG. 4 is a plan view showing one configuration example of a recording unit in the embodiment. [Figure 7] 5A to 5C are diagrams for explaining the arrangement of nozzles in an ink ejection head in the embodiment. [Figure 8] FIG. 2 is a block diagram showing a hardware configuration of the print control device in the embodiment. [Figure 9] 3 is a block diagram showing a functional configuration of a control unit realized by execution of a print control program in the print control device in the embodiment. FIG. [Figure 10] 6A and 6B are diagrams showing an example of an inspection chart printed during a learning process in the embodiment. [Figure 11] 11A and 11B are diagrams showing an example of an inspection chart printed during inference processing in the embodiment. [Figure 12] FIG. 4 is a block diagram showing a detailed configuration of a discharge failure detection unit in the embodiment (where each partial image corresponds to one nozzle). [Figure 13] 10A and 10B are diagrams showing an example of a printed image of an inspection chart when there is a discharge-failed nozzle in the embodiment. [Figure 14] FIG. 4 is a block diagram showing a detailed configuration of a discharge failure detection unit in the embodiment (when each partial image corresponds to two or more nozzles). [Figure 15] FIG. 2 is a diagram showing an example of the structure of an autoencoder in the above embodiment. [Figure 16] 10 is a flowchart showing the procedure of a series of processes for detecting an ejection-fault nozzle in the embodiment. [Figure 17] 10 is a flowchart showing a detailed procedure for preparing learning data (learning images) in the embodiment. [Figure 18] 11 is a diagram for explaining setting of a threshold value as a parameter in the embodiment. FIG. [Figure 19]11 is a diagram for explaining setting of a threshold value as a parameter in the embodiment. FIG. [Figure 20] 10A and 10B are diagrams for explaining an example of cutting out an image in a range corresponding to a plurality of nozzles arranged consecutively in the main scanning direction in the embodiment. [Figure 21] 10A and 10B are diagrams for explaining an example of cutting out an image in a range corresponding to a plurality of nozzles arranged consecutively in the sub-scanning direction in the embodiment. [Figure 22] 10A and 10B are diagrams for explaining an example of cutting out an image in a range corresponding to a plurality of nozzles that are continuous in both the main scanning direction and the sub-scanning direction in the embodiment. [Figure 23] 10A to 10C are diagrams for explaining how to obtain a provisional ejection position in the embodiment. [Figure 24] 10 is a flowchart showing a procedure for determining an actual ejection position in the embodiment. [Diagram 25] 10A to 10C are diagrams for explaining division of a captured image in the embodiment. [Figure 26] 11A and 11B are diagrams for explaining trimming when dividing a captured image in the embodiment. [Figure 27] 11 is a diagram for explaining calculation of an average value of data of a plurality of pixels for each of the divided images in the embodiment. FIG. [Figure 28] 10A and 10B are diagrams for explaining how to find an actual ejection position when a non-ejecting nozzle is present in the embodiment. [Figure 29] 10A and 10B are diagrams for explaining how to find an actual ejection position when a non-ejecting nozzle is present in the embodiment. [Diagram 30] 10 is a flowchart showing a procedure for obtaining an ideal ejection position in the embodiment. [Diagram 31] 10A and 10B are diagrams for explaining copying of the top and bottom images of the captured image of the test chart in the embodiment. [Diagram 32]11 is a diagram for explaining a processing time priority extraction technique in the embodiment. FIG. [Diagram 33] 10A and 10B are diagrams for explaining division of a partial image into a plurality of nozzle unit images in the embodiment. [Diagram 34] 11 is a diagram for explaining a precision-priority extraction technique in the embodiment. FIG. [Diagram 35] 13A and 13B are diagrams for explaining identification of ejection-failed nozzles in a case where a precision-priority extraction method is adopted in the embodiment. [Diagram 36] 13A and 13B are diagrams for explaining identification of ejection-failed nozzles in a case where a precision-priority extraction method is adopted in the embodiment. [Figure 37] 13A and 13B are diagrams for explaining the relationship between the combination of the image cut-out range and the cut-out reference position and the type of detectable ejection defect in the embodiment. [Figure 38] FIG. 13 is a plan view showing an example of the configuration of a recording section in a third modified example of the embodiment. [Figure 39] FIG. 13 is a diagram showing a detailed configuration of a head unit in the third modified example. [Diagram 40] FIG. 13 is a diagram for explaining execution of unsupervised learning in the third modified example. [Diagram 41] FIG. 11 is a diagram for explaining non-ejection. [Diagram 42] FIG. 13 is a diagram for explaining a shape defect. [Diagram 43] FIG. 13 is a diagram for explaining a sideways jump. [Diagram 44] FIG. 13 is a diagram for explaining dimensional jumps. [Diagram 45] FIG. 13 is a diagram for explaining a lateral jump that affects quality. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0051] <1. Concept of the present invention> Before describing the embodiments of the present invention, the concept of the present invention will be described. An autoencoder is known as one of neural networks used in machine learning. Learning using an autoencoder is performed so that output data is as close as possible to input data. Here, when normal data and abnormal data exist, and an autoencoder is trained using only a large amount of normal data, output data is output from the trained autoencoder as follows. When normal data is given to the autoencoder as input data, normal data is output from the autoencoder as output data. At this time, the error between the input data and the output data is extremely small. On the other hand, when abnormal data is given to the autoencoder as input data, data in which the abnormal data is made closer to the normal data is output from the autoencoder as output data. At this time, the error between the input data and the output data is large. Considering such a difference in error, an autoencoder can be used to detect abnormal data.
[0052] Here, for example, assume that a normal print image of a test pattern for one nozzle is an image as shown in the rectangular portion marked with reference numeral 170 in FIG. 1. Note that the black shaded portion in FIG. 1 is the portion painted with ink. When an image as shown in the rectangular portion marked with reference numeral 181 in FIG. 2 (an image without discharge defects) is provided as input data to a trained autoencoder, the trained autoencoder outputs output data corresponding to an image as shown in the rectangular portion marked with reference numeral 182 in FIG. 2. At this time, the error between the input data and the output data is extremely small. In contrast, when an image as shown in the rectangular portion marked with reference numeral 191 in FIG. 3 (an image with discharge defects) is provided as input data to a trained autoencoder, the trained autoencoder outputs output data corresponding to an image as shown in the rectangular portion marked with reference numeral 192 in FIG. 3. At this time, the error between the input data and the output data is large. As described above, when a discharge defect occurs, the error between the input data and the output data becomes large. Using this, a nozzle with a discharge defect can be detected.
[0053] Therefore, in the following embodiment, the autoencoder is trained using only normal images (images without discharge defects) among the captured images obtained by capturing printed images of a test pattern for inspecting the ink discharge state from each nozzle with an imaging device, and then the image to be inspected is provided as input data to the trained autoencoder. Then, based on the error between the input data to the trained autoencoder and the output data from the trained autoencoder, it is determined whether or not one or more nozzles corresponding to the image to be inspected include a nozzle with discharge defects.
[0054] In light of the above, one embodiment of the present invention will now be described with reference to the accompanying drawings.
[0055] <2. Overall configuration of the printing system> FIG. 4 is an overall configuration diagram of a printing system according to an embodiment of the present invention. This printing system is composed of an inkjet printing device 10 and a print data generating device 30. The inkjet printing device 10 and the print data generating device 30 are connected to each other by a LAN 4. The print data generating device 30 generates print data by performing RIP processing or the like on input data such as a PDF file. The print data generated by the print data generating device 30 is transmitted to the inkjet printing device 10 via the LAN 4. The inkjet printing device 10 is composed of a printing machine main body 200 and a print control device 100 that controls the operation of the printing machine main body 200. The inkjet printing device 10 outputs a print image on printing paper as a printing medium based on the print data transmitted from the print data generating device 30 without using a printing plate. The present invention can also be applied to the case where a printing medium other than printing paper (for example, a film) is used.
[0056] <3. Configuration of the printer body of the inkjet printing device> 5 is a schematic diagram showing an example of the configuration of the inkjet printing apparatus 10. As described above, the inkjet printing apparatus 10 is made up of the print control device 100 and the printing machine main body 200.
[0057] The printing machine main body 200 includes a paper feed section 202 that supplies printing paper (in this example, rolled printing paper) 5 to the printing mechanism 201, the printing mechanism 201 that prints on the printing paper 5, and a paper winding section 208 that winds up the printing paper 5 into a roll after printing.
[0058] The printing mechanism 201 includes a first driving roller 203 for transporting the printing paper 5 to the inside, a plurality of support rollers 204 for transporting the printing paper 5 inside the printing mechanism 201, a recording unit 205 for recording a print image on the printing paper 5, a drying mechanism 206 for drying the printing paper 5 on which the print image has been recorded, and a second driving roller 207 for outputting the printing paper 5 from inside the printing mechanism 201. The recording unit 205 is composed of a K head unit 25K for ejecting K (black) ink, a C head unit 25C for ejecting C (cyan) ink, an M head unit 25M for ejecting M (magenta) ink, and a Y head unit 25Y for ejecting Y (yellow) ink. The printing mechanism 201 also includes an inline scanner 40 as an imaging device for capturing an image of the printing image recorded on the printing paper 5 by the recording unit 205. The imaging data obtained by the in-line scanner 40 is sent to the print control device 100. In the following, when there is no need to distinguish between the colors of ink ejected from the head units, the head units will be denoted by the reference symbol 25.
[0059] FIG. 6 is a plan view showing an example of the configuration of the recording unit 205. As shown in FIG. 6, the recording unit 205 is composed of a K-color head unit 25K, a C-color head unit 25C, an M-color head unit 25M, and a Y-color head unit 25Y, which are arranged in a row in the transport direction (sub-scanning direction) of the print paper 5. Each head unit 25 is composed of a plurality of ink ejection heads (print heads) 251 arranged in a staggered pattern. Each ink ejection head 251 includes a large number of nozzles (not shown in FIG. 6) that eject ink. Each nozzle of the ink ejection head 251 included in the K-color head unit 25K ejects K-color ink, each nozzle of the ink ejection head 251 included in the C-color head unit 25C ejects C-color ink, each nozzle of the ink ejection head 251 included in the M-color head unit 25M ejects M-color ink, and each nozzle of the ink ejection head 251 included in the Y-color head unit 25Y ejects Y-color ink.
[0060] FIG. 7 is a diagram for explaining the arrangement of nozzles in the ink ejection head 251. Typically, the ink ejection head 251 includes multiple rows of nozzle groups each consisting of multiple nozzles arranged in a line in the main scanning direction (a direction perpendicular to the transport direction of the print paper 5). In the example shown in FIG. 7, the ink ejection head 251 includes four rows of nozzle groups. The portion marked with reference numeral 41 in FIG. 7 shows a schematic diagram of the landing position of ink ejected from each nozzle on the print paper 5. The multiple nozzles in the ink ejection head 251 are arranged such that the landing position of ink ejected from the nozzles included in the first row of nozzle groups, the landing position of ink ejected from the nozzles included in the second row of nozzle groups, the landing position of ink ejected from the nozzles included in the third row of nozzle groups, and the landing position of ink ejected from the nozzles included in the fourth row of nozzle groups are different from each other. For example, the landing position of ink ejected from each nozzle included in the first row of nozzles is a position between the landing position of ink ejected from each nozzle included in the third row of nozzles and the landing position of ink ejected from each nozzle included in the fourth row of nozzles. In the example shown in Fig. 7, the landing position 42 of ink ejected from a nozzle labeled 252(p) is a position between the landing position 43 of ink ejected from a nozzle labeled 252(q) and the landing position 44 of ink ejected from a nozzle labeled 252(r).
[0061] <4. Configuration of print control device> <4.1 Hardware configuration> FIG. 8 is a block diagram showing a hardware configuration of the print control device 100. As shown in FIG. 8, the print control device 100 includes a main body 110, an auxiliary storage device 121, an optical disk drive 122, a display unit 123, a keyboard 124, and a mouse 125. The main body 110 includes a CPU 111, a memory 112, a first disk interface unit 113, a second disk interface unit 114, a display control unit 115, an input interface unit 116, and a communication interface unit 117. The CPU 111, the memory 112, the first disk interface unit 113, the second disk interface unit 114, the display control unit 115, the input interface unit 116, and the communication interface unit 117 are connected to each other via a system bus. The auxiliary storage device 121 is connected to the first disk interface unit 113. The optical disk drive 122 is connected to the second disk interface unit 114. The display unit (display device) 123 is connected to the display control unit 115. A keyboard 124 and a mouse 125 are connected to the input interface unit 116. The printing machine main body 200 is connected to the communication interface unit 117 via a communication cable. The communication interface unit 117 is also connected to the LAN 4. The auxiliary storage device 121 is a magnetic disk device or the like. An optical disk 19 serving as a computer-readable recording medium such as a CD-ROM or DVD-ROM is inserted into the optical disk drive 122. The display unit 123 is a liquid crystal display or the like. The display unit 123 is used to display information desired by the operator. The keyboard 124 and the mouse 125 are used by the operator to input instructions to this print control device 100.
[0062] The auxiliary storage device 121 stores a print control program (program for controlling the execution of print processing by the printer body 200) 13. The print control program 13 in this embodiment includes a discharge defect detection program for detecting discharge defects of nozzles as a subprogram. The CPU 111 realizes various functions of the print control device 100 by reading the print control program 13 stored in the auxiliary storage device 121 into the memory 112 and executing it. The memory 112 includes a RAM (Random Access Memory) and a ROM (Read Only Memory). The memory 112 functions as a work area for the CPU 111 to execute the print control program 13 stored in the auxiliary storage device 121. The print control program 13 is provided by being stored in the computer-readable recording medium (non-transient recording medium). That is, the user, for example, purchases an optical disk 19 as a recording medium for the print control program 13, inserts it into the optical disk drive 122, reads the print control program 13 from the optical disk 19, and installs it in the auxiliary storage device 121.
[0063] <4.2 Functional configuration> 9 is a block diagram showing the functional configuration of a control unit 150 that is realized by executing the print control program 13 in the print control device 100. The control unit 150 includes a transport control unit 151, an ink ejection control unit 152, a drying control unit 153, an imaging control unit 154, a data storage unit 155, an ejection failure detection unit 156, and a print data correction unit 157.
[0064] The conveyance control unit 151 controls the speed (conveyance speed) at which the conveyance mechanism 29 conveys the print paper 5. The conveyance mechanism 29 is realized by a paper delivery unit 202, a first drive roller 203, a plurality of support rollers 204, a second drive roller 207, and a paper winding unit 208 (see FIG. 5). The drying control unit 153 controls the temperature (drying temperature) at which the drying mechanism 206 dries the print paper 5 after printing. The imaging control unit 154 controls the timing at which the inline scanner 40 captures the print image.
[0065] The data holding unit 155 temporarily holds the print data (print data based on a print job) 50 after RIP processing transmitted from the print data generating device 30. The print data 50 is data for controlling the ejection of ink from a plurality of nozzles included in each head unit 25. The data holding unit 155 also holds inspection chart data representing an inspection chart for detecting nozzles with ejection defects. In this embodiment, the data holding unit 155 holds, as the inspection chart data, test pattern data 51a representing a test pattern that is a stepped pattern to be formed by ejecting ink from all nozzles in one head unit 25, and tint pattern data 51b representing a tint pattern of constant density overall to be formed by ejecting ink from all nozzles in one head unit 25.
[0066] The discharge failure detection unit 156 detects the discharge-faulty nozzle based on the imaging data (captured image) obtained by capturing an image of the print image of the inspection chart with the inline scanner 40. Then, discharge failure information 52 for identifying the discharge-faulty nozzle is output from the discharge failure detection unit 156. An autoencoder is used for the detection of the discharge-faulty nozzle by the discharge failure detection unit 156. The process of the discharge failure detection unit 156 is roughly divided into a process of preparing learning data and learning the autoencoder using the learning data (hereinafter simply referred to as "learning process"), and a process of inferring the presence or absence of a discharge-faulty nozzle and the position of the discharge-faulty nozzle using the learned autoencoder (hereinafter simply referred to as "inference process"). The discharge failure detection unit 156 will be described in detail later.
[0067] The print data correction unit 157 corrects the print data 50 after the RIP process stored in the data storage unit 155 based on the discharge failure information 52 so that the discharge failure of the nozzle is compensated for. More specifically, the print data correction unit 157 corrects the print data 50 for controlling the discharge of ink from the multiple nozzles included in each head unit 25 based on the discharge failure information 52 so that the discharge failure of the nozzle determined to be in a discharge failure state by the discharge failure detection unit 156 is compensated for. More specifically, for example, the print data 50 is corrected so that the amount of ink discharged from the nozzles around the nozzle determined to be in a discharge failure state is increased. Then, the corrected print data 53 is output from the print data correction unit 157.
[0068] The ink ejection control unit 152 controls the ejection of ink from each nozzle included in the four head units 25K, 25C, 25M, and 25Y constituting the recording unit 205, based on the inspection chart data (test pattern data 51a, tint pattern data 51b) stored in the data storage unit 155 or the print data 53 after correction by the print data correction unit 157. For example, the ink ejection timing and the ink ejection amount are controlled. An inspection chart is printed on the printing paper 5 by controlling the ejection of ink from each nozzle based on the inspection chart data, and an image based on a print job is printed on the printing paper 5 by controlling the ejection of ink from each nozzle based on the print data 53.
[0069] In the present embodiment, the inspection chart is printed during the learning process and the inference process, but different inspection charts are printed during the learning process and the inference process. Specifically, the inspection chart 71, which is composed of a tint pattern 72 and a test pattern (step-like pattern) 73, as shown in FIG. 10, is printed during the learning process, whereas the inspection chart 71, which is composed of only the test pattern (step-like pattern) 73, as shown in FIG. 11, is printed during the inference process. That is, during the learning process, the ink discharge control unit 152 controls the discharge of ink from each nozzle based on the tint pattern data 51b and the test pattern data 51a, and during the inference process, the ink discharge control unit 152 controls the discharge of ink from each nozzle based on the test pattern data 51a. Note that a pattern other than a step-like pattern can be used as the test pattern as long as it has a regular pattern.
[0070] With regard to the inspection chart 71, as described above, the tint pattern 72 is a pattern of constant density overall, and the test pattern 73 is composed of a plurality of linear patterns 731. Each linear pattern 731 is a pattern formed by ejecting ink from a corresponding nozzle. Note that in reality, the test pattern 73 is composed of more linear patterns 731 than those shown in Figures 10 and 11. For example, if one head unit 25 includes 24,000 nozzles, the test pattern 73 for one color is composed of 24,000 linear patterns 731.
[0071] In the following description of the test pattern 73, a group of linear patterns 731 aligned in the main scanning direction is referred to as a “column.” In the example shown in Fig. 10, the test pattern 73 is made up of five columns.
[0072] 12 is a block diagram showing a detailed configuration of the discharge failure detection unit 156. The discharge failure detection unit 156 includes a learning image generation unit 610, a model generation unit 620, an image clipping unit 630, a discharge failure judgment unit 640, and a discharge failure information output unit 650. The discharge failure judgment unit 640 includes an auto-encoding unit 641, an error calculation unit 642, and a comparison judgment unit 643.
[0073] The learning image generating unit 610 generates a plurality of learning images 54 as learning data used for learning the autoencoder. If there is no discharge-fault nozzle, the printed image of the inspection chart 71 will be as shown in FIG. 10. In contrast, if there is a discharge-fault nozzle, the printed image of the inspection chart 71 will be, for example, as shown in FIG. 13. In the example shown in FIG. 13, the linear pattern is not printed properly in the portion marked with reference numeral 741 and the portion marked with reference numeral 751. Also, the tint pattern 72 is not printed properly in the portion marked with reference numeral 742 corresponding to the discharge failure in the portion marked with reference numeral 741, and the tint pattern 72 is not printed properly in the portion marked with reference numeral 752 corresponding to the discharge failure in the portion marked with reference numeral 751. In this way, if there is a discharge-fault nozzle, the tint pattern 72 is not printed properly in the portion corresponding to the discharge-fault nozzle. Therefore, the learning image generating unit 610 in this embodiment extracts and cuts out a plurality of learning images from the portions of the captured image obtained by capturing the print image of the tint pattern 72 by the inline scanner 40 that correspond to the tint normal portions, except for the abnormal portions (portions where ejection failure occurs), as learning images, from the portions of the captured image obtained by capturing the print image of the test pattern 73 by the inline scanner 40. This generates a plurality of learning images 54 as learning data used for learning the autoencoder. The learning image 54 may be an image formed by ejecting ink from one nozzle, or may be an image formed by ejecting ink from two or more nozzles. Hereinafter, it is assumed that a plurality of learning images 54, each formed by ejecting ink from N nozzles, is generated by the learning image generating unit 610, where N is an integer of 1 or more. Note that the captured image obtained by capturing the print image of the tint pattern 72 by the inline scanner 40 corresponds to the first partial captured image, and the captured image obtained by capturing the print image of the test pattern 73 by the inline scanner 40 corresponds to the second partial captured image.
[0074] The model generation unit 620 generates a trained model 55 configured by the autoencoder by providing the multiple training images 54 generated by the training image generation unit 610 as input data to the autoencoder and performing unsupervised learning as machine learning. This trained model 55 is used as an autoencoder 641 included in the discharge defect determination unit 640.
[0075] During the inference processing, the image cut-out unit 630 cuts out a plurality of partial images 57, each of which corresponds to N nozzles (one or more nozzles), from the captured image 56 obtained by the inline scanner 40 capturing the printed image of the test pattern 73.
[0076] The discharge defect determination unit 640 provides each of the multiple partial images 57 cut out by the image cutout unit 630 as input data to the autoencoder constituting the trained model 55 generated by the model generation unit 620, and determines whether or not a discharge defective nozzle is included among the N nozzles corresponding to the input data (partial image 57) based on the result of comparing a value calculated based on the output data and input data from the autoencoder with a threshold value set as a parameter. Then, a determination result 60 is output from the discharge defect determination unit 640.
[0077] The autoencoding unit 641 is a trained model 55 generated by the model generation unit 620, and receives each of the multiple partial images 57 cut out by the image cutout unit 630 as input data, and outputs output data 58 obtained by forward propagation processing in the autoencoder. The error calculation unit 642 calculates a mean square error 59 between the input data to the autoencoding unit 641 (the partial images 57 cut out by the image cutout unit 630) and the output data 58 from the autoencoding unit 641. The comparison and determination unit 643 determines whether or not a discharge-failed nozzle is included among the N nozzles corresponding to the input data to the autoencoding unit 641 based on the result of comparing the mean square error 59 with the above-mentioned threshold. In this regard, if the mean square error 59 is greater than the threshold, the comparison and determination unit 643 determines that a discharge-failed nozzle is included among the N nozzles corresponding to the input data. In this embodiment, the auto-encoding step is realized by the processing of the auto-encoding unit 641, the error calculation step is realized by the processing of the error calculation unit 642, and the comparison and judgment step is realized by the processing of the comparison and judgment unit 643.
[0078] The discharge failure information output unit 650 outputs discharge failure information 52 for identifying a discharge failure nozzle based on the judgment result 60 output from the discharge failure judgment unit 640. When each partial image 57 corresponds to one nozzle, the judgment result 60 output from the discharge failure judgment unit 640 ultimately indicates whether or not the nozzle corresponding to each partial image 57 is in a discharge failure state. Therefore, the discharge failure nozzle is identified based on the judgment result 60 output from the discharge failure judgment unit 640. However, when each partial image 57 corresponds to two or more nozzles, the judgment result 60 corresponding to each partial image 57 merely indicates whether or not a discharge failure nozzle is included in the corresponding two or more nozzles. Therefore, when each partial image 57 corresponds to two or more nozzles, as shown in FIG. 14, a discharge failure nozzle identification unit 651 is provided in the discharge failure information output unit 650 for identifying a discharge failure nozzle by taking into consideration the judgment result 60 (the judgment result 60 output from the discharge failure judgment unit 640) for each of the multiple partial images 57. How the discharge-failed nozzle identifying section 651 identifies the discharge-failed nozzle will be described later.
[0079] <4.3 Autoencoder> FIG. 15 is a diagram showing an example of the structure of an autoencoder AE used in this embodiment. This autoencoder AE is composed of an input layer, a hidden layer (middle layer), and an output layer. The input layer is composed of units (neurons) equal in number to the number of pixels constituting the image to be inspected, which is input data. The hidden layer is composed of units fewer in number than the number of units constituting the input layer. The output layer is composed of units equal in number to the number of units constituting the input layer. The connections between the input layer and the hidden layer and between the hidden layer and the output layer are full connections. For example, a sigmoid function is adopted as the activation function of the hidden layer and the output layer. With the above structure, the part marked with the symbol 7 in FIG. 15 (the part consisting of the input layer and the hidden layer) functions as an encoder, and the part marked with the symbol 8 in FIG. 15 (the part consisting of the hidden layer and the output layer) functions as a decoder. In addition, since the input layer and the output layer are composed of units equal in number to the number of pixels constituting the image to be inspected, it can be understood that the input data to the autoencoder AE and the output data from the autoencoder AE are composed of data of a plurality of pixels.
[0080] Learning using this autoencoder AE is performed, for example, as follows. When input data is given to the autoencoder AE, forward propagation processing is performed within the autoencoder AE. After that, the sum of squared errors between the input data and the output data output from the autoencoder AE is calculated. Then, the parameters of the autoencoder AE (weight coefficients, bias) are updated using the gradient descent method based on the results obtained from the backpropagation processing of the error. By repeating learning in this manner, the above parameters are optimized. As a result, learning using this autoencoder AE is performed so that the output data is as close to the input data as possible. In other words, learning is performed so that the error between the input data and the output data is minimized.
[0081] As described above, the data output from the autoencoder AE during the learning process is compared with the input data to the autoencoder AE. In other words, no teacher data is used. In this manner, in this embodiment, unsupervised learning is performed as machine learning using the autoencoder AE.
[0082] <5. Procedure for detecting defective nozzles (method for detecting defective nozzles)> A series of steps for detecting nozzles with ejection failures will be described with reference to the flowchart shown in Fig. 16. First, learning data to be used for learning using the autoencoder AE described above is prepared (step S10). In this step S10, a plurality of learning images 54, each formed by ejecting ink from N nozzles, are prepared as learning data.
[0083] Here, a detailed procedure for preparing the learning data will be described with reference to the flowchart shown in FIG. 17. First, the inspection chart 71 is printed (step S110). More specifically, the ink ejection control unit 152 controls the ejection of ink from each nozzle based on the inspection chart data (test pattern data 51a, tint pattern data 51b) stored in the data storage unit 155, thereby printing the inspection chart 71, which is composed of a tint pattern 72 and a test pattern (step-like pattern) 73, as shown in FIG. 10. After the inspection chart 71 is printed, the in-line scanner 40 captures the printed image of the inspection chart 71 (the printed image obtained in step S110) based on the control of the imaging control unit 154 (step S120). Next, the captured image of the tint pattern 72 among the captured images obtained in step S120 is inspected (step S130). Then, based on the result of the inspection in step S130, a plurality of learning images 54 are extracted as learning data from the captured images of the test pattern 73 among the captured images obtained in step S120 (step S140). Note that in step S140, a plurality of learning images 54 are extracted from the captured images of the test pattern 73, from portions corresponding to the above-mentioned tint normal portions. Therefore, the plurality of learning images 54 extracted as learning data does not include images that represent nozzle ejection defects. After step S140 is completed, the process proceeds to step S20 in FIG.
[0084] After the training data is prepared, unsupervised learning is performed using the autoencoder AE (step S20). In this step S20, the multiple training images 54 prepared as training data in step S10 are sequentially provided to the autoencoder AE, thereby performing unsupervised learning as machine learning. By performing unsupervised learning using the multiple training images 54, the parameters (weighting coefficient, bias) of the autoencoder AE are optimized. In this manner, a trained model 55 configured by the autoencoder AE is generated.
[0085] Incidentally, the shape of an image formed on the printing paper 5 by ejecting ink from the nozzles may vary depending on the printing conditions. Therefore, in this embodiment, unsupervised learning using the autoencoder AE is performed for each printing condition. In this regard, for example, one printing condition is defined by a combination of the type of printing medium, the printing speed, and the printing resolution. If ten printing conditions are used in a printing system at a certain printing company, unsupervised learning using the autoencoder AE is performed for each of the ten printing conditions. In this case, in step S20, ten trained models 55 corresponding to the ten printing conditions are generated.
[0086] After the trained model 55 is generated, the ink discharge control unit 152 controls the discharge of ink from each nozzle based on the test pattern data 51a stored in the data storage unit 155, thereby printing an inspection chart 71 consisting of only a test pattern (step-like pattern) 73 as shown in FIG. 11 (step S30). Then, the in-line scanner 40 captures a print image of the test pattern 73 (print image obtained in step S30) based on the control of the image capture control unit 154 (step S40). Next, the image cutout unit 630 cuts out a plurality of partial images 57, each of which corresponds to N nozzles, from the captured image 56 obtained in step S40 (step S50).
[0087] After the plurality of partial images 57 are cut out from the captured image 56, each of the plurality of partial images 57 is provided as an image to be inspected as input data to the autoencoder AE constituting the trained model 55 (step S60). As a result, output data corresponding to each partial image 57 is output from the autoencoder AE. In this step S60, the trained model 55 corresponding to the printing conditions when the test pattern 73 was printed in step S30 is used.
[0088] Thereafter, the error calculation unit 642 calculates the mean square error 59 between the input data to the autoencoder AE and the output data 58 from the autoencoder AE for each of the multiple partial images 57 (step S70).
[0089] Finally, the comparison and determination unit 643 compares the mean square error 59 calculated in step S70 with the above-mentioned threshold value that is preset as a parameter, and determines whether or not a discharge-faulty nozzle is included among the N nozzles corresponding to each partial image 57 (each input data) based on the comparison result (step S80). In this step S80, if the mean square error 59 is greater than the threshold value, it is determined that a discharge-faulty nozzle is included among the N nozzles corresponding to the partial image 57 (input data). Note that, when each partial image 57 corresponds to one nozzle, the discharge-faulty nozzle is identified by the process of this step S80. On the other hand, when each partial image 57 corresponds to two or more nozzles, after step S80, a process of identifying a discharge-faulty nozzle is performed by the discharge-faulty nozzle identification unit 651 taking into consideration the result obtained in the process of step S80 (not shown in FIG. 16).
[0090] After the process of detecting the nozzles with ejection failure is performed according to the above procedure, the print data is corrected so that the ejection failure of the nozzles identified as the ejection failure nozzles is compensated for (print data correction step). This makes it possible to obtain high-quality prints even if there are ejection failure nozzles.
[0091] 16, the processes in steps S10 to S20 are learning processes, and the processes in steps S30 to S80 are inference processes. Once the learning process is completed and the trained model 55 is generated, it is possible to repeat only the inference process. Even if the trained model 55 has been generated, the accuracy of detecting nozzle discharge defects can be improved by further repeating the learning process.
[0092] In this embodiment, step S10 realizes a learning image preparation step, step S20 realizes a model generation step, step S30 realizes a test pattern printing step, step S40 realizes an imaging step, step S50 realizes an image extraction step, and steps S60 to S80 realize a discharge defect determination step. Also, step S110 realizes a pre-learning printing step, step S120 realizes a pre-learning imaging step, and steps S130 and S140 realize learning image extraction steps.
[0093] Here, the setting of the threshold as a parameter will be described with reference to FIG. 18 and FIG. 19. The occurrence frequency (frequency) of the mean square error for each certain numerical range is shown in FIG. 18, and the details of the part marked with reference numeral 46 in FIG. 18 are shown in FIG. 19. The data present in the dotted line part marked with reference numeral 49 in FIG. 18 is data corresponding to the nozzle with the discharge failure. The dotted line marked with reference numeral 47 in FIG. 18 represents the average value of the mean square error (of normal data). In a normal distribution, the probability that each data exceeds the range of 4σ (σ: standard deviation) from the average value (however, on one side) is 1 in 30,000. This is the level at which one nozzle with a discharge failure exists in a 20-inch head unit. For example, taking this into consideration, the value obtained by adding 4σ to the average value of the mean square error (the value represented by the solid line marked with reference numeral 48 in FIG. 18) can be set as the threshold. Note that what is shown here is just an example, and there is no particular limitation on how the threshold is set.
[0094] <6. Image cropping> In this embodiment, images (learning image 54, partial image 57) are cut out from the captured image during the learning process and the inference process. In this regard, in order to efficiently learn the autoencoder AE and to accurately detect nozzles with ejection problems using the autoencoder AE, it is preferable to determine in advance the number of linear patterns to be included in the cut-out image and the reference position (e.g., center position) when cutting out the image from the captured image. Hereinafter, the range of one image cut out from the captured image (image cut-out range) and the reference position when cutting out the image (hereinafter referred to as the "cut-out reference position") will be described.
[0095] <6.1 Image cropping range> Regarding the range of image extraction, roughly speaking, there are a method of extracting an image in a range for one nozzle as shown in FIG. 1, and a method of extracting an image in a range for multiple nozzles. In other words, there are a method of extracting an image so that only one linear pattern is included in the extracted image, and a method of extracting an image so that multiple linear patterns are included in the extracted image. When the method of extracting an image in a range for one nozzle is adopted, multiple images (learning image 54, partial image 57) each corresponding to one nozzle are extracted from the captured image of the test pattern 73, both during the learning process and the inference process. When the method of extracting an image in a range for multiple nozzles is adopted, multiple images (learning image 54, partial image 57) each corresponding to two or more nozzles are extracted from the captured image of the test pattern 73, both during the learning process and the inference process.
[0096] According to the method of cutting out an image of a range of one nozzle, the size (image size) of the input / output data of the autoencoder AE is smaller than that of the method of cutting out an image of a range of multiple nozzles, so the processing load of the model generation unit 620 and the discharge defect determination unit 640 is reduced. In addition, even if the cutout reference position is not determined (i.e., even if the position of the linear pattern in the image to be inspected differs for each input data), it is possible to determine with relatively high accuracy whether or not the nozzle corresponding to the input data to the autoencoder AE is in a discharge defect state. However, unless the ideal discharge position described later is adopted as the cutout reference position, it is not possible to detect lateral skipping.
[0097] By using a method of cutting out an image covering a range of multiple nozzles, the positional relationship between multiple linear patterns is learned, making it possible to detect skipping regardless of which of the three positions described below is used as the cutting reference position. In addition, it is possible to detect non-ejection and shape defects, making it possible to detect nozzle ejection defects regardless of their type.
[0098] With regard to cutting out an image in a range of a plurality of nozzles, an image in a range corresponding to a plurality of nozzles consecutive in the main scanning direction may be cut out, an image in a range corresponding to a plurality of nozzles consecutive in the sub-scanning direction may be cut out, or an image in a range corresponding to a plurality of nozzles consecutive in both the main scanning direction and the sub-scanning direction may be cut out. For example, an image may be cut out from a captured image so that the cut out image contains three linear patterns consecutive in the main scanning direction (see the thick dotted line portion with reference numeral 76 in FIG. 20). When an image is cut out in this way, it is possible to detect dimensional jumps, as can be seen from FIG. 44. Also, for example, an image may be cut out from a captured image so that the cut out image contains three linear patterns consecutive in the sub-scanning direction (see the thick dotted line portion with reference numeral 77 in FIG. 21). When an image is cut out in this way, it is possible to detect jumps that affect quality, as can be seen from FIG. 45. Also, for example, an image may be cut out from a captured image so that the cut out image contains nine linear patterns of 3 rows and 3 columns (see the thick dotted line portion labeled with reference numeral 78 in FIG. 22). When an image is cut out in this manner, it becomes possible to detect side jumps from multiple perspectives.
[0099] <6.2 Extraction reference position> There are three possible positions for the cutout reference position. Below, three cutout methods (first to third cutout methods) corresponding to the three positions will be described. When a method of cutting out an image in a range for one nozzle is adopted (i.e., when the above-mentioned N nozzles are one nozzle), an image in a predetermined range (learning image 54, partial image 57) is cut out from the captured image with this cutout reference position as the center in step S50 of FIG. 16 or step S140 of FIG. 17. On the other hand, when a method of cutting out an image in a range for multiple nozzles is adopted (i.e., when the above-mentioned N nozzles are two or more nozzles), an image in a predetermined range (learning image 54, partial image 57) is cut out from the captured image with this cutout reference position for a predetermined one of the corresponding two or more nozzles as the center in step S50 of FIG. 16 or step S140 of FIG. 17.
[0100] The first extraction method is a method of extracting an image from a captured image based on the positions (hereinafter referred to as "provisional ejection positions") where ink is expected to be ejected from each nozzle based on the design information of the test pattern 73. In this regard, the provisional ejection positions are obtained, for example, as follows. First, when printing the test pattern 73, position marks 791 and 792 for obtaining the provisional ejection positions are also printed, for example, as shown in FIG. 23. Then, based on the captured image of the printed image, the number of linear patterns present in the area corresponding to between the two position marks 791 and 792 is counted. Based on the count value obtained in this way (i.e., the number of nozzles that should eject ink into the area corresponding to between the two position marks 791 and 792) and the positions (coordinates) of the two position marks 791 and 792, the nozzle pitch (the distance between two nozzles adjacent in the main scanning direction) is obtained. Then, based on the position (coordinates) of one position mark 791 and the nozzle pitch, the provisional ejection positions of each nozzle that ejects ink into the area corresponding to between the two position marks 791 and 792 are obtained.
[0101] The second cut-out method is a method of cutting out an image from a captured image based on the positions where ink is actually discharged from each nozzle (hereinafter referred to as "actual discharge positions"), which are obtained based on a captured image of a printed image of the test pattern 73. With regard to the second cut-out method, the procedure for determining the actual discharge positions will be described below with reference to the flowchart shown in FIG.
[0102] First, the captured image is divided into K parts (split images) in the sub-scanning direction, where K is an integer equal to or greater than 2 (step S210). In step S210, the boundaries between the rows are found based on the design information of the test pattern 73 or the pixel values of the captured image, and the captured image is divided so that each split image corresponds to one row (in other words, each split image corresponds to one nozzle in the sub-scanning direction). For example, if a captured image 80 as shown in part A of FIG. 25 is obtained, the captured image 80 is divided into four split images 801 to 804 as shown in part B of FIG. 25. Note that the boundary between one row and the next row contains a lot of noise. For example, as shown in the part marked with the reference numeral 81 in FIG. 26, a gap may occur due to the adjustment of the ink ejection head 251. Therefore, it is preferable to remove the upper and lower end parts of the split images (i.e., the boundary between the rows) by trimming.
[0103] Next, for each of the K divided images obtained in step S210, an average value of data (pixel values) of a plurality of pixels included in the sub-scanning direction is calculated (step S220). This corresponds to converting a captured image such as that shown in part A of Fig. 27 into one-dimensional data such as that shown in part B of Fig. 27. Note that it is preferable to normalize the average value data obtained in step S220, for example, by setting the paper white portion to 0 and the maximum density portion to 255.
[0104] Finally, based on the average values calculated in step S220 (preferably the average values after normalization), the actual ejection position for each nozzle is determined (step S230). For this, the peak position is calculated in real numbers using a method such as center of gravity calculation, equiangular linear fitting, spline interpolation, Gaussian fitting, etc. based on the values of the pixels (e.g., pixels marked with symbols PE1 to PE5 in part B of FIG. 27) where the peak of the average value is obtained and the values of the pixels nearby (e.g., based on the values of a total of three pixels), and the peak position is determined as the actual ejection position.
[0105] In this embodiment, step S210 realizes a captured image division step, step S220 realizes an average value calculation step, and step S230 realizes an actual ejection position specification step.
[0106] Here, a method for determining the actual ejection position when a non-ejecting nozzle (a nozzle causing non-ejection) is present will be described. When a non-ejecting nozzle is present, for example, a "printed image of test pattern 73" as shown in FIG. 13 is obtained. A divided image is obtained by performing the process of step S210 in FIG. 24 (division process of captured image) on the captured image obtained by capturing the printed image of this test pattern 73. For the portion where a non-ejecting nozzle is present, a divided image 805 including an abnormal portion 741a where a linear pattern is printed with an extremely narrow width as shown in FIG. 28, or a divided image 806 including an abnormal portion 741b where no linear pattern is printed at all as shown in FIG. 29, is obtained.
[0107] When the process of step S220 in FIG. 24 (processing for calculating the average value in the sub-scanning direction) is performed on divided images 805 and 806, a peak of the average value is detected for normal portions excluding abnormal portions 741a and 741b. On the other hand, no peak of the average value is detected for abnormal portions 741a and 741b. In this way, for portions where no peak of the average value is detected, it is determined that a non-ejecting nozzle exists, and the portion is excluded from the process of step S230 in FIG. 24 (processing for identifying the actual ejection position). As a result, it is not possible to perform extraction of a partial image (step S50 in FIG. 16) using the position of the nozzle corresponding to abnormal portions 741a and 741b as the extraction reference position, and it is determined that a non-ejecting nozzle exists.
[0108] The third extraction method is a method of extracting an image from a captured image based on the ideal position where ink is ejected from each nozzle (hereinafter referred to as the "ideal ejection position"). With regard to the third extraction method, the procedure for determining the ideal ejection position of a certain nozzle (hereinafter referred to as the "nozzle of interest") will be described below with reference to the flowchart shown in FIG.
[0109] First, based on the design information of the test pattern 73, the provisional ejection positions (positions where ink is expected to be ejected) of the target nozzle and a predetermined number of nozzles in the vicinity of the target nozzle are obtained by the above-mentioned procedure (step S310). Hereinafter, the predetermined number of nozzles in the vicinity of the target nozzle are referred to as the "neighboring nozzle group." If the main scanning direction is referred to as the "left-right direction," for example, the nozzles up to five nozzles to the left of the target nozzle and the nozzles up to five nozzles to the right of the target nozzle are considered to be the neighboring nozzle group. However, when the target nozzle is located at the left end, the nozzles up to five nozzles to the right of the target nozzle are considered to be the neighboring nozzle group, and when the target nozzle is located at the right end, the nozzles up to five nozzles to the left of the target nozzle are considered to be the neighboring nozzle group. After the provisional ejection positions are obtained, the actual ejection positions (positions where ink is actually ejected) of each of the multiple nozzles included in the neighboring nozzle group are obtained based on the captured image by the above-mentioned procedure (step S320). Next, for each of the nozzles included in the neighboring nozzle group, the difference between the provisional ejection position and the actual ejection position is calculated (step S330). After that, the average value of the differences calculated in step S330 is calculated (step S340). Finally, the ideal ejection position for the nozzle of interest is obtained by adding the average value calculated in step S340 to the provisional ejection position for the nozzle of interest (step S350).
[0110] In this embodiment, step S310 realizes a tentative ejection position calculation step, step S320 realizes an actual ejection position calculation step, step S330 realizes a difference calculation step, step S340 realizes a difference average calculation step, and step S350 realizes an ideal ejection position identification step.
[0111] Here, a method for determining the ideal ejection position when a non-ejecting nozzle is present will be described. The non-ejecting nozzle is detected by the process of step S320 in FIG. 30 (calculation process of actual ejection position). In this case, for example, one of the multiple nozzles included in the nearby nozzle group is detected as a non-ejecting nozzle. Then, the non-ejecting nozzle is excluded from the nearby nozzle group, and the process of step S330 in FIG. 30 (calculation process of difference) is executed. As a result, the difference between the provisional ejection position and the actual ejection position is calculated for each of, for example, nine nozzles from the nearby nozzle group excluding the non-ejecting nozzle. The processes of steps S340 and S350 thereafter are the same as those in the case where a non-ejecting nozzle is not detected. In this manner, the ideal ejection position for the nozzle of interest described above is determined.
[0112] <6.3 Cases where a range for multiple nozzles is cut out in the sub-scanning direction> For example, when the image cut-out range is a range corresponding to multiple nozzles that are consecutive in the sub-scanning direction as shown in Figures 21 and 22, the captured image may be reconstructed as follows prior to cutting out the image.
[0113] First, a captured image including multiple stages is divided into multiple divided images for each stage. Next, since the boundary portion between one stage and the next stage contains a lot of noise as described above, the boundary portion is removed by trimming. More specifically, the upstream and downstream ends in the sub-scanning direction are removed for each of the multiple divided images. Finally, the multiple divided images from which the boundary portions have been removed as described above (i.e., the multiple divided images after the upstream and downstream ends in the sub-scanning direction have been removed) are combined. In this manner, the captured image is reconstructed.
[0114] However, when the range corresponding to three nozzles consecutive in the sub-scanning direction is set as the image cut-out range, it is not possible to perform the desired cut-out centered on the nozzle corresponding to the top row or the nozzle corresponding to the bottom row. Therefore, the image of the top row (the image at the position marked with reference numeral 82a in FIG. 31) may be copied to a position below the image of the bottom row (the position marked with reference numeral 82b in FIG. 31), and the image of the bottom row (the image at the position marked with reference numeral 83a in FIG. 31) may be copied to a position above the image of the top row (the position marked with reference numeral 83b in FIG. 31). In other words, before cutting out the images (learning image 54, partial image 57) from the captured image, the image of the row located at the most upstream side in the sub-scanning direction in the captured image may be copied further downstream of the row located at the most downstream side in the sub-scanning direction, and the image of the row located at the most downstream side in the sub-scanning direction in the captured image may be copied further upstream of the row located at the most upstream side in the sub-scanning direction. In order to obtain a printed image equivalent to such a copied image, ink may be ejected from the nozzles corresponding to the top row and the nozzles corresponding to the bottom row when printing the test pattern 73.
[0115] <6.4 Edges of captured images> When a method of cutting out an image in a range covering a plurality of nozzles is adopted, it is considered that the accuracy of detecting discharge defects is lower for edge portions of a captured image than for other portions. Therefore, the following processing may be performed for edge portions. During learning processing, for example, a learning image 54 is cut out from the captured image using each of the four corners of the captured image as a reference position for cutting out, and unsupervised learning is performed by an autoencoder AE using the learning image 54 to generate a trained model 55 for edge portions. During inference processing, a partial image 57 is cut out from the captured image in the same manner as during learning processing, and the partial image 57 is provided as input data to the autoencoder AE that constitutes the trained model 55 for edge portions to detect discharge-failed nozzles.
[0116] <6.5 How to extract images (partial images) during inference processing and identify nozzles with defective ejection> A method of extracting partial images 57 from the captured image 56 during inference processing and identification of nozzles with ejection problems will be described below for cases where an image covering a range of multiple nozzles is extracted (i.e., the above-mentioned N nozzles are two or more nozzles). In cases where an image covering a range of multiple nozzles is extracted, a method (hereinafter, for convenience, referred to as a "processing time priority extraction method") may be adopted in which multiple partial images 57 are extracted from the captured image 56 so that an image corresponding to each nozzle is extracted only once (in other words, multiple partial images 57 are extracted from the captured image 56 so that a linear pattern corresponding to each nozzle is included in only one of the partial images 57) or a method (hereinafter, for convenience, referred to as a "precision priority extraction method") may be adopted in which multiple partial images 57 are extracted from the captured image 56 so that an image corresponding to each of all nozzles (excluding nozzles corresponding to linear patterns located at the end of the captured image 56) is located at the center (the center of the image after extraction) once each (hereinafter, for convenience, referred to as a "precision priority extraction method"). According to the precision-priority extraction method, the nozzles corresponding to the linear patterns included in the stage located at the most upstream side in the sub-scanning direction in the captured image 56, the nozzles corresponding to the linear patterns included in the stage located at the most downstream side in the sub-scanning direction in the captured image 56, and the nozzles corresponding to the linear patterns located at both ends of each stage are defined as end nozzles, and when multiple partial images 57 are extracted from the captured image 56, the positions corresponding to all of the nozzles among the multiple nozzles included in the head unit 25, excluding the end nozzles, are used as references once each.
[0117] When the processing time priority extraction method is adopted, for example, after a partial image of the dotted line portion labeled with reference numeral 851 in FIG. 32 is extracted, a partial image of the dotted line portion labeled with reference numeral 852 in FIG. 32 is extracted. This method shortens the processing time required to extract a plurality of partial images 57 from the captured image 56. When partial images 57 are extracted using this method, the detection and identification of nozzles with discharge problems in the inference process is performed as follows. First, the discharge problem determination unit 640 determines whether or not there is a discharge problem nozzle based on the mean square error between the input data to the autoencoder AE and the output data from the autoencoder AE for the entire partial image. As a result, if it is determined that a nozzle with a faulty discharge exists (in other words, if the mean square error is greater than a predetermined threshold), the faulty nozzle identifying unit 651 divides the entire partial image for both the input data and the output data into N images for each nozzle (hereinafter referred to as "nozzle unit images"). It calculates the mean square error between the input data and the output data for each nozzle unit image, and identifies the faulty nozzle based on the result of comparing the mean square error with a threshold (a threshold for comparison for each nozzle unit image) (this threshold is also set as a parameter). At this time, the nozzle corresponding to the nozzle unit image for which the mean square error is greater than the threshold is identified as the faulty nozzle. For example, if the image of the thick solid line portion labeled with the symbol 70 in FIG. 33 has been cut out as a partial image, first, the presence or absence of a faulty nozzle is determined based on the entire partial image. As a result, if it is determined that a nozzle with a faulty discharge exists, the partial image 70 is divided into nine nozzle unit images 701 to 709 for both the input data and the output data. Then, the mean square error between the input data and output data is compared with a threshold value for each of the nine nozzle unit images 701 to 709. If the comparison of the mean square error with the threshold value shows that the mean square error for the nozzle unit image 706 is greater than the threshold value, then the nozzle corresponding to the nozzle unit image 706 is identified as a discharge-failure nozzle.Furthermore, if the result shows that the mean square error for the nozzle unit image 701 and the nozzle unit image 709 is greater than the threshold value, the nozzle corresponding to the nozzle unit image 701 and the nozzle corresponding to the nozzle unit image 709 are identified as ejection-failure nozzles.
[0118] When the precision-priority extraction method is adopted, for example, even if a partial image of the thick solid line portion labeled with reference number 861 in FIG. 34 is extracted, a partial image of the dotted line portion labeled with reference number 862 in FIG. 34 is also extracted, and even if a partial image of the thick dotted line portion labeled with reference number 863 in FIG. 34 is extracted, a partial image of the solid line portion labeled with reference number 864 in FIG. 34 is also extracted. This method makes it possible to accurately identify the position of the nozzle with the defective discharge. For example, when partial images of a range corresponding to five nozzles consecutive in the main scanning direction are extracted during the inference process, if a discharge defect occurs as shown in the dotted line portion labeled with reference number 87 in FIG. 35, the part where the discharge defect occurs gradually moves as shown in FIG. 35 in the five test results. At this time, a result that the mean square error is larger than the threshold value is obtained five times in a row. Based on this, the nozzle with the defective discharge is identified by the defective discharge nozzle identification unit 651. In addition, in the case where a partial image including nine linear patterns of 3 rows x 3 columns is cut out during the inference process, it is assumed that the result shown in FIG. 36 is obtained when the inspection result for each partial image including the nine linear patterns is represented in correspondence with the linear pattern located at the center of each partial image. In FIG. 36, "◯" indicates that no discharge defect was detected, and "×" indicates that a discharge defect was detected. In this case, the discharge-defective nozzle identification unit 651 can determine that the nozzle that recorded the linear pattern corresponding to the result indicated by the reference numeral 88 in FIG. 36 is in a discharge-defective state. From the above, it can be understood that the discharge-defective nozzle is identified based on the mutual overlap state of two or more partial images that are determined to include a discharge-defective nozzle among the corresponding N nozzles in step S80 of FIG. 16.
[0119] <6.6 Detectable types of ejection defects for each combination of image extraction range and extraction reference position> FIG. 37 shows the relationship between the combination of the image cut-out range and the cut-out reference position and the types of detectable discharge defects. Shape defects can be detected with any combination. When the actual discharge position is adopted as the cut-out reference position, non-discharge can be detected under certain conditions. In detail, if the peak of the average value is not obtained in step S230 of FIG. 24, it is possible to detect non-discharge if it is possible to determine that the corresponding nozzle is non-discharged without the processing of steps S60 to S80 of FIG. 16. Regarding lateral jump, if the image cut-out range is a range for multiple nozzles, the positional relationship between multiple linear patterns is learned by the autoencoder AE, so that it is possible to detect it regardless of which cut-out reference position is adopted. However, if the image cut-out range is a range for one nozzle, lateral jump can be detected only when the ideal discharge position is adopted as the cut-out reference position. In this regard, if the ideal discharge position is adopted as the cut-out reference position, even if lateral jump occurs for a certain nozzle, there is no deviation (deviation due to lateral jump) in the cut-out position when cutting out a partial image corresponding to the nozzle from the captured image. Therefore, even if the image cut-out range is the range of one nozzle, lateral skipping can be detected.
[0120] <7. Effects> According to this embodiment, the trained model 55 for detecting nozzle discharge defects is generated by performing unsupervised learning by the autoencoder AE using only images that represent a good discharge state. As a result, if the input data given to the autoencoder AE constituting the trained model 55 is an image without discharge defects, the error between the input data and the output data is small, and if the input data given to the autoencoder AE constituting the trained model 55 is an image with discharge defects, the error between the input data and the output data is large. Therefore, by setting a threshold value for comparison with the error as a parameter, it is possible to determine whether or not a discharge-defective nozzle is included among the N nozzles (one or more nozzles) corresponding to each partial image 57 given to the autoencoder AE as input data, without the need to set other parameters. Furthermore, although discharge defects occur only rarely in the inkjet printing device 10, only images that represent a good discharge state are required as learning data (learning images 54) (in other words, there is no need to collect defective data), so a sufficient number of learning data can be easily collected. As described above, according to this embodiment, it is possible to accurately detect nozzle discharge defects in the inkjet printing device 10 without requiring a great deal of effort for generating and collecting learning data and setting parameters. In addition, the occurrence of missed detection of ejection defects due to insufficient parameter settings is suppressed, so the wasteful consumption of printing paper 5 and ink due to reprinting is suppressed. In this way, it is possible to contribute to the achievement of the SDGs (Sustainable Development Goals).
[0121] <8. Variations> In the above embodiment, unsupervised learning using the autoencoder AE is performed for each printing condition, but the present invention is not limited to this. Therefore, four modified examples (first to fourth modified examples) regarding the execution of unsupervised learning are described below.
[0122] <8.1 First modified example> If unsupervised learning is performed for each of all printing conditions as in the above embodiment, it is considered that the processing load will become excessive. Therefore, it is also possible to group a plurality of printing conditions similar to each other into one and perform unsupervised learning. That is, in this modified example, one or more printing conditions are treated as a printing condition group, and unsupervised learning using the autoencoder AE is performed for each printing condition group. As a result, in step S20 of FIG. 16, a trained model 55 is generated for each printing condition group. Then, in step S60 of FIG. 16, a trained model 55 corresponding to a printing condition group including the printing condition when the test pattern 73 was printed in step S30 of FIG. 16 is used.
[0123] <8.2 Second modified example> The shape of an image formed on the printing paper 5 by ejecting ink from the nozzles may vary depending on the type of ink. Therefore, in this modified example, unsupervised learning using the autoencoder AE is performed for each type of ink. As a result, in step S20 of FIG. 16, a trained model 55 is generated for each type of ink. Then, in step S60 of FIG. 16, a trained model 55 corresponding to the type of ink used when the test pattern 73 was printed in step S30 of FIG. 16 is used.
[0124] <8.3 Third modified example> FIG. 38 is a plan view showing an example of the configuration of the recording unit 205 in this modified example. Unlike the above embodiment, the head unit 25 for each color is composed of a first head group arranged on the upstream side in the sub-scanning direction and a second head group arranged on the downstream side in the sub-scanning direction. For example, the head unit 25K for K color is composed of a first head group 25K(1) for K color arranged on the upstream side in the sub-scanning direction and a second head group 25K(2) for K color arranged on the downstream side in the sub-scanning direction. In the example shown in FIG. 38, both the first head group and the second head group are composed of five ink ejection heads 251 arranged in a staggered pattern. For example, both the ink ejection head 251 included in the first head group and the ink ejection head 251 included in the second head group are capable of printing at 600 dpi, and both of them can print at 1200 dpi. The ink ejection head 251 included in the first head group corresponds to the upstream ink ejection head, and the ink ejection head 251 included in the second head group corresponds to the downstream ink ejection head.
[0125] FIG. 39 is a diagram showing a detailed configuration of the head unit 25 in this modified example. In the portion shown in FIG. 39, the ink ejection head 251(1) and the ink ejection head 251(3) are included in the first head group, and the ink ejection head 251(2) and the ink ejection head 251(4) are included in the second head group. From FIG. 39, it can be seen that the landing positions of the ink ejected from the nozzles included in the first head group and the landing positions of the ink ejected from the nozzles included in the second head group are arranged alternately in the main scanning direction. When printing is performed, ink is first ejected from the nozzles included in the first head group onto each area on the printing paper 5, and then ink is ejected from the nozzles included in the second head group. Therefore, in the following, the nozzles included in the first head group are referred to as "first-ejection nozzles," and the nozzles included in the second head group are referred to as "second-ejection nozzles."
[0126] In this modified example, a test pattern 73 as shown in Fig. 40 is printed using head unit 25 configured as described above. With reference to Fig. 40, the linear patterns in the portions labeled with reference numerals 891, 893, 895, and 897 correspond to the first-injection nozzles, and the linear patterns in the portions labeled with reference numerals 892, 894, 896, and 898 correspond to the second-injection nozzles. Note that, here, it is assumed that the extraction range when extracting images (learning image 54, partial image 57) from the captured image is the range of one nozzle.
[0127] Under the above premise, unsupervised learning using an autoencoder AE is performed separately for the image corresponding to the first-injection nozzle (the image included in the portion labeled with reference numerals 891, 893, 895, and 897 in FIG. 40) and the image corresponding to the second-injection nozzle (the image included in the portion labeled with reference numerals 892, 894, 896, and 898 in FIG. 40). As a result, in step S20 in FIG. 16, a trained model 55 corresponding to the first head group and a trained model 55 corresponding to the second head group are generated. Then, in step S60 in FIG. 16, if the nozzle corresponding to the input data is included in the first head group (i.e., if the nozzle corresponding to the input data is a first-injection nozzle), the input data is provided to the autoencoder AE constituting the trained model 55 corresponding to the first head group, and if the nozzle corresponding to the input data is included in the second head group (i.e., if the nozzle corresponding to the input data is a second-injection nozzle), the input data is provided to the autoencoder AE constituting the trained model 55 corresponding to the second head group.
[0128] In addition, even when an image is cut out from a captured image so that the cut-out image contains multiple linear patterns that are continuous in the main scanning direction (see the thick dotted line portion marked with the symbol 76 in Figure 20), unsupervised learning may be performed separately for the image corresponding to the leading nozzle and the image corresponding to the trailing nozzle as described above.
[0129] <8.4 Fourth Variation> In this modification, a head unit 25 (see Figs. 38 and 39) having the same configuration as in the third modification is employed. Also, in this modification, images (learning image 54, partial image 57) are cut out from the captured image so that the image obtained by cutting out (cut-out image) contains nine linear patterns of 3 rows x 3 columns (see the thick dotted line portion labeled with reference numeral 78 in Fig. 22).
[0130] Under the above premise, unsupervised learning using an autoencoder AE is performed separately for a cutout image in which an image corresponding to a first-injection nozzle is located at the center (hereinafter referred to as a "first type cutout image") and a cutout image in which an image corresponding to a second-injection nozzle is located at the center (hereinafter referred to as a "second type cutout image"). As a result, in step S20 of FIG. 16, a trained model 55 corresponding to the first type cutout image and a trained model 55 corresponding to the second type cutout image are generated. Then, in step S60 of FIG. 16, the trained model 55 to be used is selected depending on whether the partial image 57 as input data is a first type cutout image or a second type cutout image.
[0131] <9.Other> In the above embodiment (including the modified example), the inkjet printing device 10 performs color printing. However, the present invention is not limited to this, and an inkjet printing device that performs monochrome printing may also be used.
[0132] In addition, in the above embodiment (including the modified example), an inkjet printing apparatus 10 using aqueous ink is used. However, the present invention is not limited to this, and an inkjet printing apparatus using UV ink (ultraviolet light curable ink) such as an inkjet printing apparatus for label printing may be used. In this case, an ultraviolet light irradiation mechanism that cures the UV ink on the printing paper 5 by irradiating it with ultraviolet light is provided inside the printing mechanism 201 (see FIG. 5) instead of the drying mechanism 206. [Explanation of symbols]
[0133] 10...Inkjet printing device 13...Print control program 40…Inline scanner 55…Trained model 71...Inspection chart 72...Tint pattern 73...Test pattern 100...Print control device 156…Discharge defect detection unit 157...Print data correction unit 200…Printing machine body 201...Printing mechanism 205…Recording section 251...Ink ejection head 610...Learning image generation unit 620…Model generation unit 630…Image cutout section 640…Discharge defective judgment unit 641…Self-encoding unit 642...Error calculation section 643…Comparison / judgment section 650…Discharge defect information output section 651…Discharge failure nozzle identification section AE: Autoencoder
Claims
1. 1. A method for detecting nozzle ejection defects in a printing device having a head unit including a plurality of nozzles that eject ink onto a printing medium transported in a predetermined transport direction, comprising: a learning image preparation step of preparing a plurality of learning images, each of which is formed by ejecting ink from N nozzles, N being an integer equal to or greater than 1; a model generation step of generating a trained model configured by the autoencoder by providing the plurality of training images to the autoencoder and performing unsupervised learning as machine learning; a test pattern printing step of causing the printing device to print a test pattern to be formed by ejecting ink from the plurality of nozzles; an imaging step of imaging a print image obtained in the test pattern printing step; an image cutting step of cutting out a plurality of partial images each corresponding to N nozzles from the captured image obtained in the imaging step; a discharge defect determination step of providing each of the plurality of partial images as input data to the autoencoder constituting the trained model, and determining whether or not a nozzle in a discharge defect state is included among the N nozzles corresponding to the input data, based on a result of comparing an output data from the autoencoder and a value calculated based on the input data with a threshold value set as a parameter; Including, A method for detecting discharge defects, wherein the plurality of learning images does not include an image that represents a discharge defect of a nozzle.
2. In the model generation step, the trained model is generated for each printing condition by performing unsupervised learning for each printing condition, The ejection defect detection method according to claim 1 , characterized in that in the ejection defect judgment step, the learned model corresponding to the printing conditions when the test pattern was printed in the test pattern printing step is used.
3. In the model generation step, one or more printing conditions are defined as a printing condition group, and unsupervised learning is performed for each printing condition group to generate the trained model for each printing condition group. The ejection defect detection method according to claim 1 , characterized in that in the ejection defect judgment step, the learned model corresponding to a printing condition group including the printing conditions when the test pattern was printed in the test pattern printing step is used.
4. In the model generation step, unsupervised learning is performed for each type of ink to generate the trained model for each type of ink, 2. The ejection defect detection method according to claim 1, characterized in that in the ejection defect judgment step, the learned model corresponding to the type of ink used when the test pattern was printed in the test pattern printing step is used.
5. The ejection defect detection method described in claim 1, characterized in that in the image extraction step, the position where ink is expected to be ejected from each nozzle based on design information of the test pattern is defined as a provisional ejection position, and each of the multiple partial images is extracted from the captured image based on the provisional ejection position for a predetermined one of the corresponding N nozzles.
6. In the image extraction step, a nozzle pitch, which is the distance between two adjacent nozzles in a direction perpendicular to the transport direction, is calculated based on the positions of two position marks included in the captured image and the number of nozzles that should eject ink into an area between the two position marks; 6. The discharge defect detection method according to claim 5, wherein the provisional discharge position for each nozzle is determined using the nozzle pitch.
7. In the image extraction step, an actual ejection position where ink is actually ejected from each nozzle is obtained based on the captured image; 2. The ejection defect detection method according to claim 1, wherein each of the plurality of partial images is cut out from the captured image based on the actual ejection position for a predetermined one of the corresponding N nozzles.
8. The image extraction step includes: a captured image dividing step of dividing the captured image into K pieces in the transport direction, where K is an integer equal to or greater than 2, such that each divided image corresponds to one nozzle in the transport direction; an average value calculation step of calculating an average value of data of a plurality of pixels included in the transport direction for each of the K divided images obtained in the captured image division step; an actual ejection position specifying step of determining the actual ejection position for each nozzle based on the average value calculated in the average value calculating step; The discharge defect detection method according to claim 7 , further comprising:
9. The ejection defect detection method described in claim 1, characterized in that in the image extraction step, the ideal position at which ink is ejected from each nozzle is defined as an ideal ejection position, and each of the multiple partial images is extracted from the captured image based on the ideal ejection position for a specified one of the corresponding N nozzles.
10. The image cutting step is performed by determining a nozzle among the plurality of nozzles for which the ideal ejection position is to be obtained as a target nozzle. a provisional ejection position calculation step of determining, as a provisional ejection position, a position where ink is expected to be ejected from the nozzle of interest and a predetermined number of nozzles in the vicinity of the nozzle of interest based on design information of the test pattern; an actual ejection position calculation step of determining an actual ejection position where ink is actually ejected from the predetermined number of nozzles in the vicinity of the target nozzle based on the captured image; a difference calculation step of calculating a difference between the provisional ejection position and the actual ejection position for each of the predetermined number of nozzles in the vicinity of the target nozzle; a difference average calculation step of calculating an average value of the differences calculated in the difference calculation step; an ideal ejection position specifying step of determining the ideal ejection position for the nozzle of interest by adding the average value calculated in the difference average calculating step to the provisional ejection position for the nozzle of interest; The discharge defect detection method according to claim 9 , further comprising:
11. The learning image preparation step includes: a pre-learning printing step of causing the printing device to print the test pattern and a tint pattern having a constant density as a whole to be formed by ejecting ink from the plurality of nozzles; a pre-learning imaging step of imaging the print image obtained in the pre-learning printing step so as to obtain a first partial image corresponding to the tint pattern and a second partial image corresponding to the test pattern; a learning image extraction step of extracting the plurality of learning images from a portion of the second partial captured image corresponding to the tint normal portion by defining a portion of the first partial captured image excluding the abnormal portion obtained in the pre-learning imaging step as a tint normal portion; The discharge defect detection method according to claim 1 , further comprising:
12. the input data and the output data are composed of data of a plurality of pixels; The discharge defect determination step includes: an auto-encoding step of providing each of the plurality of partial images as the input data to the auto-encoder constituting the trained model to obtain the output data; an error calculation step of calculating a mean square error between the input data and the output data; a comparison and determination step of determining whether or not a nozzle in a discharge failure state is included among the N nozzles corresponding to the input data, based on a result of comparing the mean square error with the threshold value; Including, 2. The method for detecting ejection defects according to claim 1, wherein in the comparison and judgment step, if the mean square error is greater than the threshold value, it is judged that a nozzle in an ejection defect state is included among the N nozzles corresponding to the input data.
13. In the learning image preparation step, a plurality of learning images each formed by ejecting ink from one nozzle are prepared, 2. The ejection defect detection method according to claim 1, wherein in the image cutting out step, the plurality of partial images, each of which corresponds to one nozzle, are cut out from the captured image.
14. A method for detecting ejection defects as described in any one of claims 1 to 13, further comprising a print data correction step of correcting print data for controlling the ejection of ink from the plurality of nozzles based on the results obtained in the ejection defect judgment step so as to compensate for nozzle ejection defects.
15. A printing device including a head unit including a plurality of nozzles that eject ink onto a print medium transported in a predetermined transport direction, an imaging device that captures a print image, and a control unit that controls the ejection of ink from the plurality of nozzles and the imaging of the print image by the imaging device, The control unit is a model generation unit that generates a trained model configured by the autoencoder by providing the autoencoder with a plurality of training images, each formed by ejecting ink from N nozzles, where N is an integer equal to or greater than 1, and performing unsupervised learning as machine learning; an image cutout unit that cuts out a plurality of partial images, each of which corresponds to N nozzles, from a captured image obtained by the imaging device capturing a print image of a test pattern to be formed by ejecting ink from the plurality of nozzles; a discharge defect determination unit that provides each of the plurality of partial images as input data to the autoencoder that constitutes the trained model, and determines whether or not a nozzle in a discharge defect state is included among the N nozzles that correspond to the input data, based on a result of comparing a value calculated based on the output data from the autoencoder and the input data with a threshold value that is set as a parameter; Including, A printing device, characterized in that the plurality of learning images do not include an image that represents a nozzle ejection defect.
16. the head unit includes an upstream ink ejection head disposed on the upstream side in the transport direction and a downstream ink ejection head disposed on the downstream side in the transport direction, the model generation unit generates a trained model corresponding to the upstream ink ejection head and a trained model corresponding to the downstream ink ejection head by performing unsupervised learning separately on an image corresponding to the nozzles included in the upstream ink ejection head and an image corresponding to the nozzles included in the downstream ink ejection head; each of the plurality of partial images cut out by the image cutout unit corresponds to one nozzle; The discharge defect determination unit is If the upstream ink ejection head includes a nozzle corresponding to the input data, the input data is provided to the autoencoder that configures the trained model corresponding to the upstream ink ejection head; The printing device according to claim 15, characterized in that if a nozzle corresponding to the input data is included in the downstream ink ejection head, the input data is provided to the autoencoder that constitutes the trained model corresponding to the downstream ink ejection head.
17. The control unit further includes a learning image generation unit that generates the plurality of learning images, the imaging device captures a print image of the test pattern and a print image of a tint pattern having a constant overall density to be formed by ejecting ink from the plurality of nozzles, thereby obtaining a first partial captured image which is an image corresponding to the tint pattern and a second partial captured image which is an image corresponding to the test pattern; The printing device described in claim 15, characterized in that the learning image generation unit extracts the multiple learning images from a portion of the second partial captured image corresponding to the tint normal portion, while treating the portion of the first partial captured image excluding the abnormal portion as a tint normal portion.
18. the input data and the output data are composed of data of a plurality of pixels; The discharge defect determination unit is an autoencoder configured to receive each of the plurality of partial images as the input data and output the output data; an error calculation unit that calculates a mean square error between the input data and the output data; a comparison and determination unit that determines whether or not a nozzle in a discharge failure state is included among the N nozzles corresponding to the input data, based on a result of comparing the mean square error with the threshold value; Including, 16. The printing device according to claim 15, wherein the comparison and determination unit determines that a nozzle in a discharge failure state is included among the N nozzles corresponding to the input data if the mean square error is greater than the threshold value.
19. 19. A printing device as claimed in any one of claims 15 to 18, characterized in that the control unit further includes a print data correction unit that corrects print data for controlling the ejection of ink from the multiple nozzles so as to compensate for nozzle ejection defects based on the results of the judgment made by the ejection defect judgment unit.
20. 1. A nozzle ejection defect detection program for detecting nozzle ejection defects in a printing device having a head unit including a plurality of nozzles that eject ink onto a printing medium transported in a predetermined transport direction and an imaging device that captures a print image, comprising: A computer included in the printing device, a model generation step of generating a trained model configured by the autoencoder by providing the autoencoder with a plurality of training images, each formed by ejecting ink from N nozzles, where N is an integer equal to or greater than 1, and performing unsupervised learning as machine learning; a test pattern printing step of causing the printing device to print a test pattern to be formed by ejecting ink from the plurality of nozzles; an imaging step of imaging a print image obtained in the test pattern printing step by the imaging device; an image cutting step of cutting out a plurality of partial images each corresponding to N nozzles from the captured image obtained in the imaging step; a discharge defect determination step of providing each of the plurality of partial images as input data to the autoencoder constituting the trained model, and determining whether or not a nozzle in a discharge defect state is included among the N nozzles corresponding to the input data, based on a result of comparing an output data from the autoencoder and a value calculated based on the input data with a threshold value set as a parameter; Run the command, A discharge defect detection program, wherein the plurality of learning images does not include an image that represents a discharge defect of a nozzle.
Citation Information
Patent Citations
Defective recording element detecting apparatus and method, image forming apparatus and method, and program
JP2012206322A
Method and processing unit for predicting and compensating for nozzle failure
JP2021062616A
Information processing system, information processing method and learning device
JP2022049896A
Ink jet printer system
JP2022135477A
Printing result inspection device and method
WO2017154677A1
