Document reading device and method for controlling document reading device

JP7644686B2Active Publication Date: 2025-03-12SHARP KK
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2021139652
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2025-03-12
Estimated Expiration
2041-08-30

AI Technical Summary

Benefits of technology

【0008】 本開示の一態様によると、原稿の表面と裏面の読み取りで得られたそれぞれの画像データから、原稿部分を確実、正確に切り出す効果を奏する。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007644686000001
    Figure 0007644686000001
  • Figure 0007644686000002
    Figure 0007644686000002
  • Figure 0007644686000003
    Figure 0007644686000003
Patent Text Reader

Abstract

To provide a document reading device that detects a document area for image data of each of the front and back sides of a document, and reliably and accurately crop a document portion based on a plurality of detection results, and a control method therefor.SOLUTION: A document reading device includes a document conveying unit, a front surface reading unit that reads a first surface of the conveyed document at a first reading position in a size larger than that of the conveyed document, a back surface reading unit that reads the opposite surface (second surface) of the first side at a second reading position in a size larger than the conveyed document, an area detection unit that detects a first document area which is an area of the document in first document image data in S606, and detects a second document area which is an area of the document in second document image data in S612, and a crop processing unit that crops the document portion on the first surface as first cropped image data in S610 and S616, and crops the document portion on the second surface as second cropped image data in S611 and S617.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a document reading device and a method for controlling a document reading device. [Background technology]

[0002] There is a reading device having a document cropping function. The document cropping function is a function that detects the document portion from the image data obtained by scanning and cuts out the document portion. Only the document portion is automatically cut out from the image data. The image reading device disclosed in Patent Document 1 includes an image reading unit that scans a document held down by a document holder of a document cover placed on a contact glass to generate a scanned image, a document detection unit that searches for and detects the document image in the scanned image, an image processing unit that crops the document image detected by the document detection unit, a display device that displays a warning screen to a user, and a control unit. If the document detection unit fails to detect the document image, the control unit causes the display device to display a first warning screen that prompts the user to rearrange the document on the contact glass, and after the document is rearranged, causes the image reading unit to execute a rescan, and the first warning screen includes a position designation message that designates the position of the document rearrangement, and the position is set to a position where the document contacts one of the four corners of the contact glass or one of the four sides of the contact glass. [Prior art documents] [Patent documents]

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

[0004] In document cropping, the edges of the document in the image data obtained by scanning are sometimes detected in order to detect the document portion. By cropping along the detected edges, it is possible to accurately cut out only the document portion. However, depending on the color of the document, the edges of the document may not appear in the image data. As a result, some or all of the edges of the document may not be detected, and detection of the document portion may fail. For example, when the color of the document's background (opposing plate) and the document's skin color (paper color) are the same or close, it may not be possible to detect the edges of the document. In such cases, the document portion cannot be accurately cut out.

[0005] An aspect of the present disclosure aims to detect document areas from image data of the front and back sides of a document, and to reliably and accurately cut out document portions based on a plurality of detection results. [Means for solving the problem]

[0006] According to one embodiment of the present disclosure, the document reading device includes a document transport unit that transports a document along a document transport path, a first reading unit that reads a first side of the transported document larger than the transported document at a first reading position of the document transport path, a second reading unit that reads a second side, which is the side opposite to the first side, larger than the transported document at a second reading position of the document transport path, an area detection unit that is capable of detecting a first document area, which is a document area, from first document image data obtained by reading the first side, and detecting a second document area, which is a document area, from second document image data obtained by reading the second side, and a cropping processing unit that, based on one document area that is successfully detected out of the first document area and the second document area, crops out a document portion of the first side from the first document image data as first crop image data, and crops out a document portion of the second side from the second document image data as second crop image data.

[0007] A control method for a document reading device according to another embodiment of the present disclosure includes transporting a document along a document transport path; reading a first side of the transported document at a first reading position of the document transport path so as to be larger than the transported document; reading a second side, which is the side opposite to the first side, at a second reading position of the document transport path so as to be larger than the transported document; detecting a first document area, which is a document area, from first document image data obtained by reading the first side; detecting a second document area, which is a document area, from second document image data obtained by reading the second side; and based on one document area that is successfully detected among the first document area and the second document area, cutting out a document portion of the first side from the first document image data as first crop image data, and cutting out a document portion of the second side from the second document image data as second crop image data. Effect of the Invention

[0008] According to one aspect of the present disclosure, it is possible to reliably and accurately extract a document portion from image data obtained by reading the front and back sides of the document. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of a multifunction peripheral according to an embodiment. [Diagram 2] FIG. 1 is a diagram illustrating an example of a multifunction peripheral according to an embodiment. [Diagram 3] FIG. 2 is a diagram illustrating an example of a document transport device according to the embodiment. [Figure 4] FIG. 1 is a diagram illustrating an example of an image reading device and a document transport device according to an embodiment. [Diagram 5] FIG. 4 is a diagram showing an example of an opposing plate according to the embodiment. [Figure 6] 6A to 6C are diagrams illustrating an example of a crop process of a document according to the embodiment. [Figure 7] 11A and 11B are diagrams illustrating an example of a reading target area in cropping processing according to the embodiment. [Figure 8] FIG. 4 is a diagram showing an example of front document image data according to the embodiment; [Figure 9] FIG. 13 is a diagram showing an example of back-side document image data according to the embodiment; [Figure 10] 6A to 6C are diagrams illustrating an example of a detection process of a document area according to the embodiment. [Figure 11] 6A to 6C are diagrams illustrating an example of a crop process of a document according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, a document reading device and a method for controlling the document reading device according to the present disclosure will be described with reference to the drawings. In the drawings, the same or equivalent elements are given the same reference numerals. As an example of a document reading device according to one aspect of the invention, a multifunction peripheral 100 (MFP) will be described.

[0011] In the following description, the main scanning direction is a direction parallel to the reading line of the original 200 and perpendicular to the transport direction of the original 200. The sub-scanning direction is parallel to the transport direction of the original 200. The sub-scanning direction is a direction perpendicular to the main scanning direction.

[0012] (Multifunction machine 100) An embodiment of a multifunction peripheral 100 will be described with reference to Figures 1 and 2. Figures 1 and 2 are diagrams showing an example of a multifunction peripheral 100 according to an embodiment.

[0013] FIG. 1 shows an example of the appearance of a multifunction device 100. The multifunction device 100 is also a type of image forming device. The multifunction device 100 has multiple functions. For example, the multifunction device 100 has a copy function, a scan transmission function, a scan storage function, a printer function, and a fax function. The up-down direction in FIG. 1 corresponds to the up-down direction of the multifunction device 100, the diagonally lower right corresponds to the front of the multifunction device 100, the diagonally upper left corresponds to the rear of the multifunction device 100, the diagonally lower left corresponds to the left of the multifunction device 100, and the diagonally upper right corresponds to the right of the multifunction device 100.

[0014] The image reading device 1 is provided on the top of the multifunction device 100. And the document transport device 2 is provided on the top of the image reading device 1. The image reading device 1 reads the front side (one side) of the document 200. The image reading device 1 includes a document table 11 and a front side reading unit 12 (see FIG. 4). The document table 11 is provided on the top surface of the image reading device 1 (see FIG. 3). The front side reading unit 12 reads the front side of the document 200 placed on the document table 11.

[0015] The document transport device 2 can be opened and closed. When the document transport device 2 is open, the top surface of the document table 11 is exposed. A document 200 can be placed on the document table 11. When closed, the document transport device 2 covers the top surface of the document table 11. When closed, the document transport device 2 holds down the document 200 placed on the document table 11. In other words, the document transport device 2 functions as a document holding cover. FIG. 1 shows an example of the document transport device 2 in a closed state.

[0016] The document transport device 2 includes a document tray 21 and a document discharge tray 22. A plurality of documents 200 (a stack of documents) can be set in the document tray 21. The document transport device 2 also includes a back-side reading unit 23 (see FIG. 4). The back-side reading unit 23 reads the back side (the other side) of the document 200 being transported. A plurality of sheet-like documents 200 can be set in the document tray 21. The document transport device 2 automatically sends the documents 200 placed on the document tray 21 one by one to the reading position of the front-side reading unit 12. Note that when the document transport device 2 is closed, it transports the documents 200. The image reading device 1 can read the documents 200 transported by the document transport device 2. The document 200 after reading is discharged to the document discharge tray 22. The back-side reading unit 23 reads the back side of the document 200 before it is discharged to the document discharge tray 22.

[0017] Further, the image forming unit 3 is provided below the image reading device 1. The image forming unit 3 prints an image based on image data on a sheet-shaped image recording medium. The image recording medium is, for example, paper. The image data after image processing by the image processing circuit 205 is used for printing. The image forming unit 3 may perform image formation processing of an electrophotographic method (Carlson process method). Therefore, the image forming unit 3 may include a photosensitive drum, a charging device, an exposure device, a developing device, a transfer device, a fixing device, a cleaning device, a static elimination device, and the like. The image forming unit 3 may also print using ink. The printed matter of the image forming unit 3 is discharged to a paper discharge tray 31. The paper discharge tray 31 is disposed in an internal space provided below the image reading device 1. The paper discharge tray 31 may be provided in an external space of the multifunction device 100.

[0018] A paper feed unit 4 is provided below the image forming unit 3 (multifunction device 100). The paper feed unit 4 includes one or more paper feed cassettes 41. Each paper feed cassette 41 accommodates an image recording medium. Each paper feed cassette 41 can accommodate paper of different sizes. When printing, one of the paper feed cassettes 41 feeds paper. Paper is supplied to the image forming unit 3 one sheet at a time.

[0019] An operation panel 5 is provided on the front of the multifunction device 100 and the image reading device 1. The operation panel 5 has an operation surface facing upward in FIG. 1. This operation surface is provided with a display 52 having a touch panel 51. For example, the display 52 is a liquid crystal display (LCD). The touch panel 51 accepts touch operations by the user. Settings related to a job can be made. For example, the touch panel 51 is a projection-type capacitive panel.

[0020] 2, the multifunction device 100 includes a control unit 201, an image reading device 1, a document transport device 2, an image forming unit 3, a paper feed unit 4, an operation panel 5, a storage unit 6, and a communication unit 7. These are connected to each other so that they can communicate with each other. The image reading device 1, the document transport device 2, the image forming unit 3, the paper feed unit 4, and the operation panel 5 are as described above.

[0021] The control unit 201 controls the multifunction peripheral 100. The control unit 201 includes a control circuit 202 (processor) and a main memory unit 203. For example, the control circuit 202 is a CPU. Furthermore, for example, the main memory unit 203 includes a ROM and a RAM. The main memory unit 203 stores a control program and firmware for the control circuit 202 to perform control and calculations.

[0022] The control unit 201 also includes an image data generation circuit 204. The image data generation circuit 204 processes an image signal output by the front side reading unit 12 after reading the original 200, and generates image data of the original 200. Details of the front side reading unit 12 will be described later. The image data generation circuit 204 also processes an image signal output by the back side reading unit 23 of the original transport device 2 after reading the original 200, and generates image data of the original 200. Details of the back side reading unit 23 will be described later. In the following description, the image data obtained by reading the original 200 will be referred to as original image data.

[0023] The control unit 201 includes an image processing circuit 205. The image processing circuit 205 performs image processing on image data. For example, the image processing circuit 205 may perform image processing on document image data. The image data processed by the image processing circuit 205 may be provided to the image forming unit 3 and used for printing. Alternatively, the image data after image processing may be stored (saved) in the storage unit 6. In addition, the image data after image processing may be transmitted to the outside via the communication unit 7.

[0024] 2, for example, the control unit 201 includes an area detection unit 206 and a crop processing unit 207. The area detection unit 206 and the crop processing unit 207 are functionally realized by the control circuit 202 (processor) or the image processing circuit 205 executing a program or software stored in the storage unit 6. Note that the control unit 201 may include a circuit (hardware) that performs the processing of the area detection unit 206 and the crop processing unit 207.

[0025] The storage unit 6 includes at least one of a hard disk drive and a flash memory. The storage unit 6 stores various data, such as image data after image processing, in a non-volatile manner.

[0026] The communication unit 7 includes, for example, a communication circuit, a communication memory, and a communication port. The communication unit 7 is connected to a communication network (not shown) and performs two-way communication with a counterpart via the communication network. The counterpart is, for example, a computer. For example, the computer is a PC or a server.

[0027] (Image reading device 1 and document transport device 2) Next, an embodiment of the image reading device 1 and the document transport device 2 will be described with reference to Figs. 3 and 4. Fig. 3 is a diagram showing an example of the document transport device 2 according to an embodiment. Fig. 4 is a diagram showing an example of the image reading device 1 and the document transport device 2 according to an embodiment. Fig. 3 shows an example of the document transport device 2 as viewed from above. Fig. 4 is a diagram showing the image reading device 1 and the document transport device 2 as viewed from the front of the multifunction device 100.

[0028] As shown in FIG. 3, the document transport device 2 has a first document guide 24a and a second document guide 24b. The first document guide 24a and the second document guide 24b are paired. The first document guide 24a and the second document guide 24b have contact surfaces parallel to the sub-scanning direction (transport direction) of the document 200. The contact surfaces come into contact with the end of the document 200 extending in the sub-scanning direction. In other words, the first document guide 24a and the second document guide 24b sandwich the document 200 in the main scanning direction. This regulates the position of the document 200.

[0029] Specifically, the first manuscript guide 24a and the second manuscript guide 24b can be manually slid along the main scanning direction. A first arrow 241 in FIG. 3 shows an example of the moving direction of the first manuscript guide 24a. A second arrow 242 in FIG. 3 shows an example of the moving direction of the second manuscript guide 24b. The first manuscript guide 24a and the second manuscript guide 24b are symmetrically linked. When the first manuscript guide 24a is moved toward the center between the first manuscript guide 24a and the second manuscript guide 24b, the second manuscript guide 24b also moves toward the center by the same distance. When the first manuscript guide 24a is moved away from the center, the second manuscript guide 24b also moves away from the center by the same distance. The center of the set manuscript 200 coincides with the center of the interval between the first manuscript guide 24a and the second manuscript guide 24b in the main scanning direction. The dashed line in FIG. 3 shows an example of the manuscript 200.

[0030] The document transport device 2 includes a main scanning width detection unit 25 (see FIG. 2). The main scanning width detection unit 25 detects the position of at least one of the first document guide 24a and the second document guide 24b. The first document guide 24a and the second document guide 24b are positioned to regulate the end of the document 200 that has been set. Therefore, the positions of the first document guide 24a and the second document guide 24b correspond to the width of the document 200 in the main scanning direction that has been set. For example, the main scanning width detection unit 25 includes a variable resistor. The resistance value of the variable resistor indicates, for example, a resistance value corresponding to the position of the first document guide 24a. That is, the resistance value indicates a value corresponding to the size of the document 200 in the main scanning direction that has been set. Based on the output of the main scanning width detection unit 25, the control unit 201 recognizes the resistance value. For example, the storage unit 6 stores resistance value data D1 that defines the main scanning width for the resistance value. Based on the resistance value, the control unit 201 detects the width of the document 200 in the main scanning direction. Note that the main-scanning width detection unit 25 may use other types of sensors, such as an optical sensor, instead of a variable resistor.

[0031] As shown in Fig. 4, the image reading device 1 has a document table 11. The document table 11 is transparent. For example, the document table 11 is a rectangular flat glass plate. For example, the document table 11 is attached to the upper surface of the image reading device 1 so that the plane is horizontal.

[0032] A front surface reading unit 12 is provided below the document table 11. The front surface reading unit 12 includes a first moving frame 12a, a second moving frame 12b, a front surface lens 12c, and a front surface line sensor 12d. The first moving frame 12a includes a front surface illumination lamp 12e and a mirror. The second moving frame 12b includes a plurality of mirrors. When reading the document 200, the control unit 201 causes the front surface illumination lamp 12e to illuminate the front surface of the document 200. Each mirror guides the light illuminated by the front surface illumination lamp 12e and reflected by the document 200 to the front surface lens 12c. The light that passes through the front surface lens 12c is incident on the front surface line sensor 12d.

[0033] The first moving frame 12a and the second moving frame 12b can be moved in the sub-scanning direction by the moving mechanism 13. The moving mechanism 13 includes, for example, a moving motor (not shown) and a wire (not shown). The wire is hung on a plurality of pulleys, one end of which is connected to a drum, and the other end of which is connected to the first moving frame 12a and the second moving frame 12b. The control unit 201 rotates the moving motor to rotate the drum. This causes each moving frame to move in the sub-scanning direction. The control unit 201 can move the first moving frame 12a and the second moving frame 12b in the sub-scanning direction. That is, the control unit 201 can move the front surface reading position P1 (the position of the reading line). The front surface reading unit 12 reads the front surface (one side facing the document table 11) of the transported document 200 at the front surface reading position P1. When reading the conveyed document 200, the control unit 201 fixes the positions of the first moving frame 12a and the second moving frame 12b.

[0034] When the original 200 is placed on the platen 11, the control unit 201 moves the first moving frame 12a and the second moving frame 12b in the sub-scanning direction from one end of the original 200 to the other end. In other words, the front surface reading position P1 moves in the sub-scanning direction, and the entire original 200 placed is read.

[0035] The document transport device 2 has a document transport path 26 that extends from the document tray 21 to the document discharge tray 22. A space for transporting documents formed by a plurality of transport guides is the document transport path 26. As shown in Fig. 4, when viewed from the front of the multifunction device 100, the document transport path 26 is U-shaped or C-shaped.

[0036] The document transport device 2 includes a document transport section 27. The document transport section 27 transports the document 200 along a document transport path 26. As the document transport section 27, for example, a pickup roller 27a, a pair of paper feed rollers 27b, a first pair of transport rollers 27c, a second pair of transport rollers 27d, a third pair of transport rollers 27e, a registration roller 27f, a fourth pair of transport rollers 27g, a fifth pair of transport rollers 27h, and a pair of paper discharge rollers 27i are provided. The document transport device 2 also includes a roller drive section 28 as the document transport section 27. The roller drive section 28 includes a transport motor, gears, and the like. When the document 200 is transported, the control section 201 rotates the transport motor. In response to the rotation of the transport motor, each roller of the document transport section 27 rotates.

[0037] The pickup roller 27a feeds out the originals 200 set in the original tray 21 one by one. The fed originals 200 enter the original transport path 26. The paper feed roller pair 27b feeds the picked-up originals 200 downstream. The first transport roller pair 27c, the second transport roller pair 27d, the third transport roller pair 27e, the registration roller 27f, the fourth transport roller pair 27g, the fifth transport roller pair 27h, and the paper discharge roller pair 27i transport the originals 200 along the original transport path 26. The number of rollers for transporting the originals may be greater. The intervals between these rollers may be set to allow the transport of small-sized originals 200 such as business cards.

[0038] The original 200 is transported along the transport path 26 toward the front side reading position P1 of the front side reading unit 12. The transported original 200 passes through the front side reading position P1 during transport. When the original 200 passes through the front side reading position P1, the front side reading unit 12 reads the front side of the original 200 (swimming reading method). The original 200 is set in the original tray 21 with the front side facing upward. The front side line sensor 12d outputs an image signal corresponding to each pixel as a reading result. The reading width (width in the main scanning direction) of the front side line sensor 12d is wider than the main scanning width of the maximum size of the original 200 that can be transported. The control unit 201 processes the image signal and generates front side original image data 400.

[0039] Furthermore, the document transport device 2 has a built-in back-side reading unit 23. The back-side reading unit 23 reads the back side (second side, other side) of the document 200. The back-side reading unit 23 includes a back-side illumination lamp 23a, a back-side lens 23b, and a back-side line sensor 23c. The back-side reading unit 23 also includes a plurality of mirrors. The control unit 201 causes the back-side illumination lamp 23a to illuminate the back side of the document 200 being transported.

[0040] In the back side reading unit 23, the position of the reading line (back side reading position P2) does not move. Each mirror guides the light that is irradiated by the back side illumination lamp 23a and reflected by the back side of the original 200 to the back side lens 23b. The light that passes through the back side lens 23b is incident on the back side line sensor 23c. The back side reading unit 23 reads the back side of the original 200 being transported at the back side reading position P2. The back side reading position P2 is downstream in the original transport direction from the front side reading position P1 when the original 200 is transported. The discharge roller pair 27i discharges the original 200 that has passed the back side reading position P2 to the original discharge tray 22. The back side line sensor 23c outputs an image signal of each pixel as a reading result. The reading width (width in the main scanning direction) of the back side line sensor 23c is wider than the main scanning width of the original 200 of the maximum size that can be transported. The control unit 201 processes the image signal and generates document image data for the back side.

[0041] In addition, the document transport device 2 includes a transport detection unit 29. The transport detection unit 29 includes a first transport sensor 29a, a second transport sensor 29b, a third transport sensor 29c, a fourth transport sensor 29d, and a fifth transport sensor 29e, which are provided along the document transport path 26. Each of these transport sensors detects the document 200 being transported. Each transport sensor is, for example, an optical sensor. Based on the output of each transport sensor, the control unit 201 recognizes the presence or absence of the document 200 in the detection area of ​​each transport sensor, the arrival of the leading edge of the document 200 at each transport sensor, and the passage of the trailing edge of the document 200 from each transport sensor.

[0042] Further, the document tray 21 is provided with a set sensor 210. The set sensor 210 detects whether the document 200 is placed on the document tray 21. For example, the set sensor 210 is an optical sensor. Based on the output of the set sensor 210, the control unit 201 recognizes the presence or absence of the document 200 on the document tray 21.

[0043] (opposing plate) Next, an example of the opposing plate will be described with reference to Fig. 4 and Fig. 5. Fig. 5 is a diagram showing an example of the opposing plate according to the embodiment.

[0044] The document transport device 2 is provided with two opposing plates. Specifically, the document transport device 2 is provided with an opposing plate 81 for the front side and an opposing plate 82 for the back side.

[0045] As shown in FIG. 4, the front reading unit 12 is disposed below the document table 11. On the other hand, the front facing plate 81 is located above the document table 11. That is, the front facing plate 81 is disposed in a position facing the front reading unit 12. The front facing plate 81 faces the front facing lamp 12e across the document transport path 26. The front facing lamp 12e and the front facing plate 81 sandwich the transported document 200. Therefore, when reading the transported document 200, the front facing lamp 12e irradiates light onto the document 200 and the front facing plate 81. Therefore, the front reading unit 12 also reads the front facing plate 81. The front facing plate 81 is read as the background of the transported document 200.

[0046] For example, the front-side opposing plate 81 is a rectangular plate. The front-side opposing plate 81 has a longitudinal direction in the main scanning direction. The width in the main scanning direction is wider than the main scanning width of the maximum size of the document 200 that can be transported. As shown in FIG. 5, the front-side opposing plate 81 has a gray portion 81a and a white portion 81b. A part of the plane of the front-side opposing plate 81 is the gray portion 81a, and the remaining part is the white portion 81b. The gray portion 81a and the white portion 81b are both rectangular and extend from one end of the front-side opposing plate 81 in the main scanning direction to the other end. Therefore, the gray portion 81a and the white portion 81b have a longitudinal direction in the main scanning direction. The width in the sub-scanning direction of the gray portion 81a and the white portion 81b is appropriately determined.

[0047] The control unit 201 can adjust the positions of the first moving frame 12a and the second moving frame 12b during reading. In other words, the front surface reading unit 12 can move the front surface reading position P1 (position of the reading line). Specifically, when reading against a gray background, the control unit 201 sets the front surface reading position P1 within the range of the gray portion 81a. This allows the front surface of the original 200 to be read against the gray background. On the other hand, when reading against a white background, the control unit 201 sets the front surface reading position P1 within the range of the white portion 81b. This allows the front surface of the original 200 to be read against the white background.

[0048] On the other hand, the back surface facing plate 82 is disposed at a position facing the back surface reading unit 23 across the document transport path 26. As shown in FIG. 4, the back surface facing plate 82 is disposed below the back surface reading unit 23. The back surface facing plate 82 faces the back surface irradiation lamp 23a. The back surface irradiation lamp 23a and the back surface facing plate 82 sandwich the document 200 being transported. Therefore, when reading the document 200 being transported, the back surface irradiation lamp 23a irradiates light not only to the document 200 but also to the back surface facing plate 82. Therefore, the back surface reading unit 23 also reads the back surface facing plate 82. The back surface facing plate 82 is read as the background of the document 200 being transported.

[0049] For example, the back surface facing plate 82 is a rectangular plate. The back surface facing plate 82 has a longitudinal direction in the main scanning direction. The width in the main scanning direction is wider than the main scanning width of the maximum size of the original 200 that can be transported. The back surface facing plate 82 is different from the front surface facing plate 81. The back surface facing plate 82 is of one color. For example, the back surface facing plate 82 is white. When reading the back surface, the control unit 201 causes the back surface irradiation lamp 23a to irradiate light toward the transported original 200 and the back surface facing plate 82. This makes it possible to read the back surface of the original 200 against a white background.

[0050] (Cropping of manuscript 200) Next, an example of cropping processing of the original 200 will be described with reference to Figs. 6 to 11. Fig. 6 is a diagram showing an example of cropping processing of the original 200 according to the embodiment. Fig. 7 is a diagram showing an example of a read target area 300 in cropping processing according to the embodiment. Fig. 8 is a diagram showing an example of front original image data 400 according to the embodiment. Fig. 9 is a diagram showing an example of back original image data 500 according to the embodiment. Fig. 10 is a diagram showing an example of a detection process of an original area according to the embodiment. Fig. 11 is a diagram showing an example of cropping processing of the original 200 according to the embodiment.

[0051] First, the original 200 may be transported in an inclined state. In this case, the original 200 is read in an inclined state. To deal with this, the multifunction device 100 has an original cropping function. By cropping the original portion and correcting the inclination, image data without inclination can be obtained. The operation panel 5 accepts a selection of enabling or disabling the original cropping function. The original cropping function can be used in jobs involving reading the original 200, such as copying, scan transmission, scan storage, and fax transmission. When the original cropping function is used, the original portion is cropped from the image data, and the job is executed based on the cropped image data.

[0052] In order to accurately crop the document portion of the image data, the document reading device according to the present disclosure includes a document transport unit 27, a first reading unit, a second reading unit, an area detection unit 206, and a crop processing unit 207. The document transport unit 27 transports the document 200 along the document transport path 26. The first reading unit reads the first side of the document 200 being transported larger than the document 200 being transported at a first reading position of the document transport path 26. The second reading unit reads the second side, which is the side opposite to the first side, larger than the document 200 being transported at a second reading position of the document transport path 26. The area detection unit 206 is capable of executing a process of detecting the first document area, which is the area of ​​the document 200, from the first document image data obtained by reading the first side, and a process of detecting the second document area, which is the area of ​​the document 200, from the second document image data obtained by reading the second side. The cropping processing unit 207 cuts out the document portion of the first side from the first document image data as first crop image data, and cuts out the document portion of the second side from the second document image data as second crop image data, based on one of the first document area and the second document area that is successfully detected.

[0053] This makes it possible to detect the area of ​​the original 200 for each of the image data of the front and back sides of the original 200. Even if the edges of the original 200 are not clearly shown in the image data of the front side, the original portion on the front side and the original portion on the back side can be accurately cut out based on the detection result of the back side. Also, even if the edges of the original 200 are not clearly shown in the image data of the back side, the original portion on the front side and the original portion on the back side can be accurately cut out based on the detection result of the back side. Therefore, the original portions can be cut out reliably and accurately.

[0054] In the following, an example will be described in which the first reading section is the front side reading unit 12, the first reading position is the front side reading position P1, the first side is the front side of the document 200, the second reading section is the back side reading position P2, the second side is the back side of the document 200, the first document image data is the front side document image data 400, the second document image data is the back side document image data 500, the first document area is the front side document area A1 (document portion) of the front side document image data 400, and the second document area is the back side document area B1 of the back side document image data 500. Also, an example will be described in which the first opposing plate is the front side opposing plate 81 and the second opposing plate is the back side opposing plate 82.

[0055] First, an example of outputting both sides of the document 200 will be described with reference to Fig. 6. For example, a double-sided transmission job for transmitting image data of both sides of the document 200, a double-sided copy job for printing image data of both sides of the document 200, or a double-sided storage job for storing image data of both sides of the document 200 corresponds to a job for outputting both sides of the document 200.

[0056] Before starting in FIG. 6, the operation panel 5 accepts that the document cropping function is enabled. The control unit 201 recognizes that the document cropping function is enabled. The user has also completed the settings required for the job. For example, in the case of a scan transmission job, the user has completed settings such as the destination address and the reading resolution. The operation panel 5 also accepts the selection of outputting both sides of the document 200. In other words, the control unit 201 recognizes that the job will be performed based on image data of both sides of the document 200.

[0057] 6 is the time when the start of a job is instructed with the document crop function enabled. For example, the start of Fig. 6 is the time when the control unit 201 recognizes the operation of the start button on the operation panel 5.

[0058] First, the control unit 201 recognizes the size of the set original 200 (step S601). Specifically, the control unit 201 recognizes the main scanning width based on the output of the main scanning width detection unit 25. It is also possible to set a stack of originals 200 of different sizes in the original tray 21. In this case, the control unit 201 recognizes the size of the original 200 with the widest main scanning width among the set originals 200.

[0059] Next, the control unit 201 aligns the front surface reading position P1 with the gray portion 81a of the front surface opposing plate 81 (step S602). Specifically, the control unit 201 controls the movement motor of the movement mechanism 13 to adjust the positions of the first moving frame 12a and the second moving frame 12b so as to read the gray portion 81a. Note that in a job that does not use the document crop function, the control unit 201 aligns the front surface reading position P1 with the white portion 81b.

[0060] Next, the control unit 201 causes the document transport unit 27 to start transporting one document 200 out of the documents 200 set on the document tray 21 (step S603). Specifically, the control unit 201 causes the transport motor of the roller drive unit 28 to rotate.

[0061] The front side reading unit 12 starts reading the front side of the transported original 200 (step S604). The back side reading unit 23 starts reading the back side of the transported original 200 (step S605). The image data generating circuit 204 processes the image signal output by the front side line sensor 12d to generate front side original image data 400. The image data generating circuit 204 also processes the image signal output by the back side line sensor 23c to generate back side original image data 500.

[0062] Here, the front side reading unit 12 reads the front side of the transported original 200 in a larger area than the original 200. The back side reading unit 23 reads the back side of the transported original 200 in a larger area than the original 200. When the original crop function is enabled, a reading target area 300 is set as shown in Fig. 7. The front side reading unit 12 and the back side reading unit 23 read the range of the reading target area 300.

[0063] The read target area 300 is larger than the size of the original 200. First, in the main scanning direction of the original 200, the length Ya of the read target area 300 is longer than the main scanning width Yb of the original 200. Based on the output of the main scanning width detection unit 25, the control unit 201 recognizes the main scanning width Yb of the original 200. Therefore, the control unit 201 can obtain the length Ya of the read target area 300. For example, at both the upper and lower end edge portions in FIG. 7, the length Ya is longer by a first additional width ΔY. The first additional width ΔY is, for example, 5 mm, regardless of the size of the original 200.

[0064] In addition, in the sub-scanning direction of the original 200, the length Xa of the reading target area 300 is longer than the sub-scanning width Xb of the original 200. For example, at both the left and right end edge portions in FIG. 7, the length Xa is larger by a second additional width ΔX. The second additional width ΔX is, for example, 5 mm regardless of the size of the original 200. In other words, the front side reading unit 12 and the back side reading unit 23 read an additional second additional width ΔX at each of the leading and trailing ends of the original 200.

[0065] For example, the control unit 201 causes the front surface reading unit 12 to start reading when the leading edge of the original 200 is transported to a position just before the front surface reading position P1 by the second additional width ΔX. The control unit 201 also causes the front surface reading unit 12 to end reading when the original 200 is transported by the second additional width ΔX after the trailing edge of the original 200 passes the front surface reading position P1. The transport speed of the original 200 is V1, and the distance from the third transport sensor 29c to a point upstream in the original transport direction by the second additional width ΔX from the front surface reading position P1 is L1. For example, the control unit 201 causes the front surface reading unit 12 to start reading when a time (L1÷V1) has elapsed since the third transport sensor 29c detected the leading edge of the original 200 reaching the front surface. The distance from the third transport sensor 29c to a point downstream in the original transport direction by the second additional width ΔX from the front surface reading position P1 is L2. For example, the control unit 201 causes the front surface reading unit 12 to end reading when the time (L2÷V1) has elapsed since the third conveyance sensor 29c detected the passage of the rear end of the original 200. This makes it possible to read an area that is (2×second additional width ΔX) wider than the original 200.

[0066] Fig. 8 shows an example of the front document image data 400 obtained when the document crop function is used. When the document crop function is used, the gray portion 81a of the front facing plate 81 is used as the background when reading the front side. Therefore, in the front document image data 400, the portion other than the document 200 (the document area A1 on the front side) is gray. As shown in Fig. 8, when the background color of the document 200 is white, the edge of the document 200 (the boundary between the gray color and the background color of the document 200) appears clearly in the image data.

[0067] The control unit 201 also causes the back surface reading unit 23 to start reading when the leading edge of the document 200 is transported to a position just before the back surface reading position P2 by the second additional width ΔX. The control unit 201 also causes the back surface reading unit 23 to end reading when the document 200 is transported by the second additional width ΔX after the trailing edge of the document 200 passes the back surface reading position P2. The distance from the fourth transport sensor 29d to a point upstream in the document transport direction by the second additional width ΔX from the back surface reading position P2 is defined as L3. For example, the control unit 201 causes the back surface reading unit 23 to start reading when a time (L3÷V1) has elapsed since the fourth transport sensor 29d detected the leading edge of the document 200 reaching the document. The distance from the fourth transport sensor 29d to a point upstream in the document transport direction by the second additional width ΔX from the back surface reading position P2 is defined as L4. For example, the control unit 201 causes the back surface reading unit 23 to end reading when the time (L4÷V1) has elapsed since the fourth conveyance sensor 29d detected the passage of the rear end of the original 200. This makes it possible to read an area that is (2×second additional width ΔX) wider than the original 200.

[0068] Fig. 9 shows an example of back-side original image data 500 obtained when the original crop function is used. When the original crop function is used, the white back-side facing plate 82 is used as the background when reading the back side. Therefore, in the back-side original image data 500, the part other than the original 200 (back-side original area B1) is white. Note that, as shown in Fig. 9, if the background color of the original 200 is white, some edges of the original 200 may not appear in the image data.

[0069] Then, the area detection unit 206 performs a process of detecting the front document area A1 in the front document image data 400 (step S606). Then, the area detection unit 206 determines whether or not the detection of the front document area A1 in the front document image data 400 has been successful (step S607).

[0070] An example of a process for detecting an original region will be described with reference to FIG. 10. The region detection unit 206 detects pixels at the edge (end) of the original 200 for one or both of the front original image data 400 and the back original image data 500. For example, the region detection unit 206 determines, for each line in the main scanning direction of the original image data, one pixel at a time, an edge candidate pixel in which the absolute value of the difference in density value (pixel value) between adjacent pixels in the main scanning direction is equal to or greater than a predetermined threshold value. For each line in the main scanning direction, the region detection unit 206 determines the pixel closest to one side in the main scanning direction among the edge candidate pixels as the edge pixel on one side in the main scanning direction. For each line in the main scanning direction, the region detection unit 206 determines the pixel closest to the other side in the main scanning direction among the edge candidate pixels as the edge pixel on the other side in the main scanning direction.

[0071] The area detection unit 206 performs similar processing in the sub-scanning direction. For example, the area detection unit 206 determines, for each pixel in each line in the sub-scanning direction of the document image data, an edge candidate pixel where the absolute value of the difference in density values ​​(pixel values) between adjacent pixels in the sub-scanning direction is equal to or greater than a predetermined threshold value. For each line in the sub-scanning direction, the area detection unit 206 determines the pixel closest to one side in the sub-scanning direction among the edge candidate pixels as an edge pixel on one side in the sub-scanning direction. For each line in the sub-scanning direction, the area detection unit 206 determines the pixel closest to the other side in the sub-scanning direction among the edge candidate pixels as an edge pixel on the other side in the sub-scanning direction.

[0072] The area detection unit 206 checks the distance in the main scanning direction of each edge pixel on one end side of the main scanning direction for each combination of lines in the main scanning direction that include an edge pixel and are adjacent in the sub-scanning direction. If the absolute value of the checked distance exceeds a predetermined reference value, the area detection unit 206 may determine that the detection of the document area has failed. This is because it can be determined that the unevenness of the edge of the document area is too large. In addition, the area detection unit 206 checks the distance in the main scanning direction of each edge pixel on the other end side of the main scanning direction for each combination of lines in the main scanning direction that include an edge pixel and are adjacent in the sub-scanning direction. If there is an edge pixel whose absolute value of the checked distance exceeds a reference value, the area detection unit 206 may determine that the detection of the document area has failed. In addition, the area detection unit 206 checks the distance in the sub-scanning direction of each edge pixel on one end side of the sub-scanning direction for each combination of lines in the sub-scanning direction that include an edge pixel and are adjacent in the main scanning direction. If there is an edge pixel whose absolute value of the checked distance exceeds a reference value, the area detection unit 206 may determine that the detection of the document area has failed. Furthermore, the area detection unit 206 checks the distance in the sub-scanning direction of each edge pixel on the other end side in the sub-scanning direction for each combination of lines in the sub-scanning direction that include an edge pixel and are adjacent in the main scanning direction. If there is an edge pixel whose absolute value of the checked distance exceeds a reference value, the area detection unit 206 may determine that the detection of the document area has failed. If there is no edge pixel whose absolute value of the distance exceeds the reference value, the area detection unit 206 may determine that the detection of the document area has been successful.

[0073] For example, the area detection unit 206 detects an area surrounded by edge pixels on one end side in the main scanning direction, edge pixels on the other end side in the main scanning direction, edge pixels on one end side in the sub-scanning direction, and edge pixels on the other end side in the sub-scanning direction as the original area. Note that the area detection unit 206 may detect the original area using an algorithm other than the above-mentioned algorithm.

[0074] For example, the area detection unit 206 may determine that the detection of the original area has failed if the four sides cannot be detected in an area surrounded by edge pixels on one end side in the main scanning direction, edge pixels on the other end side in the main scanning direction, edge pixels on one end side in the sub-scanning direction, and edge pixels on the other end side in the sub-scanning direction. Alternatively, if the four sides cannot be detected, and a number of sides less than four sides (for example, three sides) are detected, and the angle between adjacent sides is not approximately right angles, the area detection unit 206 may determine that the detection of the original area has failed. Alternatively, if the four sides are detected, but the angles between adjacent sides are different, the area detection unit 206 may determine that the detection of the original area has failed. If the four sides are detected, and the angles between adjacent sides are uniformly approximately right angles, the area detection unit 206 may determine that the detection of the original area has succeeded.

[0075] When the detection of the front document area A1 in the front document image data 400 is successful (Yes in step S607), the area detection unit 206 stores the coordinates (position information) of the successfully detected front document area A1 in the memory unit 6 (step S608).

[0076] Then, the cropping processor 207 cuts out the front document area A1 from the front document image data 400 as front cropped image data (step S609). The cropping processor 207 performs processing to correct the inclination of the cut front cropped image data.

[0077] When outputting both sides of the document 200, the cropping processor 207 recognizes the back side area (back side corresponding area) of the back side document image data 500 that corresponds to the front side document area A1 based on the front side document area A1 (step S610).

[0078] For example, the crop processing unit 207 may generate inverted image data by inverting the top and bottom and the left and right of the front document image data 400. For example, the top and bottom direction is the main scanning direction, and the left and right direction is the sub-scanning direction. Then, the crop processing unit 207 recognizes the coordinates of the front document area A1, which is inverted top and bottom and left and right in the inverted image data, as the coordinates of the back document corresponding area. For example, the crop processing unit 207 recognizes the coordinates of the four corners (upper right, upper left, lower right, and lower left) of the front document area B1, which is inverted top and bottom and left and right in the inverted image data. The crop processing unit 207 recognizes a quadrangular range having the recognized coordinates as vertices in the back document image data 400 as the back document corresponding area.

[0079] Then, the cropping processor 207 cuts out the range of the back side corresponding area from the back side original image data 500 as back side cropped image data (step S611). The cropping processor 207 performs processing to correct the inclination of the cut out back side cropped image data.

[0080] In this way, when the area detection unit 206 succeeds in detecting the first original area (front original area A1), the crop processing unit 207 cuts out the first original area of ​​the first original image data (front original image data 400) as the first crop image data (front crop image data). The crop processing unit 207 also obtains the coordinates of the second corresponding area (back corresponding area) corresponding to the first original area in the second original image data (back original image data 500). Then, the crop processing unit 207 cuts out the second corresponding area of ​​the second original image data as the second crop image data (back crop image data). This makes it possible to cut out the original area of ​​each side of the original 200 based on the position of the original area successfully detected on the first side (front side). In particular, it is possible to accurately cut out the original area of ​​the first side and the original area of ​​the second side (back side) based on the coordinates of the original area successfully detected on the first side.

[0081] Specifically, the crop processing unit 207 inverts the first original image data (front original image data 400) vertically and horizontally. Then, the crop processing unit 207 recognizes a second corresponding area (area corresponding to corresponding area) based on the coordinates of the first original area (front original area A1) with the vertically and horizontally inverted. Then, the crop processing unit 207 cuts out the second cropped image data. This makes it possible to accurately cut out the original area from the second original image data (reverse original image data 500) based on the detection result of the first original image data. In other words, even if the original 200 is transported at an angle, the original area can be accurately cut out.

[0082] Here, if the area detection unit 206 succeeds in detecting the first original area (original area A1 on the front side), the crop processing unit 207 does not perform processing to detect the second original area (original area B1 on the back side). The original area is not always detected for both the front and back sides. If detection is successful on the front side, detection is skipped for the back side. The amount of calculation and processing can be efficiently reduced in the crop processing of the original area. The time required for the crop processing of the original area can be reduced.

[0083] On the other hand, if the detection of the front document area A1 in the front document image data 400 fails (No in step S607), a process is performed to detect the back document area B1 in the back document image data 500 (step S612). The area detection unit 206 performs the process described with reference to FIG. 10 on the back document image data 500. Then, the area detection unit 206 determines whether or not the detection of the back document area B1 in the back document image data 500 has been successful (step S613).

[0084] When the detection of the back-side document area B1 in the back-side document image data 500 is successful (Yes in step S613), the area detection unit 206 stores the coordinates (position information) of the successfully detected back-side document area B1 (second document area) in the memory unit 6 (step S614).

[0085] Then, the cropping processor 207 recognizes a front area (front-side corresponding area) of the front original image data 400 that corresponds to the back-side original area B1 based on the back-side original area B1 (step S615).

[0086] For example, the crop processing unit 207 may generate inverted image data by inverting the back side original image data 500 vertically and horizontally. For example, the vertical direction is the main scanning direction, and the horizontal direction is the sub-scanning direction. Then, the crop processing unit 207 recognizes the coordinates of the back side original area B1, which has been inverted vertically and horizontally, in the inverted image data, as the coordinates of the front side corresponding area. For example, the crop processing unit 207 recognizes the coordinates of the four corners (upper right, upper left, lower right, and lower left) of the back side original area B1, which has been inverted vertically and horizontally, in the inverted image data. The crop processing unit 207 recognizes a quadrangular range having the recognized coordinates as vertices in the front side original image data 400 as the front side corresponding area.

[0087] Then, the cropping processor 207 cuts out the range of the front corresponding area from the front document image data 400 as front cropped image data (step S616). The cropping processor 207 performs processing to correct the inclination of the cut out front cropped image data.

[0088] In this way, when the area detection unit 206 fails to detect the first original area (original area A1 on the front side) but succeeds in detecting the second original area (original area B1 on the back side), the crop processing unit 207 obtains the coordinates of the first corresponding area (front corresponding area) corresponding to the second original area (original area B1 on the back side) in the first original image data (front original image data 400), and cuts out the first corresponding area from the first original image data as the first cropped image data (front cropped image data). As a result, even if the detection of the original area on the first side (front side) fails, the original area on the first side can be cut out based on the position of the original area successfully detected on the second side (back side). The original area can be accurately cut out based on the coordinates of the original area successfully detected on the front side and back side. Specifically, the crop processing unit 207 inverts the second original image data (back original image data 500) vertically and horizontally, recognizes the first corresponding area based on the coordinates of the second original area that has been inverted vertically and horizontally, and cuts out the first cropped image data. This allows the document area to be accurately cut out from the first document image data based on the detection result of the second document image data. That is, even if the document 200 is conveyed tilted, the document area can be accurately cut out.

[0089] Since both sides of the document 200 are output, the cropping processor 207 cuts out the detected document area B1 on the back side from the back side document image data 500 as back side cropped image data (step S617). The cropping processor 207 performs processing to correct the inclination of the cut back side cropped image data.

[0090] When the detection of the back-side document area B1 is not successful even in the back-side document image data 500 (No in step S613), the cropping processing unit 207 cuts out the area based on a predetermined method (step S618). When both sides of the document 200 are to be output, the cropping processing unit 207 cuts out cropped image data based on a predetermined method from both the front-side document image data 400 and the back-side document image data 500. When only one side of the document 200 is to be output, the cropping processing unit 207 cuts out cropped image data from the front-side document image data 400 based on a predetermined method. The predetermined method will be described in detail later.

[0091] After step S611, step S617, or step S618, the control unit 201 checks whether or not there is a document 200 set (step S619). In other words, the control unit 201 checks whether or not there is a document 200 remaining in the document tray 21. The control unit 201 checks based on the output of the set sensor 210. If there is no document 200 remaining (No in step S619), the control unit 201 ends the flowchart (END). If there is a document 200 remaining (Yes in step S619), the control unit 201 executes step S603 (returns to step S603). That is, reading, area detection processing, crop processing, and tilt correction processing are executed for the next document 200.

[0092] The cut-out cropped image data is used for the job. In the case of a scan transmission job, the control unit 201 causes the communication unit 7 to transmit the cut-out front cropped image data and the cut-out back cropped image data. In the case of a copy job, the control unit 201 causes the image forming unit 3 to perform printing based on the cut-out front cropped image data and the cut-out back cropped image data. In the case of a scan save job, the control unit 201 generates a save file including the cut-out front cropped image data and the cut-out back cropped image data. The control unit 201 causes the generated save file to be stored in a non-volatile manner in the storage unit 6 or an external storage device.

[0093] Here, the document reading device includes a first opposing plate (front surface opposing plate 81) and a second opposing plate (rear surface opposing plate 82). The first opposing plate is disposed at a position facing the first reading section (front surface reading unit 12), and is read by the first reading section as the background of the document 200 being transported. The second opposing plate is disposed at a position facing the second reading section (rear surface reading unit 23), and is read by the second reading section as the background of the document 200 being transported. One of the first opposing plate and the second opposing plate is gray, and the other is white. This allows the color of the outside of the document 200 on the first surface (front surface) to be different from the color of the outside of the document 200 on the second surface (rear surface) when the document 200 is read larger than the document 200. In the document image data of either the front surface or the rear surface, the edge of the document 200 is likely to appear clearly in the image data. Therefore, the probability of successful detection of the document area can be increased.

[0094] Specifically, the first reading section (front surface reading unit 12) can move the first reading position (front surface reading position P1). The first opposing plate (front surface opposing plate 81) has a gray portion 81a and a white portion 81b whose longitudinal direction is the main scanning direction. When the document crop function is set to be used, the first reading section reads the position where the gray portion 81a is the background as the first reading position (front surface reading position P1). When the document crop function is set not to be used, the first reading section reads the position where the white portion 81b is the background as the first reading position. This makes it possible to change the background color of the first side reading depending on whether or not the document 200 is cropped. Generally, white paper is often used in offices and companies. When the document crop function is not used, the background is set to white, and gray can be prevented from being included in the document image data.

[0095] Next, an example of outputting only one side (front side) of the document 200 will be described with reference to Fig. 11. For example, a one-sided transmission job for transmitting image data of one side of the document 200, a one-sided copy job for printing based on image data of one side of the document 200, or a one-sided storage job for storing image data of one side of the document 200 corresponds to a job for outputting one side of the document 200.

[0096] Before starting in FIG. 11, the operation panel 5 accepts that the document cropping function is enabled. The control unit 201 recognizes that the document cropping function is enabled. The user has also completed the settings required for the job. For example, in the case of a scan transmission job, the user has completed settings such as the destination address and the reading resolution. The operation panel 5 also accepts the selection of outputting only one side of the document 200. In other words, the control unit 201 recognizes that the job will be performed based on image data of one side of the document 200.

[0097] 11 is the time when the start of a job is instructed with the document crop function enabled, for example, when the control unit 201 recognizes that the start button on the operation panel 5 has been operated.

[0098] First, the processing in steps S1101 to S1109 is the same as the processing in steps S601 to S609 described with reference to Fig. 6. The description of steps S601 to S609 can be used, so the description of steps S1101 to S1109 will be omitted.

[0099] Even for a job set to output only one side (front side) of the document 200, the control unit 201 causes both the front side reading unit 12 and the back side reading unit 23 to read. When outputting only one side of the document 200, the cropping processing unit 207 does not need to crop from the back side document image data 500. Therefore, processing to obtain the coordinates of the back side corresponding area and cropping the range of the back side corresponding area are not performed.

[0100] When the detection of the front document area A1 in the front document image data 400 fails (No in step S1107), the area detection unit 206 performs a process to detect the back document area B1 in the back document image data 500 (step S1110). Then, the area detection unit 206 determines whether the detection of the back document area B1 in the back document image data 500 was successful (step S1111).

[0101] When the detection of the back-side document area B1 in the back-side document image data 500 is successful (Yes in step S1111), the area detection unit 206 stores the coordinates (position information) of the successfully detected back-side document area B1 (second document area) in the memory unit 6 (step S1112).

[0102] Then, the cropping processor 207 recognizes a front area (front-side corresponding area) of the front original image data 400 that corresponds to the back-side original area B1 based on the back-side original area B1 (step S1113).

[0103] For example, the crop processing unit 207 may generate inverted image data by inverting the back side original image data 500 vertically and horizontally. For example, the vertical direction is the main scanning direction, and the horizontal direction is the sub-scanning direction. Then, the crop processing unit 207 recognizes the coordinates of the back side original area B1, which has been inverted vertically and horizontally, in the inverted image data, as the coordinates of the front side corresponding area. For example, the crop processing unit 207 recognizes the coordinates of the four corners (upper right, upper left, lower right, and lower left) of the back side original area B1, which has been inverted vertically and horizontally, in the inverted image data. The crop processing unit 207 recognizes a quadrangular range having the recognized coordinates as vertices in the front side original image data 400 as the front side corresponding area.

[0104] Then, the cropping processor 207 cuts out the range of the front corresponding area from the front document image data 400 as front cropped image data (step S1114). The cropping processor 207 performs processing to correct the inclination of the cut front cropped image data. Note that since only one side of the document 200 is output, the cropping processor 207 does not cut out the back cropped image data.

[0105] When the detection of the document area B1 on the back side also fails in the back side document image data 500 (No in step S1111), the cropping processor 207 cuts out the area based on a predetermined method (step S1115). When outputting only one side of the document 200, the cropping processor 207 cuts out cropped image data from the front side document image data 400 based on a predetermined method. The predetermined method will be described in detail later.

[0106] The cut-out cropped image data is used for the job. In the case of a scan transmission job, the control unit 201 causes the communication unit 7 to transmit the cut-out front cropped image data. In the case of a copy job, the control unit 201 causes the image forming unit 3 to perform printing based on the cut-out front cropped image data. In the case of a scan save job, the control unit 201 generates a save file including the cut-out front cropped image data. The control unit 201 stores the generated save file in a non-volatile manner in the memory unit 6 or an external storage device.

[0107] (If detection of the document area fails on both the front and back sides) Next, an example of cropping processing when detection of the document area on both the front and back sides has failed will be described with reference to FIG.

[0108] When the document crop function is used, the control unit 201 makes the color of the opposing plate different between front side reading and back side reading. Even if the background color of the document 200 is white, the edges of the document 200 appear clearly in the image data due to the gray background. Therefore, the document area can be accurately cut out. In addition, because the document 200 is read whether it is gray or against a white background, the edges of the document 200 appear clearly in the image data. There is a high possibility that the document area can be accurately cut out.

[0109] However, when the background color of the document 200 is close to the gray portion 81a of the front facing plate 81 and also close to the color of the back facing plate 82, or when the document 200 is two colors, white and gray, there is a possibility that the document area will fail to be detected in both the front document image data 400 and the back document image data 500. On the other hand, when the document crop function is used, a larger document than the document 200 is read. For example, the edge of the front document image data is gray. Therefore, when the document crop function is used, it is preferable to perform cutting out from the document image data even if the document area cannot be detected on both the front and back sides.

[0110] In the multifunction device 100, a plurality of cropping methods are prepared. It is possible to select which method to use. The operation panel 5 accepts the selection of the method to be used. The control unit 201 (cropping processing unit 207) crops the cropped image data using the selected method.

[0111] (1) First method There are individual differences in the document transport device 2. There may be cases where the document transport device 2 is prone to tilting in a certain direction. Therefore, the first method refers to past history and determines the area to be cut out from the document image data. In other words, the tendency of the document transport device 2 is taken into consideration.

[0112] First, the storage unit 6 stores position information i1 including the coordinates of the detected document area A1 on the front side (see FIG. 2). The storage unit 6 stores the position information i1 for each size of the document 200. For example, the control unit 201 causes the storage unit 6 to store the coordinates of the four corners (upper right, upper left, lower right, and lower left) of the detected document area A1 on the front side as position information i1 for each document.

[0113] Then, the crop processing unit 207 determines an average area of ​​the first document area detected by reading the multiple documents based on the position information of the multiple documents. For example, the crop processing unit 207 sums up the coordinate values ​​of the X coordinates in the image data of the upper right corners of the multiple documents and divides the sum by the total number of documents. The crop processing unit 207 also sums up the coordinate values ​​of the Y coordinates in the image data of the upper right corners of the multiple documents and divides the sum by the total number of documents. The crop processing unit 207 recognizes the obtained average values ​​of the X coordinates and the Y coordinates as the coordinates of the upper right corner of the average area. The crop processing unit 207 performs the same calculation for the upper left corner, the lower right corner, and the lower left corner. Then, the crop processing unit 207 determines a quadrangular area with the recognized upper right corner, upper left corner, lower right corner, and lower left corner as vertices as the average area. The crop processing unit 207 cuts out the determined average area from the front document image data 400 as the front cropped image data.

[0114] When the back side of the document 200 is also cut out to output both sides of the document 200, an area (estimated area) corresponding to the average area is determined in the back document image data 500. For example, the crop processing unit 207 may generate inverted image data by inverting the front document image data 400 vertically and horizontally. Then, the crop processing unit 207 recognizes the coordinates of the four corners of the average area, which has been inverted vertically and horizontally, in the inverted image data as the coordinates of the four corners of the estimated area. For example, the crop processing unit 207 recognizes a quadrangular range having the recognized coordinates as vertices in the back document image data 500 as the estimated area. Then, the crop processing unit 207 cuts out the estimated area from the second document image data as second cropped image data.

[0115] In this manner, the document reading device includes a storage unit 6. The storage unit 6 stores position information i1 including the coordinates of the detected first document area (document area A1 on the front side). If the area detection unit 206 fails to detect both the first document area and the second document area (document area B1 on the back side), the crop processing unit 207 determines an average area of ​​the first document area (document area A1 on the front side) detected by reading the multiple documents 200 based on the position information of the multiple documents 200, and cuts out the average area from the first document image data (document image data 400 on the front side) as first crop image data (cropped image data on the front side). The crop processing unit 207 obtains the coordinates of an estimated area corresponding to the average area in the second document image data (document image data 500 on the back side). The crop processing unit 207 cuts out the estimated area from the second document image data as second crop image data (cropped image data on the back side). As a result, even if the detection of the document area fails on both the front and back sides, it is possible to cut out an area that is highly likely to be the document area. That is, it is possible to increase the probability of extracting the document area without deviation while taking into consideration individual differences in document reading devices.

[0116] (2) Second Method When a document stack is set in an inclined state on the document tray 21, multiple documents 200 may be conveyed inclined in the same direction. Therefore, the second method refers to the document 200 read immediately before, and determines the area to be cut out from the document image data.

[0117] The cropping processor 207 cuts out the same range as the area cut out as the front cropped image data in the previous document 200 from the front document image data 400 as front cropped image data. When the back side is also cut out to output both sides of the document 200, the cropping processor 207 cuts out the same range as the area cut out as the back cropped image data in the previous document 200 from the back document image data 500 as back cropped image data.

[0118] In this way, when the area detection unit 206 fails to detect both the first original area (front original area A1) and the second original area (back original area B1), the crop processing unit 207 cuts out the same range as the area cut out as the first crop image data (front crop image data) in the previous original 200 from the first original image data (front original image data 400) as the first crop image data. The crop processing unit 207 cuts out the same range as the area cut out as the second crop image data (back crop image data) in the previous original 200 from the second original image data (back original image data 500) as the second crop image data. This makes it possible to cut out an area that is highly likely to be an original area even if the detection of the original area fails on both the front and back sides. In other words, it is possible to increase the probability of cutting out the original area without deviation while taking into account the inclination of the set original stack.

[0119] (3) The third method The front side reading unit 12 and the back side reading unit 23 read larger than the original 200. How much larger they will read is predetermined. As described in FIG. 7, the multifunction device 100 reads larger than the original 200 by 5 mm on one end side in the main scanning direction, 5 mm on the other end side in the main scanning direction, 5 mm on one end side in the sub-scanning direction, and 5 mm on the other end side in the sub-scanning direction.

[0120] Therefore, the cropping processor 207 may cut out the range inside a predetermined inner frame from the front cropped image data as the front cropped image data. When the back side is also cut out to output both sides of the document 200, the cropping processor 207 may cut out the range inside the inner frame from the back cropped image data as the back cropped image data.

[0121] The inner frame corresponds to the position of an edge of the original 200 that is not tilted. For example, the inner frame is rectangular. The area of ​​the inner frame is smaller than the area of ​​the original image data. The position of the inner frame is determined in advance. Two sides of the inner frame rectangle are parallel to the main scanning direction. The other two sides of the inner frame rectangle are parallel to the sub-scanning direction. One side of the rectangle is located 5 mm inward from one end of the original image data in the main scanning direction, the other side is located 5 mm inward from the other end of the original image data in the main scanning direction, another side is located 5 mm inward from one end of the original image data in the sub-scanning direction, and the remaining side is located 5 mm inward from the other end of the original image data in the sub-scanning direction.

[0122] [Other application examples] The above description is merely an embodiment of the present invention, and is not intended to limit the technical scope of the present invention. That is, the present invention can be applied to aspects other than the embodiment.

[0123] In the above description, an example is described in which the first reading section is the front reading unit 12, the first reading position is the front reading position P1, the first surface is the front surface of the document 200, the second reading section is the back reading unit 23, the second reading position is the back reading position P2, the second surface is the back surface of the document 200, the first document image data is the image data of the front surface of the document 200 (front document image data 400), the second document image data is the image data of the back surface of the document 200 (back document image data 500), the first document area is the front document area A1 (document portion) of the front document image data 400, and the second document area is the back document area B1 (document portion) of the back document image data 500. Also, an example is described in which the first opposing plate is an opposing plate (front opposing plate 81) for the front reading unit 12, and the second opposing plate is an opposing plate (back opposing plate 82) for the back reading unit 23.

[0124] However, the first reading section may be the back-side reading unit 23, the first reading position may be the back-side reading position P2, the first surface may be the back surface of the document 200, the second reading section may be the front-side reading unit 12, the second reading position may be the front-side reading position P1, the second surface may be the front surface of the document 200, the first document image data may be the image data of the back surface of the document 200 (back-side document image data 500), the second document image data may be the image data of the front surface of the document 200 (front-side document image data 400), the first document area may be the document area (document portion) of the back-side document image data 500, and the second document area may be the document area (document portion) of the front-side document image data 400. Also, the first opposing plate may be an opposing plate (back-side opposing plate 82) for the back-side reading unit 23, and the second opposing plate may be an opposing plate (front-side opposing plate 81) for the front-side reading unit 12.

[0125] The present disclosure can also be regarded as a method for controlling a document reading device. Specifically, the method for controlling a document reading device according to the present disclosure includes: transporting a document 200 along a document transport path 26; reading a first side of the document 200 being transported larger than the document 200 being transported at a first reading position of the document transport path 26; reading a second side, which is the side opposite to the first side, larger than the document 200 being transported at a second reading position of the document transport path 26; detecting a first document area, which is the area of ​​the document 200, from the first document image data obtained by reading the first side; detecting a second document area, which is the area of ​​the document 200, from the second document image data obtained by reading the second side; and, based on one document area that has been successfully detected among the first document area and the second document area, cutting out a document portion of the first side from the first document image data as first crop image data and cutting out a document portion of the second side from the second document image data as second crop image data.

[0126] According to this method, the area of ​​the original 200 can be detected for each of the image data of the front and back sides of the original 200. Even if the edges of the original 200 are not clearly shown in the image data of the front side, the original portion on the front side and the original portion on the back side can be accurately cut out based on the detection result of the back side. Also, even if the edges of the original 200 are not clearly shown in the image data of the back side, the original portion on the front side and the original portion on the back side can be accurately cut out based on the detection result of the back side. Therefore, the original portions can be cut out reliably and accurately. [Explanation of symbols]

[0127] 100 multifunction device, 200 document, 1 image reading device, 11 document table, 12 front side reading unit, 12a first moving frame, 12b second moving frame, 12c front side lens, 12d front side line sensor, 12e front side irradiation lamp, 13 moving mechanism, 2 document transport device, 21 document tray, 22 document discharge tray, 23 back side reading unit, 23a back side irradiation lamp, 23b back side lens, 23c back side line sensor, 24a first document guide, 24b second document guide, 25 main scanning width detection unit, 26 document transport path, 27 document transport unit, 27a pickup roller, 27b paper feed roller pair, 27c first transport roller pair, 27d second transport roller pair, 27e third transport roller pair, 27f registration roller, 27g fourth transport roller pair, 27h fifth transport roller pair, 27i Discharge roller pair, 28 roller drive unit, 29 transport detection unit, 29a first transport sensor, 29b second transport sensor, 29c third transport sensor, 29d fourth transport sensor, 29e fifth transport sensor, 210 set sensor, 3 image forming unit, 31 discharge tray, 4 paper feed unit, 41 paper feed cassette, 5 operation panel, 51 touch panel, 52 display, 6 memory unit, 7 communication unit, 81 front facing plate, 81a gray portion, 81b white portion, 82 back facing plate, 201 control unit, 202 control circuit, 203 main memory unit, 204 image data generation circuit, 205 image processing circuit, 206 area detection unit, 207 crop processing unit, 300 read target area, 400 front document image data, 500 back document image data, A1 document area (front), B1 Document area (rear), D1 resistance data, P1 front side reading position, P2 back side reading position, Xb sub-scanning width, Yb main scanning width, i1 position information

Claims

1. a document transport unit that transports a document along a document transport path; a first reading unit that reads a first side of a conveyed document at a first reading position of the document conveying path in a larger size than the conveyed document; a second reading unit that reads a second surface, which is a surface opposite to the first surface, larger than the conveyed document at a second reading position of the document conveying path; an area detection unit capable of executing a process of detecting a first original area, which is an area of ​​an original, from first original image data obtained by reading the first side, and a process of detecting a second original area, which is an area of ​​an original, from second original image data obtained by reading the second side; a cropping processing unit that crops out a document portion of the first side from the first document image data as first cropped image data and crops out a document portion of the second side from the second document image data as second cropped image data, based on one document area that has been successfully detected out of the first document area and the second document area; When the area detection unit has succeeded in detecting the first document area, The document reading device, wherein the cropping processing unit does not perform a process of detecting the second document area.

2. A document transport section that transports a document along a document transport path; a first reading unit that reads a first side of a conveyed document at a first reading position of the document conveying path in a larger size than the conveyed document; a second reading unit that reads a second surface, which is a surface opposite to the first surface, larger than the conveyed document at a second reading position of the document conveying path; an area detection unit capable of executing a process of detecting a first original area, which is an area of ​​an original, from first original image data obtained by reading the first side, and a process of detecting a second original area, which is an area of ​​an original, from second original image data obtained by reading the second side; a cropping processing unit that crops out a document portion of the first side from the first document image data as first cropped image data and crops out a document portion of the second side from the second document image data as second cropped image data based on one document area that has been successfully detected out of the first document area and the second document area; a first opposing plate that is disposed at a position facing the first reading unit and that is read by the first reading unit as a background of the transported document; a second opposing plate that is disposed at a position facing the second reading unit and that is read by the second reading unit as a background of the transported document; One of the first opposing plate and the second opposing plate is gray, and the other is white, the first reading unit is movable to the first reading position, the first opposing plate has a gray portion and a white portion whose longitudinal direction is in the main scanning direction, When a document cropping function is set, the first reading unit reads a position where the gray portion is a background as the first reading position, When a setting is made not to use the document cropping function, the first reading section reads a position where the white portion is a background as the first reading position.

3. A document transport section that transports a document along a document transport path; a first reading unit that reads a first side of a conveyed document at a first reading position of the document conveying path in a larger size than the conveyed document; a second reading unit that reads a second surface, which is a surface opposite to the first surface, larger than the conveyed document at a second reading position of the document conveying path; an area detection unit capable of executing a process of detecting a first original area, which is an area of ​​an original, from first original image data obtained by reading the first side, and a process of detecting a second original area, which is an area of ​​an original, from second original image data obtained by reading the second side; a cropping processing unit that crops out a document portion of the first side from the first document image data as first cropped image data and crops out a document portion of the second side from the second document image data as second cropped image data based on one document area that has been successfully detected out of the first document area and the second document area; a storage unit that stores position information including coordinates of the detected first document region; When the area detection unit fails to detect both the first document area and the second document area, The cropping processing unit includes: determining an average area of ​​the first document area detected by reading the plurality of documents based on the position information of the plurality of documents, and cutting out the average area from the first document image data as the first cropped image data; an estimated area corresponding to the average area is determined in the second original image data, and the estimated area is cut out from the second original image data as the second cropped image data.

4. A document transport section that transports a document along a document transport path; a first reading unit that reads a first side of a conveyed document at a first reading position of the document conveying path in a larger size than the conveyed document; a second reading unit that reads a second surface, which is a surface opposite to the first surface, larger than the conveyed document at a second reading position of the document conveying path; an area detection unit capable of executing a process of detecting a first original area, which is an area of ​​an original, from first original image data obtained by reading the first side, and a process of detecting a second original area, which is an area of ​​an original, from second original image data obtained by reading the second side; a cropping processing unit that crops out a document portion of the first side from the first document image data as first cropped image data and crops out a document portion of the second side from the second document image data as second cropped image data, based on one document area that has been successfully detected out of the first document area and the second document area; When the area detection unit fails to detect both the first document area and the second document area, The cropping processing unit includes: cut out, as the first cropped image data, a range that is the same as the area cut out as the first cropped image data in the previous sheet of the conveyed document from the first document image data; The document reading device cuts out, as the second cropped image data, from the second document image data an area that is the same as an area cut out as the second cropped image data from the previous document.

5. Transporting a document along a document transport path; At a first reading position of the document transport path, a first side of the transported document is read larger than the transported document; At a second reading position of the document transport path, a second surface opposite to the first surface is read larger than the transported document; detecting a first document area, which is an area of ​​a document, from the first document image data obtained by reading the first surface; if the detection of the first document area is not successful, a second document area, which is a document area, is detected from the second document image data obtained by reading the second surface, and if the detection of the first document area is successful, the second document area is not detected. A method for controlling a document reading device, comprising: based on one document area among the first document area and the second document area that is successfully detected, cutting out a document portion of the first side from the first document image data as first crop image data, and cutting out a document portion of the second side from the second document image data as second crop image data.

Citation Information

Patent Citations

  • Production of thin fin material for heat exchanger

    JP2000017409A

  • Image reading apparatus

    JP2007088654A

  • Image reading apparatus

    JP2015142304A

  • Image reading device

    JP2017201767A

  • Image reading device

    JP2018137521A