This application claims the benefit of Japanese Patent Application No. 2023-129323, filed Aug. 8, 2023, which is hereby incorporated by reference wherein in its entirety.
The present disclosure relates to image alignment processing for inspecting a printed material.
In printing processing of forming an image on a printing medium, smudge of a color material such as ink or toner adhering to an unintended pace occurs in some cases. Furthermore, color fading occurs in some cases that a sufficient color material does not adhere to a place where an image is to be formed and color is more dilute than expected. Printing defects such as smudge and color fading degrades the quality of a printed material. Thus, the quality of the printed material needs to be guaranteed by inspecting existence of a printing defect. Visual inspection that existence of a printing defect is visually inspected needs large amounts of time and cost, and thus an inspection system that automatically performs inspection has been disclosed.
In such an inspection system, a scanned image obtained by scanning a printed material as an inspection target is aligned with, for example, a reference image registered in advance, and existence of a defect is detected based on difference there between. As disclosed in a patent document (Japanese Patent Laid-Open No. 2017-092777), a known method of the alignment is a method of reading position detection markers printed at the four corners of a sheet to obtain the shift amount of a printed material and performing geometric correction.
However, only one position detection marker is printed per inspection target unit in some cases to reduce the consumption amount of ink. In such a case, shift of the sheet accumulates at a position separated from the marker, and the accuracy of alignment decreases, which has been a problem. In particular, in a case where a continuous sheet such as a roll sheet is used as a printing medium, the entire scanned image is potentially expanded and contracted due to desynchronization between the conveyance speed of the sheet and the scanning speed of a scanner. As a result, the shift amount becomes large at a position separated from the marker and the accuracy of alignment potentially decreases.
An image processing apparatus of the present disclosure is an image processing apparatus configured to execute image processing based on image data obtained by reading a print image continuously printed on a printing medium, the print image is marked with one marker per inspection unit region, and the image processing apparatus includes an obtaining unit configured to obtain data of an inspection target image obtained by reading the print image of the one inspection unit region and data of an adjacent image obtained by reading a region that is adjacent to the print image of the one inspection unit region in a conveyance direction of the printing medium and includes the marker, and a generating unit configured to generate an aligned image by aligning the inspection target image with a reference image based on the position of the marker on the inspection target image and the position of the marker on the adjacent image.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Embodiments of the present disclosure will be described below with reference to the accompanying drawings. Note that the embodiments below do not limit the present disclosure and not all combinations of characteristics described in the present embodiment are necessarily essential to the present disclosure.
In a first embodiment, a case where one reference position marker is printed at start of each page will be described below. In the present specification, a page is a print image per inspection unit region, and print images of a plurality of pages are continuously printed on a printing medium such as a roll sheet.
In the present embodiment, the printing medium is a continuous sheet such as a roll sheet. The printing medium is not limited to paper but includes ink-receptive materials such as vinyl, fabric, a plastic film, a metal plate, glass, ceramics, wood, and leather.
The printing apparatus 190 may be a printing apparatus of an ink jet printing scheme, an electrophotographic scheme, or the like. The present embodiment will be described for a printing apparatus of the ink jet printing scheme as an example. The printing apparatus 190 includes a feeding unit 191. The feeding unit 191 rotatably holds a roll sheet set in advance about a horizontal shaft and unwinds and supplies the roll sheet to the printing apparatus 190. Upon inputting of a printing job, while conveying the roll sheet set to the feeding unit 191 along a conveyance path 192, the printing apparatus 190 forms an image on a surface or both surfaces and transfers the roll sheet to the image processing apparatus 100.
The image processing apparatus 100 performs inspection processing of determining whether a defect exists on the roll sheet, in other words, a printed material on which the printing apparatus 190 forms an image and that is conveyed through the conveyance path 192. Accordingly, the image processing apparatus 100 functions as an inspection processing apparatus. The image processing apparatus 100 executes, as preprocessing of the inspection, aligned image generation processing of aligning a page to be inspected with an image (hereinafter referred to as a reference image) as a reference of the inspection. Details of the aligned image generation processing and the inspection processing will be described later.
The image processing apparatus 100 includes a CPU 101, a RAM 102, a ROM 103, a main storage device 104, an image reading apparatus 105, an interface (I/F) 106, a general-purpose I/F 107, a user interface (UI) panel 108, and a main bus 109 inside. The interface (I/F) 106 is an interface for the printing apparatus 190.
The image processing apparatus 100 also includes a conveyance path 110 and a sheet discharge unit 111. The conveyance path 110 is a path that is connected to the conveyance path 192 of the printing apparatus 190 and through which the printed material subjected to printing at the printing apparatus 190 is conveyed to the sheet discharge unit 111. The sheet discharge unit 111 winds the roll sheet subjected to printing at the printing apparatus 190 about a horizontal shaft.
The CPU 101 is a processor that performs overall control of components in the image processing apparatus 100. The CPU 101 loads a computer program held in the ROM 103, the main storage device 104, or the like and executes various kinds of processing by using the RAM 102 as a work area. The RAM 102 includes a transitory storage region and functions as a main memory, a work area, or the like of the CPU 101. The ROM 103 includes a non-transitory storage region and stores computer programs executed by the CPU 101.
The main storage device 104 stores computer programs executed by the CPU 101, data used for image processing, and the like. The computer programs include computer programs related to the inspection processing and the aligned image generation processing to be described later.
The scanner 105 reads, on the conveyance path 110, one surface or both surfaces of the printed material transferred from the printing apparatus 190, and inputs read image data to the CPU 101. In the present embodiment, the scanner 105 reads the printed material for each page in order from the first page of the printed material and stores read image data in the RAM 102 or the main storage device 104. The reading of the printed material at the scanner 105 will be described later.
The printing apparatus I/F 106 is connected to the printing apparatus 190, synchronizes processing timings with the printing apparatus 190, and transmit and receive information such as their operation situations with the printing apparatus 190. The general-purpose I/F 107 is a serial bus interface of USB, IEEE1394, or the like, and an external apparatus, a storage medium, or the like is connectable through the general-purpose I/F 107. A user can write data such as a log to a storage medium or the like and transmit the data to an external apparatus, and can input data to the image processing apparatus 100.
The UI panel 108 includes a display device such as a liquid crystal display and functions as a user interface of the image processing apparatus 100. The UI panel 108 displays, on a display, information related to a current situation, setting, and an inspection result and input from the CPU 101. For example, the UI panel 108 displays image data of the printed material having passed inspection, image data of the printed material on which a defect is detected and that has failed inspection, image data of the detected defect, and the like as the inspection result. Note that the inspection result is not limited to the two kinds of pass and failure but may be more finely classified.
The UI panel 108 also includes an input device such as a touch panel or various operation buttons, receives an instruction from the user, and inputs the instruction to the CPU 101. The main bus 109 connects components of the image processing apparatus 100.
The CPU 101 controls operation of components of the image processing apparatus 100 and the printing system 1. For example, the CPU 101 can synchronize conveyance speeds through the conveyance paths 110 and 192, change conveyance speed in accordance with an inspection result of the printed material, and stop conveyance. The image processing apparatus 100 may also include a GPU as an image processing processor in addition to the CPU 101.
While conveying the printed material transferred from the printing apparatus 190 through the conveyance path 110, the image processing apparatus 100 as a whole reads the printed material with the scanner 105 and performs image processing and the inspection processing described below on read image data.
An inspection result in the inspection processing is stored in the RAM 102 or the main storage device 104. Thereafter, the roll sheet is subjected to postprocessing such as cutting or blank run of removing unnecessary part of a label sheet from a releasing sheet. In the postprocessing, the printed material is selected based on the inspection result in the inspection processing. In this manner, only those with quality checked can be collected as deliverable items.
The scanned image obtaining unit 201 obtains an inspection target image that is image data obtained by scanning a print image of an inspection target page, and an adjacent image that is image data obtained by scanning a region that is a region before or after the inspection target page and includes a reference position marker. The inspection target image and the adjacent image may be image data read by the scanner 105 or may be stored in the RAM 102 or the main storage device 104. The inspection target image and the adjacent image thus obtained are output to the aligned image generating unit 203.
Note that before and after a page correspond to before and after in a conveyance direction of the roll sheet. In the following description, an adjacent image scanned before the inspection target page is referred to as a preceding image, and an adjacent image scanned after the inspection target page is referred to as a succeeding image. The inspection target page is a page to be inspected and processed for all pages in order from the first page.
In the present embodiment, the reference position marker for alignment is printed at start of each page, and the scanned image obtaining unit 201 obtains the succeeding image as an adjacent image. Note that in a case where the reference position marker is printed at end of each page, the scanned image obtaining unit 201 obtains the preceding image as an adjacent image. As for an adjacent image, image data of an entire page does not need to be read, and at least scanned image data of a region in which the reference position marker is printed on the succeeding page (or the preceding page) is obtained.
The scanned image obtaining unit 201 obtains the inspection target image and the adjacent image such that the inspection target image of one page (one inspection unit region) exists between two of the preceding and succeeding reference position markers. In other words, the adjacent image is read such that the reference position marker on the inspection target image and the reference position marker on the adjacent image are adjacent to each other through a print image of one inspection unit region.
The reference image obtaining unit 202 obtains image data (hereinafter referred to as a reference image) as a reference of inspection, which is stored in the RAM 102 or the main storage device 104 in advance, and outputs the obtained reference image to the inspecting unit 204. The reference image will be described later.
The aligned image generating unit 203 generates an aligned image by aligning the inspection target image with the reference image based on the position of the reference position marker on the inspection target image obtained by the scanned image obtaining unit 201 and the position of the reference position marker on the adjacent image (in the first embodiment, the succeeding image). The generated aligned image is output to the inspecting unit 204. Details of the aligned image generation will be described later.
The inspecting unit 204 inspects whether a defect exists on the inspection target page by comparing the aligned image generated by the aligned image generating unit 203 and the reference image. As the inspection result, for example, result information on existence of a defect and defect image data indicating the position of a detected defect are output to the printing apparatus 190 or the UI panel 108. The inspection result outputting will be described later.
Note that, in the present embodiment, the scanned image obtaining unit 201, the reference image obtaining unit 202, the aligned image generating unit 203, and the inspecting unit 204 of the image processing apparatus 100 are included in one apparatus, but these functional components may be configured by combining a plurality of apparatuses. For example, a computer configured to perform processing up to aligned image generation and a computer configured to perform the inspection processing may be configured by separate computers.
Operation of the image processing apparatus 100 will be described below.
Before description of
As illustrated in
The scanner 105 scans, for each page, an image printed on the roll sheet 401. The scanner 105 is, for example, a full-line sensor in which a plurality of detection elements are disposed across a width equal to or larger than the size of the roll sheet in the width direction.
The scanning speed of the scanner 105 is synchronized and matched with the conveyance speed of the roll sheet. Specifically, reading speed per image line (scanning speed [line/msec]) and conveying speed per image line (conveyance speed [line/msec]) are adjusted to match each other. However, in actual operation, desynchronization with the scanning speed occurs due to rotational speed variation of conveyance rollers in some cases. In a case where the desynchronization occurs, the entire scanned image is expanded or contracted in the conveyance direction. Furthermore, deflection occurs depending on the material of the roll sheet 401 or the like and local distortion occurs to the scanned image in some cases.
The scanned image 406 illustrated in
In the present embodiment, reference position marker 404a, 405a, . . . are printed at upper-left parts of print images 404, 405, . . . of respective pages as illustrated in
Processing illustrated in a flowchart in
At S301, the CPU 101 (scanned image obtaining unit 201) obtains the scanned image (inspection target image) 406 of the inspection target page stored in the RAM 102 or the main storage device 104.
As described above, the inspection target image 406 is expanded in the longitudinal direction due to the desynchronization between the scanning speed and the conveyance speed and scanned with the roll sheet being shifted in the right direction due to the positional shift in the roll sheet width direction. The inspection target image 406 includes the marker image 407 corresponding to the reference position marker 404a on the inspection target page 404. The inspection target image 406 includes a point defect 408. The defect 408 is, for example, a droplet of ink dropping from the print head 402 and unintentionally adhering to the printed material.
At S302, the CPU 101 (scanned image obtaining unit 201) obtains scanned image data (succeeding image 409) of the succeeding page of the inspection target page stored in the RAM 102 or the main storage device 104.
Note that, similarly to the inspection target image 406, the succeeding image 409 is scanned as an image expanded in the longitudinal direction of the image due to the desynchronization between the scanning speed and the roll sheet conveyance speed. Furthermore, the roll sheet on the succeeding image 409 is shifted in the right direction due to positional shift in the roll sheet width direction.
At S303, the CPU 101 (reference image obtaining unit 202) obtains reference image data (hereinafter referred to as a reference image 501) stored in the RAM 102 or the main storage device 104. The reference image 501 is image data as an inspection reference.
For example, the reference position is scanning data of the 59-th line (=2.5 mm/25.4*600 dpi) in a case where the document data is A3 (297×420 mm) size, the printing job information includes settings of top, bottom, right, and left margin regions of 10 mm, a printing position of the reference position marker printed with a center 5×5 mm of a 10×10 mm margin region at an upper-left part of the document data, and a conveyance speed of 16 [line/msec](=16/600 dpi*25.4 [mm/msec]) of the roll sheet, and scanning is performed at the scanning resolution of 600×600 dpi and the scanning speed of 16 [line/msec].
In the present embodiment, the reference image 501 is aligned such that the upper-left edge of the reference position marker 502 is at a point 503, the left end of the roll sheet is on a straight line 504, and the right end thereof is on a straight line 505. Although one reference position marker is printed per page, a reference image 506 in which a plurality of printed materials is collectively set as one inspection unit region may be used in a case where a printed material that is short in the conveyance direction of the roll sheet is continuously printed as illustrated in
With the reference image 506 in this case, a scanned image of a print image on which one reference position marker 507 is printed per inspection unit region may be aligned with the reference position. Thus, “page” in the following description may be interpreted as “inspection unit region”.
Note that, in the present specification, a coordinate system on the reference image 501 illustrated in
The Y coordinate of the reference coordinate system is a designed value determined by the vertical size of the document data of the printed material, the sheet size of the printing job information, and the scanning timing of the scanner 105. The X coordinate of the reference coordinate system is a designed value determined by the horizontal size of the document data of the printed material, the sheet size of the printing job information, and the resolution of the scanner 105.
At S304, the CPU 101 (aligned image generating unit 203) executes the aligned image generation processing. In the aligned image generation processing, the CPU 101 detects one reference position marker from each of the inspection target image and the succeeding image obtained at S301 and S302. The CPU 101 generates an image (hereinafter referred to as an aligned image) by aligning the inspection target image with the above-described reference positions 503, 504, and 505 based on the positions of the detected reference position markers.
Details of the aligned image generation processing will be described later with reference to
At S305, the CPU 101 (inspecting unit 204) inspects whether a defect exists on a print image of the inspection target page by pixel value comparison between the aligned image generated at S304 and the reference image obtained at S303. The CPU 101 (inspecting unit 204) generates a defect image 701 illustrating the pixel region of the detected defect 408 as in
Details of the aligned image generation processing at S304 will be described below with reference to a flowchart in
At S601, the CPU 101 detects a marker position on the inspection target page. For example, in a case where the inspection target image 406 illustrated in
At S602, the CPU 101 determines whether the inspection target image 406 is a start page or end page of printing. In the present embodiment, since the reference position marker is printed at start of each page, whether the inspection target image 406 is the end page is determined at S602. In a case where the inspection target image 406 is the end page, no reference position marker is printed thereafter and thus the CPU 101 proceeds to S603. In a case where the inspection target page is not the end page, the CPU 101 determines that the reference position marker is printed on the succeeding page, and then proceeds to S604.
Note that in a case where the reference position marker is printed at end of each page, the CPU 101 determines whether the inspection target image 406 is a start page at S602, and then proceeds to S603 in a case where the inspection target image 406 is a start page. In a case where the inspection target image 406 is not a start page, the CPU 101 proceeds to S604.
At S603, the CPU 101 estimates a marker position on the page preceding the start page or succeeding the end page. In the present embodiment, no reference position marker is printed on the succeeding page of the end page. Thus, a representative position of the reference position marker on the succeeding page is estimated based on the representative position of the reference position marker 407 of the inspection target image 406 detected at S601.
Specifically, the CPU 101 calculates the relative distance between the reference position markers on pages from the document data and printing job information of the printed material. For example, the relative distance is 420 mm+10 mm=430 mm in a case where the document data is A3 (297 mm×420 mm) size and the printing job information includes settings of top, bottom, right, and left margin regions of 10 mm.
The CPU 101 estimates a position P410 (x410, y410) of the reference position marker 410 on the succeeding page by adding the calculated relative distance to the representative position P407 of the reference position marker 407 on the inspection target image 406. The CPU 101 stores the estimated position P410 (x410, y410) of the reference position marker 410 on the succeeding page in a predetermined storage region (for example, the RAM 102).
Note that in a case where the inspection target image is a scanned image of the start page, the CPU 101 subtracts the calculated relative distance between the reference position markers on pages from the representative position P407 of the reference position marker 407 on the inspection target image 406. Accordingly, the pixel position of the reference position marker on the preceding page is estimated.
The method of estimating a marker position on the preceding or succeeding page is not limited to the above-described addition and subtraction of the relative distance between the reference position markers on pages. The estimation may be performed with consideration on, for example, information of sheet expansion and contraction or a marker detected position on the preceding or succeeding page detected for the previous page.
At S604, the CPU 101 detects a marker position on the preceding or succeeding page. In the present embodiment, the scanned image (succeeding image) 409 of the succeeding page illustrated in
At S605, the CPU 101 generates a binarized image of the inspection target page. Specifically, the CPU 101 generates the binarized image by binarizing the inspection target image 406 by a method such as a mode method or an Otsu method. Through the processing at S605, for example, a binarized image 800 illustrated in
At S606, the CPU 101 detects the right and left ends of the sheet from the binarized image 800 generated at S605. The CPU 101 detects, as a pixel position PL (y0) at the left end of the sheet, for example, a pixel position with a minimum X coordinate at the pixel position of y=y0 among pixels with the pixel value of “255” in the binarized image 800. The CPU 101 calculates an approximate straight line LL representing the left end of the sheet from a point group PL of pixel positions at the left end of the sheet, which are detected for respective y pixel positions, by approximation processing such as linear regression processing.
Similarly, the right end of the sheet, the CPU 101 detects, as a pixel position PR (y0) at the right end of the sheet, a pixel position with a maximum X coordinate at the pixel position of y=y0 among pixels with the pixel value of “255”. The CPU 101 calculates an approximate straight line LR representing the right end of the sheet from a point group PR of pixel positions at the right end of the sheet, which are detected for respective y pixel positions.
At S607, the CPU 101 determines the positions of the four corners of the inspection target page. The CPU 101 calculates the positions of the four corners of the inspection target page based on the representative positions P407 (x407, y407) and P410 (x410, y410) of the reference position markers 407 and 410 detected and estimated from the inspection target image 406 and the succeeding image 409, and the approximate straight lines LL and LR at the right and left ends of the sheet.
In the present embodiment, points C1 and C2 illustrated in
The CPU 101 calculates points C4 and C3 illustrated in
At S608, the CPU 101 aligns the inspection target image 406 acquired by scanning with a reference position based on the positions of the four corners C1 to C4 of the inspection target page determined at S607. In the present embodiment, the pixel positions of the points C3 and C4 determined from the succeeding image 409 are converted into pixel positions on the inspection target image 406 based on the document data and printing job information of the printed material and scanning timing.
Specifically, the pixel position of the intersection point C3 is (7313 pixel≈7620−297/254*600)/2−1, 10216 pixel≈59−430/254*600) and the pixel position of the intersection point C4 is (303 pixel≈(7620−297/254*600)/2+1, 10216 pixel) in a case where the document data is A3 (297×420 mm) size, the printing job information includes settings of top, bottom, right, and left margin regions of 10 mm, a printing position of the reference position marker printed with a center 5×5 mm of a 10×10 mm margin region at an upper-left part of the document data, a conveyance position where the roll sheet is conveyed at the center in the right-left direction, and a conveyance speed of 16 [line/msec](=16/600 dpi*25.4 [mm/msec]), and scanning is performed with pixels 7620 pixel in the lateral direction at the scanning resolution of 600×600 dpi of a line scanner and the scanning speed of 16 [line/msec].
The CPU 101 further aligns, with the positions of points 1001 to 1004 illustrated in
The points 1001 to 1004 are designed values of the positions of the four corners of the inspection target page on a scanned image, which are calculated from the document data and printing job information of the printed material and scanning timing. The points 1001 and 1004 are points on the straight line 504 at the left end of the roll sheet on the reference image 501 illustrated in
Through the above-described geometric transform processing, alignment is performed such that the upper-left edge P407 of the reference position marker 407 on the inspection target image 406 is on the point 503, the left end LL of the roll sheet is on the straight line 504, and the right end LR of the roll sheet is on the straight line 505. As a result, as illustrated in
At S609, the CPU 101 detects characteristic points on the aligned image 1000 generated at S608 and the reference image 501 and aligns the detected characteristic points with each other. Well-known characteristic point detection processing such as Sobel filter processing or Harris corner detection processing may be used for the characteristic point detection. In addition, well-known feature amount matching processing such as an AKAZE method or K-nearest neighbors may be used for matching of characteristic points. Well-known geometric transform processing such as affine transform or projection transform is performed for alignment of characteristic points.
Through the above-described processing, the CPU 101 generates the aligned image 1000 by aligning the inspection target image 406 with the reference image 501.
In an example described in the present embodiment, a scanned image is expanded in the longitudinal direction as illustrated in
Specifically, the intersection points C1 and C2 can be aligned with the points 1001 and 1002 as designed values at the upper-left and upper-right corners of the inspection target page based on the detected position of the reference position marker 407, but alignment is not performed with expansion and contraction in the longitudinal direction taken into account. Thus, positional shift from the reference image occurs at a lower part of the scanned image.
However, in a case where the inspection target image is aligned with the reference position based on detected positions of the reference position marker 407 on the inspection target page and the reference position marker 410 on the succeeding page, highly accurate alignment can be performed with expansion and contraction in the longitudinal direction taken into account as illustrated in
Note that the inspection processing at S305 is performed by using the aligned image 1000 generated at S609. In the inspection processing, the image processing apparatus 100 inspects whether a defect exists on the print image of the inspection target page by comparing the pixel values of corresponding pixels in the aligned image 1000 generated at S609 and the reference image 501 illustrated in
Through the image processing as described above, even in a case where one reference position marker is printed on each page, the scanned image (inspection target image) of the printed material on the inspection target page can be highly accurately aligned with the reference image by using the reference position markers printed on the inspection target page and the preceding or succeeding page thereof. As a result, a defect such as smudge in the inspection target page is highly accurately detected.
Note that, in the above-described example, since the reference position marker is printed at start of each page, the reference position marker on the succeeding page that is a page adjacent in the conveyance direction of the roll sheet through the inspection target page is used for alignment. Similarly, in a case where one reference position marker is printed at end of each page, the reference position marker on the preceding page that is a page adjacent in the conveyance direction of the roll sheet through the inspection target page can be used to highly accurately align the inspection target image with the reference image.
In a case where the inspection target page is the end page, a marker position on the succeeding page of the end page is estimated and used based on the relative distance between the reference position markers on pages which is calculated from the document data and printing job information of the printed material. Similarly, in a case where the inspection target page is the start page, a marker position on the preceding page of the start page may be estimated based on the relative distance between the reference position markers on pages, which is calculated from the document data and printing job information of the printed material, to perform alignment.
Note that in a case where the length of the end page in the conveyance direction of the roll sheet is longer than a predetermined threshold value, the desynchronization between the speed of scanning the printed material with the scanner 105 and the speed of roll sheet conveyance by the printing apparatus 190 accumulates and the accuracy of estimating a marker position on the succeeding page decreases. In this case, the CPU 101 may warn and notify the user that the estimation accuracy decreases.
The CPU 101 may store history data of the detected position of the reference position marker detected on the preceding page of the inspection target page in the RAM 102. In a case where the currently detected pixel position of the reference position marker is an outlier as compared to history data, the CPU 101 may use a pixel position estimated from the history data in place of the pixel position of the reference position marker as the outlier. According to the present disclosure, an image obtained by reading the printed material can be highly accurately aligned with an inspection reference image even in a case where only one marker is printed per inspection unit region.
A modification of the first embodiment will be described below with reference to
As illustrated in
The process of the image processing in the present modification has the same content as in the above description with reference to
At S301, the CPU 101 (scanned image obtaining unit 201) obtains a scanned image (inspection target image) of an inspection target page, which is stored in the RAM 102 or the main storage device 104. In the present modification, the inspection target image 1201 illustrated in
Note that, for example, the inspection target image 1201 illustrated in
In addition, a point defect 1203 is included in the inspection target image 1201. The defect 1203 is, for example, a droplet of ink dropping from the print head 402 and unintentionally adhering to the printed material.
At S302, the CPU 101 (scanned image obtaining unit 201) obtains a scanned image of the preceding page of the inspection target page, which is stored in the RAM 102 or the main storage device 104. In the present modification, since one reference position marker is printed end of each page, the CPU 101 obtains the preceding image 1204 as illustrated in
Reference image inputting processing at S303 is the same as in the first embodiment.
At S304, the CPU 101 generates an aligned image by aligning the scanned image (inspection target image 1201) of the inspection target page with the reference position based on the detected positions of the reference position markers 1202 and 1205 on the scanned images of the inspection target page and the preceding page.
The procedure of the aligned image generation processing is the same as the procedure of the processing illustrated in
The start page will be described below. The CPU 101 performs the edge detection processing on a scanned image (inspection target image) 1210 of the start page and detects, as representative positions, a pixel at, for example, an upper-left edge part of the marker A01 for discharge position error correction at start, and a pixel at, for example, a lower-left edge part of the reference position marker 1214 at end. The CPU 101 binarizes the scanned image 1210 of the start page and detects the right and left ends of the sheet. Thereafter, the CPU 101 determines the positions of the four corners of the scanned image 1210 of the start page based on the detected representative positions of the marker A01 and 1214 and the detected right and left ends of the sheet.
The CPU 101 aligns the scanned image 1210 of the start page with a reference position based on the determined positions of the four corners of the inspection target page. The reference position is calculated from the document data and printing job information of the printed material and scanning timing. Further, the CPU 101 generates an aligned image by aligning characteristic points on the aligned scanned image 1210 and the reference image.
Through the above-described image processing, a scanned image can be highly accurately aligned with a reference position in a case where one reference position marker for alignment is printed at end of each page. In a case where a marker of other usage than a reference position marker on a print image is printed at start of the start page of a printing job, the marker for other usage and the reference position marker at page end can be used for alignment so that all pages including the start page can be highly accurately aligned.
In the first embodiment, description is made of the method of aligning a scanned image of an inspection target page with a reference position by using one reference position marker printed at start or end of each page. However, part of the reference position marker potentially protrudes out of the scanned image due to the desynchronization between the scanning speed of the scanner 105 and the speed of roll sheet conveyance by the printing apparatus 190 or scanning timing difference (difference of the start time of scanning from a designed value). As a result, the accuracy of detecting the reference position marker decreases in some cases.
Thus, in a second embodiment, a reference position marker having a characteristic end part shape is used. In a case where the reference position marker protrudes out of a scanned image of an inspection target page, the image processing apparatus 100 determine a representative position of the reference position marker by using part of the reference position marker, that is, a non-protruding part of the reference position marker.
Note that, in the second embodiment, one reference position marker is printed at start of each page and the inspection target image 1301 entirely includes a reference position marker 1302 on the inspection target page.
The process of the aligned image generation processing in the second embodiment will be described below.
At S1401, the CPU 101 detects a marker position on the inspection target page. At S1401, the CPU 101 determines whether the reference position marker 1302 on the inspection target image 1301 protrudes out of the inspection target image 1301. In a case where the reference position marker 1302 protrudes, a representative position of the reference position marker is estimated based on a partial region of the reference position marker 1302. In a case where the reference position marker 1302 does not protrude, a representative position of the reference position marker is determining based on the entire reference position marker. Details of marker position detection processing will be described later with reference to
At S1402, similarly to S601, the CPU 101 determines whether the inspection target image 407 is the start page or end page of printing. In a case where the reference position marker is printed at start of each page and it is determined that the inspection target image is the end page at S1402, the CPU 101 determines that no reference position marker is printed on the succeeding page, and proceeds to S1403. In a case where the inspection target page is not the end page, the CPU 101 determines that the reference position marker is printed on the succeeding page, and proceeds to S1404.
Note that in a case where the reference position marker is printed at end of each page, the CPU 101 determines whether the inspection target page is the start page at S1402, and proceeds to S1403 in a case where the inspection target page is the start page.
At S1403, similarly to S603, the CPU 101 estimates a marker position on the preceding page of the start page or the succeeding page of the end page. In the present embodiment, no reference position marker is printed on the succeeding page of the end page. Thus, the pixel position of the reference position marker on the succeeding page is estimated based on the pixel position of the reference position marker 407 of the inspection target image 406 detected at S1401. The CPU 101 stores the estimated position of the reference position marker on the succeeding page in a predetermined storage region (for example, the RAM 102).
At S1404, the CPU 101 detects a marker position on the preceding or succeeding page. At S1404, the CPU 101 determines whether the reference position marker 1304 on a scanned image of the preceding or succeeding page protrudes out of the scanned image. In the second embodiment, since the reference position marker is printed at start of each page, it is determined whether the reference position marker 1304 on the scanned image (succeeding image) 1303 of the succeeding page protrudes out of the succeeding image 1303.
In a case where the reference position marker 1304 protrudes, the position of the reference position marker is estimated based on a partial region of the reference position marker. In a case where the reference position marker 1304 does not protrude, a representative position of the reference position marker is determined based on the entire reference position marker 1304. Details of the marker position detection processing will be described later with reference to
the representative position of the reference position marker detected at S1401 and S1404 is stored in a predetermined storage region.
Details of the marker position detection processing at S1401 and S1404 will be described below.
At S1501, the CPU 101 (aligned image generating unit 203) detects a characteristic part (marker characteristic part) of the reference position marker from a scanned image (the inspection target image 1301 or the succeeding image 1303). The marker characteristic part is, for example, an end point of the reference position marker or the intersection point of lines constituting the reference position marker. The CPU 101 detects an edge part pixel from the reference position marker 1302 by performing edge detection processing such as Sobel filter processing or Harris corner detection processing on the target image 1301 and sets the detected edge part pixel as the marker characteristic part.
In the present embodiment, whether all marker characteristic parts are detected is determined by comparing the number of detected edge parts with a predetermined threshold value. For example, the number of marker characteristic parts (edge parts) is six for the reference position marker 1302 in the shape illustrated in
Similarly, the CPU 101 detects any marker characteristic part from the succeeding image 1303 illustrated in
At S1502, the CPU 101 determines whether all marker characteristic parts are detected by comparing the number of marker characteristic parts detected from the reference position marker on the scanned image with a threshold value set in advance. In the present embodiment, as described above, the threshold value is set to six. Specifically, in a case where the number of edges of the reference position marker detected from the scanned image is six, the CPU 101 determines that the reference position marker does not protrude, and proceeds to S1503. In a case where the number of edges of the reference position marker detected from the scanned image is smaller than six, the CPU 101 determines that the reference position marker protrudes, and proceeds to S1504.
At S1503, the CPU 101 determines the position of the reference position marker by using all marker characteristic parts detected at S1501. In the example illustrated in
At S1504, the CPU 101 estimates the position of the reference position marker by using some of the detected marker characteristic parts. In the example illustrated in
Specifically, the CPU 101 performs template matching processing on the succeeding image 1303 by using a template image 1611 of the lower part of the reference position marker, which is illustrated in
After the representative position of the reference position marker is determined through the processing at $1503 and S1504, the processing of the present flowchart is ended.
By performing the processing of the flowchart in
Note that although the example in which the reference position marker is printed at start of each page and an upper part of the reference position marker protrudes is described above, the present embodiment is also applicable to a case where a lower part of the reference position marker protrudes.
Specifically, the CPU 101 performs the template matching processing by using a template image corresponding to a non-protruding marker characteristic part and detects a position of matching with the template image. Then, the representative position of the reference position marker is determined based on the position of matching with the template image and the print size of the reference position marker, which is calculated from the document data of the printed material. In a case where one reference position marker is printed at end of each page, the pixel position of the lower-left edge of the reference position marker on scanned image data of the inspection target page and the preceding page is determined as the representative position of the reference position marker.
The subsequent processing (S1405 to S1409) is the same as in the first embodiment (S605 to S609).
Accordingly, the image processing apparatus 100 can highly accurately align the inspection target image with the reference position. In particular, even in a case where one reference position marker printed at page start or end protrudes out of a scanned image due to the desynchronization between the scanning speed of the scanner 105 and the roll sheet conveyance speed, the representative position of the marker is estimated from a partial region of the reference position marker. Accordingly, the inspection target image can be highly accurately aligned with the reference position.
Note that the shape of the reference position marker only needs to be a shape with which protrusion in the up-down direction (sheet conveyance direction) can be determined. Thus, the reference position marker may have a vertically characteristic shape such as an edge and is not limited to the shape of the reference position marker 1302 in
In the first and second embodiments, description is made of the method of aligning a scanned image of an inspection target page with a reference position by detecting the position of one reference position marker printed at start or end of each page. However, for example, in the printing apparatus 190 of an ink jet scheme, image degradation such as bleeding occurs to the reference position marker on a particular page due to an unexpected discharge defect of a print head, and detection of the reference position marker fails in some cases.
In a third embodiment, description will be made of a method by which, even in a case where detection of the reference position marker fails, a scanned image is highly accurately aligned with a reference position based on the position of the reference position marker on each of the preceding and succeeding pages of an anomaly page on which detection fails.
As illustrated in
One reference position marker is printed at start of each page, and reference position markers 1704 to 1706 are included in the respective scanned images 1701 to 1703 of the (i−1) to (i+1)-th pages. Furthermore, a reference position marker 1705 on the i-th page bleeds due to an unexpected discharge defect of the print head 402 at printing of an inspection target page.
At S1801, similarly to S601, the CPU 101 detects the pixel position (representative position) of a reference position marker on the inspection target image.
At S1802, similarly to S604, the CPU 101 detects the pixel position (representative position) of a reference position marker on the preceding or succeeding page.
In the present embodiment, the position of a pixel at the upper-left edge part among pixels at edge parts of each detected reference position marker is set as the representative position of the reference position marker. The representative positions of the reference position markers on the respective pages, which are detected at S1801 and S1802 are stored in a predetermined storage region (for example, the RAM 102).
Subsequently at S1803, the CPU 101 determines whether the reference position marker on the inspection target page is normally detected. In a case where the detected position of the reference position marker on the target image, which is detected at S1801 is stored in the predetermined storage region (for example, the RAM 102), the CPU 101 determines that the reference position marker is normally detected (YES at S1803), and proceeds to S1804. In a case where no detected position of the reference position marker is stored in the predetermined storage region (for example, the RAM 102), the CPU 101 determines that the inspection target page is an anomaly page on which detection of the reference position marker fails (NO at S1803), and proceeds to S1808.
For example, in a case where the inspection target page is the (i−1)-th page illustrated in
At S1804, the CPU 101 determines whether the reference position marker on the preceding or succeeding page is normally detected. In the present embodiment, since the reference position marker is printed at page start, the determination is made on the succeeding page.
The CPU 101 determines whether the detected position of the reference position marker on the scanned image of the succeeding page, which is detected at S1802 is stored in the predetermined storage region (for example, the RAM 102), thereby determining whether the reference position marker is normally detected. In a case where the detected position of the reference position marker is stored in the predetermined storage region, the CPU 101 determines that the reference position marker on the succeeding page is normally detected, and proceeds to S1811. In a case where no detected position of the reference position marker is stored in the predetermined storage region, the CPU 101 determines that the succeeding page is an anomaly page on which detection of the reference position marker fails, and proceeds to S1805.
For example, in a case where the inspection target page is the (i−1)-th page, position detection of the reference position marker 1705 bleeding on the scanned image data 1702 of the succeeding page (i−th page) fails. Thus, the CPU 101 determines that the succeeding page is an anomaly page on which position detection of the reference position marker fails, and proceeds to S1805.
At S1805, the CPU 101 determines whether a page exists two pages after (or two pages before) the inspection target page. In a case where the reference position marker is printed at start of each page, the inspection target page is aligned with the reference image by using the reference position markers on the inspection target page and the succeeding page. In a case where it is determined at S1804 that the reference position marker on the succeeding page is anomalous, it is determined whether its succeeding page, in other words, a page two pages after the inspection target page exists.
Similarly, in a case where the reference position marker is printed at end of each page, the inspection target page is aligned with the reference image by using the reference position markers on the inspection target page and the preceding page. In a case where it is determined at S1804 that the reference position marker on the preceding page is anomalous, it is determined whether its preceding page, in other words, a page two pages before the inspection target page exists.
The CPU 101 proceeds to S1806 in a case where a page exists two pages after (or two pages before) the inspection target page, or the CPU 101 proceeds to S1807 in a case where no page exists two pages after (or two pages before) the inspection target page. Note that the case where no page exists two pages after (or two pages before) the inspection target page is that the inspection target page is the preceding page (or the succeeding page of the start page) of the end page.
At S1806, the CPU 101 detects the position of the reference position marker on the page two pages after (or two pages before) the inspection target page. The CPU 101 stores the detected pixel position of the reference position marker in the predetermined storage region (for example, the RAM 102). For example, in a case where the inspection target page is the (i−1)-th page, the CPU 101 detects the pixel position of the reference position marker 1706 on the scanned image 1703 of the (i+1)-th page two pages after.
Detection of the pixel position of the reference position marker is the same as the above-described detection processing. Specifically, the CPU 101 determines, as the representative position of the reference position marker, the position of a pixel at the upper-left edge among pixels at edge parts of the reference position marker 1706 detected from the scanned image 1703 of the (i+1)-th page.
At S1807, the CPU 101 estimates a marker position on the succeeding page (or the preceding page) of the inspection target page. The marker position estimation may be performed in the same manner as at S603. Specifically, the CPU 101 calculates the relative distance between the reference position markers on pages, which is calculated from the document data and printing job information of the printed material. The pixel position of the reference position marker 410 on the succeeding page can be estimated by adding the calculated relative distance to the pixel position of the reference position marker on the inspection target page, which is detected at S1801. Note that this estimation method is exemplary and the present invention is not limited to the method.
At S1808, the CPU 101 determines whether the reference position marker on the preceding or succeeding page is normally detected. In the present embodiment, since the reference position marker is printed at page start, the determination is made for the succeeding page. The CPU 101 determines whether the reference position marker is normally detected by determining whether the detected position of the reference position marker on the scanned image of the succeeding page, which is detected at S1802 is stored in the predetermined storage region (for example, the RAM 102).
In a case where the detected position of the reference position marker is stored in the predetermined storage region, the CPU 101 determines that the reference position marker on the succeeding page is normally detected, and proceeds to S1809. In a case where no detected position of the reference position marker is stored in the predetermined storage region, the CPU 101 determines that the succeeding page is an anomaly page on which detection of the reference position marker fails, and proceeds to S1810.
At S1809, the CPU 101 obtains the representative position of the reference position marker on the scanned image of the preceding page of the inspection target page, which is stored in the predetermined storage region at aligned image generation for the preceding page. In the present embodiment, in a case where the inspection target page is the i-th page, the representative position of the reference position marker 1704, which is stored in the predetermined storage region (for example, the RAM 102) at aligned image generation for the scanned image 1701 of the (i−1)-th page is input.
Note that the determination at S1808 is made for the preceding page in a case where the reference position marker is printed at page end. The CPU 101 determines that the reference position marker on the preceding page is normally detected in a case where the detected position of the reference position marker on the scanned image of the preceding page, which is detected at S1802 is stored in the predetermined storage region (for example, the RAM 102). In this case, the CPU 101 obtains the reference position marker on the preceding page and proceeds to S1809. At S1809, the CPU 101 obtains the representative position of the reference position marker on the scanned image of the succeeding page of the inspection target page.
At S1810, the CPU 101 determines that detection of the reference position marker fails on the inspection target page and the preceding or succeeding page and thus the two continuous pages are anomaly pages, and performs error notification. The CPU 101 notifies error to the printing apparatus 190 or the UI panel 108, and thereafter ends the present flowchart.
In the case of YES at S1804 or after the processing at S1806, S1807, or S1809, the CPU 101 proceeds to processing at S1811 and later. Processing at S1811 to S1815 is the same as the processing at S605 to S609, but calculation of the positions of the four corners is different depending on a page on which the reference position marker is detected (estimated).
The CPU 101 binarizes the inspection target image at S1811 and detects the right and left ends of the sheet in the binarized target image at S1812.
At S1813, the CPU 101 determines the positions of the four corners of the inspection target page.
Thus, in a case where the reference position marker on the inspection target page is normally detected and no reference position marker is detected on the adjacent image, the aligned image generating unit 203 (CPU 101) generates an aligned image based on the reference position marker detected on the inspection target image and the reference position marker detected on another image adjacent to the adjacent image.
Thus, in a case where the reference position marker on the inspection target image is normally detected, no reference position marker is detected on the adjacent image, and no other image adjacent to the adjacent image is obtained, the aligned image generating unit 203 (CPU 101) estimates the position of the reference position marker on the adjacent image based on the position of the reference position marker detected on the inspection target image and the relative distance between the reference position markers on inspection unit regions (pages), which is determined based on the document data and the printing job information, and generates an aligned image based on the estimated position of the reference position marker and the position of the reference position marker detected on the inspection target image.
Note that the above-described (1) to (5) aspects are examples in a case where the reference position marker is printed at start of each page. In a case where the reference position marker is printed at end of each page, the aspects are applicable with the preceding and succeeding pages interchanged.
The CPU 101 generates an aligned image by aligning the positions of the four corners with the reference position on the reference image at S1814, aligns characteristic points on the aligned image and the reference image at S1815, and thereafter executes the inspection processing.
As described above, in a case where detection of the position of the reference position marker fails on a particular page, the CPU 101 performs alignment by using the reference position markers on the preceding and succeeding pages of an anomaly page on which the detection fails. Accordingly, alignment can be performed by using the two markers, and thus a scanned image can be highly accurately aligned with the reference position.
Note that a marker position on an anomaly page may be estimated by interpolation or the like based on the detected position of the reference position marker on a page where the reference position marker is normally detected.
Although the scanned image of the inspection target page is aligned by using two reference position markers the positions of which are normally detected in the above-described example, the scanned image of the inspection target page may be aligned by using three or more reference position markers.
In the third embodiment, description is made of the example in which one reference position marker is printed at the same position on each page (inspection unit region), and even in a case where a reference position marker is anomalous, the scanned image of the inspection target page is aligned with the reference position based on detected positions of the preceding and succeeding markers. As a modification thereof, an example in which the alignment is performed by using a reference position marker printed at a different position on each page in accordance with the size of the page will be described below.
For example, in a case where two kinds of document data with different document sizes are alternately printed, the distance between reference position markers is long or short depending on pages if the reference position markers are printed at the same position (for example, start) on the respective pages. In such a case, the reference position markers may be printed at different positions on the pages as illustrated in
For example, in a case where pages with short and long lengths in the conveyance direction of the roll sheet are alternately printed, reference position markers 1901 and 1903 are marked at page start on short pages 1905 and 1907 and a reference position marker 1902 is marked at page center on a long page 1906.
In a case where a scanned image of the second page is aligned as the inspection target page, the CPU 101 detects the positions of three of the reference position marker 1902 at page center and the reference position markers 1901 and 1903 on the first and third pages. Then, the scanned image (inspection target image) of the second page is aligned with the reference position by using the three reference position markers.
Specifically, the positions of the four corners of the scanned image of the second page are determined by using the reference position markers 1901 and 1903 on the first and third pages, and the positions of the four corners are aligned with the reference position by additionally using the reference position marker 1902 on the second page. Accordingly, the alignment can be highly accurately performed without imbalance between pages.
In a case where a defect is detected in the inspection processing, an image 701 illustrating an inspection result is displayed on the UI panel 108 (
For example, in a case where the positions of reference position markers on the inspection target page and the succeeding page, which should be detected at the positions of a point P(xp, yp) and a point Q(xq, yq) are detected at the positions of a point P′(xp, yp+Δy) and a point Q′(xq, yq+Δy), respectively, shifted by Δy in the conveyance direction, an image with positional shift of −Δy in the conveyance direction is generated at alignment with the reference position.
Thus, in a fourth embodiment, the detected position of a reference position marker on the preceding or succeeding page is displayed in addition to display of an inspection result so that the user can easily visually recognize error in the detected position of the marker.
As illustrated in
The display control unit 2001 generates a display image of the vicinity region of the reference position marker on the preceding or succeeding page based on the representative position of the reference position marker on the preceding or succeeding page, which is detected in a process of generating aligned image and an input scanned image of the preceding or succeeding page. The display control unit 2001 outputs the generated display image to the printing apparatus 190 or displays the generated display image on the UI panel 108.
At S2105, the CPU 101 (display control unit 2001) generates a display image including the vicinity region of the reference position marker based on the scanned image of the preceding or succeeding page, and outputs the generated display image to the printing apparatus 190 or displays the generated display image on the UI panel 108.
In the present embodiment, one reference position marker is printed at start of each page. In the aligned image generation processing at S2104, the pixel positions P407 (x407, y407) and P410 (x410, y410) of the reference position marker 407 on the scanned image 406 of the inspection target page and the reference position marker 410 on the scanned image 409 of the succeeding page are detected as illustrated in
In this case, the CPU 101 clips an image (marker vicinity image 2201) of the vicinity of the representative position P410 (x410, y410) of the reference position marker 410 on the succeeding page and displays the clipped image together with an inspection result image.
With the image processing described above, the user can easily visually recognize the detected position of the reference position marker on the preceding or succeeding page in a case where a defect is detected at inspection, and accordingly can check existence of positional shift due to error in the detected position of the marker.
Note that the CPU 101 may display the representative position of the reference position marker in an emphasized manner in the marker vicinity image 2201 so that the user can more easily visually recognize the position of the reference position marker. For example, in the example of
Moreover, a detection setting region of the reference position marker 410 may be displayed in an emphasized manner with a rectangle 2203 or the like as illustrated in
As illustrated in
As illustrated in
The display setting operation unit 2205 is an operation unit through which setting of display and non-display of the marker vicinity image 2201 is input. For example, such an operation is received that switches “always ON” for constantly displaying the marker vicinity image 2201, “ON at inspection failure” for displaying the marker vicinity image 2201 only in a case where a defect is found in the inspection processing, “always OFF” for not constantly displaying the marker vicinity image 2201, and the like. Note that the display setting operation unit 2205 is not limited to the example of
As described above, according to the fourth embodiment, in a case where a defect is detected in the inspection processing, an image of the vicinity of the reference position marker on the preceding or succeeding page is displayed together with an image illustrating an inspection result. Thus, the user can visually check whether the defect detected in the inspection processing is detected due to positional shift caused by error in the detected position of the marker, and accordingly, usability improves.
A modification of the fourth embodiment will be described below with reference to
In the fourth embodiment, description is made of the method of displaying the detected position of the reference position marker on the preceding or succeeding page so that the user can easily visually recognize the detected position in a case where a defect is detected in the inspection processing. However, in a case where the reference position marker on the preceding page of the start page or the succeeding page of the end page is estimated at S603 described above (in the first embodiment), for example, only a mark of an estimated position is illustrated on a white blank of the roll sheet even if an image of the vicinity of the estimated position is displayed as the marker vicinity image 2201. Thus, it is difficult for the user to check the accuracy of estimating the estimated position.
In Modification 2, description will be made of a method of displaying image data of the vicinity region of the reference position marker on the start page or the end page in superimposition so that the user can easily visually recognize the accuracy of estimating an estimated position of the reference position marker on the preceding page of the start page or the succeeding page of the end page.
At S2301, the CPU 101 determines whether the inspection target page is the start or end page. In a case where the inspection target page is the start or end page (YES at S2301), the CPU 101 proceeds to S2302. In a case where the inspection target page is not the start nor end page (NO at S2301), the CPU 101 proceeds to S2305. For example, in a case where the reference position marker is printed at start of each page, whether the inspection target page is the end page is determined at S2301. In a case where the reference position marker is printed at end of each page, whether the inspection target page is the start page is determined at S2301.
At S2302, the CPU 101 generates a display image of the detected position of the reference position marker on the start or end page. In a case where one reference position marker is printed at start of each page, a marker vicinity image 2401 including the vicinity region of the detected position of a reference position marker 2402 on the end page (N-th page) is generated as illustrated in
The marker vicinity image 2401 is clipped to include a part 2403 of a print image included in a scanned image of the preceding page ((N−1)-th page) of the end page (N-th page) so that the user can easily visually recognize the accuracy of estimating the position of a reference position marker estimated after the end page.
At S2303, the CPU 101 generates a display image of the estimated position of the reference position marker on the preceding page of the start page or the succeeding page of the end page. In the present embodiment, since one reference position marker is printed at start of each page, an image 2411 of the vicinity of an estimated position 2413 of the reference position marker on the succeeding page ((N+1)-th page) of the end page (N-th page) is generated as the display image as illustrated in
The white blank region 2415 and the sheet outside region 2412 are scanned images of the succeeding page ((N+1)-th page) on which nothing is printed. The estimated position 2413 of the reference position marker on the succeeding page ((N+1)-th page) is not scanned in reality, and accordingly, the image 2411 includes nothing corresponding to a marker. The generated image 2411 is clipped to include the part 2404b (lower-left corner part) of the print image of the end page (N-th page) so that the user can easily visually recognize the accuracy of the estimated position of the reference position marker.
At S2304, the CPU 101 superimposes the image 2401 of the vicinity of the detected position of the reference position marker on the start or end page, which is generated at S2302, and the image 2411 of the vicinity of the estimated position of the reference position marker on the preceding or succeeding page, which is generated at S2303. In the present embodiment, a superimposed image 2421 in which the marker vicinity image 2401 of the vicinity of the detected position of the reference position marker 2402 on the end page and the image 2411 of the vicinity of the estimated position of the reference position marker on the succeeding page of the end page are superimposed on each other is generated as illustrated in
The user can infer the accuracy of the estimated position of the reference position marker by visually recognizing a positional shift between the print image 2403 of the preceding page of the end page and the print image 2404b of the end page, which are included in the superimposed image 2421. Specifically, in a case where there is a positional shift between the print image 2403 of the preceding page of the end page and the print image 2404b of the end page, it can be inferred that there is some shift in the estimated position of the reference position marker. It can be inferred that the estimated position of the reference position marker on the succeeding page is more accurately estimated as the positional shift is smaller.
At S2305, the CPU 101 generates an image (marker vicinity image) of the vicinity of the detected position of the reference position marker on the preceding or succeeding page. For example, in a case where one reference position marker is printed at start of each page, a marker vicinity image 2431 of the vicinity of the detected position of the reference position marker on the succeeding page is generated as illustrated in
At S2306, the CPU 101 performs emphasized display processing on the marker vicinity image 2431 generated at S2305 or the superimposed image 2421 generated at S2304. For example, the CPU 101 performs the emphasized display processing of illustrating a mark at the detected position (representative position) or estimated position of the reference position marker.
In a case of performing the emphasized display processing on the superimposed image 2421, the CPU 101 generates an emphasized display image 2441 as illustrated in, for example,
As described above, in a case of displaying the estimated position of the reference position marker on the preceding page of the start page or the succeeding page of the end page, the CPU 101 in Modification 2 displays an image of the vicinity of the marker detected position on the preceding or succeeding page in superimposition. Accordingly, the user can infer the estimation accuracy.
In each above-described embodiment, the position of the reference position marker on the preceding page of the start page or the succeeding page of the end page is estimated based on the document data and printing job information of the printed material and scanning timing. However, in a case where the length of the end page in the conveyance direction of the roll sheet is longer than a predetermined threshold value, the desynchronization between the speed of scanning the printed material with the scanner 105 and the speed of roll sheet conveyance by the printing apparatus 190 accumulates and the estimation accuracy potentially decreases.
Thus, in a fifth embodiment, reference position markers are printed at start and end of the start page or the end page, and a scanned image of the start page or the end page is aligned with the reference position by using the two reference position markers.
In the present embodiment, one reference position marker is printed at start of each page.
At S2501, the CPU 101 determines whether the inspection target page is the start or end page. In the present embodiment, since one reference position marker is printed at start of each page, whether the inspection target page is the end page is determined at S2501. In a case where the inspection target page is the end page (YES at S2501), the CPU 101 proceeds to S2502. In a case where the inspection target page is not the end page (NO at S2501), the CPU 101 skips S2502 and proceeds to S2503.
Note that in a case where one reference position marker is printed at end of each page, whether the inspection target page is the start page is determined at S2501 and the CPU 101 proceeds to S2502 in a case where the inspection target page is the start page. Otherwise, the CPU 101 proceeds to S2503.
At S2502, the CPU 101 generates print document data in which reference position markers are added at start and end of the end page as the inspection target page.
Printing is performed based on the printing document data 2601 output to the printing apparatus 190. The roll sheet subjected to the printing is sequentially conveyed to the scanner 105 and a print image on the roll sheet is read by the scanner 105. Scanned image data thus read is stored in the RAM 102 or the main storage device 104.
At S2503, similarly to S301, the CPU 101 obtains a scanned image (inspection target image) of the inspection target page, which is stored in the RAM 102 or the main storage device 104.
At S2504, similarly to S302, the CPU 101 obtains a scanned image of the preceding or succeeding page of the inspection target page, which is stored in the RAM 102 or the main storage device 104. In the present embodiment, since the reference position marker is printed at start of each page, the scanned image (the succeeding image) of the succeeding page is obtained.
At S2505, similarly to S303, the CPU 101 obtains the reference image stored in the RAM 102 or the main storage device 104.
At S2506, similarly to S304, the CPU 101 detects the reference position markers on the inspection target image and the succeeding image and generates an image (aligned image) by aligning the inspection target image with the reference positions of the above-described reference image based on positions thus detected. The processing of generating the aligned image of the end page at S2506 will be described later.
At S2507, similarly to S305, the CPU 101 inspects whether a defect exists on a print image of the inspection target page by pixel value comparison between the aligned image of the inspection target page and the reference image. The CPU 101 (inspecting unit 204) outputs, as an inspection result to the printing apparatus 190 or the UI panel 108, the defect image data 701 indicating the pixel region of the detected defect 408 as illustrated in, for example,
At S2701, similarly to S601, the CPU 101 detects the representative position of the reference position marker on the scanned image (inspection target image) of the inspection target page. For example, in a case where the reference position marker is printed at page start, the CPU 101 detects, as the representative position of the reference position marker, the pixel position of the upper-left edge detected by the edge detection processing. In a case where the reference position marker is printed at page end, the CPU 101 detects the pixel position of the lower-left edge as the representative position of the reference position marker.
At S2702, the CPU 101 determines whether the inspection target page is the start or end page of printing. In the present embodiment, since the reference position marker is printed at start of each page, whether the inspection target page is the end page is determined. In a case where the inspection target page is the end page, the CPU 101 proceeds to S2703. In a case where the inspection target page is not the end page, the CPU 101 proceeds to S2704.
At S2703, the CPU 101 detects the representative position of a reference position marker (hereinafter referred to as an additional marker) added at end of the end page. The detected representative position of the additional marker is stored in the predetermined storage region. In the present embodiment, the CPU 101 performs edge detection processing such as Sobel filter processing or Harris corner detection processing on a scanned image 2604 of the end page, which is illustrated in
Through the processing at S2703, the pixel position of a detected pixel 2605 at the upper-left edge part of the reference position marker 2602 is detected as a representative position P2602 (x2602, y2602) of the reference position marker 2602. In addition, the pixel position of a pixel 2606 at the lower-left edge part of the additional marker 2603 is detected as a position P2603 (x2603, y2603) of the additional marker 2603.
At S2704, similarly to S604, the CPU 101 detects the representative position of the reference position marker on the preceding or succeeding page (in the present embodiment, the succeeding page). The detected representative position of the reference position marker is stored in the predetermined storage region (for example, the RAM 102). The pixel position of the upper-left edge part of the reference position marker on the succeeding page is detected as the representative position of the reference position marker 410.
Subsequent processing at S2705 to S2709 is the same as the processing at S605 to S609 in
As illustrated in
In a case where the scanned image data 2604 is aligned with the reference position by using the reference position markers 2602 and 2603 at start and end of the end page, the alignment can be performed with expansion and contraction in the Y direction taken into account. Thus, the y coordinate errors at the y coordinates of the reference position markers 2602 and 2603 after the alignment are Δy(y′2602)=Δy(y′2603)=0.
With the image processing described above, reference position markers printed at start and end of the start page or the end page are detected and the scanned image of the start page or the end page can be highly accurately aligned with the reference position.
In the present embodiment, reference position markers printed at page start and end are detected only for the start page or the end page, but for example, a job start or end reference position marker printed at start of the start page or end of the end page of a printing job may be used for alignment. Thus, alignment may be performed by using reference position markers with different designs among pages, and in particular, designs of reference position markers do not necessarily need to be identical among pages.
Although the embodiments of the present disclosure are described above with reference to the accompanying drawings, the present disclosure is not limited to such examples. Image processing and display processing described above in the embodiments may be combined as appropriate. Moreover, it should be understood that various modified examples or corrected examples that the skilled person in the art would thought of in the scope of the technical idea disclosed in the present application belong to the technical scope of the present disclosure.
Embodiment(s) of the present disclosure can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present disclosure has been described with reference to exemplary embodiments, it is to be understood that the disclosure is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2023-129323 | Aug 2023 | JP | national |