Image processing device, image processing method, and program

The image processing apparatus addresses imprecise defect detection by calculating density differences within set comparison areas to account for uniform fluctuations, enabling precise inspection of printing outputs.

JP2024144698AActive Publication Date: 2024-10-11CANON KK
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2024128210
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-11
Estimated Expiration
2040-03-17

AI Technical Summary

Technical Problem

Existing defect inspection methods in printing devices fail to accurately detect density fluctuations that do not involve clear changes in the printing device, such as toner adhesion or light source intensity variations, leading to imprecise inspections.

Method used

An image processing apparatus that calculates density differences by setting a comparison area around a pixel of interest in both reference and print images, subtracting average pixel values to account for uniform density fluctuations, and inspecting based on these calculations to ensure high precision.

Benefits of technology

Enables precise defect detection in printing outputs even without obvious changes in the printing device, ensuring high-quality printed products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024144698000001_ABST
    Figure 2024144698000001_ABST
Patent Text Reader

Abstract

To provide processing for highly accurately inspecting an output of a printer even when no clear change occurs in the printer.SOLUTION: An image processing device comprises: reception means configured to receive designation of information on a circular defect and a linear defect from a user; first acquisition means configured to acquire first data of a reference image; second acquisition means configured to acquire second data of a print image obtained by reading a printed material; setting means configured to set a comparison area including a pixel of interest corresponding to the same pixel position in each reference image and print image based on the first data; first calculation means configured to calculate a density difference between a comparison region of the reference image and a comparison region of the print image based on the first data and the second data; second calculation means for subtracting the density difference from a difference between a pixel value of the pixel of interest of the reference image and a pixel value of the pixel of interest of the print image; and processing means configured to inspect the print image based on the information on the circular defect and the linear defect and results of the subtraction.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing technique for inspecting a printed matter for the presence or absence of defects. [Background technology]

[0002] Traditionally, in the printing industry, inspection (quality control) is performed after printing to ensure that the printed product delivered to the client is free of defects and of acceptable quality. Although inspection is also performed manually, this is costly, and so in recent years, technologies to automate inspection work have been developed. For example, in this method, image data of a good printed product (hereinafter referred to as reference image data) is created in advance. Next, image data of the printed product to be inspected (hereinafter referred to as print image data) is obtained by means of scanning, imaging, or the like. Then, the inspection is performed by comparing these two image data. If there is a large difference between the reference image data representing a good product and the print image data to be inspected that exceeds a predetermined tolerance range, it is determined to be a defect.

[0003] The density and color of the output product for the same input data may be output differently depending on the state of the printing device at the time of output. Patent Document 1 is an inspection technology that takes this case into consideration. Patent Document 1 discloses a technology that regenerates an image used for defect inspection of a scanned image when a change in calibration or the like occurs in the printing device, and compares the scanned image with the regenerated image. [Prior art documents] [Patent documents]

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

[0005] In Patent Document 1, the image used for defect inspection is regenerated only when a clear change such as calibration occurs in the printing device. For this reason, it is not possible to respond to density fluctuations that do not accompany clear changes in the printing device, such as fluctuations in the amount of attached toner or fluctuations in the amount of light from the light source used to read the image, and there are cases in which it is not possible to inspect the output of the printing device with high accuracy.

[0006] The present invention aims to provide a process for inspecting the output of a printing device with high accuracy, even when no obvious changes occur in the printing device. [Means for solving the problem]

[0007] In order to solve the above problem, the image processing device of the present invention is characterized in having a receiving means for receiving specification of information regarding circular defects and linear defects from a user; a first obtaining means for obtaining first data of a reference image; a second obtaining means for obtaining second data of a printed image obtained by reading a printed material; a setting means for setting a comparison area including a pixel of interest corresponding to the same pixel position in each of the reference image and the printed image based on the first data; a first calculating means for calculating a density difference between the comparison area of ​​the reference image and the comparison area of ​​the printed image based on the first data and the second data; a second calculating means for subtracting the density difference from a difference between a pixel value of a pixel of interest in the reference image and a pixel value of a pixel of interest in the printed image; and a processing means for inspecting the printed image based on information regarding the circular defects and the linear defects and a result of the subtraction. Effect of the Invention

[0008] According to the present invention, even when no obvious changes occur in the printing device, the output of the printing device can be inspected with high accuracy. [Brief description of the drawings]

[0009] [Figure 1] Schematic diagram showing the relationship between a pixel of interest and a comparison region. [Diagram 2]FIG. 1 is a diagram showing the overall configuration of a printing system including an image processing apparatus. [Diagram 3] Schematic diagram showing an example of a UI screen [Figure 4] Block diagram showing the functional configuration of an image processing device [Diagram 5] Schematic diagram showing examples of defects to be detected [Figure 6] 1 is a flowchart showing a process executed by an image processing device; [Figure 7] FIG. 1 is a schematic diagram for explaining processing for a reference image; [Figure 8] Schematic diagram showing density fluctuations of a reference image and a printed image [Figure 9] FIG. 13 is a schematic diagram for explaining a process for determining the size of a comparison region; [Figure 10] FIG. 13 is a schematic diagram for explaining a process for correcting the size of a comparison region; [Figure 11] FIG. 13 is a schematic diagram for explaining a process for correcting the size of a comparison region; [Figure 12] Schematic diagram showing an example of an inspection area [Figure 13] FIG. 13 is a schematic diagram illustrating a process for correcting the shape of a comparison region; [Figure 14] FIG. 13 is a schematic diagram for explaining a process for correcting the position of a comparison region; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, the present embodiment 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 present embodiment are necessarily essential to the solution of the present invention.

[0011] [First embodiment] In this embodiment, an inspection is performed taking into consideration the average pixel values ​​of the reference image and the printed image in the surrounding areas (hereinafter referred to as comparison areas) of the pixel of interest in the reference image and the printed image shown in Fig. 1. Note that the inspection in this embodiment is performed based on the absolute value of the difference between the image (reference image) that represents the target print result and the image to be inspected (printed image).

[0012] <Printing system configuration> FIG. 2 is a diagram showing an example of the overall configuration of a printing system that outputs and inspects printed matter, including an image processing device 200. The printing system in this embodiment includes the image processing device 200, a printing server 280, and a printing device 290. The printing server 280 generates a print job for a document to be printed, and inputs the print job to the printing device 290. The printing device 290 forms an image on a recording medium (printing paper) based on the print job input from the printing server 280. The printing device 290 has a paper feed unit 291, and a user sets printing paper in the paper feed unit 291 in advance. When a print job is input, the printing device 290 forms an image on one or both sides of the printing paper while conveying the printing paper set in the paper feed unit 291 along a conveying path 292, and sends it to the image processing device 200.

[0013] The image processing device 200 inspects the printed matter to be inspected for defects after printing. The printed matter to be inspected, which is obtained by forming an image on a printing paper by the printing device 290, is transported along a transport path 292 and inspected by the image processing device 200. The image processing device 200 functions as an inspection processing device. The image processing device 200 has a CPU 201, a RAM 202, and a ROM 203. The image processing device 200 also has a storage device 204, an image reading device 205, a printing interface (I / F) 206, a general-purpose interface (I / F) 207, a user interface (UI) panel 208, and a main bus 209. The image processing device 200 also has a transport path 210 for printed matter connected to the transport path 292 of the printing device 290, an output tray 211 for printed matter that has passed the inspection, and an output tray 212 for printed matter that has been found to have a defect and has failed the inspection. In the printing system, the storage device 204 , the image reading device 205 , the UI panel 208 , the conveying path 210 , the output tray 211 , and the output tray 212 may be provided outside the image processing device 200 .

[0014] The CPU 201 is a processor that comprehensively controls each unit of the image processing device 200. The RAM 202 functions as the main memory, work area, etc. of the CPU 201. The ROM 203 stores a group of programs executed by the CPU 201. The storage device 204 stores applications executed by the CPU 201, data used in image processing, etc. The image reading device 205 is a scanner that reads one or both sides of a printed matter sent from the printing device 290 on the conveying path 210 and acquires the data as image data.

[0015] The print I / F 206 is connected to the printing device 290, and is an interface for synchronizing the timing of print processing between the image processing device 200 and the printing device 290 and for notifying each other of their operating conditions. The general-purpose I / F 207 is a serial bus interface such as USB or IEEE1394, and allows a user to carry data such as logs. The UI panel 208 is a display device such as a liquid crystal display, and functions as a user interface for notifying the user of the current status and settings of the image processing device 200, as shown in FIG. 3(a). The UI panel 208 may also include an input device such as a touch panel or buttons, and can accept instructions from the user regarding inspections, etc., as shown in FIG. 3(b). The input device may be provided separately from the UI panel 208, such as a mouse or a keyboard. The main bus 209 is a transmission path that connects the modules of the image processing device 200.

[0016] The image processing device 200 performs an inspection process, described below, based on the image data of the printed matter read by the image reading device 205 while conveying the printed matter sent from the printing device 290 along the conveying path 210. If the printed matter passes the inspection, it is conveyed to a pass output tray 211, and if it fails the inspection, it is conveyed to a fail output tray 212. This allows only printed matters that have been confirmed to meet the quality standards to be collected in the output tray 211 as printed matters for delivery.

[0017] <Functional configuration of image processing device> 4 shows the functional configuration of the image processing device 200. The image processing device 200 has a reference image data acquisition unit 401, a print image data acquisition unit 402, an image data storage unit 403, an inspection information acquisition unit 404, a comparison area setting unit 405, a fluctuation degree calculation unit 406, and an inspection processing unit 407.

[0018] The reference image data acquisition unit 401 acquires reference image data representing a reference image that serves as a reference for the inspection. The reference image data is created in advance based on a scanned image obtained by reading a printed matter output by the printing device 290. The print image data acquisition unit 402 acquires print image data representing a printed image to be inspected, which is obtained by the image reading device 205 reading a printed matter on the conveying path 210. The image data acquired by the reference image data acquisition unit 401 and the print image data acquisition unit 402 is stored in the image data storage unit 403. The inspection information acquisition unit 404 acquires preset inspection information. The comparison area setting unit 405 sets a comparison area for comparing the reference image with the printed image. The variation degree calculation unit 406 acquires a determined index from each of the comparison area of ​​the reference image and the comparison area of ​​the printed image, and calculates the degree of variation in density (density difference) by comparing the two indexes. Specifically, the fluctuation degree calculation unit 406 calculates the difference between the average pixel value in a comparison region centered on the pixel of interest in the reference image and the average pixel value in a comparison region centered on the pixel of interest in the print image.

[0019] The inspection processing unit 407 inspects the print image represented by the print image data based on the reference image data, the print image data, and the degree of density variation. Details of the inspection processing by the inspection processing unit 407 will be described. A uniform density variation may occur in the print image due to a variation in the amount of toner attached or a variation in the amount of light of the light source of the image reading device 205. As shown in FIG. 8, when a uniform density variation occurs in a certain area of ​​the print image, a defect is detected in the print image due to the uniform density variation in a method of comparing the difference in the pixel value of interest between the print image and the reference image with a threshold value. However, since this uniform density variation is small, there are cases where it is not desirable to detect it as a defect because the visual impact is small. Therefore, in this embodiment, the difference D(x, y) between the print image used for inspection and the reference image is calculated as shown in formula (1).

[0020]

number

[0021] Here, P(x,y) represents the pixel value of the pixel of interest in the printed image, and R(x,y) represents the pixel value of the pixel of interest in the reference image. mp represents the average pixel value in the comparison area centered on the pixel of interest in the printed image, and mr represents the average pixel value in the comparison area centered on the pixel of interest in the reference image. In formula (1), the difference D(x,y) is calculated by subtracting the difference in the average pixel value in the comparison area (mp-mr) from the difference in the pixel value of the pixel of interest. In other words, the difference in the average pixel value in the comparison area between the printed image and the reference image is set as the average degree of variation in the density around the pixel of interest, and the difference D(x,y) is calculated so that this average degree of variation in density does not affect the inspection. Also, as can be seen from the transformation of formula (1), it can be interpreted as a process of correcting the printed image or the reference image with the degree of variation and calculating the difference in the pixel value of the pixel of interest. It can also be interpreted as a process of subtracting the average pixel value in each comparison area of ​​the printed image and the reference image from the pixel value of the pixel of interest and then calculating the difference in the pixel value of the pixel of interest. In either process, a highly accurate inspection can be performed by calculating the difference between the printed image and the reference image so that the inspection is not affected by density fluctuations.

[0022] <Defects to be detected> FIG. 5 shows examples of defects to be detected. The defect shown in FIG. 5(a) is a circular defect (hereinafter referred to as a circular defect). The defect shown in FIG. 5(b) is a line defect (hereinafter referred to as a line defect). In this embodiment, the diameter 501 of the circular defect and the line width 502 of the line defect are defined as the defect size and used as an inspection setting item. Note that, apart from the defect size, the difference in pixel value between the defect and the background may be defined as the defect contrast and used as an inspection setting item.

[0023] <Processing performed by the image processing device> 6 is a flowchart showing the processing executed by the image processing device 200. Hereinafter, each step (process) is represented by adding an S before the reference symbol. In S601, the inspection information acquisition unit 404 acquires preset inspection information. Specifically, the inspection information acquisition unit 404 acquires, as the inspection information, the inspection settings preset by the user via the UI panel 208. In this embodiment, the size of the defect to be detected is set.

[0024] In S602, the comparison area setting unit 405 determines the size of the comparison area based on the defect size of the detection target acquired as the inspection information. The details of the process of determining the size of the comparison area will be described with reference to FIG. 9. FIG. 9 shows an example of a print image and a reference image in which a defect exists. Here, for the sake of simplicity of explanation, it is assumed that there is no variation in pixel values ​​in the image, and only the pixels in the area corresponding to the defect have different pixel values. Consider the case where the comparison area fits within the defective area as shown in FIG. 9(a). When calculating the average pixel value in this comparison area, the average pixel value matches the pixel value of interest in both the print image and the reference image. As a result, the difference D(x, y) becomes 0, and it is determined that there is no defect. Therefore, as shown in FIG. 9(b), it is necessary to set the size of the comparison area larger than the defective area. In this case, a difference occurs between the pixel value of interest and the average pixel value, so that the defect shown in FIG. 9 can be detected. In this embodiment, the comparison area setting unit 405 determines the size of the comparison area so that it is sufficiently larger than the defect size of the set detection target.

[0025] In S603, the reference image data acquisition unit 401 acquires reference image data representing the reference image. The reference image data is assumed to be stored in advance in the storage device 204. The acquired reference image data is held by the image data holding unit 403. In the present embodiment, the reference image is assumed to be an image in which the pixel values ​​(R, G, B) of each pixel are expressed in 8 bits. In S604, the reference image data acquisition unit 401 performs edge extraction processing on the reference image represented by the reference image data acquired in S603, and performs binarization processing on the reference image subjected to edge extraction processing. The reference image data acquisition unit 401 further performs expansion processing on the binarized reference image. The expansion processing is performed in units of areas of the same size as the size of the comparison area determined in S602. FIG. 7 is a diagram showing the processing in S604. When the reference image represented by the reference image data acquired in S603 is an image shown in FIG. 7(a), the edge extraction processing and binarization processing result in a binary image shown in FIG. 7(b). By performing an expansion process on the binary image of FIG. 7(b), the image shown in FIG. 7(c) can be obtained.

[0026] After completing the process of S604, the image processing device 200 starts the operation of the printing device 290. While the printing device 290 operates and sequentially sends printed materials to the image processing device 200, the image processing device 200 repeats the processes of S605 to S613 for the printed materials that are sent until the printing device 290 completes printing of a predetermined number of sheets.

[0027] In S606, the print image data acquisition unit 402 acquires print image data obtained by the image reading device 205 reading the printout output by the printing device 290. The acquired print image data is stored in the image data storage unit 403. The print image represented by the print data in this embodiment is an image in which the pixel values ​​(R, G, B) of each pixel are expressed in 8 bits, similar to the reference image.

[0028] The process of S607 to S611 is repeated while updating the pixel of interest (x, y) until the above-mentioned difference D(x, y) between the print image and the reference image is calculated for all pixel positions.

[0029] In S608, the comparison area setting unit 405 corrects the size of the comparison area determined in S602 based on the reference image expanded in S604. The details of the process of correcting the size of the comparison area will be described. A local position shift may occur in the printed image due to a small change in the conveying speed during printing or image reading. FIG. 10 shows an example of an area near the boundary between the printed area and the non-printed area in the printed image and the reference image. It is assumed that there is no density fluctuation in the image shown in FIG. 10. As shown in FIG. 10(a), when the comparison area includes a printed area, the ratio of the printed area included in the comparison area differs between the printed image and the reference image due to a local position shift. As a result, even though there is no difference in the actual average density, a difference occurs in the average pixel value in the comparison area between the printed image and the reference image. This difference in the average pixel value affects the above-mentioned difference D(x, y), and there are cases where an appropriate inspection cannot be performed. Specifically, even though there is no difference in the pixel value of the pixel of interest, the absolute value of the difference D(x, y) exceeds the threshold due to the difference (mp-mr) of the average pixel values ​​in the comparison area, and it is determined that there is a defect. In response to this, in S608, the comparison area setting unit 405 corrects the size of the comparison area so that the comparison area does not include the print area.

[0030] By the process of S604, discontinuous changes in pixel values ​​are extracted as edges at the boundary between the printed and non-printed areas. Therefore, the comparison area setting unit 405 refers to the reference image after the expansion process and determines whether or not the comparison area includes a printed area (edge). If the comparison area setting unit 405 determines that the comparison area includes an edge, it reduces the size of the comparison area as shown in FIG. 10(b). This prevents the comparison area from including a printed area. The correction process of the comparison area in S608 not only prevents a decrease in the accuracy of the inspection depending on the printed and non-printed areas, but also prevents a decrease in the accuracy of the inspection depending on discontinuous color changes in the comparison area.

[0031] In S609, the fluctuation degree calculation unit 406 calculates the average pixel value in a comparison region centered on the pixel of interest (x, y) for each of the printed image and the reference image. The comparison region in S609 is a region centered on the pixel of interest (x, y) and having the size corrected in S608. In S610, the inspection processing unit 407 calculates the difference D(x, y) between the printed image and the reference image based on the pixel value of the pixel of interest in the printed image, the pixel value of the pixel of interest in the reference image, and the average pixel value in the comparison region. The inspection processing unit 407 calculates the difference D(x, y) according to equation (1) as described above.

[0032] After the processes of S607 to S611 are performed for pixels at all pixel positions, the process proceeds to S612. In S612, the inspection processing unit 407 judges whether or not there is a defect in the print image based on the difference D(x, y) calculated by the processes of S607 to S611. The inspection processing unit 407 judges whether or not there is a defect by comparing the absolute value of the difference D(x, y) with a predetermined threshold. The inspection processing unit 407 extracts pixels whose absolute value of the difference D(x, y) is equal to or greater than the threshold, and judges whether the area made up of the extracted pixel group is a circular defect area or a linear defect area. The judgment of whether the area made up of the extracted pixel group is a circular defect area or a linear defect area is performed by known pattern matching.

[0033] As described above, while the printing device 290 sequentially sends the printed materials to the image processing device 200, the image processing device 200 repeats the processes of S605 to S613 until a predetermined number of printed products are produced. This makes it possible to separate acceptable products in which no defects were detected from unacceptable products in which defects were detected. By adopting the acceptable products as the final products, a predetermined number of products with a certain level of quality can be obtained.

[0034] <Advantages of the First Embodiment> As described above, the image processing device in this embodiment acquires information regarding settings for inspecting an image. Acquires data of a reference image that represents a target print result. Acquires data of the print image to be inspected. Based on the information regarding settings and the reference image data, sets a comparison area including a pixel of interest that corresponds to the same pixel position in each of the reference image and the print image. Based on the reference image data and the print image data, calculates the density difference between the comparison area of ​​the reference image and the comparison area of ​​the print image. Inspects the print image based on the reference image data, print image data, and density difference. This allows the comparison area for comparing the reference image and the print image to be appropriately set, making it possible to inspect the output of the printing device with high accuracy.

[0035] <Modification> In this embodiment, the size of the defect to be detected is set as the inspection setting, but the contrast of the defect to be detected may also be set. When the contrast of the defect to be detected is small, it is preferable to calculate a more accurate difference. For this reason, it is preferable that the size of the comparison area is large in order to reduce the influence of noise when calculating the average pixel value in the comparison area. Therefore, in S602, the comparison area setting unit 405 sets the size of the comparison area to be larger as the contrast of the defect to be detected acquired as the inspection information is smaller. FIG. 11(a) is a diagram showing the size of the comparison area when the defect contrast is large, and FIG. 11(b) is a diagram showing the size of the comparison area when the defect contrast is small.

[0036] The purpose of inspecting printed matter is to ensure that the printed matter is of satisfactory quality, but if the inspection criteria are too strict in order to prioritize quality, the number of rejected products will increase, leading to a decline in productivity. In response to this, it is possible to set different defect sizes and defect contrasts for each region in the printed image, thereby setting different inspection criteria for each region. For example, consider the case of inspecting the printed image shown in FIG. 12(a). In this case, it is desired to detect even small defects in a person's face region, but to set lower inspection criteria for regions other than the face region than for the face region. In response to this, the comparison region setting unit 405 may set the face region and the region other than the face region as inspection regions, respectively, as shown in FIG. 12(b), and set the defect size and defect contrast for each inspection region. In this case, the comparison region setting unit 405 determines the size of the comparison region for each inspection region in S602, and determines which inspection region the pixel of interest belongs to before S608, and obtains the size of the comparison region according to the inspection region to which the pixel of interest belongs. This process makes it possible to achieve both the quality of the printed matter and productivity.

[0037] The reference image data acquisition unit 401 in this embodiment acquires reference image data stored in advance in the storage device 204, but may generate the reference image data before the inspection process. For example, instead of acquiring the reference image data stored in the storage device 204 in S603, the printing device 290 may be operated to acquire an arbitrary number of sheets of print image data, and the reference image data may be generated based on the acquired print image data.

[0038] In this embodiment, the average pixel value in the comparison region is calculated as the degree of variation in average density, but the median of the pixel values ​​in the comparison region may be calculated instead of the average pixel value.

[0039] In this embodiment, the size of the comparison region is corrected using an edge image obtained by performing edge extraction processing on the reference image, but features other than edges may be used. For example, the variance (variance) of pixel values ​​in the comparison region is calculated, and if the variance is equal to or greater than a predetermined threshold, the size of the comparison region is reduced. This process may be repeated until the variance of pixel values ​​in the comparison region becomes less than the predetermined threshold, thereby correcting the size of the comparison region.

[0040] In this embodiment, the size of the comparison region is reduced to prevent the comparison region from including a printed region, but the shape of the comparison region may be changed instead of changing the size. For example, as shown in Figures 13(a), 13(b), 13(c), and 13(d), the shape of the comparison region may be selected from a plurality of predefined shapes based on an edge image corresponding to the reference image so as not to include an edge region. Also, both the size and shape of the comparison region may be changed so as not to include an edge region.

[0041] In this embodiment, the size of the comparison region is reduced to prevent the comparison region from including the printed region, but the position of the comparison region may be shifted instead of changing the size. By moving the comparison region shown in Fig. 14(a) to the comparison region shown in Fig. 14(b) based on the position of the edge in the edge image, it is possible to prevent the comparison region from including the printed region.

[0042] In this embodiment, the difference D(x, y) is calculated by subtracting the degree of variation in the average density in the comparison region from the difference in pixel value of the pixel of interest, but if the degree of variation is greater than a predetermined threshold, the subtraction may not be performed. This allows the degree of variation to be detected as a defect when it is not visually negligible.

[0043] In this embodiment, the difference in the average pixel value in the comparison region is subtracted from the difference in the pixel value of the pixel of interest so that the degree of variation in the average density in the comparison region does not affect the inspection, but instead of the subtraction process, the threshold value used in the inspection process in S612 may be corrected. For example, the difference D(x, y) may be set as the difference in the pixel value of the pixel of interest, and the inspection processing unit 407 in S612 may add the difference in the average pixel value in the comparison region to a predetermined threshold value, thereby setting the threshold value to a value larger than the difference in the average pixel values.

[0044] In the present embodiment, the inspection processing unit 407 calculates the difference D(x, y) in S610, but S610 may be divided into a plurality of steps. For example, as shown in formula (2), the difference in pixel value of the pixel of interest may be calculated first, and then the difference in average pixel value in the comparison area may be subtracted from the difference in pixel value of the pixel of interest. As shown in formula (3), the difference in average pixel value in the comparison area may be subtracted from the pixel value of the pixel of interest in the print image, and then the pixel value of the pixel of interest in the reference image may be subtracted from the result of the subtraction. As shown in formula (4), the difference in average pixel value in the comparison area may be subtracted from the pixel value of the pixel of interest in the reference image, and then the pixel value of the pixel of interest in the print image may be subtracted from the result of the subtraction. As shown in formula (5), the average pixel value in the comparison area may be subtracted from the pixel value of the pixel of interest in each of the print image and the reference image, and the difference in pixel value of the pixel of interest may be calculated after the subtraction process.

[0045]

number

[0046]

number

[0047]

number

[0048]

number

[0049] The image reading device 205 in this embodiment is a scanner that reads an image, but may be an imaging device that generates image data by capturing an image.

[0050] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. [Explanation of symbols]

[0051] 200 Image processing device 401 Reference image data acquisition unit 402 Print image data acquisition unit 404 Inspection Information Acquisition Department 405 Comparison area setting section 406 Fluctuation Degree Calculation Unit 407 Inspection Processing Unit

Claims

1. A receiving means for receiving information on the circular defect and the linear defect from a user; A first acquisition means for acquiring first data of a reference image; A second acquisition means for acquiring second data of a printed image obtained by reading the printed matter; a setting means for setting a comparison region including a pixel of interest corresponding to the same pixel position in each of the reference image and the print image based on the first data; a first calculation means for calculating a density difference between the comparison area of ​​the reference image and the comparison area of ​​the printed image based on the first data and the second data; a second calculation means for subtracting the density difference from a difference between a pixel value of a pixel of interest in the reference image and a pixel value of a pixel of interest in the print image; a processing means for inspecting the printed image based on information about the circular and linear defects and a result of the subtraction; 13. An image processing device comprising:

2. 2 . The image processing apparatus according to claim 1 , wherein the accepting unit acquires the information on the circular defects and the linear defects based on a user's specification in a user interface for specifying the information on the circular defects and the linear defects.

3. 3. The image processing apparatus according to claim 1, wherein the information about the circular defect and the linear defect is a size of the circular defect and the linear defect.

4. 4. The image processing apparatus according to claim 1, wherein the information about the circular defect and the linear defect is a contrast between the circular defect and the linear defect and a background.

5. 5. The image processing apparatus according to claim 1, wherein the setting means sets the comparison area based on a feature of a peripheral area including the pixel of interest in the reference image.

6. 6. The image processing apparatus according to claim 1, wherein the setting means sets a size of the comparison region.

7. 7. The image processing device according to claim 1, wherein the first calculation means calculates, as the density difference, a difference between an average pixel value in the comparison area of ​​the reference image and an average pixel value in the comparison area of ​​the printed image.

8. a display control means for causing a display means to display a user interface for receiving designation of the size of the circular defect and the size of the linear defect; a receiving means for receiving designation from a user regarding the size of the circular defect and the size of the linear defect; an inspection means for inspecting a printed matter based on the size of the specified linear defect and the size of the specified circular defect; 13. An image processing device comprising:

9. A program for causing a computer to function as each of the means of the image processing apparatus according to any one of claims 1 to 8.

10. Accepting specification of information regarding circular defects and linear defects from a user; Obtaining first data of a reference image; acquiring second data of a printed image obtained by reading the printed matter; setting a comparison region including a pixel of interest corresponding to the same pixel position in each of the reference image and the print image based on the first data; calculating a density difference between the comparison area of ​​the reference image and the comparison area of ​​the printed image based on the first data and the second data; subtracting the density difference from a difference between a pixel value of a pixel of interest in the reference image and a pixel value of a pixel of interest in the print image; inspecting the printed image based on information about the circular and linear defects and a result of the subtraction; 13. An image processing method comprising:

11. displaying on a display means a user interface for receiving designation of the size of the circular defect and the size of the linear defect; accepting designation from a user regarding the size of the circular defect and the size of the linear defect; inspecting the printed matter based on the size of the specified linear defect and the size of the specified circular defect; 13. An image processing method comprising:

Citation Information

Patent Citations

  • Paper sheet identification device and method

    JP2005322139A

  • Defect detection method

    JP2007010525A

  • Visual inspection device and visual inspection method

    JP2010071951A

  • Image inspection device, image inspection system, and image inspection program

    JP2015174307A

  • Image processing apparatus, image processing method, and program

    JP2021149305A