JP2014072691A - Image reading apparatus - Google Patents

Image reading apparatus Download PDF

Info

Publication number
JP2014072691A
JP2014072691A JP2012217041A JP2012217041A JP2014072691A JP 2014072691 A JP2014072691 A JP 2014072691A JP 2012217041 A JP2012217041 A JP 2012217041A JP 2012217041 A JP2012217041 A JP 2012217041A JP 2014072691 A JP2014072691 A JP 2014072691A
Authority
JP
Japan
Prior art keywords
scanning direction
document
image
sub
main scanning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2012217041A
Other languages
Japanese (ja)
Other versions
JP6115804B2 (en
Inventor
Shingo Saito
慎吾 齊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2012217041A priority Critical patent/JP6115804B2/en
Publication of JP2014072691A publication Critical patent/JP2014072691A/en
Application granted granted Critical
Publication of JP6115804B2 publication Critical patent/JP6115804B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To detect a mounting direction of a book original in an image reading apparatus which reads the book original.SOLUTION: A multifunction machine with an image reading apparatus, includes a platen glass and a reading unit, which reads a book original mounted on the platen glass in a spread state by the reading unit (S6 and S18), obtains gradation value distribution in a main scanning direction or a sub-scanning direction by analyzing the obtained pre-scanned image (S8 and S20), detects whether a predetermined valley shape is present in the obtained gradation value distribution (S10 and S22), and identifies a mounting direction of the book original if there is the valley shape, on the basis of the direction of gradation value distribution in which the valley shape is detected.

Description

本明細書に開示される発明は、ブック原稿を読み取る画像読取装置に関する。   The invention disclosed in this specification relates to an image reading apparatus that reads a book document.

従来、書籍原稿などのブック原稿を読み取る画像読取装置が知られている(例えば、特許文献1)。この画像読取装置では、ブック原稿をスキャン方向に読み取り、スキャン方向に読み取った1ライン分の画像データの輝度ヒストグラムから、ブック原稿内の文字列が並んでいる方向を検出する。そして、ブック原稿内の文字列が、スキャン方向と平行な方向に並んでいる場合に、ブック原稿が縦書きであると判別し、スキャン方向と直交する方向に並んでいる場合に、ブック原稿が横書きであると判別する技術が開示されている。   Conventionally, an image reading apparatus that reads a book document such as a book document is known (for example, Patent Document 1). In this image reading apparatus, a book document is read in the scanning direction, and the direction in which the character strings in the book document are arranged is detected from a luminance histogram of one line of image data read in the scanning direction. When the character strings in the book document are aligned in a direction parallel to the scan direction, it is determined that the book document is vertically written, and when the book document is aligned in a direction orthogonal to the scan direction, the book document is A technique for discriminating that the writing is horizontal writing is disclosed.

特開平9−200501号公報JP-A-9-200501

画像読取装置においてブック原稿を読み取る際、画像読取装置に対してブック原稿がどのような向きで載置されるかが不明な場合も多い。以下、ブック原稿中心の綴じ部がスキャン方向である主走査方向と平行となるような載置向きを縦置きと呼び、綴じ部が主走査方向と直交するような載置向きを横置きと呼ぶ。この場合、従来技術を用いて、ブック原稿内の文字列が主走査方向と平行方向に文字列が並んでいることを検出したとしても、ブック原稿が縦置きされている場合には、ブック原稿が縦書きとなり、ブック原稿が横置きされている場合には、ブック原稿が横書きとなる。つまり、ブック原稿が縦書きか横書きかを検出するためには、まず、ブック原稿の載置向きを検出する必要がある。   When a book document is read by the image reading device, it is often unclear how the book document is placed with respect to the image reading device. Hereinafter, the placement direction in which the binding portion at the center of the book document is parallel to the main scanning direction that is the scanning direction is referred to as vertical placement, and the placement direction in which the binding portion is orthogonal to the main scanning direction is referred to as horizontal placement. . In this case, even if it is detected that the character strings in the book document are aligned in a direction parallel to the main scanning direction using the conventional technique, if the book document is placed vertically, the book document Is vertically written, and when the book document is placed horizontally, the book document is written horizontally. That is, in order to detect whether a book document is vertically written or horizontally written, it is first necessary to detect the orientation of the book document.

また、ブック原稿の載置向きは、ブック原稿を読み取った読取画像を回転処理等する際や、読取画像を印字等する際にも必要とされる。このように、ブック原稿の載置向きを検出する技術が所望されている。しかし、従来技術には、ブック原稿の載置向きを検出する有効な技術が開示されていない。   The orientation of the book document is also required when rotating the read image obtained by reading the book document or when printing the read image. Thus, a technique for detecting the orientation of a book document is desired. However, the prior art does not disclose an effective technique for detecting the orientation of the book document.

本明細書では、ブック原稿を読み取る画像読取装置において、ブック原稿の載置向きを検出する技術を開示する。   The present specification discloses a technique for detecting the orientation of a book document in an image reading apparatus that reads the book document.

本明細書によって開示される画像読取装置は、原稿載置台と、前記原稿載置台の主走査方向に読み取る読取部と、前記読取部を前記原稿載置台の副走査方向に移動させる駆動部と、制御部と、を備え、前記制御部は、前記駆動部を用いて前記読取部を前記副走査方向に移動させながら、前記原稿載置台に載置されたブック原稿を前記読取部を用いて前記主走査方向に読み取らせる読取処理と、前記読取処理によって読み取られた読取画像のうち、長辺が前記主走査方向に沿うとともに前記読取画像の前記主走査方向の全域に亘って広がる主走査短冊領域の主走査方向の濃度分布、若しくは、長辺が前記副走査方向に沿うとともに前記読取画像の前記副走査方向の全域に亘って広がる副走査短冊領域の副走査方向の濃度分布の少なくとも一方の濃度分布を取得する取得処理と、前記取得処理によって取得された濃度分布に、基準距離以上に亘って濃度減少が継続する減少分布と前記基準距離以上に亘って濃度上昇が継続する上昇分布が連続して発生する谷が存在する場合に、前記谷が存在する濃度分布が取得された短冊領域の長辺の方向と直交する方向に沿って前記ブック原稿の綴じ部が載置されるように前記原稿載置台に前記ブック原稿が載置されていると判断する判断処理と、を実行する。   An image reading device disclosed in this specification includes a document placement table, a reading unit that reads in the main scanning direction of the document placement table, a drive unit that moves the reading unit in the sub-scanning direction of the document placement table, A control unit, wherein the control unit uses the reading unit to move the reading unit in the sub-scanning direction while moving the reading unit in the sub-scanning direction. Reading process for reading in the main scanning direction, and a main scanning strip area whose long side extends along the main scanning direction and extends over the entire area in the main scanning direction of the read image read by the reading process At least one of the density distribution in the main scanning direction, or the density distribution in the sub-scanning direction of the sub-scanning strip region of which the long side extends along the sub-scanning direction and extends over the entire area of the read image in the sub-scanning direction. The acquisition process for acquiring the degree distribution, the concentration distribution acquired by the acquisition process, the decrease distribution in which the concentration decrease continues over the reference distance and the increase distribution in which the concentration increase continues over the reference distance are continuous. In the case where there is a valley that occurs, the book document binding portion is placed along a direction orthogonal to the direction of the long side of the strip region where the density distribution in which the valley exists is acquired. A determination process for determining that the book document is placed on the document placement table;

この画像読取装置では、原稿載置台に載置されたブック原稿を読み取った読取画像から主走査方向若しくは副走査方向の濃度分布を取得し、当該濃度分布に所定の谷が存在する場合に、ブック原稿の綴じ部が沿う方向が特定される。ブック原稿では、綴じ部が沿う方向が特定されることで、ブック原稿の載置向きが一義的に特定される。従って、読取画像からブック原稿の載置向きを検出することができる。   In this image reading apparatus, the density distribution in the main scanning direction or the sub-scanning direction is acquired from the read image obtained by reading the book document placed on the document table, and the booklet is obtained when a predetermined valley exists in the density distribution. The direction along which the binding portion of the document is along is specified. In the book manuscript, the direction along which the binding portion extends is specified, so that the orientation of the book manuscript is uniquely specified. Therefore, the orientation of the book document can be detected from the read image.

また、上記の画像読取装置では、前記制御部は、前記取得処理において、前記主走査短冊領域の前記主走査方向の濃度分布を取得し、前記判断処理において、前記濃度分布に前記谷が存在する場合に、前記ブック原稿の綴じ部が前記副走査方向に沿って載置されていると判断する構成としても良い。   In the image reading apparatus, the control unit acquires a density distribution in the main scanning direction of the main scanning strip region in the acquisition process, and the valley exists in the density distribution in the determination process. In this case, a configuration may be adopted in which it is determined that the binding portion of the book document is placed along the sub-scanning direction.

この画像読取装置によれば、ブック原稿の綴じ部が副走査方向に沿って載置されていることを判断することができる。   According to this image reading apparatus, it can be determined that the binding portion of the book document is placed along the sub-scanning direction.

また、上記の画像読取装置では、前記制御部は、前記取得処理において、前記副走査短冊領域の前記副走査方向の濃度分布を取得し、前記判断処理において、前記濃度分布に前記谷が存在する場合に、前記ブック原稿の綴じ部が前記主走査方向に沿って載置されていると判断する構成としても良い。   In the image reading apparatus, the control unit acquires the density distribution in the sub-scanning direction of the sub-scanning strip region in the acquisition process, and the valley exists in the density distribution in the determination process. In this case, it may be configured that it is determined that the binding portion of the book document is placed along the main scanning direction.

この画像読取装置によれば、ブック原稿の綴じ部が主走査方向に沿って載置されていることを判断することができる。   According to this image reading apparatus, it can be determined that the binding portion of the book document is placed along the main scanning direction.

また、上記の画像読取装置では、前記制御部は、更に、前記判断処理において、前記ブック原稿の綴じ部が前記主走査方向に沿って載置されていると判断した場合、前記読取画像を90度回転させ、前記ブック原稿の綴じ部が前記副走査方向に沿って載置されていると判断した場合、前記読取画像を回転させずに維持する、回転処理を実行する構成としても良い。   In the image reading apparatus, when the control unit determines that the binding portion of the book document is placed along the main scanning direction in the determination process, the control unit further reads the read image by 90. It is also possible to perform a rotation process in which the read image is maintained without being rotated when it is determined that the binding portion of the book document is placed along the sub-scanning direction.

この画像読取装置によれば、読取画像からブック原稿の載置向きが判断されるので、当該載置向きを用いて読取画像に適切な回転処理を実行することができる。   According to this image reading apparatus, since the placement direction of the book document is determined from the read image, it is possible to execute an appropriate rotation process on the read image using the placement direction.

また、上記の画像読取装置では、前記制御部は、前記取得処理において、前記短冊領域を少なくとも当該短冊領域の長辺の方向において複数のブロックに分割し、各ブロック毎の濃度値を算出して濃度分布を取得し、前記判断処置において、前記基準距離に対応する基準個数の隣接する前記ブロックに亘って濃度減少が継続する減少分布と、前記基準個数の隣接する前記ブロックに亘って濃度増加が継続する上昇分布が連続して発生する場合に、前記谷が存在すると判断する構成としても良い。   In the image reading apparatus, the control unit divides the strip area into a plurality of blocks in at least the long side direction of the strip area and calculates a density value for each block in the acquisition process. A density distribution is acquired, and in the determination process, a decrease distribution in which the density decrease continues over the adjacent blocks of the reference number corresponding to the reference distance, and an increase in density over the adjacent blocks of the reference number. It is good also as a structure which judges that the said trough exists when the continuous ascent distribution generate | occur | produces continuously.

この画像読取装置によれば、短冊領域を複数のブロックに分割することで、濃度分布に谷が存在するか否かを判断しやすく、ブック原稿の綴じ部が沿う方向を特定しやすい。   According to this image reading apparatus, by dividing the strip region into a plurality of blocks, it is easy to determine whether or not a valley exists in the density distribution, and it is easy to specify the direction along which the binding portion of the book document is along.

また、上記の画像読取装置では、前記制御部は、更に、前記判断処理において、前記谷が存在する濃度分布が取得された短冊領域の長辺の方向における一方の端点から前記減少分布と前記上昇分布との境界点までの距離の2倍を、前記ブック原稿の原稿幅と推定する推定処理を実行する構成としても良い。   In the image reading apparatus, the control unit may further include, in the determination process, the decrease distribution and the increase from one end point in the long side direction of the strip region where the density distribution in which the valley exists is acquired. A configuration may be adopted in which an estimation process for estimating twice the distance to the boundary point with the distribution as the document width of the book document is executed.

この画像読取装置によれば、読取画像から取得される濃度分布の谷を用いて、ブック原稿の原稿幅を推定することができる。   According to this image reading apparatus, it is possible to estimate the document width of the book document using the valley of the density distribution acquired from the read image.

また、上記の画像読取装置では、前記原稿載置台は、前記ブック原稿が載置される載置面から見て長方形状をしているとともに、その1つの頂点が原点に設定され、前記ブック原稿は、前記原点を基準として載置され、前記短冊領域は、前記読取画像のうち、前記原点に対応する基準点を含む前記読取画像の端辺側に設定される構成としても良い。   In the image reading apparatus, the document placing table has a rectangular shape as viewed from the placement surface on which the book document is placed, and one vertex is set as an origin, and the book document is May be placed with the origin as a reference, and the strip area may be set on the edge side of the read image including a reference point corresponding to the origin in the read image.

この画像読取装置によれば、予め設定された主走査短冊領域若しくは副走査短冊領域を用いて、濃度分布を取得しやすい。   According to this image reading apparatus, it is easy to obtain a density distribution using a preset main scanning strip region or sub-scanning strip region.

本明細書によれば、ブック原稿を読み取る画像読取装置において、ブック原稿の載置向きを検出することができる。   According to the present specification, in the image reading apparatus that reads a book document, the orientation of the book document can be detected.

複合機の主走査方向における概略的な断面図Schematic cross-sectional view of the MFP in the main scanning direction 複合機の電気的構成を概略的に示すブロック図Block diagram schematically showing the electrical configuration of the MFP 画像読取処理を示すフローチャートFlow chart showing image reading process ブック原稿が横置きされた場合のプラテンガラスの概略的な上面図Schematic top view of platen glass when a book document is placed horizontally 第1プレスキャン画像PG1の主走査方向における階調値分布Gradation value distribution in the main scanning direction of the first pre-scan image PG1 ブック原稿の綴じ部の向きと主走査方向における原稿幅Book document binding direction and document width in main scanning direction ブック原稿が縦置きされた場合のプラテンガラスの概略的な上面図Schematic top view of platen glass when a book document is placed vertically 解析画像KGの副走査方向における階調値分布Tone value distribution in the sub-scanning direction of the analysis image KG ブック原稿の綴じ部の向きと副走査方向における原稿幅Book document binding direction and document width in the sub-scanning direction

<実施形態>
一実施形態を、図1ないし図9を用いて説明する。
<Embodiment>
One embodiment will be described with reference to FIGS.

1.複合機の機械的構成
図1は、本実施形態の複合機10の主走査方向における断面図である。この複合機10は、プリンタ機能、スキャナ機能、コピー機能、ファクシミリ機能などを備えた多機能周辺装置であり、画像読取装置の一例である。
1. FIG. 1 is a cross-sectional view of a multifunction machine 10 according to the present embodiment in the main scanning direction. The multifunction machine 10 is a multifunction peripheral device having a printer function, a scanner function, a copy function, a facsimile function, and the like, and is an example of an image reading apparatus.

図1に示すように、複合機10は、本体部11の上面に原稿Gを載置するためのプラテンガラス12と、読取部30と、駆動軸42とを含み、本体部11の上方には、プラテンガラス12を覆う原稿カバー15が設けられている。プラテンガラス12は、原稿載置台の一例である。   As shown in FIG. 1, the multifunction machine 10 includes a platen glass 12 for placing a document G on the upper surface of the main body 11, a reading unit 30, and a drive shaft 42. A document cover 15 that covers the platen glass 12 is provided. The platen glass 12 is an example of a document placement table.

プラテンガラス12は、本体部11の上面に水平に配置された透明な長方形のガラス板であり(図4、7参照)、外周に配置された枠体13により支えられている。図4、7に原稿Gが載置される載置面12Aからの上面図を示すように、プラテンガラス12は、その短辺が本体部11の前後方向に沿って配置され、その長辺が本体部11の左右方向に沿って配置されている。また、プラテンガラス12の載置面12Aにおける1つの頂点は、原点Pに設定されており、原稿Gは、プラテンガラス12の載置面12Aに載置される際に、原点Pを基準として載置される。   The platen glass 12 is a transparent rectangular glass plate disposed horizontally on the upper surface of the main body 11 (see FIGS. 4 and 7), and is supported by a frame body 13 disposed on the outer periphery. 4 and 7, the platen glass 12 is arranged with its short side along the front-rear direction of the main body 11, and the long side of the platen glass 12. Arranged along the left-right direction of the main body 11. Further, one vertex of the placement surface 12A of the platen glass 12 is set to the origin P, and the original G is placed on the basis of the origin P when placed on the placement surface 12A of the platen glass 12. Placed.

読取部30は、本体部11においてプラテンガラス12の下側に配置され、CIS(Contact Image Sensor)やCCD(Charge Coupled Device)などのイメージセンサを有する。読取部30は、プラテンガラス12の短辺方向に広がって形成されており、プラテンガラス12と対向する上面に複数の読取素子が当該方向に並んで配置されている。読取部30は、プラテンガラス12上に載置された原稿Gをプラテンガラス12の短辺方向に読み取る。具体的には、読取部30は、プラテンガラス12上に載置された原稿Gに光を照射してその反射光を各読取素子を用いて読み取り、原稿Gの読取データを生成する。プラテンガラス12の短辺方向は、主走査方向の一例であり、プラテンガラス12の長辺方向は、副走査方向の一例である。   The reading unit 30 is disposed below the platen glass 12 in the main body unit 11 and includes an image sensor such as a CIS (Contact Image Sensor) or a CCD (Charge Coupled Device). The reading unit 30 is formed so as to extend in the short side direction of the platen glass 12, and a plurality of reading elements are arranged in the direction on the upper surface facing the platen glass 12. The reading unit 30 reads the document G placed on the platen glass 12 in the short side direction of the platen glass 12. Specifically, the reading unit 30 irradiates the original G placed on the platen glass 12 with light, reads the reflected light using each reading element, and generates read data of the original G. The short side direction of the platen glass 12 is an example of the main scanning direction, and the long side direction of the platen glass 12 is an example of the sub-scanning direction.

駆動軸42は、読取部30をプラテンガラス12の長辺方向に移動させる軸であり、駆動部40(図2参照)は、読取部30を駆動軸42に沿って、つまり、副走査方向に移動させる。   The drive shaft 42 is an axis that moves the reading unit 30 in the long side direction of the platen glass 12, and the driving unit 40 (see FIG. 2) moves the reading unit 30 along the drive shaft 42, that is, in the sub-scanning direction. Move.

原稿カバー15は、本体部11の上面後方に設けられた回転軸16を介して開閉可能に取り付けられている。原稿カバー15を開いた状態(図1実線参照)では、プラテンガラス12の載置面12Aが開放され、使用者は載置面12Aに原稿Gを載置することができる。また、原稿カバー15を閉じた状態(図1二点鎖線参照)では、原稿カバー15は載置面12A及び載置面12Aに載置された原稿Gを上方から覆い、原稿Gをプラテンガラス12に押しつける。   The document cover 15 is attached so as to be openable and closable via a rotating shaft 16 provided at the rear of the upper surface of the main body 11. In a state where the document cover 15 is opened (see the solid line in FIG. 1), the placement surface 12A of the platen glass 12 is opened, and the user can place the document G on the placement surface 12A. When the document cover 15 is closed (see the two-dot chain line in FIG. 1), the document cover 15 covers the placement surface 12A and the document G placed on the placement surface 12A from above, and the document G is covered with the platen glass 12. Press against.

複合機10は、更に、各種のボタンやタッチパネル等を備え、ユーザからの操作入力を受け付ける操作部17や、ディスプレイやランプ等を備え、複合機10の状態を表示する表示部18が設けられている。   The multifunction device 10 further includes various buttons, a touch panel, and the like, an operation unit 17 that receives an operation input from a user, a display, a lamp, and the like, and a display unit 18 that displays the state of the multifunction device 10. Yes.

2.複合機の電気的構成
次に、複合機10の電気的構造について説明する。図2に示すように、複合機10は、中央処理装置(以下、CPU)20、ROM26、RAM27、読取部30、アナログフロントエンド(以下、AFE)22、画像処理部24、駆動部40を備え、これらにバス29を介して、操作部17、表示部18、などが接続されている。図2に点線21で示すように、CPU20と、ROM26と、RAM27を含めたものが、制御部の一例である。
2. Next, the electrical structure of the multifunction machine 10 will be described. As shown in FIG. 2, the multifunction machine 10 includes a central processing unit (hereinafter referred to as CPU) 20, ROM 26, RAM 27, reading unit 30, analog front end (hereinafter referred to as AFE) 22, image processing unit 24, and driving unit 40. The operation unit 17, the display unit 18, and the like are connected to these via a bus 29. As shown by a dotted line 21 in FIG. 2, the one including the CPU 20, the ROM 26, and the RAM 27 is an example of the control unit.

ROM26には、後述する画像読取処理など、複合機10の各種動作を実行するためのプログラムが記憶されており、CPU20は、ROM26から読み出したプログラムに従って、各部の制御を行う。   The ROM 26 stores a program for executing various operations of the multifunction machine 10 such as an image reading process to be described later. The CPU 20 controls each unit according to the program read from the ROM 26.

読取部30は、CPU20からの命令に基づいて、プラテンガラス12上に載置された原稿Gを主走査方向に読み取るとともに、駆動部40によって副走査方向に移動しながら、所定の読取範囲YH(図4、図7参照)に亘って読み取りを繰り返す。これにより、読取部30は、主走査方向及び副走査方向に複数の読取データが並んで構成される読取画像を取得すると、読取画像をAFE22に出力する。   The reading unit 30 reads a document G placed on the platen glass 12 in the main scanning direction based on a command from the CPU 20 and moves it in the sub-scanning direction by the driving unit 40 while moving the document G on a predetermined reading range YH ( Reading is repeated over a range of times (see FIGS. 4 and 7). Accordingly, when the reading unit 30 acquires a read image configured by arranging a plurality of read data in the main scanning direction and the sub-scanning direction, the reading unit 30 outputs the read image to the AFE 22.

AFE22は、読取部30に接続されており、CPU20からの命令に基づいて、読取部30から出力されるアナログ信号である読取データをデジタル信号である階調データに変換する。AFE22は、変換した階調データを、バス29を介してRAM27に記憶する。これによって、主走査方向及び副走査方向に複数の階調データが並んで構成される読取画像が、RAM27に記憶される。   The AFE 22 is connected to the reading unit 30, and converts read data that is an analog signal output from the reading unit 30 into gradation data that is a digital signal based on a command from the CPU 20. The AFE 22 stores the converted gradation data in the RAM 27 via the bus 29. As a result, a read image configured by arranging a plurality of gradation data in the main scanning direction and the sub-scanning direction is stored in the RAM 27.

画像処理部24は、CPU20からの命令に基づいて、RAM27に記憶された階調データに2値化処理等のエッジ抽出処理を行う。また、画像処理部24は、CPU20からの命令に基づいて、RAM27に記憶された階調データから主走査方向又は副走査方向における濃度分布を取得する処理、当該濃度分布に所定の減少分布や増加分布が存在するか否かを判断する処理、及びRAM27に記憶された読取画像を回転させる処理等を実行する。   The image processing unit 24 performs edge extraction processing such as binarization processing on the gradation data stored in the RAM 27 based on a command from the CPU 20. Further, the image processing unit 24 obtains a density distribution in the main scanning direction or the sub-scanning direction from the gradation data stored in the RAM 27 based on a command from the CPU 20, and a predetermined decrease distribution or increase in the density distribution. Processing for determining whether or not a distribution exists, processing for rotating a read image stored in the RAM 27, and the like are executed.

駆動部40は、モータMに接続されており、CPU20からの命令に基づいてパルス信号をモータMに送信する。モータMは、パルス信号の1パルスで、1ステップの回転角度分、回転駆動する。モータMが1ステップ分駆動すると、駆動軸42に沿って読取部30が所定距離の分だけ移動する。CPU20は、原稿Gを読み取る際に、駆動部40を用いて毎秒規定数のパルス信号を送信し、当該規定数に応じた読取速度で読取部30に原稿Gを読み取らせることで、駆動部40を用いて読取部30を副走査方向に移動させながら、読取部30を用いて主走査方向に原稿Gを読み取る。   The drive unit 40 is connected to the motor M and transmits a pulse signal to the motor M based on a command from the CPU 20. The motor M is driven to rotate by one rotation angle with one pulse of the pulse signal. When the motor M is driven by one step, the reading unit 30 moves along the drive shaft 42 by a predetermined distance. When reading the document G, the CPU 20 transmits a prescribed number of pulse signals per second using the driving unit 40 and causes the reading unit 30 to read the document G at a reading speed corresponding to the prescribed number, thereby driving the driving unit 40. The document G is read in the main scanning direction by using the reading unit 30 while moving the reading unit 30 in the sub-scanning direction by using.

3.画像読取処理
次に、図3ないし図9を参照して、複合機10における原稿Gの画像読取処理について説明する。本実施形態では、本などのブック原稿Gが見開き状態でプラテンガラス12の載置面12Aに(以下、プラテンガラス12上に)載置され、ブック原稿Gの一対の見開き頁の画像を読み取る形態について説明する。
3. Image Reading Process Next, an image reading process for the original G in the multifunction machine 10 will be described with reference to FIGS. 3 to 9. In the present embodiment, a book document G such as a book is placed on the placement surface 12A of the platen glass 12 in a spread state (hereinafter, on the platen glass 12), and an image of a pair of spread pages of the book document G is read. Will be described.

ブック原稿Gは、一般に、複数枚の用紙が綴じられて構成されていることから、図1に示すように、見開き状態でプラテンガラス12上にブック原稿Gが載置されると、一対の見開き頁の中央部Zがプラテンガラス12から浮く。以下、ブック原稿Gの中央部Zを綴じ部Zと称す。   Since the book document G is generally constituted by binding a plurality of sheets, when the book document G is placed on the platen glass 12 in a spread state as shown in FIG. A central portion Z of the page floats from the platen glass 12. Hereinafter, the central portion Z of the book document G is referred to as a binding portion Z.

そのため、ブック原稿Gをプラテンガラス12上に載置して読み取ると、プラテンガラス12から浮くブック原稿Gの綴じ部Zには、読取部30からの光が照射されにくく、綴じ部Zに対応する読取素子で読み取られる反射光の強度が弱まる(図5(A)、図8(A)参照)。以下、綴じ部Zに対応して読取画像に表れる低階調範囲を谷Tと称す。なお、谷Tの詳細な定義については、後述して具体的に説明する。   Therefore, when the book original G is placed on the platen glass 12 and read, the binding portion Z of the book original G floating from the platen glass 12 is not easily irradiated with light from the reading unit 30 and corresponds to the binding portion Z. The intensity of the reflected light read by the reading element is weakened (see FIGS. 5A and 8A). Hereinafter, the low gradation range appearing in the read image corresponding to the binding portion Z is referred to as a valley T. The detailed definition of the valley T will be specifically described later.

本実施形態の画像読取処理では、ブック原稿Gを読み取り、取得された読取画像から谷Tを検出することで、ブック原稿Gが、綴じ部Zが主走査方向に沿って配置された縦置き(図7参照)に載置されているか、綴じ部Zが副走査方向に沿って配置された横置き(図4参照)に載置されているか、を検出する。なお、本実施形態では、ブック原稿Gがプラテンガラス12上に載置される場合、ブック原稿Gの天がプラテンガラス12の原点P側となるように載置されるものとする。   In the image reading process of the present embodiment, the book original G is read and the valley T is detected from the acquired read image, whereby the book original G is placed vertically with the binding portion Z arranged in the main scanning direction ( 7) or whether the binding portion Z is placed horizontally (see FIG. 4) arranged along the sub-scanning direction. In the present embodiment, when the book document G is placed on the platen glass 12, the book document G is placed so that the top of the book document G is on the origin P side of the platen glass 12.

図3は、CPU20が所定のプログラムに従って実行する画像読取処理のフローチャートを示す。CPU20は、使用者によりプラテンガラス12上にブック原稿Gが載置され、操作部17を介して使用者からブック原稿Gの読取指示が入力されると、処理を開始する。   FIG. 3 shows a flowchart of an image reading process executed by the CPU 20 according to a predetermined program. The CPU 20 starts processing when the user places a book document G on the platen glass 12 and inputs an instruction to read the book document G from the user via the operation unit 17.

CPU20は、画像読取処理を開始すると、入力された読取指示でブックスキャンが選択されているかを確認する(S2)。CPU20は、読取指示でブックスキャンが選択されていない場合(S2:NO)、ブック原稿Gにシートスキャン処理(S4)を実行する。   When starting the image reading process, the CPU 20 confirms whether or not a book scan is selected according to the input reading instruction (S2). When the book scan is not selected by the reading instruction (S2: NO), the CPU 20 executes the sheet scan process (S4) on the book original G.

シートスキャン処理において、CPU20は、プラテンガラス12上にシート原稿Gが載置された場合と同様にブック原稿Gをプレスキャンする。つまり、CPU20は、プラテンガラス12に対応する範囲の全域をプレスキャン範囲に設定し、当該プレスキャン範囲に亘って読み取りを行う。CPU20は、プレスキャン範囲を読み取った結果から、公知のエッジ抽出処理を用いてプラテンガラス12上にブック原稿Gが載置された領域を特定する。   In the sheet scanning process, the CPU 20 pre-scans the book document G in the same manner as when the sheet document G is placed on the platen glass 12. That is, the CPU 20 sets the entire range corresponding to the platen glass 12 as a pre-scan range, and performs reading over the pre-scan range. The CPU 20 specifies an area where the book document G is placed on the platen glass 12 using a known edge extraction process from the result of reading the prescan range.

また、CPU20は、読取指示においてブックスキャンが選択されている場合(S2:YES)、ブック原稿Gにブックスキャン処理を実行する(S6〜S30)。ブックスキャン処理において、CPU20は、まず、原稿先端をプレスキャンする(S6)。CPU20は、プラテンガラス12に対応する範囲のうち、副走査方向において原点Pが存在する先端の端辺から基準幅KWの範囲を第1プレスキャン範囲PH1(図4点線参照)に設定し、第1プレスキャン範囲PH1に亘って読み取りを行う。   Further, when the book scan is selected in the reading instruction (S2: YES), the CPU 20 executes the book scan process on the book original G (S6 to S30). In the book scan process, the CPU 20 first pre-scans the front end of the document (S6). The CPU 20 sets a range of the reference width KW from the end of the tip where the origin P exists in the sub-scanning direction in the range corresponding to the platen glass 12 to the first pre-scan range PH1 (see the dotted line in FIG. 4). Reading is performed over one prescan range PH1.

CPU20は、第1プレスキャン範囲PH1を読み取った結果から、公知のエッジ抽出処理を用いてブック原稿Gが載置された領域(図4一点鎖線に相当)を特定し、当該特定された領域の読取画像である第1プレスキャン画像PG1を取得する。第1プレスキャン画像PG1は、読取画像の一例であり、主走査短冊領域の読取画像の一例である。   The CPU 20 identifies an area (corresponding to the one-dot chain line in FIG. 4) on which the book document G is placed using a known edge extraction process from the result of reading the first pre-scan range PH1. A first pre-scan image PG1 that is a read image is acquired. The first pre-scan image PG1 is an example of a read image, and is an example of a read image in a main scanning strip area.

図5(A)、(C)に示すように、第1プレスキャン画像PG1は、短冊状をしており、その長辺が主走査方向に沿って伸びている。また、第1プレスキャン画像PG1は、その長辺がプラテンガラス12上にブック原稿Gが載置された領域の主走査方向の全域に亘って広がっている(図4参照)。CPU20は、取得された第1プレスキャン画像PG1を解析し、主走査方向の階調値分布を取得する(S8)。階調値分布は、濃度分布の一例である。   As shown in FIGS. 5A and 5C, the first pre-scan image PG1 has a strip shape, and its long side extends along the main scanning direction. Further, the first pre-scan image PG1 has a long side extending over the entire region in the main scanning direction of the region where the book document G is placed on the platen glass 12 (see FIG. 4). The CPU 20 analyzes the acquired first prescan image PG1 and acquires the gradation value distribution in the main scanning direction (S8). The gradation value distribution is an example of a density distribution.

具体的には、CPU20は、第1プレスキャン画像PG1を主走査方向において複数のブロックに分割し、各ブロックに含まれる読取データの階調値を合計する。これにより、CPU20は、各ブロックに対応させて各ブロック毎の合計階調値が並んで配された主走査方向の階調値分布を取得する(図5(B)、(D)参照)。   Specifically, the CPU 20 divides the first prescan image PG1 into a plurality of blocks in the main scanning direction, and sums the gradation values of the read data included in each block. Thereby, the CPU 20 acquires a gradation value distribution in the main scanning direction in which the total gradation values for each block are arranged in correspondence with each block (see FIGS. 5B and 5D).

次に、CPU20は、主走査方向の階調値分布に谷Tが存在するかを検出する(S10)。CPU20は、階調値分布において、隣接する規定個数のブロックに亘って合計階調値が減少する減少分布GBと、隣接する規定個数のブロックに亘って合計階調値が増加する上昇分布ZBが連続して発生している場合に、当該階調値分布に谷Tが存在すると検出する。基準個数は、基準距離の一例である。   Next, the CPU 20 detects whether a valley T exists in the gradation value distribution in the main scanning direction (S10). In the gradation value distribution, the CPU 20 has a decreasing distribution GB in which the total gradation value decreases over a specified number of adjacent blocks, and a rising distribution ZB in which the total gradation value increases over a specified number of adjacent blocks. When it occurs continuously, it is detected that a valley T exists in the gradation value distribution. The reference number is an example of a reference distance.

CPU20は、図5(B)に示すように、主走査方向の階調値分布に谷Tが存在する場合(S10:YES)、ブック原稿Gの綴じ部Zが主走査方向と直交する副走査方向に沿って配置されていること(図6参照)、すなわち、ブック原稿Gが横置きされていると判断する(S12)。この場合、CPU20は、谷Tの中心位置、すなわち、減少分布GBと上昇分布ZBとの境界点V1を検出し、主走査方向における一方の端点からの距離W1を算出する。具体的には、第1プレスキャン画像PG1において、プラテンガラス12の原点Pを読み取った基準点Qと境界点V1の主走査方向における距離W1を算出する。   As shown in FIG. 5B, when the valley T is present in the gradation value distribution in the main scanning direction (S10: YES), the CPU 20 performs sub-scanning in which the binding portion Z of the book document G is orthogonal to the main scanning direction. It is determined that they are arranged along the direction (see FIG. 6), that is, it is determined that the book document G is placed horizontally (S12). In this case, the CPU 20 detects the center position of the valley T, that is, the boundary point V1 between the decreasing distribution GB and the rising distribution ZB, and calculates the distance W1 from one end point in the main scanning direction. Specifically, in the first prescan image PG1, a distance W1 in the main scanning direction between the reference point Q obtained by reading the origin P of the platen glass 12 and the boundary point V1 is calculated.

そして、CPU20は、図6に示すように、算出した距離W1を2倍した距離を求め、当該距離を横置きされたブック原稿Gの主走査方向の原稿幅GWとして推定する(S14)。また、CPU20は、ブック原稿GがA6判やB5判などの定型サイズの原稿であると仮定し、推定した原稿幅GWに対応する副走査方向の原稿長GLを推定する(S16)。   Then, as shown in FIG. 6, the CPU 20 obtains a distance obtained by doubling the calculated distance W1, and estimates the distance as the document width GW in the main scanning direction of the horizontally placed book document G (S14). Further, the CPU 20 assumes that the book document G is a standard size document such as A6 size or B5 size, and estimates the document length GL in the sub-scanning direction corresponding to the estimated document width GW (S16).

一方、CPU20は、図5(D)に示すように、主走査方向の階調値分布に谷Tが存在しない場合(S10:NO)、原稿全体をプレスキャンする(S18)。CPU20は、プラテンガラス12に対応する範囲の全域を第2プレスキャン範囲PH2(図7点線参照)に設定し、第2プレスキャン範囲PH2に亘って読み取りを行う。   On the other hand, as shown in FIG. 5D, when the valley T does not exist in the gradation value distribution in the main scanning direction (S10: NO), the CPU 20 pre-scans the entire document (S18). The CPU 20 sets the entire range corresponding to the platen glass 12 to the second prescan range PH2 (see the dotted line in FIG. 7), and performs reading over the second prescan range PH2.

CPU20は、第2プレスキャン範囲PH2を読み取った結果から、公知のエッジ抽出処理を用いてブック原稿Gが載置された領域を特定し、当該特定された領域の読取画像である第2プレスキャン画像PG2を取得する。第2プレスキャン画像PG2は、読取画像の別例である。   The CPU 20 identifies a region where the book document G is placed using a known edge extraction process from the result of reading the second pre-scan range PH2, and the second pre-scan that is a read image of the identified region. An image PG2 is acquired. The second pre-scan image PG2 is another example of the read image.

次に、CPU20は、取得された第2プレスキャン画像PG2を解析する(S20)。CPU20は、第2プレスキャン画像PG2から、解析に用いる解析画像KGを設定する。CPU20は、第2プレスキャン画像PG2のうち、主走査方向において基準点Qが存在する基準端の端辺から基準幅KWの領域(図7一点鎖線に相当)の画像を解析画像KGと設定する。解析画像KGは、副走査短冊領域の読取画像の一例である。   Next, the CPU 20 analyzes the acquired second pre-scan image PG2 (S20). The CPU 20 sets an analysis image KG used for analysis from the second pre-scan image PG2. The CPU 20 sets, as the analysis image KG, an image of the region of the reference width KW from the end of the reference end where the reference point Q exists in the main scanning direction (corresponding to the one-dot chain line in FIG. 7) in the second pre-scan image PG2. . The analysis image KG is an example of a read image in the sub-scanning strip area.

図8(A)、(C)に示すように、解析画像KGは、短冊状をしており、その長辺が副走査方向に沿って伸びている。また、解析画像KGは、その長辺がプラテンガラス12上にブック原稿Gが載置された領域の副走査方向の全域に亘って広がっている(図7参照)。CPU20は、選出された解析画像KGを解析し、副走査方向の階調値分布を取得する。   As shown in FIGS. 8A and 8C, the analysis image KG has a strip shape, and its long side extends in the sub-scanning direction. In addition, the long side of the analysis image KG extends over the entire area in the sub-scanning direction of the area where the book document G is placed on the platen glass 12 (see FIG. 7). The CPU 20 analyzes the selected analysis image KG and acquires the gradation value distribution in the sub-scanning direction.

具体的には、CPU20は、解析画像KGを副走査方向において複数のブロックに分割し、各ブロックに含まれる読取データの階調値を合計する。これにより、CPU20は、各ブロックに対応させて各ブロック毎の合計階調値が並んで配された副走査方向の階調値分布を取得する(図8(B)、(D)参照)。   Specifically, the CPU 20 divides the analysis image KG into a plurality of blocks in the sub-scanning direction, and sums the gradation values of the read data included in each block. Thereby, the CPU 20 acquires a gradation value distribution in the sub-scanning direction in which the total gradation values for each block are arranged in correspondence with each block (see FIGS. 8B and 8D).

次に、CPU20は、副走査方向の階調値分布に谷Tが存在するかを検出する(S22)。CPU20は、図8(B)に示すように、副走査方向の階調値分布に谷Tが存在する場合(S22:YES)、ブック原稿Gの綴じ部Zが副走査方向と直交する主走査方向に沿って配置されていること(図9参照)、すなわち、ブック原稿Gが縦置きされていると判断する(S24)。この場合、CPU20は、谷Tの境界点V2を検出し、解析画像KGにおいて、基準点Qと境界点V2の副走査方向における距離W2を算出する。   Next, the CPU 20 detects whether or not a valley T exists in the gradation value distribution in the sub-scanning direction (S22). As shown in FIG. 8B, when the valley T is present in the gradation value distribution in the sub-scanning direction (S22: YES), the CPU 20 performs main scanning in which the binding portion Z of the book document G is orthogonal to the sub-scanning direction. It is determined that they are arranged along the direction (see FIG. 9), that is, the book document G is placed vertically (S24). In this case, the CPU 20 detects the boundary point V2 of the valley T, and calculates the distance W2 in the sub-scanning direction between the reference point Q and the boundary point V2 in the analysis image KG.

そして、CPU20は、図9に示すように、算出した距離W2を2倍した距離を求め、当該距離を縦置きされたブック原稿Gの副走査方向の原稿幅GWとして推定する(S26)。また、CPU20は、ブック原稿Gが定型サイズの原稿であると仮定し、推定した原稿幅GWに対応する主走査方向の原稿長GLを推定する(S28)。   Then, as shown in FIG. 9, the CPU 20 obtains a distance obtained by doubling the calculated distance W2, and estimates the distance as the document width GW in the sub-scanning direction of the vertically placed book document G (S26). Further, the CPU 20 assumes that the book document G is a standard-size document, and estimates the document length GL in the main scanning direction corresponding to the estimated document width GW (S28).

一方、CPU20は、図8(D)に示すように、副走査方向の階調値分布に谷Tが存在しない場合(S22:NO)、プレスキャン画像PGにおいて谷Tが検出されず、ブック原稿Gの載置向きの検出に失敗したと判断する(S30)。   On the other hand, as shown in FIG. 8D, when the valley T does not exist in the gradation value distribution in the sub-scanning direction (S22: NO), the CPU 20 does not detect the valley T in the pre-scan image PG, and the book document It is determined that the detection of the mounting direction of G has failed (S30).

次に、CPU20は、原稿全体を本スキャンする(S32)。CPU20は、上記の処理においてブック原稿Gの原稿幅GW及び原稿長GLが推定されている場合には、プラテンガラス12の原点Pから原稿幅GW及び原稿長GLにより定まる範囲を読取範囲YHに設定し、ブック原稿Gを読み取る。また、CPU20は、上記の処理においてブック原稿Gの原稿幅GW及び原稿長GLが推定されていない場合には、プラテンガラス12に対応する範囲の全域を読み取り、当該読み取った結果から特定されるブック原稿Gが載置された領域を読取範囲YHに設定し、ブック原稿Gを読み取る。   Next, the CPU 20 performs a full scan on the entire document (S32). When the document width GW and the document length GL of the book document G are estimated in the above processing, the CPU 20 sets the range determined by the document width GW and the document length GL from the origin P of the platen glass 12 as the reading range YH. Then, the book original G is read. Further, when the document width GW and the document length GL of the book document G are not estimated in the above processing, the CPU 20 reads the entire range corresponding to the platen glass 12, and the book specified from the read result. The area where the original G is placed is set to the reading range YH, and the book original G is read.

CPU20は、原稿全体の本スキャンが終了すると、ブック原稿Gが縦置きされているかを確認する(S34)。CPU20は、上記の処理においてブック原稿Gが縦置きされていると判断した場合(S34:YES)、本スキャンにおいて取得された読取画像を左向きに90度回転させ(S36)、画像読取処理を終了する。一方、CPU20は、上記の処理においてブック原稿Gが縦置きされていると判断していない場合(S34:NO)、読取画像を回転させずに維持し(S38)、画像読取処理を終了する。なお、「ブック原稿Gが縦置きされていると判断されていない場合」には、ブック原稿Gが横置きされていると判断された場合とともに、ブック原稿Gの載置向きが検出されていない場合を含む。   When the main scan of the entire document is completed, the CPU 20 confirms whether the book document G is placed vertically (S34). When the CPU 20 determines that the book original G is placed vertically in the above process (S34: YES), the CPU 20 rotates the read image acquired in the main scan 90 degrees to the left (S36), and ends the image reading process. To do. On the other hand, if the CPU 20 does not determine that the book original G is placed vertically in the above process (S34: NO), the CPU 20 maintains the read image without rotating it (S38), and ends the image reading process. In the case where “the book document G is not determined to be placed vertically”, the placement direction of the book document G is not detected together with the case where it is determined that the book document G is placed horizontally. Including cases.

4.本実施形態の効果
(1)本実施形態の複合機10では、プラテンガラス12上に載置されたブック原稿Gをプレスキャンしたプレスキャン画像PGから主走査方向若しくは副走査方向の階調値分布を取得し、当該階調値分布に谷Tが存在する場合に、ブック原稿Gの綴じ部Zが沿う方向を特定し、ブック原稿Gの載置向きを特定する。
4). Advantages of the present embodiment (1) In the multifunction machine 10 of the present embodiment, the gradation value distribution in the main scanning direction or the sub-scanning direction from the pre-scan image PG obtained by pre-scanning the book document G placed on the platen glass 12. When the valley T exists in the gradation value distribution, the direction along the binding portion Z of the book document G is specified, and the placement direction of the book document G is specified.

具体的には、主走査方向の階調値分布に谷Tが存在する場合、ブック原稿Gの綴じ部Zが副走査方向に沿って配置されていることを特定し、ブック原稿Gが横置きされていることを特定する。また、副走査方向の階調値分布に谷Tが存在する場合、ブック原稿Gの綴じ部Zが主走査方向に沿って配置されていることを特定し、ブック原稿Gが縦置きされていることを特定する。この複合機10によれば、プレスキャン画像PGなどの読取画像を用いて、ブック原稿Gの載置向きを特定することができる。   Specifically, when the valley T exists in the gradation value distribution in the main scanning direction, it is specified that the binding portion Z of the book document G is arranged along the sub-scanning direction, and the book document G is placed horizontally. To be identified. When the valley T exists in the gradation value distribution in the sub-scanning direction, it is specified that the binding portion Z of the book document G is arranged along the main scanning direction, and the book document G is placed vertically. Identify that. According to the multifunction machine 10, the orientation of the book original G can be specified using a read image such as the pre-scan image PG.

(2)本実施形態の複合機10では、読取画像を用いてブック原稿Gの載置向きを特定し、ブック原稿Gが縦置きされている場合に、プレスキャンと同一の載置向きで本スキャンされたブック原稿Gの読取画像を回転させる。 (2) In the multifunction machine 10 of this embodiment, the orientation of the book document G is specified using the read image, and when the book document G is placed vertically, the book orientation G is placed in the same orientation as the pre-scan. The scanned image of the scanned book document G is rotated.

ブック原稿Gが縦置きされている場合、ブック原稿Gに記載された画像の向き、すなわちブック原稿Gの綴じ部Zが沿う方向と主走査方向が平行となる。一般に、読取画像は複合機10の表示部18や複合機10外のパーソナルコンピュータ(以下、PC)の表示部などに表示される場合、読取画像の主走査方向がこれら表示部の主走査方向(つまり、水平方向)となるように表示される。そのため、縦置きされたブック原稿Gの読取画像を回転させることなくこれら表示部に表示されると、使用者にとって見ずらい。この複合機10によれば、読取画像から特定された載置向きに基づいて、ブック原稿Gの読取画像を適切に回転させるので、使用者が読取画像を複合機10の表示部18やPCの表示部などで確認する際に、確認しやすい。   When the book original G is placed vertically, the orientation of the image described in the book original G, that is, the direction along the binding portion Z of the book original G is parallel to the main scanning direction. In general, when a read image is displayed on the display unit 18 of the multifunction machine 10 or a display unit of a personal computer (hereinafter referred to as a PC) outside the multifunction machine 10, the main scanning direction of the read image is the main scanning direction ( That is, it is displayed so as to be in the horizontal direction. For this reason, if the read image of the book document G placed vertically is displayed on these display units without being rotated, it is difficult for the user to view. According to the multifunction machine 10, the read image of the book original G is appropriately rotated based on the placement direction specified from the read image, so that the user can read the read image on the display unit 18 of the multifunction machine 10 or the PC. Easy to check when checking on the display.

(3)本実施形態の複合機10では、プレスキャン画像PGから主走査方向若しくは副走査方向の階調値分布を取得する際に、短冊状の第1プレスキャン画像PG1をその長辺方向において複数のブロックに分割して主走査方向の階調値分布を取得する。また、第2プレスキャン範囲PH2から設定された短冊状の解析画像KGをその長辺方向において複数のブロックに分割して副走査方向の階調値分布を取得する。この複合機10によれば、短冊状の画像をその長辺方向において複数のブロックに分割することで、階調値分布に谷Tが存在するか否かを判断しやすく、ブック原稿Gの綴じ部Zが沿う方向を特定しやすい。 (3) In the MFP 10 of the present embodiment, when acquiring the gradation value distribution in the main scanning direction or the sub-scanning direction from the pre-scan image PG, the strip-shaped first pre-scan image PG1 is displayed in the long side direction. A gradation value distribution in the main scanning direction is obtained by being divided into a plurality of blocks. In addition, the strip-shaped analysis image KG set from the second pre-scan range PH2 is divided into a plurality of blocks in the long side direction to obtain a gradation value distribution in the sub-scan direction. According to the multi function device 10, by dividing a strip-shaped image into a plurality of blocks in the long side direction, it is easy to determine whether or not the valley T exists in the gradation value distribution, and the book original G is bound. It is easy to specify the direction along which the part Z is aligned.

(4)本実施形態の複合機10では、主走査方向若しくは副走査方向の階調値分布に谷Tが存在する場合に、その階調値分布が取得された短冊状の画像の長辺方向における端点から当該谷Tの中心位置、つまり境界点Vまでの距離Wから原稿幅GWを推定するので、原稿幅GWを容易に推定することができる。 (4) In the MFP 10 of the present embodiment, when the valley T exists in the gradation value distribution in the main scanning direction or the sub-scanning direction, the long side direction of the strip-shaped image from which the gradation value distribution is acquired. Since the document width GW is estimated from the distance W from the end point to the center position of the valley T, that is, the boundary point V, the document width GW can be easily estimated.

(5)本実施形態の複合機10では、主走査方向若しくは副走査方向の階調値分布を第1プレスキャン画像PG1及び解析画像KGから取得する。第1プレスキャン画像PG1及び解析画像KGは、ブック原稿Gが載置された領域のうち、プラテンガラス12の原点P側の端辺側、つまり副走査方向における先端の端辺側、及び主走査方向における基準端の端辺側の範囲を読み取った読取画像であるので、先端あるいは基準端を用いてこれらの読取画像を特定しやすく、階調値分布を取得しやすい。 (5) In the multifunction machine 10 of the present embodiment, the gradation value distribution in the main scanning direction or the sub-scanning direction is acquired from the first pre-scan image PG1 and the analysis image KG. The first pre-scan image PG1 and the analysis image KG are the end side on the origin P side of the platen glass 12, that is, the end side of the front end in the sub-scanning direction, and the main scan in the area where the book original G is placed. Since this is a read image obtained by reading the range on the edge side of the reference end in the direction, it is easy to specify the read image using the front end or the reference end, and to acquire the gradation value distribution.

<他の実施形態>
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような種々の態様も本発明の技術的範囲に含まれる。
(1)上記実施形態では、複合機10を用いて説明を行ったが、本発明はこれに限られず、少なくともスキャナ機能を備えていれば、プリンタ機能やコピー機能、ファクシミリ機能等の他の機能を備えていなくてもよい。
<Other embodiments>
The present invention is not limited to the embodiments described with reference to the above description and the drawings, and for example, the following various aspects are also included in the technical scope of the present invention.
(1) In the above embodiment, the description has been made using the multifunction machine 10, but the present invention is not limited to this, and other functions such as a printer function, a copy function, and a facsimile function are provided as long as at least a scanner function is provided. May not be provided.

(2)上記実施形態では、複合機10が1つのCPU20を有し、読取部30や画像処理部24などの各部の制御を当該1つのCPU20によって実行する例を用いて示したが、本発明はこれに限られない。例えば、複数のCPUにより各部が構成されてもよければ、ASIC(Application Specific Integrated Circuit)などのハード回路のみにより各部が構成されてもよい。さらには、単数又は複数のCPU及びASICによって、各部が構成されてもよい。 (2) In the above embodiment, the MFP 10 has one CPU 20, and an example in which the control of each unit such as the reading unit 30 and the image processing unit 24 is executed by the one CPU 20 has been described. Is not limited to this. For example, if each unit may be configured by a plurality of CPUs, each unit may be configured only by a hardware circuit such as an ASIC (Application Specific Integrated Circuit). Furthermore, each part may be comprised by one or several CPU and ASIC.

(3)また、CPU20が実行するプログラムは必ずしもROM26に記憶されている必要はなく、CPU20自身に記憶されていてもよければ、他の記憶装置に記憶されていてもよい。 (3) The program executed by the CPU 20 is not necessarily stored in the ROM 26, and may be stored in the CPU 20 itself or in another storage device.

(4)上記実施形態では、ブック原稿Gを本スキャンする前にブック原稿Gをプレスキャンし、当該プレスキャンにより取得されたプレスキャン画像PGを用いてブック原稿Gの載置向きを特定する例を用いて説明を行ったが、本発明はこれに限られない。例えば、本スキャンにより取得された読取画像を用いてブック原稿Gの載置向きを特定してもよい。 (4) In the above embodiment, the book document G is pre-scanned before the book document G is actually scanned, and the placement direction of the book document G is specified using the pre-scan image PG acquired by the pre-scan. However, the present invention is not limited to this. For example, the placement direction of the book document G may be specified using the read image acquired by the main scan.

(5)上記実施形態では、主走査方向若しくは副走査方向の階調値分布が取得される第1プレスキャン画像PG1及び解析画像KGが、プラテンガラス12の原点P側の端辺側の領域を読み取った読取画像である例を用いて説明を行ったが、本発明はこれに限られない。主走査方向の階調値分布を取得するための読取画像であれば、短冊状をしており、その長辺が主走査方向に沿っているとともに、その長辺がプラテンガラス12上にブック原稿Gが載置された領域の主走査方向の全域に亘って広がっている領域であれば良い。同様に、副走査方向の階調値分布を取得するための読取画像であれば、短冊状をしており、その長辺が副走査方向に沿っているとともに、その長辺がプラテンガラス12上にブック原稿Gが載置された領域の副走査方向の全域に亘って広がっている領域であればよい。 (5) In the above-described embodiment, the first pre-scan image PG1 and the analysis image KG from which the gradation value distribution in the main scanning direction or the sub-scanning direction is acquired are the regions on the edge side on the origin P side of the platen glass 12. Although the description has been made using an example of a read image that has been read, the present invention is not limited to this. If it is a read image for acquiring the gradation value distribution in the main scanning direction, it has a strip shape, its long side is along the main scanning direction, and its long side is on the platen glass 12. Any region may be used as long as it extends over the entire region in the main scanning direction of the region where G is placed. Similarly, a read image for obtaining a gradation value distribution in the sub-scanning direction has a strip shape, the long side thereof is along the sub-scanning direction, and the long side is on the platen glass 12. Any area may be used as long as it extends over the entire area in the sub-scanning direction of the area where the book original G is placed.

(6)更には、短冊状をしている必要もない。但し、短冊状をしており、読取画像の階調値分布を取得しない方向における幅が狭いことで、階調値分布を取得するための処理負担が軽減される。 (6) Furthermore, it is not necessary to have a strip shape. However, since it has a strip shape and the width in the direction in which the gradation value distribution of the read image is not acquired, the processing load for acquiring the gradation value distribution is reduced.

(7)上記実施形態では、第1プレスキャン画像PG1及び解析画像KGから取得された主走査方向若しくは副走査方向の階調値分布の双方に谷Tが存在しない場合に、ブック原稿Gの載置向きの検出に失敗したと判断する例を用いて説明を行ったが、本発明はこれに限られない。たとえば、第1プレスキャン画像PG1及び解析画像KGから取得された主走査方向若しくは副走査方向の階調値分布の双方に谷Tが存在しない場合に、他の画像を用いて主走査方向若しくは副走査方向の階調値分布を取得しても良い。ここでいう他の画像とは、同じ、又は異なる領域を用いて新たにプレスキャンされて取得された画像であってもよければ、既に取得されているプレスキャン画像から設定されてもよい。 (7) In the above embodiment, when the valley T does not exist in both the main scanning direction and the sub-scanning tone value distribution acquired from the first pre-scan image PG1 and the analysis image KG, the book original G is loaded. Although the description has been made using an example in which it is determined that the detection of the orientation has failed, the present invention is not limited to this. For example, when there is no valley T in both the main scanning direction or the sub-scanning direction gradation value distribution acquired from the first pre-scan image PG1 and the analysis image KG, another image is used to perform the main scanning direction or the sub-scanning direction. You may acquire the gradation value distribution of a scanning direction. The other image referred to here may be an image that has been newly pre-scanned and acquired using the same or different region, or may be set from a pre-scanned image that has already been acquired.

10:複合機、12:プラテンガラス、30:読取部、40:駆動部、G:原稿(ブック原稿)、PG:プレスキャン画像、KG:解析画像、YG:読取画像、ZB:上昇分布、GB:減少分布、GL:原稿長、GW:原稿幅、T:谷、V:境界点、PH:プレスキャン範囲、YH:読取範囲、Z:綴じ部 10: MFP, 12: Platen glass, 30: Reading unit, 40: Drive unit, G: Document (book document), PG: Pre-scan image, KG: Analysis image, YG: Scanned image, ZB: Ascent distribution, GB : Decrease distribution, GL: Document length, GW: Document width, T: Valley, V: Boundary point, PH: Pre-scan range, YH: Reading range, Z: Binding portion

Claims (7)

原稿載置台と、
前記原稿載置台の主走査方向に読み取る読取部と、
前記読取部を前記原稿載置台の副走査方向に移動させる駆動部と、
制御部と、
を備え、
前記制御部は、
前記駆動部を用いて前記読取部を前記副走査方向に移動させながら、前記原稿載置台に載置されたブック原稿を前記読取部を用いて前記主走査方向に読み取らせる読取処理と、
前記読取処理によって読み取られた読取画像のうち、長辺が前記主走査方向に沿うとともに前記読取画像の前記主走査方向の全域に亘って広がる主走査短冊領域の主走査方向の濃度分布、若しくは、長辺が前記副走査方向に沿うとともに前記読取画像の前記副走査方向の全域に亘って広がる副走査短冊領域の副走査方向の濃度分布の少なくとも一方の濃度分布を取得する取得処理と、
前記取得処理によって取得された濃度分布に、基準距離以上に亘って濃度減少が継続する減少分布と前記基準距離以上に亘って濃度上昇が継続する上昇分布が連続して発生する谷が存在する場合に、前記谷が存在する濃度分布が取得された短冊領域の長辺の方向と直交する方向に沿って前記ブック原稿の綴じ部が載置されるように前記原稿載置台に前記ブック原稿が載置されていると判断する判断処理と、
を実行する、画像読取装置。
A document table,
A reading unit for reading in the main scanning direction of the document table;
A drive unit for moving the reading unit in the sub-scanning direction of the document table;
A control unit;
With
The controller is
A reading process for reading a book document placed on the document table in the main scanning direction using the reading unit while moving the reading unit in the sub-scanning direction using the driving unit;
Of the read image read by the reading process, the density distribution in the main scanning direction of the main scanning strip region where the long side extends along the main scanning direction and extends over the entire region of the main scanning direction, or An acquisition process for acquiring at least one density distribution in the sub-scanning direction of the sub-scanning strip region of which the long side extends along the sub-scanning direction and extends over the entire area of the read image in the sub-scanning direction;
When the concentration distribution acquired by the acquisition process includes a valley in which a decreasing distribution in which the concentration decrease continues over a reference distance and a rising distribution in which the concentration increase continues over the reference distance continuously occur In addition, the book document is placed on the document placement table so that the binding portion of the book document is placed along a direction orthogonal to the direction of the long side of the strip region where the density distribution in which the valleys exist is acquired. A determination process for determining that
An image reading apparatus that executes
請求項1に記載の画像読取装置であって、
前記制御部は、
前記取得処理において、前記主走査短冊領域の前記主走査方向の濃度分布を取得し、
前記判断処理において、前記濃度分布に前記谷が存在する場合に、前記ブック原稿の綴じ部が前記副走査方向に沿って載置されていると判断する、画像読取装置。
The image reading apparatus according to claim 1,
The controller is
In the acquisition process, a density distribution in the main scanning direction of the main scanning strip region is acquired;
In the determination process, the image reading apparatus determines that the binding portion of the book document is placed along the sub-scanning direction when the valley exists in the density distribution.
請求項1に記載の画像読取装置であって、
前記制御部は、
前記取得処理において、前記副走査短冊領域の前記副走査方向の濃度分布を取得し、
前記判断処理において、前記濃度分布に前記谷が存在する場合に、前記ブック原稿の綴じ部が前記主走査方向に沿って載置されていると判断する、画像読取装置。
The image reading apparatus according to claim 1,
The controller is
In the acquisition process, a density distribution in the sub-scanning direction of the sub-scanning strip region is acquired;
In the determination process, the image reading apparatus determines that the binding portion of the book document is placed along the main scanning direction when the valley exists in the density distribution.
請求項2または請求項3に記載の画像読取装置であって、
前記制御部は、
更に、
前記判断処理において、前記ブック原稿の綴じ部が前記主走査方向に沿って載置されていると判断した場合、前記読取画像を90度回転させ、前記ブック原稿の綴じ部が前記副走査方向に沿って載置されていると判断した場合、前記読取画像を回転させずに維持する、回転処理を実行する、画像読取装置。
The image reading apparatus according to claim 2, wherein:
The controller is
Furthermore,
In the determination process, when it is determined that the binding portion of the book document is placed along the main scanning direction, the read image is rotated by 90 degrees, and the binding portion of the book document is moved in the sub-scanning direction. An image reading apparatus that executes a rotation process to maintain the read image without rotating when it is determined that the image is placed along the image.
請求項1ないし請求項4のいずれか一項に記載の画像読取装置であって、
前記制御部は、
前記取得処理において、前記短冊領域を少なくとも当該短冊領域の長辺の方向において複数のブロックに分割し、各ブロック毎の濃度値を算出して濃度分布を取得し、
前記判断処置において、前記基準距離に対応する基準個数の隣接する前記ブロックに亘って濃度減少が継続する減少分布と、前記基準個数の隣接する前記ブロックに亘って濃度増加が継続する上昇分布が連続して発生する場合に、前記谷が存在すると判断する、画像読取装置。
An image reading apparatus according to any one of claims 1 to 4,
The controller is
In the acquisition process, the strip region is divided into a plurality of blocks at least in the direction of the long side of the strip region, a density value is calculated for each block, and a density distribution is acquired.
In the determination process, a decreasing distribution in which the density decrease continues over the adjacent blocks of the reference number corresponding to the reference distance and a rising distribution in which the density increase continues over the adjacent blocks of the reference number are continuous. An image reading device that determines that the valley exists.
請求項1ないし請求項5のいずれか一項に記載の画像読取装置であって、
前記制御部は、
更に、
前記判断処理において、前記谷が存在する濃度分布が取得された短冊領域の長辺の方向における一方の端点から前記減少分布と前記上昇分布との境界点までの距離の2倍を、前記ブック原稿の原稿幅と推定する推定処理を実行する、画像読取処置。
An image reading apparatus according to any one of claims 1 to 5,
The controller is
Furthermore,
In the determination process, the book original is set to twice the distance from one end point in the direction of the long side of the strip area where the density distribution in which the valley exists is obtained to the boundary point between the decreasing distribution and the rising distribution. An image reading process for executing an estimation process for estimating the document width of the document.
請求項1ないし請求項6のいずれか一項に記載の画像読取装置であって、
前記原稿載置台は、前記ブック原稿が載置される載置面から見て長方形状をしているとともに、その1つの頂点が原点に設定され、
前記ブック原稿は、前記原点を基準として載置され、
前記短冊領域は、前記読取画像のうち、前記原点に対応する基準点を含む前記読取画像の端辺側に設定される、画像読取装置。
An image reading apparatus according to any one of claims 1 to 6,
The document placing table has a rectangular shape as viewed from the placement surface on which the book document is placed, and one vertex thereof is set as the origin,
The book document is placed with the origin as a reference,
The image reading apparatus, wherein the strip region is set on an end side of the read image including a reference point corresponding to the origin in the read image.
JP2012217041A 2012-09-28 2012-09-28 Image reading device Active JP6115804B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012217041A JP6115804B2 (en) 2012-09-28 2012-09-28 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012217041A JP6115804B2 (en) 2012-09-28 2012-09-28 Image reading device

Publications (2)

Publication Number Publication Date
JP2014072691A true JP2014072691A (en) 2014-04-21
JP6115804B2 JP6115804B2 (en) 2017-04-19

Family

ID=50747521

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012217041A Active JP6115804B2 (en) 2012-09-28 2012-09-28 Image reading device

Country Status (1)

Country Link
JP (1) JP6115804B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009017208A (en) * 2007-07-04 2009-01-22 Sharp Corp Image processing apparatus, image forming apparatus, image processing method, computer program, and computer readable recording medium
JP2010062989A (en) * 2008-09-05 2010-03-18 Canon Inc Image processing apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009017208A (en) * 2007-07-04 2009-01-22 Sharp Corp Image processing apparatus, image forming apparatus, image processing method, computer program, and computer readable recording medium
JP2010062989A (en) * 2008-09-05 2010-03-18 Canon Inc Image processing apparatus

Also Published As

Publication number Publication date
JP6115804B2 (en) 2017-04-19

Similar Documents

Publication Publication Date Title
US8908235B2 (en) Image reading apparatus
US8390896B2 (en) Image reading method, image reading apparatus, and program recording medium
JP2009267652A (en) Image processing apparatus, image reading apparatus, and image processing method
US20120086990A1 (en) Image processing apparatus and method
WO2014141709A1 (en) Manuscript size detection device, image reading device, and manuscript size detection method
JP5621629B2 (en) Reader
JP6115804B2 (en) Image reading device
JP2021158562A (en) Image reader
JP2015198327A (en) Image reading device, image reading method, and computer program
JP2018029289A (en) Image processing apparatus and image processing method
JP2012015592A (en) Image processing apparatus
JP5768752B2 (en) Image reading apparatus and original arrangement determination program
JP4946699B2 (en) Image reading device
JP6482008B2 (en) Scanner with background
JP5915257B2 (en) Image reading apparatus and document area determination program
JP5768753B2 (en) Image reading apparatus and original size specifying program
JP6561732B2 (en) Reader and program
JP5915256B2 (en) Image reading apparatus and document area determination program
JP2019050466A (en) Image reader image reading program
JP6950621B2 (en) Image forming device, image processing device, and image processing method
JP5029569B2 (en) Image reading apparatus, image reading method, and image reading program
JP2009100099A (en) Image reading apparatus
JP5644700B2 (en) Image reading apparatus and image reading program
JP6288514B2 (en) Image reading device
JP2009194762A (en) Image processing apparatus

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20140409

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150918

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160929

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161011

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161208

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170224

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170309

R150 Certificate of patent or registration of utility model

Ref document number: 6115804

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150