Image processing system and image processing program
The image processing system uses Lab color space analysis and two-dimensional histograms to accurately classify document images as blank or non-blank by counting black points and applying thresholds, addressing the inaccuracies in existing RGB-based methods.
Patent Information
- Application Number
- JP2023049042
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-07
Smart Images

Figure 2024137505000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image processing system and an image processing program. [Background technology]
[0002] Patent Document 1 discloses an image processing device that determines whether image data is a plain image based on image data composed of a plurality of pixels, and that is characterized by comprising a determination unit that compares a feature calculated from the image data with a threshold value to determine whether the image data is a plain image, and a setting unit that, when at least one of a reading method for reading image data from a document or an output method for printing out the image data is input, sets the threshold value to be used for the determination in accordance with the input method. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2009-094903 A Summary of the Invention [Problem to be solved by the invention]
[0004] Incidentally, when a processor determines whether a document image is blank by obtaining a histogram of the maximum RGB values and the maximum difference from image information in the RGB color space, if the maximum RGB values and the maximum differences are all the same even if the colors of the characters or patterns differ from the background color of the document, the processor will determine that a non-blank page is blank. Here, a blank page is a plain document that does not have any characters or patterns on it.
[0005] Therefore, the present disclosure aims to improve the accuracy of determining whether an original image is non-blank, compared to a configuration in which a histogram of RGB maximum values and a histogram of maximum differences are calculated for image information in the RGB color space to determine whether an original image is non-blank. [Means for solving the problem]
[0006] In order to achieve the above-mentioned object, an image processing system according to a first aspect has an image reading unit that reads an original image and generates image information in Lab color space, and a processor, wherein the processor obtains a two-dimensional histogram of the a*b* plane for the image information, obtains a background color of the original image using the two-dimensional histogram, counts the number of black spots in the image information for each bin of the two-dimensional histogram, obtains a value obtained by subtracting the number of black spots in the bin determined to be the background color from the total number of black spots in all bins, and determines the original image to be non-blank if the obtained value is greater than a predetermined threshold value.
[0007] In the image processing system of the second aspect, in the image processing system of the first aspect, the processor calculates an L* histogram, determines the number of peaks in the L* histogram, and if the number of peaks is two or more, determines the document image to be non-blank.
[0008] In an image processing system according to a third aspect, in the image processing system according to the first aspect, the processor calculates an L* histogram, determines the number of peaks in the L* histogram, and if the number of peaks is one and the calculated value is less than or equal to the threshold value, determines that the document image is blank.
[0009] In an image processing system of a fourth aspect, in the image processing system of the first aspect, the processor determines, in the two-dimensional histogram, the color contained in a bin located at the intersection of the maximum peak of the a* histogram and the maximum peak of the b* histogram as the background color of the original image.
[0010] An image processing system according to a fifth aspect is the image processing system according to the first aspect, wherein the processor determines that the document image is non-blank if there are a second threshold or more bins in the two-dimensional histogram whose number of black spots exceeds a first threshold.
[0011] An image processing system according to a sixth aspect is the image processing system according to the fifth aspect, wherein the processor counts the number of black spots in the image information for each bin of the two-dimensional histogram obtained for the image information generated while reading the document image in the main scanning direction.
[0012] An image processing program according to a seventh aspect causes a computer to execute a process of reading an original image to generate image information in Lab color space, obtaining a two-dimensional histogram of an a*b* plane for the image information, obtaining a background color of the original image using the two-dimensional histogram, counting the number of black spots in the image information for each bin of the two-dimensional histogram, obtaining a value obtained by subtracting the number of black spots in the bin determined to be the background color from the total number of black spots in all bins, and determining that the original image is non-blank if the obtained value is greater than a predetermined threshold value. Effect of the Invention
[0013] According to the first aspect, the accuracy of determining whether an original image is non-blank can be improved compared to a configuration in which a histogram of RGB maximum values and a histogram of maximum differences are obtained for image information in the RGB color space to determine whether an original image is non-blank.
[0014] According to the second aspect, the speed of the process of determining whether an original image is a non-blank page can be improved.
[0015] According to the third aspect, it is possible to improve the accuracy of determining whether an original image is blank.
[0016] According to the fourth aspect, the accuracy of determining that a document image is not blank can be improved compared to a configuration in which the color contained in a bin located at the intersection of a non-maximum peak of the a* histogram and a non-maximum peak of the b* histogram in a two-dimensional histogram is determined to be the background color of the document image.
[0017] According to the fifth aspect, the accuracy of determining that a document image is not blank can be improved compared to a configuration in which a document image is determined to be non-blank when a bin in which the number of black dots in a two-dimensional histogram exceeds a first threshold value is less than a second threshold value.
[0018] According to the sixth aspect, the speed of determining whether an original image is not blank can be improved, compared to a configuration in which a two-dimensional histogram is obtained from image information generated after reading an original image in the main scanning direction and the sub-scanning direction.
[0019] According to the seventh aspect, the accuracy of determining whether an original image is a blank page can be improved compared to a configuration in which a histogram of RGB maximum values and a histogram of maximum differences are obtained for image information in the RGB color space to determine whether an original image is a blank page. [Brief description of the drawings]
[0020] [Figure 1] 1 is a perspective view illustrating an external appearance of an image forming apparatus which is an example of an image forming system according to an embodiment of the present invention. [Diagram 2] 1 is a block diagram showing a configuration of a main part of an electrical system of an image forming apparatus which is an example of an image forming system according to an embodiment of the present invention. [Diagram 3] 2 is a functional block diagram showing an example of a functional configuration of a control unit of an image forming apparatus which is an example of an image forming system according to the present embodiment. FIG. [Figure 4A] FIG. 2 is a diagram showing an example of a document to be read; [Figure 4B] 4B is an L* histogram obtained from image information in the Lab color space of the document read from the document in FIG. 4A. [Figure 4C] FIG. 13 is a diagram showing a two-dimensional histogram of the a*b* plane and an L* pixel count table obtained from image information in the Lab color space of a scanned document. [Figure 4D] FIG. 4D is a diagram showing a state in which the number of black spots counted for each a*b* region is held in the L* pixel count table of FIG. 4C. [Figure 5A] FIG. 2 is a diagram showing an example of a document to be read; [Figure 5B] FIG. 5B is an L* histogram obtained from image information in the Lab color space read from the original of FIG. 5A. [Figure 5C]FIG. 13 is a diagram showing a two-dimensional histogram of the a*b* plane and an L* pixel count table obtained from image information in the Lab color space of a scanned document. [Figure 6A] FIG. 2 is a diagram showing an example of a document to be read; [Figure 6B] 6B are an L* histogram, an a* histogram, and a b* histogram obtained from image information in the Lab color space read from the original in FIG. 6A. [Figure 7A] FIG. 2 is a diagram showing an example of a document to be read; [Figure 7B] 7B are an L* histogram, an a* histogram, and a b* histogram obtained from image information in the Lab color space read from the original of FIG. 7A. [Figure 8A] FIG. 2 is a diagram showing an example of a document to be read; [Figure 8B] 8B are an L* histogram, an a* histogram, and a b* histogram obtained from image information in the Lab color space read from the original in FIG. 8A. [Figure 8C] FIG. 13 is a diagram showing a two-dimensional histogram of the a*b* plane and an L* pixel count table obtained from image information in the Lab color space of a scanned document. [Figure 9A] FIG. 2 is a diagram showing an example of a document to be read; [Figure 9B] 9B are an L* histogram, an a* histogram, and a b* histogram obtained from image information in the Lab color space read from the original in FIG. 9A. [Figure 10] 6 is a flowchart showing an example of a flow of a process performed by a control unit of the image forming apparatus according to the embodiment. [Figure 11A] FIG. 2 is a diagram showing a state in which a blank portion of a document to be read is being scanned. [Figure 11B] FIG. 2 is a diagram showing a state in which a character portion of a document to be read is being scanned. [Figure 11C] FIG. 2 is a diagram showing a state in which a character portion of a document to be read is being scanned. [Figure 12] 10 is a flowchart showing a modified example of the flow of processing performed by a control unit of the image forming apparatus according to the embodiment. [Figure 13] 13 is a flowchart showing a non-blank paper determination process according to a modified example. [Figure 14] FIG. 13 is a diagram showing a modified example of the image forming system according to the present embodiment. [Figure 15] FIG. 13 is a diagram showing a modified example of the image forming system according to the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0021] An example of an embodiment of the present disclosure will be described in detail below with reference to the drawings. In this embodiment, an image forming apparatus will be described as an example of an image processing system. FIG. 1 is a perspective view showing the appearance of an image forming apparatus 20 according to this embodiment. The image forming apparatus 20 according to this embodiment has a print function that receives various data via a communication line such as a network and performs image formation processing based on the received data. In addition, the image forming apparatus 20 according to this embodiment has multiple functions such as a reading function that reads an original to obtain image information representing the original, a copying function that copies an image recorded on the original onto paper, a facsimile function that transmits and receives various data via a telephone line (not shown), a transfer function that transfers document information such as image information read by the reading function, and a storage function that stores document information such as read image information.
[0022] Moreover, the image forming apparatus 20 according to the present embodiment includes an original reading section 30 as an example of an image reading section at the top of the apparatus, and an image forming section 40 is disposed below the original reading section 30. The original reading section 30 includes an original transport section (not shown) in an original cover 32. The original transport section sequentially pulls in the originals 150 placed on an original feed section 32A provided in the original cover 32, and transports them onto a platen glass (not shown). The original reading section 30 reads the image recorded on the transported originals 150. Then, the original transport section discharges the originals 150, whose images have been read, onto an original discharge section 32B provided in the original cover 32. The original reading section 30 generates image information in the Lab color space from the read original image.
[0023] The document reading unit 30 is also provided with a user interface 34 that accepts various instruction operations from a user. The user interface 34 is implemented by a software program. The printer is provided with a display 34A that displays display buttons for accepting command operations by a computer system, various information, and hardware keys 34B such as a numeric keypad. The display 34A is of a touch panel type that combines a display device such as a liquid crystal panel with a position input device such as a touch pad. The user interface 34 is used by the display buttons on the display 34A and the hardware keys 34B to set the number of copies and magnification when using the copy function, and as dial keys of a telephone when using the facsimile function. The hardware keys 34B may be omitted.
[0024] On the other hand, the image forming section 40 includes a paper feed storage section 42 that stores paper sheets that serve as recording media for image formation. The image forming section 40 takes out the paper sheets stored in the paper feed storage section 42 one by one, and forms an image on the paper sheets based on image data, for example, by an electrophotographic process. The image forming section 40 also sequentially discharges the paper sheets on which the image has been formed onto a paper discharge section (not shown).
[0025] FIG. 2 is a block diagram showing the main configuration of an electrical system of the image forming apparatus 20 according to this embodiment.
[0026] 2, the image forming apparatus 20 according to this embodiment includes a control unit 50 including a central processing unit (CPU) 50A, a read only memory (ROM) 50B, and a random access memory (RAM) 50C. The CPU 50A controls the overall operation of the image forming apparatus 20. The RAM 50C is used as a work area when the CPU 50A executes various programs. The ROM 50B stores various control programs such as an image processing program and various parameters in advance. In the image forming apparatus 20, each part of the control unit 50 is electrically connected to each other via a system bus 58.
[0027] On the other hand, the image forming apparatus 20 according to the present embodiment includes a storage unit 52 that stores various data, application programs, and the like. The image forming apparatus 20 is also connected to a user interface 34 and includes a display control unit 54 that controls the display of various operation screens, etc. on a display 34A of the user interface 34. The image forming apparatus 20 is also connected to the user interface 34 and includes an operation input detection unit 56 that detects an operation instruction input via the user interface 34. In the image forming apparatus 20, the storage unit 52, the display control unit 54, and the operation input detection unit 56 are electrically connected to a system bus 58. For example, the storage unit 52 may be a hard disk drive (HDD), or a non-volatile storage unit such as a flash memory.
[0028] The image forming apparatus 20 according to the present embodiment includes a reading control unit 62 that controls the optical image reading operation by the document optical reading unit 60 and the document feeding operation by the document transport unit, and an image forming control unit 64 that controls the image forming process by the image forming unit 40 and the transport of paper to the image forming unit 40 by the transport unit 44. The image forming apparatus 20 also includes a communication line I / F (interface) unit 66 that is connected to a communication line (not shown) and transmits and receives communication data to and from other external devices such as a server connected to the communication line, and an image processing unit 68 that performs various image processing. The image forming apparatus 20 also includes a facsimile I / F (interface) unit 70 that is connected to a telephone line (not shown) and transmits and receives facsimile data to and from a facsimile device connected to the telephone line. The image forming apparatus 20 also includes a transmission / reception control unit 72 that controls the transmission and reception of facsimile data via the facsimile I / F unit 70. In the image forming device 20, the transmission / reception control unit 72, the reading control unit 62, the image forming control unit 64, the communication line I / F unit 66, the facsimile I / F unit 70, and the image processing unit 68 are electrically connected to the system bus 58.
[0029] With the above configuration, the image forming apparatus 20 according to the present embodiment performs the following operations: The CPU 50A of the image forming apparatus 20 controls the display of information such as an operation screen and various messages on the display 34A of the user interface 34 via the display control unit 54. The CPU 50A of the image forming apparatus 20 controls the operation of the document optical reading unit 60 and the document transport unit via the reading control unit 62. The CPU 50A of the image forming apparatus 20 controls the operation of the image forming unit 40 and the transport unit 44 via the image formation control unit 64, and controls the transmission and reception of communication data via the communication line I / F unit 66. The CPU 50A of the image forming apparatus 20 controls the transmission and reception of facsimile data via the facsimile I / F unit 70 via the transmission and reception control unit 72. The CPU 50A of the image forming apparatus 20 grasps the operation content in the user interface 34 based on the operation information detected by the operation input detection unit 56, and executes various controls based on the operation content.
[0030] Next, a functional configuration realized by the CPU 50A of the control unit 50 expanding a program stored in the ROM 50B into the RAM 50C and executing it in the image forming apparatus 20 according to this embodiment will be described. Fig. 3 is a functional block diagram showing an example of the functional configuration of the control unit 50 of the image forming apparatus 20 according to this embodiment.
[0031] The control unit 50 has the functions of an L* histogram creation unit 80, an a* histogram creation unit 82, a b* histogram creation unit 84, an image binarization unit 86, a contrast presence / absence determination unit 88, an L* pixel count table creation unit 90, a background color determination unit 92, a pixel count unit 94, a black point number determination unit 96, and a blank page determination unit 98. Note that in this embodiment, the functional configuration in FIG. 3 will be described as the functions of the control unit 50, but this is not limiting, and the functional configuration may be that of the image processing unit 68, for example.
[0032] The L* histogram creation unit 80 obtains an L* histogram for image information in Lab color space obtained by reading an original image with the original optical reading unit 60. For example, the L* histogram shown in Fig. 4B is created from image information in Lab color space obtained by reading an original 150 shown in Fig. 4A. Note that the threshold value Lth1 shown in Fig. 4B is a frequency threshold value for determining a peak in the L* histogram. In other words, a portion in the L* histogram that exceeds the threshold value Lth1 is determined to be a peak.
[0033] The L* histogram created by the L* histogram creating unit 80 is a histogram in which the frequency is the number of pixels for each predetermined division (also called "bin") of L* of image information in the Lab color space.
[0034] The a* histogram creating unit 82 obtains an a* histogram for image information in the Lab color space. For example, the a* histogram shown in Fig. 4C is created from image information in the Lab color space obtained by reading the document 150 shown in Fig. 4A.
[0035] The a* histogram created by a* histogram creation unit 82 is a histogram in which the frequency is the number of pixels for each predetermined division (also called "bin") of a* of image information in the Lab color space.
[0036] The b* histogram creating unit 84 obtains a b* histogram for the image information in the Lab color space. For example, the b* histogram shown in Fig. 4C is created from the image information in the Lab color space obtained by reading the document 150 shown in Fig. 4A.
[0037] The b* histogram created by the b* histogram creating unit 84 is a histogram in which the frequency is the number of pixels for each predetermined division (also called "bin") of b* of image information in the Lab color space.
[0038] The bins of the L* histogram, a* histogram, and b* histogram are set in advance to be optimal through experiments, etc. The number of bins in the L* histogram may differ from that of the a* histogram and the b* histogram. However, the number of bins in the a* histogram and the b* histogram is set to be the same.
[0039] The image binarization unit 86 performs binarization processing on image information in the Lab color space.
[0040] The contrast presence / absence determination unit 88 uses the L* histogram to determine the presence or absence of contrast in the image information in the Lab color space. Specifically, the contrast presence / absence determination unit 88 determines that contrast is present when the L* histogram has two or more peaks that exceed a predetermined threshold value Lth1. In other words, the contrast presence / absence determination unit 88 determines that contrast is absent when the L* histogram has one peak that exceeds the threshold value Lth1. Note that even if the frequency of a bin adjacent to a bin that includes a peak that exceeds the threshold value Lth1 exceeds the threshold value Lth1, the peak is counted as one.
[0041] The L* pixel count table creation unit 90 creates an L* pixel count table, which is an example of a two-dimensional histogram of the a*b* plane. That is, the L* pixel count table creation unit 90 creates an L* pixel count table, which is a two-dimensional histogram of the a*b* plane, from the obtained a* histogram and b* histogram. This L* pixel count table is divided into areas corresponding to each bin of the a* histogram and b* histogram, and has a function of holding the number of black spots counted by the pixel count unit 94 for each area. In this embodiment, each area in the two-dimensional histogram of the a*b* plane (L* pixel count table) is called a "bin area." These bin areas are an example of the bins of the two-dimensional histogram of the a*b* plane in this disclosure.
[0042] The background color determination unit 92 obtains the background color of the document image using an L* pixel count table (a*b* plane two-dimensional histogram). Specifically, as shown in Fig. 4C, in the L* pixel count table, the color included in the bin area located at the intersection of the maximum peak of the a* histogram and the maximum peak of the b* histogram is determined to be the background color of the document image.
[0043] The pixel counting unit 94 counts the number of black dots based on the binarized image obtained by the image binarization unit 86, and stores the number of black dots in the corresponding bin area of the L* pixel count table (see FIG. 4D). The number of black dots stored in the bin area of the L* pixel count table is stored in, for example, the RAM 20C. FIG. 4D shows an example in which 30 black dots are counted in a bin area determined to be the background color. Note that in this disclosure, a black dot is not limited to black, but refers to a pixel having a pixel value.
[0044] The black point number determination unit 96 obtains a value by subtracting the black point number of the bin area determined to be the background color from the total black point number of all the bin areas in the L* pixel count table, and then determines whether the obtained value is greater than a predetermined threshold value Cth.
[0045] The blank page determination unit 98 has a function of determining whether the document 150 is blank or not blank. Specifically, the blank page determination unit 98 determines the document image to be not blank when at least one of the following cases is found: the result of the determination of the presence or absence of contrast by the contrast presence / absence determination unit 88 is that there is contrast; and the above-mentioned calculated value is greater than a predetermined threshold value Cth. On the other hand, the blank page determining section 98 determines the document image to be blank when the contrast determining section 88 determines that there is no contrast and the obtained value is equal to or smaller than the predetermined threshold value Cth.
[0046] For example, as shown in Fig. 5A, when the document 152 is a blank colored paper (e.g., pink background), there is one peak exceeding the threshold Lth1 in the L* histogram as shown in Fig. 5B. Also, as shown in Fig. 5C, in the L* pixel count table, the background color is obtained from the intersection of the maximum peak of the a* histogram and the maximum peak of the b* histogram. Then, a value is obtained by subtracting the number of black dots in the bin areas determined as the background color from the total number of black dots in all bin areas. In the case of the document 152, the obtained value is equal to or less than the predetermined threshold Cth, so the blank paper determination unit 98 of the control unit 50 determines that the document 152 is blank.
[0047] For example, as shown in Fig. 6A, when the document 154 is colored paper (pink background as an example) with characters (blue characters as an example), there are two peaks exceeding the threshold Lth1 in the L* histogram as shown in Fig. 6B. Therefore, the blank paper determination unit 98 of the control unit 50 determines that the document 154 is a non-blank paper. Here, when it is determined that there are two or more peaks exceeding the threshold Lth1 in the L* histogram, the blank paper determination unit 98 determines that the document 154 is a non-blank paper without counting the number of black dots in the L* pixel count table.
[0048] For example, as shown in Fig. 7A, when the document 156 is colored paper (for example, pink background) with characters (for example, red characters), there are two peaks exceeding the threshold value Lth1 in the L* histogram as shown in Fig. 7B. Therefore, the blank paper determination unit 98 of the control unit 50 determines that the document 156 is not blank.
[0049] For example, as shown in Fig. 8A, when the document 158 is colored paper (pink background as an example) with characters (light blue characters as an example) (in other words, colored paper with colored characters and similar brightness values), there is one peak exceeding the threshold Lth1 in the L* histogram as shown in Fig. 8B. Also, as shown in Fig. 8C, in the L* pixel count table, the background color is obtained from the intersection of the maximum peak of the a* histogram and the maximum peak of the b* histogram. Then, a value is obtained by subtracting the number of black dots in the bin area determined as the background color from the total number of black dots in all bin areas. In the document 158, the obtained value is greater than the predetermined threshold Cth, so the blank paper determination unit 98 of the control unit 50 determines that the document 158 is not blank.
[0050] For example, as shown in Fig. 9A, when the document 160 is colored paper (for example, pink background) with characters (for example, blue characters) (when the characters are larger than the background area), there are two peaks exceeding the threshold value Lth1 in the L* histogram as shown in Fig. 9B. Therefore, the blank paper determination unit 98 of the control unit 50 determines that the document 160 is not blank.
[0051] Next, a specific process performed in the image forming apparatus 20 according to the present embodiment configured as described above will be described. Fig. 10 is a flow chart showing an example of the flow of the process performed in the control unit 50 of the image forming apparatus 20 according to the present embodiment. The process in Fig. 10 starts when, for example, a predetermined instruction is given for image information by operating the user interface 34. The image information may be image information obtained by reading with the original optical reading unit 60, or image information that has been read and stored in advance in the storage unit 52.
[0052] In step S200, CPU 50A generates image information in the Lab color space of original 150 read by original optical reading unit 60, and proceeds to step S202.
[0053] In step S202, the CPU 50A obtains each of the L*, a*, and b* histograms. That is, the CPU 50A creates an L* histogram, an a* histogram, and a b* histogram. The CPU 50A also creates a two-dimensional histogram of the a*b* plane. Then, the process proceeds to step S204.
[0054] In step S204, the CPU 50A obtains the background color from the two-dimensional histogram of the a*b* plane. Specifically, the CPU 50A determines the color included in the bin area located at the intersection of the maximum peak of the a* histogram and the maximum peak of the b* histogram in the two-dimensional histogram as the background color of the document image. Then, the process proceeds to step S206.
[0055] In step S206, CPU 50A binarizes the document image, and the process proceeds to step S208.
[0056] In step S208, the CPU 50A counts the number of black dots in each bin area in the two-dimensional histogram on the a*b* plane.
[0057] In step S210, the CPU 50A determines whether or not the number of bins in the L* histogram whose frequency exceeds the threshold Lth1 is two or more. In other words, the CPU 50A determines whether or not the number of peaks in the L* histogram whose frequency exceeds the threshold Lth1 is two or more. If the number of bins in the L* histogram whose frequency exceeds the threshold Lth1 is two or more, the CPU 50A proceeds to step S216, and if the number of bins is one, the CPU 50A proceeds to step S214.
[0058] In step S212, the CPU 50A subtracts the number of black dots in the bin areas determined to be the background color from the total number of black dots in all bin areas in the two-dimensional histogram of the a*b* plane, and determines whether the obtained value is greater than a predetermined threshold Cth. If the obtained value is greater than the predetermined threshold Cth, the CPU 50A proceeds to step S216, and if the obtained value is equal to or less than the predetermined threshold Cth, the CPU 50A proceeds to step S214.
[0059] In step S214, CPU 50A determines that document 150 is blank, and ends the series of processes.
[0060] In step S216, CPU 50A determines that document 150 is a non-blank sheet, and ends the series of processes.
[0061] Next, modified examples of the process flow performed by the control unit 50 of the image forming apparatus 20 according to the present embodiment will be described. Fig. 12 is a flow chart showing each modified example of the process flow performed by the control unit 50 of the image forming apparatus 20 according to the present embodiment. Note that the same processes as those in Fig. 10 are denoted by the same reference numerals and detailed description thereof will be omitted.
[0062] In the modified example, the non-blank paper determination process of FIG. 12 is added to the process of FIG. 10 instead of step S200. The non-blank paper determination process includes steps S230, S232, and S234 as shown in FIG. 13. In step S232, image information in the Lab color space is generated while reading the document. Specifically, as shown in FIG. 11A to FIG. 11C, image information in the Lab color space is generated while scanning the document 162. Note that, as shown in FIG. 11A, FIG. 11B, and FIG. 11C, scanning of the document 162 is performed gradually from the start end to the end end of the document 162. In FIG. 11A, the blank part of the document 162 is scanned, so the number of black dots is counted in one bin area of the L* pixel count table. Also, in FIG. 11B, the character part 162A (red characters as an example) of the document 162 is scanned, so the number of black dots is counted in two bin areas of the L* pixel count table. 11C, the number of black dots is counted in three bin areas of the L* pixel count table to scan the character portion 162B (blue characters as an example) of the document 162. If the number of bin areas exceeding the first threshold value (30 in FIG. 11) predetermined for the number of black dots is equal to or exceeds a second threshold value (three in FIG. 11), the document 162 is determined to be a non-blank page. That is, in the non-blank page determination process shown in FIG. 13, the L* pixel count table is created in step S232. Then, the number of black dots is counted in the L* pixel count table every time the document is scanned, and if the number of bin areas exceeding the first threshold value predetermined for the number of black dots is equal to or exceeds a second threshold value in step S234, the process may proceed to step S216 to determine that the document is a non-blank page. This may allow the document to be determined to be a non-blank page without waiting for the end of scanning, thereby speeding up the process of determining that the document is a non-blank page.
[0063] 10, the following step may be added after step S212. This step is, for example, a step of determining whether or not the L* value of a bin containing a peak in an L* histogram is the maximum value. If this step determines that the L* value of a bin containing a peak in an L* histogram is the maximum value, the process proceeds to step S214, and if it determines that the L* value of the bin containing a peak is not the maximum value, the process proceeds to step S216.
[0064] It should be noted that the above-mentioned steps S210 and S212 may be switched around as appropriate.
[0065] Next, the operation of this embodiment will be described. In this embodiment, the total number of black dots in all bins in the two-dimensional histogram of the a*b* plane is subtracted from the number of black dots in the bin determined to be the background color, and if the calculated value is greater than a predetermined threshold, the document image is determined to be non-blank. This improves the accuracy of determining whether a document image is non-blank, compared to a configuration in which a histogram of the maximum RGB values and a histogram of the maximum difference are calculated for image information in the RGB color space.
[0066] The number of peaks in the L* histogram is determined, and if the number of peaks is two or more, the document image is determined to be a non-blank page, thereby making it possible to improve the speed of the process of determining that the document image is not a blank page.
[0067] The number of peaks in the L* histogram is determined, and if the number of peaks is one and the determined value is less than a threshold, the document image is determined to be blank, thereby improving the accuracy of determining that the document image is blank.
[0068] When the color contained in a bin located at the intersection of the maximum peak of the a* histogram and the maximum peak of the b* histogram in a two-dimensional histogram is determined to be the background color of the original image, the accuracy of non-blank determination of the original image can be improved compared to a configuration in which the color contained in a bin located at the intersection of a non-maximum peak of the a* histogram and the non-maximum peak of the b* histogram in a two-dimensional histogram is determined to be the background color of the original image.
[0069] In the L* histogram, when the L* value of the bin containing the peak is the maximum value, the speed of the blank page determination process for the document image can be improved if the document image is determined to be blank.
[0070] In a two-dimensional histogram, when the number of bins whose number of black dots exceeds the first threshold is equal to or greater than the second threshold, the accuracy of determining that the original image is non-blank can be improved compared to, for example, when the number of bins whose number of black dots exceeds the first threshold is less than the second threshold and the original image is determined to be non-blank.
[0071] When the number of black dots in the image information is counted for each bin of a two-dimensional histogram obtained for image information generated while reading the original image in the main scanning direction, the speed at which the original image is determined to be non-blank can be improved compared to, for example, when a two-dimensional histogram is obtained for image information generated after reading the original image in the main scanning direction and the sub-scanning direction.
[0072] In the above embodiment, the image forming apparatus 20 performs the processes shown in Figs. 10 and 12, but the present invention is not limited to this. For example, as shown in Fig. 14, an image processing system 120 may be configured in which an image forming apparatus 122 and at least one of a server 124 such as a cloud server and a client computer 126 are connected to a communication line 128. In this case, the image forming apparatus 122 may be an image reading apparatus, and the server 124 or the client computer 126 may be an image processing apparatus, and at least one of the processes shown in Figs. 10 and 12 may be performed by the server 124 or the client computer 126. In the case of an image forming system including both the server 124 and the client computer 126, the server 124 and the client computer 126 may cooperate with each other to perform the processes shown in Figs. 10 and 12.
[0073] In the above embodiment, the image forming apparatus 20 as an example of an image processing system performs the processes shown in FIG. 10 and FIG. 12, but the present invention is not limited thereto. For example, as shown in FIG. 15, the image processing system 130 may include an image forming apparatus 132, an image inspection apparatus 134, and a blank paper removal apparatus 136. The image forming apparatus 132 discharges the document 170 on which an image is formed downstream. The image inspection apparatus 134 reads and inspects the image of the document 170 on which the image is formed. Specifically, the image inspection apparatus 134 judges whether the document 170 is blank or not. Then, when the image inspection apparatus 134 judges that the document 170 is not blank, the blank paper removal apparatus 136 removes the document 170 from the transport path and removes it from the transport path. This makes it possible to prevent the blank document from being transported downstream. The control unit in the image processing system 130 may be mounted in the image inspection device 134 , the image forming device 132 , or the blank paper removal device 136 .
[0074] In addition, in the above embodiment, the CPU has been described as an example of a processor, but the term "processor" refers to a processor in a broad sense, and includes general-purpose processors (e.g., CPUs, etc.) and dedicated processors (e.g., GPU: Graphics Processing Unit, ASIC: Application Specific Integrated Circuit, FPGA: Field Programmable Gate Array, programmable logic device, etc.).
[0075] In addition, the operations of the processor in the above embodiments may be performed not only by one processor, but also by multiple processors located at physically separate locations working together. The order of the operations of the processor is not limited to the order described in the above embodiments, and may be changed as appropriate.
[0076] The processes performed by the image forming apparatus 20 according to the above embodiment may be processes performed by software, may be processes performed by hardware, or may be a combination of both. The processes performed by the image forming apparatus 20 may be stored as a program in a storage medium and distributed.
[0077] Furthermore, the present disclosure is not limited to the above, and it goes without saying that various modifications can be made without departing from the spirit and scope of the present disclosure.
[0078] The following supplementary notes are further disclosed regarding the above embodiment. (((1))) an image reading unit that reads an original image and generates image information in a Lab color space; A processor; having The processor, A two-dimensional histogram of the a*b* plane is obtained for the image information; determining a background color of the document image using the two-dimensional histogram, and counting the number of black dots in the image information for each bin of the two-dimensional histogram; A value is calculated by subtracting the number of black dots of the bin determined to be the background color from the total number of black dots of all the bins; If the determined value is greater than a predetermined threshold, the image processing system determines that the document image is non-blank.
[0079] (((2))) The processor, Obtain the L* histogram, The image processing system according to (((1))), further comprising: determining the number of peaks in the L* histogram; and determining the document image to be non-blank if the number of peaks is two or more.
[0080] (((3))) The processor, Obtain the L* histogram, The image processing system according to (((1))) determines the number of peaks in the L* histogram, and if the number of peaks is one and the determined value is less than or equal to the threshold, determines the document image to be blank.
[0081] (((4))) The processor, The image processing system according to any one of (((1))) to (((3))), wherein a color contained in a bin located at the intersection of the maximum peak of the a* histogram and the maximum peak of the b* histogram in the two-dimensional histogram is determined to be the background color of the document image.
[0082] (((5))) The processor, The image processing system according to any one of (((1))) to (((4))), wherein, when the two-dimensional histogram has a bin having a number of black dots exceeding a first threshold value that is equal to or greater than a second threshold value, the document image is determined to be non-blank.
[0083] (((6))) The image processing system according to (((5))), wherein the processor counts the number of black dots in the image information for each bin of the two-dimensional histogram obtained for the image information generated while reading the document image in a main scanning direction.
[0084] (((7))) On the computer, The original image is read and image information in the Lab color space is generated. A two-dimensional histogram of the a*b* plane is obtained for the image information; determining a background color of the document image using the two-dimensional histogram, and counting the number of black dots in the image information for each bin of the two-dimensional histogram; A value is calculated by subtracting the number of black dots of the bin determined to be the background color from the total number of black dots of all the bins; If the obtained value is greater than a predetermined threshold value, the document image is determined to be non-blank.
[0085] According to (((1))), the accuracy of determining whether an original image is a blank page can be improved compared to a configuration in which a histogram of the maximum RGB values and a histogram of the maximum differences are calculated for image information in the RGB color space to determine whether an original image is a blank page.
[0086] According to (((2))), the speed of the process of determining whether or not a document image is a blank page can be improved.
[0087] According to (((3))), the accuracy of determining whether or not a document image is blank can be improved.
[0088] According to (((4))), the accuracy of determining that a document image is not blank can be improved compared to a configuration in which the color contained in the bin located at the intersection of a non-maximum peak of the a* histogram and a non-maximum peak of the b* histogram in a two-dimensional histogram is determined to be the background color of the document image.
[0089] According to (((5))), the accuracy of determining that a document image is not blank can be improved compared to a configuration in which a document image is determined to be non-blank when a bin in which the number of black dots in a two-dimensional histogram exceeds a first threshold value is less than a second threshold value.
[0090] According to (((6))), the speed of determining whether an original image is not blank can be improved compared to a configuration in which a two-dimensional histogram is calculated for image information generated after reading the original image in the main scanning direction and the sub-scanning direction.
[0091] According to (((7))), the accuracy of determining whether an original image is a blank page can be improved compared to a configuration in which a histogram of the maximum RGB values and a histogram of the maximum differences are calculated for image information in the RGB color space to determine whether an original image is a blank page. [Explanation of symbols]
[0092] 20 Image forming device (an example of an image processing system) 30 Document reading unit (an example of an image reading unit) 40 Image forming section 50 Control section 68 Image Processing Section 80 L* Histogram Creation Section 82 a* Histogram Creation Section 84 b* Histogram Creation Section 86 Image Binarization Unit 88 Contrast presence / absence determination section 90 Pixel Count Table Creation Section 92 Background color judgment section 94 Pixel Counting Unit 96 Black point number judgement section 98 Blank paper judgment section 120 Image Processing System 122 Image forming device 130 Image Processing System 132 Image forming device 134 Image Inspection Equipment 136 Blank paper removal device 150 manuscripts Cth Threshold
Claims
1. an image reading unit that reads an original image and generates image information in a Lab color space; A processor; having The processor, A two-dimensional histogram of the a*b* plane is obtained for the image information; determining a background color of the document image using the two-dimensional histogram, and counting the number of black dots in the image information for each bin of the two-dimensional histogram; A value is calculated by subtracting the number of black dots of the bin determined to be the background color from the total number of black dots of all the bins; If the determined value is greater than a predetermined threshold, the image processing system determines that the document image is non-blank.
2. The processor, Obtain the L* histogram, 2. The image processing system according to claim 1, further comprising: determining a number of peaks in the L* histogram; and determining the document image as non-blank if the number of peaks is two or more.
3. The processor, Obtain the L* histogram, 2. The image processing system according to claim 1, further comprising: determining the number of peaks in the L* histogram; and, if the number of peaks is one and the determined value is equal to or less than the threshold value, determining the document image to be blank.
4. The processor, 2. The image processing system according to claim 1, wherein a color contained in a bin located at an intersection of a maximum peak of the a* histogram and a maximum peak of the b* histogram in the two-dimensional histogram is determined to be the background color of the document image.
5. The processor, 2. The image processing system according to claim 1, wherein when the number of bins in which the number of black dots exceeds a first threshold in the two-dimensional histogram is equal to or greater than a second threshold, the document image is determined to be non-blank.
6. 6. The image processing system according to claim 5, wherein the processor counts the number of black dots in the image information for each bin of the two-dimensional histogram obtained for the image information generated while reading the document image in a main scanning direction.
7. On the computer, A document image is read to generate image information in Lab color space; A two-dimensional histogram of the a*b* plane is obtained for the image information; determining a background color of the document image using the two-dimensional histogram, and counting the number of black dots in the image information for each bin of the two-dimensional histogram; A value is calculated by subtracting the number of black dots of the bin determined to be the background color from the total number of black dots of all the bins; If the obtained value is greater than a predetermined threshold value, the document image is determined to be non-blank.
Citation Information
Patent Citations
Image processing apparatus, method, and program, image forming apparatus, and medium for recording image processing program
JP2009094903A
