JP6107493B2 - Image reading apparatus, image processing apparatus, and program - Google Patents
Image reading apparatus, image processing apparatus, and program Download PDFInfo
- Publication number
- JP6107493B2 JP6107493B2 JP2013147650A JP2013147650A JP6107493B2 JP 6107493 B2 JP6107493 B2 JP 6107493B2 JP 2013147650 A JP2013147650 A JP 2013147650A JP 2013147650 A JP2013147650 A JP 2013147650A JP 6107493 B2 JP6107493 B2 JP 6107493B2
- Authority
- JP
- Japan
- Prior art keywords
- document
- data
- hough transform
- distance
- image
- 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.)
- Expired - Fee Related
Links
- 238000012545 processing Methods 0.000 title claims description 85
- 238000006243 chemical reaction Methods 0.000 claims description 59
- 238000003708 edge detection Methods 0.000 claims description 55
- 238000001514 detection method Methods 0.000 claims description 22
- 230000006870 function Effects 0.000 claims description 17
- 238000000605 extraction Methods 0.000 claims description 4
- 238000013500 data storage Methods 0.000 description 30
- 238000010586 diagram Methods 0.000 description 16
- 238000000034 method Methods 0.000 description 16
- 238000011144 upstream manufacturing Methods 0.000 description 15
- 238000004364 calculation method Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 12
- 230000032258 transport Effects 0.000 description 12
- 239000011521 glass Substances 0.000 description 8
- 238000003384 imaging method Methods 0.000 description 8
- 230000009466 transformation Effects 0.000 description 6
- 238000007781 pre-processing Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 238000012805 post-processing Methods 0.000 description 3
- 230000001131 transforming effect Effects 0.000 description 3
- 238000003705 background correction Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000007723 transport mechanism Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
Images
Landscapes
- Image Input (AREA)
- Image Processing (AREA)
- Facsimile Scanning Arrangements (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Analysis (AREA)
Description
本発明は、画像読み取り装置、画像処理装置およびプログラムに関する。 The present invention relates to an image reading device, an image processing device, and a program.
公報記載の従来技術として、原稿1ページ分の画像を読み取った後、この原稿1ページ分の読み取り画像データに2値化処理を施し、生成された2値画像データに対してハフ変換を施し、ハフ変換によって得られたハフ空間データから、この読み取り画像データの原稿スキュー角度を算出するようにした画像処理装置が存在する(特許文献1参照)。 As a conventional technique described in the publication, after reading an image for one page of a document, the read image data for one page of the document is binarized, and the generated binary image data is subjected to a Hough transform. There is an image processing apparatus that calculates a document skew angle of read image data from Hough space data obtained by Hough transform (see Patent Document 1).
本発明は、ハフ変換を利用して原稿の傾斜角度を得る場合に、ハフ変換によって得られたデータを記憶させるメモリの容量を低減することを目的とする。 An object of the present invention is to reduce the capacity of a memory for storing data obtained by the Hough transformation when the inclination angle of the original is obtained using the Hough transformation.
請求項1記載の発明は、搬送される原稿の画像を読み取る読み取り手段と、前記読み取り手段が読み取る読み取り画像データにエッジ検出処理を施してエッジ画像データを作成する検出手段と、前記エッジ画像データにハフ変換を施すことで、角度θおよび距離ρを用いたθρパラメータ空間で表現されるハフ変換データを作成する変換手段と、前記ハフ変換データにおける前記距離ρの範囲を予測する予測手段と、前記ハフ変換データから、前記予測手段によって予測された前記距離ρの範囲を抽出して抽出済ハフ変換データを作成する抽出手段と、前記抽出済ハフ変換データを記憶する記憶手段と、前記記憶手段から読み出した前記抽出済ハフ変換データに基づいて、前記原稿の傾斜角度を決定する決定手段と、前記読み取り画像データに対し、前記傾斜角度を用いた傾き補正を施す補正手段とを含む画像読み取り装置である。
請求項2記載の発明は、前記予測手段は、前記検出手段にて作成された前記エッジ画像データから取得した前記原稿の端部の位置に基づいて当該端部の基準値を設定し、当該基準値に基づいて前記距離ρの範囲を予測することを特徴とする請求項1記載の画像読み取り装置である。
請求項3記載の発明は、前記予測手段は、前記角度θの範囲を制限し、前記基準値と前記角度θの範囲とに基づいて前記距離ρの範囲を予測することを特徴とする請求項2記載の画像読み取り装置である。
請求項4記載の発明は、読み取り対象となる前記原稿の大きさを検知する検知手段をさらに備え、前記予測手段は、前記検知手段にて検知された前記原稿の大きさに基づいて当該原稿における端部の基準位置を設定し、当該基準位置に基づいて前記距離ρの範囲を予測することを特徴とする請求項1記載の画像読み取り装置である。
According to a first aspect of the present invention, there is provided a reading unit that reads an image of a conveyed document, a detection unit that performs edge detection processing on read image data read by the reading unit, and creates edge image data, and the edge image data By performing Hough transform, conversion means for creating Hough transform data expressed in θρ parameter space using angle θ and distance ρ, prediction means for predicting the range of the distance ρ in the Hough transform data, From the Hough transform data, extraction means for extracting the range of the distance ρ predicted by the prediction means to create extracted Hough transform data, storage means for storing the extracted Hough transform data, and the storage means Based on the extracted extracted Hough transform data, a determination means for determining an inclination angle of the document, and the read image data An image reading apparatus including a correction means for performing tilt correction using the tilt angle.
According to a second aspect of the present invention, the predicting unit sets a reference value of the end based on the position of the end of the document acquired from the edge image data created by the detecting unit, and the reference The image reading apparatus according to claim 1, wherein the range of the distance ρ is predicted based on the value.
The invention according to claim 3 is characterized in that the predicting means limits the range of the angle θ and predicts the range of the distance ρ based on the reference value and the range of the angle θ. 2. The image reading apparatus according to 2.
According to a fourth aspect of the present invention, the image forming apparatus further includes a detecting unit that detects a size of the document to be read, and the predicting unit detects the size of the document based on the size of the document detected by the detecting unit. The image reading apparatus according to claim 1, wherein a reference position of an end is set, and the range of the distance ρ is predicted based on the reference position.
請求項5記載の発明は、搬送される原稿の画像を読み取って得られる読み取り画像データにエッジ検出処理を施してエッジ画像データを作成する検出手段と、前記エッジ画像データにハフ変換を施すことで、角度θおよび距離ρを用いたθρパラメータ空間で表現されるハフ変換データを作成する変換手段と、前記ハフ変換データにおける前記距離ρの範囲を予測する予測手段と、前記ハフ変換データから、予測された前記距離ρの範囲を抽出して抽出済ハフ変換データを作成する抽出手段と、前記抽出済ハフ変換データを記憶する記憶手段と、前記記憶手段から読み出した前記抽出済ハフ変換データに基づいて、前記原稿の傾斜角度を決定する決定手段とを含む画像処理装置である。 According to a fifth aspect of the present invention, there is provided detection means for generating edge image data by performing edge detection processing on read image data obtained by reading an image of a conveyed document, and performing Hough transform on the edge image data. A conversion unit that creates Hough transform data expressed in a θρ parameter space using an angle θ and a distance ρ, a prediction unit that predicts a range of the distance ρ in the Hough transform data, and a prediction from the Hough transform data Extraction means for extracting the extracted range of the distance ρ to create extracted Hough conversion data; storage means for storing the extracted Hough conversion data; and based on the extracted Hough conversion data read from the storage means And an deciding means for deciding the inclination angle of the original.
請求項6記載の発明は、コンピュータに、搬送される原稿の画像を読み取って得られる読み取り画像データにエッジ検出処理を施してエッジ画像データを作成する機能と、前記エッジ画像データにハフ変換を施すことで、角度θおよび距離ρを用いたθρパラメータ空間で表現されるハフ変換データを作成する機能と、前記ハフ変換データにおける前記距離ρの範囲を予測する機能と、前記ハフ変換データから、予測された前記距離ρの範囲を抽出して抽出済ハフ変換データを作成する機能と、前記抽出済ハフ変換データをメモリに記憶させる機能と、前記メモリから読み出した前記抽出済ハフ変換データに基づいて、前記原稿の傾斜角度を決定する機能とを実現させるプログラムである。 According to a sixth aspect of the present invention, there is provided a function of generating edge image data by performing edge detection processing on read image data obtained by reading an image of a conveyed document to a computer, and performing Hough transform on the edge image data. Thus, a function to create Hough transform data expressed in a θρ parameter space using an angle θ and a distance ρ, a function to predict the range of the distance ρ in the Hough transform data, and a prediction from the Hough transform data A function of extracting the extracted range of the distance ρ to create extracted Hough transform data, a function of storing the extracted Hough transform data in a memory, and the extracted Hough transform data read from the memory , A program for realizing the function of determining the inclination angle of the original.
請求項1記載の発明によれば、本構成を有していない場合と比較して、ハフ変換を利用して原稿の傾斜角度を得る場合に、ハフ変換によって得られたデータを記憶させるメモリの容量を低減することができる。
請求項2記載の発明によれば、本構成を有していない場合と比較して、抽出済ハフ変換データに傾斜角度の解が含まれる可能性を高めることができる。
請求項3記載の発明によれば、本構成を有していない場合と比較して、抽出済ハフ変換データに傾斜角度の解が含まれる可能性をさらに高めることができる。
請求項4記載の発明によれば、本構成を有していない場合と比較して、抽出済ハフ変換データに傾斜角度の解が含まれる可能性を高めることができる。
請求項5記載の発明によれば、本構成を有していない場合と比較して、ハフ変換を利用して原稿の傾斜角度を得る場合に、ハフ変換によって得られたデータを記憶させるメモリの容量を低減することができる。
請求項6記載の発明によれば、本構成を有していない場合と比較して、ハフ変換を利用して原稿の傾斜角度を得る場合に、ハフ変換によって得られたデータを記憶させるメモリの容量を低減することができる。
According to the first aspect of the present invention, the memory for storing the data obtained by the Hough conversion when the inclination angle of the original is obtained by using the Hough conversion as compared with the case without this configuration. The capacity can be reduced.
According to the second aspect of the present invention, it is possible to increase the possibility that the extracted Hough transform data includes the solution of the inclination angle as compared with the case where the present configuration is not provided.
According to invention of Claim 3, compared with the case where it does not have this structure, possibility that the solution of an inclination angle will be contained in the extracted Hough conversion data can be raised further.
According to the fourth aspect of the present invention, it is possible to increase the possibility that the extracted Hough transform data includes the solution of the inclination angle as compared with the case where the present configuration is not provided.
According to the fifth aspect of the present invention, the memory for storing the data obtained by the Hough transformation when the inclination angle of the document is obtained by using the Hough transformation as compared with the case where the present configuration is not provided. The capacity can be reduced.
According to the sixth aspect of the present invention, the memory for storing the data obtained by the Hough transformation when the inclination angle of the document is obtained by using the Hough transformation as compared with the case without this configuration. The capacity can be reduced.
以下、添付図面を参照して、本発明の実施の形態について詳細に説明する。
図1は、本実施の形態が適用される画像読み取り装置の全体構成の一例を示す図である。
この画像読み取り装置は、積載された原稿束から原稿Mを順次搬送する原稿送り装置10と、スキャンによって原稿の画像を読み取るスキャナ装置40とを備えている。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.
FIG. 1 is a diagram illustrating an example of the overall configuration of an image reading apparatus to which the exemplary embodiment is applied.
The image reading apparatus includes a
原稿送り装置10は、複数枚の原稿Mからなる原稿束を積載する原稿収容部11、この原稿収容部11の下方に設けられ、読み取りが終了した原稿Mを積載する排紙収容部12を備える。また、原稿送り装置10は原稿収容部11の原稿Mを取り出して搬送する取り出しロール13を備える。さらに、取り出しロール13の原稿搬送方向下流側には、原稿Mを1枚ずつに捌く捌き機構14が設けられる。原稿Mが搬送される搬送路15には、原稿搬送方向上流側から順に、第1搬送ロール16、第2搬送ロール17、第3搬送ロール18および第4搬送ロール19が設けられる。これらのうち、第1搬送ロール16および第2搬送ロール17は、スキャナ装置40による読み取り位置に向けて原稿Mを送り出す。第3搬送ロール18は、読み取り位置を通過することによりスキャナ装置40にて読み込まれた原稿Mをさらに下流に搬送する。そして、第4搬送ロール19は、読み込まれた原稿Mをさらに搬送するとともに排紙収容部12に排出する。
The
また、読み取り位置には、図中手前側から奥側に向かって伸び白色の板状部材にて構成され、読み取り位置を通過する原稿Mの背景ともなる反射板20が設けられている。この反射板20は、シェーディング補正用の白基準としても用いられる。
Further, at the reading position, there is provided a
また、原稿送り装置10は、原稿収容部11に収容される原稿の幅(主走査方向の長さ)を検知する、検出手段の一例としての原稿幅検知センサ21を備えている。
The
一方、スキャナ装置40は、上述した原稿送り装置10を開閉可能に支持すると共に、この原稿送り装置10を装置フレーム41によって支え、また、原稿Mの画像読み取りを行う。このスキャナ装置40は、筐体を形成する装置フレーム41、画像を読み込むべき原稿Mが静止させた状態で置かれる第1プラテンガラス42A、反射板20の下方に設けられ、原稿送り装置10によって搬送される原稿Mを読み取るための光の開口部を構成する第2プラテンガラス42Bを備えている。
On the other hand, the
また、スキャナ装置40は、第2プラテンガラス42Bの下に静止し、あるいは第1プラテンガラス42Aの全体にわたってスキャンして画像を読み込むフルレートキャリッジ43、フルレートキャリッジ43から得られた光を結像部へ供給するハーフレートキャリッジ45を備えている。ここで、フルレートキャリッジ43は、原稿Mに光を照射する光源装置44A(白色光源)および光源装置44Aからの光を原稿Mに向けて反射する光源ミラー44Bと、原稿Mから得られた反射光を受光する第1ミラー46Aとを備えている。一方、ハーフレートキャリッジ45は、第1ミラー46Aから得られた光を結像部へ提供する第2ミラー46Bおよび第3ミラー46Cを有している。
Further, the
さらにまた、スキャナ装置40は、結像用レンズ47および受光部48を備えている。これらのうち、結像用レンズ47は、第3ミラー46Cから得られた光学像を光学的に縮小する。また、受光部48は、結像用レンズ47によって結像された光学像を光電変換する。つまり、スキャナ装置40では、所謂縮小光学系を用いて受光部48に像を結像させている。また、本実施の形態では、受光部48として、主走査方向に沿って設けられた赤色用、緑色用および青色用の各撮像素子列を、副走査方向に並べて配置したものを用いている。これにより、読み取り手段の一例としての受光部48を用いて、原稿Mに形成された画像をフルカラー画像として読み取るようになっている。
Furthermore, the
そして、スキャナ装置40は、制御・画像処理ユニット49をさらに備える。この制御・画像処理ユニット49は、受光部48から入力される原稿Mの画像データに各種画像処理を施す。また、制御・画像処理ユニット49は、読み取り装置の読み取り動作における各部の動作を制御する。
The
例えば第1プラテンガラス42Aに置かれた原稿Mの画像を読み取る固定読み取りモードでは、フルレートキャリッジ43とハーフレートキャリッジ45とが、2:1の割合で矢印方向に移動する。このとき、フルレートキャリッジ43に設けられた光源装置44Aからの光が、原稿Mの被読み取り面に照射される。そして、原稿Mからの反射光が第1ミラー46A、第2ミラー46B、および第3ミラー46Cの順に反射されて結像用レンズ47に導かれる。結像用レンズ47に導かれた光は、受光部48の受光面に結像される。受光部48を構成する各色用の撮像素子列はそれぞれ1次元のセンサで構成されており、1ライン分を同時に処理している。このライン方向(読み取りの主走査方向)と交差する方向(読み取りの副走査方向)にフルレートキャリッジ43およびハーフレートキャリッジ45を移動させ、原稿Mの次の1ラインを読み取る。これを原稿Mの全体に亘って実行することで、1ページの原稿読み取りを完了させる。
For example, in the fixed reading mode in which the image of the document M placed on the
一方、原稿送り装置10によって搬送される原稿Mの画像を読み取る搬送読み取りモードでは、副走査方向に搬送される原稿Mがこの第2プラテンガラス42Bの上を通過する。このとき、フルレートキャリッジ43およびハーフレートキャリッジ45は、図1に示す実線の位置に停止した状態におかれる。そして、搬送されてくる原稿Mの1ライン目の反射光が、第1ミラー46A、第2ミラー46B、および第3ミラー46Cを経て結像用レンズ47にて結像され、受光部48によって画像が読み込まれる。すなわち、受光部48によって主走査方向の1ライン分を同時に処理した後、原稿送り装置10によって搬送される原稿Mの次の主走査方向の1ライン分が読み込まれる。そして、原稿Mの先端が第2プラテンガラス42Bの読み取り位置に到達した後、この原稿Mの後端が第2プラテンガラス42B上の読み取り位置を通過することによって、原稿Mを主走査方向1ラインずつ順次読み取ることで、副走査方向に亘って1ページの原稿読み取りが完了する。
On the other hand, in the transport reading mode in which the image of the document M transported by the
なお、本実施の形態の画像読み取り装置では、搬送読み取りモードにおいて、搬送路15内に供給されてきた原稿Mを、搬送路15内で一時的に停止させることなく、そのまま排紙収容部12に向けて搬送するようになっている。すなわち、この画像読み取り装置では、原稿Mを搬送している最中には、特に原稿Mの位置合わせを行っていない。
In the image reading apparatus according to the present embodiment, in the conveyance reading mode, the document M supplied into the
本実施の形態の画像読み取り装置では、固定読み取りモードおよび搬送読み取りモードのそれぞれにおける標準的な読み取り解像度が、600dpi(主走査方向)×600dpi(副走査方向)に設定されている。 In the image reading apparatus of the present embodiment, the standard reading resolution in each of the fixed reading mode and the conveyance reading mode is set to 600 dpi (main scanning direction) × 600 dpi (sub-scanning direction).
図2は、図1に示す画像読み取り装置において読み取り対象となる原稿Mの構成を説明するための図である。
この例において、原稿Mは長方形状を呈するようになっており、原稿Mの短辺側が主走査方向FSに沿い、且つ、原稿Mの長辺側が副走査方向SSに沿うようになっている。ただし、原稿Mの長辺側が主走査方向FSに沿い、且つ、原稿Mの短辺側が副走査方向SSに沿う場合もあり得る。なお、以下の説明においては、原稿Mのうち、副走査方向SSの上流側となる辺を原稿前端Mtと呼び、副走査方向SSの下流側となる辺を原稿後端Mbと呼び、原稿Mの被読み取り面(図中手前側を向く面)の左側となる辺を原稿左端Mlと呼び、原稿Mの被読み取り面の右側となる辺を原稿右端Mrと呼ぶ。
FIG. 2 is a diagram for explaining the configuration of the document M to be read in the image reading apparatus shown in FIG.
In this example, the document M has a rectangular shape, and the short side of the document M is along the main scanning direction FS, and the long side of the document M is along the sub-scanning direction SS. However, the long side of the document M may be along the main scanning direction FS, and the short side of the document M may be along the sub-scanning direction SS. In the following description, the side of the document M that is upstream in the sub-scanning direction SS is referred to as the document front end Mt, and the side that is downstream of the sub-scanning direction SS is referred to as the document trailing end Mb. The side on the left side of the surface to be read (the surface facing the front side in the figure) is called the document left end Ml, and the side on the right side of the surface to be read of the document M is called the document right end Mr.
図3は、図1に示す制御・画像処理ユニット49の機能ブロック図である。この制御・画像処理ユニット49は、受光部48に設けられた赤色用撮像素子列、緑色用撮像素子列および青色用撮像素子列(すべて図示せず)から入力されてくる読み取り画像データに処理を施す信号処理部50と、原稿送り装置10およびスキャナ装置40の動作を制御する制御部70とを備えている。なお、信号処理部50の詳細については後述する。
FIG. 3 is a functional block diagram of the control /
制御部70は、読み取りコントローラ71、受光部ドライバ72、光源ドライバ73、スキャンドライバ74および搬送機構ドライバ75を有している。
読み取りコントローラ71は、各種原稿読み取りの制御等を含め、図1に示す原稿送り装置10およびスキャナ装置40の全体を制御する。
受光部ドライバ72は、図1に示す受光部48(赤色用撮像素子列、緑色用撮像素子列および青色用撮像素子列)による画像データの取り込み動作を制御する。
光源ドライバ73は、点灯信号を出力し、原稿の読み取りタイミングに合わせて図1に示す光源装置44Aの点灯・消灯を制御する。
スキャンドライバ74は、スキャナ装置40におけるモータのオン/オフなどを行い、図1に示すフルレートキャリッジ43およびハーフレートキャリッジ45によるスキャン動作を制御する。
搬送機構ドライバ75は、図1に示す原稿送り装置10におけるモータの制御、各種ロール、クラッチ、およびゲートの切り替え動作等を制御する。
The
The reading
The light
The
The
The
これらの各種ドライバからは、原稿送り装置10およびスキャナ装置40に対して制御信号が出力され、かかる制御信号に基づいて、これらの動作制御が可能となる。読み取りコントローラ71は、ホストシステムからの制御信号や、例えば自動選択読み取り機能に際して検出されるセンサ出力、UI(図示せず)を介して受け付けたユーザからの選択等に基づいて、読み取りモードを設定し、原稿送り装置10およびスキャナ装置40を制御している。この読み取りモードとしては、上述した、固定読み取りモードおよび搬送読み取りモード等が挙げられる。
From these various drivers, control signals are output to the
図4は、図3に示す信号処理部50の機能ブロック図である。
本実施の形態の信号処理部50は、画像前処理部51と、出力先設定部52と、読み取り画像データ記憶部53と、スキュー量演算部54と、スキュー補正処理部55と、画像後処理部56とを有している。
FIG. 4 is a functional block diagram of the
The
画像前処理部51は、受光部48から入力されてくるアナログの読み取り画像データに、ゲイン調整、A(アナログ)/D(デジタル)変換、シェーディング補正およびギャップ補正などの前処理を施し、デジタル化された読み取り画像データDrとして出力する。
The
出力先設定部52は、画像前処理部51から入力されてくる読み取り画像データDrを読み取り画像データ記憶部53に出力するとともに、これと並行して、この読み取り画像データDrの一部を、原稿Mのスキュー量を検出するための検出用画像データDdとしてスキュー量演算部54に出力する。
The output
ここで、図5(a)は出力先設定部52から読み取り画像データ記憶部53に出力される読み取り画像データDrを説明するための図であり、図5(b)は出力設定部52からスキュー量演算部54に出力される検出用画像データDdを説明するための図である。なお、図5に示す読み取り画像データDrおよび検出用画像データDdは、同じ原稿Mを読み取った結果に基づいて得られたものを例示している。
Here, FIG. 5A is a diagram for explaining the read image data Dr output from the output
まず、図5(a)に示す読み取り画像データDrについて説明を行う。
本実施の形態の読み取り画像データDr、読み取り対象となる原稿Mよりも広く且つ原稿Mの被読み取り面すなわち原稿前端Mt、原稿後端Mb、原稿左端Mlおよび原稿右端Mrを全て含むように、その対象領域が設定されている。なお、読み取り画像データDrおける原稿Mの外側は、図1に示す反射板20を読み取った領域となる。そして、この例においては、反射板20と原稿Mとの反射率の違いにより、原稿Mにおける各端部位置を検出できるようになっている。また、この例では、図5(a)における左側が主走査方向FSの上流側となっており、図5(a)における上側が副走査方向SSの上流側となっている。したがって、読み取り画像データDrは、副走査方向SSの上流側から下流側(図中上側から下側)に向かって、主走査方向FSに1ライン分ずつ、順次取得されていくことになる。
First, the read image data Dr shown in FIG. 5A will be described.
The read image data Dr of the present embodiment is wider than the original M to be read and includes the read surface of the original M, that is, the front end Mt, the rear end Mb, the left end Ml of the original, and the right end Mr of the original. The target area is set. Note that the outside of the document M in the read image data Dr is an area where the
なお、図5(a)は、主走査方向FSおよび副走査方向SSに対し、原稿Mが図中右側に傾斜(スキュー)した状態で読み込まれた場合を例示している。このため、原稿Mの原稿前端Mtおよび原稿後端Mbは、主走査方向FSに対して傾いており、原稿Mの原稿左端Mlおよび原稿右端Mrは、副走査方向SSに対して傾いている。 FIG. 5A illustrates a case where the document M is read in a state inclined (skewed) to the right side in the drawing with respect to the main scanning direction FS and the sub-scanning direction SS. Therefore, the document front end Mt and the document rear end Mb of the document M are inclined with respect to the main scanning direction FS, and the document left end Ml and the document right end Mr of the document M are inclined with respect to the sub-scanning direction SS.
次に、図5(b)に示す検出用画像データDdについて説明を行う。
検出用画像データDdは、図5(a)に示す読み取り画像データDrのうち、副走査方向SS上流側であって原稿Mの被読み取り面の一部を含むように、その対象領域が設定されている(図中に実線で示す)。ここで、本実施の形態では、検出用画像データDdが、原稿Mにおける原稿前端Mtの全て、原稿左端Mlにおける副走査方向SS上流側の一部および原稿右端Mrにおける副走査方向SS上流側の一部を含み、且つ、原稿左端Mlにおける副走査方向SS下流側の一部および原稿右端Mrにおける副走査方向SS下流側の一部と、原稿後端Mbの全てとを含まないようになっている(図中に破線で示す)。
Next, the detection image data Dd shown in FIG. 5B will be described.
In the detection image data Dd, the target area is set so as to include a part of the read surface of the document M on the upstream side in the sub-scanning direction SS in the read image data Dr shown in FIG. (Indicated by the solid line in the figure). Here, in the present embodiment, the detection image data Dd includes all of the document front end Mt of the document M, a part of the document left end Ml upstream of the sub-scanning direction SS, and the document right end Mr upstream of the sub-scanning direction SS upstream. A part is included, and a part of the document left end Ml downstream of the sub-scanning direction SS, a part of the document right end Mr downstream of the sub-scanning direction SS, and the document trailing end Mb are not included. (Indicated by broken lines in the figure).
では、図4に戻って説明を続ける。
読み取り画像データ記憶部53は、出力先設定部52から入力されてくる読み取り画像データDrを記憶する。なお、読み取り画像データ記憶部53は、例えばRAM(Random Access Memory)で構成されている。
Returning to FIG. 4, the description will be continued.
The read image
また、スキュー量演算部54は、出力先設定部52から入力されてくる検出用画像データDdに各種演算処理を施すことにより、この検出用画像データDdの元となった原稿Mのスキュー量である原稿スキュー角度θmを出力する。なお、スキュー量演算部54の詳細については後述する。
In addition, the skew
補正手段の一例としてのスキュー補正処理部55は、読み取り画像データ記憶部53から読み出した1ページ分の原稿Mの読み取り画像データDrに対し、スキュー量演算部54から入力されてくる、この原稿Mに対応する原稿スキュー角度θmを用いたスキュー補正(画像データの回転)を実行し、得られたスキュー補正済画像データDjを出力する。
The skew
画像後処理部56は、スキュー補正処理部55から入力されてくるスキュー補正済画像データDjに対し、必要に応じて、色空間を変換する処理や拡大・縮小処理等を施し、得られた出力画像データDkを、図1に示す画像読み取り装置の外部に設けられた機器(プリンタやコンピュータ装置等)に出力する。
The
なお、信号処理部50を構成する各部の機能は、ソフトウェアとハードウェア資源とが協働することにより実現される。すなわち、信号処理部50に設けられた図示しないCPU(Central Processing Unit)が、信号処理部50における各機能を実現するプログラムを、例えばハードディスク等の外部記憶装置からメインメモリに読み込んで、これらの各機能を実現する。ただし、これに限られるものではなく、例えばASIC(Application Specific Integrated Circuit)やFPGA(Field-Programmable Gate Array)等を用いて、信号処理部50を構成する各部の機能を実現するようにしてもかまわない。
Note that the function of each unit constituting the
図6は、図4に示すスキュー量演算部54の機能ブロック図である。
本実施の形態のスキュー量演算部54は、エッジ検出処理部541と、エッジ検出データ記憶部542と、ハフ変換処理部543と、オフセット設定部544と、オフセット処理部545と、ハフ変換データ記憶部546と、原稿スキュー角度決定部547とを有する。
FIG. 6 is a functional block diagram of the skew
The skew
検出手段の一例としてのエッジ検出処理部541は、出力先設定部52(図4参照)から入力されてくる、読み取り画像データDrから得られた検出用画像データDdに対しエッジ(原稿Mにおける端部)を検出する処理を施し、得られたエッジ画像データの一例としてのエッジ検出データDeを出力する。なお、検出用画像データDdが赤の画像データ、緑の画像データおよび青の画像データを含む場合には、エッジ検出処理を施す前に、これら3色の画像データを単色化する処理が施される。なお、これに代えて、赤の画像データ、緑の画像データおよび青の画像データのうちのいずれか1色(例えば緑)の画像データを選択するようにしてもよい。また、エッジ検出処理を施す前に、検出用画像データDdの解像度を低下させる処理を施すようにしてもかまわない。
An edge
エッジ検出データ記憶部542は、エッジ検出処理部541から入力されてくるエッジ検出データDeを記憶する。なお、エッジ検出データ記憶部542は、例えばRAMで構成される。
The edge detection
変換手段の一例としてのハフ変換処理部543は、エッジ検出データ記憶部542から読み出したエッジ検出データDeに対しハフ変換を実行し、得られたハフ変換データDhを出力する。この例において、ハフ変換処理部543は、xy画像空間で定義されるエッジ検出データDeを、距離ρおよび垂角θで規定されるθρパラメータ空間へと変換することで、ハフ変換データDhを得ている。
The Hough
予測手段の一例としてのオフセット設定部544は、エッジ検出処理部541から入力されてくるエッジ検出データDeに基づき、このエッジ検出データDeをハフ変換して得られるハフ変換データDhにおける距離ρの範囲を予測し、予測結果としてのオフセット設定データDoを出力する。なお、オフセット設定部544の詳細については後述する。
The offset
抽出手段の一例としてのオフセット処理部545は、ハフ変換処理部543から入力されてくるハフ変換データDhに対し、オフセット設定部544から入力されてくるオフセット設定データDoを用いたオフセット処理を施し、得られた抽出済ハフ変換データの一例としてのオフセット済ハフ変換データDiを出力する。
An offset
記憶手段の一例としてのハフ変換データ記憶部546は、オフセット処理部545から入力されてくるオフセット済ハフ変換データDiを記憶する。なお、ハフ変換データ記憶部546は、例えばRAMで構成される。
The Hough conversion
決定手段の一例としての原稿スキュー角度決定部547は、ハフ変換データ記憶部546から読み出したオフセット済ハフ変換データDiに基づいて、このオフセット済ハフ変換データDiの元となった原稿Mの原稿スキュー角度θmを決定し、スキュー補正処理部55(図4参照)に出力する。また、原稿スキュー角度決定部547は、傾斜角度の一例としての原稿スキュー角度θmを決定するにあたり、必要に応じて、オフセット設定部544から入力されてくるオフセット設定データDoを利用する。
The document skew
図7は、図6に示すオフセット設定部544の機能ブロック図である。
本実施の形態のオフセット設定部544は、エッジ検出処理部541(図6参照)から入力されてくるエッジ検出データDeに基づいて、後述するオフセットを設定するための基準値を示すオフセット基準値データDsを決定するオフセット基準値決定部5441と、オフセット基準値決定部5441から入力されてくるオフセット基準値データDsに基づいて、オフセット処理部545(図6参照)においてハフ変換データDhにオフセット処理を施す際に用いられるオフセット設定データDoを作成するオフセット設定データ作成部5442とを備えている。
FIG. 7 is a functional block diagram of the offset setting
The offset
次に、図6および図7を参照しつつ、画像読み取り動作においてスキュー量演算部54が実行する処理の手順について説明を行う。
この処理では、まず、エッジ検出処理部541が、出力先設定部52(図4参照)から入力されてくる検出用画像データDdに基づいてエッジ検出データDeを作成する。そして、得られたエッジ検出データDeは、エッジ検出データ記憶部542とオフセット設定部544とに出力される。
Next, a procedure of processing executed by the skew
In this process, first, the edge
次に、エッジ検出データ記憶部542は、エッジ検出処理部541から入力されてくるエッジ検出データDeを記憶する。次いで、ハフ変換処理部543は、エッジ検出データ記憶部542から読み出したエッジ検出データDeにハフ変換を施してハフ変換データDhを得る。そして、得られたハフ変換データDhは、オフセット処理部545に出力される。
Next, the edge detection
一方、オフセット設定部544では、オフセット基準値決定部5441が、エッジ検出処理部541から入力されてくるエッジ検出データDeに基づいてオフセット基準値データDsを作成し、オフセット設定データ作成部5442が、オフセット基準値決定部5441から入力されてくるオフセット基準値データDsに基づいてオフセット設定データDoを作成する。そして、得られたオフセット設定データDoは、オフセット処理部545と原稿スキュー角度決定部547とに出力される。
On the other hand, in the offset setting
続いて、オフセット処理部545は、ハフ変換処理部543から入力されてくるハフ変換データDhに対し、オフセット設定部544(より具体的にはオフセット設定データ作成部5442)から入力されてくるオフセット設定データDoを用いたオフセット処理を施し、オフセット済ハフ変換データDiを得る。このとき、オフセット処理部545は、同じエッジ検出データDeに基づいて得られたハフ変換データDhとオフセット設定データDoとを用いて、オフセット済ハフ変換データDiを作成する。そして、得られたオフセット済ハフ変換データDiはハフ変換データ記憶部546に出力される。次いで、ハフ変換データ記憶部546は、オフセット処理部545から入力されてくるオフセット済ハフ変換データDiを記憶する。
Subsequently, the offset
それから、原稿スキュー角度決定部547は、ハフ変換データ記憶部546から読み出したオフセット済ハフ変換データDiに基づき、原稿Mの原稿スキュー角度θmを決定する。このとき、原稿スキュー角度決定部547は、原稿スキュー角度θmの決定にあたって、オフセット設定部544から入力されてくるオフセット設定データDoを参照する。そして、得られた原稿スキュー角度θmがスキュー補正処理部55(図4参照)に出力されることにより、1枚の原稿Mに対する処理を完了する。
Then, the document skew
では、具体例を挙げつつ、上述した画像読み取り動作においてオフセット設定部544が実行する各種処理について説明を行う。
図8は、図7に示すオフセット設定部544に入力されてくるエッジ検出データDeの一例を示す図である。ここで、図8(a)は搬送方向に対し左側に傾いた原稿Mを読み取って得られたエッジ検出データDeを、また、図8(b)は搬送方向に対し右側に傾いた原稿Mを読み取って得られたエッジ検出データDeを、それぞれ示している。
Now, various processes executed by the offset setting
FIG. 8 is a diagram illustrating an example of the edge detection data De input to the offset setting
上述したように、オフセット設定部544に設けられたオフセット基準値決定部5441は、入力されてくるエッジ検出データDeに基づいてオフセット基準値データDsを作成する。
このとき、オフセット基準値決定部5441は、エッジ検出データDeより、原稿Mの原稿前端Mtの基準となる前端基準位置Stと、原稿Mの原稿左端Mlの基準となる左端基準位置Slと、原稿Mの原稿右端Mrの基準となる右端基準位置Srとを決定する。そして、オフセット基準値決定部5441は、決定した前端基準位置St、左端基準位置Slおよび右端基準位置Srを、オフセット基準値データDsとしてオフセット設定データ作成部5442に出力する。
As described above, the offset reference
At this time, the offset reference
オフセット基準値決定部5441は、これら前端基準位置St、左端基準位置Slおよび右端基準位置Srを、それぞれ、以下に示す手順に従って決定する。
ここで、エッジ検出データDeでは、原稿Mが存在しない背景部分と原稿Mが存在する原稿部分(特に、原稿Mのエッジが存在するエッジ部分)とで画像の濃度が異なっている。例えば、読み取り時における原稿Mの背景を白色としておけば、原稿Mの色は、白色よりもやや濃い色を示すこととなるため、背景部分と原稿部分との区別が可能である。このとき、エッジ検出データDeにおいて画像の濃度が大きく変化する前後の画素に着目することにより、原稿前端Mtに対応するエッジ画素、原稿左端Mlに対応するエッジ画素そして原稿右端Mrに対応するエッジ画素を検出することができる。
The offset reference
Here, in the edge detection data De, the image density differs between the background portion where the document M does not exist and the document portion where the document M exists (particularly, the edge portion where the edge of the document M exists). For example, if the background of the document M at the time of reading is set to white, the color of the document M shows a slightly darker color than white, so that the background portion and the document portion can be distinguished. At this time, by focusing on the pixels before and after the image density greatly changes in the edge detection data De, the edge pixel corresponding to the document front end Mt, the edge pixel corresponding to the document left end Ml, and the edge pixel corresponding to the document right end Mr. Can be detected.
そして、オフセット基準値決定部5441は、エッジ検出データDeを構成する各エッジ画素のうち、副走査方向SSにおいて最上流側(前側)となるエッジ画素の位置を、前端基準位置Stとして決定する。また、オフセット基準値決定部5441は、エッジ検出データDeを構成する各エッジ画素のうち、主走査方向FSにおいて最上流側(左側)となるエッジ画素の位置を、左端基準位置Slとして決定する。さらに、オフセット基準値決定部5441は、エッジ検出データDeを構成する各エッジがそのうち、主走査方向FSにおいて最下流側(右側)となるエッジ画素の位置を、右端基準位置Srとして決定する。
Then, the offset reference
これにより、例えば図8(a)に示したように原稿Mが左側に傾いている場合には、原稿右端Mrにおける副走査方向SSの最上流側(原稿前端Mtと原稿右端Mrとの交点)が前端基準位置Stとなり、原稿左端Mlにおける副走査方向SSの最上流側(原稿前端Mtと原稿左端Mlとの交点)が左端基準位置Slとなり、原稿右端Mrにおける副走査方向SSの最下流側が右端基準位置Srとなる。 Thus, for example, when the document M is tilted to the left as shown in FIG. 8A, the most upstream side in the sub-scanning direction SS at the document right end Mr (the intersection of the document front end Mt and the document right end Mr). Becomes the front end reference position St, the most upstream side in the sub-scanning direction SS at the document left end Ml (the intersection of the document front end Mt and the document left end Ml) becomes the left end reference position Sl, and the most downstream side in the sub-scanning direction SS at the document right end Mr. It becomes the right end reference position Sr.
一方、例えば図8(b)に示したように原稿Mが右側に傾いている場合には、原稿左端Mlにおける副走査方向SSの最上流側(原稿前端Mtと原稿左端Mlとの交点)が前端基準位置Stとなり、原稿左端Mlにおける副走査方向SSの最下流側が左端基準位置Slとなり、原稿右端Mrにおける副走査方向SSの最上流側(原稿前端Mtと原稿右端Mrとの交点)が右端基準位置Srとなる。 On the other hand, for example, as shown in FIG. 8B, when the document M is tilted to the right side, the most upstream side in the sub-scanning direction SS at the document left end Ml (the intersection of the document front end Mt and the document left end Ml). It becomes the front end reference position St, the most downstream side in the sub-scanning direction SS at the document left end Ml becomes the left end reference position Sl, and the most upstream side in the sub-scanning direction SS at the document right end Mr (the intersection of the document front end Mt and the document right end Mr) is the right end. It becomes the reference position Sr.
図9は、オフセット基準値決定部5441が決定したオフセット基準値データDsに基づき、図7に示すオフセット設定データ作成部5442が作成するオフセット設定データDoの作成手法の一例を示す図である。なお、図9は、搬送方向に対し左側に傾いた原稿Mを読み取って得られたエッジ検出データDe(図8(b)に対応)を例示している。
FIG. 9 is a diagram illustrating an example of a method of creating the offset setting data Do created by the offset setting
また、図9においては、副走査方向SSをxy画像空間におけるx座標として、主走査方向FSをxy画像空間におけるy座標として、それぞれ示している。
なお、図9には、原稿左端Mlに関連する各要素を例示している。
In FIG. 9, the sub-scanning direction SS is shown as the x coordinate in the xy image space, and the main scanning direction FS is shown as the y coordinate in the xy image space.
FIG. 9 illustrates each element related to the document left end Ml.
オフセット設定データ作成部5442は、オフセット基準値データDs(前端基準位置St、左端基準位置Slおよび右端基準位置Sr)に基づき、ハフ変換処理部543から出力されるハフ変換データDhにおいて、原稿前端Mt、原稿左端Mlおよび原稿右端Mrがそれぞれとり得る距離ρの範囲を予測する。
Based on the offset reference value data Ds (the front end reference position St, the left end reference position S1 and the right end reference position Sr), the offset setting
ここで、本実施の形態の画像読み取り装置では、例えば搬送読み取りモードにおける原稿Mの原稿スキュー角度θmの範囲が、予め決められた範囲(例えば±3°)となるように、その各部品の公差や各機構の精度等が定められている。このため、読み取り対象となる原稿Mの大きさ(サイズ)および向きと、エッジ検出データDeにおけるこの原稿Mの各端部(ここでは原稿前端Mt、原稿左端Mlおよび原稿右端Mr)の位置を把握できれば、ハフ変換データDhにおいて各端部が存在する距離ρの範囲を予測することが可能である。 Here, in the image reading apparatus of the present embodiment, for example, the tolerance of each component is set so that the range of the document skew angle θm of the document M in the transport reading mode is a predetermined range (for example, ± 3 °). The accuracy of each mechanism is determined. For this reason, the size (size) and orientation of the document M to be read and the positions of the respective ends of the document M (here, the document front edge Mt, the document left edge Ml, and the document right edge Mr) in the edge detection data De are grasped. If possible, it is possible to predict the range of the distance ρ where each end exists in the Hough transform data Dh.
オフセット設定データ作成部5442は、左端基準位置Slを通過する状態となり得る原稿Mのうち、原稿スキュー角度θmが0°となっているときの原稿左端Mlの位置を左端第1位置Ml1に設定する。次に、オフセット設定データ作成部5442は、左端基準位置Slを通過する状態となり得る原稿Mのうち、原稿Mが最も左側に傾いているとき(θa=−3°)の原稿左端Mlの位置を左端第2位置Ml2に設定し、原稿Mが最も右側に傾いているとき(θb=+3°)の原稿左端Mlの位置を左端第3位置Ml3に設定する。
The offset setting
そして、オフセット設定データ作成部5442は、左端第1位置Ml1をハフ変換して得られる左端基準距離ρlstdと、左端第2位置Ml2をハフ変換して得られる左端最小距離(左端オフセット距離)ρlminと、左端第3位置Ml3をハフ変換して得られる左端最大距離ρlmaxとを求める。
Then, the offset setting
また、オフセット設定データ作成部5442は、同じ手順にて、前端基準位置Stに基づいて前端基準距離ρtstdと前端最小距離(前端オフセット距離)ρtminと前端最大距離ρtmaxとを求め、さらに、右端基準位置Srに基づいて右端基準距離ρrstdと右端最小距離(右端オフセット距離)ρrminと右端最大距離ρrmaxとを求める。
その後、オフセット設定データ作成部5442は、得られた前端基準距離ρtstd、前端最小距離ρtmin、前端最大距離ρtmax、左端基準距離ρlstd、左端最小距離plmin、左端最大距離ρlmax、右端基準距離ρrstd、右端最小距離ρrminおよび右端最大距離ρrmaxを、オフセット設定データDoとして、オフセット処理部545に出力する。
Further, the offset setting
Thereafter, the offset setting
図10は、図6に示すオフセット処理部545における処理の内容を説明するための図である。ここで、図10(a)は原稿前端Mtに対応する処理内容を示しており、図10(b)は原稿左端Mlに対応する処理内容を示しており、図10(c)は原稿右端Mrに対応する処理内容を示している。また、図10(a)〜(c)のそれぞれは、ハフ変換処理部543からオフセット処理部545に入力されてくるハフ変換データDhと、オフセット設定部544からオフセット処理部545に入力されてくるオフセット設定データDo(前端基準距離ρtstd、前端最小距離ρtmin、前端最大距離ρtmax、左端基準距離ρlstd、左端最小距離ρlmin、左端最大距離ρlmax、右端基準距離ρrstd、右端最小距離ρrminおよび右端最大距離ρrmax)との関係を示している。なお、図10(a)〜(c)は、xy画像空間をθρパラメータ空間にハフ変換して得られた座標系を示しており、それぞれにおいて、横軸は角度θ(°)であり、縦軸は距離ρ(a.u.)である。
FIG. 10 is a diagram for explaining the contents of processing in the offset
本実施の形態では、ハフ変換において投票が行われ、図10(a)〜(c)のそれぞれにしめすθρ座標において複数の正弦波状のパターンが現れる。そして、各々において投票数が最も多かった位置に対応する角度θが、原稿スキュー角度決定部547(図6参照)において、原稿スキュー角度θmとして決定される。 In this embodiment, voting is performed in the Hough transform, and a plurality of sinusoidal patterns appear in the θρ coordinates shown in FIGS. 10 (a) to 10 (c). Then, the angle θ corresponding to the position where the number of votes is the largest in each is determined as the document skew angle θm in the document skew angle determination unit 547 (see FIG. 6).
本実施の形態では、オフセット処理部545が、ハフ変換処理部543から入力されてくるハフ変換データDhに対し、オフセット設定部544から入力されてくるオフセット設定データDoを用いてオフセットの設定を行い、得られたオフセット済ハフ変換データDiを出力する。
In the present embodiment, the offset
例えば図10(a)に示す例では、オフセット処理部545が、原稿前端Mtに対応するハフ変換データDhのうち、距離ρが前端最小距離ρtmin以上且つ前端最大距離ρtmax以下となる範囲(ρtmin≦ρ≦ρtmax)だけを抽出して、オフセット済ハフ変換データDiを作成する。
また、例えば図10(b)に示す例では、オフセット処理部545が、原稿左端Mlに対応するハフ変換データDhのうち、距離ρが左端最小距離ρlmin以上且つ左端最大距離ρlmax以下となる範囲(ρlmin≦ρ≦ρlmax)だけを抽出して、オフセット済ハフ変換データDiを作成する。
さらに、例えば図10(c)に示す例では、オフセット処理部545が、原稿右端Mrに対応するハフ変換済データDhのうち、距離ρが右端最小距離ρrmin以上且つ右端最大距離ρrmaxとなる範囲(ρrmin≦ρ≦ρrmax)だけを抽出して、オフセット済ハフ変換データDiを作成する。
For example, in the example shown in FIG. 10A, the offset
For example, in the example shown in FIG. 10B, the offset
Further, for example, in the example shown in FIG. 10C, the offset
ここで、本実施の形態では、原稿Mの読み取り結果に基づいて得られるエッジ検出データDeに基づいてこの原稿Mにおける各端部の位置を予測し、この予測結果に基づいてオフセット設定データDoを求めている。このため、例えば図10(a)に示す例では、ハフ変換データDhのうち前端最小距離ρtmin以上且つ前端最大距離ρtmax以下となる範囲に、投票数が最も多かった座標が存在するようになっている。また、例えば図10(b)に示す例では、ハフ変換データDhのうち左端最小距離ρlmin以上且つ左端最大距離ρlmax以下となる範囲に、投票数が最も多かった座標が存在するようになっている。さらに、例えば図10(c)に示す例では、ハフ変換データDhのうち右端最小距離ρrmin以上且つ右端最大距離ρrmax以下となる範囲に、投票数が最も多かった位置が座標するようになっている。 Here, in the present embodiment, the position of each edge in the document M is predicted based on the edge detection data De obtained based on the reading result of the document M, and the offset setting data Do is determined based on the prediction result. Looking for. For this reason, for example, in the example shown in FIG. 10A, coordinates having the largest number of votes are present in the range of the Hough transform data Dh that is not less than the front end minimum distance ρtmin and not more than the front end maximum distance ρtmax. Yes. Further, for example, in the example shown in FIG. 10B, coordinates having the largest number of votes are present in a range of the Hough transform data Dh that is not less than the left end minimum distance ρlmin and not more than the left end maximum distance ρlmax. . Further, for example, in the example shown in FIG. 10C, the position with the largest number of votes is coordinated in the range of the Hough transform data Dh that is not less than the right end minimum distance ρrmin and not more than the right end maximum distance ρrmax. .
本実施の形態のスキュー量演算部54では、その後、ハフ変換データ記憶部546が、オフセット処理部545から出力されたオフセット済ハフ変換データDiを記憶し、原稿スキュー角度決定部547が、ハフ変換データ記憶部546から読み出したオフセット済ハフ変換データDiに基づいて原稿Mの原稿スキュー角度θmを決定する。
In the skew
ここで、上述したハフ変換データDhをそのままハフ変換データ記憶部546に記憶させるとともに、原稿スキュー角度決定部547が、ハフ変換データ記憶部546から読み出したハフ変換データDhに基づいて原稿Mの原稿スキュー角度θmを決定することも可能である。しかしながら、この場合には、原稿スキュー角度θmの決定において必要となるデータ(投票数が多い座標に関するデータ)の他に、実際には原稿スキュー角度θmの決定において不要なデータ(距離ρが小さすぎるものや大きすぎるもの)が存在することになってしまい、ハフ変換データ記憶部546に必要なメモリ容量が増大することになってしまう。また、データ容量の増大に伴い、原稿スキュー角度決定部547における原稿スキュー角度θmの決定に要する時間も増加する。
Here, the Hough conversion data Dh is stored in the Hough conversion
これに対し、本実施の形態では、原稿Mの読み取り結果に基づいて、xy画像空間において原稿Mの各端部が存在しうる範囲を予測するとともに、この予測結果に基づいてxy画像空間をハフ変換して得られるρθパラメータ空間において、この原稿Mに対応する距離ρが存在しうる範囲を予測し、ハフ変換データDhからρが存在しうる範囲を抽出して得られたオフセット済ハフ変換データDiをハフ変換データ記憶部546に記憶させるようにしたので、ハフ変換データ記憶部546に必要なメモリ容量の増大を抑制することができる。
On the other hand, in the present embodiment, based on the reading result of the original M, a range in which each end of the original M can exist in the xy image space is predicted, and the xy image space is In the ρθ parameter space obtained by the conversion, a range in which the distance ρ corresponding to the document M can exist is predicted, and the offset Hough transform data obtained by extracting the range in which ρ can exist is extracted from the Hough transform data Dh. Since Di is stored in the Hough conversion
また、オフセット済ハフ変換データDiは、上述したように距離ρがとり得る範囲を予測した結果に基づいて得られているので、ハフ変換データDhに対し、抽出によって容量が低減されたオフセット済ハフ変換データDiから、原稿スキュー角度θmを求めることが可能となる。 Further, since the offset Hough transform data Di is obtained based on the prediction result of the range that the distance ρ can take as described above, the offset Hough transform data whose capacity is reduced by extraction with respect to the Hough transform data Dh. The document skew angle θm can be obtained from the conversion data Di.
なお、ここでは、対象となる原稿Mの読み取りに伴って得られたエッジ検出データDeに基づいて、この原稿Mに対応する前端基準位置St、左端基準位置Slおよび右端基準位置Srを決定していたが、これに限られるものではない。例えば原稿送り装置10に設けられた原稿幅検知センサ21による検知結果に基づいて、前端基準位置St、左端基準位置Slおよび右端基準位置Srの位置を予測するものであってもかまわない。
Here, the front end reference position St, the left end reference position S1 and the right end reference position Sr corresponding to the document M are determined based on the edge detection data De obtained along with the reading of the target document M. However, it is not limited to this. For example, the positions of the front end reference position St, the left end reference position Sl, and the right end reference position Sr may be predicted based on the detection result by the document
また、本実施の形態では、エッジ検出データDeをハフ変換して得られたハフ変換データDhに対してオフセット処理を施すことにより、容量が低減されたオフセット済ハフ変換データDiを得るようにしていたが、ハフ変換データDhの容量を低減する手法はこれに限られない。例えば、エッジ検出データDeに先にオフセット処理を施してからハフ変換を施すようにしてもよい。 In the present embodiment, offset processing is performed on the Hough transform data Dh obtained by performing the Hough transform on the edge detection data De, thereby obtaining the offset Hough transform data Di with a reduced capacity. However, the method of reducing the capacity of the Hough conversion data Dh is not limited to this. For example, the edge detection data De may be subjected to offset processing before being subjected to Hough transform.
10…原稿送り装置、40…スキャナ装置、48…受光部、49…制御・画像処理ユニット、50…信号処理部、51…画像前処理部、52…出力先設定部、53…読み取り画像データ記憶部、54…スキュー量演算部、55…スキュー補正処理部、56…画像後処理部、70…制御部、541…エッジ検出処理部、542…エッジ検出データ記憶部、543…ハフ変換処理部、544…オフセット設定部、545…オフセット処理部、546…ハフ変換データ記憶部、547…原稿スキュー角度決定部
DESCRIPTION OF
Claims (6)
前記読み取り手段が読み取る読み取り画像データにエッジ検出処理を施してエッジ画像データを作成する検出手段と、
前記エッジ画像データにハフ変換を施すことで、角度θおよび距離ρを用いたθρパラメータ空間で表現されるハフ変換データを作成する変換手段と、
前記ハフ変換データにおける前記距離ρの範囲を予測する予測手段と、
前記ハフ変換データから、前記予測手段によって予測された前記距離ρの範囲を抽出して抽出済ハフ変換データを作成する抽出手段と、
前記抽出済ハフ変換データを記憶する記憶手段と、
前記記憶手段から読み出した前記抽出済ハフ変換データに基づいて、前記原稿の傾斜角度を決定する決定手段と、
前記読み取り画像データに対し、前記傾斜角度を用いた傾き補正を施す補正手段と
を含む画像読み取り装置。 Reading means for reading an image of a conveyed document;
Detection means for performing edge detection processing on read image data read by the reading means to create edge image data;
Conversion means for creating Hough transform data expressed in a θρ parameter space using an angle θ and a distance ρ by performing a Hough transform on the edge image data;
Prediction means for predicting the range of the distance ρ in the Hough transform data;
Extraction means for extracting the range of the distance ρ predicted by the prediction means from the Hough transform data and creating extracted Hough transform data;
Storage means for storing the extracted Hough transform data;
Determining means for determining an inclination angle of the document based on the extracted Hough transform data read from the storage means;
An image reading apparatus comprising: correction means for performing inclination correction using the inclination angle on the read image data.
前記基準値と前記角度θの範囲とに基づいて前記距離ρの範囲を予測することを特徴とする請求項2記載の画像読み取り装置。 The prediction means limits the range of the angle θ;
The image reading apparatus according to claim 2, wherein the range of the distance ρ is predicted based on the reference value and the range of the angle θ.
前記予測手段は、前記検知手段にて検知された前記原稿の大きさに基づいて当該原稿における端部の基準位置を設定し、当該基準位置に基づいて前記距離ρの範囲を予測することを特徴とする請求項1記載の画像読み取り装置。 A detection unit for detecting the size of the document to be read;
The predicting unit sets a reference position of an edge of the document based on the size of the document detected by the detecting unit, and predicts the range of the distance ρ based on the reference position. The image reading apparatus according to claim 1.
前記エッジ画像データにハフ変換を施すことで、角度θおよび距離ρを用いたθρパラメータ空間で表現されるハフ変換データを作成する変換手段と、
前記ハフ変換データにおける前記距離ρの範囲を予測する予測手段と、
前記ハフ変換データから、前記予測手段によって予測された前記距離ρの範囲を抽出して抽出済ハフ変換データを作成する抽出手段と、
前記抽出済ハフ変換データを記憶する記憶手段と、
前記記憶手段から読み出した前記抽出済ハフ変換データに基づいて、前記原稿の傾斜角度を決定する決定手段と
を含む画像処理装置。 Detection means for performing edge detection processing on read image data obtained by reading an image of a conveyed document and creating edge image data;
Conversion means for creating Hough transform data expressed in a θρ parameter space using an angle θ and a distance ρ by performing a Hough transform on the edge image data;
Prediction means for predicting the range of the distance ρ in the Hough transform data;
Extraction means for extracting the range of the distance ρ predicted by the prediction means from the Hough transform data and creating extracted Hough transform data;
Storage means for storing the extracted Hough transform data;
An image processing apparatus including: a determination unit configured to determine an inclination angle of the document based on the extracted Hough conversion data read from the storage unit;
搬送される原稿の画像を読み取って得られる読み取り画像データにエッジ検出処理を施してエッジ画像データを作成する機能と、
前記エッジ画像データにハフ変換を施すことで、角度θおよび距離ρを用いたθρパラメータ空間で表現されるハフ変換データを作成する機能と、
前記ハフ変換データにおける前記距離ρの範囲を予測する機能と、
前記ハフ変換データから、予測された前記距離ρの範囲を抽出して抽出済ハフ変換データを作成する機能と、
前記抽出済ハフ変換データをメモリに記憶させる機能と、
前記メモリから読み出した前記抽出済ハフ変換データに基づいて、前記原稿の傾斜角度を決定する機能と
を実現させるプログラム。 On the computer,
A function of performing edge detection processing on read image data obtained by reading an image of a conveyed document and creating edge image data;
A function of creating Hough transform data expressed in a θρ parameter space using an angle θ and a distance ρ by performing a Hough transform on the edge image data;
A function of predicting the range of the distance ρ in the Hough transform data;
A function of extracting the predicted range of the distance ρ from the Hough transform data and creating extracted Hough transform data;
A function of storing the extracted Hough transform data in a memory;
A program for realizing a function of determining an inclination angle of the document based on the extracted Hough conversion data read from the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013147650A JP6107493B2 (en) | 2013-07-16 | 2013-07-16 | Image reading apparatus, image processing apparatus, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013147650A JP6107493B2 (en) | 2013-07-16 | 2013-07-16 | Image reading apparatus, image processing apparatus, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2015022335A JP2015022335A (en) | 2015-02-02 |
JP6107493B2 true JP6107493B2 (en) | 2017-04-05 |
Family
ID=52486776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013147650A Expired - Fee Related JP6107493B2 (en) | 2013-07-16 | 2013-07-16 | Image reading apparatus, image processing apparatus, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6107493B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6671927B2 (en) * | 2015-11-04 | 2020-03-25 | キヤノン株式会社 | Image reading apparatus and image reading method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4930076B2 (en) * | 2007-01-29 | 2012-05-09 | 富士ゼロックス株式会社 | Image information management system, image information management apparatus, image forming apparatus, image information management program, and image forming program |
JP2012048289A (en) * | 2010-08-24 | 2012-03-08 | Isuzu Motors Ltd | Straight line detection device |
JP5854774B2 (en) * | 2011-11-11 | 2016-02-09 | 株式会社Pfu | Image processing apparatus, straight line detection method, and computer program |
-
2013
- 2013-07-16 JP JP2013147650A patent/JP6107493B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2015022335A (en) | 2015-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8593683B2 (en) | Image processing apparatus, image processing apparatus control method and storage medium capable of reading an image of a document to be conveyed and making skew feed correction | |
JP7211238B2 (en) | Edge detection device, tilt correction device, reading device, image processing device, and edge detection method | |
JP2020149148A (en) | Image processing apparatus, method for processing image, and image processing program | |
JP2011147027A (en) | Image reader and image reading system | |
US9060086B2 (en) | Image forming apparatus, image forming apparatus control method, and storage medium | |
US10880449B2 (en) | Image reading apparatus and image reading method | |
JP6191291B2 (en) | Image reading apparatus, image processing apparatus, and program | |
JP6107493B2 (en) | Image reading apparatus, image processing apparatus, and program | |
JP2009284191A (en) | Image reading system and image reading apparatus | |
JPH11331547A (en) | Original detector | |
JP4513622B2 (en) | Image reading device | |
JP2008028522A (en) | Image reading device | |
JP2007266961A (en) | Image reading apparatus, image reading method, image reading program, and record medium | |
US20160094755A1 (en) | Image processing device generating combined imaged data by using first image data and second image data | |
EP3510757B1 (en) | Transparent platen with chamfered egress edge | |
JP2009284190A (en) | Image reading apparatus and image reading system | |
JP2022012616A (en) | Image reading apparatus | |
JP2010154305A (en) | Image reading apparatus, image processing method, and program | |
JP2017169039A (en) | Image reading device, control method and control program | |
JP6274175B2 (en) | Image reading apparatus and image forming apparatus | |
JP2006197445A (en) | Image processor | |
JPH11177775A (en) | Detector for original | |
JP2008199155A (en) | Image reading apparatus | |
JP4855017B2 (en) | Document size detection apparatus, image reading apparatus, and image forming apparatus | |
JP2012199798A (en) | Image reader, and control method therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160218 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170116 |
|
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: 20170207 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170220 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6107493 Country of ref document: JP 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 |