Inspection device, inspection device control method, program, and inspection system

JP2023031658A5Active Publication Date: 2024-08-28CANON KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2021137282
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2021-08-25
Publication Date
2024-08-28
Estimated Expiration
2041-08-25

AI Technical Summary

Technical Problem

Conventional inspection systems require manual setting of inspection areas and contents by operators, increasing their workload.

Method used

An inspection apparatus and method that includes reading means, detection means for discriminating line drawing and photograph areas, and automated inspection setting and processing means to reduce operator workload.

Benefits of technology

Automated detection and setting of inspection areas reduce the time and effort required for operators, enhancing efficiency and reducing manual workload.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

To provide an inspection device that can reduce the workload on an inspection operator.SOLUTION: An inspection device 102 performs inspection of a printed material output from an image forming apparatus 101. The inspection device 102 reads the printed material to create a scan image of the printed material, detects a line drawing area and a photographic area from the scan image, discriminates the line drawing area as any one of a character area and a bar code area, and performs settings related to the inspection of the printed material based on a result of the detection and a result of the discrimination.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 inspection apparatus, a control method for an inspection apparatus, and a program.

Background Art

[0002] Conventionally, inspection of printed matter has been performed manually. However, in recent years, an apparatus that automatically inspects printed matter as a post-processing of a printing machine has been used. In such an inspection apparatus, a correct image is registered in advance. Next, input image data is printed and output on a sheet by an image forming apparatus, and the data printed and output on the sheet is read by a reading unit included in the inspection apparatus to generate a scanned image. The inspection apparatus detects defects in the printed matter by comparing the scanned image with the previously registered correct image. The inspection for detecting defects in printed matter in this way is called print image inspection.

[0003] In addition to print image inspection, inspection of variable regions such as character strings and barcodes is also performed in variable printing. For example, there are a character string inspection in which character recognition processing is performed on the reading result of a character string and the recognition result is collated with the correct answer, and a barcode inspection in which the result of reading and decoding a barcode is collated with the correct answer. The character string inspection and the barcode inspection are called data inspection. In data inspection, various inspections are performed based on a preset inspection region and inspection content (for example, see Patent Document 1).

Prior Art Documents

Patent Documents

[0004]

Patent Document 1

Summary of the Invention

Problems to be Solved by the Invention

[0005] However, conventionally, there is a problem that an inspection operator needs to manually set an inspection region and inspection content, increasing the work load of the inspection operator.

[0006] The object of the present invention is to provide an inspection device, a control method for the inspection device, and a program that can reduce the workload of inspection operators. [Means for solving the problem]

[0007] To achieve the above objective, the present invention provides an inspection device for inspecting printed materials, comprising: reading means for reading the printed material and generating a scanned image of the printed material; detection means for detecting line drawing areas and photographic areas from the scanned image; discrimination means for determining whether the line drawing areas are character areas or barcode areas; inspection setting means for setting parameters related to the inspection of the printed material based on the detection result by the detection means and the discrimination result by the discrimination means; and inspection processing means for performing the inspection of the printed material based on the settings by the inspection setting means. [Effects of the Invention]

[0008] According to the present invention, the workload of inspection workers can be reduced. [Brief explanation of the drawing]

[0009] [Figure 1] This is a network diagram of an inspection system including an inspection device according to an embodiment of the present invention. [Figure 2] Figure 1 is a block diagram schematically showing the configuration of the image forming apparatus. [Figure 3] Figure 1 is a block diagram illustrating the schematic configuration of the inspection device. [Figure 4] Figure 1 is a flowchart showing the overall flow from the registration process before the start of the inspection to the execution of the inspection using the inspection device. [Figure 5] This flowchart shows the procedure for the object analysis process performed by the reference image analysis unit according to the instructions in step S402 of Figure 4. [Figure 6]Figure 5 is a diagram illustrating the detection of the line drawing area and the photographic area in step S501. [Figure 7] This figure illustrates the calculation of the projection histogram in step S504 of Figure 5. [Figure 8] Figure 4 is a flowchart showing the procedure for the inspection setting process in step S403. [Figure 9] This flowchart shows the procedure for the inspection area setting process performed by the inspection setting unit in accordance with the instructions in step S801 of Figure 8. [Figure 10] This figure shows an example of the settings screen displayed in the UI section of Figure 3. [Figure 11] This flowchart shows the procedure for the inspection control process performed by the inspection processing unit in accordance with the instructions in step S404 of Figure 4. [Figure 12] Figure 1 is a flowchart showing the overall flow from the registration process before the start of the inspection to the execution of the inspection using the inspection device. [Figure 13] This figure illustrates steps S401 and S402 in Figure 12. [Figure 14] Figure 12 is a flowchart showing the steps for other inspection setting processes in step S1201. [Figure 15] This flowchart shows the procedure for other inspection area setting processes performed by the inspection setting unit in accordance with the instructions in step S801 of Figure 14. [Figure 16] Figure 15 is a flowchart showing the procedure for the orientation determination process in step S1501. [Figure 17] This figure shows an example of the settings screen displayed in the UI section of Figure 3. [Modes for carrying out the invention]

[0010] Embodiments of the present invention will be described in detail below with reference to the drawings. However, the components described in these embodiments are merely examples and are not intended to limit the scope of this invention to them.

[0011] FIG. 1 is a network diagram of an inspection system 100 including an inspection apparatus 102 according to an embodiment of the present invention.

[0012] The inspection system 100 in FIG. 1 includes an image forming apparatus 101, an inspection apparatus 102, a finisher 103, a client PC 104, and a print server 105. In the inspection system 100, the image forming apparatus 101 is connected to the client PC 104 and the print server 105 via a network 106. Further, the image forming apparatus 101 is connected to the inspection apparatus 102 and the finisher 103 via a communication cable (not shown). The inspection apparatus 102 is connected to the finisher 103 via a communication cable (not shown) in addition to the image forming apparatus 101. The inspection system 100 is an in-line inspection system that consistently performs image formation, inspection of printed matter, post-processing, and paper discharge.

[0013] The image forming apparatus 101 converts image data and document data received from the client PC 104, the print server 105, etc. into print data, and outputs a printed matter obtained by printing the print data on paper. The inspection apparatus 102 performs a print image inspection that is an inspection for detecting defects in the printed matter output from the image forming apparatus 101. Here, a defect is something that degrades the quality of the printed matter. For example, it is a stain that occurs when a coloring material adheres to an unintended location during printing, or a streak that occurs when a sufficient amount of coloring material does not adhere to an intended location. Further, the inspection apparatus 102 performs a data inspection for inspecting variable area portions such as character strings and barcodes in variable printing. Examples of the data inspection include a data readable inspection for checking whether a character string or barcode can be read, and a data collation inspection for collating the read result of a character string or barcode with pre-registered correct data. The inspection apparatus 102 outputs the inspected printed matter to the finisher 103.

[0014] The finisher 103 performs post-processing, such as binding, on the inspected printed materials received from the inspection device 102, based on settings specified by the client PC 104 or the like. The finisher 103 also determines the output destination for the post-processed printed materials based on the inspection results from the inspection device 102, and outputs the printed materials to the determined output destination.

[0015] Figure 2 is a block diagram schematically showing the configuration of the image forming apparatus 101 shown in Figure 1. In Figure 2, the image forming apparatus 101 comprises a controller unit 200, a printer unit 201, and a UI unit 202. The controller unit 200 is connected to the printer unit 201 and the UI unit 202.

[0016] The controller unit 200 converts image data and document data received from client PCs 104, print servers 105, etc., into print data. The printer unit 201 prints the print data onto paper. The UI unit 202 is an operation unit for the user to give instructions to the image forming apparatus 101, such as selecting paper information.

[0017] The controller unit 200 also includes a network interface unit 203, a CPU 204, RAM 205, ROM 206, an image processing unit 207, an engine interface unit 208, and a communication interface unit 209. The network interface unit 203, CPU 204, RAM 205, ROM 206, image processing unit 207, engine interface unit 208, and communication interface unit 209 are connected to each other via an internal bus 210.

[0018] The network interface unit 203 is an interface for sending and receiving data with client PCs 104, print servers 105, etc. The CPU 204 controls the entire image forming apparatus 101. The RAM 205 is used as a work area when the CPU 204 executes various instructions. The ROM 206 stores program data executed by the CPU 204 at startup, setting data for the controller unit 200, etc. The image processing unit 207 performs image processing to convert image data and document data received from client PCs 104, print servers 105, etc. into print data. The engine interface unit 208 transmits print data to the printer unit 201. The communication interface unit 209 is an interface for the image forming apparatus 101 to communicate with inspection devices 102 and finishers 103.

[0019] In the inspection system 100, image data and document data created on client PCs 104 and print servers 105 are transmitted as PDL data to the image forming apparatus 101 via a network, such as a Local Area Network. The image forming apparatus 101 receives the PDL data via the network interface unit 203 and stores the PDL data in RAM 205. Print instructions entered by the user in the UI unit 202 are also stored in RAM 205. User print instructions include, for example, the selection of paper type.

[0020] The image processing unit 207 acquires PDL data stored in RAM 205 and performs image processing to convert the acquired PDL data into print data. This image processing involves, for example, rasterizing the PDL data to convert it into multi-level bitmap data, and then performing screen processing or other operations to convert the multi-level bitmap data into binary bitmap data. The binary bitmap data obtained by the image processing unit 207 is transmitted to the printer unit 201 via the engine I / F unit 208.

[0021] The printer unit 201 prints the received binary bitmap data onto paper using colorants. The CPU 204 issues instructions to the printer unit 201 based on the user's print instructions stored in RAM 205. For example, if the user requests printing on coated paper, the CPU 204 instructs the printer unit 201 to output paper from a paper cassette (not shown) in the image forming apparatus 101 where coated paper is stored. In this embodiment, the various processes from receiving the PDL data to printing on the paper are controlled by the CPU 204, thereby forming a full-color toner image on the paper.

[0022] Figure 3 is a schematic block diagram showing the configuration of the inspection device 102 shown in Figure 1. In Figure 3, the inspection device 102 comprises an inspection control unit 300, an image reading unit 301, and a UI unit 302. The inspection control unit 300 is connected to the image reading unit 301 and the UI unit 302.

[0023] The inspection control unit 300 controls the entire inspection device 102, controls the printed image inspection, and controls the data inspection. The image reading unit 301 reads the printed material output from the image forming apparatus 101 and generates a scanned image of the printed material. The UI unit 302 is an operation unit for setting the inspection device 102 and displaying the inspection results. Here, the setting of the inspection device 102 refers to setting the items of what defects to inspect when inspecting printed materials. Inspection items include, for example, the detection of round defects (dots) and linear defects (streaks), and the correctness of variable area parts such as strings of characters and barcodes.

[0024] The inspection control unit 300 also includes a communication interface unit 303, a CPU 304, a RAM 305, a ROM 306, a reference image analysis unit 307, an inspection processing unit 308, and an inspection setting unit 309. The communication interface unit 303, CPU 304, RAM 305, ROM 306, reference image analysis unit 307, inspection processing unit 308, and inspection setting unit 309 are connected to each other via an internal bus 310.

[0025] The communication interface unit 303 is an interface for communicating data with the image forming apparatus 101 and the finisher 103. The CPU 304 controls the entire inspection apparatus 102. The RAM 305 is used as a work area when the CPU 304 executes various instructions. The ROM 306 stores program data executed by the CPU 304 at startup, setting data for the inspection control unit 300, etc. The reference image analysis unit 307 performs object analysis processing of the reference image, which will be described later. The inspection processing unit 308 detects defects in printed materials and determines the correctness of strings and barcodes. The inspection setting unit 309 sets the inspection area, which will be described later.

[0026] Next, we will explain the overview of the inspection performed by the inspection device 102.

[0027] The inspection device 102 reads the printed material to be inspected output from the image forming apparatus 101 using the image reading unit 301 and generates a scanned image of the printed material (hereinafter referred to as the "scanned image to be inspected"). The acquired scanned image to be inspected is stored in the RAM 305. Next, the inspection device 102 calculates the difference between the scanned image to be inspected and a reference image that has been previously stored in the RAM 305 as a correct image using the inspection processing unit 308. Then, the inspection device 102 performs inspection by comparing the calculated difference with the inspection threshold (contrast and size) of each inspection item for each pixel. As an inspection result, information such as whether or not there is a defect in the printed material, the type of defect detected (dot or streak), the location information of the defect when displayed on the UI unit 302, and correctness judgment information for strings and barcodes are stored in the RAM 305.

[0028] Next, the inspection device 102 displays the inspection results stored in the RAM 305 on the UI unit 302. The inspection operator can recognize the inspection results from the information displayed on the UI unit 302. If a predetermined number of defective printed materials are produced consecutively, the inspection device 102 transmits information indicating this consecutive defect occurrence to the image forming apparatus 101. The inspection device 102 also transmits defect presence / absence information indicating whether or not the printed material has defects to the finisher 103.

[0029] Upon receiving the continuous defect occurrence information from the inspection device 102, the CPU 204 of the image forming apparatus 101 instructs the printer unit 201 to stop printing. As a result, the image forming apparatus 101 stops printing.

[0030] Meanwhile, the finisher 103, having received the defect information from the inspection device 102, uses this defect information to eject printouts without defects into the normal output tray and printouts with defects into a tray separate from the normal output tray.

[0031] Figure 4 is a flowchart showing the overall flow from the registration process before the start of the inspection to the execution of the inspection, performed by the inspection device 102 in Figure 1. Each step in Figure 4 is realized by the CPU 304 executing a program stored in the ROM 306.

[0032] In Figure 4, first, in step S401, the CPU 304 performs a registration process for a reference image that will serve as the basis for inspection. In this registration process, the CPU 304 displays a scanned image prepared by the inspector on the UI unit 302. This scanned image is generated when the image forming apparatus 101 reads a printed material that the inspector has determined to be free of defects by visual inspection. When the inspector presses a registration button (not shown) on the UI unit 302 while the scanned image is displayed, the CPU 304 saves the scanned image as a reference image to the RAM 305. As a result, the scanned image is registered as a reference image.

[0033] Next, in step S402, the CPU 304 instructs the reference image analysis unit 307 to execute the object analysis process shown in Figure 5, which will be described later. This determines the type of each object that makes up the reference image and detects its region.

[0034] Next, in step S403, the CPU 304 executes the inspection setting process shown in Figure 8, which will be described later, to automatically set the inspection area and the type of inspection. With this, the preparation before the start of inspection is complete, and the inspection device 102 can perform the inspection of the printed material based on the settings in step S403.

[0035] Subsequently, the image forming apparatus 101 outputs the printed material to be inspected according to instructions received from the inspector. This printed material is transported to the inspection apparatus 102, and when the inspector presses the inspection start button (not shown) displayed on the UI unit 302, the CPU 304 has the image reading unit 301 read this printed material and generate a scanned image of this printed material (inspection target scan image). The inspection target scan image is stored in the RAM 305 of the inspection apparatus 102. Next, in step S404, the CPU 304 instructs the inspection processing unit 308 to execute the inspection control process shown in Figure 11, which will be described later. This performs an inspection by comparing the stored inspection target scan image with a reference image. In this way, the inspection system 100 performs inspection of printed materials.

[0036] Figure 5 is a flowchart showing the procedure for the object analysis process performed by the reference image analysis unit 307 in accordance with the instructions in step S402 of Figure 4.

[0037] First, in step S501, the reference image analysis unit 307 detects line drawing regions and photographic regions from the reference image. The method for detecting line drawing regions and photographic regions will be explained with reference to Figure 6. In this embodiment, as an example, the case where the reference image is a 24-bit image with 8 bits each for RGB is described, but the reference image is not limited to this, and may be a YUV image consisting of brightness and color difference, for example.

[0038] In step S501, the reference image analysis unit 307 first generates a binary image from the reference image. In a binary image, pixels darker than a threshold in the input image become, for example, black pixels, and pixels below the threshold become, for example, white pixels. Note that the binarization result is not limited to black and white; it may be represented by other colors, or it may not have a color and be represented by "1" and "0" or "0" and "1". Here, the binary image 601 in Figure 6(a) is used as an example of a binary image of a reference image. Note that if the input image is a color multi-level image, binarization will be performed only on the luminance of that multi-level image (for example, Y in YUV). Known techniques are used for calculating the threshold when performing binarization. For example, it may be calculated from the luminance histogram of the entire image, or an arbitrary value may be used as the threshold.

[0039] Furthermore, the reference image analysis unit 307 detects photographic regions and line drawing regions in the binary image 601 of the reference image using the following steps (i) to (iv).

[0040] (i) The reference image analysis unit 307 extracts clusters of black pixels (black pixel clusters) by tracking the contours of black pixels in the binary image 601. In contour tracking, the reference image analysis unit 307 determines whether black pixels are continuous in any of the eight directions: upper left, left, lower left, down, lower right, right, upper right, and up. For example, in (1) of Figure 6(b), the black pixel cluster 602 enclosed by the dashed line is extracted.

[0041] (ii) The reference image analysis unit 307 identifies whether there are white pixel clusters within the region of one or more extracted black pixel clusters if any black pixel clusters exceed a predetermined size. That is, the reference image analysis unit 307 extracts white pixel clusters by tracking the contours of white pixels within the region of the black pixel clusters. For example, as shown in (2) of Figure 6(b), the reference image analysis unit 307 extracts a white pixel cluster 603 by tracking the contours of white pixels inside the black pixel cluster 602. Furthermore, if the extracted white pixel cluster exceeds a predetermined size, the reference image analysis unit 307 extracts black pixel clusters again by tracking the contours of black pixels within the white pixel clusters. These processes are repeated until the pixel clusters are less than or equal to the predetermined size. This process is performed to extract line drawing regions within regions enclosed by borders, etc.

[0042] (iii) The reference image analysis unit 307 classifies the obtained black pixel clusters into either line drawings or photographs using at least one of their size, shape, or black pixel density. For example, if the density of black pixels in a black pixel cluster is high, as in the character (3) in Figure 6(b), it is determined to be a black pixel cluster that constitutes a line drawing. The remaining black pixel clusters are then determined to be pixel clusters that constitute a photograph. Here, the character "A" is determined to be a line drawing, but the characters "B" and "C" are also determined to be line drawings by performing the same processing as in (i) to (iii).

[0043] (iv) The reference image analysis unit 307 classifies black pixel clusters constituting a line drawing into the same group if they are close together from their edges. Then, it determines that the bounding rectangular region encompassing all the black pixel clusters classified into the same group is the line drawing region. For example, as shown in (4) of Figure 6(b), if the distance between line drawings is small, the reference image analysis unit 307 determines that each line drawing is a single line drawing region. A black pixel cluster that constitutes a line drawing and is not within a predetermined distance of other black pixel clusters constituting the line drawing will constitute a group on its own. Therefore, the bounding rectangular region of that single black pixel cluster will be determined to be the line drawing region. The same processing as described in (iv) is also performed on black pixel clusters constituting a photograph. The reference image analysis unit 307 then outputs positional information for each region and attribute determination information for that region as the determination result. The attribute determination information indicates whether each region is a line drawing region or a photograph region.

[0044] Through the processes described in (i) to (iv) above, for example, region 604 in Figure 6(c) is determined to be a photographic region, and regions 605 and 606 are determined to be line drawing regions. In this way, in step S501, line drawing regions and photographic regions are detected from the reference image.

[0045] Next, in step S502, the reference image analysis unit 307 determines whether or not one or more line drawing regions were detected in step S501. If one or more line drawing regions are detected in step S501, the object analysis process proceeds to step S503. If no line drawing regions are detected in step S501, the object analysis process ends and proceeds to step S403 in Figure 4.

[0046] In step S503, the reference image analysis unit 307 selects one line drawing region from the line drawing regions detected in step S501. In this embodiment, the line drawing regions detected in step S501 are selected in the order of raster scan. For example, in Figure 6(c), line drawing region 605 is selected first. Note that the selection method is not limited to this, and other orders may be used.

[0047] Next, in step S504, the reference image analysis unit 307 calculates projection histograms in the horizontal and vertical directions for the pixels within the selected line drawing region. The method for calculating the projection histograms will be explained using Figure 7.

[0048] In Figure 7(a), 701 represents the group of pixels within the line drawing region 605 selected in step S503. Graph 702 shows the result of integrating the luminance values ​​horizontally for this group of pixels, and graph 703 shows the result of integrating the luminance values ​​vertically. The luminance values ​​are calculated, for example, using the average value of each RGB signal value. If 701 is, for example, a group of 50 pixels vertically and 100 pixels horizontally, the integrated luminance value of the pixels in the rightmost column will be as shown in 704. If the luminance values ​​of all the pixels in the rightmost column are 255, the integrated value will be 255 × 50 = 12750. Since 701 consists of 100 pixels horizontally, 100 of these integrated values ​​will be calculated. Similarly, 50 integrated values ​​will be calculated vertically.

[0049] Next, the reference image analysis unit 307 calculates the variance of the histograms in the horizontal and vertical directions for each line drawing region. In this embodiment, for calculating the variance of the histograms, the value obtained by dividing the sum of the squares of the differences between the cumulative values ​​in the vertical and horizontal directions by the number of cumulative values ​​is used, starting from the mean value of the cumulative values ​​in the vertical and horizontal directions. However, it is not limited to this, and for example, a standard deviation using the sum instead of the sum of squares may be calculated and used. Next, the reference image analysis unit 307 calculates the absolute value of the difference between the obtained horizontal histogram variance and the vertical histogram variance.

[0050] Next, in step S505, the reference image analysis unit 307 determines whether this value is greater than or equal to a threshold. For example, the pixel group 701 in Figure 7(a) is a group of pixels in the area where a barcode is printed in the reference image, and such a group of pixels has a high horizontal dispersion and a low vertical dispersion. For example, let's assume the horizontal dispersion value is "250" and the vertical dispersion value is "10". Here, in order to avoid being affected by the magnitude of the brightness value, for example, before calculating the difference, these values ​​are normalized by dividing them by the maximum possible brightness value of the reference image, for example, "255". As a result, the horizontal dispersion becomes "0.98", the vertical dispersion becomes "0.04", and the difference between them becomes "0.94". If the threshold is, for example, "0.5", then the above difference exceeds the threshold. In this way, if the absolute value of the difference between the horizontal dispersion and the vertical dispersion is greater than or equal to the threshold, the object analysis process proceeds to step S506.

[0051] In Figure 7(b), 705 represents the group of pixels within the line drawing region 606 selected in step S503. Graph 706 shows the result of integrating the luminance values ​​horizontally for this pixel group, and graph 707 shows the result of integrating the luminance values ​​vertically. Pixel group 705 is the group of pixels in the area where the string (ABC) is printed in the reference image. Such pixel groups have high variance in both the horizontal and vertical directions. For example, let the horizontal variance be "200" and the vertical variance be "170". Normalizing these values ​​as described above, the horizontal variance becomes "0.78" and the vertical variance becomes "0.67", with a difference of "0.11". This difference does not exceed the threshold of "0.5". When the absolute value of the difference between the horizontal and vertical variances is less than the threshold, the object analysis process proceeds to step S507. In this embodiment, a configuration in which the above discrimination is performed based on the difference in variance has been described, but the configuration is not limited to this one, and for example, the above discrimination may be performed based on the difference in standard deviation.

[0052] In step S506, the reference image analysis unit 307 identifies the line drawing area selected in step S503 as a barcode area. The object analysis process then proceeds to step S508.

[0053] In step S507, the reference image analysis unit 307 identifies the line drawing area selected in step S503 as a character area. The object analysis process then proceeds to step S508.

[0054] In step S508, the reference image analysis unit 307 determines whether or not all line drawing regions in the reference image have been selected. If all line drawing regions in the reference image have been selected, the object analysis process ends and proceeds to step S403 in Figure 4. If no line drawing regions in the reference image have been selected, the object analysis process returns to step S503.

[0055] The information regarding the regions detected and identified by the object analysis process described above (hereinafter referred to as "object information") is recorded in List 607 in Figure 6(d), and this List 607 is stored in RAM 305. The object information includes attribute information of the region detected by the object analysis process, and coordinate information of the top-left and bottom-right corners of that region. The attribute information indicates whether it is a photograph, a barcode, or text. List 607 records multiple object information corresponding to regions 604, 605, and 606 in Figure 6(c), and each object information is assigned an ID. In List 607, the object information corresponding to region 604 is assigned an ID of "0", the object information corresponding to region 605 is assigned an ID of "1", and the object information corresponding to region 606 is assigned an ID of "2". The IDs are assigned, for example, in ascending order of the sum of the x and y coordinates of the top-left corner of the region.

[0056] Figure 8 is a flowchart showing the procedure for the inspection setup process in step S403 of Figure 4.

[0057] In Figure 8, first, in step S801, the CPU 304 instructs the inspection setting unit 309 to set the inspection area. Upon receiving this instruction, the inspection setting unit 309 executes the inspection area setting process shown in Figure 9.

[0058] Figure 9 is a flowchart showing the procedure for the inspection area setting process performed by the inspection setting unit 309 in accordance with the instructions in step S801 of Figure 8.

[0059] In Figure 9, first, in step S901, the inspection setting unit 309 selects one object information from the list 607 stored in RAM 305. The inspection setting unit 309 selects the object information in ascending order of ID, for example. However, the order in which the object information is selected is not limited to this order, and the object information may be selected in other orders.

[0060] Next, in step S902, the inspection setting unit 309 determines the attribute of the area corresponding to the selected object information based on the selected object information. The area in question is the area indicated by the coordinate information included in the object information selected in step S901 in the reference image. If the attribute of the area is determined to be a photograph in step S902, the inspection area setting process proceeds to step S903. If the attribute of the area is determined to be text in step S902, the inspection area setting process proceeds to step S904. If the attribute of the area is determined to be a barcode in step S902, the inspection area setting process proceeds to step S905.

[0061] In step S903, the inspection setting unit 309 sets the above area as a photographic inspection area. The inspection area setting process then proceeds to step S906. In step S904, the inspection setting unit 309 sets the above area as a character inspection area. The inspection area setting process then proceeds to step S906. In step S905, the inspection setting unit 309 sets the above area as a barcode inspection area. The inspection area setting process then proceeds to step S906.

[0062] In step S906, the inspection setting unit 309 determines whether all object information has been selected from list 607. If, as a result of the determination in step S906, no object information has been selected from list 607, the inspection area setting process returns to step S901, and the inspection setting unit 309 selects the next object information from list 607. If, as a result of the determination in step S906, all object information has been selected from list 607, the inspection area setting process ends, and the setting screen 1001 shown in Figure 10 is displayed on the UI unit 302 of the inspection device 102.

[0063] The settings screen 1001 is a screen for making various settings related to the inspection of printed materials. The settings screen 1001 consists of an image display area 1002, a photo inspection setting area 1006, a character / barcode inspection setting area 1008, and an OK button 1015.

[0064] The image display area 1002 displays a reference image. The reference image area 1003 is the area set as the photo inspection area in step S903. The reference image area 1004 is the area set as the barcode inspection area in step S905. The reference image area 1005 is the area set as the character inspection area in step S904. For example, if the inspector selects area 1003 in the image display area 1002, the photo inspection setting area 1006 for setting up photo inspection becomes operational. Also, if the inspector selects area 1004 or area 1005 in the image display area 1002, the character / barcode inspection setting area 1008 for setting up data inspection, i.e., character inspection and barcode inspection, becomes operational. In this way, in this embodiment, the inspection area and the type of inspection for that inspection area are set based on the object information recorded in the object analysis process described above, without the inspector having to set them manually.

[0065] The photo inspection setting area 1006 includes setting items 1007. Setting items 1007 are used to set how finely the defects should be detected for each defect shape. For example, inspection levels can be set for round defects (dots) and linear defects (streaks). The inspection levels can be, for example, five levels from level 1 to level 5, with level 5 being able to detect thinner and smaller defects than level 1. In addition, setting items 1007 can be used to set different levels for each defect shape, for example, setting a dot to level 5 and a streak to level 4.

[0066] The character / barcode inspection setting area 1008 consists of setting items 1009 and 1010. In setting item 1009, the data for the matching inspection is selected by a file selection method. Figure 10 shows, as an example, how "abc.csv" is selected by the user as the data for the matching inspection. The data for the matching inspection is a reference CSV file for data inspection that is used for comparison when performing data inspection. The reference CSV file is a file prepared in advance by the user and lists the correct strings for string inspection and barcode inspection. In data inspection, the reading results of strings and barcodes are compared with the correct strings listed in the reference CSV file. Setting item 1010 includes direction setting buttons 1011 to 1014 that indicate the upright direction (angle) of the character / barcode. In this embodiment, in the photo inspection setting area 1006 and the character / barcode inspection setting area 1008, pre-registered default values ​​may be displayed as initial values ​​before the user enters any information.

[0067] Returning to Figure 8, in step S802, the CPU 304 configures the print image inspection settings based on the user's settings on the settings screen 1001. For example, if the user selects the photo inspection area 1003 on the settings screen 1001 and sets the inspection levels for defects (dots) and defects (streaks) in setting item 1007, then these settings are configured in step S802.

[0068] Next, in step S803, the CPU 304 configures the data inspection settings based on the user's settings on the settings screen 1001. For example, if the user selects the barcode inspection area 1004 and the character inspection area 1005, selects a file in setting item 1009, and then selects one of the direction setting buttons in setting item 1010, these settings will be configured in step S803. Note that the processing in steps S802 to S803 may be performed in any order.

[0069] Next, in step S804, the CPU 304 saves the settings configured in steps S802 and S803 to the RAM 305. After that, the inspection setting process is completed. As a result, the inspection device 102 can perform inspections on the printed materials to be inspected, output from the image forming apparatus 101, based on the settings on the setting screen 1001.

[0070] Figure 11 is a flowchart showing the procedure of the inspection control process executed by the inspection processing unit 308 in accordance with the instructions in step S404 of Figure 4. The process in Figure 11 is executed when the image reading unit 301 reads the printed material to be inspected output from the image forming apparatus 101, generates a scanned image of the printed material (inspection target scan image), and saves this inspection target scan image to the RAM 305.

[0071] In Figure 11, first, in step S1101, the inspection processing unit 308 performs a print image inspection based on the print image inspection settings in step S802. Specifically, the inspection processing unit 308 identifies the area in the scan image to be inspected that has the same position coordinates as the photo inspection area of ​​the reference image as the photo inspection area of ​​the scan image to be inspected. The inspection processing unit 308 detects defects (dots) and defects (streaks) in the photo inspection area of ​​the scan image to be inspected.

[0072] Next, in step S1102, the inspection processing unit 308 performs rotation processing based on the data inspection settings in step S803. Specifically, the inspection processing unit 308 identifies the area in the scan image to be inspected that has the same position coordinates as the barcode inspection area of ​​the reference image as the barcode inspection area of ​​the scan image to be inspected. The inspection processing unit 308 also identifies the area in the scan image to be inspected that has the same position coordinates as the character inspection area of ​​the reference image as the character inspection area of ​​the scan image to be inspected. The inspection processing unit 308 rotates the barcode inspection area and the character inspection area of ​​the scan image to be inspected based on the orientation (angle) indicated by the direction setting button selected by the user in step S803.

[0073] Next, in step S1103, the inspection processing unit 308 performs recognition processing on each region that was rotated in step S1102. Specifically, the inspection processing unit 308 performs barcode recognition on the barcode inspection region of the scan image to be inspected that was rotated in step S1102. In addition, the inspection processing unit 308 performs character extraction and character recognition on the character inspection region of the scan image to be inspected that was rotated in step S1102.

[0074] Next, in step S1104, the inspection processing unit 308 compares the character recognition result and barcode recognition result obtained in step S1103 with the correct string listed in the reference CSV file. The inspection processing unit 308 outputs the correct / incorrect judgment result as the inspection result. Next, in step S1105, the inspection processing unit 308 transmits the inspection result obtained in step S1104. In step S1105, the above inspection result is transmitted to the UI unit 302. The UI unit 302, having received the inspection result, displays the inspection result and the scanned image of the object being inspected. For example, if there is a defect in the printed material, the UI unit 302 highlights the detected defect on the scanned image with a dotted line frame or colored frame, and also displays the type of defect (dot or streak) and location information of the detected defect. On the other hand, if there is no defect in the printed material, the UI unit 302 displays a message indicating that there is no defect. Note that the method of displaying the inspection result by the UI unit 302 is not limited to the method described above; any display that makes it easy for the user to recognize the detection result is acceptable.

[0075] Furthermore, in step S1105, as a result of the inspection, for example, the continuous defect occurrence information is transmitted to the image forming apparatus 101. Upon receiving the continuous defect occurrence information, the image forming apparatus 101 stops the printing operation.

[0076] Furthermore, in step S1105, as a result of the inspection, for example, the defect presence information is sent to the finisher 103. Upon receiving the defect presence information, the finisher 103 uses this information to eject the printouts without defects into the normal output tray and the printouts with defects into a tray separate from the normal output tray. Once the process in step S1105 is completed, the inspection control process ends.

[0077] According to the embodiment described above, line drawing areas and photographic areas are detected from the scanned image, the line drawing areas are determined to be either character areas or barcode areas, and settings for inspecting the printed material are made based on the detected results and the determined results (determination results). This reduces the effort required for inspectors to set up the inspection of printed materials, thereby reducing the workload of the inspectors.

[0078] Furthermore, in the embodiment described above, the line drawing area is determined to be either a character area or a barcode area based on the distribution information of brightness values ​​within the line drawing area. This makes it possible to determine whether the line drawing area is a character area or a barcode area based on information obtainable from the scanned image, without increasing the workload of the inspection operator.

[0079] Furthermore, in the embodiments described above, the inspection of printed materials includes print image inspection, which is an inspection that detects defects in the printed materials. This reduces the effort required to configure the print image inspection.

[0080] In the embodiment described above, the inspection of printed materials includes data inspection, which includes checking whether the text and barcodes in the printed material are readable, and comparing the reading results of the text and barcodes in the printed material with pre-registered correct answer data. This reduces the effort required to configure the data inspection.

[0081] In the embodiment described above, the settings for inspecting printed materials include setting the inspection area (the area to be inspected) in the scanned image. This reduces the effort required to set the inspection area.

[0082] In the embodiment described above, the settings related to the inspection of printed materials include setting the type of inspection for the inspection area in the scanned image. This reduces the effort required to set the type of inspection for the inspection area.

[0083] In the embodiment described above, the settings related to the inspection of printed materials include setting the upright orientation of the barcode inspection area. This reduces the effort required to set the upright orientation of the barcode inspection area.

[0084] Although the present invention has been described above using the embodiments described above, the present invention is not limited to the embodiments described above. For example, the side closest to the character area may be identified from among the four sides constituting the barcode area, and the upright direction of the barcode inspection area may be set based on the result of the identification.

[0085] In the embodiment described above, data inspection is set in step S803, and in the data inspection setting, the upright direction (angle) of the barcode area is selected by the inspection operator. This setting work needs to be done for each barcode area, which increases the workload of the inspection operator.

[0086] In contrast, in this embodiment, the side closest to the character area is identified from among the four sides constituting the barcode area, and the upright direction of the barcode inspection area is set based on the identified result.

[0087] Figure 12 is a flowchart showing the overall flow from the registration process before the start of inspection to the execution of the inspection, performed by the inspection device 102 in Figure 1. The process in Figure 12 is similar to the process in Figure 4, and the differences from the process in Figure 4 will be explained below. Each step in Figure 12 is realized by the CPU 304 executing the program stored in the ROM 306, just like each step in Figure 4.

[0088] In Figure 12, the process of step S401 described above is performed. In step S401 in Figure 12, it is assumed that the reference image 1301 in Figure 13(a) has been registered. Next, the process of step S402 described above is performed. In step S402 in Figure 12, for example, area 1302 in Figure 13(b) is identified as a photographic area, areas 1303 and 1305 are identified as text areas, and area 1304 is identified as a barcode area. Also in step S402 in Figure 12, object information corresponding to each of these areas is recorded in list 1306 in Figure 13(c), and list 1306 is stored in RAM 305. In list 1306, the object information corresponding to area 1302 is assigned the ID "0", and the object information corresponding to area 1303 is assigned the ID "1". Additionally, the object information corresponding to area 1304 is assigned the ID "2", and the object information corresponding to area 1305 is assigned the ID "3".

[0089] Next, in step S1201, the CPU 304 executes the other inspection setting process shown in Figure 14, which will be described later, to automatically set the inspection area and inspection type. Then, the process in step S404 described above is performed.

[0090] Figure 14 is a flowchart showing the steps for the other inspection setup process in step S1201 of Figure 12. The other inspection setup process in Figure 14 is similar to the inspection setup process in Figure 8, and the differences from the inspection setup process in Figure 8 will be explained below.

[0091] In Figure 14, first, in step S1401, the CPU 304 instructs the inspection setting unit 309 to set the inspection area, including orientation determination. Upon receiving this instruction, the inspection setting unit 309 executes the other inspection area setting processes shown in Figure 15. Subsequently, the processes in steps S802 to S804 are performed, and the other inspection setting processes are completed.

[0092] Figure 15 is a flowchart showing the procedure for other inspection area setting processes performed by the inspection setting unit 309 in accordance with the instructions in step S801 of Figure 14. Note that the other inspection area setting processes in Figure 15 are similar to the inspection area setting processes in Figure 9, and the differences from the inspection area setting processes in Figure 9 will be explained below.

[0093] In Figure 15, the processes described in steps S901 and S902 are performed first.

[0094] If the attribute of the above area is determined to be a photograph in step S902, the processes in steps S903 and S906 are executed. If the attribute of the above area is determined to be text in step S902, the processes in steps S904 and S906 are executed.

[0095] If the attribute of the above area is determined to be a barcode in step S902, the inspection setting unit 309 performs the orientation determination process shown in Figure 16 (step S1501).

[0096] Figure 16 is a flowchart showing the procedure for the orientation determination process in step S1501 of Figure 15.

[0097] In Figure 16, first, in step S1601, the inspection setting unit 309 calculates the center coordinates of each side (top, bottom, left, and right) of the area (barcode area) corresponding to the object information, based on the coordinate information included in the object information selected in step S901. For example, for the center coordinate of the top side, the x-coordinate is the average value of the x-coordinate of the top-left coordinate and the x-coordinate of the bottom-right coordinate of the barcode area, and the y-coordinate is the y-coordinate of the top-left coordinate of the barcode area. For the center coordinate of the bottom side, the x-coordinate is the average value of the x-coordinate of the top-left coordinate and the x-coordinate of the bottom-right coordinate of the barcode area, and the y-coordinate is the y-coordinate of the bottom-right coordinate of the barcode area. For the center coordinate of the right side, the x-coordinate is the x-coordinate of the bottom-right coordinate of the barcode area, and the y-coordinate is the average value of the y-coordinate of the top-left coordinate and the y-coordinate of the bottom-right coordinate of the barcode area. For the center coordinate of the left side, the x-coordinate is the x-coordinate of the top-left coordinate of the barcode area, and the y-coordinate is the average value of the y-coordinate of the top-left coordinate and the y-coordinate of the bottom-right coordinate of the barcode area.

[0098] As calculated above, in the example shown in Figure 13, the center coordinates of the top edge of the barcode area are (80, 400), the center coordinates of the bottom edge are (80, 450), the center coordinates of the right edge are (130, 425), and the center coordinates of the bottom edge are (30, 425).

[0099] Next, in step S1602, the inspection setting unit 309 calculates the center coordinates of the character area based on the object information obtained from list 1306. For example, the average of the x-coordinates of the top-left and bottom-right coordinates of the character area is used as the x-coordinate of the center, and the average of the y-coordinates of the top-left and bottom-right coordinates of the character area is used as the y-coordinate of the center. In list 1306, the object information with ID "1" and the object information with ID "3" are the object information of the character area. The center coordinates of the character area corresponding to the object information with ID "1" are (170, 325), and the center coordinates of the character area corresponding to the object information with ID "3" are (85, 465).

[0100] Next, in step S1603, the inspection setting unit 309 calculates the distance to the nearest character area on each side of the barcode area. In step S1603, the inspection setting unit 309 calculates the distance from the center coordinates of each side of the barcode area to the center coordinates of the character area calculated in step S1602. In this embodiment, for example, the square of the Euclidean distance is used as the method for calculating the distance. As a result, for example, the distance from the center coordinates of the top edge of the barcode area to the center coordinates of the character area corresponding to the object information with ID "1" is 13725. Also, the distance from the center coordinates of the top edge of the barcode area to the center coordinates of the character area corresponding to the object information with ID "3" is 4250. The inspection setting unit 309 selects 4250 from these two distances as the distance from the top edge of the barcode area to the character area closest to that top edge (hereinafter referred to as the "shortest distance from the top edge to the character area"). Similarly, when calculations are performed for the bottom, right, and left sides, the shortest distance from the bottom side to the character area is 250, the shortest distance from the right side to the character area is 3625, and the shortest distance from the left side to the character area is 4625. Note that the method of calculating the distance is not limited to the method described above; for example, Euclidean distance can be used directly.

[0101] Next, in step S1604, the inspection setting unit 309 identifies the side closest to the character area from among the four sides constituting the barcode area, and determines the upright direction of the barcode inspection area based on the identified result. Specifically, the inspection setting unit 309 identifies the side with the smallest shortest distance calculated in step S1603 among the four sides constituting the barcode area as the side closest to the character area, and determines the opposite side of the identified side as the upright direction. This is a determination method based on the fact that numbers are written at the bottom of the barcode in common barcode standards such as EAN. For example, in the example above, the bottom side with the smallest shortest distance calculated in step S1603 among the four sides constituting the barcode area is identified as the side closest to the character area, and the opposite side of the bottom side, i.e., "top", is determined as the upright direction. After that, the orientation determination process is completed, and the process in step S1502 is executed in Figure 15.

[0102] In step S1502, the inspection setting unit 309 sets the area corresponding to the object information selected in step S901 as the barcode inspection area, and sets the upright direction of this area to the direction determined in step S1604. Next, the process of step S906 described above is performed. After that, once the other inspection area setting processes are completed, the UI unit 302 of the inspection device 102 displays the setting screen 1700 shown in Figure 17, which has the same configuration as the setting screen 1001. The reference image area 1701 displayed in the image display area 1002 of the setting screen 1700 is the area set as the photo inspection area in step S903 in Figure 15. The reference image areas 1702 and 1703 are the areas set as the character inspection area in step S904 in Figure 15. The reference image area 1704 is the area set as the barcode inspection area in step S1502. For example, if an inspector selects area 1704 in the image display area 1002, the character / barcode inspection setting area 1008 becomes operable. At this time, setting item 1010 is displayed with the direction setting button corresponding to the upright direction set in step S1502 selected.

[0103] In the embodiment described above, the side closest to the character area is identified from among the four sides constituting the barcode area, and the upright orientation of the barcode inspection area is set based on the identified result. This allows the upright orientation of the barcode inspection area to be set accurately and easily.

[0104] The present invention can also be realized by supplying a program that implements one or more of the functions of the above-described embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of the system or device read and execute the program. Furthermore, the present invention can also be realized by a circuit (e.g., an ASIC) that implements one or more functions. [Explanation of symbols]

[0105] 102 Inspection device 301 Image reading unit 307 Reference Image Analysis Department 308 Inspection Processing Unit 309 Inspection Setting Section

Claims

1. An inspection device for inspecting printed matter, a reading means for reading the printed matter and generating a scanned image of the printed matter; a detection means for detecting a line drawing area and a photographic area from the scanned image; a discrimination means for discriminating the line drawing area as either a character area or a barcode area; an inspection setting means for setting an inspection of the printed matter based on a detection result by the detection means and a discrimination result by the discrimination means; an inspection processing means for inspecting the printed matter based on the settings made by the inspection setting means;

2. 2. The inspection apparatus according to claim 1, wherein said discrimination means discriminates said line image region into either a character region or a barcode region on the basis of distribution information of luminance values ​​within said line image region.

3. 3. The inspection apparatus according to claim 1, wherein the inspection of the printed matter includes an inspection for detecting defects in the printed matter.

4. 4. The inspection device according to claim 1, wherein the inspection of the printed matter includes an inspection of whether character strings and barcodes on the printed matter are readable, and an inspection of comparing the results of reading the character strings and barcodes on the printed matter with pre-registered correct answer data.

5. 5. The inspection device according to claim 1, wherein the settings relating to the inspection of the printed matter include settings of an area to be inspected in the scanned image.

6. 6. The inspection device according to claim 1, wherein the settings relating to the inspection of the printed matter include settings of a type of inspection for an area to be inspected in the scanned image.

7. 7. The inspection device according to claim 1, wherein the settings relating to the inspection of the printed matter include a setting of an upright orientation of the barcode area.

8. 8. The inspection device according to claim 7, further comprising: identifying one of the four sides constituting the barcode area that is closest to the character area; and setting an upright orientation of the barcode area based on the identified side.

9. A method for controlling an inspection device that inspects printed matter, comprising the steps of: a reading step of reading the printed matter to generate a scanned image of the printed matter; a detection step of detecting line drawing areas and photographic areas from the scanned image; a discrimination step of discriminating the line drawing region as either a character region or a barcode region; an inspection setting step of setting an inspection setting for the printed matter based on a detection result in the detection step and a discrimination result in the discrimination step; an inspection processing step of inspecting the printed matter based on the settings made in the inspection setting step.

10. A program for causing a computer to execute each of the means of the inspection apparatus according to any one of claims 1 to 8.

11. A means for outputting a printed matter; a reading means for reading the printed matter and generating a scanned image of the printed matter; a detection means for detecting a line drawing area and a photographic area from the scanned image; a discrimination means for discriminating the line drawing area as either a character area or a barcode area; an inspection setting means for setting an inspection of the printed matter based on a detection result by the detection means and a discrimination result by the discrimination means; an inspection processing means for inspecting the printed matter based on the settings made by the inspection setting means; An inspection system comprising: a display unit for displaying an inspection result obtained by the inspection processing unit.

12. The inspection system described in Claim 11, characterized in that the discrimination means discriminates the line image region into either a character region or a barcode region based on distribution information of luminance values ​​within the line image region.

13. An inspection system as described in claim 11 or 12, characterized in that the inspection of the printed matter includes an inspection to detect defects in the printed matter.

14. An inspection system as described in any one of claims 11 to 13, characterized in that the inspection of the printed matter includes an inspection of whether character strings and barcodes on the printed matter are readable, and an inspection of comparing the results of reading the character strings and barcodes on the printed matter with previously registered correct answer data.

15. An inspection system as described in any one of claims 11 to 14, characterized in that the settings regarding the inspection of the printed matter include settings of an area to be inspected in the scanned image.

16. An inspection system as described in any one of claims 11 to 15, characterized in that the settings regarding inspection of the printed matter include settings of the type of inspection for the area to be inspected in the scanned image.

17. An inspection system as described in any one of claims 11 to 16, characterized in that the settings for inspecting the printed matter include setting the upright orientation of the barcode area.

18. An inspection system as described in claim 17, characterized in that the side closest to the character area is identified from among the four sides that constitute the barcode area, and the upright orientation of the barcode area is set based on the identified result.