Image processing device and image processing method

The image processing device addresses the issue of printed matter protrusion detection by setting tolerance values and using dedicated units to detect deviations, ensuring accurate inspection results.

JP7596124B2Active Publication Date: 2024-12-09CANON KK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2020186563
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-09
Publication Date
2024-12-09
Estimated Expiration
2040-11-09

AI Technical Summary

Technical Problem

Existing image processing systems fail to accurately detect when printed matter protrudes from the imaging range, leading to erroneous defect detection due to extrapolation of pixel values in protruding areas, which can occur with varying paper sizes and transport position deviations.

Method used

An image processing device that acquires printing paper size, sets tolerance values based on device and print settings, and includes units for detecting protrusions and conveyance position deviations, allowing for precise detection of protrusions and abnormalities.

Benefits of technology

Enables accurate detection of printed matter protrusions and conveyance position deviations, ensuring reliable inspection by excluding non-inspection areas and correcting for transport misalignments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007596124000006
    Figure 0007596124000006
  • Figure 0007596124000007
    Figure 0007596124000007
  • Figure 0007596124000008
    Figure 0007596124000008
Patent Text Reader

Abstract

To properly detect protrusion when a printed matter protrudes from an imaging range.SOLUTION: An image processing device according to the present invention comprises: a printing setting acquisition unit which acquires a print sheet size; a protrusion permissible value setting unit which sets a permissible value of protrusion of the printed matter from the imaging range from the size; an image acquisition unit which acquires a scan image of the printed matter; a protrusion detection unit which detects protrusion of the printed matter from the imaging range from the scan image; and a conveyance positional deviation abnormality detection unit which detects a conveyance positional deviation abnormality from the protrusion permissible value and the result of the protrusion detection.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to image processing for inspecting printed matter for defects. [Background technology]

[0002] Inspection work is sometimes carried out to ensure that printed matter is free of defects and of acceptable quality. For example, image data of a good printed matter (hereafter referred to as reference image data) is created in advance. Next, image data of the printed matter to be inspected (hereafter referred to as print image data) is obtained by scanning or photographing, etc. Then, the inspection is carried out by comparing these two image data.

[0003] When acquiring print image data by scanning or photographing, a part of the printed matter may be outside the imaging range and cannot be read. In such a case, if pixel values ​​are extrapolated for the protruding area and the reference image data and the print image data are compared, the protruding area may be erroneously detected as a defect. Regarding this issue, Patent Document 1 discloses a method for suppressing erroneous detection of the protruding part by setting the protruding area as a non-inspection area and excluding it from inspection. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2004-310726 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, depending on the size of the paper, the size of the imaging range, and the magnitude of possible misalignment in the transport position, it may be desirable to detect the print going outside the imaging range as an abnormality. For example, consider the case shown in Figure 1[a]. In this case, if the print goes outside the imaging range, it may go outside the imaging range.

[0006] In addition, in Fig. 1[b], the printing paper is sufficiently small compared to the imaging range, and even if the maximum conveying position deviation amount is taken into consideration, the printing paper will not normally go beyond the imaging range. In such a case, if the printing paper goes beyond the imaging range, it is considered that some kind of abnormality has occurred in the conveying device, so it is preferable to issue a warning about a conveying position deviation abnormality.

[0007] An object of the present invention is to preferably detect protrusion when a printed matter protrudes from an imaging range. [Means for solving the problem]

[0008] The image processing device according to the present invention acquires the print paper size. No. 1 acquisition means And the above Printing paper size Based on , printed matter Reading of reading means Out of range For the part Setting tolerances means and obtain a scanned image of the printout. Second acquisition means and the protruding portion of the scanned image is The part detection The first detection means the tolerance and the result of the detection Based on Detecting conveyor position deviations Second detection means The present invention is characterized by comprising: Effect of the Invention

[0009] According to the present invention, when a printed matter protrudes from an imaging range, the protrusion can be suitably detected. [Brief description of the drawings]

[0010] [Figure 1] FIG. 2 is a diagram showing a printing paper and an imaging range. [Diagram 2] FIG. 1 is a diagram showing the overall configuration of a printing system including an image processing apparatus. [Diagram 3] FIG. 2 is a block diagram showing the functional configuration of the image processing apparatus. [Figure 4] 1 is a flowchart of the first embodiment. [Diagram 5] Schematic diagram of the inspection area. [Figure 6] An example of a scanned image where the print is outside the imaging range. [Figure 7] 4 is a flowchart of protrusion detection processing according to the first embodiment. [Figure 8] 6 is a flowchart of a conveying position deviation abnormality detection process according to the first embodiment. [Figure 9] 13A to 13C are diagrams for explaining the protrusion detection process according to the second embodiment. [Figure 10] FIG. 11 is a diagram for explaining the allowable protrusion length according to the second embodiment. [Figure 11] 13 is a flowchart of protrusion detection processing according to the second embodiment. [Figure 12] 13 is a flowchart of a conveying position deviation abnormality detection process according to the second embodiment. [Figure 13] FIG. 13 is a diagram for explaining a protrusion allowable area according to the third embodiment. [Figure 14] 13 is a flowchart of protrusion detection processing according to the third embodiment. [Figure 15] 13 is a flowchart of a conveying position deviation abnormality detection process according to the third embodiment. [Figure 16] A diagram showing the relationship between paper size and ease of overflow. [Figure 17] 13 is a diagram illustrating a UI for setting a tolerance. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that the following embodiment does not necessarily limit the present invention. Furthermore, not all of the combinations of features described in the embodiment are necessarily essential to the solution of the present invention. EXAMPLES

[0012] In this embodiment, the process when the paper goes out of the imaging range is changed according to the size of the paper to be inspected. Note that the inspection in this embodiment is performed based on the difference between the image data of the printout that is a good product (reference image data) and the image data to be inspected (print image data).

[0013] 2 shows an example of the overall configuration of a printing system that outputs and inspects printed matter, including an image processing device 100. The printing system of this embodiment has the image processing device 100, a printing server 180, and a printing device 190. The printing server 180 generates a print job for a document to be printed, and submits the print job to the printing device 190. The printing device 190 forms an image on a recording medium (paper) based on the print job submitted from the printing server 180. The printing device 190 has a paper feed unit 191, and the user sets printing paper in the paper feed unit in advance.

[0014] When a print job is input, the printing device 190 conveys print paper set in a paper feed unit 191 along a conveying path 192 , forms an image on one or both sides of the paper, and sends the paper to the image processing device 100 .

[0015] The image processing device 100 of the present invention performs an inspection process for checking the presence or absence of defects on the printed matter sent through a conveying path 192 after an image is formed by a printing device 190. That is, the image processing device 100 functions as an inspection processing device or an inspection unit. The image processing device 100 has a CPU 101, a RAM 102, a ROM 103, a storage device 104, an image reading device 105, an interface (I / F) 106 with the printing device 190, a general-purpose interface (I / F) 107, a user interface (UI) panel 108, and a main bus 109 inside. The image processing device 100 further has a conveying path 110 for printed matter connected to the conveying path 192 of the printing device 190, an output tray 111 for printed matter that has passed the inspection, and an output tray 112 for printed matter that has failed the inspection. Note that these output trays may be configured as devices separate from the printing device 190.

[0016] The CPU 101 is a processor that comprehensively controls each unit in the image processing device 100. The RAM 102 functions as a main memory, a work area, etc. for the CPU 101. The ROM 103 stores a group of programs executed by the CPU 101. The main storage device 104 stores applications executed by the CPU 101, data used in image processing, etc.

[0017] The image reading device (scanner) 105 can read one or both sides of a printed material sent from the printing device on the conveying path 110 and obtain the image data. In this embodiment, the image reading device 105 is a line scanner. The printing device I / F 106 is connected to the printing device 190, and can synchronize the processing timing of the printing device 190 and the printed material, and can communicate each other's operating status. The general-purpose I / F 107 is a serial bus interface such as USB or IEEE1394, and allows the user to take out data such as logs.

[0018] The UI panel 108 displays a user interface on a liquid crystal display, and displays the current status and settings to inform the user. It also receives print settings such as paper size and type from the user via a mouse and keyboard (not shown) connected to the general-purpose I / F 107. A main bus 109 connects the various components of the image processing device 100.

[0019] In addition, although not shown in Figure 2, various internal parts of the image processing device 100 and the printing system can be operated by instructions from the CPU 101, for example, to move the transport path in a synchronized manner, or to switch whether the printed matter is sent to the output tray 111 for passed prints or the output tray 112 for failed prints depending on the inspection results.

[0020] Overall, the image processing device 100 carries out an inspection process, described below, based on the image data of the printed matter read by the image reading device 105 while conveying the printed matter sent from the printing device 190 along the conveying path 110. If the printed matter passes the inspection, it is conveyed to an acceptable output tray 111, and if not, it is conveyed to a rejected output tray 112. In this way, only those whose quality has been confirmed can be collected in the output tray 111 for delivery.

[0021] 3 shows the functional configuration of the image processing device 100. The image processing device 100 has a reference image data acquisition unit 201 as an image acquisition unit. It also has an inspection area acquisition unit 202, a print image data acquisition unit 203, a device information acquisition unit 204, a print setting acquisition unit 205, a protrusion detection unit 206, a protrusion tolerance setting unit 207, a conveying position deviation abnormality detection unit 208, and an inspection processing unit 209.

[0022] The reference image data acquisition unit 201 acquires reference image data representing a reference image that serves as a reference for inspection. The inspection area acquisition unit 202 acquires inspection area image data representing an area to be inspected. The inspection area image data is, for example, image data in which pixel values ​​of the area to be inspected are positive values ​​and pixel values ​​of areas to be excluded from the inspection area are 0. The print image data acquisition unit 203 acquires print image data representing a print image to be inspected, which is obtained by the image reading device 105 reading a printed material on the transport path 110.

[0023] The device information acquisition unit 204 acquires information such as design values ​​and parameters related to the printing device 190 and the image processing device 100. The print setting acquisition unit 205 acquires the print settings of the printing device 190.

[0024] The overhang detection unit 206 determines whether the entire print is included in the print image data. The overhang tolerance setting unit 207 sets a tolerance for when the print paper overhangs the imaging range based on the device information and print settings. The transport position deviation abnormality detection unit 208 detects abnormalities in the transport position deviation of the print.

[0025] If the conveying position deviation abnormality detection unit 208 does not detect any conveying position deviation abnormality, the inspection processing unit 209 inspects the print image data using the reference image data and the print image data.

[0026] 4 is a flowchart of the first embodiment showing the processing executed by the image processing device 100. Hereinafter, each step (process) will be represented by adding an S before the reference number.

[0027] (Step S1001) The device information acquisition unit 204 acquires information on the printing device and image processing device stored in the RAM 102. Specifically, it acquires the maximum conveyance position deviation amount that occurs during conveyance on the conveyance paths 110-192 and the imaging range of the image reading device 105. The maximum conveyance position deviation amount is the maximum value of the conveyance position deviation that is expected during conveyance.

[0028] (Step S1002) The print setting acquisition unit 205 acquires print setting information of the printing device 190. Specifically, the size of the printing paper is acquired. Note that hereinafter, the print setting information is also simply referred to as print setting.

[0029] (Step S1003) The overhang tolerance setting unit 207 sets a tolerance for when the print paper overhangs the imaging range based on the device information and print settings acquired in steps S1001 and S1002. In this embodiment, a tolerance flag T0 indicating whether overhang is permitted is set as the tolerance.

[0030] If there is a possibility of overflow, T0 = TRUE is set to allow overflow, and if there is no possibility of overflow, T0 = FALSE is set to not allow overflow. If overflow is not allowed, overflow is determined to be an abnormality in the transport position. There is a possibility that the transport position of the printed matter will shift to the left or right. From Figure 1, whether or not there is a possibility that the printed paper will overflow from the imaging range can be calculated using the following formula (1).

[0031]

number

[0032] where T0 is the tolerance flag, p w is the width of the printing paper, R max is the maximum conveying position deviation, s w indicates the imaging range. When T0=TRUE, protrusion is permitted, and when T0=FALSE, protrusion is not permitted.

[0033] Print paper width p w s w -2R max In the above cases, since there is a possibility that the printing paper may go out of the imaging range due to misalignment of the conveying position, T0 is set to TRUE. w s w -2R max If it is less than this, the print paper will not go outside the imaging range due to misalignment of the transport position, so T0 is set as FALSE.

[0034] (Step S1004) The reference image data acquisition unit 201 acquires reference image data representing a reference image that serves as a reference for inspection. The reference image is a scanned image that is created in advance by scanning a printed matter that has been visually confirmed to be free of dirt and is stored in the storage device 104.

[0035] (Step S1005) The inspection area acquisition unit 202 acquires inspection area image data representing an area to be inspected. It is assumed that the inspection area image data acquired here is created in advance and stored in the RAM 102. A method for creating the inspection area image data will be described.

[0036] In this embodiment, the inspection is performed based on the difference between the reference image data and the print image data. If a part of the print falls outside the imaging range, the difference cannot be calculated correctly in the falling area, which may result in an incorrect inspection result. Therefore, inspection area image data is created to inspect only the area that always falls within the imaging range.

[0037] The area A that always falls within the imaging range can be calculated using formula (2). A=s w -2R max Formula (2) Therefore, the inspection target area will be, for example, as shown in Figure 5. The shaded area in Figure 5 indicates the inspection target area. The center of the scanner is used as the reference, and the area from the center to the range that is always within the imaging range / 2 is the area that is always within the imaging range and is the area to be inspected.

[0038] (Step S1006) The print image data acquisition unit 203 acquires print image data representing a print image to be inspected, the print image data being obtained by the image reading device 105 reading a print material on the conveying path 110 .

[0039] (Step S1007) The protrusion detection unit 206 detects protrusion of the print image from the print image data acquired in step S1006. The protrusion detection will be described in detail later.

[0040] (Step S1008) The conveying position deviation abnormality detection unit 208 detects abnormality in the conveying position deviation of the printed matter. The conveying position deviation abnormality detection process will be described later.

[0041] (Step S1009) If an abnormality in the conveying position deviation is detected in step S1008, the abnormality in the conveying position deviation is notified, and the process proceeds to step S1006. If an abnormality in the conveying position deviation is not detected, the process proceeds to an inspection process in step S1010.

[0042] (Step S1010) The inspection processing unit 209 first aligns the reference image data and the print image data. The alignment is performed, for example, by a method of comparing the brightness of partial images commonly observed in the reference image data and the print image data by template matching, and determining the amount of displacement that maximizes the degree of match between the two. Next, the difference between the aligned reference image data and the print image data is extracted. Then, pixels with a difference greater than a predetermined value are extracted as defects.

[0043] (Step S1011) In this embodiment, the process ends when a conveying position deviation abnormality is detected or when printing is completed by the printing device 190. If printing is to be continued, the process returns to step S1006 and continues.

[0044] (Details on overhang detection) The protrusion detection process performed in step 1007 will be described below. An example of print image data that does not protrude from the imaging range is shown in Fig. 6[a], and an example of print image data that does protrude from the imaging range is shown in Fig. 6[b].

[0045] 7 shows a flowchart of the overflow detection process. When the image reading device 105 reads the printed matter on the conveying path 110, the area where the printed matter does not exist becomes the background color (black in this embodiment). When overflow occurs, the printed matter exists at the reading end of the sensor, and therefore pixel values ​​other than the background color exist at the end of the print image data. In this embodiment, since the image reading device 105 is a line scanner, overflow may occur only in the left and right directions if reading is performed at the appropriate timing.

[0046] (Step S1701) A threshold is set so that the pixel values ​​of the printing paper and the pixel values ​​of the background color are separated, and binarization is performed to obtain a binary image in which the pixel value of the area corresponding to the printing paper is 1 and the pixel value of the area corresponding to the background is 0.

[0047] (Step S1702) For the binary image acquired in step S1701, a check is made to see if the pixel values ​​at the left and right edges of the image contain a pixel value of 1 that corresponds to the printing paper.

[0048] (Step S1703) If it is confirmed in step S1702 that the pixel value is 1, that is, that the pixel is not the background, the process proceeds to step S1704. If not, the protrusion detection process ends.

[0049] (Step S1704) The fact that overflow has been detected is recorded, and the overflow detection process ends.

[0050] (Details of the conveying position deviation abnormality detection process) The conveying position deviation abnormality detection process performed in step S1008 will be described with reference to the flowchart in FIG.

[0051] (Step S1801) The conveying position deviation abnormality detection unit 208 first checks the result of the overflow detection in step S1007. If overflow is detected, the process proceeds to step S1802. If overflow is not detected, the process determines that conveying is normal and ends the process.

[0052] (Step S1802) If overflow is detected, the conveying position deviation abnormality detection unit 208 checks the overflow tolerance value set in step S1003. In this embodiment, the tolerance flag T0 is checked. If overflow is set to be allowed (T0=TRUE), it is determined that conveying is being performed normally and the process ends, but if overflow is not set to be allowed (T0=FALSE), the process proceeds to step S1803.

[0053] (Step S1803) Since overflow has occurred despite the fact that overflow is not permitted, it is determined that the conveying position deviation is abnormal, and the process is terminated.

[0054] By the above process, when the printed matter protrudes from the imaging range, the protrusion can be suitably detected. EXAMPLES

[0055] In this embodiment, in addition to the tolerance flag T0, a tolerance length T1 is set, which indicates the maximum length that the printed matter may protrude. Even when the protrusion of the printed matter is permitted, if the protrusion length of the printed matter is greater than the tolerance length T1, it is determined that a conveying position deviation is abnormal.

[0056] Figure 9 shows examples of print image data when the print extends beyond the imaging range. Figure 9[a] shows an example where extension has occurred to the right, and Figure 9[b] shows an example where extension has occurred to the left and right. Areas 309, 363, and 364 enclosed by dotted lines in the figures indicate the areas of the print that extend beyond the imaging range. Arrows 310, 365, and 366 in the figures indicate the lengths to which the print extends beyond the imaging range.

[0057] In this embodiment, changes are made to steps S1003, S1007, and S1008 of the first embodiment. In the first embodiment, a tolerance flag T0 is set in step S1003 as a tolerance value, indicating whether or not the printed matter is permitted to protrude from the imaging range. In addition, in step S1003 of this embodiment, a tolerance length T1 is set, indicating the maximum length by which the printed matter may protrude. The relationship between the imaging range, printing paper, maximum conveying position deviation amount, and tolerance length is as shown in FIG. 10. Therefore, the tolerance length T1 can be calculated as follows.

[0058]

number

[0059] where T1 is the allowable length, p w is the width of the printing paper, R max is the maximum conveying position deviation, s w indicates the imaging range.

[0060] Print paper width p w s w -2R max In the above cases, there is a possibility that the printing paper may go out of the imaging range due to misalignment of the conveying position, so the maximum length that may go out is set to T1. w s w -2R max If it is less than this, the print paper will not go outside the imaging range due to misalignment of the transport position, so T1 is set to 0.

[0061] In step S1007 of this embodiment, a process of calculating the protrusion length is added when protrusion detection is performed by the protrusion detection unit 206. The protrusion detection process of this embodiment will be described with reference to the flowchart of FIG.

[0062] (Step S2701) The protrusion detection unit 208 binarizes the print image data.

[0063] (Step S2702) The overflow detection unit 208 detects vertices in the print image data. To detect vertices, the unit tracks pixels that are the boundary between pixel values ​​0 and 1, and detects vertices from the trace. For example, in the case of Figure 9[a], four vertices 303, 304, 305, and 306 are detected.

[0064] (Step S2703) The protrusion detection unit 206 estimates the vertices that form the upper and lower sides of the print image data. For example, in the case of Fig. 9[a], 303 and 304 are estimated as the vertices that form the upper side, and 305 and 306 are estimated as the vertices that form the lower side.

[0065] (Step S2704) The overflow detection unit 206 judges whether the top and bottom sides are overflowing. The overflow judgment is performed based on whether the vertices are in contact with the left and right edges of the print image data. If they are in contact, the vertices are determined to be the overflow start points. For example, in the case of FIG. 9[a], 303 and 305 are judged to be the vertices that are not overflowing, and 304 and 306 are judged to be the overflow start points.

[0066] (Step S2705) If the top and bottom sides are protruding, the process proceeds to step S2706, otherwise, it is determined that protrusion has not been detected and the process ends.

[0067] (Step S2706) The overhang detection unit 206 estimates the overhanging vertex. If either one of the vertices constituting the upper or lower side is overhanging, the coordinates on the corresponding line that are separated by the paper width W from the non-overhanging vertex are estimated as the overhanging vertex. For example, in the case of Figure 9[a], vertices 307 and 308 that are separated by the paper width W from vertices 303 and 305 that are not overhanging are estimated as the overhanging vertices.

[0068] If both vertices protrude, they are assumed to protrude equidistantly to the left and right, and the coordinates on the relevant line that are half the paper width W / 2 away from the center of the relevant line are estimated to be the protruding vertices. For example, in the case of Figure 9[b], vertices 359, 360, 361, and 362 that are half the paper width W / 2 away from the center 357 of the top side and the center 358 of the bottom side are estimated to be the protruding vertices.

[0069] (Step S2707) The overflow detection unit 206 calculates the overflow length. The length between the overflow start point determined in step S2704 and the overflow vertex estimated in step S2706 is calculated, and this is the overflow length. If there are multiple overflow vertices, the overflow length of each overflow vertex is calculated, and the maximum value is calculated as the overflow length of the print image data.

[0070] In step S1008 of this embodiment, even if overhang is permitted, if the overhang length calculated in step S1007 is greater than the permitted length T1 set in step S1003, it is detected as an abnormality in conveying position deviation. The process of step S1008 of this embodiment will be described with reference to the flowchart of FIG.

[0071] (Step S2801) The conveying position deviation abnormality detection unit 208 first checks the result of the overflow detection in step S1007. If overflow is detected, the process proceeds to step S2802. If overflow is not detected, the process determines that conveying is normal and ends the process.

[0072] (Step S2802) If overflow is detected, the conveying position deviation abnormality detection unit 208 checks the tolerance flag T0 set in step S1003. If overflow is set to be permitted (T0=TRUE), the process proceeds to step S2803, and if overflow is not set to be permitted (T0=FALSE), the process proceeds to step S2804.

[0073] (Step S2803) If overhang is permitted, the conveying position deviation abnormality detection unit 208 compares the overhang length calculated in step S1007 with the permissible length T1 set in step S1003. If the overhang length is smaller than the permissible length T1, it is determined that conveying is being performed normally and the process ends, but if it is larger than the permissible length T1, the process proceeds to step S2805.

[0074] (Step S2804) Since overflow occurs even though overflow is not permitted, or overflow of an unpermitted length occurs even though overflow is permitted, it is determined that there is an abnormality in the conveying position deviation, and the conveying position deviation abnormality detection process is terminated.

[0075] In this embodiment, both the allowable flag T0 and the allowable length T1 are used as the allowable value, but only the allowable length T1 may be used as the allowable value. In that case, the allowable length T1 in step S1003 is calculated as follows.

[0076]

number

[0077] Then, in the conveying position deviation abnormality detection process in step S1008, if it is confirmed in step S2801 that protrusion has been detected, the process proceeds to step S2803, where the protrusion length is confirmed.

[0078] By the above process, when the printed matter protrudes from the imaging range, the protrusion can be detected as an abnormality according to the length of the protrusion. EXAMPLES

[0079] In this embodiment, in addition to the tolerance flag T0, a tolerance area T2 is set, which indicates the maximum area that the printed matter may protrude from. Even when the protrusion of the printed matter is permitted, if the protrusion area of ​​the printed matter is larger than the tolerance area T2, it is determined that a conveying position deviation is abnormal.

[0080] 9 indicate the areas of the printed matter that are outside the imaging range. Based on this area, abnormality in conveying position deviation is detected.

[0081] In this modified example, steps S1003, S1007, and S1008 in the first embodiment are modified. In the first embodiment, step S1003 was set to determine whether or not the printed matter is permitted to protrude from the imaging range. In addition, in step S1003 in this embodiment, the maximum protruding area is calculated and set as the protruding allowable area. The relationship between the imaging range, the printing paper, the maximum conveying position deviation amount, and the protruding allowable area is as shown in FIG. 13. Therefore, the protruding allowable area T2 can be calculated as follows:

[0082]

number

[0083] where T2 is the allowable area, p w is the width of the printing paper, p h is the height of the printing paper, R max is the maximum conveying position deviation, s w indicates the imaging range.

[0084] Print paper width p w s w -2R max In the above cases, there is a possibility that the printing paper may go outside the imaging range due to misalignment of the conveying position, so the maximum area that may go outside is set to T2. w s w -2R maxIf it is less than this, the print paper will not go outside the imaging range due to misalignment of the transport position, so T2=0 is set.

[0085] In step S1007 of this embodiment, a process of calculating a protrusion area is added when protrusion detection is performed by the protrusion detection unit 208. The process flow of the protrusion detection process of this modified example will be described with reference to the flowchart of FIG.

[0086] Steps S3701 to S3706 are the same as steps S2701 to S2706 described above, and therefore will be omitted.

[0087] (Step S3707) The overflow detection unit 208 calculates the overflow area. The overflow area is estimated from the overflow start point determined in step S3704 and the overflow vertex estimated in step S3706, and the area is set as the overflow area. If there are multiple overflow areas, the area of ​​each overflow area is calculated, and the maximum value is set as the overflow area of ​​the print image data.

[0088] In step S1008 of this embodiment, even if overhang is permitted, if the overhang area calculated in step S1007 is larger than the allowable area set in step S1003, it is detected as a conveying position deviation abnormality. The process of step S1008 of this embodiment will be described with reference to the flowchart in FIG.

[0089] (Step S3801) The conveying position deviation abnormality detection unit 208 first checks the result of the overflow detection in step S1007. If overflow is detected, the process proceeds to step S3802. If overflow is not detected, the process determines that conveying is normal and ends the process.

[0090] (Step S3802) If overflow is detected, the conveying position deviation abnormality detection unit 208 checks the tolerance flag T0 set in step S1003. If overflow is set to be permitted (T0=TRUE), the process proceeds to step S3803, and if overflow is not set to be permitted (T0=FALSE), the process proceeds to step S3805.

[0091] (Step S3803) If overflow is permitted, the conveying position deviation abnormality detection unit 208 compares the overflow area calculated in step S1007 with the allowable area T2 set in step S1003. If the overflow area is smaller than the allowable area T2, it is determined that conveying is being performed normally and the process ends, but if it is larger than the allowable area T2, the process proceeds to step S3805.

[0092] (Step S3804) Since overflow occurs even though overflow is not permitted, or overflow of an unallowable area occurs even though overflow is permitted, it is determined that there is an abnormality in the conveying position deviation, and the conveying position deviation abnormality detection process is terminated.

[0093] In this embodiment, both the allowable flag T0 and the allowable area T2 are used as the allowable value, but only the allowable area T2 may be used as the allowable value. In this case, the allowable area T2 in step S1003 is calculated as follows.

[0094]

number

[0095] Then, in the conveying position deviation abnormality detection process in step S1008, if it is confirmed in step S3801 that protrusion has been detected, the process proceeds to step S3803, where the protrusion area is confirmed.

[0096] By the above process, when the printed matter protrudes from the imaging range, the protrusion can be detected as an abnormality according to the protruding area.

[0097] [Modifications] In this embodiment, the overhang tolerance is set based on the print settings and device information, but it may be based only on the print settings. As shown in Fig. 16, the larger the print paper size, the greater the possibility of overhang, the overhang length, and the area. Therefore, for example, a correspondence table between print paper size and tolerance may be prepared in advance, in which the tolerance increases as the print paper size increases, and the tolerance may be set based on this.

[0098] In this embodiment, the protrusion tolerance is set in step S1003, but the tolerance set by the user may be used. For example, the protrusion tolerance may be set by the user via a UI panel 108 as shown in FIG. 17, and the set tolerance may be used.

[0099] The inspection area image data acquired in step S1005 may be preset by the user. For example, the user may set an inspection area as an inspection area setting unit through the UI panel 108 based on the reference image data, and the set inspection area may be used. As the allowable value, only the allowable flag is set, or in addition to the allowable flag, either the allowable length or the allowable area, or both, are set.

[0100] In this embodiment, a reference image was used that was created by scanning a printed matter that had been visually confirmed to be free of dirt, but a reference image created by other means may also be used. For example, a correction that takes into account the characteristics of an image reading device may be applied to the original data of the printed matter, and the corrected image data may be used as the reference image data.

[0101] The present invention is not limited to the above-described embodiments, and may be implemented by combining the elements and concepts described in each embodiment.

[0102] The present invention can also be realized by executing the following process: That is, software (programs) that realize the functions of the above-described embodiments are supplied to a system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device reads and executes the programs. [Explanation of symbols]

[0103] 206 Protrusion detection unit 207 Protrusion tolerance setting section 208 Conveyor position deviation abnormality detection unit 209 Inspection Processing Section

Claims

1. A first acquisition means for acquiring a print paper size; a setting means for setting a tolerance for a portion of a printed matter that protrudes from a reading range of a reading means based on the printing paper size; A second acquisition means for acquiring a scanned image of the printed matter; a first detection means for detecting the protruding portion from the scanned image; a second detection means for detecting an abnormality in conveying position deviation based on the tolerance and the result of the detection; An image processing device comprising:

2. A third acquisition means for acquiring information about the printing means, The setting means sets the tolerance based on the information and the printing paper size.

2. The image processing device according to claim 1,

3. The third acquisition unit acquires at least one of the read range of the reading unit and the maximum conveying position deviation amount of the conveying path as the information.

3. The image processing device according to claim 2.

4. the setting means sets a tolerance flag indicating whether or not overflow is permitted as the tolerance value; The second detection means determines that a conveying position deviation is abnormal when protrusion is detected based on the tolerance flag and the result of the detection and when protrusion is not permitted.

4. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing apparatus.

5. The setting means determines an area in which the printing paper may be misaligned during transportation based on the printing paper size, the reading range of the reading means, and the maximum transportation position of the transportation path, and sets the tolerance flag using the area in which the printing paper may be misaligned.

5. The image processing device according to claim 4.

6. The setting means sets an allowable length that allows protrusion as the allowable value, The second detection means determines that a conveying position deviation is abnormal when the protruding length is greater than the allowable length based on the result of the detection and the allowable length.

4. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing apparatus.

7. The setting means determines an area in which the printing paper may be misaligned during transportation based on the printing paper size, the reading range of the reading means, and the maximum transport position of the transport path, and sets the allowable length using the area in which the printing paper may be misaligned.

7. The image processing device according to claim 6,

8. the setting means sets an allowable area that allows protrusion as the allowable value, The second detection means determines that a conveying position deviation is abnormal when the protruding area is larger than the allowable area based on the result of the detection and the allowable area.

4. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing apparatus.

9. The setting means determines an area in which the printing paper may be misaligned during transportation based on the printing paper size, the reading range of the reading means, and the maximum transportation position of the transportation path, and sets the allowable area using the area in which the printing paper may be misaligned.

9. The image processing device according to claim 8,

10. The printing method further includes inspecting means for inspecting a scanned image of the printed matter, The inspection means inspects the scanned image of the printed matter when the second detection means does not detect an abnormality in the conveying position deviation.

10. The image processing device according to claim 1,

11. Further comprising a fourth acquisition means for acquiring a reference image, The inspection means performs the inspection by comparing the reference image with the scanned image of the printed matter. The image processing device according to claim 10 .

12. The inspection means sets an inspection area to be inspected and inspects the inspection area.

12. The image processing device according to claim 10 or 11.

13. The inspection means sets an area that does not extend beyond the reading range as the inspection area based on the print paper size. The image processing device according to claim 12 .

14. An estimation means for estimating vertices of a printed matter that extend beyond a reading range based on vertices of the printed matter that do not extend beyond the reading range and a width of the printed matter; a notification means for notifying the user of the transport position deviation abnormality when it is determined that the transport position deviation abnormality exists in reading the printed matter based on the estimated vertex, without inspecting for defects in a scanned image obtained by reading the printed matter; and a processing means for performing the defect inspection when it is determined that there is no abnormality in conveying position deviation in reading the printed matter based on the estimated vertex; An image processing device comprising:

15. A program for causing a computer to function as each of the means of the image processing device according to any one of claims 1 to 14.

16. Get the print paper size, setting a tolerance for a portion of the printed matter that extends beyond a reading range of a reading means based on the printing paper size; Obtain a scan of the printout, Detecting the protruding portion from the scanned image; Detecting an abnormality in conveying position deviation based on the tolerance and the result of the detection.

13. An image processing method comprising:

Citation Information

Patent Citations

  • Image inspection method, image inspection apparatus, and program

    JP2004310726A

  • Image examination device and program

    JP2020030350A