JP2010062924A - Image reading apparatus and program - Google Patents
Image reading apparatus and program Download PDFInfo
- Publication number
- JP2010062924A JP2010062924A JP2008227098A JP2008227098A JP2010062924A JP 2010062924 A JP2010062924 A JP 2010062924A JP 2008227098 A JP2008227098 A JP 2008227098A JP 2008227098 A JP2008227098 A JP 2008227098A JP 2010062924 A JP2010062924 A JP 2010062924A
- Authority
- JP
- Japan
- Prior art keywords
- edge
- document
- reading
- inclination
- detected
- 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
Links
Images
Abstract
Description
本発明は、画像読取装置及びプログラムに関する。 The present invention relates to an image reading apparatus and a program.
原稿送り装置により原稿を読取位置まで搬送して原稿の読取りを行う画像読取装置において、原稿が斜めに搬送されて読み取られてしまうことがある。 In an image reading apparatus that reads a document by transporting the document to a reading position by a document feeder, the document may be transported obliquely and read.
画像の読取りに関する技術としては、1本のラインセンサを用いて原稿を読取り、該読取結果に基づいて原稿の傾きを検出する画像読取装置が知られている。例えば、1本のラインセンサで読み取られた画像データを多値データのままメモリに格納し、傾きを検出して補正する画像読取装置が知られている(例えば、特許文献1参照)。また、例えば、原稿を搬送しながら原稿の画像を読取り、該読み取った画像データ及び原稿の搬送速度に基づいて原稿の傾きを検知し、検知した傾きに応じて傾き補正を行う画像読取装置も知られている(例えば、特許文献2参照)。
本発明は、1本のラインセンサを用いて原稿を読み取り傾き検出する場合に比べて高速且つ正確に原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出することができる画像読取装置及びプログラムを提供することを目的とする。 The present invention provides an image reading apparatus capable of detecting whether or not a document is tilted at high speed and accurately and at least one of the degree of tilt as compared with a case where a document is read and tilt detected using a single line sensor. And to provide a program.
請求項1の発明の画像読取装置は、原稿を原稿読取位置に搬送する搬送手段と、第1の方向に沿った各々異なる複数の画素列であって、前記第1の方向と交差する第2の方向に沿って予め定められた間隔を隔てた複数の画素列を各々読み取るための複数の読取部を備え、前記原稿読取位置に搬送された原稿を読み取る原稿読取手段と、前記複数の読取部の各々により読み取られた画素列毎の画像信号に基づいて、前記原稿読取位置に搬送された原稿の縁の位置を検出する縁検出手段と、前記縁検出手段で検出された縁の位置の各々に基づいて、前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する傾き検出手段と、を備えている。 An image reading apparatus according to a first aspect of the present invention includes a conveying unit that conveys a document to a document reading position, and a plurality of different pixel rows along a first direction, and a second crossing the first direction. A plurality of reading sections for respectively reading a plurality of pixel rows separated by a predetermined interval along the direction of the document, a document reading means for reading the document conveyed to the document reading position, and the plurality of reading sections Each of the edge detection means for detecting the position of the edge of the document conveyed to the document reading position on the basis of the image signal for each pixel row read by each of the image data, and each of the edge positions detected by the edge detection means. And an inclination detecting means for detecting at least one of whether the original conveyed to the original reading position is inclined and the degree of inclination.
請求項2の発明は、請求項1に記載の画像読取装置において前記縁検出手段は、前記複数の読取部で読み取られた画素列毎に2箇所の縁の位置を検出し、前記傾き検出手段は、前記縁検出手段で検出された画素列毎の2箇所の縁のうち前記第1方向における予め定められた基準位置に近い方の縁の位置の各々と、他方の縁の位置の各々と、の少なくとも一方に基づいて前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する。 According to a second aspect of the present invention, in the image reading apparatus according to the first aspect, the edge detection unit detects the positions of two edges for each pixel row read by the plurality of reading units, and the inclination detection unit. Each of the positions of the edges closer to the predetermined reference position in the first direction, and the positions of the other edges, of the two edges for each pixel row detected by the edge detection means, Whether or not the document conveyed to the document reading position is tilted and at least one of the degree of tilt is detected based on at least one of the above.
請求項3の発明は、請求項1に記載の画像読取装置において、前記縁検出手段は、前記複数の読取部で読み取られた画素列毎に2箇所の縁の位置を検出し、前記傾き検出手段は、前記縁検出手段で検出された画素列毎の2箇所の縁のうち前記第1方向における予め定められた基準位置に近い方の縁の位置の各々に基づいて、前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する。 According to a third aspect of the present invention, in the image reading apparatus according to the first aspect, the edge detecting unit detects the positions of two edges for each pixel row read by the plurality of reading units, and detects the inclination. The means sets the original reading position based on each of the positions of the edges closer to the predetermined reference position in the first direction among the two edges for each pixel row detected by the edge detecting means. At least one of whether or not the conveyed document is inclined and the degree of inclination is detected.
請求項4の発明は、請求項1に記載の画像読取装置において、前記縁検出手段は、前記複数の読取部で読み取られた画素列毎に2箇所の縁の位置を検出し、前記傾き検出手段は、前記縁検出手段で検出された画素列毎の2箇所の縁のうち予め定められた基準位置に近い方の縁の位置の各々が同一の辺から検出された縁の位置か否か、及び他方の縁の位置の各々が同一の辺から検出された縁の位置か否かを判定し、同一の辺から検出された縁の位置であると判定された方の縁の位置の各々に基づいて、前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する。 According to a fourth aspect of the present invention, in the image reading apparatus according to the first aspect, the edge detecting unit detects the positions of two edges for each pixel row read by the plurality of reading units, and detects the inclination. The means determines whether or not each of the edge positions closer to a predetermined reference position among the two edges for each pixel column detected by the edge detection means is an edge position detected from the same side. , And whether each of the other edge positions is an edge position detected from the same side, and each of the edge positions determined to be the edge positions detected from the same side Based on the above, it is detected whether or not the original conveyed to the original reading position is inclined and at least one of the degree of inclination.
請求項5の発明は、請求項1に記載の画像読取装置において、前記縁検出手段は、前記複数の読取部で読み取られた画素列毎に2箇所の縁の位置を検出し、前記傾き検出手段は、前記縁検出手段で検出された画素列毎の2箇所の縁のうち前記第1の方向における予め定められた基準位置に近い方の縁の位置の各々に基づいて前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する第1検出処理と、他方の縁の位置の各々に基づいて前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する第2検出処理とを行い、前記第1検出処理及び第2検出処理の検出結果が異なる場合には、予め定められた方の縁の位置に基づいて行われた検出処理の検出結果を選択する。 According to a fifth aspect of the present invention, in the image reading apparatus according to the first aspect, the edge detecting unit detects the positions of two edges for each pixel row read by the plurality of reading units, and detects the inclination. The means sets the document reading position based on each of the positions of the edges closer to the predetermined reference position in the first direction among the two edges for each pixel row detected by the edge detecting means. Whether or not the conveyed document is tilted and whether or not the document transported to the document reading position is tilted based on each of the first detection process for detecting at least one of the degree of tilt and the position of the other edge And a second detection process for detecting at least one of the degree of inclination, and when the detection results of the first detection process and the second detection process are different, a predetermined edge position is set. Detection result of detection process performed based on To select.
請求項6の発明は、請求項1に記載の画像読取装置において、前記縁検出手段は、前記複数の読取部で読み取られた画素列毎に2箇所の縁の位置を検出し、前記傾き検出手段は、前記傾きの度合いを検出する場合に、前記縁検出手段で検出された画素列毎の2箇所の縁のうち前記第1の方向における予め定められた基準位置に近い方の縁の位置の各々に基づいて前記傾きの度合いを検出する第1検出処理と、他方の縁の位置の各々に基づいて前記傾きの度合いの少なくとも一方を検出する第2検出処理とを行い、前記第1検出処理及び第2検出処理の検出結果が異なる場合には、傾きの度合いが小さい方の検出結果を選択する。 According to a sixth aspect of the present invention, in the image reading apparatus according to the first aspect, the edge detecting unit detects the positions of two edges for each pixel row read by the plurality of reading units, and detects the inclination. When detecting the degree of inclination, the means detects the position of the edge closer to the predetermined reference position in the first direction among the two edges for each pixel column detected by the edge detection means. A first detection process for detecting the degree of inclination based on each of the first and a second detection process for detecting at least one of the degrees of inclination based on each of the positions of the other edge, and When the detection results of the process and the second detection process are different, the detection result with the smaller degree of inclination is selected.
請求項7の発明は、請求項1〜請求項6のいずれか1項記載の画像読取装置において、前記傾き検出手段により前記傾きの度合いが検出された場合に、前記傾き検出手段で検出された傾きの度合いを示す値が、予め定められた閾値以上の場合に、前記原稿の読取結果を補正する補正手段を更に備えている。 According to a seventh aspect of the present invention, in the image reading apparatus according to any one of the first to sixth aspects, when the degree of inclination is detected by the inclination detecting means, the inclination detecting means detects the inclination. The image processing apparatus further includes correction means for correcting the reading result of the original when the value indicating the degree of inclination is equal to or greater than a predetermined threshold.
請求項8の発明は、コンピュータを、請求項1〜請求項7のいずれか1項記載の画像読取装置を構成する縁検出手段及び傾き検出手段として機能させるためのプログラムである。 According to an eighth aspect of the present invention, there is provided a program for causing a computer to function as an edge detecting means and an inclination detecting means constituting the image reading apparatus according to any one of the first to seventh aspects.
請求項9の発明は、コンピュータを、第1の方向に沿った各々異なる複数の画素列であって、前記第1の方向と交差する第2の方向に沿って予め定められた間隔を隔てた複数の画素列を各々読み取るための複数の読取部を備え、搬送手段により原稿読取位置に搬送された原稿を読み取る原稿読取手段の前記複数の読取部の各々により読み取られた画素列毎の画像信号に基づいて、前記原稿読取位置に搬送された原稿の縁の位置を検出する縁検出手段、及び前記縁検出手段で検出された縁の位置の各々に基づいて、前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する傾き検出手段、として機能させるためのプログラムである。 According to the ninth aspect of the present invention, the computer is a plurality of different pixel columns along the first direction, and is spaced apart by a predetermined interval along the second direction intersecting the first direction. An image signal for each pixel column that is read by each of the plurality of reading units of the document reading unit that includes a plurality of reading units for reading each of the plurality of pixel columns and reads the document conveyed to the document reading position by the conveying unit. Based on the edge detection means for detecting the position of the edge of the document conveyed to the document reading position, and on the basis of each of the edge positions detected by the edge detection means, This is a program for functioning as an inclination detecting means for detecting at least one of whether or not an original is inclined and the degree of inclination.
請求項1の発明によれば、1本のラインセンサを用いて原稿を読み取り傾き検出する場合に比べて高速且つ正確に原稿が傾いているか否か、及び原稿の傾きの度合いの少なくとも一方を検出することができる。 According to the first aspect of the present invention, it is possible to detect at least one of whether or not the document is inclined at a higher speed and more accurately than when the document is read and detected by using one line sensor. can do.
請求項2の発明によれば、より正確に原稿が傾いているか否か、及び原稿の傾きの度合いの少なくとも一方を検出することができる。 According to the second aspect of the present invention, it is possible to detect at least one of whether or not the document is inclined more accurately and the degree of inclination of the document.
請求項3の発明によれば、より高速に原稿が傾いているか否か、及び原稿の傾きの度合いの少なくとも一方を検出することができる。 According to the invention of claim 3, it is possible to detect at least one of whether or not the document is inclined at a higher speed and the degree of inclination of the document.
請求項4の発明によれば、より正確に原稿が傾いているか否か、及び原稿の傾きの度合いの少なくとも一方を検出することができる。 According to the fourth aspect of the present invention, it is possible to detect at least one of whether or not the document is tilted more accurately and the degree of tilt of the document.
請求項5の発明によれば、予め選択する側を予め定めておくことで、より効率的に原稿が傾いているか否か、及び原稿の傾きの度合いの少なくとも一方を検出することができる。 According to the fifth aspect of the present invention, it is possible to detect at least one of whether or not the original is inclined and the degree of inclination of the original more efficiently by predetermining the selection side in advance.
請求項6の発明によれば、例えば、検出された傾きの度合いに応じて補正を行う場合に、過補正となること等を防止できる。 According to the invention of claim 6, for example, when correction is performed according to the detected degree of inclination, it is possible to prevent overcorrection.
請求項7の発明によれば、補正を行う必要がない程度の傾きの場合には、補正を行わないようにすることができる。 According to the seventh aspect of the present invention, it is possible to prevent correction when the inclination is such that correction is not necessary.
請求項8の発明によれば、1本のラインセンサを用いて原稿を読み取り傾き検出する場合に比べて高速且つ正確に原稿が傾いているか否か、及び原稿の傾きの度合いの少なくとも一方を検出することができる。 According to the eighth aspect of the present invention, it is possible to detect at least one of whether or not the document is tilted at high speed and more accurately and the degree of tilt of the document compared to the case where the document is read and detected using a single line sensor. can do.
請求項9の発明によれば、1本のラインセンサを用いて原稿を読み取り傾き検出する場合に比べて高速且つ正確に原稿が傾いているか否か、及び原稿の傾きの度合いの少なくとも一方を検出することができる。 According to the ninth aspect of the present invention, it is possible to detect at least one of whether or not the document is inclined at a higher speed and more accurately than when the document is read and detected by using one line sensor. can do.
以下、図面を参照して、本発明の実施の形態を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1は、本発明の一実施形態に係る画像読取装置10の概略構成を示すブロック図である。画像読取装置10は、CPU(Central Processing Unit)12、RAM(Randam Access Memory)14、ROM(Read Only Memory)16、I/O(入出力)インタフェース18、通信インタフェース20を備え、それらはバス22を介して相互に接続されている。
FIG. 1 is a block diagram showing a schematic configuration of an
I/Oインタフェース18には、CD−ROMドライブ24、FD(フレキシブルディスク)ドライブ28、及びHDD(ハードディスクドライブ)32が接続されている。CD−ROMドライブ24は、可搬型記録媒体であるCD−ROM26からデータを読み出す。FDドライブ28は、可搬型記録媒体であるFD30に対してデータを読み書きする。またHDD32は、内蔵されたハードディスクに対してデータを読み書きする。
A CD-
また、I/Oインタフェース18には、利用者の操作により様々な情報を入力するためのキーボード34、CPU12からの指示により画像等の情報を表示するディスプレイ38、及びディスプレイ38に表示された画像上の任意の位置を利用者が指定することにより指示入力するポインティングデバイス36が接続されている。なお、ここでは、入力デバイスとしてキーボード34やポインティングデバイス36を設けた構成としたが、ディスプレイ38がタッチパネルディスプレイであれば、ディスプレイ38を入力デバイスとして用いるようにしてもよく、特に入力デバイスをキーボード34やポインティングデバイス36に限定するものではない。
Further, the I /
また、I/Oインタフェース18には、原稿の画像を読み取るスキャナ40が接続されている。CPU12は、I/Oインタフェース18を介してスキャナ40に原稿の画像を読み取る動作を指示したり、スキャナ40で読み取られた画像データを取得してRAM14に記憶したりする。
The I /
また、通信インタフェース20は、通信回線やLAN等のネットワークに接続されている。画像読取装置10は、通信インタフェース20を介して、該ネットワークに接続された他の端末と相互に情報をやりとりする。
The
CPU12は、ROM16やHDD32等に記憶されたプログラム(後述する傾き検出処理プログラムを含む)を実行する。RAM14は、通信インタフェース20を介して他の端末から入力された画像データ、スキャナ40等から入力された画像データ、新たに生成した画像データ等々、様々な画像データを一時記憶するためのフレームメモリとして利用される他、プログラム実行時のワークメモリとしても利用される。
The
なお、CPU12が実行するプログラムが記憶される記録媒体は、上記ROM16やHDD32等に限定されず、CD−ROMドライブ24やFDドライブ28であってもよいし、例えば、図示は省略するが、DVDディスク、光磁気ディスク、ICカードなどの可搬型記録媒体や画像読取装置10の外部に備えられたHDD等の記憶装置等であってもよく、さらにまたネットワークを介して接続されたデータベース、或いは他のコンピュータシステム並びにそのデータベースや、更に電気通信回線上の搬送波のような伝送媒体であってもよい。
Note that the recording medium on which the program executed by the
図2は、スキャナ40の構成図である。このスキャナ40は、原稿を順次搬送する原稿送り部50と原稿の画像を読み取る原稿読取り部60とにより構成されている。
FIG. 2 is a configuration diagram of the
上段の原稿送り部50には、読み取る原稿を置く(セットする)ための原稿置き部(不図示)及びリタードロール(不図示)が設けられている。原稿置き部にセットされた原稿は、リタードロールにより1枚ずつ捌かれて、原稿送り部50内部に搬送される。
The upper
更に、原稿送り部50には、原稿の搬送経路Aに沿って、1枚ずつに捌かれた原稿を下流側のロールまで搬送する搬送ロール42、プラテンガラス70が設置された原稿読取位置まで原稿を搬送する搬送ロール44、原稿読取位置まで原稿搬送をアシストするためのアシスト板46、及び原稿読取位置に搬送された原稿を更に下流に搬送する搬送ロール48が設けられている。プラテンガラス70とアシスト板46とに挟まれた部分が原稿読取位置になる。
Further, the
下段の原稿読取り部60は、上段の原稿送り部50によって搬送された原稿の画像読取りを行う。
The lower
原稿読取り部60は、プラテンガラス70と、プラテンガラス70の下から原稿の画像を読み込むためのフルレートキャリッジ73と、フルレートキャリッジ73から得られた光を結像用レンズ77へ提供するハーフレートキャリッジ75とを備えている。
The
フルレートキャリッジ73には、原稿に光を照射する照明ランプ72、照明ランプ72の照射光を原稿面に向けて反射するミラー74、及び原稿から得られた反射光を受光するミラー76Aが備えられている。
The full-
ハーフレートキャリッジ75には、ミラー76Aから得られた光を結像用レンズ77へ提供するミラー76Bおよびミラー76Cが備えられている。
The half-
更に、原稿読取り部60は、ミラー76Cから得られた光学像を光学的に縮小する結像用レンズ77、結像用レンズ77によって結像された光学像を光電変換するCCD(Charge Coupled Device)イメージセンサ78を備えている。CCDイメージセンサ78によって得られた画像信号は駆動基板(不図示)を介してCPU12に送られる。
Further, the
このスキャナ40でプラテンガラス70上に載置された原稿を読み取る場合には、まず、フルレートキャリッジ73とハーフレートキャリッジ75とが、2:1の割合でスキャン方向(矢印B方向)に移動する。そして、フルレートキャリッジ73の照明ランプ72の光が原稿の被読取り面に照射されると共に、その原稿からの反射光がミラー76A、ミラー76B、およびミラー76Cの順に反射されて結像用レンズ77に導かれる。ラインセンサ80の各々により1ラインの読取りが終了すると、矢印B方向にフルレートキャリッジ73を移動させ、原稿の次のラインを読み取る。これを原稿サイズ全体に亘って実行することで、1ページの原稿読取りを完了させる。
When the
原稿置き部に載置された原稿を読み取る場合には、フルレートキャリッジ73を原稿読取位置の下方まで移動させ、停止させることにより、フルレートキャリッジ73に搭載された読取光学系を原稿読取位置の下方に停止させた状態で、原稿送り部50によって搬送された原稿が原稿読取位置を通過するときに、そこを通過中(移動中)の原稿からの反射光を結像用レンズ77に導く。
When reading a document placed on the document placement unit, the full-
結像用レンズ77に導かれた光は、CCDイメージセンサ78で受光され結像される。本実施の形態のCCDイメージセンサ78は、スキャン方向と交差する方向(以下、ライン方向)に沿った異なる3本の画素列であって、スキャン方向に沿って予め定められた間隔を隔てた3本の画素列を読み取るための3本のラインセンサ80a、80b、80cを備えている。なお、各ラインセンサ80a、80b、80cの各々を区別しないで説明する場合には、末尾の符号を省略してラインセンサ80と呼称する。
The light guided to the
ラインセンサ80の各々は、複数の受光素子が配列された1次元のセンサであり、ライン方向の1つの画素列をまとめて処理している。具体的には、各受光素子は、入射光に応じたアナログの画像信号を出力する。該アナログの画像信号は、不図示のアナログデジタルコンバーターによりデジタルの画像信号に変換され、I/Oインタフェース18を介して、RAM14やHDD32等の記憶手段に記憶される。以下、1つのラインセンサ80により読み取られる1つの画素列を1ラインと呼称する。
Each of the line sensors 80 is a one-dimensional sensor in which a plurality of light receiving elements are arranged, and processes one pixel column in the line direction collectively. Specifically, each light receiving element outputs an analog image signal corresponding to incident light. The analog image signal is converted into a digital image signal by an analog-digital converter (not shown), and stored in a storage unit such as the
以下、本実施の形態に係る画像読取装置10で行われる画像読取処理について説明する。なお、本実施の形態では、読取り対象の原稿が、一般的な定形の原稿(4つ角が直角の四角形となるように生成された原稿)である場合に限定して説明する。
Hereinafter, an image reading process performed by the
まず、利用者は、スキャナ40の原稿送り部50に設けられた原稿置き部に原稿をセットした状態で、原稿読取りのためのスタートボタンを押下する。具体的には、CPU12は、ディスプレイ38にスタートボタンを表示して、利用者にポインティングデバイス36で選択(ディスプレイ38がタッチパネルディスプレイの場合には、指などにより接触選択)させる。あるいは、画像読取装置10にスタートボタンを設け、該スタートボタンを押下させるようにしてもよい。利用者がスタートボタンを選択(押下)すると、図3に示す処理が開始される。
First, the user presses a start button for reading a document in a state in which the document is set on a document placing unit provided in the
図3は、CPU12が実行する画像読取時の傾き検出処理プログラムの流れの一例を示すフローチャートである。
FIG. 3 is a flowchart illustrating an example of a flow of an inclination detection processing program at the time of image reading executed by the
ステップ100では、CPU12は、スキャナ40に対して原稿搬送を開始させるための制御信号を送信し、原稿置き部にセットされた原稿が原稿読取位置に搬送されるように制御する。
In
ステップ102では、原稿が原稿読取位置に搬送されたところで、CPU12は、原稿の読取りを行わせるための制御信号をスキャナ40に送信し、3本のラインセンサ80による原稿の読取りを行わせる。読み取って得られた各ラインの画像信号は、予め定められた記憶手段(例えばRAM14やHDD32)に記憶される。
In
ステップ104では、CPU12は、ステップ102で読み取って得られた画像信号を上記記憶手段から読み出し、エッジ検出処理を行う。エッジ検出処理は、画像処理により画像信号が急激に変化している部分を原稿のエッジ(縁)として検出する等、一般的に知られている技術を利用する。また、ここでは、原稿が原稿読取位置に到達してから予め定められた時間経過したときに3つのラインセンサ80により読み取られた3本のラインの各々の画像信号に基づいてエッジ検出処理を行う。
In
ステップ106では、CPU12は、複数のラインセンサ80で読み取られた各ラインの画像信号から検出されたエッジの位置に基づいて原稿の傾きを判定する。
In
図4は、3本のラインセンサ80の読取結果に基づいて行われる傾き検出処理の一例を説明する説明図である。図4に示すように、3本のラインセンサ80により、原稿のL1〜L3に示すラインの画像が読み取られる。 FIG. 4 is an explanatory diagram for explaining an example of an inclination detection process performed based on the reading results of the three line sensors 80. As shown in FIG. 4, the three line sensors 80 read the image of the lines indicated by L1 to L3 of the document.
ラインL1の画像信号に基づいて検出されたラインL1上のエッジの位置(以下、エッジ位置)がE11,E21であり、ラインL2の画像信号に基づいて検出されたラインL2上のエッジ位置がE12,E22であり、ラインL3の画像信号に基づいて検出されたラインL3上のエッジ位置がE13,E23である。 The positions of the edges on the line L1 (hereinafter referred to as edge positions) detected based on the image signal of the line L1 are E11 and E21, and the edge positions on the line L2 detected based on the image signal of the line L2 are E12. , E22, and the edge positions on the line L3 detected based on the image signal of the line L3 are E13, E23.
なお、本実施の形態では、ライン方向の予め定められた位置が基準位置として設定されている。基準位置は1つであってもよいが、本実施の形態では、2つの基準位置が設定されている。 In the present embodiment, a predetermined position in the line direction is set as the reference position. Although there may be one reference position, in the present embodiment, two reference positions are set.
また、利用者は原稿を原稿置き部にセットするにあたり、通常は、原稿置き部に設けられた位置決め用の固定ガイド(不図示)に原稿の一辺を突き当ててセットする。以下、原稿を突き当てる側をレジ側と呼称し、逆側を逆レジ側と呼称する。図4では、上側をレジ側とし、下側を逆レジ側とする。また、レジ側の基準位置をレジ側基準位置Q1と呼称し、逆レジ側の基準位置を逆レジ側基準位置Q2と呼称し、区別して説明する。 Further, when the user sets the document on the document placement unit, the user usually sets the document by contacting one side of the document with a positioning guide (not shown) provided on the document placement unit. Hereinafter, the side on which the document is abutted is referred to as a registration side, and the reverse side is referred to as a reverse registration side. In FIG. 4, the upper side is the cash register side, and the lower side is the reverse cash register side. The registration-side reference position is referred to as a registration-side reference position Q1, and the reverse registration-side reference position is referred to as a reverse registration-side reference position Q2.
原稿は、レジ側基準位置Q1から逆レジ側基準位置Q2までの範囲内を搬送されるものとし、各ラインセンサ80は、少なくともレジ側基準位置Q1から逆レジ側基準位置Q2までの範囲の受光が可能に構成されているものとする。 The document is transported within a range from the registration-side reference position Q1 to the reverse registration-side reference position Q2, and each line sensor 80 receives light in a range from at least the registration-side reference position Q1 to the reverse registration-side reference position Q2. Is configured to be possible.
ステップ106では、まず、CPU12は、レジ側のエッジ位置E11,E12,E13の各々と、レジ側基準位置Q1との距離X11、X12、X13を求める。また、CPU12は、逆レジ側のエッジ位置E21,E22,E23の各々と、逆レジ側基準位置Q2との距離X21、X22、X23を求める。
In
次に、CPU12は、求めた各々の距離を比較して、原稿が傾いているか否かを判定する。具体的には、X11=X12=X13、かつX21=X22=X23の場合には、原稿は傾いていない、と判定する。また、CPU12は、X11=X12=X13でない場合、且つX21=X22=X23でない場合には、原稿は傾いていると判定する。図4に示した例では、X11≠X13であって、X21≠X23であるため、原稿が傾いていると判定される。
Next, the
なお、各ラインセンサ80の読取り誤差等を考慮して、各距離が完全に一致していなくても、予め定められた範囲内の誤差であれば、原稿は傾いていないと判定するようにしてもよい。 In consideration of the reading error of each line sensor 80, etc., even if the distances do not completely match, if the error is within a predetermined range, it is determined that the document is not inclined. Also good.
また、ここではレジ側のエッジ位置及び逆レジ側のエッジ位置の双方を用いて、原稿が傾いているか否かを判定するようにしたが、レジ側のエッジ位置、及び逆レジ側のエッジ位置のいずれか一方を用いて原稿が傾いているか否かを判定するようにしてもよい。 In this example, it is determined whether the document is inclined by using both the edge position on the registration side and the edge position on the reverse registration side. However, the edge position on the registration side and the edge position on the reverse registration side are determined. Either one of the above may be used to determine whether the document is tilted.
ステップ106で、原稿が傾いていると判定された場合には、ステップ108に移行する。
If it is determined in
ステップ108では、CPU12は、レジ側のエッジ位置及び逆レジ側のエッジ位置のいずれか一方を用いて、原稿がどの程度傾いているかを示す傾き角度θを算出する。CPU12は、各エッジ位置の各々が同一直線上に位置すると判断した側のエッジ位置のうち2つのエッジ位置と基準位置との距離(XA,XB)を用いて下記(1)式のように計算する。
In
θ=tan−1((XA−XB)/N) ・・・(1) θ = tan -1 ((XA- XB) / N) ··· (1)
(1)式において、Nは、2つのエッジ位置のスキャン方向の距離(該2つのエッジを読み取った各ラインセンサ80のスキャン方向の読取位置の間隔)を示す。 In the equation (1), N indicates the distance in the scanning direction between the two edge positions (the interval between the scanning positions in the scanning direction of the line sensors 80 that read the two edges).
図4に示す例では、同一の辺から検出されたレジ側のエッジ位置E11,E12,E13が、同一直線上に位置していると判断される。従って、CPU12は、エッジ位置E11,E12,E13のうち2つのエッジ位置とレジ側基準位置Q1との距離を用いて、上記(1)式により算出する。例えば、X11及びX13を用いて計算する場合には、θ=tan−1((X11−X13)/N)と計算される。
In the example shown in FIG. 4, it is determined that the registration-side edge positions E11, E12, E13 detected from the same side are located on the same straight line. Therefore, the
例えば、CCDイメージセンサ28のスキャン方向の読取ライン間隔が10ラインの場合において、10ラインで1画素原稿がずれていることが検知された場合には、原稿の傾き角度は約5.7度となる。
For example, in the case where the scanning line interval in the scanning direction of the
なお、図4に示すように、逆レジ側のエッジ位置については、各エッジ位置E21,E22,E23は同一の直線上にはない。これは、E22及びE23を検出した辺と、E21を検出した辺とが異なるためである。従って、E22及びE23の組み合わせでは、原稿の傾き角度θを得られるが、異なる辺で検出されたE21及びE22、またはE21及びE23の組み合わせでは、原稿の傾き角度θは得られない。これにより、本実施の形態では、エッジ位置の各々が同一直線上に位置する(同一の辺から検出された)と判断されたレジ側のエッジ位置と基準位置との距離を用いて計算するようにしている。 As shown in FIG. 4, for the edge positions on the reverse registration side, the edge positions E21, E22, E23 are not on the same straight line. This is because the sides where E22 and E23 are detected are different from the sides where E21 is detected. Therefore, the combination of E22 and E23 can obtain the document inclination angle θ, but the combination of E21 and E22 detected at different sides or the combination of E21 and E23 cannot obtain the document inclination angle θ. As a result, in the present embodiment, the calculation is performed using the distance between the edge position on the registration side determined to be located on the same straight line (detected from the same side) and the reference position. I have to.
なお、ここではエッジ位置の各々が同一直線上に位置するか否かを判断することにより同一の辺から検出されたか否かを判断し、同一の辺から検出されたと判断した側のエッジ位置と基準位置との距離を用いて傾き角度を計算する例について説明したが、各ラインセンサ80の読取り誤差等を考慮して、完全に同一直線上に位置していなくても、予め定められた範囲内の誤差であれば、同一の辺から検出されたと判断するようにしてもよい。 Here, it is determined whether or not each edge position is detected from the same side by determining whether or not each edge position is located on the same straight line, and the edge position on the side determined to be detected from the same side The example in which the tilt angle is calculated using the distance from the reference position has been described. However, in consideration of the reading error of each line sensor 80 and the like, a predetermined range may be used even if they are not completely located on the same straight line. May be determined as being detected from the same side.
また、レジ側のエッジ位置の各々が同一直線上にあり且つ逆レジ側のエッジ位置の各々も同一直線上にあると判断された場合には、どちらを使用して計算してもよい。 If it is determined that each of the edge positions on the registration side is on the same straight line and each of the edge positions on the reverse registration side is on the same straight line, either may be used for calculation.
ステップ110では、CPU12は、求めた傾き角度θが予め設定された閾値を超えているか否かを判断する。CPU12は、求めた傾き角度θが予め設定された閾値を超えていると判断した場合には、ステップ112で、傾き補正を行う。例えば、原稿の読取りにより得られた画像データに上記求めた傾き角度θだけ画像を回転させる回転処理を施す等の補正を行う。
In
一方、ステップ110で、CPU12は、求めた傾き角度θが予め設定した閾値を超えていないと判断した場合には、ステップ112の処理を行わずに終了する。
On the other hand, if the
なお、本発明は、上述した実施の形態に限定されるものではなく、特許請求の範囲に記載された発明の範囲内で様々な設計上の変更を行ってもよい。以下、様々な変形例について説明する。 The present invention is not limited to the above-described embodiment, and various design changes may be made within the scope of the invention described in the claims. Hereinafter, various modifications will be described.
(変形例1) (Modification 1)
上記実施の形態では、原稿がどの程度傾いているかを示すデータとして傾き角度θを求めたが、傾きの度合いを示すデータであれば、傾き角度θに限定されない。例えば、tanθを傾きの度合いを示すデータとして求めても良い。 In the above-described embodiment, the inclination angle θ is obtained as data indicating how much the document is inclined. However, the data is not limited to the inclination angle θ as long as the data indicates the degree of inclination. For example, tan θ may be obtained as data indicating the degree of inclination.
また、傾き角度θを求める場合に、(1)式を用いて求めたが、エッジ位置と傾き角度とを対応付けて記憶したテーブルを予め生成しておき、HDD32などの記憶手段に記憶しておくようにしてもよい。この場合には、CPU12は、該テーブルを参照して傾き角度θを求める。
Further, when the inclination angle θ is obtained, it is obtained by using the equation (1). However, a table in which the edge position and the inclination angle are associated with each other is generated in advance and stored in a storage unit such as the
(変形例2) (Modification 2)
上記実施の形態では、レジ側のエッジ位置E11,E12,E13の各々とレジ側基準位置Q1との距離X11、X12、X13を求めると共に、逆レジ側のエッジ位置E21,E22,E23の各々と逆レジ側基準位置Q2との距離X21、X22、X23を求め、各距離の大小を比較して、原稿が傾いているか否かを判断し、傾いていると判断した場合に傾き角度θを求める例について説明した。しかしながら、本発明はこれに限定されるものではなく、例えば、傾いているか否かを判断することなく、まず傾き角度θを求め、該傾き角度θから傾いているか否か、又は補正するか否かを判断するようにしてもよい。 In the above embodiment, the distances X11, X12, and X13 between the registration-side edge positions E11, E12, and E13 and the registration-side reference position Q1 are obtained, and the reverse registration-side edge positions E21, E22, and E23 are obtained. The distances X21, X22, and X23 with respect to the reverse registration side reference position Q2 are obtained, the magnitudes of the distances are compared, it is determined whether or not the document is tilted, and the tilt angle θ is determined when it is determined that the document is tilted. An example was described. However, the present invention is not limited to this. For example, without determining whether or not the vehicle is tilted, the tilt angle θ is first obtained and whether or not the tilt angle θ is tilted or whether or not to be corrected. You may make it judge.
(変形例3) (Modification 3)
また、上記実施の形態では、傾き角度θが予め設定された閾値を超えた場合に、傾き補正する例について説明したが、傾き補正せずに、傾いていることや傾き角度θを利用者に報知するようにしてもよい。また、傾き角度θが予め設定された閾値を超えなくても、傾き角度θを利用者に報知して、補正するか、再度読取りを行うかを利用者に判断させるようにしてもよい。また、傾き角度θがどのような値であっても、一律に傾き補正をするようにしてもよい。 In the above-described embodiment, the example in which the tilt correction is performed when the tilt angle θ exceeds a preset threshold has been described. However, the tilt or the tilt angle θ can be determined by the user without performing the tilt correction. You may make it alert | report. Even if the tilt angle θ does not exceed a preset threshold value, the user may be notified of the tilt angle θ and make the user determine whether to correct or read again. Further, the inclination correction may be performed uniformly regardless of the inclination angle θ.
また、ステップ106の判定結果(傾いているか否か)を利用者に報知するようにし、ステップ108〜110の傾き角度θの算出や傾き補正等を行わない構成としてもよい。
The determination result of step 106 (whether or not it is tilted) may be notified to the user, and the calculation of the tilt angle θ and the tilt correction in
(変形例4) (Modification 4)
また、上記実施の形態では、3本のラインセンサ80を用いる例について説明したが、2本以上のラインセンサを用いる構成であればよく、例えば、2本でもよいし、4本でもよい。なお、2本のラインセンサを用いる場合には、以下のように傾き検出するようにしてもよい。 Moreover, although the example using the three line sensors 80 was demonstrated in the said embodiment, the structure using two or more line sensors should just be sufficient, for example, two may be sufficient and four may be sufficient. In addition, when using two line sensors, you may make it detect inclination as follows.
ここで、図3及び図5を参照しながら、2本のラインセンサ80を用いる場合の傾き検出処理の一例について説明する。なお、図5は、2本のラインセンサ80の読取結果に基づいて行われる傾き検出処理の一例を説明する説明図である。 Here, an example of an inclination detection process when two line sensors 80 are used will be described with reference to FIGS. 3 and 5. FIG. 5 is an explanatory diagram for explaining an example of an inclination detection process performed based on the reading results of the two line sensors 80.
ステップ100〜102は、上記実施の形態と同様に行う。
ステップ104では、CPU12は、ステップ102で読み取って得られた画像信号から、エッジ検出処理を行う。ここでは、原稿が読み取り位置に到達してから予め定められた時間t1,およびt2経過したときに読み取られた各ラインの画像信号を用いてエッジ検出処理を行う。
In
図5では、時間t1が経過したときに読み取られた各ラインをL1a、L2aで示し、時間t2が経過したときに読み取られた画像信号のラインをL1b、L2bで示した。 In FIG. 5, the lines read when the time t1 has elapsed are indicated by L1a and L2a, and the lines of the image signal read when the time t2 has elapsed are indicated by L1b and L2b.
また、ラインL1aの画像信号に基づいてラインL1a上の検出されたエッジ位置がE11a,E12aであり、ラインL2aの画像信号に基づいてラインL2a上の検出されたエッジ位置がE12a,E22aである。また、ラインL1bの画像信号に基づいて検出されたラインL1b上のエッジの位置がE11b,E21bであり、ラインL2bの画像信号に基づいて検出されたラインL2b上のエッジの位置がE12b,E22bである。 Further, the edge positions detected on the line L1a based on the image signal of the line L1a are E11a and E12a, and the edge positions detected on the line L2a based on the image signal of the line L2a are E12a and E22a. Further, the positions of the edges on the line L1b detected based on the image signal of the line L1b are E11b and E21b, and the positions of the edges on the line L2b detected based on the image signal of the line L2b are E12b and E22b. is there.
ステップ106では、CPU12は、時間t1が経過したときに2本のラインセンサ80により読み取られた画像信号、または時間t2が経過したときに2本のラインセンサ80により読み取られた画像信号から検出されたエッジ位置に基づいて、原稿の傾きを判定する。
In
L1a及びL2aのエッジ位置を用いる場合には、CPU12は、レジ側のエッジ位置E11a,E12aの各々と、レジ側基準位置Q1と、の距離X11a、X12aを求める。また、CPU12は、逆レジ側のエッジ位置E21a,E22aの各々と、逆レジ側基準位置Q2と、の距離X21a、X22aを求める。
When the edge positions of L1a and L2a are used, the
CPU12は、求めた各々の距離を比較して、原稿が傾いているか否かを判定する。具体的には、X11a=X12a、且つX21a=X22aの場合には、原稿は傾いていない、と判定する。また、CPU12は、X11a=X12aでない場合、且つX21a=X22aでない場合には、原稿は傾いていると判定する。図5に示した例では、X11a≠X12aであって、X21a≠X22aであるため、原稿が傾いていると判定される。
The
なお、ここでは、レジ側のエッジ位置及び逆レジ側のエッジ位置の双方を用いて、原稿が傾いているか否かを判定するようにしたが、レジ側のエッジ位置、及び逆レジ側のエッジ位置のいずれか一方を用いて原稿が傾いているか否かを判定するようにしてもよい。 Here, it is determined whether or not the document is inclined by using both the edge position on the registration side and the edge position on the reverse registration side. However, the edge position on the registration side and the edge on the reverse registration side are determined. It may be determined whether or not the document is tilted using one of the positions.
ステップ106で、原稿が傾いていると判定された場合には、ステップ108に移行する。
If it is determined in
ステップ108では、CPU12は、レジ側のエッジ位置及び逆レジ側のエッジ位置のいずれか一方を用いて、原稿がどの程度傾いているかを示す傾き角度θを算出する。ここでは、CPU12は、上記読み取られた各ラインのエッジ位置の各々と基準位置との距離の各々の大小関係を比較し、スキャン方向上流側(または下流側)の距離ほど大きくなっている、又は小さくなっていると判断された側のエッジ位置であって、時間t1が経過したときに読み取られた画像信号、または時間t2が経過したときに読み取られた画像信号から検出されたエッジ位置(XA,XB)を用いて、上記(1)のように計算する。
In
例えば、図5に示す例では、同一の辺から検出されたレジ側のエッジ位置E11a,E12a,E11b,E12bの各々とレジ側基準位置Q1との距離は、スキャン方向の上流側の距離ほど小さくなっている(X11a>X12a>X11b>X12b)。一方、逆レジ側のエッジ位置E21a,E22a,E21b,E22bの各々と逆レジ側基準位置Q2との距離は、X21a>X22a>X21b>X22bの関係、およびX21a<X22a<X21b<X22bの関係のいずれも満たしていない。これは、E21aを検出した辺と、E22a,E21b,E22bを検出した辺とが異なるためである。従って、CPU12は、レジ側のエッジ位置を用いて傾き角度θを算出する。
For example, in the example shown in FIG. 5, the distance between each of the registration-side edge positions E11a, E12a, E11b, and E12b detected from the same side and the registration-side reference position Q1 is smaller as the distance on the upstream side in the scanning direction. (X11a> X12a> X11b> X12b). On the other hand, the distance between each of the edge positions E21a, E22a, E21b, E22b on the reverse registration side and the reference position Q2 on the reverse registration side is a relationship of X21a> X22a> X21b> X22b and a relationship of X21a <X22a <X21b <X22b. None of them are met. This is because the side where E21a is detected is different from the side where E22a, E21b and E22b are detected. Therefore, the
なお、レジ側及び逆レジ側の双方で、エッジ位置の各々と基準位置との距離の各々距離が、スキャン方向上流側(または下流側)にいくほど大きくなっている又は小さくなっている場合には、どちらを使用して算出してもよい。 When the distance between each edge position and the reference position is increased or decreased toward the upstream side (or downstream side) in the scanning direction on both the registration side and the reverse registration side. May be calculated using either.
ステップ110〜ステップ112の処理は、上記実施の形態と同様であるため、説明を省略する。
Since the processing from
なお、2本のラインセンサ80を用いる場合であっても、ステップ106の判定結果(傾いているか否か)を利用者に報知するようにし、ステップ108〜110の傾き角度θの算出や傾き補正等を行わない構成としてもよい。
Even when two line sensors 80 are used, the determination result of step 106 (whether or not it is tilted) is notified to the user, and the tilt angle θ is calculated or corrected in
また、傾き角度θを算出しない場合には、1箇所(上記時間t1が経過したとき、または時間t2が経過したとき、のいずれか)で読み取られた読取結果を用いてエッジ検出を行い、傾き検出を行うようにしてもよい。また、傾き角度θを算出する場合であっても、傾き角度θがあまり大きくならないと想定される場合等には、予め定められた箇所で読み取られた読取結果を用いてエッジ検出を行い、レジ側及び逆レジ側のうち予め定められた側のエッジ位置を用いて傾き角度θの算出を行うようにしてもよい。 When the tilt angle θ is not calculated, edge detection is performed using the reading result read at one place (either when the time t1 has elapsed or when the time t2 has elapsed), and the tilt is detected. Detection may be performed. Further, even when the inclination angle θ is calculated, when it is assumed that the inclination angle θ is not so large, edge detection is performed using a reading result read at a predetermined location, and registration is performed. The inclination angle θ may be calculated using an edge position on a predetermined side of the side and the reverse registration side.
(変形例5) (Modification 5)
上記実施の形態や、変形例1〜4では、読取り対象の原稿が、一般的な定形の原稿(4つ角が直角の四角形となるように生成された原稿)である場合に限定して説明したが、形状が台形や三角形の場合など、非定形の原稿を考慮して判定するようにしてもよい。 In the above embodiment and the first to fourth modifications, the description is limited to the case where the document to be read is a general fixed-size document (a document generated so that the four corners are squares with right angles). However, when the shape is a trapezoid or a triangle, the determination may be made in consideration of an irregular document.
非定形の原稿を考慮する場合には、上記ステップ106において、以下のように処理するようにしてもよい。
When considering a non-standard document, the following processing may be performed in
まず、ステップ106で、CPU12は、X11=X12=X13、X21=X22=X23の場合には、原稿は定形であり傾いていない、と判定する。また、CPU12は、X11=X12=X13でない場合、且つX21=X22=X23でない場合には、原稿は傾いているか非定形であると判定する。CPU12は、原稿は傾いているか非定形であると判定した場合には、更に、(X11−X13)と(X23−X21)との差をとって、原稿が傾いている、または否定形、のいずれであるのかを判定する。上記差分が、予め定められた範囲から外れるような場合(例えば、原稿がレジ側と逆レジ側とが逆の傾きであった場合など)には、CPU12は、原稿は傾いているのではなく非定形原稿であると判定する。非定形原稿であると判定した場合には、ステップ106で否定判定し、傾き角度θの算出や傾き補正は行わない。また、(X11−X13)と(X23−X21)との差が予め定められた範囲内である場合には、CPU12は、原稿は傾いていると判定し、後段のステップで、傾き角度θを算出し、閾値を越えていれば傾き補正を行う。
First, in
(変形例6) (Modification 6)
また、上記実施の形態や変形例1〜5では、原稿が傾いているか否かをレジ側及び逆レジ側の双方のエッジ位置に基づいて判定するようにしたが、予め定められた側、例えばレジ側、のエッジ位置に基づいて判定してもよい。この場合には、傾き角度θも、予め定められた側のエッジ位置に基づいて算出する。 In the embodiment and the first to fifth modifications, whether or not the document is tilted is determined based on the edge positions on both the registration side and the reverse registration side. The determination may be made based on the edge position on the registration side. In this case, the inclination angle θ is also calculated based on a predetermined edge position.
例えば、一辺が変形している形状の原稿を読み取る場合には、利用者は、変形していない他の辺を、原稿置き部に設けられた位置決め用の固定ガイドに突き当てて原稿をセットすることが多いことから、原稿を突き当てる側(本実施の形態ではレジ側)のエッジ位置に基づいて傾きを判定するように設定しておいてもよい。 For example, when reading a document having a shape with one side deformed, the user sets the document by abutting the other side that is not deformed against a fixed guide for positioning provided in the document placement unit. Since there are many cases, the inclination may be determined based on the edge position on the side where the document is abutted (in this embodiment, the registration side).
(変形例7) (Modification 7)
上記実施の形態や変形例1〜5では、傾き角度θ等の傾きの度合いを示すデータを求めるにあたり、レジ側のエッジ位置とレジ側基準位置Q1との距離、及び逆レジ側のエッジ位置と逆レジ側基準位置Q2との距離のどちらを使用するかについては、各エッジ位置が同一直線上に位置する(同一の辺から検出された)か否か等を判定基準として判定するようにしたが、どちらを用いるかを予め設定しておいてもよい。 In the embodiment and the first to fifth modifications, in obtaining data indicating the degree of inclination such as the inclination angle θ, the distance between the registration-side edge position and the registration-side reference position Q1, and the reverse registration-side edge position Whether to use the distance from the reverse registration side reference position Q2 is determined based on whether each edge position is located on the same straight line (detected from the same side), etc. However, which one to use may be set in advance.
例えば、利用者は原稿を原稿置き部にセットするにあたり、通常は、原稿置き部に設けられた位置決め用の固定ガイドに原稿の一辺を突き当ててセットする。そこで、原稿を突き当てる側(上記実施の形態ではレジ側)のエッジ位置と基準位置との距離を、上記傾き角度θなどの傾きの度合いを示すデータを求める際に用いるように予め設定しておいてもよい。 For example, when a user sets a document on the document placement unit, the user usually sets the document by placing one side of the document against a fixed guide for positioning provided on the document placement unit. Therefore, the distance between the edge position on the side where the document is abutted (the registration side in the above embodiment) and the reference position is set in advance so as to be used when obtaining data indicating the degree of inclination such as the inclination angle θ. It may be left.
また、レジ側及びエッジ側の双方の傾き角度θを算出し、双方の算出結果が異なる場合には、いずれか一方を傾き角度として選択するようにしてもよい。例えば、レジ側と逆レジ側とで傾き角度θが異なる場合には、傾き補正するにあたり過補正にならないよう傾きが小さい方を選択するようにしてもよい。また、予め定められた側(例えば、レジ側)の傾き角度θを選択するようにしてもよい。 Further, the inclination angle θ on both the registration side and the edge side may be calculated, and if the calculation results of both are different, either one may be selected as the inclination angle. For example, when the inclination angle θ is different between the registration side and the reverse registration side, the smaller inclination may be selected so as not to overcorrect the inclination correction. Alternatively, the inclination angle θ on a predetermined side (for example, the registration side) may be selected.
(変形例8) (Modification 8)
上記実施の形態や変形例1〜7では、レジ側基準位置Q1、逆レジ側基準位置Q2の2つの基準位置を用いて、検出された原稿のエッジ位置との距離を求めて、原稿の傾きを判定する例について説明したが、使用する基準位置は1つであってもよい。基準位置が1つの場合には、1ラインで検出された2箇所のエッジ位置のうち、基準位置に近い方のエッジ位置のグループと、基準位置に遠い方のエッジ位置のグループとで区別して各々距離を求め、少なくとも一方のグループのエッジ位置を用いて、原稿が傾いているか否かの判定や傾き角度θの算出を行う。 In the embodiment and the first to seventh modifications, the inclination of the original is obtained by using the two reference positions of the registration side reference position Q1 and the reverse registration side reference position Q2 to obtain the distance from the detected edge position of the original. Although the example of determining is described, one reference position may be used. When there is one reference position, among the two edge positions detected in one line, the edge position group closer to the reference position and the edge position group farther from the reference position are distinguished from each other. The distance is obtained, and the edge position of at least one group is used to determine whether or not the document is tilted and to calculate the tilt angle θ.
10 画像読取装置
12 CPU
14 RAM
16 ROM
18 I/Oインタフェース
20 通信インタフェース
22 バス
24 CD−ROMドライブ
28 FDドライブ
34 キーボード
36 ポインティングデバイス
38 ディスプレイ
40 スキャナ
78 CCDイメージセンサ
10
14 RAM
16 ROM
18 I /
Claims (9)
第1の方向に沿った各々異なる複数の画素列であって、前記第1の方向と交差する第2の方向に沿って予め定められた間隔を隔てた複数の画素列を各々読み取るための複数の読取部を備え、前記原稿読取位置に搬送された原稿を読み取る原稿読取手段と、
前記複数の読取部の各々により読み取られた画素列毎の画像信号に基づいて、前記原稿読取位置に搬送された原稿の縁の位置を検出する縁検出手段と、
前記縁検出手段で検出された縁の位置の各々に基づいて、前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する傾き検出手段と、
を備えた画像読取装置。 Conveying means for conveying the document to the document reading position;
A plurality of different pixel columns along the first direction, each for reading a plurality of pixel columns at predetermined intervals along a second direction intersecting the first direction. A document reading means for reading a document conveyed to the document reading position,
Edge detection means for detecting the position of the edge of the document conveyed to the document reading position based on the image signal for each pixel row read by each of the plurality of reading units;
An inclination detection means for detecting whether or not the document conveyed to the document reading position is inclined and at least one of the degree of inclination based on each of the edge positions detected by the edge detection means;
An image reading apparatus comprising:
前記傾き検出手段は、前記縁検出手段で検出された画素列毎の2箇所の縁のうち前記第1方向における予め定められた基準位置に近い方の縁の位置の各々と、他方の縁の位置の各々と、の少なくとも一方に基づいて前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する
請求項1に記載の画像読取装置。 The edge detection means detects the positions of two edges for each pixel row read by the plurality of reading units,
The tilt detection means includes each of the positions of the edges closer to a predetermined reference position in the first direction and the other edge of the two edges for each pixel column detected by the edge detection means. The image reading apparatus according to claim 1, wherein at least one of whether or not the document conveyed to the document reading position is tilted and a degree of tilt is detected based on at least one of each of the positions.
前記傾き検出手段は、前記縁検出手段で検出された画素列毎の2箇所の縁のうち前記第1方向における予め定められた基準位置に近い方の縁の位置の各々に基づいて、前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する
請求項1に記載の画像読取装置。 The edge detection means detects the positions of two edges for each pixel row read by the plurality of reading units,
The inclination detection unit is configured to detect the document based on each of the positions of the edges closer to the predetermined reference position in the first direction among the two edges for each pixel row detected by the edge detection unit. The image reading apparatus according to claim 1, wherein at least one of whether or not the document conveyed to the reading position is inclined and the degree of inclination is detected.
前記傾き検出手段は、前記縁検出手段で検出された画素列毎の2箇所の縁のうち予め定められた基準位置に近い方の縁の位置の各々が同一の辺から検出された縁の位置か否か、及び他方の縁の位置の各々が同一の辺から検出された縁の位置か否かを判定し、同一の辺から検出された縁の位置であると判定された方の縁の位置の各々に基づいて、前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する
請求項1に記載の画像読取装置。 The edge detection means detects the positions of two edges for each pixel row read by the plurality of reading units,
The inclination detecting means is a position of an edge in which each of the positions of the edges closer to a predetermined reference position is detected from the same side among the two edges for each pixel row detected by the edge detecting means. And whether each of the positions of the other edge is an edge position detected from the same side, and the edge of the edge determined to be the position of the edge detected from the same side is determined. The image reading apparatus according to claim 1, wherein at least one of whether or not the document conveyed to the document reading position is tilted and the degree of tilt is detected based on each position.
前記傾き検出手段は、前記縁検出手段で検出された画素列毎の2箇所の縁のうち前記第1の方向における予め定められた基準位置に近い方の縁の位置の各々に基づいて前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する第1検出処理と、他方の縁の位置の各々に基づいて前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する第2検出処理とを行い、前記第1検出処理及び第2検出処理の検出結果が異なる場合には、予め定められた方の縁の位置に基づいて行われた検出処理の検出結果を選択する
請求項1に記載の画像読取装置。 The edge detection means detects the positions of two edges for each pixel row read by the plurality of reading units,
The inclination detection unit is configured to detect the document based on each of the positions of the edges closer to the predetermined reference position in the first direction among the two edges for each pixel row detected by the edge detection unit. The first detection process for detecting whether or not the document conveyed to the reading position is inclined and the degree of the inclination, and the document conveyed to the document reading position based on each of the positions of the other edge A second detection process for detecting at least one of whether or not it is tilted and the degree of tilt, and if the detection results of the first detection process and the second detection process are different, a predetermined edge The image reading apparatus according to claim 1, wherein a detection result of a detection process performed based on the position of the image is selected.
前記傾き検出手段は、前記傾きの度合いを検出する場合に、前記縁検出手段で検出された画素列毎の2箇所の縁のうち前記第1の方向における予め定められた基準位置に近い方の縁の位置の各々に基づいて前記傾きの度合いを検出する第1検出処理と、他方の縁の位置の各々に基づいて前記傾きの度合いの少なくとも一方を検出する第2検出処理とを行い、前記第1検出処理及び第2検出処理の検出結果が異なる場合には、傾きの度合いが小さい方の検出結果を選択する
請求項1に記載の画像読取装置。 The edge detection means detects the positions of two edges for each pixel row read by the plurality of reading units,
When detecting the degree of inclination, the inclination detection unit is closer to a predetermined reference position in the first direction out of two edges for each pixel column detected by the edge detection unit. Performing a first detection process for detecting the degree of inclination based on each of the edge positions and a second detection process for detecting at least one of the degrees of inclination based on each of the other edge positions; The image reading apparatus according to claim 1, wherein when the detection results of the first detection process and the second detection process are different, the detection result with the smaller degree of inclination is selected.
請求項1〜請求項6のいずれか1項記載の画像読取装置。 When the degree of inclination is detected by the inclination detecting unit, the reading result of the original is corrected when a value indicating the degree of inclination detected by the inclination detecting unit is equal to or greater than a predetermined threshold. The image reading apparatus according to claim 1, further comprising a correction unit.
第1の方向に沿った各々異なる複数の画素列であって、前記第1の方向と交差する第2の方向に沿って予め定められた間隔を隔てた複数の画素列を各々読み取るための複数の読取部を備え、搬送手段により原稿読取位置に搬送された原稿を読み取る原稿読取手段の前記複数の読取部の各々により読み取られた画素列毎の画像信号に基づいて、前記原稿読取位置に搬送された原稿の縁の位置を検出する縁検出手段、及び
前記縁検出手段で検出された縁の位置の各々に基づいて、前記原稿読取位置に搬送された原稿が傾いているか否か、及び傾きの度合いの少なくとも一方を検出する傾き検出手段、
として機能させるためのプログラム。 Computer
A plurality of different pixel columns along the first direction, each for reading a plurality of pixel columns at predetermined intervals along a second direction intersecting the first direction. And reading the original conveyed to the original reading position by the conveying means based on the image signal for each pixel column read by each of the plurality of reading sections of the original reading means. Edge detecting means for detecting the position of the edge of the original document, and whether or not the original conveyed to the original reading position is inclined based on each of the edge positions detected by the edge detecting means. Inclination detecting means for detecting at least one of the degree of
Program to function as.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008227098A JP5163375B2 (en) | 2008-09-04 | 2008-09-04 | Image reading apparatus and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008227098A JP5163375B2 (en) | 2008-09-04 | 2008-09-04 | Image reading apparatus and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010062924A true JP2010062924A (en) | 2010-03-18 |
JP5163375B2 JP5163375B2 (en) | 2013-03-13 |
Family
ID=42189224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008227098A Expired - Fee Related JP5163375B2 (en) | 2008-09-04 | 2008-09-04 | Image reading apparatus and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5163375B2 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012134773A (en) * | 2010-12-21 | 2012-07-12 | Canon Inc | Image processing device, and control method and program therefor |
JP2014168193A (en) * | 2013-02-28 | 2014-09-11 | Brother Ind Ltd | Image reader |
JP2017163488A (en) * | 2016-03-11 | 2017-09-14 | コニカミノルタ株式会社 | Document reading device, image processing apparatus, document reading method and program |
WO2018034414A1 (en) * | 2016-08-17 | 2018-02-22 | 에스프린팅솔루션주식회사 | Image forming apparatus, scanned image correction method thereof, and non-transitory computer-readable recording medium |
JP2019134348A (en) * | 2018-02-01 | 2019-08-08 | キヤノン株式会社 | Image reading apparatus and image forming apparatus |
JP2021034842A (en) * | 2019-08-22 | 2021-03-01 | セイコーエプソン株式会社 | Image reading device, abnormality determination program, and abnormality determination method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05236253A (en) * | 1992-02-21 | 1993-09-10 | Minolta Camera Co Ltd | Picture processor |
JP2003298815A (en) * | 2002-04-02 | 2003-10-17 | Fuji Xerox Co Ltd | Image reader and image reading method |
JP2008028522A (en) * | 2006-07-19 | 2008-02-07 | Fuji Xerox Co Ltd | Image reading device |
-
2008
- 2008-09-04 JP JP2008227098A patent/JP5163375B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05236253A (en) * | 1992-02-21 | 1993-09-10 | Minolta Camera Co Ltd | Picture processor |
JP2003298815A (en) * | 2002-04-02 | 2003-10-17 | Fuji Xerox Co Ltd | Image reader and image reading method |
JP2008028522A (en) * | 2006-07-19 | 2008-02-07 | Fuji Xerox Co Ltd | Image reading device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012134773A (en) * | 2010-12-21 | 2012-07-12 | Canon Inc | Image processing device, and control method and program therefor |
US9179036B2 (en) | 2010-12-21 | 2015-11-03 | Canon Kabushiki Kaisha | Image processing apparatus corresponding to a plurality of documents on a document plate, method for controlling the same, and program |
JP2014168193A (en) * | 2013-02-28 | 2014-09-11 | Brother Ind Ltd | Image reader |
JP2017163488A (en) * | 2016-03-11 | 2017-09-14 | コニカミノルタ株式会社 | Document reading device, image processing apparatus, document reading method and program |
WO2018034414A1 (en) * | 2016-08-17 | 2018-02-22 | 에스프린팅솔루션주식회사 | Image forming apparatus, scanned image correction method thereof, and non-transitory computer-readable recording medium |
CN109845237A (en) * | 2016-08-17 | 2019-06-04 | 惠普打印机韩国有限公司 | The scan Image Correction Method and non-transitory computer readable recording medium of image forming apparatus, image forming apparatus |
CN109845237B (en) * | 2016-08-17 | 2020-10-09 | 惠普发展公司,有限责任合伙企业 | Image forming apparatus, scanned image correction method of image forming apparatus, and non-transitory computer-readable recording medium |
US11295415B2 (en) | 2016-08-17 | 2022-04-05 | Hewlett-Packard Development Company, L.P. | Image forming apparatus, scanned image correction method thereof, and non-transitory computer-readable recording medium |
JP2019134348A (en) * | 2018-02-01 | 2019-08-08 | キヤノン株式会社 | Image reading apparatus and image forming apparatus |
JP7073124B2 (en) | 2018-02-01 | 2022-05-23 | キヤノン株式会社 | Image reader, image forming device |
JP2021034842A (en) * | 2019-08-22 | 2021-03-01 | セイコーエプソン株式会社 | Image reading device, abnormality determination program, and abnormality determination method |
JP7272173B2 (en) | 2019-08-22 | 2023-05-12 | セイコーエプソン株式会社 | Image reading device, abnormality determination program, abnormality determination method |
Also Published As
Publication number | Publication date |
---|---|
JP5163375B2 (en) | 2013-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5163375B2 (en) | Image reading apparatus and program | |
US9544457B2 (en) | Image-reading apparatus, image-reading method, program, and recording medium | |
US10491770B2 (en) | Image reading apparatus with skew feed correction and image reading method thereof | |
CN104284053A (en) | Tilt angle correction apparatus, image reader, image forming apparatus, and program | |
JP5376907B2 (en) | Image reading apparatus and image processing method | |
JP2011030205A (en) | Image reading apparatus | |
JP2016001795A (en) | Control device, control method, and program | |
US11190658B2 (en) | Image reading apparatus | |
JP2008011363A (en) | Image reader and image forming apparatus | |
JP5811773B2 (en) | Image reading device | |
JP2006270768A (en) | Image reading apparatus | |
JP2008028522A (en) | Image reading device | |
JP6107515B2 (en) | Image forming system and image processing apparatus | |
US20210368054A1 (en) | Image reading apparatus capable of determining whether missing part of document image occurs based on edge shape of at least one of leading and trailing edges of document image | |
US7903300B2 (en) | Scanning device and method thereof | |
JP6716013B2 (en) | Image reading device, control method, and control program | |
JP5383296B2 (en) | Image reading apparatus and method, and program | |
JP5966279B2 (en) | Image reading apparatus and image forming apparatus | |
JP2007158859A (en) | Image reading apparatus and image forming apparatus | |
JP6632335B2 (en) | Image reading apparatus and image reading method | |
JP2020083499A (en) | System for supplying recording medium, device for supplying recording medium, and method for supplying recording medium | |
JPH06245032A (en) | Optical recognition device | |
JP7141973B2 (en) | Image reading device, image processing system, control method and control program | |
JP4840251B2 (en) | Document reader | |
JP2017092561A5 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110822 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120411 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120417 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120611 |
|
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: 20121120 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121203 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151228 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5163375 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |