Printer, ejection failure detection method, and ejection failure detection program
Patent Information
- Application Number
- PCT/JP2024/001984
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-25
- Filing Date
- 2024-01-24
- Publication Date
- 2024-10-03
Smart Images

Figure JP2024001984_03102024_PF_FP_ABST
Abstract
Description
Printing device, ejection defect detection method, and ejection defect detection program
[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 particularly to a technique for detecting nozzles in such a printing device that are in a defective ejection state (hereinafter referred to as "defective ejection nozzles").
[0002] Inkjet printing devices are widely known, performing printing by ejecting ink onto a printing medium such as printing paper. In inkjet printing devices, when the ejection interval becomes long, problems such as drying of the ink due to evaporation of solvent near the nozzles, the infiltration of air bubbles into the nozzles, and the adhesion of dust to the nozzles can occur during printing. This can lead to nozzle ejection failures. When ejection failures occur, dots corresponding to the defective nozzles are missing from the printed image, i.e., missing dots occur. In such cases, operations are performed to restore the functionality of the defective nozzles (cleaning or flushing), or alternatively, ink droplets that should have been ejected by the defective nozzles are ejected by other nozzles.
[0003] Nozzle ejection defects can be roughly classified into three types, which will be explained with reference to FIGS. 41 to 43. Note that FIGS. 41 to 43 show portions of a printed image obtained by printing a regular, stepped pattern (test pattern), with the black shaded areas indicating ink coverage. In the dotted line area labeled 91 in FIG. 41, no ink is applied to the area where ink should be applied. Hereinafter, this type of ejection defect will be referred to as "non-ejection." In the dotted line area labeled 92 in FIG. 42, the shape of the ink-applied area differs from the original shape. Hereinafter, this type of ejection defect will be referred to as "shape defect." Shape defects also include ejection defects that result in faint ink due to insufficient density and ejection defects in which the ink-applied area spreads in the main scanning direction (the direction perpendicular to the transport direction of the print paper). In the dotted line area labeled 93 in FIG. 43, ink is applied to an area that is shifted in the main scanning direction from the area where ink should be applied. Hereinafter, this type of ejection defect will be referred to as "horizontal skip."
[0004] The horizontal skip will be further explained. If we focus on the dotted line portion marked with reference numeral 94 in FIG. 44, we can see that the length W2 is longer than the length W1. In other words, the intervals between the ink-discharged portions are not constant in the main scanning direction. This type of horizontal skip is called a "dimensional horizontal skip." Furthermore, if we focus 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 horizontal skip is called a "horizontal skip 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 image data obtained by capturing an image of a predetermined test pattern printed thereon 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 image data, and determining whether or not a nozzle being evaluated is an ejection-defective nozzle based on the distance from the landing position to a reference position.
[0006] In recent years, technologies using machine learning have also been proposed for detecting nozzle discharge defects. For example, Japanese Patent Application Laid-Open Publication No. 2019-137048 discloses a technology for classifying nozzles into good and defective nozzles using a support vector machine that has undergone supervised learning based on phase (deviation from the target position) and amplitude (printing consistency) information obtained by evaluating image data of an image in which a test pattern has been printed, and labels indicating good or bad nozzles. Furthermore, Japanese Patent Application Laid-Open Publication No. 2021-094853 discloses a technology for classifying nozzles by type of discharge defect by inputting image data of an image in which a test chart has been printed into a deep neural network (DNN), such as a convolutional neural network, that has undergone supervised learning based on defect information.
[0007] Japanese Patent Publication No. 2011-194734 Japanese Patent Publication No. 2019-137048 Japanese Patent Publication No. 2021-094853
[0008] However, conventional methods using numerical analysis require the setting of 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, and other parameters taking printing conditions into consideration. Because the state of ink landing and penetration into the printing medium changes depending on the printing conditions, it is difficult and requires a great deal of effort to appropriately set various parameters taking printing conditions into consideration. Furthermore, methods using supervised learning require the preparation of a large amount of image data of images in which ejection defects occur (hereinafter referred to as "defective data"). However, because ejection defects occur rarely, it is extremely difficult to collect a sufficient amount of defective data as learning data.
[0009] SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an inkjet printing device that can accurately detect nozzle ejection defects without requiring a great deal of effort for generating and collecting learning data or setting parameters.
[0010] a model generation step of generating a trained model configured by the autoencoder by providing the trained images to an 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 ink being discharged from the plurality of nozzles; an imaging step of capturing a printed image obtained in the test pattern printing step; an image extraction step of extracting a plurality of partial images, each corresponding to N nozzles, from the captured image obtained in the imaging step; and 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 a value calculated based on output data from the autoencoder and the input data with a threshold value set as a parameter. The plurality of learning images does not include an image that represents a nozzle ejection failure.
[0011] A second aspect of the present invention is the first aspect of the present invention, wherein in the model generation step, the trained model is generated for each printing condition by performing unsupervised learning for each printing condition, and in the ejection defect determination step, the trained model corresponding to the printing conditions when the test pattern was printed in the test pattern printing step is used.
[0012] A third aspect of the present invention is the first aspect of the present invention, wherein 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, and in the ejection defect determination step, the trained model corresponding to the printing condition group including the printing conditions when the test pattern was printed in the test pattern printing step is used.
[0013] A fourth aspect of the present invention is the first aspect of the present invention, wherein in the model generation step, the trained model is generated for each type of ink by performing unsupervised learning for each type of ink, and in the ejection defect determination step, the trained model corresponding to the type of ink used when the test pattern was printed in the test pattern printing step is used.
[0014] A fifth aspect of the present invention is characterized in that, in the first aspect of the present invention, in the image cutting-out step, a position where ink is expected to be ejected from each nozzle based on design information of the test pattern is set as a provisional ejection position, and each of the plurality of 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] A sixth aspect of the present invention is based on the fifth aspect of the present invention, wherein in the image cutting out step, a nozzle pitch, which is the distance between two adjacent nozzles in a direction perpendicular to the transport direction, is determined 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 corresponding to the area between the two position marks, and the provisional ejection position for each nozzle is determined using the nozzle pitch.
[0016] In a seventh aspect of the present invention, in the first aspect of the present invention, in the image cutting-out step, an actual ejection position where ink is actually ejected from each nozzle is determined based on the captured image, and 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.
[0017] An eighth aspect of the present invention is related to the seventh aspect of the present invention, wherein the image cutting out step includes: an image dividing step of dividing the image in the transport direction into K pieces, where K is an integer of 2 or greater, so 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 image dividing step; and an actual ejection position identification step of determining the actual ejection position for each nozzle based on the average value calculated in the average value calculation step.
[0018] In a ninth aspect of the present invention, based on the first aspect of the present invention, in the image cutting-out step, an ideal position at which ink is ejected from each nozzle is defined as an ideal ejection position, and each of the plurality of 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] In a tenth aspect of the present invention, in the ninth aspect of the present invention, a nozzle among the plurality of nozzles for which the ideal ejection position is to be determined is designated as a target nozzle, and the image cutting out step includes: a tentative ejection position calculation step of determining, as a tentative ejection position, a position at which ink is expected to be ejected from the target nozzle and a predetermined number of nozzles near the target nozzle based on design information of the test pattern; an actual ejection position calculation step of determining, based on the captured image, actual ejection positions at which ink is actually ejected from the predetermined number of nozzles near the target nozzle; a difference calculation step of calculating a difference between the tentative ejection position and the actual ejection position for each of the predetermined number of nozzles near the target nozzle; a difference average calculation step of calculating an average value of the differences calculated in the difference calculation step; and an ideal ejection position identification step of determining the ideal ejection position for the target nozzle by adding the average value calculated in the difference average calculation step to the tentative ejection position for the target nozzle.
[0020] An eleventh aspect of the present invention is related to the first aspect of the present invention, wherein 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 of constant overall density to be formed by ejecting ink from the plurality of nozzles; a pre-learning imaging step of imaging the printed image obtained in the pre-learning printing step so as to obtain a first partial captured image that is an image corresponding to the tint pattern and a second partial captured image that is an image corresponding to the test pattern; and a learning image extraction step of extracting the plurality of learning images from a portion of the second partial captured image that corresponds to the normal tint portion, with a portion of the first partial captured image obtained in the pre-learning imaging step excluding an abnormal portion being set as a normal tint portion.
[0021] A twelfth aspect of the present invention is related to the first aspect of the present invention, wherein the input data and the output data are composed of data for a plurality of pixels, and the discharge defect determination step includes: a self-encoding step of providing each of the plurality of partial images as the input data to the autoencoder 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; and a comparison and determination step of 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 the mean square error with the threshold value, wherein 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 defect state is included among the N nozzles corresponding to the input data.
[0022] A thirteenth aspect of the present invention is related to the first aspect of the present invention, wherein in the learning image preparation step, the plurality of learning images, each formed by ejecting ink from one nozzle, are prepared, and in the image cutting step, the plurality of partial images, each corresponding to one nozzle, are cut out from the captured image.
[0023] A fourteenth aspect of the present invention is that, in any one of the first to thirteenth aspects of the present invention, the ejection defect detection method further includes 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 determination step so as to compensate for nozzle ejection defects.
[0024] A fifteenth aspect of the present invention is a printing device comprising: 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 capturing of the print image by the imaging device, wherein the control unit includes: a model generation unit that generates a trained model configured by the autoencoder by performing unsupervised learning as machine learning by providing an autoencoder with a plurality of training images, each formed by ink being ejected from N nozzles, where N is an integer greater than or equal to 1; an image cutout unit that cuts out a plurality of partial images, each corresponding to N nozzles, from a captured image obtained by the imaging device capturing a print image of a test pattern to be formed by ink being ejected from the plurality of nozzles; and 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 obtained based on output data from the autoencoder and the input data with a threshold value that is set as a parameter, wherein the plurality of training images do not include an image that represents a nozzle discharge defect.
[0025] A sixteenth aspect of the present invention is related to the fifteenth aspect of the present invention, wherein the head unit includes an upstream ink-ejection head arranged upstream in the transport direction and a downstream ink-ejection head arranged downstream 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 a nozzle included in the upstream ink-ejection head and an image corresponding to a nozzle 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; and the discharge defect determination unit, if a nozzle corresponding to the input data is included in the upstream ink-ejection head, provides the input data to the auto-encoder constituting the trained model corresponding to the upstream ink-ejection head; and if a nozzle corresponding to the input data is included in the downstream ink-ejection head, provides the input data to the auto-encoder constituting the trained model corresponding to the downstream ink-ejection head.
[0026] A seventeenth aspect of the present invention is the fifteenth aspect of the present invention, wherein the control unit further includes a learning image generation unit that generates the plurality of learning images, and the imaging device captures a printed image of the test pattern and a printed image of a tint pattern of constant overall density to be formed by ejecting ink from the plurality of nozzles, thereby obtaining a first partial captured image that is an image corresponding to the tint pattern and a second partial captured image that is an image corresponding to the test pattern, and the learning image generation unit extracts the plurality of learning images from a portion of the second partial captured image that corresponds to the normal tint portion, with a portion of the first partial captured image excluding an abnormal portion being a normal tint portion.
[0027] An eighteenth aspect of the present invention is the method according to the fifteenth aspect of the present invention, wherein the input data and the output data are made up of data for a plurality of pixels, and the discharge defect determination unit includes: a self-encoding unit consisting of the autoencoder that receives each of the plurality of partial images as the input data and outputs the output data; an error calculation unit that calculates a mean square error between the input data and the output data; and a comparison determination unit that determines 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 the mean square error with the threshold value, and if the mean square error is greater than the threshold value, the comparison determination unit determines that a nozzle in a discharge defect state is included among the N nozzles corresponding to the input data.
[0028] In a nineteenth aspect of the present invention, in any of the fifteenth to eighteenth aspects of the present invention, the control unit further includes a print data correction unit that corrects print data for controlling the ejection of ink from the plurality of nozzles based on the result of the determination made by the ejection defect determination unit so as to compensate for nozzle ejection defects.
[0029] A twentieth aspect of the present invention is a defective ejection detection program for detecting defective nozzle ejection in a printing device equipped with 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 printed images, the program causing a computer included in the printing device to execute: a model generation step of generating a trained model configured by the autoencoder by providing an autoencoder with a plurality of learning images, each formed by ink being ejected from N nozzles, where N is an integer of 1 or greater, 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 ink being ejected from the plurality of nozzles; an imaging step of causing the imaging device to capture the printed image obtained in the test pattern printing step; an image clipping step of clipping a plurality of partial images, each corresponding to N nozzles, from the captured image obtained in the imaging step; and a defective ejection determination step of providing each of the plurality of partial images as input data to the autoencoder that constitutes the trained model, and determining whether or not a nozzle in a defective ejection state is included among the N nozzles corresponding to the input data, based on a result of comparing a value obtained based on output data from the autoencoder and the input data with a threshold value that is set as a parameter. The plurality of learning images does not include an image that represents a nozzle ejection failure.
[0030] According to a first aspect of the present invention, a trained model for detecting nozzle discharge defects is generated by performing unsupervised learning using an autoencoder using only images that represent good discharge conditions. As a result, if the input data provided to the autoencoder constituting the trained model are images without discharge defects, the error between the input data and output data (a value calculated based on the input data and output data) will be small. However, if the input data provided to the autoencoder constituting the trained model are images with discharge defects, the error between the input data and 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 provided to the autoencoder as input data, without the need to set other parameters. Furthermore, although discharge defects occur rarely, only images representing good discharge conditions are required as training data (training images) (the multiple training images do not include images representing nozzle discharge defects), so a sufficient amount of training data can be easily collected. As described above, a printing device equipped with a head unit including multiple ink-ejecting nozzles can accurately detect nozzle discharge defects without requiring significant effort for generating and collecting training data or setting parameters. Furthermore, since the occurrence of missed detection of ejection defects due to insufficient parameter settings is suppressed, the wasteful consumption of printing media and ink due to reprinting is suppressed, thereby contributing to the achievement of the SDGs (Sustainable Development Goals).
[0031] According to the second aspect of the present invention, printing conditions are taken into consideration when determining whether or not there is a nozzle ejection defect, so that nozzle ejection defects can be detected with greater accuracy.
[0032] According to the third aspect of the present invention, the same effects as those of the second aspect of the present 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 present invention, the same effects as those of the fifth aspect of the present 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 using a relatively small number of learning data.
[0037] According to the eighth aspect of the present invention, the same effects as those of the seventh aspect of the present invention can be obtained.
[0038] According to the ninth aspect of the present invention, it is possible to detect non-ejection, shape defects, 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 becomes possible to efficiently collect learning data.
[0041] According to the twelfth aspect of the present invention, if the 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, thereby reducing the processing load. Furthermore, 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 state of ejection failure, the print data is corrected so as to compensate for the ejection failure, 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 sixteenth aspect of the present invention, 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 becomes possible to efficiently collect learning data.
[0047] According to the eighteenth aspect of the present invention, if the 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.
[0048] According to the nineteenth aspect of the present invention, even if there are nozzles in a state of ejection failure, the print data is corrected so as to compensate for the ejection failure, thereby obtaining 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.
[0050] 1 is a diagram for explaining the concept of the present invention. FIG. 1 is a diagram for explaining the concept of the present invention. FIG. 1 is a diagram for explaining the concept of the present invention. FIG. 1 is a diagram showing the overall configuration of a printing system according to an embodiment of the present invention. FIG. 2 is a schematic diagram showing an example of the configuration of an inkjet printing device in the embodiment. FIG. 3 is a plan view showing an example of the configuration of a recording unit in the embodiment. FIG. 4 is a diagram for explaining the arrangement of nozzles in an ink ejection head in the embodiment. FIG. 5 is a block diagram showing the hardware configuration of a print control device in the embodiment. FIG. 6 is a block diagram showing the functional configuration of a control unit implemented by executing a print control program on the print control device in the embodiment. FIG. 7 is a diagram showing an example of an inspection chart printed during learning processing in the embodiment. FIG. 8 is a diagram showing an example of an inspection chart printed during inference processing in the embodiment. FIG. 9 is a block diagram showing a detailed configuration of a discharge failure detection unit in the embodiment (case where each partial image corresponds to one nozzle). FIG. 10 is a diagram showing an example of a printed image of an inspection chart when a discharge-failure nozzle is present in the embodiment. FIG. 11 is a block diagram showing a detailed configuration of a discharge failure detection unit in the embodiment (case where each partial image corresponds to two or more nozzles). FIG. 12 is a diagram showing an example of the structure of an autoencoder in the embodiment. FIG. 13 is a flowchart showing a series of processing steps for detecting a discharge-failure nozzle in the embodiment. FIG. 14 is a flowchart showing a detailed procedure for preparing learning data (learning images) in the embodiment. FIG. 15 is a diagram for explaining setting of a threshold value as a parameter in the embodiment. FIG. 16 is a diagram for explaining setting of a threshold value as a parameter in the embodiment. FIG. 10 is a diagram for explaining an example of cutting out an image in a range corresponding to a plurality of nozzles that are continuous in the main scanning direction in the embodiment. FIG. 11 is a diagram for explaining an example of cutting out an image in a range corresponding to a plurality of nozzles that are continuous in the sub-scanning direction in the embodiment. FIG. 12 is a diagram 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. FIG. 13 is a diagram for explaining a method of determining a provisional ejection position in the embodiment.1 is a flowchart showing a procedure for determining an actual ejection position in the embodiment. FIG. 2 is a diagram for explaining division of a captured image in the embodiment. FIG. 3 is a diagram for explaining trimming when dividing a captured image in the embodiment. FIG. 4 is a diagram for explaining calculation of an average value of data of a plurality of pixels for each of divided images in the embodiment. FIG. 5 is a diagram for explaining a method for determining an actual ejection position when a non-ejecting nozzle is present in the embodiment. FIG. 6 is a diagram for explaining a method for determining an actual ejection position when a non-ejecting nozzle is present in the embodiment. FIG. 7 is a flowchart showing a procedure for determining an ideal ejection position in the embodiment. FIG. 8 is a diagram for explaining copying of an uppermost and a lowermost image of a captured image of a test chart in the embodiment. FIG. 9 is a diagram for explaining a processing time priority cut-out method in the embodiment. FIG. 10 is a diagram for explaining division of a partial image into a plurality of nozzle-unit images in the embodiment. FIG. 11 is a diagram for explaining an accuracy priority cut-out method in the embodiment. FIG. 12 is a diagram for explaining identification of a discharge-failure nozzle when the accuracy priority cut-out method is adopted in the embodiment. FIG. 13 is a diagram for explaining identification of a discharge-failure nozzle when the accuracy priority cut-out method is adopted in the embodiment. FIG. 14 is a diagram for explaining a relationship between a combination of an image cut-out range and a cut-out reference position and a type of detectable discharge failure. Fig. 10 is a plan view showing an example of the configuration of a recording unit in a third modified example of the embodiment. Fig. 11 is a diagram showing a detailed configuration of a head unit in the third modified example. Fig. 12 is a diagram for explaining execution of unsupervised learning in the third modified example. Fig. 13 is a diagram for explaining non-ejection. Fig. 14 is a diagram for explaining shape defects. Fig. 15 is a diagram for explaining lateral jumps. Fig. 16 is a diagram for explaining dimensional lateral jumps. Fig. 17 is a diagram for explaining lateral jumps that affect quality.
[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 type of neural network 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, the trained autoencoder outputs output data as follows: When normal data is provided to the autoencoder as input data, the autoencoder outputs normal data as output data. At this time, the error between the input data and the output data is extremely small. In contrast, when abnormal data is provided to the autoencoder as input data, the autoencoder outputs data that has been made to approximate the abnormal data to the normal data as output data. At this time, the error between the input data and the output data is large. Taking into account such differences in error, an autoencoder can be used to detect abnormal data.
[0052] For example, assume that a normal printed image of a test pattern for one nozzle is an image as shown in the rectangular area labeled 170 in FIG. 1 . Note that the black shaded area in FIG. 1 is the area painted with ink. When an image as shown in the rectangular area labeled 181 in FIG. 2 (an image without a discharge defect) is provided as input data to a trained autoencoder, the trained autoencoder outputs output data corresponding to an image as shown in the rectangular area labeled 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 area labeled 191 in FIG. 3 (an image with a discharge defect) is provided as input data to the trained autoencoder, the trained autoencoder outputs output data corresponding to an image as shown in the rectangular area labeled 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. This can be used to detect nozzles with discharge defects.
[0053] Therefore, in the following embodiment, an autoencoder is trained using only normal images (images without ejection defects) from among the captured images obtained by using an imaging device to capture printed images of a test pattern for inspecting the ink ejection status from each nozzle, and the image to be inspected is then 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 one or more nozzles corresponding to the image to be inspected include a nozzle with ejection 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 a diagram illustrating the overall configuration of a printing system according to an embodiment of the present invention. This printing system comprises 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 via a LAN 4. The print data generating device 30 generates print data by performing RIP processing and 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 comprises 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 print medium based on the print data transmitted from the print data generating device 30 without using printing plates. Note that the present invention can also be applied when a print medium other than printing paper (e.g., film) is used.
[0056] 5 is a schematic diagram showing an example of the configuration of the inkjet printing device 10. As described above, the inkjet printing device 10 is made up of the print control device 100 and the printing device 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 drive roller 203 for transporting the printing paper 5 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 drive 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 that ejects K (black) ink, a C head unit 25C that ejects C (cyan) ink, an M head unit 25M that ejects M (magenta) ink, and a Y head unit 25Y that ejects Y (yellow) ink. The printing mechanism 201 also includes an inline scanner 40 as an imaging device that captures the print image recorded on the printing paper 5 by the recording unit 205. The image data obtained by the inline scanner 40 is sent to the print control device 100. In the following description, when the color of ink ejected from the head unit is not to be distinguished, the head unit will be denoted by the reference numeral 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 head unit 25K, a C head unit 25C, an M head unit 25M, and a Y head unit 25Y, which are arranged in a row in the transport direction (sub-scanning direction) of the printing 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 number of nozzles (not shown in FIG. 6) that eject ink. Each nozzle of the ink ejection head 251 included in the K head unit 25K ejects K ink, each nozzle of the ink ejection head 251 included in the C head unit 25C ejects C ink, each nozzle of the ink ejection head 251 included in the M head unit 25M ejects M ink, and each nozzle of the ink ejection head 251 included in the Y head unit 25Y ejects Y ink.
[0060] FIG. 7 is a diagram illustrating 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 the main scanning direction (a direction perpendicular to the transport direction of the printing paper 5). In the example shown in FIG. 7, the ink ejection head 251 includes four rows of nozzle groups. The area marked with reference numeral 41 in FIG. 7 schematically shows the landing positions on the printing paper 5 of ink ejected from each nozzle. The multiple nozzles in the ink ejection head 251 are arranged so that the landing positions of ink ejected from the nozzles in the first row of nozzle group, the landing positions of ink ejected from the nozzles in the second row of nozzle group, the landing positions of ink ejected from the nozzles in the third row of nozzle group, and the landing positions of ink ejected from the nozzles in the fourth row of nozzle group are all different from one another. For example, the landing position of ink ejected from each nozzle included in the first nozzle group is a position between the landing position of ink ejected from the nozzles included in the third nozzle group and the landing position of ink ejected from the nozzles included in the fourth nozzle group. In the example shown in Figure 7, the landing position 42 of ink ejected from the nozzles labeled 252(p) is a position between the landing position 43 of ink ejected from the nozzles labeled 252(q) and the landing position 44 of ink ejected from the nozzles labeled 252(r).
[0061] <4. Configuration of the Print Control Device> <4.1 Hardware Configuration> Figure 8 is a block diagram showing the hardware configuration of the print control device 100. As shown in Figure 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 one another 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, which is 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 mouse 125 are used by the operator to input instructions to this printing control device 100.
[0062] The auxiliary storage device 121 stores a print control program 13 (a program for controlling the execution of printing processing by the printer main body 200). In this embodiment, the print control program 13 includes a subprogram, a defective ejection detection program for detecting defective nozzle ejection. The CPU 111 reads the print control program 13 stored in the auxiliary storage device 121 into the memory 112 and executes it to realize various functions of the print control device 100. The memory 112 includes RAM (random access memory) and 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 on the computer-readable recording medium (non-transitory recording medium). That is, a 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] 9 is a block diagram showing the functional configuration of the 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, a ejection defect 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 printing 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 printing paper 5 after printing. The imaging control unit 154 controls the timing at which the inline scanner 40 captures the image of the printed image.
[0065] The data holding unit 155 temporarily holds post-RIP print data (print data based on a print job) 50 transmitted from the print data generating device 30. The print data 50 is data for controlling the ejection of ink from the multiple nozzles included in each head unit 25. The data holding unit 155 also holds inspection chart data representing an inspection chart for detecting defective ejection nozzles. 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 the nozzles in one head unit 25, and tint pattern data 51b representing a tint pattern of a constant overall density to be formed by ejecting ink from all the nozzles in one head unit 25.
[0066] The discharge failure detection unit 156 detects discharge-failure nozzles based on image data (captured image) obtained by capturing an image of the printed image of the inspection chart with the inline scanner 40. Discharge failure information 52 identifying the discharge-failure nozzles is then output from the discharge failure detection unit 156. An autoencoder is used to detect discharge-failure nozzles by the discharge failure detection unit 156. The processing of the discharge failure detection unit 156 can be broadly divided into a process of preparing learning data and learning the autoencoder using the learning data (hereinafter simply referred to as the "learning process"), and a process of inferring the presence or absence of discharge-failure nozzles and the positions of the discharge-failure nozzles using the learned autoencoder (hereinafter simply referred to as the "inference process"). The discharge failure detection unit 156 will be described in detail later.
[0067] Based on the defective discharge information 52, the print data correction unit 157 corrects the post-RIP print data 50 stored in the data storage unit 155 so as to compensate for the defective discharge of the nozzles. More specifically, based on the defective discharge information 52, 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 so as to compensate for the defective discharge of the nozzles determined to be in a defective discharge state by the defective discharge detection unit 156. More specifically, for example, the print data 50 is corrected so as to increase the amount of ink discharged from nozzles surrounding the nozzles determined to be in a defective discharge state. The corrected print data 53 is then 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 that make up 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 control unit 152 controls the timing and amount of ink ejection. 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 the 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 this embodiment, inspection charts are printed during the learning process and the inference process, but different inspection charts are printed during the learning process and the inference process. Specifically, during the learning process, an inspection chart 71, as shown in FIG. 10 , including a tint pattern 72 and a test pattern (step-like pattern) 73, is printed. During the inference process, an inspection chart 71, as shown in FIG. 11 , including only the test pattern (step-like pattern) 73, is printed. That is, during the learning process, the ink ejection control unit 152 controls the ink ejection from each nozzle based on the tint pattern data 51 b and the test pattern data 51 a. During the inference process, the ink ejection control unit 152 controls the ink ejection from each nozzle based on the test pattern data 51 a. Note that any pattern other than a step-like pattern can be used as the test pattern as long as it has a regular pattern.
[0070] With respect to the inspection chart 71, the tint pattern 72 is a pattern of constant density as a whole as described above, 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 FIGS. 10 and 11. For example, if one head unit 25 includes 24,000 nozzles, the test pattern 73 for one color will be composed of 24,000 linear patterns 731.
[0071] In the test pattern 73, a group of linear patterns 731 aligned in the main scanning direction will be referred to as a "row." In the example shown in Fig. 10, the test pattern 73 is made up of five rows.
[0072] 12 is a block diagram showing a detailed configuration of the discharge defect detection unit 156. The discharge defect detection unit 156 includes a learning image generation unit 610, a model generation unit 620, an image clipping unit 630, a discharge defect determination unit 640, and a discharge defect information output unit 650. The discharge defect determination unit 640 includes a self-encoding unit 641, an error calculation unit 642, and a comparison determination unit 643.
[0073] The learning image generation unit 610 generates a plurality of learning images 54 as learning data used for learning the autoencoder. Incidentally, if there are no ejection-failure nozzles, the printed image of the inspection chart 71 will be as shown in FIG. 10 . In contrast, if there are ejection-failure nozzles, 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 patterns are not printed correctly in the portions marked with reference numerals 741 and 751. Furthermore, the tint pattern 72 is not printed correctly in the portion marked with reference numeral 742 corresponding to the ejection failure in the portion marked with reference numeral 741, and the tint pattern 72 is not printed correctly in the portion marked with reference numeral 752 corresponding to the ejection failure in the portion marked with reference numeral 751. Thus, if there are ejection-failure nozzles, the tint pattern 72 is not printed correctly in the portions corresponding to the ejection-failure nozzles. Therefore, in this embodiment, the learning image generation unit 610 defines the portion of the captured image obtained by capturing the printed image of the tint pattern 72 with the inline scanner 40, excluding the abnormal portion (portion where ejection failure occurs), as the normal tint portion, and extracts and uses multiple learning images from the portion of the captured image obtained by capturing the printed image of the test pattern 73 with the inline scanner 40 corresponding to the normal tint portion. This generates multiple 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 the learning image generation unit 610 generates multiple learning images 54, each formed by ejecting ink from N nozzles, where N is an integer greater than or equal to 1. The captured image obtained by capturing the printed image of the tint pattern 72 with the inline scanner 40 corresponds to a first partial captured image, and the captured image obtained by capturing the printed image of the test pattern 73 with the inline scanner 40 corresponds to a 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 a self-encoding unit 641 included in the discharge defect determination unit 640.
[0075] During the inference process, the image cutting unit 630 cuts out a plurality of partial images 57, each corresponding 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 that constitutes 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 determined based on the output data and input data from the autoencoder with a threshold value set as a parameter. A determination result 60 is then output from the discharge defect determination unit 640.
[0077] The auto-encoding unit 641 is a trained model 55 generated by the model generation unit 620, and receives as input data each of the multiple partial images 57 cut out by the image cutout unit 630. The auto-encoder unit 641 outputs output data 58 obtained by forward propagation processing within the auto-encoder. The error calculation unit 642 calculates a mean square error 59 between the input data to the auto-encoding unit 641 (the partial images 57 cut out by the image cutout unit 630) and the output data 58 from the auto-encoding unit 641. The comparison / determination unit 643 determines whether or not a discharge-failed nozzle is included among the N nozzles corresponding to the input data to the auto-encoding 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 / determination unit 643 determines that a discharge-failed nozzle is included among the N nozzles corresponding to the input data. In this embodiment, the self-encoding step is realized by the processing of the self-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 that identifies the discharge-failed 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 the nozzle corresponding to each partial image 57 is in a discharge failure state. Therefore, the discharge-failed 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 the corresponding two or more nozzles include a discharge-failed nozzle. Therefore, when each partial image 57 corresponds to two or more nozzles, as shown in FIG. 14 , a discharge-failed nozzle identification unit 651 is provided within the discharge failure information output unit 650 to identify the discharge-failed nozzle by taking into account the judgment result 60 for each of the multiple partial images 57 (the judgment result 60 output from the discharge failure judgment unit 640). How the ejection-failure nozzle identifying unit 651 identifies the ejection-failure nozzle will be described later.
[0079] 4.3 Autoencoder Figure 15 shows 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 used as input data. The hidden layer is composed of a number of units fewer than the number of units constituting the input layer. The output layer is composed of a number of units equal 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 fully connected. For example, a sigmoid function is used as the activation function for the hidden layer and the output layer. With this structure, the part denoted by reference numeral 7 in Figure 15 (the part consisting of the input layer and hidden layer) functions as an encoder, and the part denoted by reference numeral 8 in Figure 15 (the part consisting of the hidden layer and the output layer) functions as a decoder. Furthermore, since the input layer and output layer are composed of units equal in number to the number of pixels that make up 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 for multiple pixels.
[0080] Learning using this autoencoder AE is performed, for example, as follows: When input data is provided to the autoencoder AE, a forward propagation process is performed within the autoencoder AE. After that, the sum of the 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 a gradient descent method based on the results obtained from the backpropagation process of the error. By repeating learning in this manner, the above parameters are optimized. As described above, 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 that is compared with the output data from the autoencoder AE during the learning process is the input data to the autoencoder AE. In other words, no teacher data is used. In this manner, in this embodiment, unsupervised learning as machine learning is performed using the autoencoder AE.
[0082] 5. Processing Procedure for Detecting Faulty Nozzles (Faulty Discharge Detection Method) A series of processing procedures for detecting faulty discharge nozzles 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 step S10, a plurality of learning images 54, each formed by ejecting ink from N nozzles, are prepared as learning data.
[0083] Here, the detailed procedure for preparing the learning data will be described with reference to the flowchart shown in FIG. 17 . First, an inspection chart 71 is printed (step S110). 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 includes 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 inline scanner 40 captures the printed image of the inspection chart 71 (the printed image obtained in step S110) under the control of the imaging control unit 154 (step S120). Next, the captured image of the tint pattern 72 from the captured images obtained in step S120 is inspected (step S130). Then, based on the inspection results from step S130, a plurality of learning images 54 are extracted as learning data from the captured image of the test pattern 73 from the captured images obtained in step S120 (step S140). In step S140, a plurality of learning images 54 are extracted from the captured image of the test pattern 73, from the portion corresponding to the normal tint portion. Therefore, the plurality of learning images 54 extracted as learning data does not include any images that represent nozzle ejection defects. After step S140 is completed, the process proceeds to step S20 in FIG. 16.
[0084] After the training data is prepared, unsupervised learning is performed using the autoencoder AE (step S20). In 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 coefficients, 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 the image formed on the printing paper 5 by ejecting ink from the nozzles can 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 a printing company uses 10 printing conditions in its printing system, unsupervised learning using the autoencoder AE is performed for each of the 10 printing conditions. In this case, in step S20, 10 trained models 55 corresponding to the 10 printing conditions are generated.
[0086] After the trained model 55 is generated, the ink ejection control unit 152 controls the ejection 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 only of a test pattern (step-like pattern) 73, as schematically shown in FIG. 11 (step S30). Then, under the control of the imaging control unit 154, the inline scanner 40 captures a printed image of the test pattern 73 (the printed image obtained in step S30) (step S40). Next, the image cropping unit 630 crops a plurality of partial images 57, each corresponding to N nozzles, from the captured image 56 obtained in step S40 (step S50).
[0087] After a 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. Note that in step S60, the trained model 55 corresponding to the printing conditions under which 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 plurality of partial images 57 (step S70).
[0089] Finally, the comparison / determination unit 643 compares the mean square error 59 calculated in step S70 with the threshold value previously set as a parameter, and determines whether or not a 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 step S80, if the mean square error 59 is greater than the threshold value, it is determined that a faulty nozzle is included among the N nozzles corresponding to the partial image 57 (input data). Note that if each partial image 57 corresponds to a single nozzle, the processing of step S80 identifies the faulty nozzle. In contrast, if each partial image 57 corresponds to two or more nozzles, after step S80, a processing of identifying the faulty nozzle is performed by the faulty nozzle identification unit 651 (not shown in FIG. 16 ) taking into account the results obtained in the processing of step S80.
[0090] After the process of detecting defective nozzles has been performed using the above procedure, the print data is corrected to compensate for the defective ejection of the nozzles identified as defective nozzles (print data correction step). This allows high-quality printouts to be obtained even if defective nozzles are present.
[0091] 16, steps S10 to S20 are learning processes, and steps S30 to S80 are inference processes. Once the learning process is completed and a trained model 55 is generated, it is possible to repeat only the inference process. Furthermore, even if a trained model 55 has been generated, the accuracy of detecting nozzle ejection defects can be improved by further repeating the learning process.
[0092] In this embodiment, step S10 implements a learning image preparation step, step S20 implements a model generation step, step S30 implements a test pattern printing step, step S40 implements an imaging step, step S50 implements an image extraction step, and steps S60 to S80 implement a discharge defect determination step. Also, step S110 implements a pre-learning printing step, step S120 implements a pre-learning imaging step, and steps S130 and S140 implement learning image extraction steps.
[0093] Here, setting of the threshold as a parameter will be described with reference to FIGS. 18 and 19 . The frequency (frequency) of occurrence of the mean squared error for each certain numerical range is shown in FIG. 18 , and the details of the portion labeled 46 in FIG. 18 are shown in FIG. 19 . The data present within the dotted line labeled 49 in FIG. 18 corresponds to the nozzles with defective ejection. The dotted line labeled 47 in FIG. 18 represents the average value of the mean squared error (of normal data). In a normal distribution, the probability that each data point exceeds a range of 4σ (σ: standard deviation) from the mean value (one-sided) is 1 in 30,000. This corresponds to the level of one defective ejection nozzle in a 20-inch head unit. Taking this into consideration, for example, the value obtained by adding 4σ to the average value of the mean squared error (the value represented by the solid line labeled 48 in FIG. 18 ) can be set as the threshold. Note that the value shown here is merely an example, and there are no particular restrictions on how the threshold is set.
[0094] 6. Image Cutout 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 perform learning of the autoencoder AE and to accurately detect ejection-failed nozzles using the autoencoder AE, it is preferable to determine in advance the number of linear patterns to be included in the cutout image and the reference position (e.g., center position) when cutting out the image from the captured image. Therefore, below, the range of one image cut out from the captured image (image cutout range) and the reference position when cutting out the image (hereinafter referred to as the "cutout reference position") will be described.
[0095] 6.1 Image Extraction Range The image extraction range can be roughly divided into two types: an image extraction method for extracting an image covering a range corresponding to one nozzle, as shown in FIG. 1 , and an image extraction method for extracting an image covering a range corresponding to multiple nozzles. In other words, an image extraction method for extracting an image so that only one linear pattern is included in the extracted image, and an image extraction method for extracting an image so that multiple linear patterns are included in the extracted image. When the image extraction method for extracting an image covering a range corresponding to one nozzle is used, 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 image extraction method for extracting an image covering a range corresponding to multiple nozzles is used, 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] The technique of cutting out an image covering a range equivalent to one nozzle reduces the size (image size) of the input / output data of the autoencoder AE compared to the technique of cutting out an image covering a range equivalent to multiple nozzles, thereby reducing the processing load on the model generation unit 620 and the discharge defect determination unit 640. Furthermore, even if the cutout reference position is not set (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 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 used as the cutout reference position, it is not possible to detect lateral skipping.
[0097] By using a technique that cuts out an image covering a range of multiple nozzles, the positional relationships between multiple linear patterns are learned, making it possible to detect lateral skipping regardless of which of the three positions described below is used as the cutout reference position. Furthermore, since it is also possible to detect non-ejection and shape defects, it is possible to detect nozzle ejection defects regardless of their type.
[0098] When cutting out an image covering a range of multiple nozzles, the image may be cut out in a range corresponding to multiple nozzles that are consecutive in the main scanning direction, or in a range corresponding to multiple nozzles that are consecutive in the sub-scanning direction, or in a range corresponding to multiple nozzles that are consecutive in both the main scanning direction and the sub-scanning direction. For example, an image may be cut out from the captured image so that the cut-out image contains three consecutive linear patterns in the main scanning direction (see the bold dotted line portion labeled 76 in FIG. 20 ). When the image is cut out in this manner, dimensional jumps can be detected, as can be seen from FIG. 44 . Furthermore, the image may be cut out from the captured image so that the cut-out image contains three consecutive linear patterns in the sub-scanning direction (see the bold dotted line portion labeled 77 in FIG. 21 ). When the image is cut out in this manner, dimensional jumps that affect quality can be detected, as can be seen from FIG. 45 . Furthermore, for example, an image may be cut out from the captured image so that the cut-out image contains nine linear patterns of three rows and three columns (see the thick dotted line portion labeled with reference numeral 78 in FIG. 22). When the image is cut out in this manner, it becomes possible to detect side jumps from multiple perspectives.
[0099] 6.2 Cutout Reference Position Three positions are possible as the cutout reference position. Below, three cutout methods (first to third cutout methods) corresponding to the three positions are described. Note that when a method of cutting out an image covering a range equivalent to one nozzle is employed (i.e., when the N nozzles are one nozzle), an image (learning image 54, partial image 57) of a predetermined range is cut out from the captured image, centered on this cutout reference position, in step S50 of FIG. 16 or step S140 of FIG. 17 . On the other hand, when a method of cutting out an image covering a range equivalent to multiple nozzles is employed (i.e., when the N nozzles are two or more nozzles), an image (learning image 54, partial image 57) of a predetermined range is cut out from the captured image, centered on this cutout reference position for a predetermined one of the two or more corresponding nozzles, in step S50 of FIG. 16 or step S140 of FIG. 17 .
[0100] The first extraction method is a method in which an image is extracted from a captured image based on 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 determined, for example, as follows. First, when printing the test pattern 73, position marks 791 and 792 for determining the provisional ejection positions are also printed, 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 the gap 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 the gap 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 adjacent nozzles in the main scanning direction) is determined. Then, based on the position (coordinates) of one of the position marks 791 and the nozzle pitch, the provisional ejection positions of each nozzle that ejects ink into the area corresponding to the gap between the two position marks 791 and 792 are determined.
[0101] The second cut-out technique is a technique in which an image is cut out from a captured image based on the positions at which ink is actually ejected from each nozzle (hereinafter referred to as "actual ejection positions"), which are determined based on a captured image of the printed image of the test pattern 73. With regard to the second cut-out technique, the procedure for determining the actual ejection positions will be described below with reference to the flowchart shown in FIG.
[0102] First, the captured image is divided into K portions (split images) in the sub-scanning direction, where K is an integer greater than or equal to 2 (step S210). In step S210, the boundaries between columns are determined 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 column (in other words, so that each split image corresponds to one nozzle in the sub-scanning direction). For example, if a captured image 80 such as that 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 boundaries between one column and the next contain a lot of noise. For example, as shown in the portion marked with reference numeral 81 in FIG. 26, gaps may occur due to adjustment of the ink ejection head 251. Therefore, it is preferable to remove the upper and lower end portions of the split images (i.e., the boundaries between columns) by trimming.
[0103] Next, for each of the K divided images obtained in step S210, the average value of the data (pixel values) of the multiple 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, average values after normalization), the actual ejection position for each nozzle is determined (step S230). For this, the peak position is calculated as a real number using a method such as centroid calculation, equiangular linear fitting, spline interpolation, or Gaussian fitting based on the values of the pixel where the peak of the average value is obtained (for example, the pixels marked with symbols PE1 to PE5 in part B of FIG. 27) and the values of its neighboring pixels (for example, 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 the captured image dividing step, step S220 realizes the average value calculation step, and step S230 realizes the actual ejection position specifying step.
[0106] Here, a method for determining the actual ejection position when a non-ejecting nozzle (a nozzle that is not ejecting) is present will be described. When a non-ejecting nozzle is present, a "printed image of test pattern 73" such as that shown in FIG. 13 is obtained. A captured image obtained by capturing the printed image of test pattern 73 is subjected to the process of step S210 in FIG. 24 (captured image division process) to obtain a divided image. 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 in the average value is detected for normal portions excluding abnormal portions 741a and 741b. On the other hand, no peak in the average value is detected for abnormal portions 741a and 741b. In this way, portions where no peak in the average value is detected are determined to contain non-ejecting nozzles, and are excluded from the process of step S230 in FIG. 24 (processing for identifying actual ejection positions). As a result, it is not possible to perform extraction of partial images (step S50 in FIG. 16) using the positions of the nozzles corresponding to abnormal portions 741a and 741b as the extraction reference positions, and it is determined that a non-ejecting nozzle is present.
[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, provisional ejection positions (positions where ink is expected to be ejected) for a target nozzle and a predetermined number of nozzles near the target nozzle are determined using the procedure described above (step S310). Hereinafter, the predetermined number of nozzles near the target nozzle are referred to as a "neighboring nozzle group." If the main scanning direction is referred to as the "left-right direction," for example, the neighboring nozzle group includes 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. However, if the target nozzle is located at the left end, the neighboring nozzle group includes the nozzles up to five nozzles to the right of the target nozzle, and if the target nozzle is located at the right end, the neighboring nozzle group includes the nozzles up to five nozzles to the left of the target nozzle. After the provisional ejection positions are determined, the actual ejection positions (positions where ink is actually ejected) for each of the multiple nozzles included in the neighboring nozzle group are determined based on the captured image using the procedure described above (step S320). Next, the difference between the provisional ejection position and the actual ejection position is calculated for each of the nozzles included in the nearby nozzle group (step S330). The average of the differences calculated in step S330 is then calculated (step S340). Finally, the ideal ejection position for the nozzle of interest is determined 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 the provisional ejection position calculation step, step S320 realizes the actual ejection position calculation step, step S330 realizes the difference calculation step, step S340 realizes the difference average calculation step, and step S350 realizes the ideal ejection position identification step.
[0111] Here, we will explain how to determine the ideal ejection position when a non-ejecting nozzle is present. The non-ejecting nozzle is detected in the process of step S320 in FIG. 30 (processing for calculating the actual ejection position). In this case, for example, one of the multiple nozzles included in the nearby nozzle group is detected as the non-ejecting nozzle. Then, the non-ejecting nozzle is excluded from the nearby nozzle group, and the process of step S330 in FIG. 30 (processing for calculating the difference) is executed. This calculates the difference between the provisional ejection position and the actual ejection position for each of the remaining, for example, nine nozzles from the nearby nozzle group excluding the non-ejecting nozzle. The subsequent processes of steps S340 and S350 are the same as when no non-ejecting nozzle is detected. In this way, the ideal ejection position for the nozzle of interest described above is determined.
[0112] <6.3 Cases where a range corresponding to 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 containing multiple columns is divided into multiple divided images, one for each column. Next, as described above, since the boundary between one column and the next contains a lot of noise, the boundary is removed by trimming. More specifically, the upstream and downstream ends of each of the multiple divided images in the sub-scanning direction are trimmed away. Finally, the multiple divided images from which the boundary has been removed in this manner (i.e., the multiple divided images from which 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 consecutive nozzles in the sub-scanning direction is used as the image cutout range, it is not possible to perform the desired cutout centered on the nozzle corresponding to the top row or the nozzle corresponding to the bottom row. Therefore, the top row image (the image at the position indicated by reference numeral 82a in FIG. 31 ) can be copied to a position below the bottom row image (the position indicated by reference numeral 82b in FIG. 31 ), and the bottom row image (the image at the position indicated by reference numeral 83a in FIG. 31 ) can be copied to a position above the top row image (the position indicated by 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 most upstream in the sub-scanning direction in the captured image can be copied further downstream from the row located most downstream in the sub-scanning direction, and the image of the row located most downstream in the sub-scanning direction in the captured image can be copied further upstream from the row located most upstream in the sub-scanning direction. In addition, in order to obtain a printed image equivalent to the image after such copying, 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 Regarding Edge Portions of Captured Image When using a method of cutting out an image covering a range of multiple nozzles, it is conceivable that the accuracy of detecting ejection defects will be lower for edge portions of the captured image than for other portions. Therefore, the following processing may be performed for edge portions. During the learning process, 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 using the learning image 54 with an autoencoder AE to generate a trained model 55 for the edge portion. During the inference process, a partial image 57 is cut out from the captured image in the same manner as during the learning process, and the partial image 57 is provided as input data to the autoencoder AE that constructs the trained model 55 for the edge portion to detect ejection-failed nozzles.
[0116] 6.5 Method of Cutting Out Images (Partial Images) During Inference Processing and Identifying Faulty-Ejection Nozzles This section describes how to cut out partial images 57 from the captured image 56 during inference processing and identify faulty-ejection nozzles when cutting out an image covering a range of multiple nozzles (i.e., when the N nozzles are two or more nozzles). When cutting out an image covering a range of multiple nozzles, a method (hereinafter referred to as a "processing time-prioritized cutting method") may be used in which multiple partial images 57 are cut out from the captured image 56 so that an image corresponding to each nozzle is cut out only once (in other words, multiple partial images 57 are cut out from the captured image 56 so that a linear pattern corresponding to each nozzle is included in only one partial image 57), or a method (hereinafter referred to as a "precision-prioritized cutting method") may be used in which multiple partial images 57 are cut out from the captured image 56 so that an image corresponding to each of all nozzles (excluding nozzles corresponding to linear patterns located at the edge of the captured image 56) is positioned at the center (the center of the image after cutting out) once. According to the precision-priority cutting method, the nozzles corresponding to the linear patterns included in the row 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 row 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 row are defined as end nozzles, and when multiple partial images 57 are cut out from the captured image 56, the positions corresponding to all of the nozzles among the multiple nozzles included in the head unit 25 except for the end nozzles are used as the reference once each.
[0117] When the processing time priority cut-out method is adopted, for example, after the partial image of the dotted line portion labeled 851 in Fig. 32 is cut out, the partial image of the dotted line portion labeled 852 in Fig. 32 is cut out. This method shortens the processing time required to cut out multiple partial images 57 from the captured image 56. When partial images 57 are cut out using this method, the detection and identification of discharge-failed nozzles in the inference process is performed as follows. First, the discharge failure determination unit 640 determines whether or not there is a discharge-failed 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. If it is determined that a faulty nozzle exists (in other words, if the mean square error is greater than a predetermined threshold), the faulty nozzle identification unit 651 divides the entire relevant partial image for both the input data and the output data into N images (hereinafter referred to as "nozzle unit images"), one for each nozzle, 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 results 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). In this case, 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 portion indicated by the thick solid line in FIG. 33 has been extracted as a partial image, first, the presence or absence of a faulty nozzle is determined based on the entire partial image. If it is determined that a faulty nozzle 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 nozzle unit image 701 and nozzle unit image 709 is greater than the threshold value, the nozzle corresponding to nozzle unit image 701 and the nozzle corresponding to nozzle unit image 709 are identified as defective ejection nozzles.
[0118] When the precision-priority extraction method is adopted, for example, even if a partial image of the thick solid line portion labeled 861 in FIG. 34 is extracted, a partial image of the dotted line portion labeled 862 in FIG. 34 is also extracted. Similarly, even if a partial image of the thick dotted line portion labeled 863 in FIG. 34 is extracted, a partial image of the solid line portion labeled 864 in FIG. 34 is also extracted. This method enables the position of the nozzle with poor ejection accuracy to be identified. For example, if partial images corresponding to five consecutive nozzles in the main scanning direction are extracted during the inference process, and ejection defects occur as indicated by the dotted line portion labeled 87 in FIG. 35, the area where the ejection defects occur will gradually move as shown in FIG. 35 in the five test results. In this case, the mean square error will be greater than the threshold value for five consecutive tests. Based on this, the nozzle with poor ejection accuracy is identified by the nozzle with poor ejection accuracy by the nozzle with poor ejection accuracy identification unit 651. Furthermore, assume that a partial image containing nine linear patterns arranged in three rows and three columns is extracted during the inference process, and the inspection results for each partial image containing the nine linear patterns are displayed in association with the linear pattern located at the center of each partial image, resulting in the results shown in FIG. 36 . Note that in FIG. 36 , "◯" indicates that no discharge defects were 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 reference numeral 88 in FIG. 36 is in a discharge-defective state. From the above, it can be seen that a discharge-defective nozzle is identified based on the mutual overlap state of two or more partial images determined in step S80 of FIG. 16 to include a discharge-defective nozzle among the corresponding N nozzles.
[0119] 6.6 Types of Detectable Discharge Defects for Each Combination of Image Extraction Range and Extraction Reference Position Figure 37 shows the relationship between the combination of image extraction range and extraction reference position and the types of detectable discharge defects. Shape defects are detectable with any combination. When the actual ejection position is used as the extraction reference position, discharge failures are detectable under certain conditions. More specifically, if a peak average value is not obtained in step S230 of Figure 24, it is possible to determine that the corresponding nozzle is not ejecting, without performing steps S60 to S80 of Figure 16. Regarding horizontal skipping, if the image extraction range covers multiple nozzles, the autoencoder AE learns the positional relationships between multiple linear patterns, making it possible to detect it regardless of the extraction reference position. However, if the image extraction range covers one nozzle, horizontal skipping is detectable only when the ideal ejection position is used as the extraction reference position. In this regard, if the ideal ejection position is used as the cutout reference position, even if a lateral skip occurs for a certain nozzle, there will be no deviation (due to lateral skip) in the cutout position when the partial image corresponding to that nozzle is cut out from the captured image. Therefore, lateral skip can be detected even if the cutout range of the image is the range of one nozzle.
[0120] 7. Effects According to this embodiment, a trained model 55 for detecting nozzle discharge defects is generated by performing unsupervised learning using the autoencoder AE using only images that represent good discharge conditions. As a result, if the input data provided to the autoencoder AE that constitutes the trained model 55 is an image without discharge defects, the error between the input data and the output data is small. Conversely, if the input data provided to the autoencoder AE that constitutes 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 provided as input data to the autoencoder AE, without the need to set other parameters. Furthermore, although discharge defects rarely occur in the inkjet printing device 10, only images that represent good discharge conditions are required as training data (training images 54) (in other words, there is no need to collect defective data), so a sufficient amount of training data can be easily collected. As described above, according to this embodiment, it is possible to accurately detect nozzle ejection defects without requiring a great deal of effort for generating and collecting learning data or setting parameters for the inkjet printing device 10. Furthermore, because missed detection of ejection defects due to insufficient parameter settings is reduced, unnecessary consumption of printing paper 5 and ink due to reprinting is reduced. In this way, it is possible to contribute to the achievement of the SDGs (Sustainable Development Goals).
[0121] 8. Modifications 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 modifications (Modifications 1 to 4) related to the execution of unsupervised learning will be described below.
[0122] 8.1 First Modification Example Performing unsupervised learning for each of all printing conditions, as in the above embodiment, can be considered to result in excessive processing load. Therefore, it is possible to group multiple printing conditions that are similar to one another and perform unsupervised learning. That is, in this modification example, one or more printing conditions are grouped together, and unsupervised learning using an 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 the printing condition group that includes the printing conditions when the test pattern 73 was printed in step S30 of FIG. 16 is used.
[0123] 8.2 Second Modification The shape of an image formed on printing paper 5 by ejecting ink from nozzles can vary depending on the type of ink. Therefore, in this modification, unsupervised learning using an 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 , the 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 Modification FIG. 38 is a plan view showing an example of the configuration of the recording unit 205 in this modification. Unlike the above embodiment, the head units 25 for each color are configured with a first head group arranged upstream in the sub-scanning direction and a second head group arranged downstream in the sub-scanning direction. For example, the K head unit 25K is configured with a first K head group 25K(1) arranged upstream in the sub-scanning direction and a second K head group 25K(2) arranged downstream in the sub-scanning direction. In the example shown in FIG. 38 , both the first head group and the second head group are configured with five ink ejection heads 251 arranged in a staggered pattern. For example, both the ink ejection heads 251 included in the first head group and the ink ejection heads 251 included in the second head group are capable of printing at 600 dpi, and both are capable of printing at 1200 dpi. The ink ejection heads 251 included in the first head group correspond to upstream ink ejection heads, and the ink ejection heads 251 included in the second head group correspond to downstream ink ejection heads.
[0125] FIG. 39 is a diagram showing the detailed configuration of the head unit 25 in this modified example. In the portion shown in FIG. 39 , ink ejection head 251(1) and ink ejection head 251(3) are included in the first head group, and ink ejection head 251(2) and ink ejection head 251(4) are included in the second head group. It can be seen from FIG. 39 that the landing positions of ink ejected from the nozzles included in the first head group and the landing positions of 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, hereinafter, the nozzles included in the first head group will be referred to as "first-ejection nozzles," and the nozzles included in the second head group will be referred to as "second-ejection nozzles."
[0126] In this modified example, a head unit 25 configured as described above is used to print a test pattern 73 such as that shown in Fig. 40. In Fig. 40, the linear patterns denoted by reference numerals 891, 893, 895, and 897 correspond to the leading nozzles, and the linear patterns denoted by reference numerals 892, 894, 896, and 898 correspond to the trailing nozzles. Note that, here, it is assumed that the cutting range when cutting out images (learning image 54, partial image 57) from the captured image is the range of one nozzle.
[0127] Under the above assumptions, unsupervised learning using an autoencoder AE is performed separately for the images corresponding to the first-injection nozzles (the images included in the portions labeled with reference numerals 891, 893, 895, and 897 in FIG. 40 ) and the images corresponding to the second-injection nozzles (the images included in the portions labeled with reference numerals 892, 894, 896, and 898 in FIG. 40 ). As a result, in step S20 of 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 of 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 that constitutes 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 that constitutes the trained model 55 corresponding to the second head group.
[0128] Furthermore, 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 can 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 Modification This modification employs a head unit 25 (see FIGS. 38 and 39 ) having the same configuration as that of the third modification. Furthermore, this modification cuts out images (learning image 54, partial image 57) from the captured image so that the image obtained by cutting out (cut-out image) includes nine linear patterns of 3 rows and 3 columns (see the thick dotted line portion designated by reference numeral 78 in FIG. 22 ).
[0130] Under the above assumptions, unsupervised learning using an autoencoder AE is performed separately on a cutout image in which an image corresponding to the 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 the 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 used as input data is a first-type cutout image or a second-type cutout image.
[0131] 9. Others In the above embodiment (including the modified examples), 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] Furthermore, in the above-described embodiment (including the modified examples), the inkjet printing apparatus 10 uses aqueous ink. However, the present invention is not limited to this, and an inkjet printing apparatus using UV ink (ultraviolet-curable ink), such as an inkjet printing apparatus for label printing, may also be used. In this case, an ultraviolet irradiation mechanism that cures the UV ink on the printing paper 5 by irradiating it with ultraviolet light, instead of the drying mechanism 206, is provided inside the printing mechanism 201 (see FIG. 5 ).
[0133] DESCRIPTION OF SYMBOLS 10... Inkjet printing device 13... Printing control program 40... Inline scanner 55... Trained model 71... Inspection chart 72... Tint pattern 73... Test pattern 100... Printing control device 156... Discharge defect detection unit 157... Printing data correction unit 200... Printing machine main body 201... Printing mechanism 205... Recording unit 251... Ink discharge head 610... Learning image generation unit 620... Model generation unit 630... Image extraction unit 640... Discharge defect judgment unit 641... Auto-encoding unit 642... Error calculation unit 643... Comparison judgment unit 650... Discharge defect information output unit 651... Discharge defect nozzle identification unit AE... Auto-encoder
Claims
1. A method for detecting nozzle discharge defects in a printing device equipped with a head unit including a plurality of nozzles that discharge 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 formed by the discharge of ink from N nozzles, where N is an integer greater than or equal to 1; a model generation step of generating a trained model configured by the autoencoder by providing the plurality of learning images to an 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 the discharge of ink from the plurality of nozzles; an imaging step of capturing a printed image obtained in the test pattern printing step; an image extraction step of extracting a plurality of partial images, each corresponding to N nozzles, from the captured image obtained in the imaging step; and 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 a value obtained based on the output data from the autoencoder and the input data with a threshold value set as a parameter. A discharge defect detection method, wherein the plurality of learning images does not include an image that represents a discharge defect of a nozzle.
2. A method for detecting defective ejection as described in claim 1, wherein in the model generation step, the trained model is generated for each printing condition by performing unsupervised learning for each printing condition, and in the defective ejection judgment step, the trained model corresponding to the printing conditions when the test pattern was printed in the test pattern printing step is used.
3. The method for detecting defective ejection as described in claim 1, wherein 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, and in the defective ejection determination step, the trained model corresponding to the printing condition group including the printing conditions when the test pattern was printed in the test pattern printing step is used.
4. A method for detecting defective ejection as described in claim 1, wherein in the model generation step, the trained model is generated for each type of ink by performing unsupervised learning for each type of ink, and in the defective ejection determination step, the trained 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, wherein 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. A method for detecting defective ejection as described in claim 5, wherein in the image cutting out 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 the area between the two position marks, and the provisional ejection position for each nozzle is calculated using the nozzle pitch.
7. A method for detecting defective ejection as described in claim 1, wherein in the image cutting-out step, an actual ejection position where ink is actually ejected from each nozzle is determined based on the captured image, and each of the multiple 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 ejection defect detection method according to claim 7, wherein the image cutting out step includes: an image dividing step of dividing the captured image into K pieces in the transport direction, where K is an integer of 2 or more, so 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 image dividing step; and an actual ejection position identification step of determining the actual ejection position for each nozzle based on the average value calculated in the average value calculation step.
9. A method for detecting defective ejection as described in claim 1, wherein in the image cutting-out 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 cut out from the captured image based on the ideal ejection position for a predetermined one of the corresponding N nozzles.
10. The ejection defect detection method according to claim 9, wherein the image extraction step includes: a tentative ejection position calculation step for determining, as a tentative ejection position, a position at which 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 for determining, based on the captured image, an actual ejection position at which ink is actually ejected from the predetermined number of nozzles in the vicinity of the target nozzle; a difference calculation step for calculating the difference between the tentative 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 for calculating the average value of the differences calculated in the difference calculation step; and an ideal ejection position identification step for determining the ideal ejection position for the target nozzle by adding the average value calculated in the difference average calculation step to the tentative ejection position for the target nozzle.
11. The method for detecting defective ejection as described in claim 1, wherein the learning image preparation step includes: a pre-learning printing step in which the printing device is caused to print the test pattern and a tint pattern of constant density overall to be formed by ejecting ink from the multiple nozzles; a pre-learning imaging step in which the printed image obtained in the pre-learning printing step is imaged so as to obtain a first partial image which is an image corresponding to the tint pattern and a second partial image which is an image corresponding to the test pattern; and a learning image extraction step in which a portion of the first partial image obtained in the pre-learning imaging step excluding abnormal portions is defined as a tint normal portion, and the multiple learning images are extracted from a portion of the second partial image which corresponds to the tint normal portion.
12. The method for detecting defective discharge described in claim 1, wherein the input data and the output data are composed of data for a plurality of pixels, and the defective discharge judgment 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; and a comparison judgment step of judging whether or not a nozzle in a defective discharge 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, and in the comparison judgment step, if the mean square error is greater than the threshold value, it is judged that a nozzle in a defective discharge state is included among the N nozzles corresponding to the input data.
13. A method for detecting defective ejection as described in claim 1, wherein in the learning image preparation step, a plurality of learning images are prepared, each of which is formed by ejecting ink from a single nozzle, and in the image cut-out step, a plurality of partial images, each of which corresponds to a single nozzle, are cut out from the captured image.
14. A method for detecting ejection defects 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 comprising 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 capturing of the print image by the imaging device, wherein the control unit comprises: a model generation unit that generates a trained model configured by the autoencoder by providing an autoencoder with a plurality of learning images, each formed by the ejection of ink from N nozzles, where N is an integer greater than or equal to 1, and performing unsupervised learning as machine learning; an image extraction unit that extracts a plurality of partial images, each corresponding to N nozzles, from an image obtained by the imaging device capturing a print image of a test pattern to be formed by the ejection of ink from the plurality of nozzles; and 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 having a discharge defect is included among the N nozzles corresponding to the input data based on a result of comparing a value obtained based on the output data from the autoencoder and the input data with a threshold value set as a parameter, wherein the plurality of learning images do not include an image representing a nozzle discharge defect.
16. The printing device described in claim 15, wherein the head unit includes an upstream ink ejection head arranged upstream in the transport direction and a downstream ink ejection head arranged downstream 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 a nozzle included in the upstream ink ejection head and an image corresponding to a nozzle included in the downstream ink ejection head, each of the multiple partial images cut out by the image cutout unit corresponds to one nozzle, and the ejection defect judgment unit provides the input data to the autoencoder constituting the trained model corresponding to the upstream ink ejection head if a nozzle corresponding to the input data is included in the upstream ink ejection head, and provides the input data to the autoencoder constituting the trained model corresponding to the downstream ink ejection head if a nozzle corresponding to the input data is included in the downstream ink ejection head.
17. The control unit further includes a learning image generation unit that generates the multiple learning images, and the imaging device captures a printed image of the test pattern and a printed image of a tint pattern of constant density overall to be formed by ejecting ink from the multiple nozzles, thereby obtaining a first partial captured image that is an image corresponding to the tint pattern and a second partial captured image that is an image corresponding to the test pattern, and the learning image generation unit extracts the multiple learning images from a portion of the second partial captured image that corresponds to the normal tint portion, with a portion of the first partial captured image excluding the abnormal portion being treated as a normal tint portion.
18. A printing device as described in claim 15, wherein the input data and the output data are composed of data for a plurality of pixels, and the discharge defect judgment unit includes: a self-encoding unit consisting of the autoencoder that receives each of the plurality of partial images as the input data and outputs the output data; an error calculation unit that calculates a mean square error between the input data and the output data; and a comparison judgment unit that judges whether or not a nozzle with a discharge defect 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, and the comparison judgment unit judges that a nozzle with a discharge defect is included among the N nozzles corresponding to the input data if the mean square error is greater than the threshold value.
19. A printing device as described in any one of claims 15 to 18, wherein 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. A defective discharge detection program for detecting defective nozzle discharge in a printing device equipped with 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, comprising: a model generation step of generating a trained model configured by the autoencoder by providing an autoencoder with a plurality of learning images, each formed by the discharge of ink from N nozzles, where N is an integer of 1 or more, 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 the discharge of ink from the plurality of nozzles; an imaging step of causing the imaging device to capture the print image obtained in the test pattern printing step; an image extraction step of extracting a plurality of partial images, each corresponding to N nozzles, from the captured image obtained in the imaging step; and a defective discharge 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 defective discharge state is included among the N nozzles corresponding to the input data, based on a result of comparing a value obtained based on the output data from the autoencoder and the input data with a threshold value set as a parameter. 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
Method and apparatus for detecting fine pattern position, method and apparatus for detecting defective nozzle, method and apparatus for discharging liquid
JP2011194734A
Method for detecting defective printing nozzles in inkjet printing machine
JP2019137048A
Enhanced print defect detection
JP2021094853A
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
