JP6796265B2 - Image reader - Google Patents

Image reader Download PDF

Info

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
Application number
JP2017229669A
Other languages
Japanese (ja)
Other versions
JP2019102899A (en
Inventor
秀也 村本
秀也 村本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2017229669A priority Critical patent/JP6796265B2/en
Publication of JP2019102899A publication Critical patent/JP2019102899A/en
Application granted granted Critical
Publication of JP6796265B2 publication Critical patent/JP6796265B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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).

特開2016−119633号公報Japanese Unexamined Patent Publication No. 2016-119633

しかしながら、上述の技術では、カバーの開角度によっては、原稿外領域の濃度が高くならないため、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.

図1は、本発明の実施の形態に係る画像読取装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of an image reading device according to an embodiment of the present invention. 図2は、図1に示す画像読取装置におけるカバーの開角度について説明する図である。FIG. 2 is a diagram illustrating an opening angle of the cover in the image reading device shown in FIG. 図3は、図1に示す画像読取装置のリファレンスプロファイルの例を示す図である。FIG. 3 is a diagram showing an example of a reference profile of the image reader shown in FIG. 図4は、図1に示す画像読取装置における無原稿ライン特定処理について説明するフローチャートである。FIG. 4 is a flowchart illustrating a document-free line identification process in the image reading device shown in FIG. 図5は、図1に示す画像読取装置における原稿領域属性判定処理について説明するフローチャートである(1/2)。FIG. 5 is a flowchart illustrating a document area attribute determination process in the image reading device shown in FIG. 1 (1/2). 図6は、図1に示す画像読取装置における原稿領域属性判定処理について説明するフローチャートである(2/2)。FIG. 6 is a flowchart illustrating the document area attribute determination process in the image reader shown in FIG. 1 (2/2).

以下、図に基づいて本発明の実施の形態を説明する。 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 image input unit 1, an image processing unit 2, and an image output unit 3. The image input unit 1 includes a scanner, optically reads the original image page by page, generates image data (quantified bitmap image data) of the scanned image, and outputs the image data to the image processing unit 2. The scanned image is a rectangular image of a predetermined size corresponding to the scanning width (width in the main scanning direction) and the scanning width (width in the sub-scanning direction) of the scanner. When the original is placed on the scanner, the original image is included in the scanned image. Further, here, the scanned image is a multi-gradation CMY color image. The scanned image may be a multi-gradation grayscale image.

画像処理部2は、画像入力部1から入力された画像データ(つまり、読取画像)に対して各種画像処理を行い、画像処理後の画像データを画像出力部3に出力する。画像出力部3は、例えば電子写真方式のカラープリントエンジンを有し、画像処理部2からの画像データに基づく画像を印刷用紙に印刷する。 The image processing unit 2 performs various image processing on the image data (that is, the scanned image) input from the image input unit 1, and outputs the image data after the image processing to the image output unit 3. The image output unit 3 has, for example, an electrophotographic color print engine, and prints an image based on the image data from the image processing unit 2 on printing paper.

図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 image input unit 1 includes a contact glass 41 on which a document is placed, a cover 42 rotatable about a rotation axis for covering the contact glass 41, and an optical system 43. To be equipped with. At the time of image reading, the optical system 43 emits light through the contact glass 41, receives the reflected light incident through the contact glass 41, and generates a scanned image according to the intensity of the received reflected light. Then, the image input unit 1 generates a scanned image including the original image of the original on the contact glass 41.

カバー42には、弾力性のあるマット42aが設けられている。マット42aの表面が白色となっており、マット42aの形状およびサイズは、コンタクトガラス41の形状およびサイズと略同一となっている。そのため、原稿がコンタクトガラス41に載置されていない場合においてカバー42が閉じられたときには、カバー42の開角度がゼロとなり、画像読取時に、白色のマット42aで反射した反射光が光学系43で受光される。また、シート状の原稿がコンタクトガラス41に載置された場合においてカバー42が閉じられたときには、カバー42の開角度が略ゼロとなり、画像読取時に、原稿または白色のマット42aで反射した反射光が光学系43で受光される。 The cover 42 is provided with an elastic mat 42a. The surface of the mat 42a is white, and the shape and size of the mat 42a are substantially the same as the shape and size of the contact glass 41. Therefore, when the cover 42 is closed when the original is not placed on the contact glass 41, the opening angle of the cover 42 becomes zero, and the reflected light reflected by the white mat 42a during image reading is reflected by the optical system 43. Received light. Further, when the sheet-shaped original is placed on the contact glass 41 and the cover 42 is closed, the opening angle of the cover 42 becomes substantially zero, and the reflected light reflected by the original or the white mat 42a during image reading. Is received by the optical system 43.

他方、カバー42が開けられた状態でも画像読取は可能であり、画像読取の対象原稿が立体的なもの(例えば厚みのあるブック原稿)である場合には、カバー42の開角度は、対象原稿の厚みや高さに応じた角度となる。また、カバー42が開けられた状態で誤って画像読取が実行されることもある。 On the other hand, the image can be read even when the cover 42 is opened, and when the target document for image reading is a three-dimensional object (for example, a thick book document), the opening angle of the cover 42 is the target document. The angle corresponds to the thickness and height of. In addition, image reading may be erroneously executed with the cover 42 opened.

カバー42が開けられた状態では、コンタクトガラス41からカバー42(マット42a)までの距離(コンタクトガラス41から垂直方向の距離)が主走査方向に沿って変化するとともに、カバー42の開角度によっても変化する。また、白色のマット42aの表面をコンタクトガラス41に投影した場合のコンタクトガラス41上でのマット42aの幅W1は、コンタクトガラス41の幅W2より狭くなる。そのため、カバー42が開けられた状態で読み取られた読取画像における、原稿のない領域に対応する部分(ライン)は、特有の濃度分布(画素値プロファイル)を有する。つまり、カバー42の回動軸に近い位置のほうが回動軸から遠い位置より距離がコンタクトガラス41からマット42aまでの距離が長くなるため、反射光が弱くなり、読取画像の濃度が高くなる。 When the cover 42 is opened, the distance from the contact glass 41 to the cover 42 (mat 42a) (distance in the vertical direction from the contact glass 41) changes along the main scanning direction, and also depends on the opening angle of the cover 42. Change. Further, the width W1 of the mat 42a on the contact glass 41 when the surface of the white mat 42a is projected onto the contact glass 41 is narrower than the width W2 of the contact glass 41. Therefore, in the scanned image read with the cover 42 opened, the portion (line) corresponding to the region without the original has a unique density distribution (pixel value profile). That is, since the distance from the contact glass 41 to the mat 42a is longer at a position closer to the rotation axis of the cover 42 than at a position farther from the rotation axis, the reflected light becomes weaker and the density of the scanned image becomes higher.

図1に戻り、画像処理部2は、外領域特定部11と、外領域画像除去部12とを備える。 Returning to FIG. 1, the image processing unit 2 includes an outer region specifying unit 11 and an outer region image removing unit 12.

外領域特定部11は、ラインプロファイル取得部21、無原稿ライン特定部22、および原稿領域属性判定部23を備え、読取画像における原稿画像以外の領域を特定する。 The outer area identification unit 11 includes a line profile acquisition unit 21, a non-manuscript line identification unit 22, and a document area attribute determination unit 23, and identifies an area other than the document image in the scanned image.

ラインプロファイル取得部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 cover 42. The pixel value profile is the distribution of pixel values of all pixels in one line (one line along the main scanning direction), where the pixel values are the average of the CMY values (cyan, magenta, yellow) of each pixel. The value. The pixel value may be another characteristic value such as a luminance value.

無原稿ライン特定部22は、取得された画素値プロファイルと、カバー42の開角度に応じたリファレンスプロファイルとの差分に基づいて、原稿画像を含まないライン(つまり、画素値プロファイルがリファレンスプロファイルに近いライン)を無原稿ラインとして特定する。なお、リファレンスプロファイルは、特定開角度での原稿なしの読取画像の主走査方向に沿った1ラインにおける画素値の分布である。 The non-original line identification unit 22 is a line that does not include the original image (that is, the pixel value profile is close to the reference profile) based on the difference between the acquired pixel value profile and the reference profile according to the opening angle of the cover 42. Line) is specified as a non-manuscript line. The reference profile is a distribution of pixel values in one line along the main scanning direction of a scanned image without a document at a specific opening angle.

リファレンスプロファイルは、機種によって異なるため、実験などで予め特定される。図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 attribute determination unit 23 sets the manuscript area attribute of all pixels in the non-manuscript line as a first value (a value indicating the outside of the manuscript area, hereinafter referred to as “outside the area”). In the document area attribute, the value indicating the inside of the document area (hereinafter referred to as “inside the area”) is a second value different from the first value.

この実施の形態では、さらに、原稿領域属性判定部23は、無原稿ライン以外の各画素については、当該画素の画素値と、無原稿ラインにおける当該画素と同一の画素位置の画素値とに基づいて、原稿領域属性を、上述の第1値および第2値のいずれかとする。 Further, in this embodiment, the document area attribute determination unit 23 is based on the pixel value of the pixel and the pixel value at the same pixel position as the pixel in the document-free line for each pixel other than the document-free line. Therefore, the document area attribute is set to one of the above-mentioned first value and second value.

具体的には、原稿領域属性判定部23は、無原稿ライン以外の各画素については、当該画素の画素値と、無原稿ラインにおける当該画素と同一の画素位置の画素値の平均値との差分に基づいて、原稿領域属性を、上述の第1値および第2値のいずれかとする。 Specifically, the document area attribute determination unit 23 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, the manuscript area attribute is set to one of the above-mentioned first value and second value.

また、この実施の形態では、原稿領域属性判定部23は、(a)(a1)当該画素の画素値と、無原稿ラインにおける当該画素と同一の画素位置の画素値の平均値との差分が閾値より小さい画素および(a2)無原稿ラインに属する画素の総数が、注目画素の所定周辺範囲内で所定数より大きければ、注目画素の原稿領域属性を上述の第1値とし、(b)上述の画素の総数が注目画素の所定周辺範囲内で所定数以下であれば、注目画素の原稿領域属性を上述の第2値とする。 Further, in this embodiment, the document area attribute determination unit 23 has (a) (a1) 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. If the total number of pixels smaller than the threshold value and the total number of pixels belonging to (a2) no document line is larger than a predetermined number within a predetermined peripheral range of the pixel of interest, the document area attribute of the pixel of interest is set to the above-mentioned first value, and (b) the above-mentioned If the total number of pixels of the above is within a predetermined peripheral range of the pixel of interest and is equal to or less than a predetermined number, the document area attribute of the pixel of interest is set to the above-mentioned second value.

なお、ここでは、当該画素の画素値と、無原稿ラインにおける当該画素と同一の画素位置の画素値の平均値との差分に基づいて、原稿領域属性が特定されているが、その代わりに、当該画素の画素値と、複数の無原稿ラインのいずれかにおける当該画素と同一の画素位置の画素値との差分に基づいて、原稿領域属性が特定されるようにしてもよい。 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 image removing unit 12 changes the pixel value of the pixel whose document area attribute is the first value to a white value (that is, the background color). That is, the pixel value of the pixel whose document area attribute is the second value is not changed.

次に、上記画像読取装置の動作について説明する。 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 line specifying unit 22 first sets the angle setting value to the initial value (here, the maximum opening angle is 60 degrees) (step S1), sets the line counter value to zero, and resets the line counter (step S2). ..

なお、通常、センサーなどがなければ、カバー42の開角度は不明であるので、ここでは、開角度を示す角度設定値を順次変更していき、読取画像のラインの画素値プロファイルが複数の開角度のリファレンスプロファイルのいずれかに近ければ、そのラインは無原稿ラインとされる。 Normally, the opening angle of the cover 42 is unknown without a sensor or the like. Therefore, here, the angle setting value indicating the opening angle is sequentially changed, and a plurality of pixel value profiles of the lines of the scanned image are opened. If it is close to any of the angular reference profiles, the line is considered a blank line.

次に、無原稿ライン特定部22は、注目ラインを、読取画像の先頭から副走査方向に沿って順番に選択する(ステップS3)。 Next, the non-original line identification unit 22 selects the line of interest in order from the beginning of the scanned image along the sub-scanning direction (step S3).

そして、ラインプロファイル取得部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 line specifying unit 22 calculates the difference between the reference profile Pref having an opening angle equal to the current angle set value and the pixel value profile Pin of the line of interest (hereinafter, referred to as profile difference value dP) (step S5).

例えば、プロファイル差分値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 line specifying unit 22 determines whether or not the calculated profile difference value dP is smaller than the predetermined threshold Th1 (step S6).

計算したプロファイル差分値dPが所定の閾値Th1より小さい場合、無原稿ライン特定部22は、注目ラインを、無原稿ライン候補とし(ステップS7)、ラインカウンター値を1だけ増加させる(ステップS8)。 When the calculated profile difference value dP is smaller than the predetermined threshold value Th1, the non-manuscript line specifying unit 22 sets the line of interest as a non-manuscript line candidate (step S7) and increases the line counter value by 1 (step S8).

一方、計算したプロファイル差分値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 line specifying unit 22 determines whether or not the current attention line is the final line of the scanned image (step S9), and if the current attention line is not the final line of the scanned image, step S3. Returning, the next attention line (the next line of the current attention line in the sub-scanning direction) is selected (step S3), and the processing after step S4 is performed on the newly selected attention line in the same manner.

一方、現時点の注目ラインが読取画像の最終ラインである場合、無原稿ライン特定部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 line specifying unit 22 determines whether or not the line counter value is larger than the threshold value (step S10), and when the line counter value is larger than the threshold value. The non-manuscript line candidate is set as the non-manuscript line candidate (step S11).

他方、ステップ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 line specifying unit 22 changes the angle setting value (step S12), returns to step S2, and resets the line counter value (). In step S2), the processes after step S3 are similarly executed together with the line profile acquisition unit 21 based on the new angle set value. For example, the angle setting value is reduced in step S12, another reference profile with an open angle is selected in step S5, and the profile difference value dP based on the reference profile is specified.

なお、ステップ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 attribute determination unit 23 selects the lines of interest in order from the beginning of the scanned image along the sub-scanning direction (step S21).

次に、原稿領域属性判定部23は、注目ラインが無原稿ラインであるか否かを判定する(ステップS22)。 Next, the document area attribute determination unit 23 determines whether or not the line of interest is a non-document line (step S22).

注目ラインが無原稿ラインである場合、原稿領域属性判定部23は、注目ラインの全画素の原稿領域属性を「領域外」とする(ステップS23)。 When the attention line is a non-manuscript line, the document area attribute determination unit 23 sets the document area attributes of all the pixels of the attention line to "outside the area" (step S23).

一方、注目ラインが無原稿ラインではない場合、原稿領域属性判定部23は、まず、注目画素を、注目ラインの先頭から主走査方向に沿って順番に選択する(ステップS24)。 On the other hand, when the attention line is not a non-original line, the document area attribute determination unit 23 first selects the attention pixels in order from the beginning of the attention line along the main scanning direction (step S24).

次に、原稿領域属性判定部23は、無原稿ラインにおける同画素位置(注目画素と同じ画素位置)の画素値の平均値を計算し、注目画素の画素値とその平均値との差分dDを特定する(ステップS25)。具体的には、注目画素が1ラインにおけるi番目の画素であるとすると、複数の無原稿ラインのi番目の画素の画素値が特定され、それらの画素値の平均値が特定され、注目画素の画素値とその平均値との差分dDが特定される。 Next, the document area attribute determination unit 23 calculates the average value of the pixel values at the same pixel position (the same pixel position as the pixel of interest) in the non-original line, and calculates the difference dD between the pixel value of the pixel of interest and the average value thereof. Specify (step S25). Specifically, assuming that the pixel of interest is the i-th pixel in one line, the pixel values of the i-th pixel of a plurality of non-manuscript lines are specified, the average value of those pixel values is specified, and the pixel of interest is specified. The difference dD between the pixel value of and the average value thereof is specified.

次に、原稿領域属性判定部23は、計算した差分dDが所定の閾値Th2より小さいか否かを判定する(ステップS26)。 Next, the document area attribute determination unit 23 determines whether or not the calculated difference dD is smaller than the predetermined threshold Th2 (step S26).

計算した差分dDが所定の閾値Th2より小さい場合、原稿領域属性判定部23は、注目画素の原稿領域属性を「領域外候補」とする(ステップS27)。 When the calculated difference dD is smaller than the predetermined threshold value Th2, the document area attribute determination unit 23 sets the document area attribute of the pixel of interest as the “outside area candidate” (step S27).

計算した差分dDが所定の閾値Th2より小さくない場合、原稿領域属性判定部23は、注目画素の原稿領域属性を「領域内候補」とする(ステップS28)。 When the calculated difference dD is not smaller than the predetermined threshold value Th2, the document area attribute determination unit 23 sets the document area attribute of the pixel of interest as a “candidate within the area” (step S28).

そして、原稿領域属性判定部23は、現時点の注目画素が注目ラインの最終画素であるか否かを判定し(ステップS29)、現時点の注目画素が注目ラインの最終画素ではなければ、ステップS24に戻り、次の注目画素(現時点の注目画素の、主走査方向における次の画素)を選択し(ステップS24)、その新たに選択した注目画素に対してステップS25以降の処理を同様に行う。 Then, the document area attribute determination unit 23 determines whether or not the current attention pixel is the final pixel of the attention line (step S29), and if the current attention pixel is not the final pixel of the attention line, step S24. Returning, the next pixel of interest (the next pixel of the pixel of interest at the present time in the main scanning direction) is selected (step S24), and the processing of step S25 and subsequent steps is similarly performed on the newly selected pixel of interest.

また、原稿領域属性判定部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 attribute determination unit 23 determines. It is determined whether or not the current attention line is the final line of the scanned image (step S30), and if the current attention line is not the final line of the scanned image, the process returns to step S21 and the next attention line (current attention). The next line in the sub-scanning direction of the line) is selected (step S21), and the processing after step S22 is performed on the newly selected line of interest in the same manner.

一方、現時点の注目ラインが読取画像の最終ラインであれば(ステップ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 attribute determination unit 23 selects the pixels of interest in order from the beginning of the scanned image along the scanning direction (step S41).

そして、原稿領域属性判定部23は、注目画素の原稿領域属性が「領域外」であるか否かを判定し(ステップS42)、注目画素の原稿領域属性が「領域外」でなければ(つまり、「領域外候補」または「領域内候補」であれば)、原稿領域属性判定部23は、注目画素の原稿領域属性が「領域外候補」であるか否かを判定する(ステップS43)。 Then, the document area attribute determination unit 23 determines whether or not the document area attribute of the pixel of interest is “outside the area” (step S42), and the document area attribute of the pixel of interest is not “outside the area” (that is,). , "Outside the area candidate" or "Inside the area candidate"), the document area attribute determination unit 23 determines whether or not the original area attribute of the pixel of interest is the "outside area candidate" (step S43).

注目画素の原稿領域属性が「領域外候補」である場合、原稿領域属性判定部23は、注目画素を中心とした所定サイズのウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値Th3より大きいか否かを判定する(ステップS44)。なお、当該ウィンドウのサイズは、例えば、3画素×3画素などとされる。 When the document area attribute of the pixel of interest is "outside the area candidate", the document area attribute determination unit 23 determines that the document area attribute is "outside the area" or "candidate outside the area" in a window of a predetermined size centered on the pixel of interest. It is determined whether or not the number of pixels is larger than the predetermined threshold value Th3 (step S44). The size of the window is, for example, 3 pixels × 3 pixels.

そして、当該ウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値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 attribute determination unit 23 determines the document area of the pixel of interest. The attribute is set to "outside the area" (step S45).

一方、当該ウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値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 attribute determination unit 23 determines the original of the pixel of interest. The area attribute is set to "inside the area" (step S46).

他方、注目画素の原稿領域属性が「領域内候補」である場合、原稿領域属性判定部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 attribute determination unit 23 determines that the document area attribute is "out of area" or "area" in a window of a predetermined size centered on the pixel of interest. It is determined whether or not the number of pixels that are "outside candidates" is larger than the predetermined threshold value Th4 (step S47). Here, for example, the threshold value Th4 is set to be larger than the threshold value Th3. The size of the window is, for example, 3 pixels × 3 pixels.

そして、当該ウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値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 attribute determination unit 23 determines the document area of the pixel of interest. The attribute is set to "outside the area" (step S45).

一方、当該ウィンドウ内における、原稿領域属性が「領域外」または「領域外候補」である画素の数が所定の閾値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 attribute determination unit 23 determines the original of the pixel of interest. The area attribute is set to "inside the area" (step S46).

そして、原稿領域属性判定部23は、注目画素が読取原稿の最終画素であるか否かを判定し(ステップS48)、注目画素が読取原稿の最終画素ではなければ、ステップS41に戻り、走査方向に沿って次の注目画素を選択し(ステップS41)、新たに選択した注目画素に対して、ステップS42以降の処理を同様に行う。 Then, the document area attribute determination unit 23 determines whether or not the pixel of interest is the final pixel of the scanned document (step S48), and if the pixel of interest is not the final pixel of the scanned document, returns to step S41 and the scanning direction. The next pixel of interest is selected along the line (step S41), and the processes of steps S42 and subsequent steps are similarly performed on the newly selected pixel of interest.

一方、注目画素が読取原稿の最終画素であれば、外領域画像除去部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 image removing unit 12 changes the pixel value of the pixel whose document region attribute is "outside the region" among all the pixels of the scanned image to a white value. (Step S49). For example, when the scanned image is a CMY color image, the CMY value of the pixel value of the pixel whose document area attribute is “outside the area” is changed to (0, 0, 0,).

以上のように、上記実施の形態によれば、画像入力部1は、原稿が載置されるコンタクトガラス41を覆うための、回転軸を中心にして回動可能なカバー42を備え、コンタクトガラス41上の原稿の原稿画像を含む読取画像を生成する。無原稿ライン特定部22は、上述の回転軸に対して垂直な主走査方向に沿った読取画像の画素値プロファイルと、カバー42の開角度に応じたリファレンスプロファイルとの差分に基づいて、原稿画像を含まないラインを無原稿ラインとして特定する。原稿領域属性判定部23は、無原稿ライン内の全画素の原稿領域属性を第1値とする。外領域画像除去部12は、原稿領域属性が第1値である画素の画素値を白色値に変更する。 As described above, according to the above embodiment, the image input unit 1 includes a cover 42 that is rotatable about a rotation axis for covering the contact glass 41 on which the document is placed, and the contact glass. 41 Generates a scanned image including the original image of the above document. The document-free line identification unit 22 is 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 42. A line that does not include is specified as a non-manuscript line. The document area attribute determination unit 23 sets the document area attribute of all pixels in the non-document line as the first value. The outer area image removing unit 12 changes the pixel value of the pixel whose document area attribute is the first value to a white value.

これにより、読取画像の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 cover 42, the outer region of the original in the scanned image is accurately specified and the image of the outer region of the original is removed. Will be done.

なお、上述の実施の形態に対する様々な変更および修正については、当業者には明らかである。そのような変更および修正は、その主題の趣旨および範囲から離れることなく、かつ、意図された利点を弱めることなく行われてもよい。つまり、そのような変更および修正が請求の範囲に含まれることを意図している。 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 Image input unit 12 External area image removal unit 22 No original line identification unit 23 Original area attribute judgment unit 41 Contact glass 42 Cover

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.
JP2017229669A 2017-11-29 2017-11-29 Image reader Active JP6796265B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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