JP2014146981A - Image reading device, image forming apparatus, and image reading method - Google Patents
Image reading device, image forming apparatus, and image reading method Download PDFInfo
- Publication number
- JP2014146981A JP2014146981A JP2013014591A JP2013014591A JP2014146981A JP 2014146981 A JP2014146981 A JP 2014146981A JP 2013014591 A JP2013014591 A JP 2013014591A JP 2013014591 A JP2013014591 A JP 2013014591A JP 2014146981 A JP2014146981 A JP 2014146981A
- Authority
- JP
- Japan
- Prior art keywords
- image
- white
- line
- main scanning
- sub
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Facsimile Scanning Arrangements (AREA)
Abstract
Description
本発明は、画像読取装置、画像形成装置および画像読取方法に関する。 The present invention relates to an image reading apparatus, an image forming apparatus, and an image reading method.
原稿の画像を読み取る画像読取装置の技術の一つに白紙原稿を検知する技術がある。白紙原稿を検知したあと、白紙の画像データをそのまま出力することなく、出力用紙の無駄を低減している。特に画像読取装置がADF(Auto Document Feeder:自動原稿送り装置)を備える場合、複数の原稿を一度に取り扱うため、白紙が混入する可能性が高くなるため白紙原稿を検知する効果がより得られる。特許文献1には、原稿を読み取って得られた画像データの色の濃度が所定の範囲内にある画素をカウントし、その画素数と閾値とを比較することによって読み取った原稿が白紙であるか否かを検知する技術が開示されている。閾値の設定によって原稿上のゴミやノイズに対応することが可能である。 One technique of an image reading apparatus that reads an image of an original is a technique for detecting a blank original. After detecting a blank original, the output paper is reduced without outputting the blank image data as it is. In particular, when the image reading apparatus includes an ADF (Auto Document Feeder: automatic document feeder), since a plurality of documents are handled at a time, there is a high possibility that a blank sheet is mixed, and thus an effect of detecting a blank document can be further obtained. Japanese Patent Application Laid-Open No. 2005-228561 counts pixels in which the color density of image data obtained by reading an original is within a predetermined range, and compares the number of pixels with a threshold value to determine whether the read original is blank. Techniques for detecting whether or not are disclosed. It is possible to deal with dust and noise on the original by setting the threshold value.
しかしながら、特許文献1に記載の白紙検知技術が白紙として検知できるのは原稿中に文字や線画、イメージなどの情報がない紙のみである。原稿として使用される用紙の中にはノートやレポート用紙、ルーズリーフなどのように原稿中に文字や線画、イメージなどが何も記入されていなくても横あるいは縦方向に罫線が存在するものがある。特許文献1に記載の技術にこのような原稿を使用した場合、仮に何も記入されていなくても画像として読み取られた罫線が情報としてとらえられ、白紙として検知されなくなってしまう。このように特許文献1に記載の技術では閾値の設定によって原稿上のゴミやノイズに対応することは可能だが、ノート等の罫線に対応することはできない。 However, the blank sheet detection technique described in Patent Document 1 can detect only blank sheets of paper that have no information such as characters, line drawings, and images in the document. Some types of paper used as manuscripts have ruled lines in the horizontal or vertical direction, such as notebooks, report papers, and loose leaves, even if there are no characters, line drawings, or images in the manuscript. . When such a manuscript is used in the technique described in Patent Document 1, even if nothing is entered, the ruled line read as an image is captured as information and is not detected as blank paper. As described above, the technique disclosed in Patent Document 1 can deal with dust and noise on a document by setting a threshold value, but cannot deal with ruled lines such as notes.
本発明は上記課題を鑑みてなされたものであり、その目的は、入力画像が、一方向に比較的長く連続する情報を含む場合でも、白紙画像であると判定することができる画像読取装置、画像形成装置および画像読取方法を提供することにある。 The present invention has been made in view of the above problems, and an object of the present invention is to provide an image reading apparatus that can determine that an input image is a blank image even when the input image includes information that is relatively long and continuous in one direction. An object of the present invention is to provide an image forming apparatus and an image reading method.
本発明による画像読取装置は、原稿を読み取って入力画像を得る画像読取部と、制御部とを備え、前記入力画像は前記原稿の主走査方向と副走査方向とに沿って配列される複数の画素によって形成され、前記制御部は、前記主走査方向の非白ラインの連続数の最大値である主走査最大連続数と前記副走査方向の非白ラインの連続数の最大値である副走査最大連続数とに基づいて、前記入力画像が白紙画像であるか否かを判定する。 An image reading apparatus according to the present invention includes an image reading unit that reads an original and obtains an input image, and a control unit, and the input image is arranged along a main scanning direction and a sub-scanning direction of the original. The control unit is formed of pixels, and the control unit performs sub-scanning that is the maximum value of the main scanning maximum continuous number that is the maximum number of consecutive non-white lines in the main scanning direction and the maximum value of the number of consecutive non-white lines in the sub-scanning direction. Based on the maximum continuous number, it is determined whether or not the input image is a blank image.
ある実施形態において、前記制御部は、前記入力画像が白紙画像であるか否かを判定する際に、前記主走査最大連続数および前記副走査最大連続数のうちの小さい方の値と所定の閾値とを比較する。 In one embodiment, when the control unit determines whether or not the input image is a blank image, a smaller value of the main scanning maximum continuous number and the sub-scanning maximum continuous number is set to a predetermined value. Compare with the threshold.
ある実施形態において、前記制御部は、前記入力画像の前記複数の画素のそれぞれが非白画素か否かを判定し、前記主走査方向と前記副走査方向とのそれぞれに沿ったそれぞれのラインが、前記非白画素と判定された少なくとも1つの画素を含む非白ラインであるか否かを判定し、前記非白ラインの連続数をカウントすることにより、前記主走査最大連続数と前記副走査最大連続数とを算出する。 In one embodiment, the control unit determines whether or not each of the plurality of pixels of the input image is a non-white pixel, and each line along each of the main scanning direction and the sub-scanning direction is determined. Determining whether or not the non-white line includes at least one pixel determined as the non-white pixel, and counting the continuous number of the non-white line, whereby the main scanning maximum continuous number and the sub-scanning line are counted. Calculate the maximum number of consecutive.
ある実施形態において、前記制御部は、前記非白ラインであるか否かを判定する際に、前記主走査方向と前記副走査方向とのそれぞれに沿ったそれぞれのライン内に含まれる前記非白画素の数をカウントし、前記非白画素の数のカウント結果と所定の閾値とを比較する。 In one embodiment, when the control unit determines whether or not the line is the non-white line, the non-white line included in each line along each of the main scanning direction and the sub-scanning direction. The number of pixels is counted, and the result of counting the number of non-white pixels is compared with a predetermined threshold value.
ある実施形態において、前記制御部は、前記複数の画素のそれぞれが前記非白画素か否かを判定する際に、前記入力画像の前記複数の画素のそれぞれの濃度データまたは輝度データと、所定の閾値とを比較する。 In one embodiment, when the control unit determines whether each of the plurality of pixels is the non-white pixel, density data or luminance data of each of the plurality of pixels of the input image, and a predetermined value Compare with the threshold.
ある実施形態において、前記制御部は、前記主走査方向1ラインごとに前記非白画素の数のカウント結果と所定の閾値とを比較することにより、前記主走査方向に沿ったそれぞれのラインが、前記非白ラインであるか否かを判定した結果、前記主走査方向に沿ったそれぞれのラインを前記非白ラインであると判定した場合、連続数カウンタをインクリメントし、前記非白ラインでないと判定した場合、前記連続数カウンタをリセットする。 In one embodiment, the control unit compares the count result of the number of non-white pixels for each line in the main scanning direction with a predetermined threshold, so that each line along the main scanning direction is As a result of determining whether or not the line is the non-white line, if it is determined that each line along the main scanning direction is the non-white line, the continuous number counter is incremented and it is determined that the line is not the non-white line. If so, the continuous number counter is reset.
ある実施形態において、前記制御部は、前記入力画像のページ内非白画素をカウントすることにより、ページ内非白画素カウント値を求め、前記ページ内非白画素カウント値と所定の閾値とを比較することにより、前記入力画像が白紙画像であるか否かを判定する。 In one embodiment, the control unit obtains an in-page non-white pixel count value by counting non-white pixels in the page of the input image, and compares the in-page non-white pixel count value with a predetermined threshold value. By doing so, it is determined whether or not the input image is a blank image.
ある実施形態において、前記制御部は、前記入力画像が所定のエリア内で白紙画像であるか否かを判定する。 In one embodiment, the control unit determines whether or not the input image is a blank image within a predetermined area.
本発明による画像形成装置は、上記に記載の画像読取装置と、印刷部とを備える。 An image forming apparatus according to the present invention includes the image reading apparatus described above and a printing unit.
ある実施形態において、前記印刷部は、前記白紙画像を除いた前記入力画像に対応する前記原稿を印刷する。 In one embodiment, the printing unit prints the document corresponding to the input image excluding the blank image.
本発明による画像読取方法は、原稿を読み取って主走査方向と副走査方向とに沿って配列される複数の画素によって形成される入力画像を得る画像読取工程と、前記主走査方向の非白ラインの連続数の最大値である主走査最大連続数と前記副走査方向の非白ラインの連続数の最大値である副走査最大連続数とに基づいて、前記入力画像が白紙画像であるか否かを判定する白紙画像判定工程とを包含する。 An image reading method according to the present invention includes an image reading step of reading an original to obtain an input image formed by a plurality of pixels arranged along a main scanning direction and a sub-scanning direction, and a non-white line in the main scanning direction Whether or not the input image is a blank image based on the maximum number of consecutive main scans that is the maximum value of the number of consecutive scans and the maximum number of consecutive subscans that is the maximum value of the number of consecutive non-white lines in the sub-scanning direction. Including a blank image determination step.
本発明の画像読取装置は、主走査方向の非白ラインの連続数の最大値である主走査最大連続数と副走査方向の非白ラインの連続数の最大値である副走査最大連続数とに基づき入力画像が白紙画像であるか否かを判定する。したがって、入力画像が、一方向に短くて他方に長く伸びている線を含む場合でも、白紙画像であると判定することができる。その結果、例えば、ノート罫線のみのノートやルーズリーフやレポート用紙を、白紙と判定する事ができる。 The image reading apparatus of the present invention includes a main scanning maximum continuous number that is the maximum value of the number of consecutive non-white lines in the main scanning direction and a sub-scan maximum number of consecutive values that is the maximum value of the number of consecutive non-white lines in the sub-scanning direction. Based on the above, it is determined whether or not the input image is a blank image. Therefore, even when the input image includes a line that is short in one direction and long in the other direction, it can be determined that the image is a blank image. As a result, it is possible to determine, for example, a notebook, a loose leaf, or a report sheet having only a notebook ruled line as a blank sheet.
以下、図面を参照して本発明による画像読取装置、画像形成装置および画像読取方法の実施形態を説明する。ただし、本発明は以下の実施形態に限定されない。 Embodiments of an image reading apparatus, an image forming apparatus, and an image reading method according to the present invention will be described below with reference to the drawings. However, the present invention is not limited to the following embodiments.
[基本原理:画像読取装置]
図1を参照して本発明による画像読取装置10の実施形態を説明する。図1は、本発明の実施形態に係る画像読取装置10を示す模式図である。
[Basic principle: Image reading device]
An embodiment of an
画像読取装置10は、画像読取部20と制御部30とを備える。典型的に画像読取装置10は、原稿台11をさらに備える。画像読取装置10は、原稿台11の上に載置された原稿Mを読み取って入力画像を得る。画像読取装置10は、例えば、スキャナである。原稿Mは、例えば、紙であるが紙に限定されない。例えば、布や厚みのある立体物でもあり得る。
The
画像読取部20は、光源21と光学系26と撮像部27とを備える。画像読取部20は、原稿台11の下方に設けられている。光学系26は、複数の反射ミラー(反射ミラー24a、反射ミラー24bおよび反射ミラー24c)とレンズ25とを有している。光源21と反射ミラー24aとは、第1キャリッジ23aに取り付けられている。第1キャリッジ23aには、スリット22が設けられている。反射ミラー24bと反射ミラー24cとは、第2キャリッジ23bに取り付けられている。
The
光源21から照射した光は、光学系26を経て撮像部27に到達する。以下、光源21から照射した光が撮像部27に到達する過程を説明する。主走査方向に延びた光源21は、原稿台11を下方から照射する。なお、ここでは主走査方向は図1の奥行方向(図示せず)であり、副走査方向はY方向である。光源21から照射された光は、原稿Mで反射して、スリット22を通り反射ミラー24aに到達する。反射ミラー24aに到達した光は反射ミラー24aで反射し、反射ミラー24bおよび反射ミラー24cによって導かれ、レンズ25を通り撮像部27に到達する。
The light emitted from the
画像読取部20が、原稿Mを読み取る場合は、第1キャリッジ23aは、発光している光源21と共に副走査方向Yに移動する。第2キャリッジ23bは、光源21から撮像部27までの光路長が一定になるように移動する。
When the
撮像部27は、例えば、CCD(Charage Coupled Device)である。撮像部27は、撮像部27に到達した光からアナログ電気信号を生成する。その後、A/D変換部(図示せず)において、アナログ電気信号は、デジタル電気信号に変換される。そしてデジタル電気信号は制御部30へと入力される。
The
制御部30は、CPU(Central Processing Unit)とROM(Read Only Memory)とRAM(Random Access Memory)とHDD(Hard Disk Drive)とを備える。CPUがROMやHDDに格納されているプログラムを実行することで、各判定処理を実施し、最終的に入力画像が白紙画像であるか否かを判定する。RAMは、CPUがプログラムを実行する際に作業領域として使用される。
The
[基本原理:画像読取方法]
図2、図3、図4および図5を参照して本発明による画像読取装置10の実施形態を説明する。図2および図3は、本発明の実施形態に係る画像読取装置10の動作を示すフローチャートである。図4(a)および図4(b)は、入力画像を示す模式図である。図5(a)および図5(b)は、入力画像と非白ラインの判定結果とを示す模式図である。
[Basic principle: Image reading method]
An embodiment of the
図2と図3に示されたS100〜S124によって入力画像が白紙画像であるか否かを判定する白紙画像判定工程が実行される。まず、S100にて、画像読取部20は原稿Mを読み取り、入力画像を取得する。図4(a)で示す入力画像Sは、原稿Mを読み取って得られた入力画像の一例であり、図4(b)で示す入力画像Tは、別の原稿Mを読み取って得られた入力画像の一例である。入力画像Sと入力画像Tとは、長手方向(横方向)と長手方向に直交する短手方向(縦方向)とに沿って配列される複数の画素によって形成される。例えば、入力画像Sと入力画像Tとは、それぞれ横7000画素×縦5000画素の画像である。
A blank image determination process is performed in S100 to S124 shown in FIGS. 2 and 3 to determine whether or not the input image is a blank image. First, in S100, the
入力画像Sは、文字「A」を示す画像、文字「b」を示す画像および文字「C」を示す画像を含んでいる。ここでは入力画像Sは文字を示す画像を含んでいるが、入力画像は、文字の他に写真を示す画像や模様を示す画像なども含むことができる。 The input image S includes an image indicating the character “A”, an image indicating the character “b”, and an image indicating the character “C”. Here, the input image S includes an image indicating a character, but the input image may include an image indicating a photograph or an image indicating a pattern in addition to the characters.
一方、入力画像Tは、一方向に長く延びており他方の方向にはそれほど延びてない線を示す画像を含んでいる。この様な入力画像として読み込まれる原稿としては、例えば、ノート罫線が表示されたノートやルーズリーフやレポート用紙などがある。原稿がこれらのノート罫線のみのノートやルーズリーフやレポート用紙である場合、典型的にノート罫線の間隔は等間隔である。なお、入力画像Tは、縦罫線を示す画像であるが、横罫線を示す画像でもあり得る。 On the other hand, the input image T includes an image showing a line that extends long in one direction and does not extend so much in the other direction. Examples of the original read as such an input image include a notebook displaying a ruled line, a loose leaf, and a report sheet. When the original is a note, a loose leaf, or a report sheet having only these note ruled lines, the interval between the note ruled lines is typically equal. The input image T is an image showing a vertical ruled line, but may be an image showing a horizontal ruled line.
次に白紙画像判定工程はS102に進み、制御部30は、入力画像を形成する全ての画素のうちのそれぞれの画素に対して非白画素判定を行う。ここでは、制御部30は、入力画像の長手方向(横方向)には左の画素から右の画素へ、長手方向に直交する短手方向(縦方向)には上の画素から下の画素へと順番に非白画素判定を行う。制御部30は、非白画素判定において、入力画像が有する複数の画素のそれぞれが非白画素か否かを判定する。制御部30は、画素値と非白画素判定閾値Twとを比較することにより非白画素判定を行う。入力画像がモノクロの8bit濃度データ(0(白)→255(黒))である場合、制御部30は、判定する画素値が非白画素判定閾値Twよりも大きければ、画素を非白画素と判定する。一方、制御部30は、判定する画素値が非白画素判定閾値Twよりも大きくなければ、画素を白画素と判定する。また、制御部30は、入力画像がモノクロの8bit輝度データ(0(黒)→255(白))である場合、判定する画素値が非白画素判定閾値Twよりも小さければ、画素を非白画素と判定する。判定する画素値が非白画素判定閾値Twよりも小さくなければ、画素を白画素と判定する。
Next, the blank image determination process proceeds to S102, and the
また、入力画像がRGB各色8bitカラーデータである場合、制御部30は、RGBの輝度値のうちの最小値と非白画素判定閾値Twとを比較し、RGBの輝度値のうちの最小値が非白画素判定閾値Twよりも小さければ、画素を非白画素と判定する。RGBの輝度値の最小値を選択する理由は、白画素であればRGBの輝度値がいずれも高い値を示すが、白以外の画素(色画素や黒画素)ではRGBの輝度値の少なくともいずれか1色の値が小さくなるためである。
When the input image is RGB 8-bit color data, the
次に、白紙画像判定工程はS104に進み、制御部30は、非白画素判定を実施した画素の入力画像に対する位置がラインの終端か否かを判定する。非白画素判定を実施した画素の入力画像に対する位置がラインの終端で無い場合(S104:N)、白紙画像判定工程はS106に進み、白画素判定を実施する画素の位置が次の画素(ここでは1つ右隣の画素)へ移動する。そして白紙画像判定工程はS102に戻り、制御部30は、次の画素(ここでは1つ右隣の画素)に対して非白画素判定を行う。白画素判定を実施した画素の入力画像に対する位置がラインの終端である場合(S104:Y)、白紙画像判定工程はS108に進む。
Next, the blank image determination process proceeds to S104, and the
S108では、制御部30は、非白画素判定を実施した画素の入力画像に対する位置がページの終端か否かを判定する。非白画素判定を実施した画素の入力画像に対する位置がページの終端で無い場合(S108:N)、非白画素判定工程はS110に進み、白画素判定を実施する画素の位置が次のラインへ移動する。そして白画素判定工程はS102に戻り、制御部30は、次のラインの先頭の画素に対して非白画素判定を行う。
In S108, the
S102からS110を繰りかえすことにより、制御部30は、入力画像の全ての画素に対して、非白画素判定を行う。ページの全ての画素の非白画素判定が完了し、白画素判定を実施した画素の入力画像に対する位置がページの終端である場合(S108:Y)、白紙画像判定工程は図3に示されたS112に進む。
By repeating S <b> 102 to S <b> 110, the
S112では、制御部30は、入力画像のそれぞれのラインに対して非白ライン判定を行う。図5を参照して非白ライン判定について説明する。図5においては図4で示した入力画像Sと入力画像Tに非白ラインの判定結果を追加している。判定結果SHは、入力画像Sの主走査ラインの非白ラインを示し、判定結果SVは、入力画像Sの副走査ラインの非白ラインを示す。図5に示された入力画像Sと入力画像Tとにおいて、入力画像の長手方向(横方向)が主走査方向Xであり、長手方向に直交する短手方向(縦方向)が副走査方向Yである。
In S112, the
制御部30は、非白ライン判定において、主走査方向Xと副走査方向Yとのそれぞれに沿ったそれぞれのラインが、非白画素と判定された少なくとも1つの画素を含む非白ラインであるか否かを判定する。判定結果SHにおいて斜線で示した箇所は、制御部30が非白ラインと判定した主走査ライン(主走査非白ライン群H1と主走査非白ライン群H2)を示している。一方、判定結果SVにおいて斜線で示した箇所は、制御部30が非白ラインと判定した副走査ライン(副査非白ライン群V1、副走査非白ライン群V2および副走査非白ライン群V3)を示している。
In the non-white line determination, the
主走査非白ライン群H1と主走査非白ライン群H2とは、主走査ラインの非白ラインの判定結果のうち非白ラインと判定された領域を示す。文字「A」と文字「C」を示している画素を含む主走査ラインは非白ラインとなる。主走査非白ライン群H1は、文字「A」と文字「C」とに対応している主走査方向の非白ラインと判定された箇所である。文字「A」に対応する主走査非白ラインと文字「C」に対応する主走査非白ラインとは一部が重複しているため、主走査非白ラインは、副走査方向に連続している。このため文字「A」の上端から文字「C」の下端に対応した主走査方向のラインが非白ラインと判定される。また、主走査非白ライン群H2は、文字「b」に対応している主走査方向の非白ラインと判定された箇所である。文字「b」を示している画素を含む主走査ラインは非白ラインと判定される。文字「b」の上端から文字「b」の下端に対応した主走査方向のラインが非白ラインと判定される。 The main scanning non-white line group H1 and the main scanning non-white line group H2 indicate regions determined as non-white lines among the determination results of the non-white lines of the main scanning lines. The main scanning line including the pixels indicating the character “A” and the character “C” is a non-white line. The main scanning non-white line group H1 is a portion determined as a non-white line in the main scanning direction corresponding to the character “A” and the character “C”. Since the main scanning non-white line corresponding to the character “A” and the main scanning non-white line corresponding to the character “C” partially overlap, the main scanning non-white line continues in the sub-scanning direction. Yes. Therefore, the line in the main scanning direction corresponding to the lower end of the character “C” from the upper end of the character “A” is determined as a non-white line. The main scanning non-white line group H2 is a portion determined as a non-white line in the main scanning direction corresponding to the character “b”. The main scanning line including the pixel indicating the character “b” is determined as a non-white line. A line in the main scanning direction corresponding to the lower end of the character “b” from the upper end of the character “b” is determined as a non-white line.
副査非白ライン群V1と副走査非白ライン群V2と副走査非白ライン群V3とは、副走査ラインの非白ラインの判定結果のうち非白ラインと判定された領域を示す。副走査非白ライン群V1は、文字「A」に対応している副走査方向の非白ラインと判定された箇所である。文字「A」を示している画素を含む副走査ラインは非白ラインと判定される。文字「A」の左端から文字「A」の右端に対応した副走査方向のラインが非白ラインと判定される。また、副走査非白ライン群V2は、文字「b」に対応している副走査方向の非白ラインと判定された箇所である。文字「b」を示している画素を含む副走査ラインは非白ラインと判定される。文字「b」の左端から文字「b」の右端に対応した副走査方向のラインが非白ラインと判定される。また、副走査非白ライン群V3は、文字「C」に対応している副走査方向の非白ラインと判定された箇所である。文字「C」を示している画素を含む副走査ラインは非白ラインと判定される。文字「C」の左端から文字「C」の右端に対応した副走査方向のラインが非白ラインと判定される。 The sub-inspection non-white line group V1, the sub-scanning non-white line group V2, and the sub-scanning non-white line group V3 indicate areas determined as non-white lines among the determination results of the non-white lines of the sub-scanning lines. The sub-scanning non-white line group V1 is a portion determined to be a non-white line in the sub-scanning direction corresponding to the character “A”. The sub-scanning line including the pixel indicating the character “A” is determined as a non-white line. A line in the sub-scanning direction corresponding to the right end of the character “A” from the left end of the character “A” is determined as a non-white line. Further, the sub-scanning non-white line group V2 is a portion determined as a non-white line in the sub-scanning direction corresponding to the character “b”. The sub-scan line including the pixel indicating the character “b” is determined as a non-white line. A line in the sub-scanning direction corresponding to the right end of the character “b” from the left end of the character “b” is determined as a non-white line. Further, the sub-scanning non-white line group V3 is a portion determined as a non-white line in the sub-scanning direction corresponding to the character “C”. The sub-scanning line including the pixel indicating the character “C” is determined as a non-white line. A line in the sub-scanning direction corresponding to the right end of the character “C” from the left end of the character “C” is determined as a non-white line.
引き続き図3〜図5を参照して、白紙画像判定工程の説明を続ける。白紙画像判定工程は図3に示されたS114に進み、制御部30は、主走査方向の非白ラインの最大連続数である主走査最大連続数Hmaxを検出する。入力画像が入力画像Sの場合、主走査最大連続数Hmaxは、主走査非白ライン群H1で示す箇所における副走査方向の非白ラインの連続数である。入力画像が入力画像Tの場合、主走査最大連続数Hmaxは、入力画像Sのノート罫線の長さ分の画素数と等しい数である。
The description of the blank image determination process will be continued with reference to FIGS. The blank image determination process proceeds to S114 shown in FIG. 3, and the
次に、白紙画像判定工程はS116に進み、制御部30は、副走査方向の非白ラインの最大連続数である副走査最大連続数Vmaxを検出する。入力画像が入力画像Sの場合、副走査最大連続数Vmaxは、副走査非白ライン群V1で示す箇所における主走査方向の非白ラインの連続数である。入力画像が入力画像Tの場合、副走査最大連続数Vmaxは、入力画像Sのノート罫線の幅分の画素数と等しい数である。
Next, the blank image determination process proceeds to S116, and the
次に、白紙画像判定工程はS118に進み、制御部30は、主走査最大連続数Hmaxと副走査最大連続数Vmaxとを比較し、主走査最大連続数Hmaxと副走査最大連続数Vmaxとのうち小さい方を最大連続数Nmaxとする。入力画像が入力画像Sの場合、最大連続数Nmaxは、副走査最大連続数Vmaxである。入力画像が入力画像Tの場合、最大連続数Nmaxは、副走査最大連続数Vmaxであり、入力画像Sのノート罫線の幅分の画素数と等しい数である。
Next, the blank image determination step proceeds to S118, and the
次に、白紙画像判定工程はS120に進み、制御部30は、最大連続数Nmaxが幅閾値Twidthよりも大きいか否かを判定する。最大連続数Nmaxが幅閾値Twidthよりも大きい場合(S120:Y)、白紙画像判定工程はS122に進み、制御部30は、入力画像が白紙画像ではないと判定する。最大連続数Nmaxが幅閾値Twidthよりも大きくない場合(S120:N)、白紙画像判定工程はS124に進み、制御部30は、入力画像が白紙画像であると判定する。
Next, the blank image determination process proceeds to S120, and the
入力画像が入力画像Sの場合、最大連続数Nmaxは幅閾値Twidthよりも大きくなり、制御部30は、入力画像Sが白紙画像ではないと判定する。入力画像が入力画像Tの場合、最大連続数Nmaxは幅閾値Twidthよりも小さくなり、制御部30は、入力画像Tが白紙画像であると判定する。
When the input image is the input image S, the maximum continuous number Nmax is larger than the width threshold value Twidth, and the
以上、図2〜図5を参照してS100〜S124によって実行される白紙画像判定工程を説明した。 The blank image determination process executed in steps S100 to S124 has been described above with reference to FIGS.
図2〜図5を参照して説明したように、画像読取装置10は、主走査最大連続数Hmaxと副走査最大連続数Vmaxに基づき入力画像が白紙画像であるか否かを判定する。したがって、入力画像が入力画像Tで示すように、一方向に短く、他方に長く伸びている線を含む場合でも、入力画像を白紙画像と判定することができる。その結果、例えば、ノート罫線のみのノートやルーズリーフやレポート用紙を白紙と判定する事ができる。
As described with reference to FIGS. 2 to 5, the
[自動原稿送り装置付き画像読取装置]
図6を参照して、本発明による画像読取装置40の他の実施形態を説明する。図6は、本発明の他の実施形態に係る画像読取装置40を示す模式図である。画像読取装置40は、画像読取部20と制御部30と自動原稿送り装置41とを備える。画像読取装置40は、自動原稿送り装置41を更に備える点を除いて図1を参照して説明した画像読取装置10と同様な構成を有するため、重複部分については説明を省略する。
[Image reading device with automatic document feeder]
With reference to FIG. 6, another embodiment of the
自動原稿送り装置41は、ADF(Auto Document Feeder)と呼ばれている。自動原稿送り装置41は、載置台42とピックアップローラ43と搬送ローラ44aと搬送ローラ44bと排紙台46とを備える。原稿搬送路45は、載置台42から、画像読取部20にて読み取りが行われる読取位置Qを経由して、排紙台46に通じる原稿Mの搬送路である。
The
載置台42の上に複数枚の原稿Mを載置することにより、複数枚の原稿Mを一度に処理することができる。自動原稿送り装置41を用いて原稿Mを読み込む場合、ピックアップローラ43は、載置台42の上に載置された原稿Mを1枚ずつ原稿搬送路45内に引き出し、原稿Mを搬送ローラ44aと搬送ローラ44bとに送る。搬送ローラ44aと搬送ローラ44bとは原稿Mを引き出し、原稿Mが読取位置Qを通過するときに、画像読取部20は、原稿Mを読み取る。
By placing a plurality of documents M on the mounting table 42, a plurality of documents M can be processed at a time. When reading the document M using the
図6を参照して説明したように、画像読取装置40は、複数枚の原稿Mを一度に処理することができるため大変便利である。しかし複数の原稿Mを一度に取り扱う場合、画像読取を望まない白紙が原稿Mに混入するおそれが増加する。そのため本発明の白紙検出の効果がより顕著になる。
As described with reference to FIG. 6, the
[画像形成装置]
図7を参照して本発明による画像形成装置50の実施形態を説明する。図7は、本発明の実施形態に係る画像形成装置50を示す模式図である。画像形成装置50は、画像読取部20と制御部30と自動原稿送り装置41と印刷部57とを備える。画像形成装置50は、印刷部57を更に有する点を除いて図6を参照して説明した画像読取装置40と同様な構成を有するため、重複部分については説明を省略する。
[Image forming apparatus]
An embodiment of the
印刷部57は、感光ドラム51と現像部52と転写部53と給紙部54と搬送ベルト55と排紙部56とを有する。印刷部57は、画像読取部20の下方に設けられる。印刷部57は、画像読取部20で読み取った原稿Mを印刷する。原稿Mを印刷する場合、まず感光ドラム51を帯電器(図示せず)により帯電させる。その後、露光部(図示せず)は、帯電された感光ドラム51の表面に、入力画像に基づいてレーザーを照射し、静電潜像を形成する。その後、現像部52は静電潜像にトナーを付着させてトナー像を形成する。その後、転写部53は、現像部52で形成されたトナー像を給紙部54から搬送された用紙に転写する。その後、転写された用紙は搬送ベルト55により搬送され、排紙部56に排紙される。
The printing unit 57 includes a
図7を参照して説明したように、画像形成装置50は、画像読取部20で読み取った原稿Mを印刷部57で印刷することができる。なお、画像形成装置50は、図2〜図5を参照して説明した白紙画像を除いた入力画像に対応する原稿を印刷することができる。したがって、白紙の原稿を間違って印刷することを抑制することができる。
As described with reference to FIG. 7, the
[画像読取方法の実施形態2]
図8、図9、図10および図11を参照して本発明による画像読取装置10の他の実施形態を説明する。図8および図9は、本発明の他の実施形態に係る画像読取装置10の動作を示すフローチャートである。図10は、主走査方向非白画素カウント値を示す模式図であり、図11は、副走査方向非白画素カウント値を示す模式図である。図2および図3のフローチャートを用いた説明と重複する内容については、詳細な説明を省略する。
[Second Embodiment of Image Reading Method]
Another embodiment of the
図8と図9に示されたS200〜S240によって入力画像が白紙画像であるか否かを判定する白紙画像判定工程が実行される。まず、S200にて、画像読取部20は、原稿Mを読み取り入力画像を取得する(図2に示されたS100に対応)。図2および図3のフローチャートと同様に、原稿Mを読み取って得られた入力画像の一例は、図4(a)で示す入力画像Sと、図4(b)で示す入力画像Tである。
A blank image determination process for determining whether or not the input image is a blank image is performed in S200 to S240 shown in FIGS. First, in S200, the
次に白紙画像判定工程はS202に進み、制御部30は、非白画素判定を行う(図2に示されたS102に対応)。
Next, the blank paper image determination process proceeds to S202, and the
次に、白紙画像判定工程はS204に進み、非白画素判定を行った画素が非白画素で無い場合(S204:N)、白紙画像判定工程はS212に進む。非白画素判定を行った画素が非白画素である場合(S204:Y)、白紙画像判定工程はS206に進む。 Next, the blank image determination process proceeds to S204, and if the pixel for which the non-white pixel determination has been performed is not a non-white pixel (S204: N), the blank image determination process proceeds to S212. If the pixel that has been subjected to the non-white pixel determination is a non-white pixel (S204: Y), the blank paper image determination step proceeds to S206.
S206では、ページ内非白画素カウント値をインクリメントする。ページ内非白画素カウント値は、入力画像全体で非白画素と判定された画素の数を示す。ページ内非白画素カウント値は、後述する入力画像が白紙画像であるか否かを判定するとき(図9に示されたS234)に用いられる。 In S206, the in-page non-white pixel count value is incremented. The in-page non-white pixel count value indicates the number of pixels determined to be non-white pixels in the entire input image. The in-page non-white pixel count value is used when determining whether or not an input image to be described later is a blank image (S234 shown in FIG. 9).
次に、白紙画像判定工程はS208に進み、制御部30は、主走査非白画素カウント値hcntをインクリメントし、主走査非白画素カウント値hcntをメモリ(RAM)に保持する。以下、図10を参照して主走査非白画素カウント値hcntについて説明する。図10は主走査非白画素カウント値hcntを示す模式図である。図10(a)は、入力画像の模式図である。図10(b)は、図10(a)に示された点線で囲まれたラインの拡大図である。図10(b)において、斜線で示した箇所は非白画素Nであり、白で示した箇所は白画素Wである。
Next, the blank image determination process proceeds to S208, and the
主走査非白画素カウント値hcntは、主走査方向(横方向)1ライン中で非白画素と判定された画素の数を示す。例えば、図10(b)の場合、1ライン分の非白画素の判定が終わったとき、主走査非白画素カウント値hcntは「8」である。主走査非白画素カウント値hcntは、主走査方向のラインのそれぞれに対応したメモリ(RAM)の領域に保持される。例えば、画像サイズが横7000×縦5000画素であれば、制御部30は、5000個の主走査非白画素カウント値hcntをメモリ(RAM)に保持する。
The main scanning non-white pixel count value hcnt indicates the number of pixels determined as non-white pixels in one line in the main scanning direction (horizontal direction). For example, in the case of FIG. 10B, when the determination of non-white pixels for one line is completed, the main scanning non-white pixel count value hcnt is “8”. The main scanning non-white pixel count value hcnt is held in a memory (RAM) area corresponding to each line in the main scanning direction. For example, if the image size is 7000 × 5000 pixels, the
S202に示された非白画素判定によって非白画素判定を行った画素が非白画素であると判定されると(S204:Y)、制御部30は、対応する主走査非白画素カウント値hcntをインクリメントし、主走査非白画素カウント値hcntをメモリ(RAM)に保持する(S208)。主走査非白画素カウント値hcntは、必ずしも主走査方向1ライン分の全ての画素数まで数えられる必要は無く、後述する図9に示されたS222の「各カウント値を閾値Thcntで2値化」するために必要と思われる値までカウントできればよい。例えば最大255までカウントする場合、必要なメモリ容量は、8bit×5000で済み、メモリの容量を削減できる。
When it is determined by the non-white pixel determination shown in S202 that the pixel for which the non-white pixel determination has been performed is a non-white pixel (S204: Y), the
S208が完了すると、次に白紙画像判定工程はS210に進み、制御部30は、副走査非白画素カウント値vcntをインクリメントし、副走査非白画素カウント値vcntをメモリ(RAM)に保持する。以下、図11を参照して副走査非白画素カウント値vcntについて説明する。図11は副走査非白画素カウント値vcntを示す模式図である。図11(a)は、入力画像の模式図である。図11(b)は、図11(a)で示された点線で囲まれたラインの拡大図である。図11(b)において、斜線で示した箇所は非白画素Nであり、白で示した箇所は白画素Wである。
When S208 is completed, the blank image determination process proceeds to S210, and the
副走査非白画素カウント値vcntは、副走査方向(縦方向)1ライン中で非白画素と判定された画素の数を示す。例えば、図11(b)の場合、1ライン分の非白画素の判定が終わったとき副走査非白画素カウント値vcntは「5」である。副走査非白画素カウント値vcntは、副走査方向のラインのそれぞれに対応したメモリ(RAM)の領域に保持される。例えば、画像サイズが横7000×縦5000画素であれば、制御部30は、7000個の副走査非白画素カウント値vcntをメモリ(RAM)に保持する。S202に示された非白画素判定で非白画素判定を行った画素が非白画素であると判定されると(S204:Y)、制御部30は、対応する副走査非白画素カウント値vcntをインクリメントし、副走査非白画素カウント値vcntをメモリ(RAM)に保持する(S210)。
The sub-scanning non-white pixel count value vcnt indicates the number of pixels determined as non-white pixels in one line in the sub-scanning direction (vertical direction). For example, in the case of FIG. 11B, the sub-scanning non-white pixel count value vcnt is “5” when the determination of non-white pixels for one line is completed. The sub-scanning non-white pixel count value vcnt is held in a memory (RAM) area corresponding to each line in the sub-scanning direction. For example, if the image size is 7000 × 5000 pixels, the
副走査非白画素カウント値vcntは、必ずしも副走査方向1ライン分の全ての画素数まで数えられる必要は無く、後述する図9に示されたS228の「各カウント値を閾値Tvcntで2値化」するために必要と思われる値までカウントできればよい。例えば最大255までカウントする場合、必要なメモリ容量は、8bit×7000で済み、メモリの容量を削減できる。 The sub-scanning non-white pixel count value vcnt does not necessarily have to be counted up to the total number of pixels for one line in the sub-scanning direction, and “each count value is binarized with a threshold value Tvcnt” in S228 shown in FIG. It is only necessary to be able to count to a value that seems to be necessary for For example, when counting up to 255, the required memory capacity is 8 bits × 7000, and the memory capacity can be reduced.
S210が完了すると、次に白紙画像判定工程はS212に進み、制御部30は、白画素判定を実施した画素の入力画像に対する位置がラインの終端か否かを判定する。白画素判定を実施した画素の入力画像に対する位置がラインの終端で無い場合(S212:N)、白紙画像判定工程はS214に進み、白画素判定を実施する画素の位置が次の画素(ここでは1つ右隣の画素)へ移動する(図2に示されたS104に対応)。白紙画像判定工程はS202に戻り、制御部30は、次の画素(ここでは1つ右隣の画素)に対して非白画素判定を行う。白画素判定を実施した画素の入力画像に対する位置がラインの終端である場合(S212:Y)、白紙画像判定工程はS216に進む。
When S210 is completed, the blank image determination process proceeds to S212, and the
S216では、制御部30は、白画素判定を実施した画素の入力画像に対する位置がページの終端か否かを判定する(図2に示されたS108に対応)。白画素判定を実施した画素の入力画像に対する位置がページの終端で無い場合(S216:N)、白紙画像判定工程はS218に進み、白画素判定を実施する画素の位置が次のラインへ移動する。そして白紙画像判定工程はS202に戻り、制御部30は、次のラインの先頭の画素に対して非白画素判定を行う。
In S216, the
S202からS218を繰りかえすことにより、制御部30は、入力画像の全ての画素に対して非白画素判定を行う。ページの全ての画素の非白画素判定が完了し、白画素判定を実施した画素の入力画像に対する位置がページの終端である場合(S216:Y)、白紙画像判定工程は図9に示されたS220に進む。ページの全ての画素の非白画素判定が完了すると、全ての主走査方向のラインに対応する主走査非白画素カウント値hcntが、主走査方向のラインのそれぞれに対応したメモリ(RAM)の領域に保持される。また、全ての副走査方向のラインに対応する副走査非白画素カウント値vcntが、副走査方向のラインのそれぞれに対応したメモリ(RAM)の領域に保持される。
By repeating S202 to S218, the
次に、白紙画像判定工程は図9に示されたS220に進み、制御部30は、メモリ(RAM)に保持された主走査非白画素カウント値hcntを読み出す。例えば、画像サイズが横7000×縦5000画素であれば、制御部30は、5000個の主走査非白画素カウント値hcntの値を読み出す。
Next, the blank image determination process proceeds to S220 shown in FIG. 9, and the
次に、白紙画像判定工程はS222に進み、制御部30は、各主走査ラインの主走査非白画素カウント値hcntを2値化する。制御部30は、各主走査ラインの主走査非白画素カウント値hcntと主走査カウント閾値Thcntとを比較して各主走査ラインの主走査非白画素カウント値hcntを2値化する。制御部30は、主走査カウント閾値Thcntよりも主走査非白画素カウント値hcntが大きければ「1」、大きくなければ「0」をメモリ(RAM)に上書きする。非白画素カウント値の2値化の結果が「1」である主走査ラインは、非白ラインであり、非白画素カウント値の2値化の結果が「0」である主走査ラインは、非白ラインでない。
Next, the blank page image determination process proceeds to S222, and the
上述したように、入力画像の主走査ラインを対象とした非白ラインの判定は、非白画素カウント値の2値化を行うことにより実施される。例えば図5(a)において、入力画像Sの主走査ラインを対象とした非白ラインの判定結果SHは、非白画素カウント値の2値化の結果を示している。入力画像Sの主走査ラインを対象とした非白ラインの判定結果SHにおいて斜線で示した箇所は、非白画素カウント値の2値化の結果が「1」である箇所、すなわち非白ラインを示している。一方、入力画像Sの主走査ラインを対象とした非白ラインの判定結果SHにおいて白で示した箇所は、非白画素カウント値の2値化の結果が「0」である箇所、すなわち非白ラインでないラインを示している。 As described above, the determination of the non-white line for the main scanning line of the input image is performed by binarizing the non-white pixel count value. For example, in FIG. 5A, the non-white line determination result SH for the main scanning line of the input image S indicates the binarization result of the non-white pixel count value. In the non-white line determination result SH for the main scanning line of the input image S, the hatched portion is a portion where the result of binarization of the non-white pixel count value is “1”, that is, a non-white line. Show. On the other hand, in the determination result SH of the non-white line for the main scanning line of the input image S, the portion shown in white is the portion where the binarization result of the non-white pixel count value is “0”, that is, non-white. Indicates a line that is not a line.
引き続き図9を参照して、白紙画像判定工程の説明を続ける。白紙画像判定工程は、S222からS224へ進み、制御部30は、非白画素カウント値の2値化の結果が「1」であるラインの主走査最大連続数Hmaxを検出する。入力画像が入力画像Sの場合、主走査最大連続数Hmaxは、主走査非白ライン群H1で示す箇所における副走査方向の非白ラインの連続数である。入力画像が入力画像Tの場合、主走査最大連続数Hmaxは、入力画像Sのノート罫線の長さ分の画素数と等しい数である。
With continuing reference to FIG. 9, the description of the blank image determination process will be continued. The blank image determination process proceeds from S222 to S224, and the
次に、白紙画像判定工程は、S226に進み、制御部30は、メモリ(RAM)に保持された副走査非白画素カウント値vcntを読み出す。例えば、画像サイズが横7000×縦5000画素であれば、制御部30は、7000個の副走査非白画素カウント値vcntの値を読み出す。
Next, the blank image determination process proceeds to S226, and the
次に、白紙画像判定工程は、S228に進み、制御部30は、各副走査ラインの副走査非白画素カウント値vcntを2値化する。制御部30は、各副走査ラインの副走査非白画素カウント値vcntと副走査カウント閾値Tvcntとを比較して各副走査ラインの副走査非白画素カウント値vcntを2値化する。制御部30は、副走査カウント閾値Tvcntより副走査非白画素カウント値vcntが大きければ「1」、大きくなければ「0」をメモリ(RAM)に上書きする。非白画素カウント値の2値化の結果が「1」の副走査ラインは、非白ラインであり、非白画素カウント値の2値化の結果が「0」の副走査ラインは、非白ラインでない。
Next, the blank image determination process proceeds to S228, and the
上述したように、入力画像の副走査ラインを対象とした非白ラインの判定は、非白画素カウント値の2値化を行うことにより実施される。例えば図5(a)において、入力画像Sの副走査ラインを対象とした非白ラインの非白画素カウント値の2値化の結果SVは、非白画素カウント値の2値化の結果を示している。入力画像Sの副走査ラインを対象とした非白ラインの判定結果SVにおいて斜線で示した箇所は、非白画素カウント値の2値化の結果が「1」である箇所、すなわち非白ラインを示している。一方、入力画像Sの副走査ラインを対象とした非白ラインの判定結果SVにおいて白で示した箇所は、非白画素カウント値の2値化の結果が「0」である箇所、すなわち非白ラインでないラインを示している。 As described above, the determination of the non-white line for the sub-scan line of the input image is performed by binarizing the non-white pixel count value. For example, in FIG. 5A, the binarization result SV of the non-white pixel count value of the non-white line for the sub-scan line of the input image S indicates the binarization result of the non-white pixel count value. ing. In the non-white line determination result SV for the sub-scan line of the input image S, the hatched portion indicates a portion where the binarization result of the non-white pixel count value is “1”, that is, a non-white line. Show. On the other hand, in the determination result SV of the non-white line for the sub-scan line of the input image S, the portion shown in white is a portion where the binarization result of the non-white pixel count value is “0”, that is, non-white. Indicates a line that is not a line.
引き続き図9を参照して、白紙画像判定工程の説明を続ける。白紙画像判定工程は、S228からS230へ進み、制御部30は、非白画素カウント値の2値化の結果が「1」であるラインの副走査最大連続数Vmaxを検出する。入力画像が入力画像Sの場合、副走査最大連続数Vmaxは、副走査最大連続数Vmaxは、副走査非白ライン群V1で示す箇所における主走査方向の非白ラインの連続数である。入力画像が入力画像Tの場合、副走査最大連続数Vmaxは、入力画像Sのノート罫線の幅分の画素数と等しい数である。
With continuing reference to FIG. 9, the description of the blank image determination process will be continued. The blank image determination process proceeds from S228 to S230, and the
次に、白紙画像判定工程はS232に進み、制御部30は、主走査最大連続数Hmaxと副走査最大連続数Vmaxとを比較し、主走査最大連続数Hmaxと副走査最大連続数Vmaxとのうち小さい方を最大連続数Nmaxとする(図3に示されたS120に対応)。
Next, the blank image determination step proceeds to S232, and the
次に、白紙画像判定工程はS234に進み、制御部30は、ページ内非白画素カウント値がページ閾値Tpageよりも大きいか否かを判定する。ページ内非白画素カウント値がページ閾値Tpageよりも大きい場合(S234:Y)、白紙画像判定工程はS236に進む。ページ内非白画素カウント値がページ閾値Tpageよりも大きくない場合(S234:N)、白紙画像判定工程はS240に進み、制御部30は、入力画像が白紙画像であると判定する。
Next, the blank image determination process proceeds to S234, and the
S236において、制御部30は、最大連続数Nmaxが幅閾値Twidthよりも大きいか否かを判定する。最大連続数Nmaxが幅閾値Twidthよりも大きい場合(S236:Y)、白紙画像判定工程はS238に進み、制御部30は、入力画像が白紙画像ではないと判定する。最大連続数Nmaxが幅閾値Twidthよりも大きくない場合(S236:N)、白紙画像判定工程はS240に進み、制御部30は、入力画像が白紙画像であると判定する。
In S236, the
以上、図8〜図11を参照してS200〜S240によって実行される白紙画像判定工程を説明した。 The blank image determination process executed in steps S200 to S240 has been described above with reference to FIGS.
図5および図8〜図11を参照して説明したように、画像読取装置10は、非白ラインであるか否かを判定する際に、主走査方向Xと副走査方向Yとのそれぞれに沿ったそれぞれのライン内に含まれる非白画素の数をカウントし(図8に示されたS208およびS210)、非白画素の数のカウント結果(主走査非白画素カウント値hcnt、副走査非白画素カウント値vcnt)と所定の閾値(主走査カウント閾値Thcnt、副走査カウント閾値Tvcnt)とを比較する(図9に示されたS222)。したがって、原稿Mや原稿台11などに付着したゴミなどの異物に起因する入力画像の汚れ(ノイズ)があった場合でも、所定の閾値(主走査カウント閾値Thcnt、副走査カウント閾値Tvcnt)の設定により白ラインであると判定することができる。その結果、入力画像の汚れ(ノイズ)があった場合に、白紙画像である入力画像を誤って白紙画像ではないと誤判定することを抑制することができる。
As described with reference to FIGS. 5 and 8 to 11, the
また、制御部30は、入力画像のページ内非白画素をカウントすることにより、ページ内の非白画素カウント値を求め(図8に示されたS206)、ページ内非白画素カウント値と所定の閾値(ページ閾値Tpage)とを比較することにより、入力画像が白紙画像であるか否かを判定する(図9に示されたS234)。したがって、原稿Mや原稿台11などに付着したゴミなどの異物に起因する入力画像の汚れ(ノイズ)があった場合でも、所定の閾値(ページ閾値Tpage)の設定により入力画像を白紙画像と判定することができる。また、図9に示されたS236の判定の前に、ページ内の非白画素の数が少ない入力画像を白紙画像と判定することができる。
Further, the
[画像読取方法の実施形態3]
図12〜図14を参照して本発明による画像読取装置10の更に他の実施形態を説明する。図12〜図14は、本発明の更に他の実施形態に係る画像読取装置10の動作を示すフローチャートである。図2および図3ならびに図8および図9に示されたフローチャートを用いた説明と重複する内容については詳細な説明を省略する。
[Embodiment 3 of Image Reading Method]
Still another embodiment of the
図12に示されたS300〜S314は、図8に示されたS200〜S214に対応する。S300において、画像読取部20は、原稿Mを読み取り入力画像を取得する(図8に示されたS200に対応)。その後、S302において制御部30は非白画素判定を行う(図8に示されたS202に対応)。非白画素判定を行った画素が非白画素であれば(S304:Y)(図8に示されたS204:Yに対応)、S306において制御部30はページ内非白画素カウント値をインクリメントし(図8に示されたS206に対応)、S308において制御部30は主走査非白画素カウント値hcntをインクリメントし、S310において制御部30は副走査非白画素カウント値vcntをインクリメントし、副走査非白画素カウント値vcntをメモリに保持する(図8に示されたS210に対応)。非白画素判定を実施した画素の入力画像に対する位置がラインの終端でない場合(S312:N)、白紙画像判定工程はS314に進み、白画素判定を実施する画素の位置が次の画素へ移動する。白紙画像判定工程はS302に戻る。S302〜S314を繰り返すことにより制御部30は1ライン分の非白画素判定を行う。非白画素判定を実施した画素の入力画像に対する位置がラインの終端である場合(S312:Y)、白紙画像判定工程は図13に示されたS316に進む。
S300 to S314 illustrated in FIG. 12 correspond to S200 to S214 illustrated in FIG. In S300, the
図13に示されたS316では、制御部30は、主走査ラインの主走査非白画素カウント値hcntを2値化する。例えば制御部30は、主走査非白画素カウント値hcntと主走査カウント閾値Thcntとを比較して主走査ラインの主走査非白画素カウント値hcntを2値化する。制御部30は、主走査カウント閾値Thcntよりも主走査非白画素カウント値hcntが大きければ「1」、大きくなければ「0」とする。
In S316 illustrated in FIG. 13, the
次に、白紙画像判定工程はS318に進み、制御部30は、2値化の結果が「1」であるか否かを判定する。2値化の結果が「1」で無い場合(S318:N)、白紙画像判定工程はS322に進み、制御部30は、連続数カウンタをリセットする。2値化の結果が「1」である場合(S318:Y)、白紙画像判定工程はS320に進み、制御部30は、連続数カウンタをインクリメントする。
Next, the blank image determination process proceeds to S318, and the
S320が完了すると白紙画像判定工程はS324に進み、制御部30は、主走査非白ラインの連続数が最大値Hmaxを超えていれば最大値Hmaxを更新する。主走査非白ラインの連続数が最大値Hmaxを超えていなければ最大値Hmaxは変化しない。連続数カウンタの値の初期値は「0」であり、最大値Hmaxの初期値は「0」である。
When S320 is completed, the blank image determination process proceeds to S324, and the
図5に示された入力画像Sの場合、最初連続数カウンタの値は「0」であり、最大値Hmaxは「0」である。最初のラインから主走査非白ライン群H1までは2値化の結果が「0」であるので、連続数カウンタの値は「0」のままであり、最大値Hmaxも「0」のままである。2値化の結果が「1」である主走査非白ライン群H1の領域の最初のラインに2値化の処理が到達すると、制御部30は、連続数のカウンタを1ライン毎にインクリメントし、最大値Hmaxを1ライン毎に更新する。主走査非白ライン群H1の領域の最後のラインまで、制御部30は、連続数カウンタのインクリメントと最大値Hmaxの更新を繰り返し実行する。2値化の処理が主走査非白ライン群H1の領域を過ぎると、2値化の結果が「0」となり、制御部30は、連続数カウンタをリセットし連続数カウンタの値は「0」となる。再び2値化の結果が「1」である主走査非白ライン群H2の領域の最初のラインに2値化の処理が到達すると、制御部30は、再び連続数カウンタを1ライン毎にインクリメントする。主走査非白ライン群H2の領域の最後のラインまで、制御部30は、連続数カウンタのインクリメントを繰り返す。しかし、連続数カウンタの値は最大値Hmaxを超えないため、制御部30は、最大値Hmaxを更新しない。最終ラインまで処理が完了すると、最終的な最大値Hmaxが決定する。
In the case of the input image S shown in FIG. 5, the value of the initial continuous number counter is “0”, and the maximum value Hmax is “0”. Since the binarization result is “0” from the first line to the main scanning non-white line group H1, the value of the continuous number counter remains “0” and the maximum value Hmax also remains “0”. is there. When the binarization process reaches the first line in the region of the main scanning non-white line group H1 whose binarization result is “1”, the
引き続き図13を参照して、白紙画像判定工程を説明する。S322が完了またはS324が完了すると白紙画像判定工程はS326に進み、制御部30は、主走査非白画素カウント値hcntをクリアする。
With reference to FIG. 13, the blank image determination process will be described. When S322 is completed or S324 is completed, the blank image determination process proceeds to S326, and the
S326が完了すると白紙画像判定工程はS328に進み、制御部30は、非白画素判定を実施した画素の入力画像に対する位置がページの終端か否かを判定する(図2に示されたS108に対応)。非白画素判定を実施した画素の入力画像に対する位置がページの終端で無い場合(S328:N)、白紙画像判定工程はS330に進み、白画素判定を実施する画素の位置が次のラインへ移動する。そして白紙画像判定工程は図12に示されたS302に戻り、制御部30は、次のラインの先頭の画素に対して非白画素判定を行う。非白画素判定を実施した画素の入力画像に対する位置がページの終端である場合(S328:Y)、白紙画像判定工程は図14に示されたS332に進む。
When S326 is completed, the blank image determination process proceeds to S328, and the
図14に示されたS332において、制御部30は、メモリ(RAM)に保持された副走査非白画素カウント値vcntを読み出す(図9に示されたS226に対応)。例えば、画像サイズが横7000×縦5000画素であれば、制御部30は、7000個の副走査非白画素カウント値vcntの値を読み出す。
In S332 illustrated in FIG. 14, the
次に、白紙画像判定工程がS334に進み、制御部30は、各副走査ラインの副走査非白画素カウント値vcntを2値化する。制御部30は、各副走査ラインの副走査非白画素カウント値vcntと副走査カウント閾値Tvcntとを比較して各副走査ラインの副走査非白画素カウント値vcntを2値化する。制御部30は、副走査カウント閾値Tvcntよりも副走査非白画素カウント値vcntが大きければ「1」、大きくなければ「0」をメモリ(RAM)に上書きする(図9に示されたS228に対応)。
Next, the blank page image determination process proceeds to S334, and the
次に、白紙画像判定工程はS336へ進み、制御部30は、非白画素カウント値の2値化の結果が「1」であるラインの副走査最大連続数Vmaxを検出する(図9のS230に対応)。
Next, the blank image determination process proceeds to S336, and the
次に、白紙画像判定工程はS338に進み、制御部30は、主走査最大連続数Hmaxと副走査最大連続数Vmaxとを比較し、主走査最大連続数Hmaxと副走査最大連続数Vmaxとのうち小さい方を最大連続数Nmaxとする(図3に示されたS120に対応)。
Next, the blank image determination step proceeds to S338, and the
次に、白紙画像判定工程はS340に進み、制御部30は、ページ内非白画素カウント値がページ閾値Tpageよりも大きいか否かを判定する(図9に示されたS234に対応)。最大連続数Nmaxがページ閾値Tpageよりも大きい場合(S340:Y)、白紙画像判定工程はS344に進む。ページ内非白画素カウント値がページ閾値Tpageよりも大きくない場合(S340:N)、白紙画像判定工程はS346に進み、制御部30は、入力画像が白紙画像であると判定する(図9に示されたS240に対応)。
Next, the blank image determination process proceeds to S340, and the
S342において、制御部30は、最大連続数Nmaxが幅閾値Twidthよりも大きいか否かを判定する(図9に示されたS236に対応)。最大連続数Nmaxが幅閾値Twidthよりも大きい場合(S342:Y)、白紙画像判定工程はS344に進み、制御部30は、入力画像が白紙画像ではないと判定する。最大連続数Nmaxが幅閾値Twidthよりも大きくない場合(S342:N)、白紙画像判定工程はS346に進み、制御部30は、入力画像が白紙画像であると判定する。
In S342, the
図13に示されたS316〜S326を参照して説明したように、制御部30は、主走査方向1ラインごとに主走査非白画素カウント値の2値化および主走査非白ラインの連続数の検出を行い、主走査最大連続数を更新していく。したがって、主走査非白画素カウント値をメモリに保持しておく必要が無い。その結果、メモリを削減することができる。
As described with reference to S316 to S326 shown in FIG. 13, the
図15は、ヘッダー付きの入力画像Uの一例を示す模式図である。入力画像Uは、右上のヘッダー部分に、「No.」を示すデータや「Date」を示すデータ等の文字を示すデータを含んでいる。入力画像Uを白紙画像として検出するためには、「No.」や「Date」等の文字を示すデータの幅分の画素よりも、幅閾値Twidthを大きく設定すればよい。もしくは、ヘッダー部分を除くエリアのみで、白紙画像であるか否かを判定するようにしてもよい。 FIG. 15 is a schematic diagram illustrating an example of an input image U with a header. The input image U includes data indicating characters such as data indicating “No.” and data indicating “Date” in the upper right header portion. In order to detect the input image U as a blank image, the width threshold value Twidth may be set larger than the pixels corresponding to the width of the data indicating characters such as “No.” and “Date”. Alternatively, it may be determined whether or not the image is a blank image only in the area excluding the header portion.
本発明の画像読取装置は、白紙検出機能を備えた画像読取装置に好適に用いられる。 The image reading apparatus of the present invention is suitably used for an image reading apparatus having a blank sheet detection function.
M 原稿
S、T、U 入力画像
X 主走査方向
Y 副走査方向
N 非白画素
W 白画素
SH、TH 主走査ラインの非白ラインの判定結果
SV、TV 副走査ラインの非白ラインの判定結果
H1、H2 主走査非白ライン群
V1、V2、V3 副走査非白ライン群
hcnt 主走査非白画素カウント値
vcnt 副走査非白画素カウント値
Hmax 主走査最大連続数
Vmax 副走査最大連続数
Nmax 最大連続数
Tw 非白画素判定閾値
Thcnt 主走査カウント閾値
Tvcnt 副走査カウント閾値
Tpage ページ閾値
Twidth 幅閾値
10 画像読取装置
20 画像読取部
21 光源
23a、23b、23c 反射ミラー
24a 第1キャリッジ
24b 第2キャリッジ
25 レンズ
26 光学系
27 撮像部
30 制御部
41 自動原稿送り装置
42 載置台
43 ピックアップローラ
44a、44b 搬送ローラ
45 原稿搬送路
46 排紙台
51 感光ドラム
52 現像部
53 転写部
54 給紙部
55 搬送ベルト
56 排紙部
57 印刷部
M Original S, T, U Input image X Main scanning direction Y Sub scanning direction N Non-white pixel W White pixel SH, TH Non-white line determination result SV of main scanning line, Non-white line determination result of TV sub-scanning line H1, H2 Main scan non-white line group V1, V2, V3 Sub-scan non-white line group hcnt Main-scan non-white pixel count value vcnt Sub-scan non-white pixel count value Hmax Main-scan maximum continuous number Vmax Sub-scan maximum continuous number Nmax Maximum Continuous number Tw Non-white pixel determination threshold Thcnt Main scanning count threshold Tvcnt Sub scanning count threshold Tpage Page threshold
Claims (11)
制御部と
を備え、
前記入力画像は前記原稿の主走査方向と副走査方向とに沿って配列される複数の画素によって形成され、
前記制御部は、
前記主走査方向の非白ラインの連続数の最大値である主走査最大連続数と前記副走査方向の非白ラインの連続数の最大値である副走査最大連続数とに基づいて、前記入力画像が白紙画像であるか否かを判定する、画像読取装置。 An image reading unit that reads an original and obtains an input image;
A control unit,
The input image is formed by a plurality of pixels arranged along the main scanning direction and the sub-scanning direction of the document,
The controller is
The input based on a maximum main scanning number of continuous non-white lines in the main scanning direction and a maximum sub scanning number of continuous non-white lines in the sub-scanning direction. An image reading apparatus that determines whether an image is a blank image.
前記主走査最大連続数および前記副走査最大連続数のうちの小さい方の値と所定の閾値とを比較する、請求項1に記載の画像読取装置。 The control unit determines whether or not the input image is a blank image.
The image reading apparatus according to claim 1, wherein a smaller value of the maximum number of continuous main scans and the maximum number of continuous subscans is compared with a predetermined threshold.
前記入力画像の前記複数の画素のそれぞれが非白画素か否かを判定し、
前記主走査方向と前記副走査方向とのそれぞれに沿ったそれぞれのラインが、前記非白画素と判定された少なくとも1つの画素を含む非白ラインであるか否かを判定し、
前記非白ラインの連続数をカウントすることにより、前記主走査最大連続数と前記副走査最大連続数とを算出する、請求項1または請求項2に記載の画像読取装置。 The controller is
Determining whether each of the plurality of pixels of the input image is a non-white pixel;
Determining whether each line along each of the main scanning direction and the sub-scanning direction is a non-white line including at least one pixel determined to be the non-white pixel;
The image reading apparatus according to claim 1, wherein the main scanning maximum continuous number and the sub-scanning maximum continuous number are calculated by counting the number of continuous non-white lines.
前記主走査方向と前記副走査方向とのそれぞれに沿ったそれぞれのライン内に含まれる前記非白画素の数をカウントし、
前記非白画素の数のカウント結果と所定の閾値とを比較する、請求項3に記載の画像読取装置。 When determining whether the control unit is the non-white line,
Counting the number of non-white pixels included in each line along each of the main scanning direction and the sub-scanning direction;
The image reading apparatus according to claim 3, wherein the count result of the number of non-white pixels is compared with a predetermined threshold value.
前記入力画像の前記複数の画素のそれぞれの濃度データまたは輝度データと、所定の閾値とを比較する、請求項3または請求項4に記載の画像読取装置。 When the controller determines whether each of the plurality of pixels is the non-white pixel,
The image reading apparatus according to claim 3, wherein density data or luminance data of each of the plurality of pixels of the input image is compared with a predetermined threshold value.
前記主走査方向1ラインごとに前記非白画素の数のカウント結果と所定の閾値とを比較することにより、前記主走査方向に沿ったそれぞれのラインが、前記非白ラインであるか否かを判定した結果、
前記主走査方向に沿ったそれぞれのラインを前記非白ラインであると判定した場合、連続数カウンタをインクリメントし、前記非白ラインでないと判定した場合、前記連続数カウンタをリセットする、請求項3から請求項5のうちのいずれか1項に記載の画像読取装置。 The controller is
By comparing the count result of the number of non-white pixels for each line in the main scanning direction with a predetermined threshold value, it is determined whether or not each line along the main scanning direction is the non-white line. Judgment result,
The continuous number counter is incremented when it is determined that each line along the main scanning direction is the non-white line, and the continuous number counter is reset when it is determined that the line is not the non-white line. The image reading apparatus according to claim 1.
前記主走査方向の非白ラインの連続数の最大値である主走査最大連続数と前記副走査方向の非白ラインの連続数の最大値である副走査最大連続数とに基づいて、前記入力画像が白紙画像であるか否かを判定する白紙画像判定工程と
を包含する、画像読取方法。 An image reading step of reading an original to obtain an input image formed by a plurality of pixels arranged along the main scanning direction and the sub-scanning direction;
The input based on a maximum main scanning number of continuous non-white lines in the main scanning direction and a maximum sub scanning number of continuous non-white lines in the sub-scanning direction. A blank image determination step of determining whether or not the image is a blank image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013014591A JP5883805B2 (en) | 2013-01-29 | 2013-01-29 | Image reading apparatus, image forming apparatus, and image reading method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013014591A JP5883805B2 (en) | 2013-01-29 | 2013-01-29 | Image reading apparatus, image forming apparatus, and image reading method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014146981A true JP2014146981A (en) | 2014-08-14 |
JP5883805B2 JP5883805B2 (en) | 2016-03-15 |
Family
ID=51426903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013014591A Active JP5883805B2 (en) | 2013-01-29 | 2013-01-29 | Image reading apparatus, image forming apparatus, and image reading method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5883805B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10375261B2 (en) | 2016-12-02 | 2019-08-06 | Kyocera Document Solutions, Inc. | Image scanning apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61114651A (en) * | 1984-11-09 | 1986-06-02 | Fujitsu Ltd | Facsimile equipment |
JPH10229484A (en) * | 1997-02-12 | 1998-08-25 | Oki Data:Kk | Image reader |
JP2010068227A (en) * | 2008-09-10 | 2010-03-25 | Ricoh Co Ltd | Image processor and image processing method |
JP2012209714A (en) * | 2011-03-29 | 2012-10-25 | Brother Ind Ltd | Image reader |
-
2013
- 2013-01-29 JP JP2013014591A patent/JP5883805B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61114651A (en) * | 1984-11-09 | 1986-06-02 | Fujitsu Ltd | Facsimile equipment |
JPH10229484A (en) * | 1997-02-12 | 1998-08-25 | Oki Data:Kk | Image reader |
JP2010068227A (en) * | 2008-09-10 | 2010-03-25 | Ricoh Co Ltd | Image processor and image processing method |
JP2012209714A (en) * | 2011-03-29 | 2012-10-25 | Brother Ind Ltd | Image reader |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10375261B2 (en) | 2016-12-02 | 2019-08-06 | Kyocera Document Solutions, Inc. | Image scanning apparatus |
Also Published As
Publication number | Publication date |
---|---|
JP5883805B2 (en) | 2016-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10356252B2 (en) | Image reading apparatus, image forming apparatus, image reading method, and non-transitory storage medium that generate abnormal pixel information based on received information | |
JP6849322B2 (en) | Image reader, image forming device | |
US8018631B2 (en) | Original reading device and image forming apparatus | |
JP3695163B2 (en) | Image forming apparatus | |
JP6338469B2 (en) | Image processing apparatus and image processing method | |
JP2011151687A (en) | Image reading apparatus, method of controlling the same, and program | |
JP2012054816A (en) | Image reading device, image formation device, and shading correction method | |
JP2015211446A (en) | Image processing device, image reading device, image processing method and image processing program | |
JP3706800B2 (en) | Image processing system, method, and storage medium | |
US8947749B2 (en) | Image reading apparatus, control method of image reading apparatus, and storage medium | |
JP5883805B2 (en) | Image reading apparatus, image forming apparatus, and image reading method | |
JP2015198327A (en) | Image reading device, image reading method, and computer program | |
US9531912B2 (en) | Image processing apparatus and image processing method | |
JP3671682B2 (en) | Image recognition device | |
JP6123540B2 (en) | Processing apparatus, document reading apparatus, and image forming apparatus | |
US10477071B2 (en) | Image processing apparatus and image processing method in which color and monochrome images are distinguished | |
JP2008193553A (en) | Original reader | |
JP2021100220A (en) | Image processing device and image processing method | |
JP2011259008A (en) | Image reading device, image processing device, image reading method and program | |
JP2008028698A (en) | Image reading apparatus and image reading method | |
JP2017201755A (en) | Reading device | |
JP2017092561A (en) | Image reading device and image reading method | |
JP2020077959A (en) | Image reading device, image reading method, and program | |
JP2010245688A (en) | Document reader | |
JP2015133598A (en) | Image reading apparatus, and control method and program of the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20141218 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150930 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20151104 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20151217 |
|
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: 20160112 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160208 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5883805 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |