Image reading device, edge detection program, and edge detection method

The scanner system addresses edge detection inaccuracies by using reference data from background areas to correct for color changes, ensuring precise edge detection and conveyance abnormality detection.

JP7571405B2Active Publication Date: 2024-10-23SEIKO EPSON CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2020125063
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-07-22
Publication Date
2024-10-23
Estimated Expiration
2040-07-22

Smart Images

  • Figure 0007571405000001
    Figure 0007571405000001
  • Figure 0007571405000002
    Figure 0007571405000002
  • Figure 0007571405000003
    Figure 0007571405000003
Patent Text Reader

Abstract

To solve a problem in which: when a position of a reading sensor with respect to a document conveyance path is changed, a difference in contrast between a document and a background is changed due to a thickness of the document and an edge cannot be accurately detected.SOLUTION: A control unit of an image reading device reads a background part in a state in which a document is not present between a first unit including the background part and a second unit including a reading part to acquire reference data, acquires image data of a determination area including an image of the background part before a leading end of the document enters between the first unit and the second unit and reaches a reading position and an image of the document within a predetermined range from the leading end of the document toward a lower end, and detects an edge of the document in the determination area on the basis of, the reference data and, of the image data of the determination area, image data of the background part before the leading end of the document reaches the reading position.SELECTED DRAWING: Figure 11
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image reading device that reads an image of a document, an edge detection program executed in the image reading device, and an edge detection method in the image reading device. [Background technology]

[0002] 2. Description of the Related Art Scanners, which are an example of image reading devices, include a scanner that is provided with a reading sensor at a position opposite to a document transport path and is configured to read the surface of a document being transported, as disclosed in Japanese Patent Application Laid-Open No. 2003-233996. Furthermore, in a scanner, the edge of a document is detected by using the contrast difference between the document image and the background image.

[0003] Patent Document 2 describes a problem that the gradation value of the background image does not remain constant in the main scanning direction, and if such a background image is used for edge detection as is, the edges of the document cannot be detected accurately. In consideration of this problem, the image reading device described in Patent Document 2 reads the document image so that an area whose entire width is the background color is generated at the top or bottom of the document image, and creates reference data for edge detection from the image data of the area whose entire width is the background color. Then, the edge of the document is detected by comparing this reference data with the image data. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2015-37982 A [Patent Document 2] JP 2007-088654 A Summary of the Invention [Problem to be solved by the invention]

[0005] Some scanners, such as the one shown in Patent Document 1, are equipped with a reading sensor at a position opposite the document transport path and read the surface of the document being transported, and are configured so that when thick paper is passed through, the reading sensor moves in a direction away from the document transport path to ensure a sufficient gap for the thick paper to pass through. However, when the position of the reading sensor changes in this way relative to the document transport path, the contrast difference between the document and the background changes depending on the thickness of the document, and there is a risk that the edges cannot be detected accurately. [Means for solving the problem]

[0006] In order to solve the above problem, the image reading device of the present invention comprises a document transport path for transporting a document, a first unit having a reading unit that faces the document transport path and reads the surface of the document, a second unit having a background unit arranged opposite the reading unit across the document transport path, and a control unit that processes information read by the reading unit, wherein the control unit acquires reference data, which is image data of the background unit when no document is present between the first unit and the second unit, an image of the background unit before the leading edge of the document enters between the first unit and the second unit and reaches a reading position by the reading unit, and image data of a determination area including an image of the document in a predetermined range from the leading edge of the document toward the bottom end, and detects the edge of the document in the determination area based on the image data of the background unit before the leading edge of the document reaches the reading position, among the image data of the determination area, and the reference data.

[0007] The edge detection program of the present invention is an edge detection program executed by a control unit of an image reading device comprising: a document transport path for transporting a document; a first unit having a reading unit that faces the document transport path and reads the surface of the document; a second unit having a background unit arranged opposite the reading unit across the document transport path; and a control unit that processes information read by the reading unit, and is characterized in that it includes a step of acquiring reference data, which is image data of the background unit when no document is present between the first unit and the second unit; a step of acquiring image data of a determination area including an image of the background unit before the leading edge of the document enters between the first unit and the second unit and reaches a reading position by the reading unit, and an image of the document in a predetermined range from the leading edge of the document toward the bottom end; and a step of detecting the edge of the document in the determination area based on the image data of the background unit before the leading edge of the document reaches the reading position, among the image data of the determination area, and the reference data.

[0008] The edge detection method of the present invention is a method for detecting the edges of a document in an image reading device that includes a document transport path for transporting a document, a first unit having a reading unit that faces the document transport path and reads the surface of the document, and a second unit having a background unit positioned opposite the reading unit across the document transport path, and is characterized in that it includes the steps of: acquiring reference data, which is image data of the background unit when no document is present between the first unit and the second unit; acquiring image data of a determination area that includes an image of the background unit before the leading edge of the document enters between the first unit and the second unit and reaches a reading position by the reading unit, and an image of the document in a predetermined range from the leading edge of the document toward the bottom end; and detecting the edge of the document in the determination area based on the image data of the background unit before the leading edge of the document reaches the reading position, among the image data of the determination area, and the reference data. [Brief description of the drawings]

[0009] [Figure 1]FIG. [Diagram 2] FIG. [Diagram 3] FIG. 2 is a side cross-sectional view showing a document transport path of the scanner. [Figure 4] FIG. 2 is a plan view showing a document transport path of the scanner. [Diagram 5] FIG. 4 is a block diagram showing the control system of the scanner. [Figure 6] FIG. 13 is a diagram showing an example of an image of a determination region. [Figure 7] FIG. 13 is a diagram showing an example of an image of a determination region. [Figure 8] FIG. 4 is a cross-sectional view of an upper sensor unit and a lower sensor unit. [Figure 9] FIG. 4 is a cross-sectional view of an upper sensor unit and a lower sensor unit. [Figure 10] 4 is a flowchart showing the flow of an abnormality determination process. [Figure 11] FIG. 13 is a diagram showing an example of an image of a determination region. [Figure 12] 11 is a flowchart showing the flow of edge detection processing. [Figure 13] FIG. 13 is a diagram showing an example of an image of a determination region. [Figure 14] 11 is a graph showing an example of a gradation change near an edge. [Figure 15] FIG. 13 is a diagram showing an example of an image of a determination region. [Figure 16] FIG. 13 is a diagram showing an example of an image of a determination region. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] The present invention will now be briefly described. The image reading device of the first aspect comprises a document transport path for transporting a document, a first unit having a reading unit that faces the document transport path and reads the surface of the document, a second unit having a background unit positioned opposite the reading unit across the document transport path, and a control unit that processes information read by the reading unit, wherein the control unit acquires reference data, which is image data of the background unit when no document is present between the first unit and the second unit, an image of the background unit before the leading edge of the document enters between the first unit and the second unit and reaches a reading position by the reading unit, and image data of a determination area including an image of the document in a predetermined range from the leading edge of the document toward the bottom edge, and detects the edge of the document in the determination area based on the image data of the background unit before the leading edge of the document reaches the reading position and the reference data, among the image data of the determination area.

[0011] According to this aspect, the edge of the document in the judgment area is detected based on the image data of the background portion before the leading edge of the document reaches the reading position, and the reference data, i.e., the image data of the background portion when the document is not present between the first unit and the second unit. Therefore, even if the distance between the first unit and the second unit changes, the accompanying change in background color can be corrected, and the edge of the document can be properly detected.

[0012] The second aspect is characterized in that, in the first aspect, the control unit acquires a first representative value based on data from the reference data at a first position in the width direction, which is a direction intersecting the document transport direction, acquires a second representative value corresponding to the first position in the width direction from image data of the background portion of the image data of the judgment area before the leading edge of the document reaches the reading position, acquires correction data by adding the difference between the first representative value and the second representative value to the image data of the judgment area, and detects the edge of the document in the judgment area based on the correction data.

[0013] According to the present aspect, the change in background color associated with a change in the spacing between the first unit and the second unit is grasped at the same position in the width direction, i.e., the first position, before and after the change, so it is less affected by unevenness in the background color in the width direction and can more appropriately grasp the change in background color associated with the change in spacing.

[0014] A third aspect is characterized in that, in the second aspect, a document detection means for detecting the passage of the leading edge of a document is provided upstream of the reading unit on the document transport path, and the first position includes a position in the width direction where the document detection means detects the leading edge of the document.

[0015] The second representative value is a value for calculating the difference with the first representative value, and since the first representative value is a reading value when the background portion is read, the second representative value needs to be a reading value of an area outside the original document, i.e., the background portion. According to this aspect, a document detection unit is provided upstream of the reading unit in the document transport path to detect the passage of the leading edge of the document, and the first position includes a position in the width direction where the document detection unit detects the leading edge of the document, so that the first position is a position where it is easy to accurately grasp the position of the document in the document transport direction. Since the second representative value is obtained at such a position, the second representative value can be reliably a reading value of an area outside the document, i.e., the background area.

[0016] A fourth aspect is the third aspect, characterized in that the document detection means is provided at a central position of the document in the width direction. When the document is skewed, there is a risk that the second representative value will include a read value of the document rather than a read value of the background portion. However, according to this aspect, the document detection means is provided at the center position of the document in the width direction, so that the second representative value is less susceptible to the influence of the document being skewed, and therefore it is possible to obtain an appropriate second representative value.

[0017] A fifth aspect is characterized in that, in any of the second to fourth aspects, when the difference between the first representative value and the second representative value exceeds a first judgment value, transport of the document is stopped. If the difference between the first representative value and the second representative value exceeds a first judgment value, there is a possibility that some kind of transport abnormality has occurred, and in such a case, by stopping the transport of the document, damage to the document can be suppressed.

[0018] A sixth aspect is characterized in that, in any of the second to fifth aspects, a transport roller is provided upstream of the first unit and the second unit in the document transport path for transporting the document downstream, at least two of the transport rollers are provided in the width direction, and the first position is located between the two transport rollers in the width direction.

[0019] The document transport path is provided with a transport roller upstream of the first unit and the second unit for transporting the document downstream, at least two of the transport rollers are provided in the width direction, and the first position is located between the two transport rollers in the width direction, so that the second representative value can be obtained at a position where the document transport accuracy is high, thereby making it possible to obtain an appropriate second representative value.

[0020] The seventh aspect is characterized in that, in any of the second to sixth aspects, the control unit determines whether the correction data exceeds a first threshold value from the widthwise end portion toward the center of the judgment area, and if the correction data exceeds the first threshold value, determines further toward the center of the judgment area whether the correction data exceeds a second threshold value at which the edge detection sensitivity is lower than when the first threshold value is applied, and if the correction data exceeds the second threshold value, the position at which the correction data exceeds the second threshold value is determined to be the edge position of the document in the width direction, and if the correction data does not exceed the second threshold value, the position at which the correction data exceeds the first threshold value is determined to be the edge position of the document in the width direction.

[0021] When the ground color of the document is close to the background color, that is, when the difference between the data of the ground color part of the document and the data of the background part in the image data of the judgment area is small, the edge of the document may not be detected. For example, when the background color is gray, that is, the intermediate value of the grayscale or close to it, and the ground color of the document is also gray, that is, the intermediate value of the grayscale or close to it, the edge of the document may not be detected. However, a shadow may be cast on the edge part of the document in the read image, and if this shadow is detected, the edge of the document can be detected.

[0022] In this embodiment, two thresholds, a first threshold and a second threshold, are used, and the shadow of the edge portion is detected using the first threshold which provides a relatively high edge detection sensitivity. Next, the edge portion is detected using the second threshold which provides a relatively low edge detection sensitivity. If the difference between the image data of the background color portion of the document and the image data of the background portion is large, the edge of the document can be detected using the second threshold. If the difference between the image data of the background color portion of the document and the image data of the background portion of the document is small, the position of the shadow occurring at the edge portion of the document can be detected using the first threshold, and that position can be regarded as the edge position of the document. As a result, even if the ground color of the document is close to the background color, that is, even if the difference between the image data of the ground color portion of the document and the image data of the background portion of the document in the determination area is small, the edges of the document can be detected appropriately.

[0023] An eighth aspect is characterized in that, in any of the first to seventh aspects, the reading unit provided in the first unit is a first reading unit, and the second unit is provided with a second reading unit that reads the surface of the document at a position downstream of the document transport path from the reading position by the first reading unit, and the control unit acquires the reference data and image data of the judgment area by the first reading unit.

[0024] According to this aspect, the second unit includes a second reading unit that reads the surface of the document at a position downstream of the reading position of the first reading unit on the document transport path, and the control unit obtains the reference data and image data of the determination area by the first reading unit, so that the determination area can be obtained at an earlier timing. As a result, when performing a process of determining whether a transport abnormality has occurred in the determination area, the transport of the document can be stopped at an earlier timing, and damage to the document can be suppressed.

[0025] The ninth aspect is characterized in that in any one of the first to eighth aspects, the image obtained by reading the background portion is gray. According to this aspect, in a configuration in which the image obtained by reading the background portion is gray, the effect of any one of the first to eighth aspects described above can be obtained. Note that gray is a color that is at or near the intermediate value 127 when expressed in a 256-level grayscale, specifically a color in the range of gradation values ​​117 to 137.

[0026] A tenth aspect of the present invention is characterized in that in any one of the first to ninth aspects, the control unit determines the presence or absence of a transport abnormality based on an edge of the document detected in the determination area. According to this aspect, the presence or absence of a transport abnormality is determined based on the edge of the document detected in the determination area, so that a transport abnormality can be appropriately detected based on the edge of the document that is appropriately detected.

[0027] An edge detection program of an eleventh aspect is an edge detection program executed by a control unit of an image reading device comprising: a document transport path for transporting a document; a first unit having a reading unit facing the document transport path and reading the surface of the document; a second unit having a background unit arranged opposite the reading unit across the document transport path; and a control unit for processing information read by the reading unit, and is characterized in that the edge detection program includes the steps of: acquiring reference data, which is image data of the background unit when no document is present between the first unit and the second unit; acquiring image data of a determination area including an image of the background unit before the leading edge of the document enters between the first unit and the second unit and reaches a reading position by the reading unit, and an image of the document in a predetermined range from the leading edge of the document toward the bottom end; and detecting the edge of the document in the determination area based on the image data of the background unit before the leading edge of the document reaches the reading position, among the image data of the determination area, and the reference data. According to this aspect, the same effects as those of the first aspect described above can be obtained.

[0028] An edge detection method according to a twelfth aspect is a method for detecting the edges of a document in an image reading device comprising: a document transport path for transporting a document; a first unit having a reading unit facing the document transport path to read the surface of the document; and a second unit having a background unit positioned opposite the reading unit across the document transport path, and is characterized in that the method includes the steps of: acquiring reference data, which is image data of the background unit when no document is present between the first unit and the second unit; acquiring image data of a determination area including an image of the background unit before the leading edge of the document enters between the first unit and the second unit and reaches a reading position by the reading unit, and an image of the document in a predetermined range from the leading edge of the document toward the bottom end; and detecting the edge of the document in the determination area based on the image data of the background unit before the leading edge of the document reaches the reading position, among the image data of the determination area, and the reference data. According to this aspect, the same effects as those of the first aspect described above can be obtained.

[0029] The present invention will be specifically described below. In the following, as an example of an image reading device, a scanner 1 capable of reading at least one of the front and back sides of a document is taken as an example. The scanner 1 is a so-called document scanner that reads a document while moving the document in a transport direction relative to a reading unit described later.

[0030] In the coordinate system shown in each figure, the X-axis direction is the device width direction and the document width direction. In the following, when the term "width direction" is used, it means the X-axis direction, that is, the document width direction. In the following, the X-axis direction may also be referred to as the "main scanning direction." The V-axis direction is parallel to the document transport path 8 described below, and the +V direction is the document transport direction. The Z-axis direction is perpendicular to the X-axis and V-axis directions, and perpendicular to the surface of the document being read. In the following description, the direction in which the document is transported (+V direction) may be referred to as "downstream," and the opposite direction (-V direction) may be referred to as "upstream."

[0031] 1 to 3, a scanner 1 includes a device body 2 and a support base 5 that supports the device body 2 rotatably. The device main body 2 is configured to include a lower unit 3 and an upper unit 4. The upper unit 4 is arranged to be openable and closable by rotating around a rotation axis (not shown) relative to the lower unit 3, and the document transport path described below can be exposed by opening the upper unit 4 toward the front of the device. The lower unit 3 constituting the device main body 2 is rotatably provided on an arm portion 5a constituting a support base 5 via a rotation shaft 5b, and is configured so that its posture can be changed by rotation.

[0032] The upper unit 4 is equipped with a front cover 19, and the lower unit 3 is equipped with a top cover 10. The front cover 19 is provided rotatably with respect to the upper unit 4, and can be rotated to take a closed state as shown in Fig. 1 or an open state as shown in Fig. 2. When the front cover 19 is opened, it functions as a document receiving tray that receives documents that have been read and discharged, as shown in Figs. 2 and 3.

[0033] The upper unit 4 is provided with an operation panel 7 on the top surface thereof, which is used for performing various read settings and read execution operations and which provides a user interface (UI) for displaying the read setting contents, as shown in Fig. 2. In this embodiment, the operation panel 7 is a so-called touch panel that can perform both display and input, and serves both as an operation section for performing various operations and a display section for displaying various information. The operation panel 7 is exposed by opening the front cover 19.

[0034] A top cover 10 provided on the lower unit 3 is rotatably provided with respect to the lower unit 3, and can be rotated to assume a closed state as shown in Fig. 1 and an open state as shown in Fig. 2 and Fig. 3. When the top cover 10 is opened, it functions as a document support tray that supports documents to be fed as shown in Fig. 2 and Fig. 3. An inlet 6 leading to the inside of the device body 2 is provided at the top of the device body 2 , and a document placed on the top cover 10 is fed from the inlet 6 towards the inside of the device body 2 .

[0035] 2, reference numerals 12A and 12B denote edge guides that guide the edges of the document in the X-axis direction, i.e., the width direction. The edge guides 12A and 12B are provided so that they can approach each other or move away from each other by operating one of them with a rack and pinion mechanism (not shown).

[0036] Next, the document transport path 8 will be described mainly with reference to Fig. 3. The document transport path 8 shown in Fig. 3 is a linear path formed between the lower unit 3 and the upper unit 4.

[0037] The above-mentioned top cover 10 is provided at the most upstream of the document transport path 8, and a path forming member 11 is provided downstream of the top cover 10. In addition, a feed roller 14 that sends the placed document downstream, and a separation roller 15 that nips and separates the document between the feed roller 14 and the document are provided downstream of the top cover 10. The feed roller 14 contacts the bottom surface of the document placed on the top cover 10. Therefore, when multiple documents are placed on the top cover 10, the documents are fed downstream in order starting from the bottom document. The bottom surface of the document placed on the top cover 10 is the first surface facing the top cover 10, and the opposite surface is the second surface. The feed roller 14 contacts the first surface of the document, and the separation roller 15 contacts the second surface of the document.

[0038] In this embodiment, the feed rollers 14 are arranged symmetrically with respect to the center position CL in the width direction as shown in Fig. 4. In Fig. 4, the feed roller 14 in the +X direction with respect to the center position CL is indicated by reference symbol 14A, and the feed roller in the -X direction with respect to the center position CL is indicated by reference symbol 14B. Similarly, the separation roller 15 is composed of a separation roller 15A in the +X direction with respect to the center position CL and a separation roller 15B in the -X direction. That is, in this embodiment, the center position CL in the document width direction is the document feed reference position. Therefore, in this embodiment, the center position CL does not change regardless of the size of the document.

[0039] Returning to FIG. 3, the feed roller 14 receives a rotational torque from a feed roller motor 45 (see FIG. 5) via a one-way clutch 49, and rotates in the counterclockwise direction in FIG. A rotational torque for rotating the separation roller 15 in the counterclockwise direction in FIG. 3 is transmitted to the separation roller 15 from a separation roller motor 51 (see FIG. 5) via a torque limiter 50.

[0040] 3 is a flap, which prevents the document set on top cover 10 from contacting separation roller 15 before feeding begins. Flap 57 is rotatable about rotation shaft 57a, and before feeding begins, its lower end engages with set guide 58, preventing it from rotating in the clockwise direction in FIG. 3. When feeding begins, set guide 58 rotates counterclockwise in FIG. 3 about rotation shaft 58a, which enables flap 57 to rotate, and the leading edge of the document stack placed on top cover 10 comes into contact with separation roller 15.

[0041] A transport roller pair 16 is provided downstream of the feed roller 14. The transport roller pair 16 includes a transport roller 16a that is driven to rotate by a transport roller motor 46 (see FIG. 5), and a driven roller 16b that is driven to rotate. The document nipped by the feed roller 14 and the separation roller 15 and fed downstream is then nipped by a pair of transport rollers 16 and transported to a position facing the upper sensor unit 20A and the lower sensor unit 20B located downstream of the pair of transport rollers 16.

[0042] The upper unit 4 has an upper sensor unit 20A located above the document transport path 8, and the lower unit 3 has a lower sensor unit 20B located below the document transport path 8. The lower sensor unit 20B is an example of a first unit, and the upper sensor unit 20A is an example of a second unit. However, the upper sensor unit 20A can also be an example of the first unit, and the lower sensor unit 20B can be an example of the second unit.

[0043] The upper sensor unit 20A has a sensor module 21A, and the lower sensor unit 20B has a sensor module 21B. In this embodiment, the sensor modules 21A and 21B are contact image sensor modules (CISM), and are an example of a reading unit that reads the surface of a document. The second side, which is the upper side of the document, is read by sensor module 21A positioned above document transport path 8, and the first side, which is the lower side of the document, is read by sensor module 21B positioned below document transport path 8. The document reading surface by upper sensor unit 20A and the document reading surface by lower sensor unit 20B form a plane parallel to document transport path 8.

[0044] The upper sensor unit 20A includes a background portion 22A at a position facing the sensor module 21B included in the lower sensor unit 20B, and the lower sensor unit 20B includes a background portion 22B at a position facing the sensor module 21A included in the upper sensor unit 20A. The background portions 22A and 22B are areas that are read by the opposing sensor modules solely for the purpose of shading correction.

[0045] Background portion 22A has reference plate 23A, and background portion 22B has reference plate 23B. Reference plates 23A and 23B are white, for example. However, since reference plates 23A and 23B are located slightly away from document transport path 8, the color of the image obtained by reading reference plates 23A and 23B is gray. When gray is expressed in a grayscale of 256 gradations, it is the intermediate value 127 or a gradation value therearound, specifically, a color in the range of gradation values ​​117 to 137.

[0046] 8 and 9, the upper sensor unit 20A includes the above-mentioned reference plate 23A and sensor module 21A inside a housing 27A, and the sensor module 21A includes a light guide 24A, a lens 25A, and a line sensor 26A. Similarly, the lower sensor unit 20B includes the above-mentioned reference plate 23B and sensor module 21B inside a housing 27B, and the sensor module 21B includes a light guide 24B, a lens 25B, and a line sensor 26B.

[0047] The configuration of the upper sensor unit 20A will be described in detail below. The reference plate 23A, the light guide 24A, the lens 25A, and the line sensor 26A are each shaped to extend in the main scanning direction. The light guide 24A is a light guiding member for irradiating light toward the document transport path 8, and guides light emitted in the main scanning direction from an LED module (not shown), which is an example of a light source, so that it illuminates the document transport path 8. Light emitted from upper sensor unit 20A toward document transport path 8 is reflected and reaches line sensor 26A via lens 25A, and is photometrically measured by line sensor 26A.

[0048] The line sensor 26A is configured by arranging photodiodes, which are an example of photoelectric conversion elements, along the main scanning direction, and one photoelectric conversion element corresponds to one pixel, and the photoelectric conversion element outputs read data obtained by measuring the light. In this embodiment, the line sensor 26A is a CMOS (Complementary Metal-Oxide Semiconductor) image sensor. The configuration of the upper sensor unit 20A is the same as that of the lower sensor unit 20B, so a description thereof will be omitted below.

[0049] In this embodiment, the upper sensor unit 20A is provided so as to be movable toward and away from the document transport path 8, and is pressed toward the document transport path 8 by a pressing member (not shown), such as a compression coil spring. As a result, the upper sensor unit 20A is displaced according to the thickness of the document that enters between the upper sensor unit 20A and the lower sensor unit 20B, as shown by comparing FIG. 8 and FIG. 9. The document P2 shown in FIG. 9 is thicker than the document P1 shown in FIG. The distance d2 between the upper sensor unit 20A and the lower sensor unit 20B when the document P2 is transported is larger than the distance d1 between the upper sensor unit 20A and the lower sensor unit 20B when the document P1 is transported. The lower sensor unit 20B is fixedly provided, unlike the upper sensor unit 20A.

[0050] In housing 27A, a guide slope 28A is formed upstream of the surface facing document transport path 8, and similarly, in housing 27B, a guide slope 28B is formed upstream of the surface facing document transport path 8. This allows a document heading from transport roller pair 16 to between upper sensor unit 20A and lower sensor unit 20B to enter between upper sensor unit 20A and lower sensor unit 20B without getting caught on either sensor unit.

[0051] Returning to FIG. 3, after the image on at least one of the first and second sides of the document has been read, the document is nipped by a pair of discharge rollers 17 and discharged from a discharge opening 18. The pair of discharge rollers 17 includes a discharge roller 17a that is driven to rotate by a transport roller motor 46 (see FIG. 5), and a driven roller 17b that is driven to rotate by the discharge roller 17a.

[0052] Next, a control system in the scanner 1 will be described with reference to Fig. 5. In Fig. 5, a control unit 40 performs various controls of the scanner 1, including feeding, conveying, and discharging control of the document and reading control. A signal is input from the operation panel 7 to the control unit 40. The control unit 40 controls the motors 45 for the feed roller, the motor 46 for the transport roller, and the motor 51 for the separation roller. In this embodiment, each of the rollers is a DC motor.

[0053] The control unit 40 receives read data from the upper sensor unit 20A and the lower sensor unit 20B, and also transmits signals to the reading unit 20 from the control unit 40 to control the upper sensor unit 20A and the lower sensor unit 20B. The control unit 40 also receives signals from a multifeed detection unit 30, a first document detection unit 31, a second document detection unit 32, and other detection means, which will be described later. The control unit 40 also receives detection values ​​from an encoder (not shown) that detects the amount of rotation of the motor 45 for the feed roller and an encoder (not shown) that detects the amount of rotation of the motor 46 for the transport roller, thereby enabling the control unit 40 to grasp the amount of document feed by each roller.

[0054] The control unit 40 includes a CPU 41, a flash ROM 42, and a RAM 43. The CPU 41 performs various arithmetic processing in accordance with a program 44 stored in the flash ROM 42, and controls the operation of the entire scanner 1. The flash ROM 42 is a readable and writable non-volatile memory, and stores data necessary for edge detection and determination of conveyance abnormalities, which will be described later. Various setting information input by the user via the operation panel 7 is also stored in the flash ROM 42.

[0055] The program 44 stored in the flash ROM 42 does not necessarily mean one program, but is composed of multiple programs, including programs for detecting edges and determining transport abnormalities, which will be described later, and various control programs required for transporting and reading the document, etc. The RAM 43 is a volatile memory, and is used as a working area for the CPU 41, etc.

[0056] The scanner 1 is also configured to be connectable to an external computer 55, and information is input to the control unit 40 from the external computer 55. The external computer 55 is equipped with a display unit (not shown). A user interface (UI) is realized on this display unit by a control program stored in a storage means (not shown) equipped in the external computer 55.

[0057] Next, each detection means will be described. The placement detector 33 is a detector provided on the path forming member 11 (see FIG. 3). The control unit 40 can detect the presence or absence of a document on the top cover 10 by a signal transmitted from the placement detector 33. The first document detection unit 31 is a detection unit provided downstream of the feed roller 14 (see FIG. 3). The first document detection unit 31 is configured as an optical sensor, for example, and includes a light-emitting unit 31a and a light-receiving unit 31b that are arranged opposite each other across the document transport path 8 as shown in FIG. 3, and the light-receiving unit 31b transmits an electrical signal indicating the intensity of detection light to the control unit 40. When the transported document blocks the detection light emitted from the light-emitting unit 31a, the electrical signal indicating the intensity of the detection light changes, and this enables the control unit 40 to detect the passage of the leading or trailing end of the document.

[0058] A multi-feed detection unit 30 that detects multi-feeding of documents is disposed downstream of the first document detection unit 31. The multi-feed detection unit 30 includes an ultrasonic transmitter 30a that is disposed opposite to each other across the document transport path 8 as shown in Fig. 3, and an ultrasonic receiver 30b that receives ultrasonic waves, and the ultrasonic receiver 30b transmits an output value according to the intensity of the detected ultrasonic waves to the control unit 40. When a multi-feeding of documents occurs, the electrical signal indicating the intensity of the ultrasonic waves changes, and this enables the control unit 40 to detect the multi-feeding of documents.

[0059] A second original detection unit 32 is provided downstream of the double feed detection unit 30 and further downstream of the transport roller pair 16. The second original detection unit 32 is configured as a contact sensor having a lever, and when the lever rotates as the leading or trailing end of the original passes, the electrical signal sent from the second original detection unit 32 to the control unit 40 changes, thereby enabling the control unit 40 to detect the passage of the leading or trailing end of the original. In this embodiment, the second document detection section 32 detects the document at the center position CL in the width direction as shown in FIG. The control unit 40 can grasp the position of the document in the document transport path 8 based on a detection signal from the second document detection unit 32 and a detection signal from an encoder (not shown) that detects the amount of rotation of the transport roller motor 46.

[0060] Next, a determination process for determining whether or not an original is being transported abnormally and an edge detection process required for the determination process will be described. The image indicated by the reference symbol 70 in Fig. 6 is an image of a judgment area for judging an abnormality in the transport of the document. The control unit 40 reads the background portion 22A before the downstream edge of the transported document reaches a reading position T3 (described later) and the leading edge including the downstream edge of the transported document, and obtains image data of the judgment area 70 shown in Fig. 6. Note that the control unit 40 reads an area wider than the document width in the document width direction, so that the judgment area 70 includes an image of the background portion 22A on both sides of the document in the width direction. The control unit 40 performs edge detection processing on the determination area 70 and performs processing to determine whether or not there is a transport abnormality based on the detected document edges. Reference numerals 71, 72, 73, and 74 denote the upper side, lower side, right side, and left side of the determination area 70, respectively, and image data of the determination area 70 is acquired from the upper side 71 toward the lower side 72. Reference symbol P denotes an original document, reference symbol Pf1 denotes the downstream edge, i.e., the leading edge, of the original document P, reference symbol Pe1 denotes the right edge of the original document P, and reference symbol Pe2 denotes the left edge of the original document P. The left direction in the drawing corresponds to the +X direction, and the right direction in the drawing corresponds to the -X direction.

[0061] The control unit 40 starts acquiring image data constituting the determination area 70 by the lower sensor unit 20B at a predetermined timing after the second document detection unit 32 detects the leading edge Pf1 of the document P. In Fig. 8, positions T1, T2, T3, and T4 indicate positions in the document transport direction, and position T1 is the position where the second document detection unit 32 detects the leading edge Pf1 of the document P. As an example, the control unit 40 starts acquiring image data at a timing when it can be determined that the leading edge Pf1 of the document P has reached position T2 downstream of position T1.

[0062] Position T3 is a reading position by the lower sensor unit 20B, and position T4 is a reading position by the upper sensor unit 20A. Since position T3 is located upstream of position T4, a determination area 70 for determining a transport abnormality is obtained from data read by the lower sensor unit 20B in this embodiment in order to determine a transport abnormality at an earlier timing. If a transport abnormality can be determined at an earlier timing, the transport of the document can be stopped at an earlier timing, and thus damage to the document can be suppressed. The determination area 70 includes an image of the background portion 22A before the leading edge Pf1 of the document P enters between the upper sensor unit 20A and the lower sensor unit 20B and reaches position T3, and an image of the document within a predetermined range from the leading edge Pf1 to the lower end of the document P. The determination area 70 also includes images of the background portion 22A located on both sides of the document P in the width direction.

[0063] Position T2 is the downstream end position of guide slope 28A and guide slope 28B, and after leading edge Pf1 of document P reaches position T2, the distance between upper sensor unit 20A and lower sensor unit 20B becomes roughly stable at a distance according to the thickness of document P. When the position of guide slope 28A and the position of guide slope 28B in the document transport direction are misaligned, position T2 is the downstream end position of the guide slope that is located downstream out of guide slope 28A and guide slope 28B. However, the determination area 70 may be obtained by starting acquisition of image data when the second document detection unit 32 detects the leading edge Pf1 of the document P, and then discarding the image data up until the leading edge Pf1 of the document P reaches position T2.

[0064] 6, the control unit 40 acquires image data constituting the determination area 70 from the upper side 71 toward the lower side 72. The control unit 40 acquires image data so that, for example, the leading edge Pf1 of the document P is theoretically located closer to the upper side 71 than the midpoint between the upper side 71 and the lower side 72 at least in the document transport direction, and configures the determination area 70.

[0065] When acquiring the determination area 70, the control unit 40 turns on the LED module (not shown) of the lower sensor unit 20B. As a result, the color of the background portion 22A when it is read, that is, the background color, becomes the intermediate value, that is, gray, if the grayscale has 256 gradations.

[0066] When the determination area 70 is obtained in this manner, the control unit 40 detects the edge of the document P in the determination area 70. As a result of the edge detection of the document P, the control unit 40 judges whether there is a transport abnormality, and if the document P is skewed as shown in FIG. 7 as an example, or if the document P is not square but has a deformed shape (not shown), the control unit 40 stops the transport of the document P as a transport abnormality and issues an alert to the effect that a transport abnormality has occurred. Therefore, in order to properly detect a transport abnormality of the document P, proper edge detection is required. In FIG. 7, the symbol Ps indicates a document when there is no skew, and corresponds to the document P shown in FIG. 6.

[0067] The flow of determining whether a transport abnormality has occurred will be described with reference to Fig. 10. The control unit 40 has a program for executing the process shown in Fig. 10. In Fig. 10, when a scan job is started, the control unit 40 determines whether it is time to calibrate (step S101). The calibration timing can be set, for example, before the start of a scan job or at a predetermined time interval.

[0068] If it is the calibration timing (Yes in step S101), the control unit 40 acquires the reference data BGo(x) (step S102). The value x indicates the position of the pixel in the main scanning direction. The reference data BGo(x) is acquired by turning on the LED module (not shown) of the lower sensor unit 20B. The reference data BGo(x) is obtained by reading the background portion 22A in a state where no original P is present between the upper sensor unit 20A and the lower sensor unit 20B. The reference data BGo(x) is acquired exclusively for shading correction, but is also used for edge detection of the original P in this embodiment, which will be described in detail later.

[0069] Next, the control unit 40 starts the document feeding operation (step S103), and when the second document detection unit 32 detects the document P (Yes in step S104), it starts acquiring image data after a predetermined timing, and acquires image data GAZO1(x,y) (step S105). The image data GAZO1(x,y) is image data that constitutes the determination area 70. The value y indicates the position of the pixel in the document transport direction. Next, the control unit 40 performs edge detection processing to detect the edges of the document P in the determination area 70 (step S106), and then performs processing to determine whether or not there is a transport abnormality based on the edges of the document P detected by the edge detection processing (step S107). As a result, if it is determined that there is a transport abnormality (Yes in step S108), the transport of the document P is stopped (step S109) and an alert is issued to the effect that an abnormality has occurred (step S110). If it is not determined that there is a transport abnormality (No in step S108), the subsequent transport and reading of the document P is performed.

[0070] Although the determination of abnormal transport of the document P is performed in the above manner, there are some problems in detecting the edges of the document P in the determination area 70 in step S106. The problems and the means for solving them will be described below.

[0071] [Correction of color unevenness in background area] First, color unevenness occurs in the image of the background area in the determination area 70 due to aberration of the light guide 24B and the lens 25B in the main scanning direction, differences in distance from the LED module (not shown), uneven sensitivity of the line sensor 26B, and the like. In particular, in this embodiment, the color of the image obtained by reading the reference plate 23A is gray, so color unevenness is likely to occur. In FIG. 6, the color of the background area, that is, gray, is expressed by hatching, and the color unevenness of the background area is simply expressed using the density of the hatching. For example, the gradation of area B1 is higher than that of area B2, and area B2 is higher than that of area B3. In reality, the color unevenness of the background area is a gradation with no clear density boundary along the main scanning direction. The color unevenness of the background area occurs in the main scanning direction, and hardly occurs in the document conveying direction.

[0072] Such color unevenness in the background region will have an adverse effect when edge detection is performed using the color difference between the background region and the document region. However, by using the reference data BGo(x) acquired for shading correction, the edges of the document P can be properly detected. Specifically, the difference D(x,y) between the image data GAZO1(x,y) and the reference data BGo(x) is determined. The absolute value of the difference D(x,y) is equal to or greater than a predetermined tolerance if it is within the region of the document, and is less than the predetermined tolerance if it is a background region. In this way, the region where the absolute value of the difference D(x,y) is less than the predetermined tolerance can be determined to be a background region. By subtracting the reference data BGo(x) from the image data GAZO1(x,y) that can be determined to be a background region in this way and adding a predetermined value F, a suitable background region with less color unevenness in the main scanning direction can be obtained. Note that, if the image data GAZO1(x,y) and the reference data BGo(x) are values ​​of 256 grayscale levels, the predetermined value F can be, for example, a median value of 127.

[0073] [Compensation for overall brightness changes in background areas] Next, when the upper sensor unit 20A is displaced as shown in the comparison of Figures 8 and 9, the data of the background region in the image data GAZO1(x,y) also changes, and the above-mentioned difference D(x,y) between the image data GAZO1(x,y) and the reference data BGo(x) cannot be determined correctly, and as a result, there is a risk that edge detection cannot be performed appropriately. Therefore, it is more preferable to correct the image data GAZO1(x,y) to obtain corrected data GAZO2(x,y), and to set the difference between the corrected data GAZO2(x,y) and the reference data BGo(x) as the above-mentioned difference D(x,y). Below, a method of obtaining the corrected data GAZO2(x,y) will be described.

[0074] The upper diagram in Fig. 11 shows the determination area 70A when the document P1 in Fig. 8 is conveyed, and the lower diagram in Fig. 11 shows the determination area 70B when the document P2 in Fig. 9 is conveyed. When the document P2 in Fig. 9 is conveyed, the upper sensor unit 20A is farther away from the lower sensor unit 20B than when the document P1 in Fig. 8 is conveyed, so the color of the background area in the determination area 70B differs from the color of the background area in the determination area 70A, as shown in Fig. 11. Specifically, the color of the background area in the determination area 70B has a lower gradation value than the color of the background area in the determination area 70A.

[0075] Color correction of the background region will be described in detail below with reference to Fig. 12. Fig. 12 shows detailed content of the edge detection process (step S106) shown in Fig. 10. The control unit 40 has a program for executing the process shown in Fig. 12, i.e., an edge detection program. First, the control unit 40 acquires the first representative value BGP from the reference data BGo(x) (step S201).

[0076] The first representative value BGP is a value based on the data at the first position of the reference data BGo(x). In this embodiment, the first position is a range having a certain width on the left and right in the width direction centered on the center position CL in the width direction as shown in FIG. 11. For example, if the acquisition width of the reference data BGo(x) is 640 pixels, the first position can be a range of 20 pixels on the left and right centered on the center position CL, that is, a width of 40 pixels. The first representative value BGP can be the average value of the reference data BGo(x) in the range of this first position. However, the first representative value BGP may be the value of the reference data BGo(x) at the center position CL itself. In this embodiment, the center position CL is the position where the second document detection section 32 detects the leading edge Pf1 of the document P as shown in FIG.

[0077] Next, the control unit 40 acquires the second representative value BGQ (step S202). The second representative value BGQ is a value corresponding to the first position in the image data GAZO1(x,y) at a position y1 at a distance K from the upper side 71 toward the lower side 72, that is, in the image data GAZO1(x,y), as shown in FIG. Specifically, if the width of the judgment area 70 is 640 pixels, the second representative value BGQ can be the average value of the image data GAZO1(x,y1) in a range of 20 pixels to the left and right of the central position CL, that is, a range of 40 pixels wide. Position y1, the distance K from top side 71 to bottom side 72, is set to a position sufficiently far away from leading edge Pf1 of document P toward top side 71. In other words, it is set so that the read data of document P is not included in image data GAZO1(x, y1).

[0078] If the distance between the upper sensor unit 20A and the lower sensor unit 20B when acquiring image data GAZO1(x,y), which is the image data of the judgment area 70, is the same as the distance between the upper sensor unit 20A and the lower sensor unit 20B when acquiring the reference data BGo(x), then the first representative value BGP and the second representative value BGQ will theoretically be the same value.

[0079] Next, the control unit 40 obtains corrected data GAZO2(x,y), which is data obtained by correcting the image data GAZO1(x,y), by the following formula. [GAZO2(x,y)=GAZO1(x,y)-BGo(x)-BGQ+BGP+C]

[0080] Here, the value C is a constant, and if the value C is zero, the correction data GAZO2(x,y) will fluctuate between positive and negative values ​​with zero as the center. In other words, since the background area becomes black in the correction data GAZO2(x,y), it is preferable to set the value C=BGP to return to the original gray value. Alternatively, if each data is expressed in 256 grayscale levels, the value C may be set to, for example, 127. Then, the control unit 40 detects the document edge in the determination area 70 based on the corrected data GAZO2(x, y) (step S204).

[0081] As described above, the control unit 40 acquires the reference data BGo(x), which is image data of the background portion 22A when no document P is present between the upper sensor unit 20A and the lower sensor unit 20B. The control unit 40 also acquires image data GAZO1(x,y) of the determination area 70, which includes an image of the background portion 22A before the leading edge of the document enters between the upper sensor unit 20A and the lower sensor unit 20B and reaches the reading position T3 by the lower sensor unit 20B, and an image data GAZO1(x,y) of the determination area 70, which includes an image of the document P in a predetermined range from the leading edge of the document toward the bottom edge. Then, the control unit 40 detects the edge of the document P in the determination area 70 based on the image data of the background portion 22A before the leading edge of the document reaches the reading position T3, and the reference data BGo(x), among the image data GAZO1(x,y) of the determination area 70.

[0082] The edge detection program and the edge detection method also include a step of acquiring reference data BGo(x) which is image data of the background portion 22A in a state where no document P exists between the upper sensor unit 20A and the lower sensor unit 20B (step S102 in FIG. 10). The edge detection program and the edge detection method also include a step of acquiring image data GAZO1(x,y) of the determination area 70 including an image of the background portion 22A before the leading edge of the document enters between the upper sensor unit 20A and the lower sensor unit 20B and reaches the reading position T3 by the lower sensor unit 20B, and an image of the document P in a predetermined range from the leading edge of the document toward the lower end (step S105 in FIG. 10). The edge detection program and the edge detection method also include a step of detecting an edge of the document P in the determination area 70 based on the image data of the background portion 22A before the leading edge of the document reaches the reading position T3 and the reference data BGo(x) out of the image data GAZO1(x,y) of the determination area 70 (steps S201 to S204 in FIG. 12). As a result, even if the distance between the upper sensor unit 20A and the lower sensor unit 20B changes, the accompanying change in background color can be corrected, and the edges of the document P can be detected appropriately.

[0083] The control unit 40 also obtains a first representative value BGP based on the data at the first position in the width direction from the reference data BGo(x), obtains a second representative value BGQ corresponding to the first position in the width direction from the image data of the background portion 22A before the leading edge Pf1 of the document P reaches the reading position from the image data of the determination area 70, and obtains correction data GAZO2(x,y) by adding the difference between the first representative value BGP and the second representative value BGQ to the image data GAZO1(x,y) of the determination area 70. In other words, the image data GAZO1(x,y) is raised by the amount of the decrease in the gradation value. Then, the edge of the document P is detected based on this correction data GAZO2(x,y). In other words, the change in background color accompanying a change in the distance between the upper sensor unit 20A and the lower sensor unit 20B is grasped at the same position in the width direction, i.e., the first position, before and after the change, so it is less affected by color unevenness in the background area in the width direction and can more appropriately grasp the change in background color accompanying the change in distance. In the above example, the amount of decrease in the gradation value of the background image due to the displacement of the upper sensor unit 20A is added to the image data GAZO1(x,y), but the amount of decrease in the gradation value may be subtracted from a threshold value for edge detection. For example, the amount of decrease in the gradation value of the background image due to the displacement of the upper sensor unit 20A may be subtracted from a first threshold value and a second threshold value that will be described later with reference to FIG.

[0084] Further, a second original detection unit 32 which is an original detection means for detecting the passage of the leading edge of an original is provided upstream of the upper sensor unit 20A and the lower sensor unit 20B in the original transport direction, and the first position includes a position in the width direction where the second original detection unit 32 detects an original. The second representative value BGQ is a value for determining the difference with the first representative value BGP, and since the first representative value BGP is a read value when the background portion 22A is read, it is necessary that the second representative value BGQ be a read value of an area definitely outside the original P, that is, the background portion 22A. As described above, the first position includes the position in the width direction where the second document detection unit 32 detects the document, so the first position is a position where it is easy to accurately grasp the position of the leading edge Pf1 of the document P in the document transport direction. Since the second representative value BGQ is obtained at such a position, it is possible to reliably make the second representative value BGQ a reading value of an area outside the document P, that is, the background area.

[0085] Also, if the document P is skewed, there is a risk that the second representative value BGQ will include the read value of the document P, not the read value of the background portion 22A. However, the second document detection unit 32 is provided at the center position CL, which is the center position of the document P in the width direction, as shown in FIG. 4. This makes the second representative value BGQ less susceptible to the influence of the skew of the document P. For example, if the document P is skewed as shown in FIG. 7, the leading edge of the document P advances downstream in the area to the right of the center position CL compared to the area to the left. If the second representative value BGQ is obtained in such an area, it is highly likely that the read value of the document P will be included in the second representative value BGQ. If the direction of skew is opposite to that of the example in FIG. 7, the leading edge of the document P advances downstream in the area to the left of the center position CL compared to the area to the right. If the second representative value BGQ is obtained in such an area, it is highly likely that the read value of the document P will be included in the second representative value BGQ. However, by providing the second document detection section 32, which detects the leading edge of the document P, at the central position CL in the width direction, the second representative value BGQ is less affected by the skew of the document P, thereby making it possible to obtain an appropriate second representative value BGQ.

[0086] Incidentally, it may be possible to determine whether or not the difference between the first representative value BGP and the second representative value BGQ exceeds a first judgment value, and if so, to stop the transport of the original P. That is, if the difference between the first representative value BGP and the second representative value BGQ exceeds the first judgment value, some kind of transport abnormality may have occurred, and therefore, by stopping the transport of the original P in such a case, damage to the original P can be suppressed. Furthermore, when the difference between the first representative value BGP and the second representative value BGQ exceeds the first judgment value, instead of stopping the transport of the document P, the judgment of the transport abnormality may be skipped.

[0087] 4, two transport rollers 16a are provided in the width direction, and the first position is located between the two transport rollers 16a in the width direction. This makes it possible to obtain the second representative value BGQ at a position where the transport accuracy of the document P is high, and therefore it is possible to obtain an appropriate second representative value BGQ.

[0088] [If the background color of the document is close to the background color] Next, problems and solutions regarding edge detection based on the corrected data GAZO2(x, y) will be described with reference to FIGS. If the ground color of the document P is close to the background color, that is, if there is a small difference between the data of the ground color portion of the document P and the data of the background portion in the image data of the determination area 70, it may not be possible to detect the edge of the document P. However, a shadow may be cast on the edge portion of the document P in the read image, and the edge of the document P can be detected based on this shadow. 13, a shadow Sh is formed along the right edge Pe1 and the left edge Pe2 of the document P. In this embodiment, when acquiring the determination region 70, the light guide 24B irradiates light from downstream to upstream in the document transport direction as shown in FIG. 8, so that a shadow is unlikely to be formed on the leading edge Pf1 of the document P.

[0089] The upper graph in Fig. 14 shows the change in gradation value near the left edge Pe2 when the ground color of the document P is clearly different from the background color, for example, when the ground color of the document P is white. In the graph shown in Fig. 14, the vertical axis represents the gradation value, and the horizontal axis represents the width direction position. Toward the right of the graph, the gradation value fluctuates near the intermediate value in the background region, drops in the shadow Sh region, and reaches near the maximum value in the document region. 14 shows the change in gradation value near the left edge Pe2 when the ground color of the document P is close to the background color, for example, when the ground color of the document is gray. In this case, the gradation value moves to the right of the graph, staying near the intermediate value in the background area, dropping in the shadow Sh area, and in the document area, staying near the intermediate value just like the background area.

[0090] In either case, since the gradation value decreases in the shadow Sh region, two thresholds are used: the first thresholds thL, thH and the second thresholds thLL, thHH which provide lower edge detection sensitivity than the first thresholds thL, thH. Specifically, when the corrected data GAZO2(x, y) exceeds the range of the first thresholds thL, thH from the ends of the width direction of the determination region 70 toward the center, it is determined whether the corrected data GAZO2(x, y) exceeds the range of the second thresholds thLL, thHH further toward the center of the determination region 70. As a result, if the corrected data GAZO2(x,y) exceeds the range of the second thresholds thLL, thHH as shown in the upper diagram of Fig. 14, the position where the corrected data GAZO2(x,y) exceeds the range of the second thresholds thLL, thHH is determined to be the position of the left edge Pe2. In contrast, if the corrected data GAZO2(x,y) does not exceed the second thresholds thLL, thHH, as shown in the lower diagram of Fig. 14, the position where the corrected data GAZO2(x,y) exceeds the range of the first thresholds thL, thH is determined to be the position of the left edge Pe2. The right edge Pe1 can be detected in a similar manner.

[0091] In this way, even if the ground color of the document P is close to the background color, that is, even if the difference between the data of the ground color portion of the document P and the data of the background portion in the image data of the determination area 70 is small, the edges of the document P can be detected appropriately. In the above embodiment, two thresholds, a first threshold and a second threshold, were applied to detect the widthwise edge of the original P, but if a shadow occurs on the leading edge of the original P, the leading edge of the original P may be detected in a similar manner.

[0092] [Influence of foreign matter such as paper dust] Next, suppression of erroneous edge detection due to foreign matter such as paper powder will be described with reference to Fig. 15 and Fig. 16. In Fig. 15, reference numerals 75 and 76 indicate vertical stripes caused by foreign matter such as paper powder in the determination area 70. For convenience, hatching indicating color unevenness in the background area shown in Fig. 6 etc. is omitted in Fig. 15 and Fig. 16. When such vertical streaks 75, 76 are present in the judgment area 70, if the edges are searched for from the widthwise end toward the center as in the search lines SC1, SC2, the positions of the vertical streaks 75, 76 may be erroneously detected as edge positions.

[0093] Therefore, as shown in Fig. 16, the document edge is searched for in the document transport direction, rather than searching for the edge in the width direction. Specifically, the edge is searched for from the center position CL toward the width direction end, from the upper side 71 to the lower side 72, as in search lines SC1 and SC2. At this time, the search line may coincide with the position of a vertical streak caused by a foreign object, resulting in an abnormal value, but if the width of the abnormal value is narrower than a predetermined width, it is skipped as a foreign object. In this way, the leading edge Pf1 of the document P is searched for from the center position CL toward the width direction end.

[0094] Like the search line indicated by the symbol SC3, if the search line deviates from the leading edge Pf1 of the document P, the leading edge Pf1 cannot be found even if the predetermined length is exceeded when searching for the edge from the upper side 71 toward the lower side 72. In such a case, the position of the search line is set as the tentative position of the left edge Pe2. Next, with the position of the left edge Pe2 as the starting point in the width direction, edges are searched for toward the center in the width direction along search lines indicated by symbols SC4 and SC5. This makes it possible to eliminate the influence of the vertical streaks 75 and 76 in the example of FIG. By setting the search lines for detecting edges in the above manner, it is possible to prevent vertical streaks caused by foreign matter such as paper dust from adversely affecting edge detection.

[0095] [Embossing effect] When the document P has embossed characters formed on the reading surface, such as a cash card, the distance between the upper sensor unit 20A and the lower sensor unit 20B may vary during transport of the document P, which may result in improper edge detection. Therefore, it is possible to grasp the thickness of the document P, and if the thickness of the document P exceeds a predetermined thickness, it is determined that the document P contains embossed characters, and in such a case, the determination of the transport abnormality may be skipped. The thickness of the document P can be determined based on the width of the shadow Sh that appears on the edge, as described with reference to Figures 13 and 14. Also, if the width direction size of the document P is smaller than a predetermined size, it may be determined that the document P contains embossed characters, and in such a case, the determination of the transport abnormality may be skipped. The width direction size of the document P can be determined based on the image in the determination area 70.

[0096] [Effects of manuscript slippage] If slippage of the document P occurs on the transport roller pair 16, the downstream edge Pf1 in the determination area 70 in the document transport direction will be positioned closer to the lower side 72, which may cause an erroneous determination that a transport abnormality has occurred. Therefore, for example, if the downstream edge Pf1 is searched for from the upper side 71 toward the lower side 72 at the center position CL and the downstream edge Pf1 cannot be found even after searching a predetermined length, the determination of the transport abnormality may be skipped.

[0097] The present invention is not limited to the embodiments described above, and various modifications are possible within the scope of the invention described in the claims, and it goes without saying that these modifications are also included in the scope of the present invention. [Explanation of symbols]

[0098] 1...scanner, 2...device body, 3...lower unit, 4...upper unit, 5...support stand, 6...feed port, 7...operation panel, 8...document transport path, 10...top cover, 11...path forming member, 12A, 12B...edge guide, 14A, 14B...feed roller, 15A, 15B...separation roller, 16...transport roller pair, 16a...transport roller, 16b...driven roller, 17...ejection roller pair, 17a...ejection roller, 17b...driven roller, 18...ejection port, 19...front cover, 20A...upper sensor unit, 20B...lower sensor unit, 21A, 21B...sensor module, 22A, 22B...background portion, 23A, 23B...reference plate, 24A, 24B...light guide, 25A, 25B...lens, 26A, 26B...line sensor, 27A, 27B...housing, 28A, 28B... guide slope, 30... double feed detection section, 30a... ultrasonic transmission section, 30b... ultrasonic reception section, 31... first document detection section, 31a... light emission section, 31b... light reception section, 32... second document detection section, 33... placement detection section, 40... control section, 41... CPU, 42... flash ROM, 43... memory, 44... program, 45... motor for feed roller, 46... motor for transport roller, 49... One-way clutch, 50...torque limiter, 51...separation roller motor, 55...external computer, 57...flap, 57a...rotation shaft, 58...set guide, 58a...rotation shaft, 70...judgment area, 71...upper edge, 72...lower edge, 73...right edge, 74...left edge, 75, 76...vertical streaks, P...original, Pf1...leading edge, Pe1...right edge, Pe2...left edge, CL...center position, Sh...shadow

Claims

1. a document transport path for transporting a document; a first unit including a reading unit that faces the document transport path and reads a surface of the document; a second unit including a background portion disposed opposite the reading portion across the document transport path; To, A control unit that processes the information read by the reading unit, The control unit is configured to: Reference data which is image data of the background portion; The leading edge of the document is inserted between the first unit and the second unit and is then read by the reading unit. The image of the background portion before the image reaches the reading position by the scanner and the image of the background portion within a predetermined range from the leading edge to the bottom edge of the document. and acquiring image data of a determination area including an image of a document in the vicinity of the determination area; The control unit is configured to: obtaining a first representative value based on the data at the first position; The background image data before the leading edge of the document reaches the reading position. a second representative value corresponding to the first position in the width direction is obtained from the image data of the first portion; The difference between the first representative value and the second representative value is added to the image data of the determination area to obtain a corrected data. and detecting an edge of the document in the determination area based on the correction data. When the difference between the first representative value and the second representative value exceeds a first judgment value, the transport of the document is stopped. Stop, 1. An image reading apparatus comprising:

2. 2. The image reading apparatus according to claim 1, wherein the reading unit is disposed in the document transport path. a document detection means for detecting the passage of the leading edge of a document upstream; The first position includes a position in the width direction where the document detection unit detects the leading edge of the document. nothing, 1. An image reading apparatus comprising:

3. 3. The image reading apparatus according to claim 2, wherein the document detection means detects the original in the width direction. It is located in the center of the manuscript.

1. An image reading apparatus comprising:

4. 4. The image reading apparatus according to claim 1, wherein the document conveying path is a A conveying path for conveying a document downstream of the first unit and the second unit. Equipped with rollers, At least two of the transport rollers are provided in the width direction, the first position is located between two of the transport rollers in the width direction; 1. An image reading apparatus comprising:

5. 5. The image reading device according to claim 1, wherein the control unit: Whether the correction data exceeds a first threshold value from the end portion toward the center in the width direction of the determination area Determine whether or not When the correction data exceeds the first threshold, the correction data is further moved toward the center of the determination area. The correction data is applied to a second threshold value at which edge detection sensitivity is lower than that when the first threshold value is applied. Determine whether it exceeds When the correction data exceeds the second threshold, the position is the edge position of the document in the width direction, If the correction data does not exceed the second threshold, the correction data is The position where the edge of the document is exceeded is determined as the edge position of the document in the width direction.

1. An image reading apparatus comprising:

6. 6. The image reading device according to claim 1, wherein the first unit The reading unit included in the second unit is a first reading unit. a second reading unit for reading the surface of the document at a downstream position on the document transport path from a reading position of the reading unit; A reading unit is provided, The control unit reads the reference data and the image data of the determination area by the first reading unit. Get the data, 1. An image reading apparatus comprising:

7. 7. The image reading apparatus according to claim 1, wherein the background portion is read by the image reading device. The image captured is gray.

1. An image reading apparatus comprising:

8. 8. The image reading device according to claim 1, wherein the control unit: determining whether or not there is a transport abnormality based on the edge of the document detected in the determination area; 1. An image reading apparatus comprising:

9. a document transport path for transporting a document; a first unit including a reading unit that is arranged to correspond to the document transport path and reads a surface of the document; a second unit including a background portion disposed opposite the reading portion across the document transport path; To, a control unit for processing information read by the reading unit, An edge detection program executed by the control unit, When no document is present between the first unit and the second unit, acquiring reference data which is image data; The leading edge of the document is inserted between the first unit and the second unit and is then read by the reading unit. The image of the background portion before the image reaches the reading position by the scanner and the image of the background portion within a predetermined range from the leading edge to the bottom edge of the document. acquiring image data of a determination area including an image of a document surrounding the determination area; The reference data at a first position in a width direction that is a direction intersecting with a document conveying direction A first representative value based on the data is obtained, and the leading edge of the document is determined based on the image data of the determination area. The first position in the width direction is determined from the image data of the background portion before the image data reaches the reading position. and a second representative value corresponding to the position is obtained, and the first representative value and the A difference between the first representative value and the second representative value is added to obtain correction data, and the determination area is determined based on the correction data. detecting an edge of the document in the document; When the difference between the first representative value and the second representative value exceeds a first judgment value, the transport of the document is stopped. and 2. An edge detection program comprising:

10. a document transport path for transporting a document; a first unit including a reading unit that faces the document transport path and reads a surface of the document; a second unit including a background portion disposed opposite the reading portion across the document transport path; A method for detecting edges of a document in an image reading device comprising: When no document is present between the first unit and the second unit, acquiring reference data which is image data; The leading edge of the document is inserted between the first unit and the second unit and is then read by the reading unit. The image of the background portion before the image reaches the reading position by the scanner and the image of the background portion within a predetermined range from the leading edge to the bottom edge of the document. acquiring image data of a determination area including an image of a document surrounding the determination area; The reference data at a first position in a width direction that is a direction intersecting with a document conveying direction A first representative value based on the data is obtained, and the leading edge of the document is determined based on the image data of the determination area. The first position in the width direction is determined from the image data of the background portion before the image data reaches the reading position. and a second representative value corresponding to the position is obtained, and the first representative value and the A difference between the first representative value and the second representative value is added to obtain correction data, and the determination area is determined based on the correction data. detecting an edge of the document in the document; When the difference between the first representative value and the second representative value exceeds a first judgment value, the transport of the document is stopped. and 11. An edge detection method comprising:

11. A document transport path for transporting a document; a first unit including a reading unit that faces the document transport path and reads a surface of the document; a second unit including a background portion disposed opposite the reading portion across the document transport path; To, A control unit that processes the information read by the reading unit, The control unit is configured to: Reference data which is image data of the background portion; The leading edge of the document is inserted between the first unit and the second unit and is then read by the reading unit. The image of the background portion before the image reaches the reading position by the scanner and the image of the background portion within a predetermined range from the leading edge to the bottom edge of the document. and acquiring image data of a determination area including an image of a document in the vicinity of the determination area; A width direction of the reference data that is a direction intersecting with the document conveying direction, a first representative value based on data at a first position in a range including a center position of the The background image data before the leading edge of the document reaches the reading position. a second representative value corresponding to the first position in the width direction is obtained from the image data of the first portion; The second representative value is a value obtained by dividing the image data of the determination area by the distance from the upper side to the lower side of the document. This is the value at the position where no read data is entered. The difference between the first representative value and the second representative value is added to the image data of the determination area to obtain a corrected data. and detecting an edge of the document in the determination area based on the correction data.

1. An image reading apparatus comprising:

Citation Information

Patent Citations

  • Image reading apparatus

    JP2007088654A

  • Image reading system, original size detection apparatus, original size detection method, and image reading method

    JP2013078059A

  • Manuscript transport device, jam determination method and computer program

    JP2015037982A

  • Image reading apparatus, program, and read image correction method

    JP2016086217A

  • Reading device and image generation method

    JP2018198386A