Image reading device and image reading method
The image reading device and method address the challenge of dirt detection sensitivity by using reference data to correct shading and set document areas, enhancing accuracy and reducing dirt-related errors.
Patent Information
- Application Number
- JP2023028136
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-09-06
AI Technical Summary
Increasing the sensitivity for detecting dirt in image reading devices leads to erroneous or excessive detection, impairing usability, while lowering sensitivity risks reducing the accuracy of document cutting due to undetected dirt.
An image reading device and method that utilize a light source, reference section for shading correction, and a control section, employing first and second black or white reference data to perform shading correction, reducing the influence of dirt by setting a document area based on differences between these reference data and read data.
Improves the accuracy of cutting out documents by minimizing the impact of dirt, ensuring highly accurate shading correction and reducing erroneous detections.
Smart Images

Figure 2024121175000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an image reading apparatus and an image reading method. [Background technology]
[0002] For example, as disclosed in Patent Document 1, there is an image reading device equipped with a reading unit that reads an image of a document. The image reading device is capable of adjusting the sensitivity for detecting dirt on the reading surface. When the image reading device detects that dirt is attached, it displays a warning message. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-17856 A Summary of the Invention [Problem to be solved by the invention]
[0004] Increasing the sensitivity to detect dirt makes it easier to detect dirt, but it also increases the frequency of warnings due to false positives or excessive detections, which reduces the user experience.However, lowering the sensitivity to allow a certain level of dirt may result in a decrease in the accuracy of document extraction due to dirt that cannot be detected. [Means for solving the problem]
[0005] An image reading device that solves the above problem includes a light source that emits light, a reference unit for shading correction, a reading unit that reads an original document and outputs read data, and a control unit, where one of the first black reference data and the first white reference data is data that may be affected by dirt and is obtained by the reading unit reading the reference unit with the light source turned on, and the control unit sets an original area based on a first result of shading correction performed based on the difference between the read data and the first black reference data and the difference between the first white reference data and the first black reference data.
[0006] An image reading method that solves the above problem is an image reading method for an image reading device that includes a light source that irradiates light, a reference section for shading correction, and a reading section that reads an original document and outputs read data, wherein one of first black reference data and first white reference data is data that may be affected by dirt and is obtained by the reading section reading the reference section with the light source turned on, and an original area is set based on a first result of shading correction performed based on the difference between the read data and the first black reference data and the difference between the first white reference data and the first black reference data. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a side view showing an image reading device in a first embodiment. [Diagram 2] FIG. 4 is a schematic diagram of a second reading unit. [Diagram 3] FIG. [Figure 4] FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] An image reading device and an image reading method will be described below with reference to the drawings. The image reading device is, for example, a sheet-fed scanner in which a fixed reading unit reads a document such as paper or film that is conveyed.
[0009] [First embodiment] <Configuration of image reading device> 1, the image reading device 11 may include a housing 12 and a support unit 13. The support unit 13 supports the housing 12. The support unit 13 is attached to the housing 12. The support unit 13 is installed on, for example, a horizontal plane.
[0010] The housing 12 has a supply port 14 and a discharge port 15. The supply port 14 is an opening through which the original M is supplied. The original M is supplied into the housing 12 through the supply port 14. The discharge port 15 is an opening through which the original M is discharged. The original M is discharged from inside the housing 12 through the discharge port 15.
[0011] The image reading device 11 may include a transport path 16. The transport path 16 is a path along which the document M is transported. The transport path 16 extends within the housing 12. The transport path 16 extends from the supply port 14 toward the discharge port 15.
[0012] The image reading device 11 may include a supply tray 18, a feeding section 19, a transport section 20, a first reading unit 21, a second reading unit 22, and a discharge tray 23. The supply tray 18 is attached to the housing 12. An original document M before being read is set on the supply tray 18. One or more original documents M are stacked on the supply tray 18. The original document M is set on the supply tray 18 with its leading edge entering the supply port 14. When the original document M is set on the supply tray 18, the leading edge of the original document M abuts against the feeding section 19.
[0013] The feeding section 19 has a feeding roller 25 and a separating section 26. The feeding section 19 sends out the documents M placed on the supply tray 18 to the transport path 16 one by one in sequence. The feed roller 25 feeds the document M from the supply tray 18. The feed roller 25 is driven to rotate. The feed roller 25 may come into contact with the surface of the document M.
[0014] The separating section 26 separates the originals M fed by the feeding roller 25. The separating section 26 in this embodiment is a roller for separating the originals M one by one. The separating section 26 may come into contact with the rear surface of the originals M.
[0015] The separating section 26 is configured by, for example, a roller having a higher coefficient of friction with respect to the originals M than the coefficient of friction between the originals M themselves. A rotational load is applied to the separating section 26 by, for example, a torque limiter. Therefore, when the feed roller 25 and the separating section 26 pinch a plurality of originals M, the separating section 26 is less likely to rotate in response to the drive rotation of the feed roller 25. That is, the feed roller 25 and the separating section 26 separate the originals M one by one. This reduces the risk that two originals M will be transported overlapping each other.
[0016] The transport unit 20 is configured to transport the original M. The transport unit 20 transports the original M along the transport path 16. The transport unit 20 includes, for example, one or more roller pairs 28. The roller pairs 28 are provided downstream in the transport direction D1 from the feeding unit 19. The roller pairs 28 are aligned along the transport path 16. The roller pairs 28 transport the original M by rotating while sandwiching the original M therebetween.
[0017] The discharge tray 23 is attached to the housing 12. The discharge tray 23 is, for example, rotatable with respect to the housing 12. The discharge tray 23 can receive the original document M by opening with respect to the housing 12. The discharge tray 23 receives the original document M after it has been read. The discharge tray 23 receives the original document M discharged from the discharge port 15.
[0018] The first reading unit 21 and the second reading unit 22 are configured to read the original M. The first reading unit 21 and the second reading unit 22 read the original M transported in a transport direction D1. The first reading unit 21 and the second reading unit 22 face each other across the transport path 16. The first reading unit 21 and the second reading unit 22 are elongated in the scanning direction D2. When the scanning direction D2 is referred to as the main scanning direction, the transport direction D1 can also be said to be the sub-scanning direction.
[0019] The first reading unit 21 and the second reading unit 22 have the same configuration. Each of the first reading unit 21 and the second reading unit 22 includes a light source 31, a reading section 32, and a reference section 33.
[0020] The light source 31 is, for example, an LED, a fluorescent lamp, etc. The light source 31 emits light. Specifically, the light source 31 emits light toward the opposing reading unit. The light source 31 is, for example, elongated in the scanning direction D2.
[0021] The reading unit 32 reads the original M and outputs read data. The reading unit 32 may read one line of an image in the scanning direction D2. The reading unit 32 may output read data including a plurality of pixels arranged in the scanning direction D2. The reading unit 32 may have a plurality of image sensors arranged in the scanning direction D2. The plurality of image sensors may be modularized. The reading unit 32 is, for example, a contact type image sensor. More specifically, the reading unit 32 is a CMOS image sensor. The reading unit 32 photoelectrically converts the received light. The reading unit 32 outputs an output value according to the amount of received light. The output value when the reading unit 32 reads the white original M is greater than the output value when the reading unit 32 reads the black reference portion 33. The output value is converted into a luminance value by A / D conversion.
[0022] The reading unit 32 may be a monochrome sensor or a color sensor. The reading unit 32 may be configured to read the original M in full color. For example, the reading unit 32 may be configured to read the original M in three colors, RGB. The reading unit 32 may be configured to read the original M in grayscale.
[0023] The reference portion 33 is for shading correction. The reference portion 33 is used for shading correction. The reference portion 33 faces, for example, a light source 31 and a reading portion 32 of another reading unit. Light is irradiated onto the reference portion 33 from the opposing light source 31. The reference portion 33 reflects the irradiated light. The light reflected by the reference portion 33 is incident on the reading portion 32 facing the reference portion 33.
[0024] The reference portion 33 is read by the reading portion 32 as a background together with the document M. When the reading portion 32 reads the reference portion 33 together with the document M, it is preferable that the reference portion 33 has a color that allows the document M and the reference portion 33 to be distinguished from each other. The reference portion 33 in this embodiment is black.
[0025] The image reading device 11 reads the front side of the document M using a light source 31 and a reading section 32 provided in the first reading unit 21 and a reference section 33 provided in the second reading unit 22. The image reading device 11 reads the back side of the document M using a light source 31 and a reading section 32 provided in the second reading unit 22 and a reference section 33 provided in the first reading unit 21.
[0026] The image reading device 11 may include an operation unit 35. The operation unit 35 is attached to the housing 12, for example. The operation unit 35 is, for example, a touch panel. The operation unit 35 accepts operations from a user. The operation unit 35 is not limited to a touch panel, and may be, for example, a button, a switch, or the like.
[0027] The image reading device 11 may be configured to receive operations from, for example, a terminal communicably connected to the image reading device 11. The terminal is, for example, a personal computer or a smartphone owned by a user.
[0028] The image reading device 11 includes a control unit 37. The control unit 37 comprehensively controls the driving of each mechanism in the image reading device 11, and controls various operations executed by the image reading device 11. The control unit 37 may be configured as a circuit including: α: one or more processors that execute various processes according to a computer program; β: one or more dedicated hardware circuits that execute at least a part of the various processes; or γ: a combination thereof. The hardware circuit is, for example, an application specific integrated circuit. The processor includes a CPU and memory such as RAM and ROM, and the memory stores program code or instructions configured to cause the CPU to execute processes. The memory, i.e., computer-readable medium, includes any readable medium that can be accessed by a general-purpose or dedicated computer.
[0029] The image reading device 11 may include a storage unit 38. The storage unit 38 may be included in the control unit 37. The storage unit 38 may be, for example, a memory such as the above-mentioned RAM and ROM.
[0030] <Stain> As shown in FIG. 2, for example, foreign matter 40 such as paper powder and dust may adhere to the first reading unit 21 and the second reading unit 22. In this embodiment, the adhered foreign matter 40 is also referred to as dirt. In this embodiment, the state in which the foreign matter 40 adheres is also referred to as a dirty state. The foreign matter 40 also affects reading when it adheres to the light source 31 and the reading unit 32. In FIG. 2, in addition to the dirt on the reference unit 33 of the second reading unit 22, the dirt on the light source 31 and the reading unit 32 of the first reading unit 21 is also projected and illustrated. Hereinafter, the dirt on the light source 31 and the reading unit 32 will also be described as dirt on the reference unit 33.
[0031] <Image reading method> The image reading device 11 reads one side of the conveyed document M or both sides of the document M. The method of reading the front and back sides of the document M is the same. Therefore, the following will explain reading one side.
[0032] 3 and 4, the control unit 37 may generate a setting image 42 and a read image 43 based on the read data read by the reading unit 32. Figs. 3 and 4 show the setting image 42 and the read image 43 when reading is performed in a state where the reference unit 33 is dirty as in Fig. 2.
[0033] 3, the read image 43 includes an original region 45, a background region 46, and a stain region 47. The original region 45 is an area where the original M is read. The background region 46 is an area where the reference portion 33 is read. In this embodiment, the background region 46 is black. The stain region 47 is an area where the foreign matter 40 is read. The stain region 47 appears as a stripe extending in the transport direction D1 at the position of the stain in the scanning direction D2.
[0034] The control unit 37 generates a setting image 42 shown in Fig. 4 based on the following formula (1). The control unit 37 generates a read image 43 shown in Fig. 3 based on the following formula (2). Formulas (1) and (2) are formulas for shading correction.
[0035]
number
[0036] The control unit 37 performs two patterns of shading correction for each pixel included in the read data. The control unit 37 may perform the shading correction of the formula (1) and then the shading correction of the formula (2), or may perform the shading correction of the formula (2) first.
[0037] The read data of the above formulas (1) and (2) is data obtained by reading the original M by the reading unit 32. The first black reference data is data obtained by turning on the light source 31 and reading the reference portion 33 with the reading portion 32. The first black reference data may be affected by dirt.
[0038] The second black reference data is data that is not affected by dirt. The control unit 37 may generate the second black reference data by turning off the light source 31 and causing the reading unit 32 to read the reference portion 33.
[0039] The control unit 37 may generate the first black reference data and the second black reference data when receiving an instruction to read the original M. The control unit 37 may generate the first black reference data and the second black reference data immediately before reading the original M. The first black reference data and the second black reference data may change due to the environment such as temperature and aging of the reading unit 32, etc. Therefore, by generating the first black reference data and the second black reference data and reading the original M in the same environment, it is possible to reduce the influence of the environment.
[0040] The first white reference data is data that is not affected by dirt. The first white reference data is, for example, data that is generated when the image reading device 11 is manufactured, and may be stored in the storage unit 38. The first white reference data is, for example, data obtained by turning on the light source 31 and reading unit 32 reading a white reference member before the light source 31, reading unit 32, etc. become dirty. The white reference member may be provided in the image reading device 11, or may be prepared separately from the image reading device 11.
[0041] As shown in formula (1), the control unit 37 sets the document area 45 based on a first result obtained by performing shading correction based on the difference between the read data and the first black reference data and the difference between the first white reference data and the first black reference data. Specifically, the control unit 37 divides the value obtained by subtracting the first black reference data from the read data by the value obtained by subtracting the first black reference data from the first white reference data. The control unit 37 calculates the first result by multiplying the calculated quotient by a coefficient according to the number of color gradations. For example, in the case of 8 bits and 256 gradations, the control unit 37 multiplies by 255 as a coefficient.
[0042] As shown in Fig. 4, in the setting image 42 generated based on the formula (1), the dirty area 47 in the portion overlapping with the document area 45 is easily noticeable, whereas the dirty area 47 in the portion overlapping with the background area 46 is not easily noticeable. Therefore, the control unit 37 is less likely to mistake the dirty area 47 for the edge of the document area 45. The control unit 37 sets the document area 45 based on a first result of performing shading correction based on the formula (1). The control unit 37 may determine that the pixel is in the document area 45 when the first result is equal to or greater than a threshold value, and may determine that the pixel is in the background area 46 when the first result is smaller than the threshold value.
[0043] As shown in equation (2), the control unit 37 cuts out the document area 45 from the second result obtained by performing shading correction based on the difference between the read data and the second black reference data and the difference between the first white reference data and the second black reference data. Specifically, the control unit 37 divides the value obtained by subtracting the second black reference data from the read data by the value obtained by subtracting the second black reference data from the first white reference data. The control unit 37 calculates the second result by multiplying the calculated quotient by a coefficient according to the number of color gradations. The coefficient of equation (2) is the same as the coefficient of equation (1). The control unit 37 may generate a read image 43 from the second result of equation (2).
[0044] 3, in the read image 43 generated based on the formula (2), the dirty area 47 in the portion overlapping with the document area 45 is not very noticeable, whereas the dirty area 47 in the portion overlapping with the background area 46 is very noticeable. That is, there is a large difference in luminance between the background area 46 and the dirty area 47. Therefore, when cutting out the document area 45 based on the difference in luminance, the control unit 37 may mistake the dirty area 47 for the edge of the document area 45 and cut out an area different from the document area 45. In this regard, the control unit 37 obtains an image of the document M by cutting out the range of the document area 45 set based on the first result from the read image 43, which is the second result.
[0045] <Operation of the First Embodiment> The operation of this embodiment will be described. The storage unit 38 may store first white reference data for the front side of the document M and first white reference data for the back side of the document M, respectively.
[0046] When the control unit 37 receives an instruction to read the original M, it generates first and second black reference data before the leading edge of the original M reaches the first reading unit 21 and the second reading unit 22. When reading both sides of the original M, the control unit 37 may generate first and second black reference data for the front side of the original M, and first and second black reference data for the back side of the original M, respectively.
[0047] For example, the control unit 37 may perform shading correction of the equations (1) and (2) on the read data each time the reading unit 32 reads one line of the original M. When reading both sides, the control unit 37 may perform shading correction of the equations (1) and (2) on the read data of the front and back sides, respectively. The control unit 37 may output an image of the original area 45 cut out from the read image 43 after correcting the tilt.
[0048] <Advantages of the First Embodiment> The effects of this embodiment will be described. (1-1) The first black reference data is data that may be affected by dirt. By performing shading correction using the first white reference data and the first black reference data, the influence of dirt can be reduced in a background area 46 that is different from the document area 45. Therefore, by setting the document area 45 based on the first result, the accuracy of cutting out the document M can be improved.
[0049] (1-2) The first white reference data and the second black reference data are data that are not affected by dirt. By performing shading correction using the second black reference data and the first white reference data, it is possible to reduce the influence of dirt in the document area 45. Therefore, by cutting out the document area 45 set based on the first result from the second result, it is possible to cut out an image in which the influence of dirt is reduced.
[0050] (1-3) The control unit 37 generates the first black reference data and the second black reference data after receiving an instruction to read the original M. That is, the control unit 37 uses data immediately before reading the original M, and therefore can perform shading correction with high accuracy.
[0051] (1-4) The control unit 37 generates the second black reference data by turning off the light source 31 and reading the reference portion 33. Therefore, the second black reference data that is not affected by dirt can be easily generated.
[0052] [Second embodiment] Next, a second embodiment of the image reading device will be described. In this second embodiment, the color of the reference portion is different from that of the first embodiment. Since the second embodiment is otherwise almost the same as the first embodiment, the same components are given the same reference symbols and will not be described again. The reference portion 33 of this embodiment is white. The background area 46 of this embodiment is white.
[0053] <Image reading method> The control unit 37 generates a setting image 42 based on the following equation (3), and generates a read image 43 based on equation (4). Equations (3) and (4) are equations for shading correction. The control unit 37 executes two patterns of shading correction for each pixel. The control unit 37 may execute the shading correction of equation (3) first and then execute the shading correction of equation (4), or may execute the shading correction of equation (4) first.
[0054]
number
[0055] The read data of the above formulas (3) and (4) is data obtained by the reading unit 32 reading the original M. The first white reference data is data obtained by turning on the light source 31 and reading the reference portion 33 with the reading portion 32. The first white reference data may be affected by dirt.
[0056] The first black reference data is data that is not affected by dirt. The control unit 37 may generate the first black reference data by turning off the light source 31 and causing the reading unit 32 to read the reference portion 33.
[0057] The control unit 37 may generate first white reference data and first black reference data when receiving an instruction to read the original M. The control unit 37 may generate the first white reference data and the first black reference data immediately before reading the original M. The first white reference data and the first black reference data may change due to environmental factors such as temperature and aging of the reading unit 32, etc. Therefore, by generating the first white reference data and the first black reference data and reading the original M in the same environment, it is possible to reduce the influence of the environment.
[0058] The second white reference data is data that is not affected by dirt. The second white reference data is, for example, data that is generated when the image reading device 11 is manufactured, and may be stored in the storage unit 38. The second white reference data is, for example, data obtained by turning on the light source 31 and having the reading unit 32 read the reference unit 33 before the light source 31, the reading unit 32, and the reference unit 33 become dirty.
[0059] The control unit 37 may correct the second white reference data stored in the storage unit 38 before performing shading correction. For example, the control unit 37 obtains a difference between a moving average of the first white reference data generated before reading the original M and a moving average of the second white reference data stored in the storage unit 38. The control unit 37 may perform correction to match the overall height of the second white reference data to the first white reference data based on the calculated difference.
[0060] As shown in formula (3), the control unit 37 sets the document area 45 based on a first result of performing shading correction based on the difference between the read data and the first black reference data and the difference between the first white reference data and the first black reference data. Specifically, the control unit 37 divides the value obtained by subtracting the first black reference data from the read data by the value obtained by subtracting the first black reference data from the first white reference data. The control unit 37 calculates the first result by multiplying the calculated quotient by a coefficient according to the number of color gradations.
[0061] The control unit 37 sets the document area 45 based on a first result of executing shading correction based on the formula (3). The control unit 37 may determine that the pixel is in the document area 45 when the first result is equal to or smaller than a threshold, and may determine that the pixel is in the background area 46 when the first result is greater than the threshold.
[0062] As shown in the formula (4), the control unit 37 cuts out the document area 45 from the second result obtained by performing shading correction based on the difference between the read data and the first black reference data and the difference between the second white reference data and the first black reference data. Specifically, the control unit 37 divides the value obtained by subtracting the first black reference data from the read data by the value obtained by subtracting the first black reference data from the second white reference data. The control unit 37 calculates the second result by multiplying the calculated quotient by a coefficient according to the number of tones of the color. The coefficient of the formula (4) is the same value as that of the formula (3). The control unit 37 may generate the read image 43 from the second result of the formula (4). The control unit 37 obtains an image of the document M by cutting out the range of the document area 45 set based on the first result from the read image 43, which is the second result.
[0063] <Operation of the Second Embodiment> The operation of this embodiment will be described. The storage unit 38 may store second white reference data for the front side of the document M and second white reference data for the back side of the document M, respectively.
[0064] When the control unit 37 receives an instruction to read the original M, it generates first white reference data and first black reference data before the leading edge of the original M reaches the first reading unit 21 and the second reading unit 22. When reading both sides of the original M, the control unit 37 may generate first white reference data and first black reference data for the front side of the original M, and first white reference data and first black reference data for the back side of the original M, respectively.
[0065] The control unit 37 may perform shading correction of the equations (3) and (4) on the read data, for example, every time the reading unit 32 reads one line of the original M. When reading both sides, the control unit 37 may perform shading correction of the equations (3) and (4) on the read data of the front and back sides, respectively. The control unit 37 may output an image of the original area 45 cut out from the read image 43 after correcting the tilt.
[0066] <Effects of the second embodiment> The effects of this embodiment will be described. (2-1) The first white reference data is data that may be affected by dirt. By performing shading correction using the first white reference data and the first black reference data, the influence of dirt can be reduced in the background area 46 that is different from the document area 45. Therefore, by setting the document area 45 based on the first result, the accuracy of cutting out the document M can be improved.
[0067] (2-2) The second white reference data and the first black reference data are data that are not affected by dirt. By performing shading correction using the second white reference data and the first black reference data, it is possible to reduce the influence of dirt in the document area 45. Therefore, by cutting out the document area 45 set based on the first result from the second result, it is possible to cut out an image in which the influence of dirt is reduced.
[0068] (2-3) The control unit 37 generates the first white reference data and the first black reference data after receiving an instruction to read the original M. That is, the control unit 37 uses data immediately before reading the original M, and therefore can perform shading correction with high accuracy.
[0069] (2-4) The second white reference data is data generated during manufacturing. The storage unit 38 stores the second white reference data. Therefore, the control unit 37 can easily perform shading correction by using the second white reference data that is not affected by dirt.
[0070] (2-5) The control unit 37 executes shading correction using the corrected second white reference data. Therefore, even if the manufacturing environment differs from the usage environment, for example, the influence of the environment can be reduced.
[0071] [Third embodiment] Next, a third embodiment of the image reading device will be described. In the third embodiment, the color of the reference portion is different from that of the second embodiment. Since the third embodiment is otherwise almost the same as the second embodiment, the same components are given the same reference symbols and will not be described again. The reference portion 33 of this embodiment is gray. The background area 46 of this embodiment is gray.
[0072] <Image reading method> The control unit 37 generates the setting image 42 based on the formula (3) and generates the read image 43 based on the formula (4), similarly to the second embodiment.
[0073] The read data, the first black reference data, and the second white reference data are the same as those in the second embodiment. That is, the first black reference data is data that is not affected by dirt and is obtained by the reading unit 32 reading the reference portion 33 with the light source 31 turned off. The control unit 37 may correct the second white reference data stored in the memory unit 38 and then perform shading correction.
[0074] The first white reference data is data obtained by multiplying data possibly affected by dirt, which is obtained by the reading unit 32 reading the reference unit 33 with the light source 31 turned on, by the ratio of the color of white to the color of the reference unit 33. The control unit 37 may generate the first white reference data by multiplying the data read by the reading unit 32 by the quotient obtained by dividing the luminance value of white by the luminance value of the color of the reference unit 33. The ratio of the color of white to the color of the reference unit 33 may be stored in, for example, the memory unit 38. When the control unit 37 receives an instruction to read the original M, it may generate the first white reference data and the first black reference data.
[0075] The control unit 37 sets the document area 45 based on a first result of performing shading correction based on equation (3). The control unit 37 may set the document area 45 based on a plurality of thresholds. For example, the first threshold is greater than a second threshold. The control unit 37 may determine that the pixel is in the document area 45 when the first result is greater than or equal to the first threshold or less than or equal to the second threshold. The control unit 37 may determine that the pixel is in the background area 46 when the first result is less than the first threshold and greater than the second threshold.
[0076] As shown in formula (4), the control unit 37 cuts out the document area 45 from the second result of performing shading correction based on the difference between the read data and the first black reference data and the difference between the second white reference data and the first black reference data. That is, the control unit 37 cuts out the range of the document area 45 set based on the first result from the read image 43.
[0077] [Example of change] This embodiment can be modified as follows: This embodiment and the following modifications can be combined with each other to the extent that there is no technical contradiction.
[0078] The image reading device 11 may include a plurality of reference parts 33 of different colors. The image reading device 11 may be able to change the reference part 33 in accordance with the document M to be read. The control unit 37 may select an equation for performing shading correction in accordance with the color of the reference part 33.
[0079] The control unit 37 does not have to generate the setting image 42. The control unit 37 may set the document area 45 from a plurality of first results that are the original data of the setting image 42. When reading both sides of the document M, the control unit 37 may cut out one side based on the document area 45 set for the other side. For example, the control unit 37 may set the document area 45 by performing shading correction of the formula (1) or (3) using the read data obtained by reading the front side. The control unit 37 may not perform shading correction of the formula (1) or (3) for the read data obtained by reading the back side, but may set the range obtained by inverting the document area 45 on the front side as the document area 45 on the back side.
[0080] In the first embodiment, the control unit 37 may correct the first white reference data stored in the storage unit 38, for example, like the second white reference data in the second embodiment, and then execute shading correction.
[0081] In the second and third embodiments, the control unit 37 does not need to correct the second white reference data. The control unit 37 may use the second white reference data stored in the storage unit 38 as is for shading correction.
[0082] The storage unit 38 may be provided in a device separate from the image reading device 11. For example, the control unit 37 may acquire the first white reference data or the second white reference data from a terminal such as a personal computer or a smartphone communicably connected to the image reading device 11. The control unit 37 may acquire the first white reference data or the second white reference data from a server via a network, for example.
[0083] In the first embodiment, the control unit 37 may generate at least one of the first black reference data and the second black reference data. In the second and third embodiments, the control unit 37 may generate at least one of the first white reference data and the first black reference data. The control unit 37 may generate these data when the image reading device 11 is powered on or powered off, for example.
[0084] In the first embodiment, the storage unit 38 may store at least one of the first black reference data and the second black reference data. In the second and third embodiments, the storage unit 38 may store at least one of the first white reference data and the first black reference data.
[0085] In the first embodiment, the control unit 37 may set the document area 45 based on the first result of performing the shading correction of the formula (1), and perform the shading correction of the formula (2) on the read data corresponding to the document area 45 to generate an image of the document area 45. That is, the control unit 37 may perform the shading correction after cutting out the document area 45. Similarly, in the second and third embodiments, the shading correction of the formula (2) may not be performed on the read data corresponding to the background area 46.
[0086] The image reading device 11 may be a device that reads one side of the document M. The image reading device 11 may include one light source 31, one reading unit 32, and one reference unit 33. The image reading device 11 may read the original M such as colored paper, color paper, copy paper, etc.
[0087] The image reading device 11 may be mounted on a recording device such as a printer. The image reading device 11 may output the read data read by the reading unit 32 to an external device such as a personal computer or a smartphone. The execution of the shading correction of the formula (1) or (3) and the setting of the document area 45 based on the first result may be performed by the external device. The execution of the shading correction of the formula (2) or (4) and the cutting out of the document area 45 from the second result may be performed by the external device.
[0088] [Definition] The term "at least one" as used herein means "one or more" of the desired options. As an example, the term "at least one" as used herein means "only one option" or "both of two options" if the number of options is two. As another example, the term "at least one" as used herein means "only one option" or "any combination of two or more options" if the number of options is three or more.
[0089] [Note] The technical ideas and effects obtained from the above-described embodiment and modified examples will be described below.
[0090] (A) An image reading device includes a light source that emits light, a reference unit for shading correction, a reading unit that reads an original document and outputs read data, and a control unit, wherein one of first black reference data and first white reference data is data that may be affected by dirt and is obtained by the reading unit reading the reference unit with the light source turned on, and the control unit sets an original area based on a first result of shading correction performed based on the difference between the read data and the first black reference data and the difference between the first white reference data and the first black reference data.
[0091] According to this configuration, one of the first black reference data and the first white reference data is data that may be affected by dirt. By performing shading correction using the first black reference data and the first white reference data, the influence of dirt can be reduced in a background area different from the document area. Therefore, by setting the document area based on the first result, the document extraction accuracy can be improved.
[0092] (B) In an image reading device, the reference portion is black, the first black reference data is data that may be affected by dirt and is read by the reading portion with the light source turned on, the first white reference data is data that is not affected by dirt, and the second black reference data is data that is not affected by dirt, and the control portion may cut out the document area from a second result of performing shading correction based on a difference between the read data and the second black reference data and a difference between the first white reference data and the second black reference data.
[0093] According to this configuration, the first white reference data and the second black reference data are data that are not affected by dirt. By performing shading correction using the first white reference data and the second black reference data, the influence of dirt can be reduced in the document area. Therefore, by cutting out the document area set based on the first result from the second result, an image in which the influence of dirt is reduced can be cut out.
[0094] (C) In the image reading device, the control unit may generate the first black reference data and the second black reference data when an instruction to read the document is received. According to this configuration, the control unit generates the first black reference data and the second black reference data after receiving an instruction to read the document. In other words, the control unit uses data immediately before reading the document, so that it is possible to perform shading correction with high accuracy.
[0095] (D) In the image reading device, the control unit may generate the second black reference data by turning off the light source and causing the reading unit to read the reference portion. According to this configuration, the control unit generates the second black reference data by reading the reference portion with the light source turned off, so that the second black reference data that is not affected by the stain can be easily generated.
[0096] (E) In an image reading device, the reference portion is white, the first white reference data is data that may be affected by dirt when the reading unit reads the reference portion with the light source turned on, the first black reference data is data that is not affected by dirt when the reading unit reads the reference portion with the light source turned off, and the second white reference data is data that is not affected by dirt, and the control unit may cut out the document area from a second result of performing shading correction based on a difference between the read data and the first black reference data and a difference between the second white reference data and the first black reference data.
[0097] According to this configuration, the second white reference data and the first black reference data are data that are not affected by dirt. By performing shading correction using the second white reference data and the first black reference data, the influence of dirt can be reduced in the document area. Therefore, by cutting out the document area set based on the first result from the second result, an image in which the influence of dirt is reduced can be cut out.
[0098] (F) In the image reading device, when the control unit receives an instruction to read the document, the control unit may generate the first white reference data and the first black reference data. According to this configuration, the control unit generates the first white reference data and the first black reference data after receiving an instruction to read the document. In other words, the control unit uses data immediately before reading the document, and therefore can perform shading correction with high accuracy.
[0099] (G) In an image reading device, the color of the reference portion may be gray, the first white reference data is data obtained by multiplying data possibly affected by dirt, obtained by the reading unit reading the reference portion with the light source turned on, by a ratio of white to the color of the reference portion, the first black reference data is data not affected by dirt, obtained by the reading unit reading the reference portion with the light source turned off, and the second white reference data is data not affected by dirt, and the control unit may cut out the document area from a second result of shading correction based on a difference between the read data and the first black reference data and a difference between the second white reference data and the first black reference data. This configuration can achieve the same effect as the image reading device.
[0100] (H) In the image reading device, the control unit may generate the first white reference data and the first black reference data when an instruction to read the document is received. According to this configuration, it is possible to achieve the same effects as the image reading device described above.
[0101] (I) The image reading device may include a storage unit that stores the second white reference data generated during manufacture of the image reading device. According to this configuration, the second white reference data is data generated at the time of manufacture. The storage unit stores the second white reference data. Therefore, the control unit can easily perform shading correction by using the second white reference data that is not affected by dirt.
[0102] (J) In the image reading device, the control unit may correct the second white reference data stored in the storage unit before executing shading correction. According to this configuration, the control unit executes shading correction using the corrected second white reference data, so that, for example, even if the manufacturing environment differs from the environment during use, the influence of the environment can be reduced.
[0103] (K) An image reading method for an image reading device including a light source that irradiates light, a reference portion for shading correction, and a reading portion that reads an original document and outputs read data, wherein one of first black reference data and first white reference data is data that may be affected by dirt and is obtained by the reading portion reading the reference portion with the light source turned on, and an original area is set based on a first result of shading correction performed based on a difference between the read data and the first black reference data and a difference between the first white reference data and the first black reference data.
[0104] According to this method, it is possible to obtain the same effects as those of the image reading device described above. [Explanation of symbols]
[0105] 11...image reading device, 12...housing, 13...support section, 14...supply port, 15...discharge port, 16...transport path, 18...supply tray, 19...feeding section, 20...transport section, 21...first reading unit, 22...second reading unit, 23...discharge tray, 25...feed roller, 26...separation section, 28...roller pair, 31...light source, 32...reading section, 33...reference section, 35...operation section, 37...control section, 38...memory section, 40...foreign object, 42...setting image, 43...read image, 45...original area, 46...background area, 47...dirty area, D1...transport direction, D2...scanning direction, M...original.
Claims
1. A light source that irradiates light; A reference portion for shading correction; a reading unit that reads an original and outputs read data; A control unit; Equipped with one of the first black reference data and the first white reference data is data obtained by the reading unit reading the reference portion with the light source turned on and possibly influenced by dirt; The control unit is A difference between the read data and the first black reference data; A difference between the first white reference data and the first black reference data; and setting a document area based on a first result of performing shading correction based on the first result.
2. The reference portion is black in color. the first black reference data is data obtained by the reading unit reading the reference portion while the light source is turned on, and the data may be affected by dirt; the first white reference data is data that is not affected by dirt, The second black reference data is data that is not affected by dirt, The control unit is A difference between the read data and the second black reference data; A difference between the first white reference data and the second black reference data; 2. The image reading apparatus according to claim 1, wherein the document area is extracted from a second result obtained by performing shading correction based on the second result.
3. 3. The image reading apparatus according to claim 2, wherein the control unit generates the first black reference data and the second black reference data when an instruction to read the document is received.
4. 3. The image reading device according to claim 2, wherein the control unit generates the second black reference data by turning off the light source and causing the reading unit to read the reference portion.
5. The reference portion is white in color, the first white reference data is data obtained by the reading unit reading the reference portion while the light source is turned on, and the data may be affected by dirt; the first black reference data is data that is not affected by dirt and is obtained by the reading unit reading the reference portion with the light source turned off, The second white reference data is data that is not affected by dirt, The control unit is A difference between the read data and the first black reference data; a difference between the second white reference data and the first black reference data; 2. The image reading apparatus according to claim 1, wherein the document area is extracted from a second result obtained by performing shading correction based on the second result.
6. 6. The image reading apparatus according to claim 5, wherein the control unit generates the first white reference data and the first black reference data when an instruction to read the document is received.
7. The reference portion is gray in color. the first white reference data is data obtained by multiplying data possibly influenced by dirt, which is obtained by the reading unit reading the reference unit with the light source turned on, by a ratio of white to the color of the reference unit; the first black reference data is data that is not affected by dirt and is obtained by the reading unit reading the reference portion with the light source turned off, The second white reference data is data that is not affected by dirt, The control unit is A difference between the read data and the first black reference data; a difference between the second white reference data and the first black reference data; 2. The image reading apparatus according to claim 1, wherein the document area is extracted from a second result obtained by performing shading correction based on the second result.
8. 8. The image reading apparatus according to claim 7, wherein the control unit generates the first white reference data and the first black reference data when an instruction to read the document is received.
9. 9. The image reading device according to claim 5, further comprising a storage unit that stores the second white reference data generated during manufacturing of the image reading device.
10. 10. The image reading device according to claim 9, wherein the control unit corrects the second white reference data stored in the storage unit before executing shading correction.
11. A light source that irradiates light; A reference portion for shading correction; a reading unit that reads an original and outputs read data; An image reading method for an image reading device comprising: one of the first black reference data and the first white reference data is data obtained by the reading unit reading the reference portion with the light source turned on and possibly influenced by dirt; A difference between the read data and the first black reference data; A difference between the first white reference data and the first black reference data; and setting a document area based on a first result of performing shading correction based on the first result.
Citation Information
Patent Citations
Image reading device, malfunction detection program, malfunction detection method
JP2020017856A
