Scanner, image data production method, and control program
The scanner employs a color removal mode and normal mode with adjustable intensity to fully remove specific colors from scanned documents, addressing the inadequacies of conventional methods by ensuring complete removal of residual colors.
Patent Information
- Application Number
- JP2020188053
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-11
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2040-11-11
AI Technical Summary
Conventional methods for removing specific colors from scanned documents, such as red ink, are inadequate as they often fail to completely remove these colors, leaving residual portions that are barely distinguishable from the background.
A scanner with a photoelectric conversion module that reads originals and converts them into digital data, employing a color removal mode and a normal mode for background removal, where the intensity of removal is adjusted based on user specifications, and a background removal section that selectively performs removal at different intensities in each mode.
Enables the production of scan data where specific colors, such as red ink, are effectively removed beyond the background, ensuring no residual portions remain, using a simple configuration without additional complexity.
Smart Images

Figure 0007567383000001 
Figure 0007567383000002 
Figure 0007567383000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a scanner, a method for producing image data, and a control program. [Background technology]
[0002] Conventionally, it is known that an original document for OCR or OMR that contains, for example, a red dropout color portion can be illuminated with a red light source and read to obtain scan data from which the red dropout color portion has been removed (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-295423 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, with conventional technology, the range of colors that can be removed is narrow, so there is a possibility that a small amount of the part that the user intended to remove may not be removed and may remain. [Means for solving the problem]
[0005] A scanner to achieve the above-mentioned object includes a photoelectric conversion module that reads an original document and converts it into digital data, and a background removal unit that selectively executes, according to a user's specifications, a color removal mode that performs background removal on monochrome data, which is a single-color component of the digital data obtained by reading the original document, and a normal mode that performs background removal on multi-color data, which is digital data obtained by reading the original document with light of multiple colors, and the background removal unit performs background removal at a different intensity in the color removal mode than in the normal mode.
[0006] The method of producing image data to achieve the above object includes selecting a color removal mode or a normal mode in response to a user's specification, and in the color removal mode, performing background removal on monochrome data, which is a single-color component of digital data obtained by reading an original document, to produce image data, and in the normal mode, performing background removal on multi-color data, which is digital data obtained by reading an original document with light of multiple colors, to produce image data, and performing background removal at a different intensity than in the normal mode in the color removal mode.
[0007] A control program for achieving the above-mentioned object causes a computer to function as an acquisition unit that acquires digital data obtained by reading an original document, and a background removal unit that selectively executes a color removal mode that performs background removal on monochrome data, which is a single-color component of the digital data obtained by reading the original document, and a normal mode that performs background removal on multi-color data, which is digital data obtained by reading the original document with multiple colors of light, in accordance with a user's specifications, and that performs background removal with a different intensity in the color removal mode than in the normal mode. [Brief description of the drawings]
[0008] [Figure 1] Scanner block diagram. [Diagram 2] A diagram showing the configuration of the CIS peripherals. [Diagram 3] FIG. 13 is a diagram showing a luminance histogram and an input / output relationship. [Figure 4] 13 is a flowchart of a scan control process. [Diagram 5] 6A and 6B are diagrams showing examples of background removal levels in a normal mode and a color removal mode. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Here, the embodiments of the present invention will be described in the following order. (1)Scanner configuration: (2) Background removal: (3) Scan control processing: (4) Other embodiments:
[0010] (1)Scanner configuration: 1 is a block diagram of a scanner 1 according to an embodiment of the present invention. The scanner 1 includes a controller 10, a communication unit 70, an operation unit 80, a light source 21, an optical unit 22, a photoelectric conversion module 23, and a sub-scanning device 30. The controller 10 includes a recording medium (not shown) and a processor (which may be a dedicated circuit such as an ASIC configured to execute a specific process, or a CPU and an ASIC may work together) that reads and executes a program from the recording medium. The controller 10 controls the light source 21, the photoelectric conversion module 23, and the sub-scanning device 30, reads a document as a scanning object, and processes the read result to generate scan data.
[0011] The operation unit 80 includes an output unit that provides various information to the user, and an input unit that accepts input operations by the user. The output unit is, for example, a display that displays information, and the input unit is an input button or a touch panel. The controller 10 controls the operation unit 80 to display information for selecting scan conditions and issuing a scan start instruction on the output unit. The user can select scan conditions and input a scan start instruction based on the output of the output unit. When a scan start instruction is input, the controller 10 controls each part of the scanner 1 to perform an operation for reading the object to be scanned. This operation causes the photoelectric conversion module 23 to output the read result.
[0012] The communication unit 70 is a device for communicating with an external device such as a PC (not shown), and the controller 10 can transmit any information to the PC and receive various instructions from the PC. In this embodiment, when scan data is generated, the controller 10 transmits the scan data to the PC via the communication unit 70. In this case, the communication unit 70 functions as a scan data output unit. Of course, the scan data may be used in various ways, and may be stored in a recording medium (not shown) provided in the scanner 1, may be stored in a removable memory, or may be provided to a device other than the PC via the communication unit 70.
[0013] The scanner 1 according to this embodiment includes a platform for placing an object to be scanned, and the object to be scanned placed on the flat platform is read. In this embodiment, the object to be scanned on the platform is read by a reading unit including a light source 21, an optical unit 22, a photoelectric conversion module 23, and a sub-scanning device 30. In this embodiment, the light source 21, the optical unit 22, and the photoelectric conversion module 23 are configured as a CIS (Contact Image Sensor). FIG. 2 is a diagram showing a schematic diagram of a CIS and a platform 50. The Y axis shown in the figure indicates the sub-scanning direction, and the Z axis indicates the direction perpendicular to the platform 50, and in this figure, the direction perpendicular to the Y axis and the Z axis is the main scanning direction.
[0014] The sub-scanning device 30 is equipped with a motor (not shown) and is capable of reciprocating the CIS in the sub-scanning direction (Y-axis direction) by the power of the motor. The controller 10 can control the operation of the sub-scanning device 30. The light source 21 is equipped with LEDs of multiple colors, and each LED is attached to the CIS so as to irradiate illumination light E1 toward a predetermined direction of the mounting table 50. Therefore, when the object to be scanned is read, the light source 21 can move in the sub-scanning direction with the LEDs facing in the predetermined direction. In other words, the position where the illumination light is irradiated moves in the sub-scanning direction, changing the reading position and performing the sub-scanning.
[0015] In this embodiment, the light source 21 includes three color light sources (LEDs): a red (R: Red) light source, a green (G: Green) light source, and a blue (B: Blue) light source. The controller 10 controls the light source 21 and repeats control to turn on the light source 21 in the order of red, green, and blue while performing a sub-scan, thereby performing a color scan of the scanning object (obviously, the lighting order may be different, and the conveyance of the CIS may be driven intermittently, and the operation of irradiating each color while the conveyance is stopped may be repeated each time the conveyance is stopped).
[0016] In FIG. 2, the vicinity of the reading surface of the scanning object on the mounting table 50 is shown as an enlarged view F. In the enlarged view F, the red light path is indicated by R and a solid arrow, the green light path is indicated by G and a dashed arrow, and the blue light path is indicated by B and a dashed arrow. The arrows of the light paths shown in the enlarged view F are representative light paths. As shown in the enlarged view F, in this embodiment, a predetermined range in the sub-scanning direction is read by moving the CIS in the sub-scanning direction while each of the light sources 21 of each color is independently turned on. In this embodiment, a certain area continuous in the sub-scanning direction constitutes one pixel, and the image of one pixel is constituted by a red pixel value, a green pixel value, and a blue pixel value.
[0017] The optical unit 22 includes optical components such as lenses. In this embodiment, the lenses are rod lenses aligned in the main scanning direction (X-axis). Illumination light E1 from the light source 21 is diffusely reflected by the object to be scanned. These lights become incident light E2 to the optical unit 22. The incident light E2 passes through the lens, and an image of the object to be scanned is formed at the same magnification on the photoelectric conversion module 23. Of course, the optical unit 22 may include optical components other than lenses, such as an aperture, for example. Furthermore, the optical system is not limited to a configuration that forms an image at the same magnification, and may be an optical system that forms a reduced image or an enlarged image.
[0018] The photoelectric conversion module 23 is a line sensor with one row, and includes a plurality of photoelectric conversion elements (hereinafter referred to as elements) arranged in one direction. That is, in this embodiment, the red light source, the green light source, and the blue light source are turned on at different times, and the reading result (light intensity) of each color is output. Therefore, the photoelectric conversion module 23 is a sensor without a color filter. In this embodiment, the direction in which the elements of the photoelectric conversion module 23 are arranged is considered to be the main scanning direction. Of course, various other configurations may be adopted for the configuration of the photoelectric conversion module 23. For example, the photoelectric conversion module 23 may include a plurality of sensors divided in the main scanning direction, and the reading results of each sensor may be combined to read one line.
[0019] The photoelectric conversion module 23 includes an analog front end (not shown). The analog front end includes a circuit that amplifies and outputs a signal output by an element according to the amount of received light, and a circuit that performs A / D conversion. In this embodiment, the analog front end includes a recording medium that records information indicating an amplification factor, and the analog front end adjusts the amplification factor based on the information indicating the amplification factor to make the black level of the photoelectric conversion module 23 the minimum output value and the white level the maximum output value.
[0020] When a user wants to have a paper document read, the user places the paper document on the placement table 50. In this state, when the user operates the operation unit 80 of the scanner 1 to instruct the scanner 1 to start scanning, the controller 10 starts the scanning operation. When the scanning operation starts, the controller 10 controls the light sources 21 so that the red light sources, the green light sources, and the blue light sources are each turned on one by one in a predetermined order and for a predetermined period of time. The controller 10 also controls the sub-scanning device 30 to start moving the CIS in the positive direction of the Y axis. Furthermore, the controller 10 controls the photoelectric conversion module 23 to have the photoelectric conversion module 23 perform a line capture operation at a predetermined timing.
[0021] In this embodiment, the light sources 21 are turned on for each color in a predetermined order and period, and a line capture operation is performed according to the sensor drive timing at a fixed period synchronized with the lighting. As a result, digital data is generated in which the intensity of each of red, green, and blue is specified for each pixel. That is, in this embodiment, the photoelectric conversion module 23 does not include a color filter, and the intensities of the three color components are obtained by sequentially lighting the red light source, green light source, and blue light source one color at a time. In such a configuration, the light source turned on in the light source 21 and the data read by the illumination by that light source are clear, so the color components of the data are determined according to the timing of lighting the light source.
[0022] (2) Background removal: In this embodiment, the controller 10 can realize a function of removing a background color (the background color of the document) from the digital data output from the photoelectric conversion module 23. When performing a process for removing the background, which will be described later, the controller 10 functions as an acquisition unit and a background removal unit.
[0023] As the scanning conditions for background removal, the operation unit 80 displays a selection between normal mode and color removal mode, and the user can select either normal mode or color removal mode for the background removal function to issue a scan instruction. The normal mode is a mode for generating scan data from which the background color of the document paper has been removed, and the color removal mode is a mode for generating scan data from which a specific color has been removed in addition to the background color. In this embodiment, the specific color is a red color expressed with a commercially available red pen. The color removal mode is expected to be used, for example, to scan a document containing red characters written with a commercially available red pen, obtain scan data from which the red characters have been erased, and print the data.
[0024] When producing scan data from which red parts included in a document such as an OCR sheet have been removed, conventionally, the document is illuminated with a red light source and read, utilizing the fact that the reflectance of red light in the red parts and the background color (white) parts of the document is almost the same. As a result, scan data is generated in which the red parts are almost indistinguishable from the background of the document, and so conventionally, scan data from which the red parts have been removed in this manner has been generally produced. However, when it is desired to produce scan data from which red parts, which are not designed to be dropped by red light as described above (to be read as a value indistinguishable from the background color), for example, parts of red with lower brightness, have been removed, the above-mentioned conventional method may result in the red parts to be removed remaining slightly distinguishable from the background color of the document in the scan data. The luminance of this slightly remaining part is close to the luminance of the background color of the document, but there is a difference that is distinguishable to the human eye. In this embodiment, a background removal technique is used to adjust a threshold value for distinguishing whether or not the part is the background color of the document, and this slightly remaining part is removed in the same way as the background color of the document.
[0025] In this embodiment, in both the normal mode and the color removal mode, the controller 10 acquires RGB data (multi-color data) indicating the intensities of the three RGB color components by sequentially lighting the red light source, the green light source, and the blue light source one by one. In this embodiment, in the color removal mode, the controller 10 extracts R data (R monochromatic data), which is a monochromatic red component, from the RGB data, and performs background removal on the data (R,G=R,B=R) that has been grayscaled using the R data. In the normal mode, the controller 10 performs background removal on the RGB data.
[0026] FIG. 3 shows an example of a histogram of luminance converted from the pixel value of each pixel of RGB data generated by reading one page of a document, and an example of an input / output relationship for background removal. In FIG. 3, the histogram is represented by a black line, the horizontal axis is luminance, and the vertical axis is frequency. When the background color of the document is a light color close to white and the document is a document in which a lot of the background color of the document remains, as shown in the histogram of FIG. 3, a high frequency peak P1 exists at a position of high luminance. In this example, the peak P1 and the hatched areas before and after it indicate the background color of the document. T1 is a threshold value that distinguishes between a luminance value indicating the background color and other luminance values. In this embodiment, the threshold value T1 is determined in advance based on the distribution of luminance corresponding to the background color obtained by scanning several types of general white paper. The threshold value T1 is a default level threshold value in the normal mode.
[0027] The gray solid line in FIG. 3 indicates the relationship between the input luminance (horizontal axis) and the output luminance (vertical axis) in the normal mode. A conversion table indicating this input / output relationship is recorded in the recording medium of the scanner 1. In the normal mode, the controller 10 converts the RGB data based on this conversion table so that pixels whose luminance is greater than the threshold T1 have the maximum luminance (i.e., white), and converts the RGB data so that pixels whose luminance is less than the threshold T1 have the luminance value indicated by the gray solid line. Therefore, the pixels in the portion read as the color of the diagonal hatching are converted to white, and the background is removed. Note that such background removal processing may be performed by converting the RGB data to, for example, YCbCr, converting the luminance Y value according to the conversion table, and reconverting the converted YcbCr to RGB. Alternatively, the background removal processing may be performed by preparing threshold values and conversion tables for each RGB channel and performing conversion based on the conversion table for each RGB channel.
[0028] Next, the color removal mode will be described in detail. As a result of scanning documents containing characters written in multiple types of commercially available red pens, it was found that the lower limit of the luminance of the portion written in red pen is a luminance that is a fixed value t lower than the threshold value that distinguishes between the background color and non-background color of the document. Therefore, in this embodiment, when the threshold value used in the normal mode is T1 (i.e., the level of background removal in the normal mode is the default level), the controller 10 uses (T1-t) as the threshold value in the color removal mode and performs background removal in the same manner as in the normal mode (threshold value is different).
[0029] The gray dashed line in FIG. 3 indicates the relationship between the input luminance and the output luminance in the color removal mode. A conversion table indicating this input / output relationship is recorded in the recording medium of the scanner 1. As indicated by the gray dashed line, in the color removal mode in which the red pen markings are removed, the value of a pixel whose luminance is greater than (T1-t) in the data grayscaled by the R data is converted to a value indicating the maximum luminance. That is, the controller 10 calculates the luminance of each pixel from the data grayscaled by the R data (monochrome data), and converts the value of the monochrome data so that the luminance of a pixel whose luminance is greater than the threshold value (T1-t) becomes maximum (i.e., white) based on the calculated luminance and the conversion table indicated by the gray dashed line in FIG. 3. In addition, the controller 10 converts the value of the monochrome data so that the luminance of a pixel whose luminance is less than the threshold value (T1-t) becomes the value indicated by the gray dashed line based on the conversion table indicated by the gray dashed line. As a result, in the color removal mode, scan data is generated from which not only the background color of the document paper but also the red pen markings have been removed. That is, in the color removal mode, background removal is performed more strongly than the default level in the normal mode. Note that other parts whose brightness is less than (T1-t) remain in the scan data, so for example, black and blue characters remain in the scan data.
[0030] Thus, according to this embodiment, in the normal mode, it is possible to produce scan data from which the background color of the document has been removed, and in the color removal mode, it is possible to produce scan data from which a specific color has been removed in addition to the background color of the document by performing a method similar to that used in the normal mode for background removal with a different threshold value than that used in the normal mode. Therefore, according to this embodiment, it is not necessary to add a complex mechanism for color removal, and it is possible to realize a function for generating scan data from which a specific color has been removed with a simple configuration.
[0031] The scanned data after background removal can be output to a PC or a removable memory via the communication unit 70. In this embodiment, in the color removal mode, monochrome data generated from R data (single color data) is output. That is, the controller 10 outputs grayscale data converted based on the conversion table shown by the gray dashed line in FIG. 3. Note that the data converted according to the conversion table shown by the gray dashed line in FIG. 3 may be binarized, and the binary data may be output.
[0032] In the normal mode, the controller 10 outputs monochrome data generated from color data or RGB data (multi-color data) in response to a user instruction. That is, in the normal mode, the user can instruct either monochrome output or color output, and when the user instructs color output, the controller 10 outputs RGB data after background removal. When the user instructs monochrome output, the controller 10 converts the RGB data after background removal into grayscale data and outputs it. Note that in the case of monochrome output, binarized data obtained by binarizing the RGB data after background removal may be output.
[0033] When the scanned data after the background removal is output to the PC via the communication unit 70, the user can check the scanned data on the display of the PC. When the background color or red characters of the document remain without being removed, the user can change the level of background removal in the normal mode from the default level and issue a scan instruction on the operation unit 80 of the scanner 1. In this embodiment, independent of the selection of the normal mode or the color removal mode, three levels are presented: a default level, a second level that removes background more strongly than the default level, and a third level that removes background even more strongly than the second level, and the user can select the level of background removal from these three levels. In the default level, T1 is adopted as the luminance threshold value for distinguishing whether the background color is the default background color described above. In the second level, T2, which is a value smaller than T1, is adopted as the threshold value for background removal. In the third level, T3, which is a value smaller than T2, is adopted as the threshold value for background removal. In the color removal mode, a value smaller by a fixed value t than the threshold value adopted in the normal mode is adopted as the threshold value. Therefore, if the threshold value used in the normal mode is T2, then (T2-t) is used as the threshold value in the color removal mode. If the threshold value used in the normal mode is T3, then (T3-t) is used as the threshold value in the color removal mode.
[0034] (3) Scan control processing: 4 is a flowchart showing the scan control process. The scan control process is started by the controller 10 executing a control program. When the scan control process is started, the controller 10 accepts user settings (step S100). That is, in this embodiment, the controller 10 accepts, via the operation unit 80, a selection of a mode relating to background removal such as a normal mode or a color removal mode, a selection of a level of strength of background removal (default level, second level, third level), and, when the normal mode is selected, a selection of color output / monochrome output, etc.
[0035] In addition, in the background removal mode, a mode that does not perform background removal may be presented as a selectable mode, and when a mode that does not perform background removal is selected, the controller 10 generates scan data that does not remove the background color of the document. The controller 10 also accepts various other scan condition specifications, such as the reading resolution and the format of the output file. For items that the user has not explicitly specified, the previously used setting value, the customized setting value, or the default setting value is used.
[0036] Next, the controller 10 scans the document (step S105). That is, the controller 10 controls the light source 21, the optical unit 22, the photoelectric conversion module 23, and the sub-scanning device 30 based on the scan conditions including the user settings received in step S100, and reads the document. As a result of the reading, the controller 10 obtains RGB data from the photoelectric conversion module 23.
[0037] Next, the controller 10 determines whether the user has selected the color removal mode or the normal mode for background removal (step S110). If it is determined in step S110 that the color removal mode has been selected, the controller 10 performs color conversion to extract R data from the RGB data (step S115). Specifically, for example, the controller 10 converts the gradation values (R, G, B) of each pixel of the RGB data obtained in step S105 into (R, R, R).
[0038] Next, the controller 10 performs background removal using a threshold value that is smaller than the threshold value in the normal mode by a fixed value (step S120). For example, when the level set in the normal mode is a default level, the controller 10 performs background removal based on a conversion table that employs T1-t as a threshold value (see the gray dashed line in FIG. 3). Next, the controller 10 outputs the data after background removal as monochrome data (step S125). That is, the controller 10 outputs the data after background removal (grayscale data) to the PC via the communication unit 70.
[0039] If it is determined in step S110 that the normal mode is selected, the controller 10 performs background removal using the threshold value of the normal mode (step S135). For example, if the level selected in the normal mode is the default level, the controller 10 performs background removal on the RGB data based on a conversion table that employs T1 as a threshold value (see the gray solid line in FIG. 3). Next, the controller 10 determines whether or not color output is selected (step S140), and if it is determined that color output is selected, it outputs color data (step S145). That is, the controller 10 outputs the RGB data after the process of step S135 to the PC via the communication unit 70. If it is not determined that the output is color output in step S140, the controller 10 outputs monochrome data (step S150). That is, the controller 10 converts the RGB data after the process of step S135 into grayscale data, and outputs it to the PC via the communication unit 70.
[0040] (4) Other embodiments: The above embodiment is an example for carrying out the present invention, and various other embodiments can be adopted. For example, the scanner according to one embodiment of the present invention may be provided in a multifunction peripheral, which is an electronic device used for purposes other than reading. Furthermore, the scan data (image data) produced by reading can be used in various ways other than output to a PC or a removable memory. For example, the scan data (image data) may be output to a printing unit of the multifunction peripheral and printed (i.e., copied), or may be displayed and output on a display. Furthermore, at least a part of the processing of the controller 10 may be executed by a driver program or an application program of the PC. In this case, the PC can be considered as a part of the scanner.
[0041] The scanner may read an image using a photoelectric conversion module, and the photoelectric conversion module may be any of various sensors capable of scanning color images. That is, as described above, various configurations may be adopted in addition to the configuration in which the light from three color light sources such as RGB is irradiated onto the object to be scanned while being switched sequentially, and the light output from the object to be scanned is detected by the photoelectric conversion module. In the color removal mode, R data may be extracted from RGB data acquired by reading while switching the light from three color light sources such as RGB sequentially, or a configuration may be adopted in which R data is obtained by turning on the R light source and reading the R data without reading with the G light source or the B light source turned on.
[0042] For example, a configuration may be adopted in which light from a single light source such as white light is irradiated onto the object to be scanned, and the light output from the object to be scanned is detected by a photoelectric conversion module equipped with a color filter such as RGB. In the color removal mode, colors other than red may be removed, or the user may be allowed to specify which color is to be removed, and the specified color may be removed.
[0043] It may also be applied to the case where background removal is performed on digital data generated by a device other than a scanner, for example, the case where image data is produced by removing the background of photo data generated by photographing a whiteboard with a digital camera. The strength of background removal indicates the width of the range of pixel values (e.g., luminance, value of each color channel, etc.) that are considered to be the background color of the document. When the strength of background removal is different, the range of pixel values that are considered to be the background color of the document is different. When background removal is strong, it is sufficient to widen the range of pixel values that are considered to be the background color of the document.
[0044] When the background color of the document is brighter than the non-background portion, a threshold value is set to distinguish between the background color and the non-background portion, and background removal can be performed by converting pixels brighter than the threshold value to white. When background removal is performed strongly, the range of the background to be removed can be expanded by reducing the threshold value. In the above embodiment, an example is shown in which pixels whose luminance is equal to or less than a threshold value are converted according to a conversion table as shown in FIG. 3, but a configuration may be adopted in which pixels whose luminance is equal to or less than a threshold value are output as input values without converting the luminance.
[0045] The threshold value in the normal mode may be calculated according to the document. For example, the scanner may have a function of generating a luminance histogram of the document every time one page of the document is read, and automatically calculating a threshold value for distinguishing between the background color of the document and non-background colors from the shape of the histogram, etc. As an example, a method may be adopted in which the highest frequency peak is detected, and the luminance value from the peak to the minimum luminance value where the frequency is less than a preset value on the side where the luminance decreases is considered as the background color, and the luminance value is set as the threshold value. In this way, when the scanner has a function of automatically calculating the threshold value for each scan, pixels with luminance greater than the automatically calculated threshold value may be converted to white in the normal mode. Also, in the color removal mode, a value smaller than the automatically calculated threshold value by a fixed value t may be set as the threshold value, and pixels with luminance greater than the threshold value may be converted to white. Alternatively, the threshold value in the color removal mode may be calculated from the shape of the histogram, etc. without using the fixed value t. Note that t may be a value (variable value) according to a user's designation. A histogram of the brightness of each RGB color may be generated.
[0046] The color removal mode and the normal mode may have different thresholds. For example, the color removal mode and the normal mode may have mutually different fixed thresholds. The background removal unit may be configured to present the user with a selectable level of background removal in the normal mode from a plurality of levels including a level weaker than the level executable in the color removal mode. For example, consider a case where the thresholds T1, T2, and T3 corresponding to the respective levels of background removal in the normal mode and the thresholds (T1-t), (T2-t), and (T3-t) corresponding to the respective levels executable in the color removal mode have the relationship shown in FIG. 5. The example in FIG. 5 shows that the default level (threshold T1) and the second level (threshold T2) in the normal mode perform background removal weaker than any of the three levels executable in the color removal mode. On the other hand, the example in FIG. 5 shows that the third level (threshold T3) in the normal mode performs background removal stronger than the background removal level indicated by the threshold (T1-t) in the color removal mode. Therefore, as in the example of FIG. 5, a configuration may be adopted in which the level of background removal in the normal mode is presented to the user as being selectable from a plurality of levels including a stronger level and a weaker level than the level of background removal executable in the color removal mode. In the above embodiment, the level of background removal in the normal mode is selectable, and background removal is always stronger in the color removal mode than in the normal mode. However, for example, a configuration may be adopted in which the level of background removal in the color removal mode is selectable by the user. For example, in the normal mode, the level of background removal may be selectable by the user from three levels, weak (threshold T1), medium (threshold T2), and strong (threshold T3), and in the color removal mode, the level of background removal may be selectable by the user from two levels, medium (threshold T2) and strong (threshold T3). In that case, in the normal mode in which strong is selected, background removal is performed at a stronger level than in the color removal mode in which medium is selected, and background removal is performed at the same level as in the color removal mode in which strong is selected, and such a configuration may be adopted. In addition, in both the color removal mode and the normal mode, the user can select from three levels of background removal: weak (threshold T1), medium (threshold T2), and strong (threshold T3). In the color removal mode, medium may be the default, and in the normal mode, weak may be the default.In exceptional cases where the user knows that the red color that the user wants to remove is the ideal red color in the design and that the red color to be removed will not remain slightly discernible against the background color of the document, the user can also select weak. Note that if the default settings are different in this way, this also includes performing background removal at a different strength than in the normal mode in the color removal mode, and even if there is no default setting and the range that the user can set is different, this also includes performing background removal at a different strength than in the normal mode in the color removal mode. Note that when the user can select a threshold, the number of options is not particularly limited. The algorithm for background removal is not limited to the one described above, and the present invention may be applied to cases where background removal is performed using other algorithms.
[0047] Furthermore, the present invention can be applied as a program or method executed by a computer. The above-mentioned system, program, and method may be realized as a single device or may be realized by using parts of multiple devices, and include various aspects. In addition, it can be modified as appropriate, such as being partly software and partly hardware. Furthermore, the invention can be established as a recording medium of a program that controls the system. Of course, the recording medium of the program may be a magnetic recording medium or a semiconductor memory, and any recording medium developed in the future can be considered in the same way. [Explanation of symbols]
[0048] 1...scanner, 10...controller, 21...light source, 22...optical section, 23...photoelectric conversion module, 30...sub-scanning device, 50...mounting table, 70...communication section, 80...operation section
Claims
1. A photoelectric converter that reads a document containing a portion corresponding to the color to be removed and converts it into digital data. A conversion module; Monochromatic components corresponding to the color to be removed from digital data obtained by reading the document with light of multiple colors For monochrome data, pixel values greater than the first threshold are converted to values representing white. A color removal mode for removing backgrounds, and a digital data obtained by reading the document with light of multiple colors. For multi-color data, background removal converts pixel values greater than a second threshold into a value representing white. a normal mode for performing the above; and a background removal unit for selectively performing the above in response to a user's instruction. Equipped with The first threshold value in the color removal mode is smaller than the second threshold value in the normal mode. 、 scanner.
2. In the color removal mode, the monochrome data generated from the single color data after background removal is performed is In the normal mode, the multi-color data is output after background removal is performed. A scan data output unit is provided. The scanner of claim 1 .
3. In the color removal mode, the monochrome data generated from the single color data after background removal is performed is In the normal mode, the multi-color data is generated after background removal. a scan data output unit that outputs the monochrome data obtained by the scan The scanner of claim 1 .
4. the second threshold in the normal mode is calculated according to the document; The first threshold in the color removal mode is more stable than the second threshold in the normal mode. Smaller by a fixed value, The scanner of claim 1 .
5. Computer, An acquisition unit that acquires digital data by scanning a document including a portion corresponding to the color to be removed 、 Monochromatic components corresponding to the color to be removed from digital data obtained by reading the document with light of multiple colors For monochrome data, pixel values greater than the first threshold are converted to values representing white. A color removal mode for removing backgrounds, and a digital data obtained by reading the document with light of multiple colors. For multi-color data, background removal converts pixel values greater than a second threshold into a value representing white. a normal mode in which the background removal unit performs the above-mentioned process; and a background removal unit selectively performs the above-mentioned process in accordance with a user's instruction, the first threshold in the color removal mode is smaller than the second threshold in the normal mode; background removal section, A control program that acts as a
Citation Information
Patent Citations
Picture reader
JP1993048889A
Image reader
JP1994014185A
Image processor
JP2006339875A
Image processor, and computer program
JP2016127350A
JP2020-295423A
