JP6796265B2 - Image reader - Google Patents
Image reader Download PDFInfo
- Publication number
- JP6796265B2 JP6796265B2 JP2017229669A JP2017229669A JP6796265B2 JP 6796265 B2 JP6796265 B2 JP 6796265B2 JP 2017229669 A JP2017229669 A JP 2017229669A JP 2017229669 A JP2017229669 A JP 2017229669A JP 6796265 B2 JP6796265 B2 JP 6796265B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- value
- line
- image
- document
- 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.)
- Active
Links
Images
Landscapes
- Facsimile Scanning Arrangements (AREA)
Description
本発明は、画像読取装置に関するものである。 The present invention relates to an image reader.
ある画像形成装置は、原画像を2値化して得られた2値画像において、原稿領域ではない領域外画素を特定し、領域外画素の値を白色値にして、コンタクトガラスを覆うためのカバーを開放した状態で読み取られた画像における原稿外部分(黒色部分)を除去している(例えば特許文献1参照)。 A certain image forming apparatus identifies extra-regional pixels that are not the original region in a binary image obtained by binarizing the original image, sets the value of the extra-regional pixels to a white value, and covers the contact glass. The outer part (black part) of the original document in the image read in the open state is removed (see, for example, Patent Document 1).
しかしながら、上述の技術では、カバーの開角度によっては、原稿外領域の濃度が高くならないため、2値画像において原稿外領域が白色となってしまい、原画像における原稿外領域の画像が除去されないことがある。 However, in the above technique, the density of the outer region of the original is not increased depending on the opening angle of the cover, so that the outer region of the original is white in the binary image and the image of the outer region of the original is not removed. There is.
本発明は、上記の問題に鑑みてなされたものであり、カバーの開角度に拘わらず、読取画像内の原稿外領域を正確に特定し原稿外領域の画像を除去する画像読取装置を得ることを目的とする。 The present invention has been made in view of the above problems, and obtains an image reading device that accurately identifies the outer region of the original in the scanned image and removes the image of the outer region of the original regardless of the opening angle of the cover. With the goal.
本発明に係る画像読取装置は、原稿が載置されるコンタクトガラスを覆うための、回転軸を中心にして回動可能なカバーを備え、前記コンタクトガラス上の原稿の原稿画像を含む読取画像を生成する画像入力部と、前記回転軸に対して垂直な主走査方向に沿った前記読取画像の画素値プロファイルと、前記カバーの開角度に応じたリファレンスプロファイルとの差分に基づいて、前記原稿画像を含まないラインを無原稿ラインとして特定する無原稿ライン特定部と、前記無原稿ライン内の全画素の原稿領域属性を第1値とする原稿領域属性判定部と、前記原稿領域属性が第1値である画素の画素値を白色値に変更する外領域画像除去部とを備える。そして、前記原稿領域属性判定部は、前記無原稿ライン以外の各画素については、当該画素の画素値と、前記無原稿ラインにおける当該画素と同一の画素位置の画素値の平均値との差分に基づいて、前記原稿領域属性を、前記第1値、および前記第1値とは異なる第2値のいずれかとし、(a)(a1)当該画素の画素値と、前記無原稿ラインにおける当該画素と同一の画素位置の画素値の平均値との差分が閾値より小さい画素および(a2)前記無原稿ラインに属する画素の総数が、注目画素の所定周辺範囲内で所定数より大きければ、前記注目画素の前記原稿領域属性を、前記第1値とし、(b)そうでなければ前記第2値とする。
The image reading device according to the present invention includes a cover that can rotate about a rotation axis for covering the contact glass on which the original is placed, and scans the scanned image including the original image of the original on the contact glass. The original image is based on the difference between the generated image input unit, the pixel value profile of the scanned image along the main scanning direction perpendicular to the rotation axis, and the reference profile according to the opening angle of the cover. A non-manuscript line specifying unit that specifies a line that does not include the above as a non-manuscript line, a manuscript area attribute determination unit that sets the manuscript area attribute of all pixels in the non-manuscript line as the first value, and the manuscript area attribute is first. It is provided with an outer region image removing unit that changes the pixel value of a pixel, which is a value, to a white value. Then, the document area attribute determination unit determines the difference between the pixel value of the pixel and the average value of the pixel values at the same pixel positions as the pixel in the document-free line for each pixel other than the document-free line. Based on this, the document area attribute is set to either the first value or a second value different from the first value, and (a) (a1) the pixel value of the pixel and the pixel in the non-manuscript line. If the total number of pixels whose difference from the average value of the pixel values at the same pixel position is smaller than the threshold value and (a2) the pixels belonging to the non-manuscript line is larger than the predetermined number within the predetermined peripheral range of the pixel of interest, the attention The document area attribute of the pixel is set to the first value, and (b) otherwise is set to the second value.
本発明によれば、カバーの開角度に拘わらず、読取画像内の原稿外領域を正確に特定し原稿外領域の画像を除去する画像読取装置が得られる。 According to the present invention, it is possible to obtain an image scanning device that accurately identifies the outer region of the document in the scanned image and removes the image of the outer region of the document regardless of the opening angle of the cover.
本発明の上記又は他の目的、特徴および優位性は、添付の図面とともに以下の詳細な説明から更に明らかになる。 The above or other object, feature and superiority of the present invention will be further clarified from the following detailed description with the accompanying drawings.
以下、図に基づいて本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の実施の形態に係る画像読取装置の構成を示すブロック図である。図1に示す画像読取装置は、例えばスキャナー機、コピー機、複合機などである。 FIG. 1 is a block diagram showing a configuration of an image reading device according to an embodiment of the present invention. The image reading device shown in FIG. 1 is, for example, a scanner machine, a copier, a multifunction device, or the like.
図1に示す画像読取装置は、画像入力部1、画像処理部2、および画像出力部3を備える。画像入力部1は、スキャナーを備え、1ページずつ、原稿画像を光学的に読み取り、読取画像の画像データ(量子化されたビットマップ画像データ)を生成し、画像処理部2に出力する。なお、読取画像は、スキャナーの読取幅(主走査方向の幅)および走査幅(副走査方向の幅)に対応する所定サイズの矩形画像である。スキャナーに原稿が載置されている場合には、読取画像内に原稿画像が含まれている。また、ここでは、読取画像は、多階調のCMYカラー画像である。なお、読取画像は、多階調のグレースケール画像でもよい。
The image reading device shown in FIG. 1 includes an
画像処理部2は、画像入力部1から入力された画像データ(つまり、読取画像)に対して各種画像処理を行い、画像処理後の画像データを画像出力部3に出力する。画像出力部3は、例えば電子写真方式のカラープリントエンジンを有し、画像処理部2からの画像データに基づく画像を印刷用紙に印刷する。
The
図2は、図1に示す画像読取装置におけるカバーの開角度について説明する図である。図2に示すように、画像入力部1は、原稿が載置されるコンタクトガラス41と、コンタクトガラス41を覆うための、回転軸を中心にして回動可能なカバー42と、光学系43とを備える。光学系43は、画像読取時に、コンタクトガラス41を介して光を出射し、コンタクトガラス41を介して入射してくる反射光を受光し、受光した反射光の強度に従って読取画像を生成する。そして、画像入力部1は、コンタクトガラス41上の原稿の原稿画像を含む読取画像を生成する。
FIG. 2 is a diagram illustrating an opening angle of the cover in the image reading device shown in FIG. As shown in FIG. 2, the
カバー42には、弾力性のあるマット42aが設けられている。マット42aの表面が白色となっており、マット42aの形状およびサイズは、コンタクトガラス41の形状およびサイズと略同一となっている。そのため、原稿がコンタクトガラス41に載置されていない場合においてカバー42が閉じられたときには、カバー42の開角度がゼロとなり、画像読取時に、白色のマット42aで反射した反射光が光学系43で受光される。また、シート状の原稿がコンタクトガラス41に載置された場合においてカバー42が閉じられたときには、カバー42の開角度が略ゼロとなり、画像読取時に、原稿または白色のマット42aで反射した反射光が光学系43で受光される。
The
他方、カバー42が開けられた状態でも画像読取は可能であり、画像読取の対象原稿が立体的なもの(例えば厚みのあるブック原稿)である場合には、カバー42の開角度は、対象原稿の厚みや高さに応じた角度となる。また、カバー42が開けられた状態で誤って画像読取が実行されることもある。
On the other hand, the image can be read even when the
カバー42が開けられた状態では、コンタクトガラス41からカバー42(マット42a)までの距離(コンタクトガラス41から垂直方向の距離)が主走査方向に沿って変化するとともに、カバー42の開角度によっても変化する。また、白色のマット42aの表面をコンタクトガラス41に投影した場合のコンタクトガラス41上でのマット42aの幅W1は、コンタクトガラス41の幅W2より狭くなる。そのため、カバー42が開けられた状態で読み取られた読取画像における、原稿のない領域に対応する部分(ライン)は、特有の濃度分布(画素値プロファイル)を有する。つまり、カバー42の回動軸に近い位置のほうが回動軸から遠い位置より距離がコンタクトガラス41からマット42aまでの距離が長くなるため、反射光が弱くなり、読取画像の濃度が高くなる。
When the
図1に戻り、画像処理部2は、外領域特定部11と、外領域画像除去部12とを備える。
Returning to FIG. 1, the
外領域特定部11は、ラインプロファイル取得部21、無原稿ライン特定部22、および原稿領域属性判定部23を備え、読取画像における原稿画像以外の領域を特定する。
The outer
ラインプロファイル取得部21は、カバー42の回転軸に対して垂直な主走査方向に沿った読取画像の画素値プロファイルを取得する。画素値プロファイルは、1ライン(主走査方向に沿った1ライン)におけるすべての画素の画素値の分布であり、ここでは、画素値は、各画素のCMY値(シアン・マゼンタ・イエロー)の平均値である。なお、画素値は、輝度値などといった他の特性値でもよい。
The line profile acquisition unit 21 acquires the pixel value profile of the scanned image along the main scanning direction perpendicular to the rotation axis of the
無原稿ライン特定部22は、取得された画素値プロファイルと、カバー42の開角度に応じたリファレンスプロファイルとの差分に基づいて、原稿画像を含まないライン(つまり、画素値プロファイルがリファレンスプロファイルに近いライン)を無原稿ラインとして特定する。なお、リファレンスプロファイルは、特定開角度での原稿なしの読取画像の主走査方向に沿った1ラインにおける画素値の分布である。
The non-original
リファレンスプロファイルは、機種によって異なるため、実験などで予め特定される。図3は、図1に示す画像読取装置のリファレンスプロファイルの例を示す図である。例えば図3に示すように、複数の開角度(ここでは、20度、40度および60度)でのリファレンスプロファイルが使用される。 Since the reference profile differs depending on the model, it is specified in advance by an experiment or the like. FIG. 3 is a diagram showing an example of a reference profile of the image reader shown in FIG. For example, as shown in FIG. 3, reference profiles are used at multiple opening angles (here, 20 degrees, 40 degrees, and 60 degrees).
原稿領域属性判定部23は、無原稿ライン内の全画素の原稿領域属性を第1値(原稿領域より外側を示す値、以下「領域外」という)とする。なお、原稿領域属性において、原稿領域の内側を示す値(以下「領域内」という)は、第1値とは異なる第2値とされる。
The manuscript area
この実施の形態では、さらに、原稿領域属性判定部23は、無原稿ライン以外の各画素については、当該画素の画素値と、無原稿ラインにおける当該画素と同一の画素位置の画素値とに基づいて、原稿領域属性を、上述の第1値および第2値のいずれかとする。
Further, in this embodiment, the document area
具体的には、原稿領域属性判定部23は、無原稿ライン以外の各画素については、当該画素の画素値と、無原稿ラインにおける当該画素と同一の画素位置の画素値の平均値との差分に基づいて、原稿領域属性を、上述の第1値および第2値のいずれかとする。
Specifically, the document area
また、この実施の形態では、原稿領域属性判定部23は、(a)(a1)当該画素の画素値と、無原稿ラインにおける当該画素と同一の画素位置の画素値の平均値との差分が閾値より小さい画素および(a2)無原稿ラインに属する画素の総数が、注目画素の所定周辺範囲内で所定数より大きければ、注目画素の原稿領域属性を上述の第1値とし、(b)上述の画素の総数が注目画素の所定周辺範囲内で所定数以下であれば、注目画素の原稿領域属性を上述の第2値とする。
Further, in this embodiment, the document area
なお、ここでは、当該画素の画素値と、無原稿ラインにおける当該画素と同一の画素位置の画素値の平均値との差分に基づいて、原稿領域属性が特定されているが、その代わりに、当該画素の画素値と、複数の無原稿ラインのいずれかにおける当該画素と同一の画素位置の画素値との差分に基づいて、原稿領域属性が特定されるようにしてもよい。 Here, the document area attribute is specified based on the difference between the pixel value of the pixel and the average value of the pixel values at the same pixel position as the pixel in the non-manuscript line. Instead, The document area attribute may be specified based on the difference between the pixel value of the pixel and the pixel value at the same pixel position as the pixel in any of the plurality of non-original lines.
外領域画像除去部12は、原稿領域属性が第1値である画素の画素値を白色値(つまり、背景色)に変更する。つまり、原稿領域属性が第2値である画素の画素値は変更されない。
The outer area
次に、上記画像読取装置の動作について説明する。 Next, the operation of the image reader will be described.
原稿スキャンで得られた読取画像に対して、無原稿ライン特定処理が実行され、次に、原稿領域属性判定処理が実行される。 The non-original line identification process is executed for the scanned image obtained by the original scan, and then the original area attribute determination process is executed.
(a)無原稿ラインの特定 (A) Identification of non-manuscript line
図4は、図1に示す画像読取装置における無原稿ライン特定処理について説明するフローチャートである。 FIG. 4 is a flowchart illustrating a document-free line identification process in the image reading device shown in FIG.
無原稿ライン特定部22は、まず、角度設定値を初期値(ここでは、最大開角度60度)にセットし(ステップS1)、ラインカウンター値をゼロにしてラインカウンターをリセットする(ステップS2)。
The non-manuscript
なお、通常、センサーなどがなければ、カバー42の開角度は不明であるので、ここでは、開角度を示す角度設定値を順次変更していき、読取画像のラインの画素値プロファイルが複数の開角度のリファレンスプロファイルのいずれかに近ければ、そのラインは無原稿ラインとされる。
Normally, the opening angle of the
次に、無原稿ライン特定部22は、注目ラインを、読取画像の先頭から副走査方向に沿って順番に選択する(ステップS3)。
Next, the non-original
そして、ラインプロファイル取得部21は、画像入力部1により生成された読取画像に基づいて、注目ラインの画素値プロファイルPinを取得する(ステップS4)。無原稿ライン特定部22は、現時点の角度設定値に等しい開角度のリファレンスプロファイルPrefとその注目ラインの画素値プロファイルPinとの差分(以下、プロファイル差分値dPという)を計算する(ステップS5)。
Then, the line profile acquisition unit 21 acquires the pixel value profile Pin of the line of interest based on the scanned image generated by the image input unit 1 (step S4). The non-manuscript
例えば、プロファイル差分値dPは、1ラインにおける各画素位置での画素値の差分(絶対値)の総和とされる。 For example, the profile difference value dP is the sum of the differences (absolute values) of the pixel values at each pixel position in one line.
次に、無原稿ライン特定部22は、計算したプロファイル差分値dPが所定の閾値Th1より小さいか否かを判定する(ステップS6)。
Next, the non-manuscript
計算したプロファイル差分値dPが所定の閾値Th1より小さい場合、無原稿ライン特定部22は、注目ラインを、無原稿ライン候補とし(ステップS7)、ラインカウンター値を1だけ増加させる(ステップS8)。
When the calculated profile difference value dP is smaller than the predetermined threshold value Th1, the non-manuscript
一方、計算したプロファイル差分値dPが所定の閾値Th1より小さくない場合、注目ラインは、無原稿ライン候補とされず、ラインカウンター値も増加させない。 On the other hand, when the calculated profile difference value dP is not smaller than the predetermined threshold value Th1, the line of interest is not regarded as a non-manuscript line candidate and the line counter value is not increased.
そして、無原稿ライン特定部22は、現時点の注目ラインが読取画像の最終ラインであるか否かを判定し(ステップS9)、現時点の注目ラインが読取画像の最終ラインではなければ、ステップS3に戻り、次の注目ライン(現時点の注目ラインの、副走査方向における次のライン)を選択し(ステップS3)、その新たに選択した注目ラインに対してステップS4以降の処理を同様に行う。
Then, the non-manuscript
一方、現時点の注目ラインが読取画像の最終ラインである場合、無原稿ライン特定部22は、ラインカウンター値が閾値より大きいか否かを判定し(ステップS10)、ラインカウンター値が閾値より大きい場合には無原稿ライン候補を無原稿ライン候補とする(ステップS11)。
On the other hand, when the line of interest at the present time is the final line of the scanned image, the non-original
他方、ステップS10においてラインカウンター値が閾値より大きくない場合には、無原稿ライン特定部22は、角度設定値を変更して(ステップS12)、ステップS2に戻り、ラインカウンター値をリセットした後(ステップS2)、新たな角度設定値に基づいて、ラインプロファイル取得部21とともに、ステップS3以降の処理を同様に実行する。例えば、ステップS12において角度設定値を小さくして、ステップS5において別の開角度のリファレンスプロファイルが選択され、そのリファレンスプロファイルに基づくプロファイル差分値dPが特定される。
On the other hand, if the line counter value is not larger than the threshold value in step S10, the non-manuscript
なお、ステップS4における画素値プロファイルPinは、メモリーなどで保持されるようにしておき、前回の角度設定値において特定した画素値プロファイルPinがメモリーなどで保持されていれば、再度計算せずに、メモリーなどから読み出すことで、画素値プロファイルPinを特定するようにしてもよい。 The pixel value profile Pin in step S4 is held in a memory or the like, and if the pixel value profile Pin specified in the previous angle setting value is held in the memory or the like, the calculation is not performed again. The pixel value profile Pin may be specified by reading from a memory or the like.
また、無原稿ラインが特定されるまで、無原稿ライン候補のライン番号がメモリーなどで保持されるとともに、後述の原稿領域属性の判定で使用されるため、無原稿ラインのライン番号がメモリーなどで保持される。 Further, until the non-manuscript line is specified, the line number of the non-manuscript line candidate is retained in the memory or the like, and is used in the determination of the manuscript area attribute described later. Be retained.
(b)原稿領域属性の判定 (B) Judgment of document area attributes
原稿領域属性の判定では、無原稿ラインに属する画素の原稿領域属性が「領域外」とされ、無原稿ラインに属さない画素の原稿領域属性が、無原稿ラインの画素値を使用して、画素ごとに、「領域外」および「領域内」のいずれかに分類される。 In the determination of the original area attribute, the original area attribute of the pixel belonging to the non-original line is set to "outside the area", and the original area attribute of the pixel not belonging to the non-original line is a pixel using the pixel value of the non-original line. Each is classified as either "outside the area" or "inside the area".
図5および図6は、図1に示す画像読取装置における原稿領域属性判定処理について説明するフローチャートである。 5 and 6 are flowcharts for explaining the document area attribute determination process in the image reading device shown in FIG. 1.
原稿領域属性判定部23は、注目ラインを、読取画像の先頭から副走査方向に沿って順番に選択する(ステップS21)。
The document area
次に、原稿領域属性判定部23は、注目ラインが無原稿ラインであるか否かを判定する(ステップS22)。
Next, the document area
注目ラインが無原稿ラインである場合、原稿領域属性判定部23は、注目ラインの全画素の原稿領域属性を「領域外」とする(ステップS23)。
When the attention line is a non-manuscript line, the document area
一方、注目ラインが無原稿ラインではない場合、原稿領域属性判定部23は、まず、注目画素を、注目ラインの先頭から主走査方向に沿って順番に選択する(ステップS24)。
On the other hand, when the attention line is not a non-original line, the document area
次に、原稿領域属性判定部23は、無原稿ラインにおける同画素位置(注目画素と同じ画素位置)の画素値の平均値を計算し、注目画素の画素値とその平均値との差分dDを特定する(ステップS25)。具体的には、注目画素が1ラインにおけるi番目の画素であるとすると、複数の無原稿ラインのi番目の画素の画素値が特定され、それらの画素値の平均値が特定され、注目画素の画素値とその平均値との差分dDが特定される。
Next, the document area
次に、原稿領域属性判定部23は、計算した差分dDが所定の閾値Th2より小さいか否かを判定する(ステップS26)。
Next, the document area
計算した差分dDが所定の閾値Th2より小さい場合、原稿領域属性判定部23は、注目画素の原稿領域属性を「領域外候補」とする(ステップS27)。
When the calculated difference dD is smaller than the predetermined threshold value Th2, the document area
計算した差分dDが所定の閾値Th2より小さくない場合、原稿領域属性判定部23は、注目画素の原稿領域属性を「領域内候補」とする(ステップS28)。
When the calculated difference dD is not smaller than the predetermined threshold value Th2, the document area
そして、原稿領域属性判定部23は、現時点の注目画素が注目ラインの最終画素であるか否かを判定し(ステップS29)、現時点の注目画素が注目ラインの最終画素ではなければ、ステップS24に戻り、次の注目画素(現時点の注目画素の、主走査方向における次の画素)を選択し(ステップS24)、その新たに選択した注目画素に対してステップS25以降の処理を同様に行う。
Then, the document area
また、原稿領域属性判定部23は、注目ラインにおけるすべての画素の原稿領域属性が、それぞれ、「領域外」、「領域外候補」、および「領域内候補」のいずれかに設定されると、現時点の注目ラインが読取画像の最終ラインであるか否かを判定し(ステップS30)、現時点の注目ラインが読取画像の最終ラインではなければ、ステップS21に戻り、次の注目ライン(現時点の注目ラインの、副走査方向における次のライン)を選択し(ステップS21)、その新たに選択した注目ラインに対してステップS22以降の処理を同様に行う。
Further, when the document area attribute of all the pixels in the line of interest is set to any of "outside the area", "outside the area candidate", and "inside the area candidate", the document area
一方、現時点の注目ラインが読取画像の最終ラインであれば(ステップS30)、図5に示す後段の処理が実行される。 On the other hand, if the current line of interest is the final line of the scanned image (step S30), the subsequent processing shown in FIG. 5 is executed.
まず、原稿領域属性判定部23は、注目画素を、読取画像の先頭から走査方向に沿って順番に選択する(ステップS41)。
First, the document area
そして、原稿領域属性判定部23は、注目画素の原稿領域属性が「領域外」であるか否かを判定し(ステップS42)、注目画素の原稿領域属性が「領域外」でなければ(つまり、「領域外候補」または「領域内候補」であれば)、原稿領域属性判定部23は、注目画素の原稿領域属性が「領域外候補」であるか否かを判定する(ステップS43)。
Then, the document area
注目画素の原稿領域属性が「領域外候補」である場合、原稿領域属性判定部23は、注目画素を中心とした所定サイズのウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値Th3より大きいか否かを判定する(ステップS44)。なお、当該ウィンドウのサイズは、例えば、3画素×3画素などとされる。
When the document area attribute of the pixel of interest is "outside the area candidate", the document area
そして、当該ウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値Th3より大きい場合には、原稿領域属性判定部23は、注目画素の原稿領域属性を「領域外」とする(ステップS45)。
Then, when the number of pixels whose document area attribute is "outside the area" or "candidate outside the area" in the window is larger than the predetermined threshold Th3, the document area
一方、当該ウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値Th3より大きくない場合には、原稿領域属性判定部23は、注目画素の原稿領域属性を「領域内」とする(ステップS46)。
On the other hand, when the number of pixels whose document area attribute is "outside the area" or "candidate outside the area" in the window is not larger than the predetermined threshold Th3, the document area
他方、注目画素の原稿領域属性が「領域内候補」である場合、原稿領域属性判定部23は、注目画素を中心とした所定サイズのウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値Th4より大きいか否かを判定する(ステップS47)。ここで、例えば、閾値Th4は、閾値Th3より大きく設定される。なお、当該ウィンドウのサイズは、例えば、3画素×3画素などとされる。
On the other hand, when the document area attribute of the pixel of interest is "candidate in area", the document area
そして、当該ウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値Th4より大きい場合には、原稿領域属性判定部23は、注目画素の原稿領域属性を「領域外」とする(ステップS45)。
Then, when the number of pixels whose document area attribute is "outside the area" or "candidate outside the area" in the window is larger than the predetermined threshold value Th4, the document area
一方、当該ウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値Th4より大きくない場合には、原稿領域属性判定部23は、注目画素の原稿領域属性を「領域内」とする(ステップS46)。
On the other hand, when the number of pixels whose document area attribute is "outside the area" or "candidate outside the area" in the window is not larger than the predetermined threshold Th4, the document area
そして、原稿領域属性判定部23は、注目画素が読取原稿の最終画素であるか否かを判定し(ステップS48)、注目画素が読取原稿の最終画素ではなければ、ステップS41に戻り、走査方向に沿って次の注目画素を選択し(ステップS41)、新たに選択した注目画素に対して、ステップS42以降の処理を同様に行う。
Then, the document area
一方、注目画素が読取原稿の最終画素であれば、外領域画像除去部12は、読取画像の全画素のうち、原稿領域属性が「領域外」である画素の画素値を、白色値に変更する(ステップS49)。例えば、読取画像がCMYカラー画像である場合、原稿領域属性が「領域外」である画素の画素値のCMY値は、(0,0,0,)に変更される。
On the other hand, if the pixel of interest is the final pixel of the scanned document, the outer region
以上のように、上記実施の形態によれば、画像入力部1は、原稿が載置されるコンタクトガラス41を覆うための、回転軸を中心にして回動可能なカバー42を備え、コンタクトガラス41上の原稿の原稿画像を含む読取画像を生成する。無原稿ライン特定部22は、上述の回転軸に対して垂直な主走査方向に沿った読取画像の画素値プロファイルと、カバー42の開角度に応じたリファレンスプロファイルとの差分に基づいて、原稿画像を含まないラインを無原稿ラインとして特定する。原稿領域属性判定部23は、無原稿ライン内の全画素の原稿領域属性を第1値とする。外領域画像除去部12は、原稿領域属性が第1値である画素の画素値を白色値に変更する。
As described above, according to the above embodiment, the
これにより、読取画像の2値画像に基づき原稿外領域を特定せずに済むため、カバー42の開角度に拘わらず、読取画像内の原稿外領域を正確に特定し原稿外領域の画像が除去される。
As a result, it is not necessary to specify the outer region of the original based on the binary image of the scanned image. Therefore, regardless of the opening angle of the
なお、上述の実施の形態に対する様々な変更および修正については、当業者には明らかである。そのような変更および修正は、その主題の趣旨および範囲から離れることなく、かつ、意図された利点を弱めることなく行われてもよい。つまり、そのような変更および修正が請求の範囲に含まれることを意図している。 It should be noted that various changes and modifications to the above-described embodiments will be apparent to those skilled in the art. Such changes and modifications may be made without departing from the intent and scope of the subject and without diminishing the intended benefits. That is, it is intended that such changes and amendments are included in the claims.
例えば、上記実施の形態において、原稿種別に応じて、例えばライン単位で原稿外領域を判定したい場合には、図5および図6に示す処理を実行せずに、無原稿ラインの全画素の画素値を白色値に変更するようにしてもよい。 For example, in the above embodiment, when it is desired to determine the area outside the document in units of lines according to the document type, for example, the pixels of all the pixels of the non-original line without executing the processes shown in FIGS. 5 and 6. The value may be changed to a white value.
また、上記実施の形態において、原稿種別に応じて、図6に示す処理を実行せずに、図5における「領域外候補」を「領域外」とし、図5における「領域内候補」を「領域内」としてもよい。 Further, in the above embodiment, the "outside area candidate" in FIG. 5 is set to "outside the area" and the "inside area candidate" in FIG. 5 is set to "outside the area" without executing the process shown in FIG. It may be "in the area".
本発明は、例えば、画像読取装置に適用可能である。 The present invention is applicable to, for example, an image reader.
1 画像入力部
12 外領域画像除去部
22 無原稿ライン特定部
23 原稿領域属性判定部
41 コンタクトガラス
42 カバー
1
Claims (1)
前記回転軸に対して垂直な主走査方向に沿った前記読取画像の画素値プロファイルと、前記カバーの開角度に応じたリファレンスプロファイルとの差分に基づいて、前記原稿画像を含まないラインを無原稿ラインとして特定する無原稿ライン特定部と、
前記無原稿ライン内の全画素の原稿領域属性を第1値とする原稿領域属性判定部と、
前記原稿領域属性が第1値である画素の画素値を白色値に変更する外領域画像除去部と、
を備え、
前記原稿領域属性判定部は、前記無原稿ライン以外の各画素については、当該画素の画素値と、前記無原稿ラインにおける当該画素と同一の画素位置の画素値の平均値との差分に基づいて、前記原稿領域属性を、前記第1値、および前記第1値とは異なる第2値のいずれかとし、(a)(a1)当該画素の画素値と、前記無原稿ラインにおける当該画素と同一の画素位置の画素値の平均値との差分が閾値より小さい画素および(a2)前記無原稿ラインに属する画素の総数が、注目画素の所定周辺範囲内で所定数より大きければ、前記注目画素の前記原稿領域属性を、前記第1値とし、(b)そうでなければ前記第2値とすること、
を特徴とする画像読取装置。 An image input unit that includes a cover that can rotate around a rotation axis to cover the contact glass on which the original is placed and generates a scanned image including the original image of the original on the contact glass.
Based on the difference between the pixel value profile of the scanned image along the main scanning direction perpendicular to the rotation axis and the reference profile according to the opening angle of the cover, a line not including the original image is drawn without a document. The non-manuscript line identification part specified as a line and
A document area attribute determination unit having the document area attribute of all pixels in the non-document line as the first value,
An outer region image removing unit that changes the pixel value of a pixel whose original document region attribute is the first value to a white value, and
Equipped with a,
For each pixel other than the no-manuscript line, the manuscript area attribute determination unit is based on the difference between the pixel value of the pixel and the average value of the pixel values at the same pixel positions as the pixel in the no-manuscript line. , The document area attribute is set to either the first value or a second value different from the first value, and (a) (a1) the pixel value of the pixel is the same as the pixel in the non-manuscript line. If the difference between the pixel value of the pixel position and the average value of the pixel value is smaller than the threshold value and the total number of pixels belonging to (a2) the non-manuscript line is larger than a predetermined number within a predetermined peripheral range of the pixel of interest, the pixel of interest The document area attribute shall be the first value, and (b) otherwise the second value.
An image reader characterized by.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017229669A JP6796265B2 (en) | 2017-11-29 | 2017-11-29 | Image reader |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017229669A JP6796265B2 (en) | 2017-11-29 | 2017-11-29 | Image reader |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019102899A JP2019102899A (en) | 2019-06-24 |
JP6796265B2 true JP6796265B2 (en) | 2020-12-09 |
Family
ID=66974275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017229669A Active JP6796265B2 (en) | 2017-11-29 | 2017-11-29 | Image reader |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6796265B2 (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4662807B2 (en) * | 2004-08-06 | 2011-03-30 | 株式会社リコー | Document reading apparatus, image processing apparatus, image forming apparatus, and copying apparatus |
JP4784896B2 (en) * | 2008-07-25 | 2011-10-05 | Necアクセステクニカ株式会社 | Document presence detection method and document reading apparatus |
JP5812945B2 (en) * | 2012-06-26 | 2015-11-17 | 京セラドキュメントソリューションズ株式会社 | Image reading apparatus, image forming apparatus, and external region determination method |
-
2017
- 2017-11-29 JP JP2017229669A patent/JP6796265B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019102899A (en) | 2019-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9665944B2 (en) | Image processing apparatus and non-transitory computer readable recording medium storing an image processing program with improved duplication of characters against a background image | |
JP6288521B2 (en) | Image processing device | |
JP3882803B2 (en) | Image processing apparatus and image processing method | |
US8411307B2 (en) | Image processing device and image forming device | |
JP3886727B2 (en) | Image processing device | |
JP6249240B2 (en) | Image processing device | |
EP3151165B1 (en) | Image processing apparatus | |
JP6796265B2 (en) | Image reader | |
US8330997B2 (en) | Image processing apparatus, image forming apparatus and image processing method | |
JP7440821B2 (en) | Image processing device, method, and computer program | |
JP2000036908A (en) | Image recognition device | |
JP2023030811A (en) | Information processing apparatus, extraction processing apparatus, image processing system, control method of information processing apparatus, and program | |
JP5854973B2 (en) | Image forming apparatus | |
JP6025803B2 (en) | Image processing device | |
JP6841254B2 (en) | Image processing equipment and computer programs | |
JP6579388B2 (en) | Image reading device | |
JP6879465B2 (en) | Image processing equipment and computer programs | |
EP2806625B1 (en) | Image processing apparatus, image processing method, and non-transitory computer readable recording medium storing an image processing program | |
JP6761583B2 (en) | Image reader | |
JP2007166429A (en) | Unit and method for processing image, program, and storage medium storing the same | |
JP6226206B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2000022899A (en) | Image recognition device | |
JP6270054B2 (en) | Image processing apparatus, image forming apparatus, image processing method, and image processing program | |
JP6645143B2 (en) | Image analysis device | |
JPH0364268A (en) | Color copying device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20191024 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200703 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200806 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200924 |
|
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: 20201015 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20201028 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6796265 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |