Reading device

The reading device optimizes preliminary scanning by adaptively detecting document edges in multiple directions, reducing scanning time when document size is unspecified, thus enhancing efficiency.

JP7594733B2Active Publication Date: 2024-12-05BROTHER KOGYO KK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2020217754
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2024-12-05
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

Conventional reading devices require significant time for preliminary scanning when the reading size of a document is not specified, as they lack efficient methods to determine the reading area without prior designation.

Method used

A reading device with a control unit that selectively performs preliminary scan processes to detect document edges in multiple directions, allowing for quick identification of the reading area regardless of specified document size, using a reading sensor to move and scan in optimized paths based on edge detection results.

Benefits of technology

The solution significantly reduces the time required for preliminary scanning by adaptively adjusting scan processes, ensuring efficient document reading regardless of the document's size or orientation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007594733000001
    Figure 0007594733000001
  • Figure 0007594733000002
    Figure 0007594733000002
  • Figure 0007594733000003
    Figure 0007594733000003
Patent Text Reader

Abstract

To shorten the time required for preliminary scanning even if a reading size of a document is not particularly designated.SOLUTION: A reading device executes moving operation of an image sensor 8 from an initial position HP to a first start position S1 (S25), first preliminary scanning processing of causing the image sensor 8 to detect an edge of a document P (S35) while moving the image sensor from the first start position S1 to a first end position S2, second preliminary scanning processing of, when a result of detection is a predetermined result, causing the image sensor 8 to perform edge detection while moving the image sensor frontward to detect a rear end position of the document P (S145), third preliminary scanning processing of, when the result of detection is a result other than the predetermined result, causing the image sensor 8 to perform edge detection while moving the image sensor backward to detect the rear end position of the document P (S160), and after the detection of the rear end position of the document P in the second and third preliminary scanning processing, performing operation to scan an image of the document P while moving the image sensor 8 frontward (S155) or (S175).SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a reading device that reads a document placed on a document table. [Background technology]

[0002] Conventionally, as described in, for example, Patent Document 1, there is known a technique for changing the reading position of a reading mechanism for determining a reading target area in which to read an original from a home position to a position according to a specified sheet size. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2015-220659 A Summary of the Invention [Problem to be solved by the invention]

[0004] In the conventional technology described in Patent Document 1, when the reading size of the document is specified, the reading position is changed to a position corresponding to the specification, thereby shortening the time required for the pre-scan to determine the reading target area. However, no particular consideration was given to shortening the time required for the pre-scan when the reading size of the document is not specified.

[0005] An object of the present invention is to provide a reading device that can shorten the time required for pre-scanning even if the reading size of the document is not particularly specified. [Means for solving the problem]

[0006] In order to achieve the above object, the present invention provides a reading device including a reading sensor that reads an original, a document table on which the original is placed, and a control unit, the document table being capable of placing a first original and a second original having a size in a sub-scanning direction larger than that of the first original, the control unit including a movement process that moves the reading sensor, which is not performing a reading operation, from an initial position to a first position that is predetermined as a standby position for starting to detect an end of the first original, a first pre-scanning process that performs a reading operation to detect the end of the original while moving the reading sensor a predetermined distance from the first position in the sub-scanning direction, and a detection result indicating that the end of the original in the first direction and the end of the original in a second direction perpendicular to the first direction have been detected in the reading result of the first pre-scanning process, or If neither the end of the document in the first direction nor the end of the document in the second direction is detected, a second pre-scan process is executed in which the reading sensor is moved to the initial position and a reading operation is performed to detect the end of the document; if the end of the document in the second direction is not detected in the reading result of the first pre-scan process but the end of the document in the first direction is detected, a third pre-scan process is executed in which the reading sensor is moved in a direction away from the initial position and a reading operation is performed to detect the end of the document in the second direction; and if the end of the document is detected in the second pre-scan process or the third pre-scan process, a first main scan process is executed in which the reading sensor is moved to the initial position and a reading operation is performed to obtain the contents of the document.

[0007] In the present invention, a first document and a second document larger in size in the sub-scanning direction can be placed on the document platen. With the documents placed on the document platen, the control unit executes a movement process and a first pre-scanning process. In the movement process, the reading sensor moves from an initial position to a first position without performing a reading operation. The first position is a position that is determined in advance as a standby position for starting to detect the edge of the first document. In the first pre-scanning process, the reading sensor performs a reading operation for detecting the edge of the document while moving a predetermined distance from the first position in the sub-scanning direction.

[0008] Depending on the detection result of the first prescan process, the second prescan process or the third prescan process is selectively executed. When the end of the document in the first direction and the end of the document in the second direction are detected, respectively, or when neither the end of the document in the first direction nor the end of the document in the second direction are detected, the second prescan process is executed. In the second prescan process, the reading sensor performs a reading operation while moving to the initial position, and detects the end of the document. When the end of the document in the second direction is not detected and the end of the document in the first direction is detected, the third prescan process is executed. In the third prescan process, the reading sensor performs a reading operation while moving in a direction away from the initial position, and detects the end of the document in the second direction.

[0009] When the edge of the document is detected in the second or third preliminary scan process and the region to be read is determined, the first main scan process is performed. In the first main scan process, the reading sensor moves to the initial position and performs a reading operation to obtain the contents of the document.

[0010] According to the present invention, even if the reading size of the document is not particularly specified, the second prescan process or the third prescan process, whichever is most appropriate depending on the result of the first prescan process, is selectively performed to detect the document edge. This makes it possible to shorten the time required for the entire prescan, regardless of whether the first document or the second document is placed on the placement table. Effect of the Invention

[0011] According to the present invention, even if the reading size of the document is not particularly specified, the time required for pre-scanning can be shortened. [Brief description of the drawings]

[0012] [Figure 1] 1A and 1B are a side sectional view and a plan view showing the internal structure of a scanner according to an embodiment of the present invention with a rotating cover open. [Diagram 2] FIG. 2 is a block diagram showing a control system of the scanner. [Diagram 3] 1A and 1B are diagrams illustrating the layout relationship of documents of different paper sizes placed on a glass plate. [Figure 4] 13A and 13B are diagrams illustrating a linear movement of the image sensor from an initial position to a first start position and an edge detection movement in a first pre-scan process. [Diagram 5] 13A and 13B are diagrams respectively illustrating the forward direct movement of the image sensor from the first start position to the rear end position of the specified paper size, and the image scanning movement with respect to the reading target area of ​​the specified paper size. [Figure 6] 13A and 13B are diagrams respectively illustrating the straight rearward movement of the image sensor from the first start position to the rear end position of the specified paper size, and the image scanning movement with respect to the reading target area of ​​the specified paper size. [Figure 7] 11A and 11B are diagrams respectively illustrating edge detection movement in a second prescan process of the image sensor and image scanning movement with respect to a reading target area of ​​a document. [Figure 8] 13A and 13B are diagrams respectively illustrating edge detection movement in a third prescan process of the image sensor and image scanning movement with respect to a reading target area of ​​a document. [Figure 9] 11A and 11B are diagrams illustrating a process of inversely arranging line scan data. [Figure 10] 10 is a flowchart illustrating an example of a control procedure for a document setting process. [Figure 11] 10 is a flowchart illustrating an example of a control procedure for a scan process. [Figure 12] 10 is a flowchart illustrating an example of a control procedure for a scan process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] <Overall configuration of the scanner> The overall configuration of a scanner 1 according to an embodiment of the present invention is shown in FIG. 1. FIG. 1(a) shows a side cross-sectional view showing the internal structure of the scanner, and FIG. 1(b) shows a plan view of the scanner as seen from an arrow Ib in FIG. 1(a) with a rotating cover, which will be described later, open. In FIG. 1, the scanner 1 includes a device main body 2, which includes a hinge 3, a rotating cover 4, an open / close detection switch 5, a white tape 6, a glass plate 7, an image sensor 8, and a guide rail 9. The side where the hinge 3 is located is the front side of the scanner 1, and the opposite side is the rear side of the scanner 1. The side where the glass plate 7 is located is the upper side of the scanner 1, and the opposite side is the lower side of the scanner 1. The scanner 1 is an example of a reading device.

[0014] The device body 2 is a structure formed in a hollow box shape, and a rectangular glass plate 7 is provided so as to be stretched horizontally across the upper plane of the device body. The glass plate 7 is an example of a document table. An image sensor 8 that can move in the front-rear direction along a guide rail 9 is provided just below the glass plate 7. The image sensor 8 is a line image reading sensor that extends across the entire glass plate 7 in the left-right direction in the figure, and moves across the entire glass plate 7 in the front-rear direction in the figure by being driven by a motor and a feed screw (not shown). This allows the image sensor 8 to optically read (hereinafter referred to as scanning) a written image on the entire lower surface of the document P placed on the upper surface of the glass plate 7.

[0015] A rotating cover 4 is provided via a hinge 3 arranged on the front side of the upper flat surface of the device body 2, and the entire rotating cover 4 rotates around the hinge 3, enabling opening and closing of the scanner 1. With the rotating cover 4 open, the user places an original P on the glass plate 7, and with the rotating cover 4 closed, causes the image sensor 8 to scan the underside of the original P. The rotating cover 4 is an example of a cover for the document table.

[0016] An open / close detection switch 5 for detecting the open / closed state of the rotating cover 4 is provided on the upper flat surface of the device body 2. A white tape 6 extending in the left-right direction in the figure is attached to the inner surface of the upper wall of the device body 2, slightly forward of the glass plate 7, and the image sensor 8 can be moved forward to a position below this white tape 6.

[0017] <Control system> The operation of each part of the scanner 1, including the rotation and stopping of the motor described above, is controlled by an application specific integrated circuit (ASIC) 20, which is an integrated circuit for a specific application. A block diagram showing a control system of the scanner 1 including the ASIC 20 is shown in FIG. 2. As shown in FIG. 2, the ASIC 20 includes a CPU 100. The ASIC 20 is connected to a ROM 110, a RAM 120, a touch panel 130 that displays a desired image and is operable by a user, a rotation drive circuit 150, a network control unit 170, and an image sensor 8. The CPU 100 is an example of a control unit.

[0018] ROM 110 stores various control programs necessary for the operation of scanner 1, including control programs for executing the respective flowcharts shown in Figures 10 to 12 described later. CPU 100 controls each section according to the programs read from ROM 110, and executes the respective flowcharts shown in Figures 10 to 12 described later. In addition, an image data storage area 120a is set in a part of the storage area of ​​RAM 120, for storing image data resulting from image scanning of document P by image sensor 8.

[0019] The CPU 100 also controls the rotation of the motor by outputting a drive control signal to a rotation drive circuit 150 that controls the rotation of the motor via the ASIC 20. Furthermore, the CPU 100 controls a network control unit 170 via the ASIC 20 to transmit and receive various information including image data (to be described later) to and from an external terminal 300 via wireless or wired network communication.

[0020] The image sensor 8 is a reflection type sensor having a configuration in which a number of sensor elements, each having a light-emitting portion 8a that emits light to irradiate one point with the emitted light La and a light-receiving portion 8b that can receive the reflected light Lb of the emitted light La from the light-emitting portion 8a, are arranged in a line across the left and right direction in FIG. 1. Note that differences in the individual light receiving intensities may occur between these many sensor elements due to aging deterioration or the like. Therefore, before each scanning operation, it is necessary to make the image sensor 8 perform a scanning operation below the white tape 6 where the light reflection is uniform, thereby performing shading correction between the light receiving intensity data detected by each sensor element. Note that this image sensor 8 is an example of a reading sensor.

[0021] <About standard paper sizes and layout> In the scanner 1 of this embodiment, documents P of standard paper sizes A5, A4, A3, and Letter are mainly used as scanning targets, and when they are placed on the glass plate 7, they are set in an arrangement as shown in Fig. 3 corresponding to Fig. 1(b) above. Specifically, in the example of this embodiment, the rectangular glass plate 7 itself is formed slightly larger than the A3 document P in both its longitudinal and transverse dimensions, and is placed in a posture in which its longitudinal direction is parallel to the front-to-rear direction of the scanner 1. When the user manually places the document P on the glass plate 7, one of the corners of the document P is aligned with the placement reference point T, which is the corner point on the front right side of the glass plate 7, and the document P is placed in a so-called front-justified and right-justified arrangement in which each side of the document P is parallel or perpendicular to the front-to-rear and left-to-right directions. Note that, for originals P with a paper size of A3, they can only be placed in a landscape orientation with their longitudinal direction parallel to the front-to-back direction, but for originals P with other paper sizes, the user may choose between the landscape orientation and a portrait orientation with their longitudinal direction parallel to the left-to-right direction.

[0022] The standard size of A4 (297mm x 210mm) is the size obtained by dividing the standard size of A3 (420mm x 297mm) in half in the longitudinal direction, and the standard size of A5 (210mm x 148.5mm) is the size obtained by dividing the standard size of A4 in half in the longitudinal direction. The standard size of Letter (279.4mm x 215.9mm) is a size that is slightly shorter in the longitudinal direction and slightly longer in the width direction than the standard size of A4. When the original P of each of these standard sizes is placed on the glass plate 7 according to the above-mentioned placement conditions, the position and posture are arranged as shown in FIG. 3, and the reading target area by each image sensor 8 is uniquely determined. In this example, the reading target area is one of seven reading target areas corresponding to the A5 horizontal arrangement, the A5 vertical arrangement, the A4 horizontal arrangement, the A4 vertical arrangement, the Letter horizontal arrangement, the Letter vertical arrangement, and the A3 horizontal arrangement.

[0023] In particular, the rear end position in the A5 landscape orientation coincides with the rear end position in the A4 portrait orientation, and the rear end position in the Letter portrait orientation is located a small distance (5.9 mm) behind the A5 landscape orientation. In the A3 landscape orientation, a small gap is provided between the rear end and the left end of the glass plate 7. Note that the document P corresponding to the respective read target areas of the A5 landscape, A4 portrait, and Letter portrait in this example is an example of the first document, and the document P corresponding to the respective read target areas of the A4 landscape, Letter landscape, and A3 landscape in this example is an example of the second document.

[0024] <Image sensor details> In addition, in FIG. 3, the image sensor 8 is omitted from illustration to avoid complication of the illustration, but the image sensor 8 is a line image reading sensor in which a number of sensor elements are arranged in a line in the extension direction of the glass plate 7 from left to right as described above. By moving from one side to the other side in the front-rear direction under the glass plate 7, the notated image on the entire lower surface of the document P can be optically scanned. At this time, the direction of one line that can be scanned collectively by the image sensor 8, that is, the above-mentioned extension direction, and particularly the up and down in the illustrated example in this embodiment, are called the main scanning direction. Also, the front-rear direction in which the image sensor 8 moves is called the sub-scanning direction. Note that the main scanning direction is an example of the first direction, and the sub-scanning direction is an example of the second direction.

[0025] Each sensor element of the image sensor 8 has a high sensitivity so that the surface area of ​​the document P and the lower surface area of ​​the rotating cover 4 can be distinguished and recognized through the glass plate 7. Therefore, the image sensor 8 can detect the presence or absence of a boundary between the surface area of ​​the document P and the lower surface area of ​​the rotating cover 4, that is, the presence or absence of an edge of the document P in the main scanning direction, based on the difference in the light receiving intensity between the sensor elements at a predetermined position in the sub-scanning direction. Also, the image sensor 8 can detect the position of the boundary between the surface area of ​​the document P and the lower surface area of ​​the rotating cover 4, that is, the edge position of the document P in the sub-scanning direction, based on the change in the light receiving intensity over one entire line while moving in the sub-scanning direction. Note that the internal processing of this edge detection by the image sensor 8 is different from that of the image scanning described above, and edge detection can be performed by a relatively simple processing than image scanning. Here, the simple processing includes, for example, scanning at the lowest resolution among the reading resolutions that can be set by the image sensor 8. Also, the edge detection by the image sensor 8 is an example of a reading operation for edge detection.

[0026] As described above, the image sensor 8 needs to perform shading correction at the position below the white tape 6 every time before performing a scan operation on the document P. For this reason, in this embodiment, when the open / close detection switch 5 detects a change in the rotating cover 4 from a closed state to an open state and it is estimated that the user is placing the document P, the CPU 100 controls the rotation drive circuit 150 to move the image sensor 8 to the initial position HP, which is a position below the white tape 6, and immediately performs shading correction processing. Note that, in the example of this embodiment, the moving speed of the image sensor 8 in the sub-scanning direction is set to be the same for the moving speed going directly to a specific position such as the initial position HP, the moving speed while performing the edge detection, and the moving speed while performing the image scan of the document P.

[0027] <About the first preliminary scan process> Due to the above-mentioned configuration of scanner 1, the time required for the entire image scanning operation is strongly dependent mainly on the image scanning movement distance of image sensor 8 in the sub-scanning direction, i.e., the length dimension in the sub-scanning direction of original P. For this reason, in order to shorten the time required for the entire image scanning operation, it is necessary to specify in advance the area to be read by image sensor 8, i.e., the paper size and placement attitude of original P. On the other hand, if the user has specified in advance the paper size and placement attitude of original P via an input operation on touch panel 130 or external terminal 300, the area to be read can be uniquely specified based on the specification.

[0028] However, if there is no such designation from the user, a pre-scan process must be separately executed by edge detection, which is easier than image scanning, to quickly identify the paper size and placement orientation of the original P after the original P is placed and immediately before executing the image scanning operation. However, as described above, when the original P is placed, the image sensor 8 is located at the initial position HP slightly forward of the glass plate 7, and if the image sensor 8 is moved from there to the rear side in the sub-scanning direction while detecting the edges, the image sensor 8 must be moved to detect the edges over the entire length dimension of the original P in the sub-scanning direction, which results in a long time required for the pre-scan process itself.

[0029] Therefore, in this embodiment, the edge of the narrow area where the rear end position of the A5 landscape arrangement, the rear end position of the A4 portrait arrangement, and the rear end position of the Letter portrait arrangement coincide or are densely located is first detected, and the first pre-scanning process is executed preferentially to detect whether the placed document P is in those paper sizes and placement postures. Specifically, as shown in FIG. 3, the sub-scanning direction position slightly forward of the position where the rear end position of the A5 landscape arrangement and the rear end position of the A4 portrait arrangement coincide is set as the first start position S1. Note that this first start position S1 is an example of the standby position and the first position. Also, the sub-scanning direction position slightly rearward of the rear end position of the Letter portrait arrangement is set as the first end position S2. Then, as the first pre-scanning process, the image sensor 8 is caused to detect the edge of the area between the first start position S1 and the first end position S2. The exact sub-scanning direction positions of the first start position S1 and the first end position S2 should be set to positions that allow the image sensor 8 to reliably detect the edges of the rear end position of an A5 landscape orientation, the rear end position of an A4 portrait orientation, and the rear end position of a Letter portrait orientation, and that have as short a distance as possible between them.

[0030] As a specific process leading up to this first pre-scanning process, first, the open state of the rotating cover 4 is detected and the image sensor 8 performs shading correction at the initial position HP, and then the image sensor 8 is immediately moved in a straight line from the initial position HP to the first start position S1 as shown in Fig. 4(a). While the image sensor 8 is moving in a straight line, the image sensor 8 is not made to perform scanning. When the closed state of the rotating cover 4 is detected thereafter, it is assumed that the document P is placed on the glass plate 7 at that point, and the image sensor 8 is moved for edge detection from the first start position S1 to the first end position S2 as shown in Fig. 4(b) to perform the first pre-scanning process.

[0031] Then, if the image sensor 8 can detect the edge of the document P in both the main scanning direction and the sub-scanning direction by the above-mentioned first pre-scanning process, it can be determined that the reading target area of ​​the placed document P corresponds to any one of A5 landscape, A4 portrait, and Letter portrait. Also, if the edge of the document P cannot be detected in either the main scanning direction or the sub-scanning direction, it can be determined that the reading target area corresponds to A5 portrait. Also, if the edge of the document P can be detected in the main scanning direction but not in the sub-scanning direction, it can be determined that the reading target area corresponds to any one of A4 landscape, Letter landscape, and A3 landscape. To summarize the above, if the edge in the main scanning direction is detected but the edge in the sub-scanning direction is not detected, it can be determined that the reading target area of ​​the document P corresponds to any one of A4 landscape, Letter landscape, and A3 landscape. That is, it can be determined that the rear end position of the reading target area is located behind the first end position S2. In other cases, it can be determined that the reading target area of ​​the document P corresponds to any one of A5 portrait, A5 landscape, A4 portrait, and Letter portrait. In other words, it can be determined that the rear end position of the reading target area is located forward of the first end position S2.

[0032] The above-mentioned first pre-scanning process is always executed in synchronization with the closing operation of the rotating cover 4, and after the execution, the image sensor 8 is located at the first end position S2. However, between the execution of the first pre-scanning process and the next instruction to start image scanning, the user may separately specify the paper size and placement attitude of the document P. In such a case, the detection result of the already executed first pre-scanning process is not used, and the image sensor 8 is forcibly moved in a straight line to the rear end position of the reading target area corresponding to the specified paper size and placement attitude. In this case, the paper size specified by the user is an example of a specific size.

[0033] At this time, if the rear end position is located forward of the first end position S2, for example when A5 landscape is specified, the image sensor 8 moves directly from the first end position S2 to the rear end position in a direction toward the front as shown in Fig. 5(a). After arriving at the rear end position, the image sensor 8 continues to move forward, that is, toward the initial position HP, as shown in Fig. 5(b), to perform image scanning. Even in this case, the time required is the same as when the image sensor 8 first starts moving from the initial position HP and moves to perform image scanning on the reading target area of ​​A5 landscape.

[0034] Also, when the trailing edge position is located behind the first end position S2, for example when A4 landscape is specified, the image sensor 8 moves straight from the first end position S2 toward the rear to the trailing edge position, as shown in FIG. 6(a). After arriving at the trailing edge position, the image sensor 8 continues to move toward the rear, that is, away from the initial position HP, as shown in FIG. 5(b), while scanning the image. In this case, the time required is longer than when the image sensor 8 starts moving from the initial position HP and moves to scan the image of the reading target area of ​​A4 landscape, but the increased time is relatively small. The trailing edge positions of the document P in each of the above-mentioned FIG. 5(a) and FIG. 6(a) are examples of the second position.

[0035] <About the second and third pre-scan processes> As described above, the first preliminary scan process can automatically determine whether the rear end position of the reading area of ​​a document P for which the paper size and loading posture are not specified is located on the front or rear side of the first end position S2.

[0036] In this embodiment, if the first pre-scanning process determines that the rear end position of the reading target area is located forward of the first end position S2, for example, in the case of A5 portrait, the second pre-scanning process is executed as shown in FIG. 7(a). Specifically, the image sensor 8 moves for edge detection in a direction toward the front from the first end position S2 until it detects the rear end position of the document P. In this second pre-scanning process, the time required can be shortened compared to when the image sensor 8 starts edge detection movement from the initial position HP and reaches the rear end position of the reading target area of ​​A5 portrait. After arriving at the rear end position in the second pre-scanning process, the image sensor 8 continues to move forward, that is, toward the initial position HP, as shown in FIG. 7(b), while scanning the image.

[0037] Also, when the first pre-scanning process determines that the rear end position of the reading target area is located behind the first end position S2, for example, in the case of A4 landscape, the third pre-scanning process is executed as shown in FIG. 8(a). Specifically, the image sensor 8 moves for edge detection in a direction toward the rear side from the first end position S2 until it detects the rear end position of the document P. In such a third pre-scanning process, the time required can be significantly reduced compared to when the image sensor 8 starts edge detection movement from the initial position HP and reaches the rear end position of the reading target area in A4 landscape. Then, after arriving at the rear end position in the third pre-scanning process, the image sensor 8 scans the image while moving in a direction toward the front side of the folding, that is, toward the initial position HP, as shown in FIG. 8(b).

[0038] <About reverse alignment of line scan data> In addition, in any of the image scans performed in Fig. 5(b), Fig. 6(b), Fig. 7(b), and Fig. 8(b), the image sensor 8 moves from the rear end position to the front end position of the reading target area, which causes the following inconvenience. That is, in a normal case, the image sensor 8 repeatedly performs one line scan in the main scanning direction while moving in the direction from the front side to the rear side in the sub-scanning direction as shown in Fig. 9(a). Then, by arranging and storing each acquired line scan data in the line data arrangement direction corresponding to the acquisition order in the image data storage area 120a, it is possible to store the image data in a facing posture that matches the notated image of the document P in both the vertical and horizontal directions.

[0039] However, if the image sensor 8 is moved for image scanning in the opposite direction to normal as shown in FIG. 9(b), and the line scan data is stored in the image data memory area 120a in the order in which it was acquired without changing the line data alignment direction, the data will be stored as image data with the top and bottom reversed.

[0040] In contrast, in this embodiment, as shown in Fig. 9(c), each line scan data acquired by image scanning movement in a direction opposite to the normal direction is temporarily stored in a separate buffer area in the order of acquisition, and then the line scan data is reordered in the reverse order to the acquisition order and stored in the original storage area. This allows the data to be stored as image data in a facing posture with the up-down direction aligned with the notation image of the document P. Note that when each line scan data is acquired, the line data arrangement direction itself may be changed to the opposite direction to the normal case and recorded in the image data area.

[0041] <Control procedure> As an example of a method for implementing the above method, a control procedure executed by the CPU 100 will be described with reference to the flowcharts of Figures 10 to 12. First, the control procedure of the document setting process shown in Figure 10 is started when the document P is not placed on the glass plate 7 and the rotating cover 4 is in the closed state.

[0042] First, in S5, it is determined whether or not the rotating cover 4 is open via the open / close detection switch 5. While it is determined that the rotating cover 4 is closed, the process remains in a loop and waits, and when it is determined that the cover is open, the process proceeds to S10.

[0043] In S10, it is determined whether the image sensor 8 is located at the initial position HP at that time. If the image sensor 8 is located at the initial position HP, the result is YES, and the process proceeds to S20, which will be described later. On the other hand, if the image sensor 8 is not located at the initial position HP, the result is NO, and the process proceeds to S15.

[0044] In S15, the rotation drive circuit 150 is controlled to move the image sensor 8 in a straight line to the initial position HP.

[0045] Next, in S20, the image sensor 8 is caused to perform a scanning operation on the white tape 6 at the initial position HP, thereby performing shading correction between the received light intensity data detected by each sensor element.

[0046] After that, in S25, the rotation drive circuit 150 is controlled to move the image sensor 8 perpendicularly to the first start position S1.

[0047] Then, in S30, it is determined whether or not the rotating cover 4 is in the closed state via the open / close detection switch 5. While it is determined that the rotating cover 4 is in the open state, the process remains in a loop and waits, and when it is determined that the rotating cover 4 is in the closed state, the process proceeds to S35.

[0048] In S35, a first pre-scan process is executed to move the image sensor 8 from the first start position S1 to the first end position S2 for edge detection, and then this flow is ended.

[0049] Next, a description will be given of the control procedure of the scan process shown in Figures 11 and 12. The scan process starts when the user issues an instruction to start image scanning by pressing a start button (not shown) or the like after the document setting process is executed.

[0050] First, in S105, it is determined whether or not the user has input a designated paper size and placement attitude of the document P via the touch panel 130 or the external terminal 300. If a designated paper size and placement attitude has been input, the determination is YES, and the process proceeds to S110.

[0051] In S110, it is determined whether the rear end position of the reading target area corresponding to the specified paper size and placement attitude is behind the first end position S2. If the rear end position is ahead of the first end position S2, the result is NO, and the process proceeds to S115.

[0052] In S115, the rotation drive circuit 150 is controlled to move the image sensor 8 in a direction toward the front to the rear end position of the area to be read (see FIG. 5(a) above). Next, in S120, the image sensor 8 is moved in the direction toward the front while performing image scanning of the area to be read (see FIG. 5(b) above).

[0053] Then, in S125, the line scan data acquired up to that point is inversely aligned and stored in the image data storage area 120a, and this flow is then terminated.

[0054] On the other hand, in S110, if the rear end position of the reading target area corresponding to the designated input paper size and placement attitude is behind the first end position S2, the determination is YES, and the process proceeds to S130.

[0055] In S130, the rotation drive circuit 150 is controlled to move the image sensor 8 in a direction toward the rear side to the rear end position of the area to be read (see FIG. 6(a) above). Next, in S135, the image sensor 8 is moved in a direction toward the front side while scanning the area to be read (see FIG. 6(b) above). Then, the process proceeds to S125 above.

[0056] On the other hand, in the above S105, if there is no designated input of the paper size and placement attitude of the document P, the determination is NO, and the process proceeds to S140.

[0057] In S140, it is determined whether an edge in the main scanning direction is detected and an edge in the sub-scanning direction is not detected from the reading result in the first pre-scanning process in S35. In other words, it is determined whether the rear end position of the reading target area is located on the front side or rear side of the first end position S2 for the document P whose paper size and placement attitude are not specified. If an edge is detected in both the main scanning direction and the sub-scanning direction, or if an edge is not detected in both the main scanning direction and the sub-scanning direction, in other words, if it is determined that the rear end position of the reading target area is located on the front side of the first end position S2, the determination is NO and the process proceeds to S145.

[0058] In S145, the rotation drive circuit 150 is controlled to execute a second pre-scan process (see FIG. 7(a) above) in which the image sensor 8 is moved in a direction toward the front side while detecting the edge of the rear end position of the document P. Then, in S150, the movement of the image sensor 8 is repeated until the edge of the rear end position is detected, and when the edge is detected, the reading target area is determined based on the detected edge, and the process proceeds to S155. In S155, the image sensor 8 continues to be moved in a direction toward the front side while performing image scanning of the reading target area of ​​the document P (see FIG. 7(b) above). Then, the process proceeds to S125 above.

[0059] On the other hand, in S140 above, if an edge is detected in the main scanning direction but not in the sub-scanning direction, in other words, if it is determined that the rear end position of the reading area is located behind the first end position S2, the result is YES and the process proceeds to S160.

[0060] In S160, the rotation drive circuit 150 is controlled to move the image sensor 8 in the direction toward the rear side while executing a third pre-scan process (see FIG. 8(a) above) for edge-detecting the rear end position of the document P. Then, in S165, the movement of the image sensor 8 is repeated until the edge of the rear end position is detected, and when the edge is detected, the reading target area is determined based on the detected edge, and the process proceeds to S170. In S170, the movement of the image sensor 8 toward the rear side up to that point is stopped. Then, in S175, the image sensor 8 is moved back in the direction toward the front side while image-scanning the reading target area of ​​the document P (see FIG. 8(b) above). Then, the process proceeds to S125 above.

[0061] Note that the above procedure of S25 is an example of a movement process, the above procedures of S155 and S175 are an example of a first main scan process, the above procedure of S105 is an example of a size designation determination process, the above procedures of S120 and S135 are an example of a second main scan process, the above procedures of S5 and S30 are an example of an opening / closing detection process, and the above procedures of S150 and S165 are an example of an area determination process.

[0062] <Effects of the embodiment> As described above, the scanner 1 of this embodiment can place the document P on the glass plate 7 in the sizes and placement postures of A5 portrait, A5 landscape, A4 portrait, and Letter portrait, and the document P in the sizes and placement postures of A4 landscape, Letter landscape, and A3 landscape, which are larger in size in the sub-scanning direction. With the document P placed on the glass plate 7, the CPU 100 executes the steps of S25 and S35. In the step of S25, the image sensor 8 moves from the initial position HP to the first start position S1 without performing a scanning operation. The first start position S1 is a position that is determined in advance as a standby position for starting detection of the edge of the document P in the sizes and placement postures of A5 landscape, A4 portrait, and Letter portrait. In the first pre-scan process of S35, the image sensor 8 performs an edge detection operation for detecting the edge of the document P while moving a predetermined distance from the first start position S1 in the sub-scanning direction.

[0063] Depending on the detection result of the first pre-scanning process in S35, the second pre-scanning process in S145 or the third pre-scanning process in S160 is selectively executed. When the end of the document P in the main scanning direction and the end of the document P in the sub-scanning direction are detected, or when neither the end of the document P in the main scanning direction nor the end of the document P in the sub-scanning direction are detected, the second pre-scanning process in S145 is executed. In this second pre-scanning process, the image sensor 8 performs an edge detection operation while moving to the initial position HP, and detects the rear end position of the document P. When the end of the document P in the sub-scanning direction is not detected and the end of the document P in the main scanning direction is detected, the third pre-scanning process in S160 is executed. In this third pre-scanning process, the image sensor 8 performs an edge detection operation while moving in a direction away from the initial position HP, and detects the rear end position of the document P in the sub-scanning direction.

[0064] When the rear end position of the document P is detected in the second or third pre-scanning process and the reading target area is determined, the above-mentioned steps S155 and S175 are performed. In the steps S155 and S175, the image sensor 8 moves to the initial position HP and performs an image scanning operation to acquire the contents of the document P.

[0065] According to this embodiment, even if the paper size or placement posture of the document P is not particularly specified, the second prescan process or the third prescan process that is optimal depending on the result of the first prescan process is selectively performed to detect the rear end position of the document P. This makes it possible to shorten the time required for the entire prescan regardless of the paper size and placement posture of the document P placed on the glass plate 7.

[0066] In particular, in this embodiment, the procedure of S105 is executed by the CPU 100 to determine whether or not a designated input has been made regarding the paper size and the placement attitude of the document P. The above-mentioned second pre-scan process and third pre-scan process are executed when it is determined in the procedure of S105 that a designated input has not been made regarding the paper size and the placement attitude.

[0067] In this embodiment, when the paper size or placement attitude of the document P is not specified, each process is executed in the order of movement process in S25 → first pre-scan process in S35 → second pre-scan process in S145 or third pre-scan process in S160 → first main scan process in S155 or S175. According to this embodiment, when the paper size or placement attitude of the document P is not specified, the amount of movement of the image sensor 8 from detecting the paper size or placement attitude to determining the reading target area is reduced, thereby shortening the time required for the entire pre-scan.

[0068] In particular, in this embodiment, if it is determined in step S105 that a designated input for the paper size and placement attitude has been made, the CPU 100 performs step S120 or S135. In step S120 or S135, the image sensor 8 moves from the first start position S1 to the rear end position in the sub-scanning direction for the designated paper size and placement attitude, and then performs a scanning operation to acquire the contents of the document P while moving in a direction approaching the initial position HP.

[0069] According to this embodiment, when the paper size and placement posture of the original P are specified, the procedure of S120 or S135 is executed by moving to the rear end position in the sub-scanning direction of the paper size and placement posture, so that the time required to determine the area to be read before these image scanning operations can be shortened.

[0070] In particular, in this embodiment, the CPU 100 executes the procedures of S5 and S30, executes the movement process of the image sensor 8 in the procedure of S15 when the rotating cover 4 is opened, and executes the first pre-scan process in S35 when the rotating cover 4 is closed. According to this embodiment, the time required to complete the pre-scan can be shortened compared to the case where the image sensor 8 moves to the first start position S1 after the rotating cover 4 is closed.

[0071] In particular, in this embodiment, after the second prescan process of S145 or the third prescan process of S160, the determination procedure of S150 or S165 is performed. In the determination procedure of S150 or S165, a reading target area to be scanned by the image sensor 8 is determined in the procedure of S155 or S175 based on the rear end position of the document P detected in the second prescan process or the third prescan process. In the procedure of S155 or S175, the image sensor 8 performs an image scan operation on the determined reading target area.

[0072] According to this embodiment, the image sensor 8 performs image scanning on the reading target area determined based on the detection result in the second or third prescan process, thereby making it possible to reduce the time required for image scanning.

[0073] In the above description, when terms such as "vertical," "parallel," and "plane" are used, the terms are not used in their strict sense. In other words, "vertical," "parallel," and "plane" mean "substantially vertical," "substantially parallel," and "substantially plane," allowing for design and manufacturing tolerances and errors.

[0074] In addition, in the above description, when the external dimensions or sizes are described as "same", "equal", "different", etc., the description does not mean in the strict sense. In other words, "same", "equal", and "different" mean "substantially the same", "substantially equal", and "substantially different", allowing for design and manufacturing tolerances and errors.

[0075] In addition, the flowcharts shown in Figures 10, 11, 12, etc. do not limit the present invention to the procedures shown in the above flows, and steps may be added or deleted, or the order of steps may be changed, etc., within the scope that does not deviate from the spirit and technical concept of the invention.

[0076] In addition to the above, the methods according to the above embodiments and their modifications may be used in appropriate combination.

[0077] Although not specifically illustrated, the present invention can be implemented with various modifications without departing from the spirit and scope of the present invention. [Explanation of symbols]

[0078] 1. Scanner (an example of a reading device) 4 Rotating cover (example of cover) 7 Glass plate (example of manuscript stand) 8 Image sensor (an example of a reading sensor) 100 CPU (an example of a control unit) P Manuscript

Claims

1. A reading device including a reading sensor that reads an original, a document table on which the original is placed, and a control unit, The manuscript table is a first document and a second document having a size in the sub-scanning direction larger than that of the first document can be placed on the document stack; The control unit is a movement process of moving the reading sensor, which is not performing a reading operation, from an initial position to a first position that is determined in advance as a standby position for starting detection of an edge of the first document; a first prescan process for performing a reading operation for detecting an edge of the document while moving the reading sensor from the first position by a predetermined distance in the sub-scanning direction; a second prescan process for detecting an end of the document by moving the reading sensor to the initial position and performing a reading operation when an end of the document in a first direction, which is a main scanning direction, and an end of the document in a second direction, which is a sub-scanning direction perpendicular to the first direction, are detected in the reading result of the first prescan process, or when neither an end of the document in the first direction nor an end of the document in the second direction is detected; a third prescan process for detecting the end of the document in the second direction by performing a reading operation while moving the reading sensor in a direction away from the initial position when the end of the document in the second direction is not detected and the end of the document in the first direction is detected in the reading result of the first prescan process; a first main scan process in which, when an edge of the document is detected in the second pre-scan process or the third pre-scan process, a reading operation is performed to obtain the contents of the document while moving the reading sensor to the initial position; A reading device that performs the above.

2. The control unit further execute a size designation determination process to determine whether or not a designation input regarding the size of the document has been made; 2. The reading apparatus according to claim 1, wherein the second prescan process and the third prescan process are performed when it is determined in the size designation determination process that no designation input has been made regarding the size.

3. The control unit further The reading device of claim 2, further comprising: a second scanning process for performing a reading operation to obtain the contents of the document when the size designation determination process determines that a specific size has been designated for the size of the document, the reading sensor is moved from the first position to a second position corresponding to an end of the specific size in the second direction, and then the reading sensor is moved in a direction approaching the initial position while performing a second scanning process to perform a reading operation to obtain the contents of the document.

4. A cover for the document table is further provided. The control unit further Executing an opening / closing detection process for detecting opening / closing of the cover; When the opening / closing detection process detects that the cover is opened, the movement process is executed; 4. The reading device according to claim 1, wherein the first pre-scanning process is executed when the closing of the cover is detected in the open / close detection process.

5. The control unit further executes an area determination process for determining a reading target area to be read by the reading sensor in the first main scan process, based on an edge of the document detected in the second pre-scan process or the third pre-scan process; 5. The reading device according to claim 1, wherein in the first main scan process, the reading sensor is caused to execute a reading operation on the reading target area determined in the area determination process.

Citation Information

Patent Citations

  • Document reading device and document size specification method

    JP2014036349A

  • Copying machine

    JP2015220659A