Image processing device, image processing method, and program

The image processing apparatus improves defect detection near edges and features in printed matter by adjusting detection sensitivity based on local patterns, ensuring accurate inspection of printed matter quality.

JP2024144596AActive Publication Date: 2024-10-11CANON KK
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024119347
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-11
Estimated Expiration
2040-03-27

AI Technical Summary

Technical Problem

Existing image inspection systems fail to accurately detect defects near edges or features in printed matter, leading to incomplete defect detection.

Method used

An image processing apparatus that adjusts detection sensitivity based on local patterns in the reference image, specifically lowering sensitivity in areas corresponding to these patterns to improve defect detection accuracy.

Benefits of technology

Enhances the accuracy of defect detection near edges and features in printed matter by tailoring detection sensitivity to the local patterns present in the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024144596000001_ABST
    Figure 2024144596000001_ABST
Patent Text Reader

Abstract

To provide a process for improving the accuracy of inspection of the vicinity of an area including a feature in an image to be inspected.SOLUTION: An image processing device acquires image data representing an image to be inspected, acquires a first inspection sensitivity for defects specified by a user, inspects a first region in the image corresponding to a specific pattern similar to the defects with a second inspection sensitivity lower than the first inspection sensitivity, and inspects a second region in the image not corresponding to the specific pattern with the first inspection sensitivity.SELECTED DRAWING: Figure 3
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 printed matter. [Background technology]

[0002] In a printed matter output by a printing device, a coloring material such as ink or toner may adhere to an unintended location, causing stains. Alternatively, a coloring material may not adhere sufficiently to a location where an image is to be formed, causing color loss, resulting in a lighter color than the original. Such defects in a printed matter, such as stains and color loss, reduce the quality of the printed matter. Therefore, it is required to guarantee the quality of the printed matter by inspecting the presence or absence of defects in the printed matter. Since visual inspection for inspecting the presence or absence of defects in a printed matter requires a lot of cost, an inspection system that performs the inspection automatically has been developed. In such an inspection system, for example, the presence or absence of a defect is determined based on the difference between a reference image that serves as an inspection standard for a printed matter registered in advance and an inspection target image obtained by scanning the printed matter to be inspected. Patent Document 1 discloses a technology in which an inspection threshold is corrected to be relaxed in a region near an edge extracted from the reference image, and a printed matter is inspected based on the difference between the reference image and the inspection target image and the corrected inspection threshold. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2018-155736 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, with the technique of Patent Document 1, there are cases where defects that exist near areas that include features such as edges in an image to be inspected cannot be detected.

[0005] SUMMARY OF THE PRESENT EMBODIMENTS Accordingly, an object of the present invention is to provide a process for improving the accuracy of inspection of the vicinity of an area including a feature in an image to be inspected. [Means for solving the problem]

[0006] In order to solve the above problems, the image processing device of the present invention is characterized in having a first acquisition means for acquiring image data representing an image to be inspected, a second acquisition means for acquiring a first inspection sensitivity for defects specified by a user, and an inspection means for inspecting a first area in the image corresponding to a specific pattern similar to the defect with a second inspection sensitivity lower than the first inspection sensitivity, and inspecting a second area in the image not corresponding to the specific pattern with the first inspection sensitivity. Effect of the Invention

[0007] According to the present invention, it is possible to improve the accuracy of inspection of the vicinity of an area including a feature in an image to be inspected. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram showing a configuration of a printing system including an image processing apparatus. [Diagram 2] Block diagram showing the functional configuration of an image processing device [Diagram 3] 1 is a flowchart showing a process executed by an image processing device; [Figure 4] FIG. 1 is a diagram showing an example of a reference image and an image to be inspected; [Diagram 5] FIG. 1 shows an example of an inspection area. [Figure 6] Example of detection sensitivity [Figure 7] 1 is a flowchart showing a process for extracting a local pattern area. [Figure 8] FIG. 1 shows an example of a local pattern region. [Figure 9] Flowchart showing a process for adjusting detection sensitivity [Figure 10] A diagram showing an example of adjusted detection sensitivity. [Figure 11]Flowchart showing inspection process [Figure 12] Diagram showing an overview of the inspection process [Figure 13] 1 is a flowchart showing a process for extracting a local pattern area. [Figure 14] FIG. 1 shows an example of a local pattern region. [Figure 15] Flowchart showing a process for adjusting detection sensitivity [Figure 16] A diagram showing an example of adjusted detection sensitivity. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] 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.

[0010] [First embodiment] In this embodiment, an area corresponding to a local pattern is extracted from a reference image, and the detection sensitivity of defects similar to the local pattern is lowered to perform an inspection process. Note that the inspection in this embodiment is performed based on the absolute value of the difference between an image (reference image) that represents a target print result and an image to be inspected (image to be inspected).

[0011] <Printing system configuration> FIG. 1 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 100. The printing system in this embodiment includes 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 inputs the print job to the printing device 190. The printing device 190 forms an image on a recording medium (printing paper) based on the print job input from the printing server 180. The printing device 190 has a paper feed unit 191, and a user sets printing paper in the paper feed unit 191 in advance. When a print job is input, the printing device 190 forms an image on the front surface (one side or both sides) of the printing paper set in the paper feed unit 191 while conveying the printing paper along a conveying path 192, and sends the paper to the image processing device 100. The printing device 190 in this embodiment is an electrophotographic printing device, but may be an offset printing or inkjet printing device.

[0012] The image processing device 100 inspects the printout to be inspected for defects after printing. The printout to be inspected, which is obtained by forming an image on a printing paper by the printing device 190, is transported along a transport path 192 and inspected by the image processing device 100. The image processing device 100 functions as an inspection processing device. The image processing device 100 has a CPU 101, a RAM 102, and a ROM 103. The image processing device 100 also has a storage device 104, an image reading device 105, a printing interface (I / F) 106, a general-purpose interface (I / F) 107, a user interface (UI) panel 108, and a main bus 109. The image processing device 100 also has a transport path 110 for printed matter connected to the transport 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 been found to have a defect and failed the inspection. The printed matter may be classified not only into two types, pass and fail, but also into more detailed classifications. In the printing system, the storage device 104 , the image reading device 105 , the UI panel 108 , the transport path 110 , the output tray 111 , and the output tray 112 may be provided outside the image processing device 100 .

[0013] The CPU 101 is a processor that comprehensively controls each unit of the image processing device 100. The RAM 102 functions as the main memory, work area, etc. of the CPU 101. The ROM 103 stores a group of programs executed by the CPU 101. The storage device 104 stores applications executed by the CPU 101, data used in image processing, etc. The image reading device 105 is a scanner that reads one or both sides of a printed matter sent from the printing device 190 on a conveying path 110 and acquires the data as image data.

[0014] The print I / F 106 is connected to the printing device 190, and is an interface for synchronizing the timing of print processing between the image processing device 100 and the printing device 190 and for notifying each other of their operating status. The general-purpose I / F 107 is a serial bus interface such as USB or IEEE1394, and allows the user to carry data such as logs. The UI panel 108 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 100. The UI panel 108 may also include an input device such as a touch panel or buttons, and can accept instructions from the user regarding inspections, etc. The input device may be provided separately from the UI panel 108, such as a mouse or a keyboard. The main bus 109 is a transmission path that connects the modules of the image processing device 100.

[0015] While conveying the printed matter sent from the printing device 190 along the conveying path 110, the image processing device 100 performs an inspection process, described below, based on the image data of the printed matter read by the image reading device 105. If the printed matter passes the inspection, it is conveyed to a pass output tray 111, and if it fails the inspection, it is conveyed to a fail output tray 112. In this way, only printed matters that have been confirmed to meet the quality standards can be collected in the output tray 111 as printed matters for delivery.

[0016] <Functional configuration of image processing device> 2 shows the functional configuration of the image processing device 100. The image processing device 100 has a reference image setting unit 201, an area setting unit 202, a detection sensitivity setting unit 203, a local pattern extraction unit 204, a detection sensitivity adjustment unit 205, an image acquisition unit 206, and an inspection processing unit 207.

[0017] The reference image setting unit 201 sets an image represented by image data recorded in the RAM 102 or the storage device 104 as a reference image. The area setting unit 202 sets an inspection area for the reference image based on an instruction from the user acquired via the UI panel 108. The detection sensitivity setting unit 203 sets the detection sensitivity for defects in each inspection area based on an instruction from the user acquired via the UI panel 108. The detection sensitivity in this embodiment is set for each type of defect. There are two types of defects in this embodiment: point-like defects (hereinafter referred to as point-like defects) and line-like defects (hereinafter referred to as line-like defects). The local pattern extraction unit 204 extracts an area corresponding to a specific local pattern from the reference image. The local pattern to be extracted in this embodiment is a line-like pattern, and the local pattern extraction unit 204 extracts an area corresponding to the line-like pattern from the reference image. The detection sensitivity adjustment unit 205 lowers the detection sensitivity for defects similar to the local pattern in the area corresponding to the local pattern. In this embodiment, the detection sensitivity adjustment unit 205 reduces the detection sensitivity for linear defects in an area corresponding to a linear pattern. The image acquisition unit 206 acquires inspection target image data representing an inspection target image obtained by the image reading device 105 reading a printed material on the conveying path 110. The acquired inspection target image data is stored in the RAM 102 or the storage device 104. The inspection processing unit 207 performs inspection processing on the inspection target image based on the difference between the reference image and the inspection target image and the detection sensitivity, and outputs the inspection result.

[0018] <Processing performed by the image processing device> 3 is a flowchart showing the processing executed by the image processing device 100. Hereinafter, each step (process) is represented by adding an S before the reference number. In S301, the reference image setting unit 201 sets a reference image. An example of the reference image is shown in FIG. 4(a). It is assumed that the reference image data representing the reference image is created in advance based on a scanned image obtained by reading a printed matter output by the printing device 190, and is recorded in the RAM 102 or the storage device 104.

[0019] In S302, the region setting unit 202 sets an inspection region for the reference image based on an instruction from the user acquired via the UI panel 108. An example of the inspection region is shown in FIG. 5. In this embodiment, the region setting unit 202 sets an inspection region A and an inspection region B for the reference image. In S303, the detection sensitivity setting unit 203 sets the detection sensitivity for defects in each inspection region based on an instruction from the user acquired via the UI panel 108. In this embodiment, the detection sensitivity setting unit 203 sets the detection sensitivity for point defects and linear defects in each inspection region in three stages: high, medium, and low. The higher the detection sensitivity, the more defects with low contrast with the background and small size are detected. An example of the detection sensitivity is shown in FIG. 6. In the inspection region A, the detection sensitivity for point defects and linear defects is set to high, and in the inspection region B, the detection sensitivity for point defects and linear defects is set to medium.

[0020] In S304, the local pattern extraction unit 204 extracts an area corresponding to a local pattern in the reference image. FIG. 7 is a flowchart showing the process of extracting an area corresponding to a local pattern. The process of extracting an area corresponding to a local pattern will be described below in detail. In S701, the local pattern extraction unit 204 applies a line emphasis filter to the reference image to emphasize a linear pattern included in the reference image. The line emphasis filter increases the pixel value of pixels corresponding to a linear pattern. Hereinafter, an image obtained by applying the line emphasis filter to the reference image is called a line emphasis image. The line emphasis filter in this embodiment is a known Sobel filter, but a known two-dimensional filter such as a Prewitt filter may be used. In S702, the local pattern extraction unit 204 extracts an area corresponding to a linear pattern in the line emphasis image. In this embodiment, an edge area is extracted as the area corresponding to the linear pattern. FIG. 8(a) shows an example of an edge area. Specifically, the local pattern extraction unit 204 performs threshold processing on each pixel of the line emphasis image, and extracts pixels having a pixel value larger than the threshold as edge pixels constituting the edge area. The extracted edge region may be corrected by applying known morphological processing or the like to the edge region.

[0021] In S305, the detection sensitivity adjustment unit 205 reduces the detection sensitivity for defects similar to the local pattern in the region corresponding to the local pattern. FIG. 9 is a flowchart showing the process of adjusting the detection sensitivity. The details of the process of adjusting the detection sensitivity will be described below. In S901, the detection sensitivity adjustment unit 205 divides the inspection region based on the edge region. FIG. 8(b) shows an example of the divided inspection region. In this embodiment, the edge region in the inspection region A is the region Ae, and the non-edge region in the inspection region A is the region An. The edge region in the inspection region B is the region Be, and the non-edge region in the inspection region B is the region Bn. In S902, the detection sensitivity adjustment unit 205 reduces the detection sensitivity for linear defects, which are defects similar to a linear pattern, in the edge region. Specifically, the detection sensitivity adjustment unit 205 sets the detection sensitivity for linear defects in the region Ae to be lower than the detection sensitivity set for the inspection region A, and sets the detection sensitivity for point defects to be the same as the detection sensitivity set for the inspection region A. Furthermore, the detection sensitivity adjustment unit 205 sets the detection sensitivity for line defects in region Be to be lower than the detection sensitivity set for inspection region B, and sets the detection sensitivity for point defects to be the same as the detection sensitivity set for inspection region B. The detection sensitivity for region An is set to be the same as the detection sensitivity set for inspection region A, and the detection sensitivity for region Bn is set to be the same as the detection sensitivity set for inspection region B. An example of the adjusted detection sensitivity is shown in Fig. 10(a).

[0022] In S306, the image acquisition unit 206 acquires inspection target image data representing the inspection target image. An example of the inspection target image is shown in FIG. 4(b). In S307, the inspection processing unit 207 performs inspection processing on the inspection target image based on the difference between the reference image and the inspection target image and the detection sensitivity, and outputs the inspection result. Details of the inspection processing will be described later. In S308, the inspection processing unit 207 determines whether or not to end the processing based on the printing information from the printing device 190 and instructions from the user obtained via the UI panel 108. If it is determined that the processing should not be ended, the process proceeds to S306.

[0023] <Inspection process> FIG. 11 is a flowchart showing the inspection process. FIG. 12 is a diagram showing an outline of the inspection process. Details of the inspection process will be described below. In S1101, the inspection processing unit 207 calculates the absolute value of the difference in luminance value between corresponding pixels of the reference image and the inspection target image based on the reference image and the inspection target image, and generates a difference image having the absolute value of the difference in luminance value for each pixel. In S1102, the inspection processing unit 207 generates a defect-enhanced image by emphasizing the defect to be processed contained in the difference image. If the defect to be processed is a line defect, a line enhancement filter is applied to the difference image. A Sobel filter is used as the line enhancement filter. If the defect to be processed is a point defect, a point enhancement filter is applied to the difference image. A known two-dimensional LoG (Laplacian of Gaussian) filter is used as the point enhancement filter. Note that a known two-dimensional filter such as a DoG (Difference of Gaussian) filter may be used as the point enhancement filter.

[0024] In S1103, the inspection processing unit 207 sets a threshold value used for inspection based on the detection sensitivity corresponding to the inspection area to be processed and the defect to be processed. In this embodiment, the defective pixels constituting the defective area are detected by comparing the pixel value of the defect-emphasized image with the threshold value Th1. Furthermore, in order to determine whether the defective area has a sufficient area, the area of ​​the defective area consisting of a group of connected defective pixels is compared with the threshold value Th2. Therefore, the inspection processing unit 207 in S1103 sets the threshold value Th1 and the threshold value Th2. Specifically, the inspection processing unit 207 sets the threshold value so that the higher the detection sensitivity, the more defects with low contrast with the background and small size can be detected. The inspection processing unit 207 sets the threshold value Th1 to a smaller value as the detection sensitivity is higher, and sets the threshold value Th2 to a smaller value as the detection sensitivity is higher. For example, in this embodiment, the detection sensitivity for linear defects is higher in the area An than in the area Ae, so the threshold value Th1 is set to a smaller value in the area An than in the area Ae, and the threshold value Th2 is set to a smaller value in the area An than in the area Ae.

[0025] In S1104, the inspection processing unit 207 performs threshold processing on the pixel values ​​of the defect emphasized image using a threshold Th1. Through the threshold processing, the inspection processing unit 207 detects pixels in the defect emphasized image whose pixel values ​​are equal to or greater than the threshold Th1 as defective pixels. In S1105, the inspection processing unit 207 performs threshold processing on the area of ​​a defective region in the defect emphasized image using a threshold Th2. Through the threshold processing, the inspection processing unit 207 removes pixels in a defective region whose pixel connectivity is less than the threshold Th2 from the defective pixels detected in S1104.

[0026] In S1106, the inspection processing unit 207 identifies an area common to the inspection area to be processed and the defective area. This makes it possible to detect only the defective area in the inspection area to be processed. In S1107, the inspection processing unit 207 judges whether or not there is an unprocessed inspection area. If there is an unprocessed inspection area, the inspection area to be processed is updated and the process proceeds to S1103. If there is no unprocessed inspection area, the process proceeds to S1108.

[0027] In S1108, the inspection processing unit 207 integrates the defect areas of each inspection area. This makes it possible to obtain a defect area corresponding to the defect to be processed. In S1109, the inspection processing unit 207 determines whether there is an unprocessed defect type. If there is an unprocessed defect type, the defect to be processed is updated and the process proceeds to S1102. If there is no unprocessed defect type, the process proceeds to S1110. In S1110, the inspection processing unit 207 outputs the inspection result. The inspection result is determined as pass if there is no defect area for all defect types, and as fail if there is a defect area for any defect type.

[0028] <Advantages of the First Embodiment> As described above, the image processing device in this embodiment sets a reference image which is a target print result. Sets detection sensitivity for multiple types of defects. Extracts an area corresponding to a local pattern from the reference image. Adjusts the detection sensitivity in the area corresponding to the local pattern so as to lower the detection sensitivity for defects similar to the local pattern. Obtains image data representing an image to be inspected. Inspects the image to be inspected based on the reference image and the adjusted detection sensitivity. This makes it possible to improve the accuracy of inspection of the vicinity of an area including a feature in the image to be inspected.

[0029] <Modification> In this embodiment, the area setting unit 202 sets two areas, inspection area A and inspection area B, as the inspection area, but the method of setting the inspection area is not limited to this. For example, the entire reference image may be set as a single inspection area. Also, three or more areas may be set as the inspection area. Also, a non-inspection area in which defect detection is not performed may be set. When setting a non-inspection area, it is possible to prevent defects in the non-inspection area from being detected by setting the pixel values ​​of the non-inspection area to 0 in the difference image generated in S1101.

[0030] In addition, the detection sensitivity setting unit 203 in this embodiment sets the detection sensitivity in three stages, but the method of setting the detection sensitivity is not limited to this. For example, the detection sensitivity may be set in two stages, or in four or more stages. Furthermore, the detection sensitivity for any defect may be fixed.

[0031] In addition, although the local pattern extraction unit 204 in this embodiment extracts an area corresponding to a line pattern as an area corresponding to a local pattern, it may extract an area corresponding to a dot pattern. In this case, in S701, the local pattern extraction unit 204 applies a point emphasis filter to the reference image to emphasize the dot pattern contained in the reference image. The pixel value of a pixel corresponding to a dot pattern becomes larger due to the point emphasis filter. Hereinafter, an image obtained by applying the point emphasis filter to the reference image is called a point emphasis image. A two-dimensional LoG filter is used as the point emphasis filter. In S702, the local pattern extraction unit 204 extracts an area corresponding to a dot pattern in the point emphasis image. A dot area is extracted as an area corresponding to a dot pattern. An example of a dot area is shown in FIG. 8(c). Specifically, the local pattern extraction unit 204 performs threshold processing on each pixel of the point emphasis image, and extracts pixels having a pixel value larger than the threshold as dot pixels constituting a dot area. Note that the dot area may be corrected by applying a known morphological processing or the like to the extracted dot area.

[0032] In S901, the detection sensitivity adjustment unit 205 divides the inspection area based on the dot area. An example of the divided inspection area is shown in FIG. 8(d). The dot area in the inspection area A is the area Ad, and the non-dot area in the inspection area A is the area An. The dot area in the inspection area B is the area Bd, and the non-dot area in the inspection area B is the area Bn. In S902, the detection sensitivity adjustment unit 205 lowers the detection sensitivity for point defects, which are defects similar to a dot pattern, in the dot area. Specifically, the detection sensitivity adjustment unit 205 sets the detection sensitivity for point defects in the area Ad to be lower than the detection sensitivity set for the inspection area A, and sets the detection sensitivity for linear defects to be the same as the detection sensitivity set for the inspection area A. In addition, the detection sensitivity adjustment unit 205 sets the detection sensitivity for point defects in the area Bd to be lower than the detection sensitivity set for the inspection area B, and sets the detection sensitivity for linear defects to be the same as the detection sensitivity set for the inspection area B. The detection sensitivity for area An is set to be the same as the detection sensitivity set for inspection area A, and the detection sensitivity for area Bn is set to be the same as the detection sensitivity set for inspection area B. An example of the adjusted detection sensitivity is shown in Fig. 10(b).

[0033] In addition, although there are two types of defects in this embodiment, point defects and line defects, line defects of different directions, such as vertical line defects and horizontal line defects, may be detected as different defect types. If the defect to be processed is a vertical line defect, in S1102, the inspection processing unit 207 applies a vertical line emphasis filter that emphasizes vertical lines to the difference image. If the defect to be processed is a horizontal line defect, in S1102, the inspection processing unit 207 applies a horizontal line emphasis filter that emphasizes horizontal lines to the difference image.

[0034] In the inspection process of this embodiment, threshold processing is performed on pixel values ​​and on areas, but defective areas may be detected only by threshold processing on pixel values. In this case, the threshold corresponding to the detection sensitivity needs to be set only for the pixel values.

[0035] In addition, in this embodiment, the user is notified as to whether the inspection target image passes or fails, but the defective area of ​​the inspection target image that fails may be displayed on the UI panel .

[0036] [Second embodiment] In the first embodiment, an area corresponding to a linear pattern is extracted from the reference image as an area corresponding to a local pattern, and the detection sensitivity for linear defects is reduced. In this embodiment, an area corresponding to each of a plurality of types of local patterns is extracted from the reference image, and the detection sensitivity for defects similar to each local pattern is reduced. Note that the configuration of the printing system and the functional configuration of the image processing device 100 in this embodiment are the same as those in the first embodiment, and therefore a description thereof will be omitted. The following mainly describes the processes of S304 and S305, which are different between this embodiment and the first embodiment. Note that the same components as those in the first embodiment are described with the same reference numerals.

[0037] <Processing for extracting areas corresponding to local patterns> In S304, the local pattern extraction unit 204 extracts areas corresponding to the multiple types of local patterns in the reference image. In this embodiment, areas corresponding to line patterns and areas corresponding to dot patterns are extracted as the multiple types of local patterns. Fig. 13 is a flowchart showing the process of extracting areas corresponding to the multiple types of local patterns. Details of the process of extracting areas corresponding to the multiple types of local patterns will be described below.

[0038] In S1301, the local pattern extraction unit 204 enhances a local pattern to be processed that is included in a reference image. If the local pattern to be processed is a line pattern, the local pattern extraction unit 204 applies a line emphasis filter to the reference image. If the local pattern to be processed is a point pattern, the local pattern extraction unit 204 applies a point emphasis filter to the reference image. In S1302, the local pattern extraction unit 204 extracts an area corresponding to the local pattern in the image in which the local pattern is enhanced. If the local pattern to be processed is a line pattern, the local pattern extraction unit 204 performs threshold processing on each pixel of the line emphasis image, and extracts pixels having a pixel value larger than the threshold as edge pixels. If the local pattern to be processed is a point pattern, the local pattern extraction unit 204 performs threshold processing on each pixel of the point emphasis image, and extracts pixels having a pixel value larger than the threshold as dot pixels.

[0039] In S1303, the local pattern extraction unit 204 determines whether or not there is an unprocessed local pattern. If there is an unprocessed local pattern, the local pattern to be processed is updated and the process proceeds to S1301. If there is no unprocessed local pattern, the process proceeds to S1304. In S1304, the local pattern extraction unit 204 integrates regions corresponding to each of the multiple types of local patterns. Specifically, the local pattern extraction unit 204 replaces pixels included in both an edge region and a dot region with pixels belonging to either one of the regions. In this embodiment, the local pattern extraction unit 204 replaces pixels included in both an edge region and a dot region with edge pixels that constitute the edge region. An example of a region corresponding to a local pattern extracted by the process of S1304 is shown in FIG. 14(a).

[0040] <Processing to adjust detection sensitivity> In S305, the detection sensitivity adjustment unit 205 reduces the detection sensitivity for linear defects in edge regions and reduces the detection sensitivity for point defects in dot regions. FIG. 15 is a flowchart showing the process of adjusting the detection sensitivity. Details of the process of adjusting the detection sensitivity will be described below. In S1501, the detection sensitivity adjustment unit 205 divides the inspection region based on a region corresponding to the local pattern to be processed. FIG. 14(b) shows an example of the divided inspection region. The detection sensitivity adjustment unit 205 defines the edge region in the inspection region A as region Ae, the dot region as region Ad, and the other regions as An. Also, the edge region in the inspection region B as region Be, the dot region as region Bd, and the other regions as Bn.

[0041] In S1502, the detection sensitivity adjustment unit 205 reduces the detection sensitivity for defects similar to the local pattern to be processed in a region corresponding to the local pattern to be processed. When the local pattern to be processed is a linear pattern, the detection sensitivity adjustment unit 205 reduces the detection sensitivity for linear defects in the edge region. Specifically, the detection sensitivity adjustment unit 205 sets the detection sensitivity for linear defects in the region Ae to be lower than the detection sensitivity set for the inspection region A, and sets the detection sensitivity for linear defects in the region Be to be lower than the detection sensitivity set for the inspection region B. When the local pattern to be processed is a dot pattern, the detection sensitivity adjustment unit 205 reduces the detection sensitivity for point defects in the dot region. Specifically, the detection sensitivity adjustment unit 205 sets the detection sensitivity for point defects in the region Ad to be lower than the detection sensitivity set for the inspection region A, and sets the detection sensitivity for point defects in the region Bd to be lower than the detection sensitivity set for the inspection region B. An example of the adjusted detection sensitivity is shown in FIG. 16(a).

[0042] In S1503, the detection sensitivity adjustment unit 205 determines whether or not there is an unprocessed local pattern. If there is an unprocessed local pattern, the local pattern to be processed is updated and the process proceeds to S1502. If there is no unprocessed local pattern, the process of S305 ends.

[0043] <Effects of the second embodiment> As described above, the image processing device in this embodiment extracts areas corresponding to each of a plurality of types of local patterns and adjusts the detection sensitivity according to the extracted areas, thereby improving the accuracy of inspection of the vicinity of an area including a feature in the inspection target image.

[0044] <Modification> In this embodiment, edge regions and dot regions are extracted as regions corresponding to local patterns, but local patterns are not limited to these. For example, local patterns of the same type but with different contrast with the background may be extracted separately. In this case, adjustment is made so that the detection sensitivity is lower for regions corresponding to local patterns with higher contrast with the background. As an example, a case will be described where high contrast edge regions and low contrast edge regions are extracted separately. First, a threshold value Th corresponding to high contrast edge regions is set. EH and a threshold value Th corresponding to low contrast edge regions. EL Th EH Th EL The value is set to be larger than.

[0045] In S1302, when the local pattern to be processed is a high-contrast edge, the local pattern extraction unit 204 performs threshold processing on each pixel of the line-enhanced image to obtain a threshold Th EH If the local pattern to be processed is a low-contrast edge, a threshold process is performed on each pixel of the line-enhanced image, and the pixel with the larger pixel value is extracted as a pixel in the high-contrast edge region. EL In step S1304, the local pattern extraction unit 204 replaces pixels in the low-contrast edge region that overlap with pixels in the high-contrast edge region with pixels in the high-contrast edge region.

[0046] In S1501, the detection sensitivity adjustment unit 205 determines the high contrast edge area in the inspection area A as the area Ae Hand the low contrast edge region is Ae L The other regions are denoted as An. The high contrast edge region in the inspection region B is denoted as region Be. H and the low contrast edge region is Be L In step S1502, the detection sensitivity adjustment unit 205 reduces the detection sensitivity for linear defects in the edge region. Specifically, when the local pattern to be processed is a high-contrast edge, the detection sensitivity adjustment unit 205 reduces the detection sensitivity for linear defects in the edge region Ae H In the inspection area B, the detection sensitivity for linear defects is set lower than the detection sensitivity set for the inspection area A. H In the inspection area Ae, the detection sensitivity for the linear defect is set to be lower than the detection sensitivity set for the inspection area B. When the local pattern to be processed is a low-contrast edge, the detection sensitivity adjustment unit 205 L In the inspection area B, the detection sensitivity for linear defects is set lower than the detection sensitivity set for the inspection area A. L In this case, the detection sensitivity for linear defects is set lower than the detection sensitivity set for inspection area B. An example of the adjusted detection sensitivity is shown in FIG.

[0047] [Other embodiments] 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]

[0048] 100 Image processing device 201 Reference image setting unit 203 Detection sensitivity setting section 204 Local Pattern Extraction Unit 205 Detection sensitivity adjustment unit 206 Image Acquisition Unit 207 Inspection Processing Section

Claims

1. a first acquisition means for acquiring image data representing an image of an object to be inspected; a second acquisition means for acquiring a first inspection sensitivity for defects designated by a user; an inspection means for inspecting a first region in the image corresponding to a specific pattern similar to the defect with a second inspection sensitivity lower than the first inspection sensitivity, and inspecting a second region in the image not corresponding to the specific pattern with the first inspection sensitivity; 13. An image processing device comprising:

2. 2. The image processing apparatus according to claim 1, wherein said inspection means inspects the image to be inspected by using a reference image that is a standard for inspection.

3. The inspection system further includes an extraction unit for extracting an area corresponding to the specific pattern in a reference image that is a standard for inspection, 3. The image processing device according to claim 1, wherein the first area is set based on the extracted area.

4. 4. The image processing apparatus according to claim 3, wherein said extracting means extracts an area corresponding to said specific pattern from said reference image by using a filter for emphasizing said specific pattern.

5. 5. The image processing device according to claim 1, wherein the inspection means inspects the image of the inspection object using pixel values ​​of a difference image representing a difference between the image of the inspection object and a reference image that is a standard for inspection, and a threshold value.

6. 6. The image processing apparatus according to claim 5, wherein said inspection means sets said threshold value to a smaller value as the inspection sensitivity increases.

7. the specific pattern is a linear pattern, 7. The image processing apparatus according to claim 1, wherein the defect similar to the line-shaped pattern is a line-shaped defect.

8. the specific pattern is a dot pattern, 8. The image processing apparatus according to claim 1, wherein the defect similar to the dot-like pattern is a dot-like defect.

9. A print control means for performing printing based on an original; A reading control unit for reading the printed matter obtained by the printing, 9. The image processing apparatus according to claim 1, wherein the image data is data obtained by reading a printed matter.

10. The printed matter that passes the inspection by the inspection means is output to a first tray, 10. The image processing apparatus according to claim 1, wherein a printed matter that has failed the inspection by the inspection means is output to a second tray different from the first tray.

11. 11. The image processing apparatus according to claim 1, wherein the inspection means inspects the first area with the second inspection sensitivity that is not specified by a user.

12. 12. The image processing apparatus according to claim 1, further comprising a display control unit that displays a user interface for designating an inspection sensitivity for each of a plurality of types of defects.

13. 13. The image processing apparatus according to claim 1, further comprising a display control unit that displays a user interface for designating an inspection sensitivity for a line defect and an inspection sensitivity for a point defect.

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

15. acquiring image data representative of an image of an object to be inspected; Obtain a first inspection sensitivity for the defect, as specified by a user; inspecting a first region in the image corresponding to a specific pattern similar to the defect with a second inspection sensitivity lower than the first inspection sensitivity, and inspecting a second region in the image not corresponding to the specific pattern with the first inspection sensitivity; 13. An image processing method comprising:

Citation Information

Patent Citations

  • Visual inspection method

    JP2002277410A

  • Inspection device, inspection method, inspection program and recording medium with program recorded thereon

    JP2012103225A

  • Image inspection apparatus, image processing system, and image inspection method

    JP2014055852A

  • Image formation system, image formation apparatus and program

    JP2019084743A

  • JP155736A