JP3758426B2 - Image reading device - Google Patents

Image reading device Download PDF

Info

Publication number
JP3758426B2
JP3758426B2 JP20521099A JP20521099A JP3758426B2 JP 3758426 B2 JP3758426 B2 JP 3758426B2 JP 20521099 A JP20521099 A JP 20521099A JP 20521099 A JP20521099 A JP 20521099A JP 3758426 B2 JP3758426 B2 JP 3758426B2
Authority
JP
Japan
Prior art keywords
document
scanning direction
sub
main scanning
image information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP20521099A
Other languages
Japanese (ja)
Other versions
JP2001036695A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP20521099A priority Critical patent/JP3758426B2/en
Publication of JP2001036695A publication Critical patent/JP2001036695A/en
Application granted granted Critical
Publication of JP3758426B2 publication Critical patent/JP3758426B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Holders For Sensitive Materials And Originals (AREA)
  • Exposure Or Original Feeding In Electrophotography (AREA)
  • Control Or Security For Electrophotography (AREA)
  • Facsimiles In General (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、原稿サイズを検出する画像読取装置に関する。
【0002】
【従来の技術】
従来の複写機等の画像読取装置では、非定形原稿サイズの検知を行うために、原稿読取の本走査の前に予備走査を行い、画像情報を読み取ることで原稿の主走査および副走査方向のサイズを検出していた。このとき、原稿と原稿押え面とのコントラストを十分に確保して検出精度を上げるために、原稿押え面を鏡面あるいは黒色に着色していた。このため、パンチ穴等の穴が空いた原稿では、その穴の部分が黒く再現されたり、また、原稿がスキューして載置されると原稿の周囲の余白が黒く再現されてしまう。また、透過性の高いOHP等の原稿では、原稿押え面の色の影響により、地肌がかぶり気味になる。このような穴の空いた原稿や透過性の高い原稿について良好な読取画像を得るためには、原稿背面に白紙を置く等の対応が必要であり、操作性を悪化させていた。
【0003】
この点に鑑み、従来から原稿押え面を白地とするための種々の提案がなされている。例えば、特開平3−53272では、着色された帯状パターンを原稿押え面の主走査および副走査方向に1本ずつ設け、載置された原稿によりこれらの帯状パターンが隠されている領域を予備走査で検出し、原稿サイズを判断する方式が提案されている。また、特開平9−65063では、着色された帯状パターンを副走査方向のみに設け、載置された原稿により帯状バターンが隠されている領域を予備走査で検出し、原稿サイズ(副走査方向のサイズ)を判断する方式が提案されている。
【0004】
【発明が解決しようとする課題】
しかしながら、上述した特開平3−53272の方法では、主走査方向にも帯状パターンを設けることが必要となるため、ベルト状原稿搬送部材を持つ自動原稿搬送装置を備えた画像読取装置には、適用することが困難である。適用させるためには、ベルト状原稿搬送部材の位置制御を行う必要が生じ、コストアップにつながるという問題が生じる。また、上述した特開平9−65063の方法では、原稿の副走査方向の長さを検出することは可能であるが、主走査方向の長さを検出する手段を持たないため、縦と横のサイズの相関がない非定形の原稿サイズを検出することはできないという問題があった。
【0005】
また、いずれの従来技術においても、原稿サイズを検出するためには、定形サイズの原稿に対しても予備走査が行われるので、時間がかかるとともに、1本の帯状パターンの抽出により原稿サイズを判断するため、類似色の画像情報が原稿端にある場合には、誤判定を起こす可能性があるという問題があった。
【0006】
この発明は上述した事情に鑑みてなされたもので、原稿サイズ検出時間を短縮することができ、また、ベルト状原稿搬送部材を持つ自動原稿搬送装置に適用することができ、さらに、安価な構成で、非定形サイズであっても高精度に原稿サイズを検出することができる画像読取装置を提供することを目的としている。
【0007】
【課題を解決するための手段】
上述した問題点を解決するために、発明の画像読取装置は、原稿が載置される原稿台と、前記原稿台の所定位置に原稿を搬送して載置するとともに、前記原稿を覆うベルト状搬送部材を備え、少なくとも前記原稿台に載置された原稿によって遮蔽される位置に、前記ベルト状搬送部材の周回にわたって形成された着色領域を有する原稿覆い手段と、前記原稿における主走査方向の画像情報を読み取る読取手段と、前記原稿が定形サイズであるか否かを判別する定形サイズ判別手段と、前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、前記定形サイズ判別手段により前記原稿が非定形サイズであると判別された場合、前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記着色領域の画像情報が含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、
前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段とを具備することを特徴とする。
るいは、本発明の画像読取装置は、原稿が載置される原稿台と、前記原稿台の所定位置に原稿を搬送して載置するとともに、前記原稿を覆うベルト状搬送部材を備え、少なくとも前記原稿台に載置された原稿によって遮蔽される位置の当該原稿に空けられたパンチ穴を覆わない範囲に、前記ベルト状搬送部材の周回にわたって形成された着色領域を有する原稿覆い手段と、前記原稿における主走査方向の画像情報を読み取る読取手段と、前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記着色領域の画像情報が含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段とを具備することを特徴とする。
るいは、本発明の画像読取装置は、原稿が載置される原稿台と、前記原稿台の所定位置に原稿を搬送して載置するとともに、前記原稿を覆うベルト状搬送部材を備え、少なくとも前記原稿台に載置された原稿によって遮蔽される位置の当該原稿の印字領域を覆わない範囲に、前記ベルト状搬送部材の周回にわたって形成された着色領域を有する原稿覆い手段と、前記原稿における主走査方向の画像情報を読み取る読取手段と、前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記着色領域の画像情報が含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段とを具備することを特徴とする。
この発明によれば、自動原稿搬送時にベルト状搬送部材が回転しても、常に、着色領域が原稿押え面に現れるので、着色領域の形成が容易で、コストを低く抑えつつ、原稿覆い手段の原稿押え面を白地にすることが可能になる。このため、パンチ穴等を持つ原稿や透過性の高い原稿についても良好な読取画像を得ることが可能となるとともに、安価に高精度で原稿サイズを検出することが可能となる。
【0008】
また、上述した問題点を解決するために、発明の画像読取装置は、原稿が載置される原稿台と、前記原稿台に対して開閉自在に設けられ、閉じた状態において前記原稿台に載置された原稿で遮蔽され、少なくとも原稿の副走査方向における対向する原稿端から現れるように形成された着色領域を有する原稿覆い手段と、前記原稿における主走査方向の画像情報を読み取る読取手段と、前記原稿が定形サイズであるか否かを判別する定形サイズ判別手段と、前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、前記定形サイズ判別手段により前記原稿が非定形サイズであると判別された場合、前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記着色領域の画像情報が含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段とを具備することを特徴とする。
この発明によれば、原稿覆い手段の原稿押え面を白地にすることが可能になるため、パンチ穴等を持つ原稿や透過性の高い原稿についても良好な読取画像を得ることが可能となるとともに、安価に非定形サイズの高精度な検出が可能となる。
【0009】
また、上述した問題点を解決するために、本発明の画像読取装置は、原稿が載置される原稿台と、前記原稿台に対して開閉自在に設けられるとともに、閉じた状態において前記原稿台に載置された原稿で遮蔽され、少なくとも原稿の副走査方向にわたって形成された複数の着色領域を有する原稿覆い手段と、前記原稿における主走査方向の画像情報を読み取る読取手段と、前記原稿が定形サイズであるか否かを判別する定形サイズ判別手段と、前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、前記定形サイズ判別手段により前記原稿が非定形サイズであると判別された場合、前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記複数の着色領域のパターンが含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段とを具備することを特徴とする。
あるいは、本発明の画像読取装置は、原稿が載置される原稿台と、前記原稿台に対して開閉自在に設けられるとともに、閉じた状態において前記原稿台に載置された原稿で遮蔽され、少なくとも原稿の副走査方向にわたって異なる幅または間隔で形成された複数の着色領域を有する原稿覆い手段と、前記原稿における主走査方向の画像情報を読み取る読取手段と、前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記複数の着色領域のパターンが含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段とを具備することを特徴とする。
の発明によれば、原稿覆い手段の原稿押え面を白地にすることが可能になるため、パンチ穴等を持つ原稿や透過性の高い原稿についても良好な読取画像を得ることが可能となるとともに、複数の着色領域を形成することにより、より高精度で原稿サイズを検出することが可能となる。
【0010】
【発明の実施の形態】
次に図面を参照してこの発明の実施形態について説明する。
A.第1実施形態
A−1.第1実施形態の構成
図1は、本発明の第1実施形態による画像読取装置の外観を示す斜視図である。図1において、画像読取装置1は、原稿を載置するためのプラテンガラス2、複数の着色領域3が形成された原稿押え面を持つプラテンカバー4、プラテンカバー4の開閉を検知する開閉センサ5、プラテンカバー4がプラテンガラス2に対して所定角度になったことを検知する角度センサ6、照明やミラーを積載し副走査方向に移動自在なキャリッジ7、原稿が定形サイズであるか否かを検知するAPSセンサ8、原稿の画像情報を光から電気信号に変換する光電変換部9等から構成される。
【0011】
また、図2は、本発明の第1実施形態による、ベルト方式の自動原稿搬送装置(ADF)を備える画像読取装置の外観を示す斜視図である。なお、図1に対応する部分には同一の符号を付けて説明を省略する。図2において、本実施形態では、画像読取装置10は、プラテンカバー3の代りにベルト方式の自動原稿搬送装置(ADF)11を搭載し、ベルト12の表面には、複数の着色領域3が周回させて連続的に形成されている。着色領域3を連続的に形成するのは、着色領域3の形成が容易になるとともに、ベルト12の位置制御を不要とし、コストを低く抑えることができる。また、着色領域3は、着色領域3の均一性を保ち、サイズ検知の精度を高めるために、ベルト12のシボや梨地の無い箇所に形成されることが好ましい。また、着色領域3は、自動原稿搬送装置(ADF)11の原稿搬送駆動用ローラ(図示略)から主走査方向に離れた位置に形成されてもよく、この場合、ローラに付着した汚れが搬送原稿を経てベルト12に付着することを防ぐことができる。
【0012】
図3は、本第1実施形態による画像読取装置の読取原理を説明する概念図である。なお、図1または図2に対応する部分には同一の符号を付けて説明を省略する。図において、キャリッジ7は、所定の走査速度で図示する副走査方向に移動するフルレートキャリッジ7aおよび半分の走査速度で図示する副走査方向に移動するハーフレートキャリッジ7bから構成される。フルレートキャリッジ7aは、プラテンガラス2上に載置された原稿Aの下面(以下、原稿面という)を照射する照明部15と、原稿面からの反射光をハーフレートキャリッジ7bに入光させる第一ミラー16とを備えている。また、ハーフレートキャリッジ7bは、原稿面からの反射光をレンズに導くための第2ミラー17a、第3ミラー17bを備えている。フルレートキャリッジ7aの照明部15は、原稿面を照射し、その反射光は第1ミラー16で反射され、ハーフレートキャリッジ7bの第2ミラー17aに入光する。第2ミラー17aに入光した反射光は、第3ミラー17bを経てレンズ18で結像する。レンズ18で結像された反射光は、光電変換素子19に入光する。光電変換素子19は、カラーCCD等であり、入光された反射光をRGBの3種類の電気信号へ変換する。キャリッジ7(フルレートキャリッジ7a,ハーフレートキャリッジ7b)は、上述したように、副走査方向に移動自在であり、原稿面を照射しながら副走査方向に移動することにより、原稿面の画像情報を読み取ることが可能になっている。
【0013】
図4は、本第1実施形態による画像読取装置のプラテンカバーを説明する図である。図4(a)は、プラテンカバー4を開き正面から見た正面図である。プラテンカバーの原稿押え面は、全体的に白色であるが、図4(a)に示すように、複数の着色領域3が原稿押え面上の副走査方向に連続的に形成されている。図4(b)は、プラテンカバー4を閉じ、プラテンガラス2と合わせた状態を示す透過図である。複数の着色領域3は、対面するプラテンガラス2のレジ位置(原稿載置基準点)Pから主走査方向に所定の範囲内に入るように形成されている。具体的には、原稿を綴じる際に空けられるパンチ穴、もしくは原稿内の印字領域に重ならない範囲に形成されている。このように、着色領域3がレジ位置P側の端部に位置するように形成することにより、透過性の高い原稿をカラーコピーする際に、原稿内情報に与える影響を低減することができる。
【0014】
複数の着色領域3は、各々、所定の幅d1〜d3を持ち、着色領域間に所定の間隔s1〜s3をあけて形成されている。このように、各着色領域3を所定の幅d1〜d3、各着色領域間の間隔をそれぞれ特定の間隔s1〜s3とすることで、副走査方向サイズ検知の際にその着色パターンと同じ原稿内情報を検出する確率が低減され、サイズ検知の精度が向上する。また、着色領域3の全幅は、プラテンカバー4の主走査方向へのずれを越える幅とすることで、プラテンカバー4の開閉で覆う位置がずれても、該ずれを許容することができる。また、複数の着色領域3は、特定の明度および色度を有する色材で形成されている。特定の明度および色度に着色することで、副走査方向サイズ検知の際に着色領域3と同じ色の原稿内情報を検出する確率が低減され、サイズ検知の精度が向上する。ここで、複数の着色領域3を黄色とするならば、該着色領域3は、白黒モードの原稿読取り時に検出されないので、原稿画像に影響しないという利点がある。また、着色領域3を鏡面とするならば、透過性の高い原稿を読取る際に裏写りの影響を低減することができるという利点がある。また、複数の着色領域3は、各々、異なった明度および色度を有する色材で形成されてもよい。それぞれの着色領域を異なる色にすることで、副走査方向サイズ検知の際に着色領域と同じ着色パターンの原稿内情報を検出する確率が低減され、サイズ検知の精度が向上する。上述した着色領域3は、図2に示すベルト方式の自動原稿搬送装置(ADF)10に適用する場合も同様である。
【0015】
図5は、本第1実施形態の全体構成を示すブロック図である。画像読取制御部20は、ROM21に記憶されている所定のプログラムに従って、画像読取装置の各ブロックを制御する。照明制御部22は、画像読取制御部20の命令に従って、照明部23のON/OFF動作を実施する。走査制御部24は、画像読取制御部20の命令に従って、ステッピングモータ25に走査手段駆動信号を送信して駆動することで、キャリッジ7を副走査方向へ移動させる。キャリッジ7の移動距離は、走査手段駆動信号のパルス数に比例する。光電変換部26は、入光した画像情報をRGBの3種類の電気信号に変換し、アナログ補正およびシェーディング補正部27へ送信する。アナログ補正およびシェーディング補正部27は、RGBの3種麺の電気信号に対して、AGC(自動ゲイン制御)、AOC(自動オフセット制御)等の処理を実施した後、A/D変換を実施し、アナログ値から多値情報へ変換するとともに、シェーディング補正を実施する。
【0016】
画像処理部28は、RGBの多値情報をL***変換し、画像情報を明度と色度からなるとする。また、画像処理部28は、図示しないユーザインターフェース部の指示で、着色領域3が形成されている所定領域の画像情報を除去する補正機能を有している。該補正機能を行うことで、透過性原稿をカラーコピーする際に生じる着色領域の裏写りを除去することができ、良好な読取画像を得ることができる。また、上記補正処理の使用は、ユーザが選択できるようにしてもよく、所定領域の画像情報の除去をユーザが決定することができ、原稿端部まで必要な原稿情報がある場合にその原稿情報を除去することを防ぐことができる。原稿サイズ検知部29は、上記L***の多値情報に従って、原稿の主走査方向および副走査方向の開始端・終了端を検出して記憶する。上述した光電変換部26から原稿サイズ検知部29まで伝達される画像情報は、画素単位の同期信号である画素同期信号、ライン単位の同期信号である主走査ライン同期信号にそれぞれ同期している。各センサ30は、前述した開閉センサ5、角度センサ6、APSセンサ8などである。
【0017】
図6は、上述した原稿サイズ検知部の内部構成を示すブロック図である。主走査方向のサイズ検知の際、画像処理部28は、L*の多値情報を主走査方向検知画素判定部35へ供給する。主走査方向検知画素判定部35は、L*の多値情報を、各画素毎に閾値記憶部38に記憶されている閾値と比較し、各画素毎に原稿領域の候補か原稿領域外の候補かの判定を行って、原稿領域であるか否かを示す2値化された情報を原稿端検出部37に供給する。また、副走査方向のサイズ検知の際、画像処理部28は、L***の多値情報を副走査方向検知ライン判定部36へ供給する。副走査方向検知ライン判定部36は、L***の多値情報と、閾値記憶部38に記憶されている閾値と比較し、該比較結果に基づいて、各ラインが原稿領域の候補か、原稿領域外の候補かの判定を行って、原稿領域であるか否かを示す2値化された情報を原稿端検出部37に供給する。
【0018】
原稿端検出部37は、主走査方向検知画素判定部35および副走査方向検知ライン判定部36から供給される2値化された情報から、ゴミ等の影響を除去するフィルタ処理を実施した後、主走査方向における原稿開始端および終了端、ならびに副走査方向における原稿開始端および終了端を検出する。検出結果記憶部39は、検出された結果(主走査方向における原稿開始端および終了端、ならびに副走査方向における原稿開始端および終了端)を記憶する。画像読取制御部20は、検出結果記憶部39に記憶された主走査方向の原稿開始端および終了端、ならびに副走査方向の原稿開始端および終了端を読み出し、これらに従って原稿サイズを判定する。
【0019】
図7は、主走査方向サイズ検知の際の画像読取位置を示す概念図である。読み取りは、レジ位置Pよりもプラテンガラス2側の原稿を認識できる位置で行われる。また、この位置をキャリッジ7のホームポジションHPとし、キャリッジ7は、常にこの位置に待機してコピー動作を待つこととする。これにより、主走査方向サイズ検知の際にキャリッジ7を移動する必要がなくなり、速やかにサイズ検知を行うことが可能となる。
【0020】
A−2.第1実施形態の動作
A−2−1.動作概要
次に、上述した第1実施形態の動作(原稿サイズ検知)について説明する。
まず、ユーザがプラテンカバー4を開き原稿Aをプラテンガラス2上に載置する。原稿Aを載置した後、プラテンカバー4を閉じる動作を行う。このとき、APSセンサ8による原稿検知と主走査方向のサイズ検知とを行う。APSセンサ8による原稿検知は、以下に説明する2段階で、APSセンサ8の出力を検出した後、所定の判断基準に基づいて、原稿Aが載置されているか否かを判断する。また、主走査方向のサイズ検知は、白色原稿のみならず、黒色原稿、黒ぷち原稿等、種々の原稿のサイズ検知に対応するため、以下に説明する2段階で、各々、主走査方向の原稿開始端および終了端を検出した後、所定の判断基準に基づいて、どちらの検出結果を用いるか判断する。
【0021】
まず、プラテンカバー4がプラテンガラス2に対して所定角度になったことが角度センサ6により検知されると、照明部15による照射が開始され、一定時間後に画像情報が読み取られる。ここで、白色原稿であれば、図8(a)に示すように、原稿領域に照射された光は反射されるが、原稿領域外に照射された光はほとんど反射されない。反射光は、光電変換部9で電気信号へ変換され、所定の閾値との比較により、原稿領域は白レベル、原稿領域外は黒レベルと判断される。つまり、黒レベルから白レベルに変わった位置が主走査方向の原稿開始端、白レベルから黒レベルに変わった位置が主走査方向の原稿終了端と判断することができる。また、このとき、APSセンサ8の出力(開時出力)が検出されて記憶される。
【0022】
次に、プラテンカバー4がプラテンガラス2に対して完全に閉じたことが開閉センサ5により検知されると、再び画像情報が読み取られる。ここで、黒色原稿であれぱ、図8(b)に示すように、原稿領域に照射された光は反射しないが、原稿領域外に照射された光はプラテンカバー4の原稿押え面によって反射される。反射光は、光電変換部9で電気信号へ変換され、閾値との比較により、原稿領域は黒レベル、原稿領域外は白レベルと判断される。つまり、白レベルから黒レベルに変わった位置が主走査方向の原稿開始端、黒レベルから白レベルに変わった位置が主走査方向の原稿終了端と判断することができる。ここで、原稿開始端および終了端の位置は、画素同期信号のパルス数を計数することで定量化できる。また、上記2段階で使用した閾値を、それぞれ違う値に設定することにより、閾値周辺の中間色レベルに対する検出精度を向上させることができる(後述)。また、このとき、APSセンサ8の出力(閉時出力)が検出されて記憶される。
【0023】
そして、照明部15による照射が終了すると、まず、上述した検出された2種類の主走査方向の原稿開始端および終了端のうち、所定の判断基準に基づいて、どちらの検出結果を用いるかを決定する(詳細は後述)。このようにして主走査方向の原稿開始端および終了端を検出する。次に、主走査方向の原稿開始端と終了端との差から主走査方向原稿長さを算出するとともに、上述したAPSセンサ8の開時出力と閉時出力との差に従って原稿の有無を判断するともに、APSセンサ8上に原稿がある場合には、図9に示すようなテーブルに当てはめ、定形サイズか非定形サイズか、もし定形サイズであるならば、どのサイズであるかを判断する。このようにして原稿のサイズを検知することができる。
【0024】
次に、ユーザがスタートボタン(図示略)を押すと、上述した処理により既に定形サイズであることが検知されている場合には、原稿サイズ検知処理を終了し、通常のコピー動作を実行する。一方、上述した処理により、非定形サイズであることが検知されている場合には、副走査方向のサイズ検知を行うための予備走査(プレスキャン)が実施される。予備走査によって読み取った画像情報のうち、着色領域3が形成されている主走査方向の所定領域について、各ラインにおいて、各々、着色領域3の着色パターンを検出したか否かを判定する。このとき、主走査方向の所定領域の全画素を閾値と比較することにより着色パターンを検出してもよいし、所定間隔の着目画素のみを閾値と比較して着色パターンを検出してもよい。後者の場合、図11(a)のように、着目画素位置を各着色領域3の内側の両端近傍と各着色領域3の外側の両端近傍とに設定することにより、処理すべき情報量を大幅に低減することができる。また、図11(b)のように、着色領域3の形成誤差やプラテンカバー4の取り付け誤差を考慮し、各着色領域3の中央と各着色領域間の中央とを着目画素位置としてもよい。このように、主走査方向の着目画素を各着色領域3と各着色領域3間の中央に設定することで、着色領域3の形成誤差やプラテンカバー4の取り付け誤差等のずれが生じても、正しく着色領域3を検出することが可能となる。また各着色領域3と各着色領域間の中央のみ検出するため、取り扱う情報量が大幅に低減できる。ここで比較される各画素は、色度または明度、もしくはその両方の閾値と比較されることにより、着色領域3と同等色かが判定される。副走査方向サイズ検知の際、画像情報の判定基準に色度または明度、もしくは両方を使用することにより、読取画素の色判定が正確に行われ、結果サイズ検知の精度を高めることができる。
【0025】
原稿領域では、図10に示すように、着色領域3が原稿Aによって隠されているために、その着色パターンを検出できない。逆に原稿領域外では、着色領域3が原稿Aによって隠されていないために、その着色パターンを検出できる。つまり、着色パターンが検出されなくなった位置が副走査方向の原稿開始端、着色領域3が検出され始めた位置が副走査方向の原稿終了端と判断することができる。原稿開始端および終了端の位置は、主走査ライン同期信号のパルス数を計数するか、走査手段駆動信号のパルス数を計数することで定量化できる。主走査ライン同期信号のパルス数または走査手段駆動信号のパルス数をカウントすることによって、副走査方向の原稿長さを検出することで、新たな原稿長検出手段を設ける必要がなく、既存の構成のまま実現できる。
【0026】
このようにして、副走査方向の原稿開始端および終了端が検出される。次に、副走査方向の原稿開始端と終了端との差から副走査方向原稿長さを算出する。このようにして、原稿が非定形であっても、上述した処理により既に算出されている主走査方向原稿長さ、および上記副走査方向原稿長さから、原稿のサイズを検知することができる。
【0027】
また、ユーザが図示しないユーザインターフェース部にて選択することにより、上記着色領域が形成されている所定領域の画像情報を除去する補正処理を実施することができる。これは、透過性の高い原稿をカラーモードで読取る際に裏写りする着色領域3を除去するためのものである。
【0028】
A−2−2.詳細な動作
次に、本第1実施形態による画像読取装置における自動原稿サイズ検知の実施例を、フローチャートを参照して説明する。ここでは、画像読取装置は、プラテンカバー4を装着し、レジ位置Pはコーナーレジとする。副走査方向サイズ検知時の着色パターン検出方式は、所定の判定領域内の全画素を閾値と比較・判定する方式とする。なお、以下の説明において用いる各種変数の一覧を図29および図30に示す。
【0029】
(1)メインルーチン
まず、図12に示すフローチャートを参照して原稿サイズ検知方式の全体の流れを説明する。まず、ステップSa1で、ユーザによる自動原稿サイズ選択モードの選択が実施される。なお、自動原稿サイズ選択モードを初期設定しておき、本モードの選択を省略しても構わない。ここで、自動原稿サイズ検知モードが選択されている場合には、ステップSa3へ進む。一方、選択されていない場合には、ステップSa2へ進み、ユーザにより入力された原稿サイズを後述する原稿サイズ判断ルーチンへ送るが、ここでは本発明の主旨から外れるため、説明を省略する。
【0030】
次に、ステップSa3では、ユーザが原稿Aを載置するためにプラテンカバー4を開け、プラテンガラス2に対するプラテンカバー4の角度が広がり、角度センサ6がオフとなるまで待機する。そして、ユーザが原稿Aを載置するためにプラテンカバー4を開け、角度センサ6がオフとなると、ステップSa4の定形サイズ検出ルーチンに移行する。該定形サイズ検出ルーチンでは、原稿Aが非定形であるか定形であるか、また、定形であれば、どの定形サイズに該当するかが判定される。なお、該定形サイズ検出ルーチンの詳細については後述する。次に、ステップSa5で、ユーザによりスタートボタンが押下されるまで待機する。そして、スタートボタンが押下されると、ステップSa7へ進む。一方、押下されなければ、ステップSa6へ進む。
【0031】
ステップSa6では、ステップSa5での待機中に、プラテンカバー4が開けられプラテンガラス2から所定角度に達すると、角度センサ6はオフとなり、ステップSa3へ戻る。この後、ステップSa3を経て、再び定形サイズ検出ルーチンSa4に移行する。一方、プラテンカバー4が閉じたままであれば、ステップSa5へ移行し、スタートボタンが押下されるまで待機する。
【0032】
次に、ステップSa7で、ステップSa4での判定結果に従って、定形サイズであるか否かを判断する。定形サイズであれば、この時点で原稿サイズ検知を終了する。一方、非定形サイズであれば、ステップSa8へ進む。ステップSa8で、原稿有無検知フラグF0が「1」であるか判断する。原稿有無検知フラグF0は、ステップSa4で原稿Aがプラテンガラス2上に載置されていると判断された場合に「1」にセットされるものである。原稿有無検知フラグF0が「1」でなければ、原稿Aが載置されていないと判断され、異常処理ルーチンSa9へ進み、異常発生(エラー)を通知する。
【0033】
一方、原稿有無検知フラグF0が「1」であれば、原稿Aが載置されていると判断され、ステップSa10へ進み、副走査方向原稿端検出ルーチンに移行する。該副走査方向原稿端検出ルーチンでは、副走査方向の原稿開始端および終了端が検出される。なお、該副走査方向原稿端検出ルーチンの詳細について後述する。次に、ステップSa11で、原稿サイズ判断ルーチンへ移行する。該原稿サイズ判断ルーチンでは、主走査方向の原稿開始端および終了端と、副走査方向の原稿開始端および終了端とに従って、原稿の各辺の長さを算出し、原稿サイズを検知する。なお、該原稿サイズ判断ルーチンの詳細については後述する。
【0034】
(2)定形サイズ検出ルーチン
次に、定形サイズ検出ルーチンの詳細を説明する。ここで、図13は、定形サイズ検出ルーチンを説明するためのフローチャートである。まず、ステップSb1で、角度センサがオンであるか否かを判断する。そして、ユーザがプラテンガラス2上に原稿Aを載置し、プラテンカバー4を閉じると、プラテンカバー4がプラテンガラス2に対して所定角度になった時点で、角度センサ6がオンとなるので、ステップSb2へ進む。ステップSb2では、所定の位置に待機しているキャリッジ7上の照明部により原稿面への照射を開始する。次に、ステップSb3で、その後、一定時間T1が経過するまで待機する。一定時間T1は、照射光量が安定するまでの時間である。そして、一定時間T1が経過すると、ステップSb4へ進み、開閉センサ5が閉じているか否かを判断する。ここで、プラテンカバー4が、一定時間T1が経過するまでの間に完全に閉じ、開閉センサ5が閉じたことを検知した場合には、ステップSb5の異常処理ルーチンへ移行する。したがって、一定時間T1は、プラテンカバー4の閉時間のばらつきと、照射光量が安定するまでの期間の兼ね合いで決定する必要がある。
【0035】
一方、開閉センサ5が閉じていなければ、ステップSb6の主走査方向開時エッジ検出ルーチンに移行する。該主走査方向開時エッジ検出ルーチンは、図8(a)に示すように、プラテンカバー4がまだ開いている状態で画像情報を読取り、その画像情報から主走査方向原稿端を検出するルーチンである。このとき、プラテンカバー4の浮きのために、原稿外領域では照射光が反射されず、光電変換素子9へは入光しない。したがって、原稿外領域は、黒レベルと判断される。なお、上記主走査方向開時エッジ検出ルーチンの詳細については後述する。次に、ステップSb7で、APSセンサ8の出力(開出力)を検出して記憶する。
【0036】
次に、ステップSb8で、プラテンカバー4が完全に閉じ、開閉センサ5が閉じたことを検知するまで待機する。そして、開閉センサ5が閉じると、ステップSb9へ進み、後述する主走査方向閉時エッジ検出ルーチンに移行する。該主走査方向閉時エッジ検出ルーチンは、図8(b)に示すように、プラテンカバー4が閉じた状態で画像情報を読取り、その画像情報から主走査方向原稿端を検出するルーチンである。このとき、プラテンカバー4が完全に閉じているために、原稿外領域でも照射光が反射され、光電変換素子9へ入光する。したがって、原稿外領域は、白レベルと判断される。次に、ステップSb10で、APSセンサ8の出力(閉出力)を検出して記憶する。その後、ステップSb11で、照明部15による照射を終了する。次に、ステップSb12で、後述する主走査方向エッジ検出ルーチンに移行する。該主走査方向エッジ検出ルーチンは、ステップSb6とステップSb9とで検出した2種類の主走査方向の原稿開始端および終了端から、正しい値に近いものを選択するルーチンである。ここで、正しい値とは、実際の原稿サイズより小さい原稿サイズであると誤検知することで、原稿内画像を欠落しない原稿サイズとなるような値という意味である。このルーチンで主走査方向の開始端および終了端を確定する。次に、ステップSb13で、定形サイズ判定ルーチンへ移行する。該定形サイズ判定ルーチンでは、確定された主走査方向の原稿開始端および終了端と、APSセンサ8の出力結果とに従って、原稿Aが定形であるか非定形であるか、さらに、定形であれば、その原稿サイズを特定する。なお、該定形サイズ判定ルーチンの詳細については後述する。
【0037】
(3)主走査方向開時エッジ検出ルーチン
次に、主走査方向開時エッジ検出ルーチンの詳細を説明する。ここで、図14および図15は、主走査方向開時エッジ検出ルーチンを説明するためのフローチャートである。まず、ステップSc1で、主走査方向の画素数をカウントするカウンタC1、原稿領域候補の連続検出回数を示すカウンタC4、原稿領域外候補の連続検出回数を示すカウンタC5をそれぞれリセットし、それぞれの値を「0」にする。次に、ステップSc2で、原稿開始端におけるカウント値を記憶するカウント記憶部XstartFS1および終了端におけるカウント値を記憶するカウント記憶部XendFS1を、各々、「0」、「FSmax」に初期設定する。「FSmax」は、主走査方向における画素数の最大値である。次に、ステップSc3で、カウント記憶部XstartFS1に最終データが記憶されたことを示すフラグFstartFS1、カウント記憶部XendFS1に最終データが記憶されたことを示すフラグFendFS1をそれぞれリセットし、それぞれの値を「0」にする。
【0038】
次に、ステップSc4で、次画素への移行を待つ。該移行のトリガは、画素同期信号の入力を検知することなどで実施する。トリガが入力されると、ステップSc5へ進み、カウンタC1、C4、C5をそれぞれ「1」ずつインクリメントする。次に、ステップSc6で、各画素判定ルーチンヘ移行する。該画素判定ルーチンでは、主走査方向の各画素と閾値とを比較し、各画素が原稿領域侯補であるか原稿領域外候補であるかを判定する。
【0039】
ここで、各画素判定ルーチンを詳細に説明する。ここで、図18は、各画素判定ルーチンを説明するためのフローチャートである。まず、ステップSe1で、画素の判定結果を示すフラグFthFSをリセットし、その値を「0」にする。次に、ステップSe2で、例えば図32に示すように、各画素の読取データL*を閾値THL*FS1と比較する。読取データL*が閾値THL*FS1より小さけれぱ、ステップSe3へ進み、大きければ、本ルーチンを抜け、図14に示すステップSc7へ進む。原稿領域外では、プラテンカバー4の浮きのために、照射光が反射されず黒に近い明度になる。閾値THL*FS1は、図31に示すように、原稿領域外を確実に黒レベルと判断できる値で、かつ最も黒レベル寄りの値に設定する。これは、中間色に対するマージンを増やすためである。ゆえに、読取データL*が閾値THL*FS1より小さいということは、原稿領域外の画素であると判断できる。ステップSe3では、画素の判定結果を示すフラグFthFSを「1」にする。これは、本画素が原稿領域外候補であることを示す。そして、本ルーチンを抜け、図14に示すステップSc7へ進む。
【0040】
図14のステップSc7では、フラグFthFSが「1」であるか判定する。フラグFthFSが「1(原稿領域外候補)」であれば、ステップSc8へ進む。フラグFthFSが「0(原稿領域候補)」であれぱ、図15に示すステップSc13へ移行する。ここでは、図36(c)に示すように、原稿がレジ位置Pから主走査方向へ若干離れて載置され、原稿領域外候補を検知したとすると、ステップSc8へ進む。ステップSc8では、原稿の開始端カウント記憶部XstartFS1に最終データが記憶されたことを示すフラグFstartFS1の値が「1」であるか判定する。フラグFstartFS1が「1」であれば、ステップSc9へ進む。フラグFstartFS1が「0」であれば、図15に示すステップSc12へ進む。現時点では、カウント記憶部XstartFS1に最終データは記憶されていないため、ステップSc12へ進む。ステップSc12では、原稿領域候補の連続検出回数を示すカウンタC4をリセットし、その値を「0」にする。次に、ステップSc18で、主走査方向の画素数をカウントするカウンタC1が主走査方向画素数最大値FSmaxと同じ値であるか判定する。同じ値であれば、ステップSc19へ進み、異なる値であれば、ステップSc4へ戻る。ここでは、最終端に達しておらず、異なる値であるため、ステップSc4へ戻る。
【0041】
以下、原稿領域候補を検知するまで、上述したループは繰り返される。そして、図36(c)に示すように、数画素後に原稿領域候補を検知すると、フラグFthFSが「1」となるので、ステップSc7から図15に示すステップSc13へ進む。ステップSc13では、カウント記憶部XstartFS1に最終データが記憶されたことを示すフラグFstartFS1の値が「1」であるか否かを判定する。フラグFstartFS1が「1」であれば、ステップSc17へ進む。一方、フラグFstartFS1が「0」であれば、ステップSc14へ進む。これは、開始端カウント記憶部XstartFS1に最終データが記憶された後、この後のステップSc14〜Sc16へと続く原稿開始端検出処理を省略するためである。現時点では、開始端カウント記憶部XstartFS1に最終データは記憶されていないので、ステップSc14へ進む。
【0042】
ステップSc14では、原稿領域候補の連続検出回数を示すカウンタC4の値が閾値THedgFS1と同じ値であるか否かを判定する。ここで、双方が同じ値であれば、ステップSc15へ進み、異なる値であれば、Sc17へ進む。これは、図32および図33、図36(c)に示すように、原稿領域候補が閾値THedgFS1の回数だけ連続して検出された場合に初めて原稿領域と認識するための処理であり、原稿領域外上のゴミ等を原稿開始端として誤検知しないようにするために付加してある。このため、閾値THedgFS1は、原稿領域外上に付着するゴミ等の大きさを考慮に入れ設定する必要がある。ここでは、カウンタC4の値は「1」であり、閾値THedgFS1より小さいとして、ステップSc17へ進む。ステップSc17では、原稿領域外候補の連続検出回数を示すカウンタC5をリセットし、その値を「0」にする。次に、ステップSc18で、上述したように、主走査方向の画素数をカウントするカウンタC1が主走査方向画素数最大値FSmaxと同じ値であるか否かを判定する。この場合、異なる値であるので、ステップSc4へ戻る。
【0043】
以下、画素毎に上述したループを繰り返す過程で、図36(c)に示すように、原稿領域候補が閾値THedgFS1の回数だけ、言い換えると、原稿領域外上に付着するゴミ等を無視することができる程度に連続して検出されると、ステップSc14へ進む。この場合、カウンタC4の値は、閾値THedgFS1と同じ値であるので、ステップSc15へ進む。ステップSc15では、原稿の開始端カウント記憶部XstartFS1に(C1−C4+1)の値を記憶する。これは、画素数をカウントするカウンタC1の値が実際の原稿終了端に対して、(C4−1)の値だけ進んでいるため、これを補正するものである。次に、ステップSc16で、原稿の開始端カウント記憶部XstartFS1に最終データが記憶されたことを示すフラグFstartFS1の値を「1」にする。この時点で主走査方向開時エッジ検出ルーチンにおける原稿開始端が確定する。そして、ステップSc17で、上述したように、原稿領域外候補の連続検出回数を示すカウンタC5をリセットし、その値を「0」にする。次に、ステップSc18で、主走査方向の画素数をカウントするカウンタC1が主走査方向画素数最大値FSmaxと同じ値であるか、言い換えると、カウンタC1が主走査方向画素数最大値FSmaxに達したか否かを判定する。この場合、双方は異なる値であるため、すなわち主走査方向画素数最大値FSmaxに達していないため、ステップSc4へ戻る。
【0044】
図32、図33および図36(b)に示すように、例えば、レジ位置Pから原稿開始端までの間で連続THedgFS1画素以下の原稿領域候補を検出したとする。この場合、原稿領域候補の連続検出回数を示すカウンタC4の値が閾値THedgFS1に達する前に、再び原稿領域外に戻るため、原稿の開始端カウント記憶部×startFS1に開始端が記憶されることはない。つまり、連続検出回数が閾値THedgFS1画素以下の原稿領域候補は無視され、原稿領域外上のゴミ等による開始端誤検知を防ぐことになる。また、図36(a)に示すように、原稿Aがコーナーレジに押し当てられ、先頭ラインから原稿領域侯補となる場合においても、正確に開始端を検知できる。
【0045】
以下、画素毎に上述したループを繰り返す過程で、図32および図33に示すように、ある画素において原稿領域外候補を検出すると、この場合、原稿の開始端カウント記憶部XstartFS1に最終データが記憶されたことを示すフラグFthFSが「1」であるので、ステップSc7からステップSc8へ進む。また、フラグFstartFS1の値が「1」であるので、ステップSc9へ進む。そして、ステップSc9では、原稿領域侯補の連続検出回数を示すカウンタC4の値が閾値THedgFS1よりも大きい値か判定する。これは、図32および図33に示すように、この時点までに検出していた原稿領域候補が原稿領域外上のゴミ等ではなく、原稿領域であると判断する処理であり、原稿領域外上のゴミ等を検知した際に、後述するSc10で、ゴミの端部を原稿終了端として誤検知することがないよう付加するものである。ここでは、カウンタC4の値が閾値THedgFS1よりも大きい値であると仮定し、ステップSc10へ進む。
【0046】
ステップSc10では、原稿領域外候補の連続検出回数を示すカウンタC5の値が閾値THedgFS2と同じ値か判定する。同じ値であれば、ステップSc11へ進み、異なる値であれば、ステップSc18へ進む。これは、図32および図33に示すように、原稿領域外候補が閾値THedgFS2の回数だけ連続して検出された場合に初めて原稿領域外と認識するための処理であり、原稿領域外の明度と極めて類似した原稿内情報を原稿終了端として誤検如しないようにするために付加してある。このため、閾値THedgFS2は、原稿内情報の大きさを考慮に入れ設定する必要がある。この場合、カウンタC5の値は「1」であり、閾値THedgFS2より小さいとして、ステップSc18へ移行する。この場合、主走査方向の画素数をカウントするカウンタC1と主走査方向画素数最大値FSmaxに達していないため、ステップSc4へ戻る。
【0047】
以下、画素毎に上述したループを繰り返す。この過程で、図32および図33に示すように、原稿領域外候補が閾値THedgFS2の回数だけ連続して検出されると、原稿領域外候補の連続検出回数を示すカウンタC5の値は閾値THedgFS2と同じ値となるため、ステップSc10からステップSc11へ進む。ステップSc11では、原稿の終了端カウント記憶部×endFS1に(C1−C5)の値を記憶する。これは、画素数をカウントするカウンタC1の値が実際の終了端に対してカウンタC5の値だけ進んでいるため、これを補正するものである。但し、開始端と異なり、図32および図33に示すように、検出した原稿領域外が閾値THedgFS2を超えた原稿内情報の可能性もあるため、原稿終了端の最終データを記憶したことを示すフラグは立てない。したがって、その後、原稿領域を検知した後に再び原稿領域外を検知すると、原稿の終了端カウント記憶部XendFS1は更新されることになる。次に、ステップSc12で、原稿領域候補の連続検出回数を示すカウンタC4をリセットし、その値を「0」にした後、ステップSc18へ進む。この場合、主走査方向の画素数をカウントするカウンタC1は、主走査方向画素数最大値FSmaxに達していないため、ステップSc4へ戻る。
【0048】
ここで、図32および図33に示すように、原稿領域内で連続THedgFS2画素以下の原稿領域外侯補を検出したとする。この場合、原稿領域外候補の連続検出回数を示すカウンタC5の値が閾値THedgFS2に達する前に再び原稿領域に戻るため、原稿の終了端カウント記憶部XendFS1に終了端が記憶されることはない。つまり、連続検出回数がTHedgFS2画素以下の原稿領域外候補は無視され、原稿領域外の明度と極めて類似した原稿内情報による終了端誤検知を防ぐことになる。
【0049】
以下、画素毎に上述したループを繰り返す。この過程で、再び原稿領域を検出し、真の終了端画素へ達したとする。終了端画素の次画素以降は、再び原稿領域外候補を検出することになる。そして、原稿領域外候補の連続検出回数を示すカウンタC5の値が閾値THedgFS2に達すると、前述したように、ステップSc11で、原稿の終了端カウント記憶部XendFS1に(C1−C5)の値を更新する。
【0050】
そして、図32および図33に示すように、例えば、原稿終了端から主走査方向画素数最大値FSmaxまでの間で連続THedgFS1ライン以下の原稿領域侯補を検出したとする。この場合、原稿領域候補の連続検出回数を示すカウンタC4の値が閾値THedgFS1に逢する前に再び原稿領域外に戻るため、原稿の終了端カウント記憶部XstartFS1に終了端が記憶されることはない。つまり、連続検出回数がTHedgFS1画素以下の原稿領域候補は無視され、原稿領域外上のゴミ等による終了端誤検知を防ぐことになる。
【0051】
以下、画素毎に上述したループを繰り返す。この過程で、図32および図33に示すように、主走査方向画素数最大値FSmaxまで進むと、ステップSc18へ進む。この場合、主走査方向の画素数をカウントするカウンタC1が主走査方向画素数最大値FSmaxと同じ値であるため、ステップSc19へ進む。ステップSc19では、原稿領域候補の連続検出回数を示すカウンタC4の値が閾値THedgFS1よりも大きい値であるか否かを判定する。そして、カウンタC4の値が閾値THedgFS1よりも大きければ、ステップSc20へ進み、小さけれぱステップSc21へ進む。例えば、図37(c)、図38(e)に示すような場合には、カウンタC4の値は、閾値THedgFS1よりも大きくなる。一方、図37(a),(b)、図38(d),(f)に示すような場合には、カウンタC4の値は、閾値THedgFS1よりも小さくなる。ステップSc19における判定は、図37(c)のような、原稿領域終了後、原稿領域外候補の連続検出回数を示すカウンタC5の値が閾値THedgFS2よりも小さい値のときに、主走査方向画素数最大値FSmaxに達してしまい、原稿終了端を確定できない特別な場合に対応するものである。
【0052】
次に、ステップSc20で、原稿の終了端カウント記憶部XendFS1に(FSmax−C5)の値を記憶する。これは、原稿領域の終了端が主走査方向画素数最大値FSmaxからC5の値だけ前にあるため、これを補正するものである。次に、ステップSc21で、原稿の終了端カウント記憶部XendFS1に最終データが記憶されたことを示すフラグFendFS1を「1」にする。この時点で主走査方向開時エッジ検出ルーチンにおける原稿の終了端が確定する。
【0053】
(4)主走査方向閉時エッジ検出ルーチン
次に、主走査方向閉時エッジ検出ルーチンの詳細を説明する。ここで、図16および図17は、主走査方向閉時エッジ検出ルーチンを説明するためのフローチャートである。なお、主走査閉時エッジ検出ルーチン(図13のステップSb9)は、図16および図17のフローチャートで示すように、各々、図14および図15に示す主走査開時エッジ検出ルーチン(図13のステップSb6)とほぼ同様の内容であるため、異なる点についてのみ説明する。すなわち、図16および図17におけるステップSd1〜Sd21は、各々、図14および図15に示すステップSc1〜Sc21に対応する。唯一異なる点は、主走査閉時エッジ検出ルーチン内の各画素判定ルーチンSd6(図16参照)において、図19に示すように、ステップSf2で、各画素の読取データが閾値THL*FS2よりも大きければ、ステップSf3へ進み、フラグFthFSを「1」にする点である。原稿領域外は、プラテンカバー4を完全に閉じているために、照射光が完全に反射され、白に近い明度になる。したがって、閾値THL*FS2は、図31に示すように、原稿領域外を確実に白レベルと判断できる値で、かつ最も白レベル寄りの値に設定する。これは、中間色に対するマージンを増やすためである。
【0054】
(5)主走査方向エッジ判定ルーチン
次に、主走査方向エッジ判定ルーチンの詳細について説明する。ここで、図20および図21は、主走査方向エッジ判定ルーチンを説明するためのフローチャートである。まず、ステップSg1で、原稿がプラテンガラス2上に載置されていることを示す原稿有無フラグF0をリセットし、その値を「0」にする。次に、ステップSg2で、前述した主走査方向開時エッジ検出ルーチンにおいて、原稿の開始端カウント記憶部XstartFS1に最終データが記憶されたことを示すフラグFstartFS1の値が「1」であるか否かを判定する。そして、フラグFstartFS1の値が「1」であれば、ステップSg3へ進み、前述した主走査方向閉時エッジ検出ルーチンにおいて、原稿の開始端カウント記憶部XstartFS2に最終データが記憶されたことを示すフラグFstartFS2の値が「1」であるか否かを判定する。そして、フラグFstartFS2の値が「1」であれば、ステップSg4へ進む。ここでは、それぞれの原稿の開始端カウント記憶部XstartFS1,XstartFS2に最終データが記憶されたとし、ステップSg4へ進むものとする。
【0055】
ステップSg4では、プラテンガラス2上に原稿Aが載置されていると判断し、原稿有無フラグF0の値を「1」にする。次に、ステップSg5で、図39に示すように、主走査方向開時エッジ検出ルーチンで算出した原稿の開始端カウント記憶部XstartFS1の値が、主走査方向閉時エッジ検出ルーチンで算出した原稿の開始端カウント記憶部XstartFS2の値より小さいか否かを判定し、小さけれぱ、ステップSg6へ進み、大きければ、ステップSg7へ進む。ステップSg6では、原稿の開始端カウント記憶部XstartFSにXstartFS1の値を記憶する。一方、ステップSg7では、原稿の開始端カウント記憶部XstartFSにXstartFS2の値を記憶する。すなわち、原稿の開始端カウント記憶部XstartFSには、小さい方の値が記憶されることになる。次に、ステップSg8で、図39に示すように、主走査方向開時エッジ検出ルーチンで算出した原稿の終了端カウント記憶部XendFS1の値が、主走査方向閉時エッジ検出ルーチンで算出した原稿の終了端カウント記憶部XendFS2の値より大きいか否かを判定する。そして、大きければ、ステップSg9へ進み、小さけれぱ、ステップSg10へ進む。ステップSg9では、原稿の終了端カウント記憶部XendFSにXendFS1の値を記憶する。一方、ステップSg10では、原稿の終了端カウント記憶部XendFSにXendFS2の値を記憶する。すなわち、原稿の終了端カウント記憶部XendFSには、大きい方の値が記憶されることになる。
【0056】
次に、ステップSg18で、原稿の開始端カウント記憶部XstartFSの値が主走査方向最大許容ズレ量を示すFSerrより小さいか否かを判定する。そして、小さければ、本ルーチンを抜け、図13に示すステップSb13の定形サイズ判定ルーチンへ進み、大きければ、ステップSg19の異常処理ル−チンへ進む。例えば、原稿Aが主走査方向のレジ位置Pからある距離以上離れて載置されると、原稿Aによって隠される着色領域3の面積が減少することになる。このため、該ルーチン終了後の副走査方向原稿端検出ルーチンSa10で、正しい検出ができなくなる恐れが発生するので、異常処理ル−チンを実行する。
【0057】
一方、ステップSg3において、図40に示すように、例えば、読取データのうち、原稿領域の全データの明度が閾値THL*FS2よりも高い値、つまり白色原稿であれば、原稿の開始端カウント記憶部XstartFS2に最終データが記憶されたことを示すフラグFstartFS2の値が「0」であるので、図21に示すステップSg11へ進む。ステップSg11では、プラテンガラス2上に原稿Aが載置されていると判断し、原稿有無フラグF0の値を「1」にする。次に、ステップSg12で、原稿の開始端カウント記憶部XstartFSにXstartFS1の値を記憶する。そして、ステップSg13で、原稿の終了端カウント記憶部XendFSにXendFS1の値を記憶した後、前述したステップSg18へ進む。
【0058】
一方、ステップSg2において、フラグFstartFS1の値が「0」であった場合には、ステップSg14へ進む。ステップSg14では、主走査方向閉時エッジ検出ルーチンにおいて原稿の開始端カウント記憶部XstartFS2に最終データが記憶されたことを示すフラグFstartFS2の値が「1」であるか否かを判定する。そして、フラグFstartFS2の値が「0」であれば、原稿Aが載置されていないと判断し、本ルーチンを抜け、図13に示すステップSb13の定形サイズ判定ルーチンへ進む。一方、例えば、図41に示すように、読取データのうち、原稿領域の全データの明度が閾値THL*FS1よりも低い値、つまり黒色原稿であれば、フラグFstartFS2の値が「1」であるので、ステップSg15へ進む。ステップSg15では、プラテンガラス2上に原稿Aが載置されていると判断し、原稿有無フラグF0の値を「1」にする。次に、ステップSg16で、原稿の開始端カウント記憶部XstartFSにXstartFS2の値を記憶する。そして、ステップSg17で、原稿の終了端カウント記憶部XendFSにXendFS2の値を記憶した後、前述したステップSg18へ進む。
【0059】
上述した処理により、2種類の主走査方向の原稿開始端および終了端のうち、より正しい値、すなわち実際の原稿サイズより小さい原稿サイズであると誤検知することで、原稿内画像を欠落しない原稿サイズとなるような値を選択することができる。
【0060】
(6)定形サイズ判定ルーチン
次に、定形サイズ判定ルーチンの詳細を説明する。ここで、図22は、定形サイズ検出ルーチンを説明するためのフローチャートである。まず、ステップSh1で、プラテン開時およびプラテン閉時におけるAPSセンサ8の2つの出力(開出力、閉出力)が異なるか否かを判断する。そして、双方の出力が同じであれば、ステップSh2へ進み、APSセンサ8上に原稿があると判定する。一方、双方の出力が異なれば、ステップSh3へ進み、APSセンサ8上に原稿がないと判定する。そして、ステップSh4で、APSセンサ8の判定結果と、上述した主走査方向エッジ判定ルーチンで確定された主走査方向の原稿開始端および終了端から算出した主走査方向長さ(原稿幅)とを、図9に示すテーブルに当てはめて、原稿が定形であるか非定形であるか、さらに、定形であれば、その原稿サイズを特定する。
【0061】
(7)副走査方向の原稿端検出ルーチン
次に、副走査方向の原稿端検出ルーチンについて詳細に説明する。副走査方向の原稿端検出は、予備走査で画像情報を読み取りながら実施する。まず、予備走査により読み取った画像情報のうち、主走査方向のある特定領域の各画素の判定結果が、それぞれに対応して予め設定されている各期待値と同じであるか否かを判定する。この特定領域とは、レジ位置Pから主走査方向へ、プラテンカバー4に記した複数の着色領域3をすべて含む範囲である。次に、期待値と同じであると判定された画素数をカウントしていき、このカウント値が所定の閾値を超えた場合には、そのラインは着色領域候補であると判定する。逆に閾値を超えない場合には、そのラインは原稿領域候補であると判定する。また、各期待値の代りに、前ラインの判定結果を記憶し、これと同じ値であると判定された画素数をカウントしていき、このカウント値が所定の閾値を超えた場合には、両ライン間にはエッジが存在せず、逆に閾値を超えない場合には、両ライン間にはエッジが存在すると判定するようにしてもよい。ここでは、前者の方法で説明を進める。このようにして得られた各ライン毎の判定結果間のエッジを検出することにより副走査方向の原稿端を検出する。また、その検出の過程において、着色領域上のゴミや原稿領域内の色味を原稿端として誤検知しないように、エッジから一定期間以上連続して同じ判定結果が得られた場合のみ、着色領域または原稿領域と判定するフィルタ機能も付加している。
【0062】
次に、副走査方向原稿端検出ルーチンを、図面を参照して詳細に説明する。ここで、図23は、副走査方向の原稿端検出ルーチンを説明するためのフローチャートである。まず、ステップSi1で、前述したステップSa5で、ユーザによりスタートボタンが押下された後、開閉センサ5の状態をチェックする。ここで、開閉センサ5が開いていることを検知した場合には、ステップSi10の異常処理ルーチンへ進む。一方、開閉センサ5が閉じていることを検知した場合には、ステップSi2へ進む。ステップSi2では、フルレートキャリッジ7aの照明部15により照射を開始する。次に、ステップSi3で、一定時間T2が経過するまで待機する。これは、照射光量が安定するまでの期間である。そして、ステップSi4で、キャリッジ7を副走査方向へ移動開始する。次に、ステップSi5で、副走査方向エッジ検出ルーチンヘ進む。該副走査方向エッジ検出ルーチンでは、副走査方向の原稿開始端および終了端を検出する。なお、該副走査方向エッジ検出ルーチンの詳細については後述する。
【0063】
次に、ステップSi6で、キャリッジ7を停止した後、ステップSi7で、照射を終了する。そして、ステップSi8で、キャリッジ7をホームポジションHPへ移動する。なお、この移動の際に自動カラー判定処理や濃度検知等の処理を施してもよい。次に、ステップSi9で、原稿の副走査方向の開始端カウント記憶部XstartSSに最終データが記憶されたことを示すフラグFstartSSの値が「1」であるか否かを判定する。そして、フラグFstartSSの値が「1」であれぱ、本ルーチンを抜け、図12に示すステップSa11の原稿サイズ判断ルーチンへ進み、「0」であれば、ステップSi10の異常処理ルーチンへ進む。
【0064】
(8)副走査方向エッジ検出ルーチン
次に、副走査方向エッジ検出ルーチンについて詳細に説明する。ここで、図24および図25は、副走査方向エッジ検出ルーチンを説明するためのフローチャートである。まず、ステップSj1で、副走査方向のライン数をカウントするカウンタC2、原稿領域候補の連続検出回数を示すカウンタC4、着色領域候補の連続検出回数を示すカウンタC5をそれぞれリセットし、それぞれの値を「0」にする。次に、ステップSj2で、副走査方向の原稿開始端を記憶するカウント記憶部XstartSSに「0」を初期設定するとともに、副走査方向の原稿終了端を記憶するカウント記憶部XendSSにSSmaxを初期設定する。SSmaxとは、副走査方向ライン数の最大値である。次に、ステップSj3で、カウント記憶部XstartSSに最終データが記憶されたことを示すフラグFstartSS、カウント記憶部XendSSに最終データが記憶されたことを示すフラグFendSSをそれぞれリセットし、それぞれの値を「0」にする。
【0065】
次に、ステップSj4で、次ラインヘの移行を待つ。該移行のトリガは、ライン同期信号の入力を検知することなどで実施する。そして、トリガが入力されると、ステップSj5へ進み、カウンタC2、C4、C5をそれぞれ「1」ずつインクリメントする。次に、ステップSj6で、各ライン判定ルーチンを実行する。該各ライン判定ルーチンでは、前述した特定領域の各画素が、それぞれに対応して予め設定されている各期待値と同じであるか判定し、期待値と同じであると判定された画素数をカウントする。さらに、カウントされた画素数と閾値とを比較し、このラインが着色領域候補であるか、あるいは原稿領域候補であるかを判定する。
【0066】
ここで、上記各ライン判定ルーチンを詳細に説明する。図26および図27は、各ライン判定ルーチンを説明するためのフローチャートである。また、図42は、各ライン判定ルーチンで用いる閾値を説明するための概念図である。また、図43は、各ライン判定動作を説明するための概念図であり、図44は、各ライン判定ルーチンにおける動作を説明するための概念図である。図43に示すように、以下の説明では、ラインL1,L2,L3の3ラインを例に、各ライン判定ルーチンの動作を説明する。ラインL1,L2は原稿領域外であるが、ラインL2に関しては、プラテンガラス2上に着色領域3とは明らかに異なる色のゴミが存在する。また、ラインL3は原稿領域内であるが、該ラインL3上には着色領域3と同等の色である原稿内情報が存在する。
【0067】
各ライン判定ルーチンでは、まず、ステップSk1で、主走査方向の画素数をカウントするカウンタC1、カウンタC3をそれぞれリセットし、それぞれの値を「0」にする。ここで、カウンタC3は、予め特定領域の各画素毎に設定された各期待値Mnとそれに各々対応する各画素の判定結果FthSS1とを比較した際、期待値Mnに一致した画素数をカウントするものである。次に、ステップSk2で、ラインの判定結果を示すフラグFthSS2をリセットし、その値を「0」にする。次に、ステップSk3で、次画素への移行を待つ。該移行のトリガは、ビデオ同期信号の入力を検知することなどで実施する。そして、トリガが入力されると、ステップSk4へ進む。
【0068】
ステップSk4では、画素が着色領域と同等色である場合に「1」にセットされるフラグFthSS1をリセットし、その値を「0」にした後、ステップSk5で、主走査方向の画素数をカウントするカウンタC1を「1」だけインクリメントする。次に、ステップSk6で、期待値Mnを読取画素に対応する期待値に変更する。期待値Mnは、図44(a)に示すように、着色領域対応画素に対して「1」、それ以外の画素に対しては「0」として、特定領域内のみ予め設定されている。次に、ステップSk7で、読取データを閾値THL*と比較する。閾値THL*は、図42に示すように、プラテンカバー4に記された着色領域3を検知できる値に設定しておく。読取データL*が閾値THL*minからTHL*maxまでの範囲に入れば、ステップSk8へ進み、入らなければ、ステップSk11へ進む。
【0069】
次に、ステップSk8で、読取データa*を閾値THa*と比較する。閾値THa*は、図42に示すように、プラテンカバー4に記された着色領域3を検知できる値に設定しておく。読取データa*が閾値THa*minから閾値THa*maxまでの範囲に入れば、ステップSk9へ進み、入らなければ、ステップSk11へ進む。次に、ステップSk9では、読取デ−タb*を閾値THb*と比較する。閾値THb*は、図42に示すように、プラテンカバー4に記された着色領域3を検知できる値に設定しておく。読取データb*が閾値THb*minから閾値THb*maxまでの範囲に入れば、ステップSk10へ進み、入らなければ、ステップSk11へ進む。上述したステップSk7〜Sk9により、閾値THL*、閾値THa*、閾値THb*の条件を全て満足した場合、つまり読取データの色が着色領域の色に近い時のみ、ステップSk10へ進むことになる。
【0070】
ステップSk10では、画素の判定結果を示すフラグFthSS1を「1」にする。これは、注目画素が着色領域3もしくはそれに近い色の原稿内情報を読み取ったことを示す。ここで、上述したラインL1に対するフラグFthSS1は、図44(b)に示すようになり、ラインL2に対するフラグFthSS1は、図44(c)に示すように、ラインL2に対するフラグFthSS1は、図44(d)に示すようになる。次に、図27に示すステップSk11では、図44(b)〜(d)に示すように、画素の判定結果を示すフラグFthSS1と当該画素用に設定された期待値Mnとが同じ値であるか否かを判定する。そして、双方が同じ値であれば、ステップSk12へ進み、期待値Mnと同じ値である画素数をカウントするカウンタC3を「1」だけインクリメントした後、ステップSk13へ進む。一方、双方が違う値であれば、カウンタC3をインクリメントすることなく、ステップSk13へ進む。ステップSk13では、主走査方向の画素数をカウントするカウンタC1の値が特定領域の最大値FSchkより小さいか否かを判定する。そして、小さければ、ステップSk3へ戻り、以後、カウンタC1の値が特定領域の最大値FSchkと同じ値になるまで、ステップSk3〜Sk13までのループが繰り返される。そして、その都度、各画素の判定結果がカウンタC3に累積されていく。こうして、カウンタC1の値が特定領域の最大値FSchkを超えると、ステップSk14へ進む。
【0071】
ステップSk14では、カウンタC3の値をラインの判定用閾値THsumと比較する。そして、カウンタC3の値が閾値THsum以上である場合には、本ライン(例えば、図44(b),(c)に示すラインL1,L2)は、着色領域候補であるとして、ステップSk15へ進み、ラインの判定結果を示すフラグFthSS2を「1」にする。これは、本ラインが着色領域候補を検知したことを示す。そして、本ルーチンを抜け、図24に示すステップSj7へ戻る。
【0072】
一方、カウンタC3の値が閾値THsumよりも小さい場合には、本ライン(例えば、図44(d)に示すラインL3)は、原稿領域候補であるとして、フラグFthSS2を「1」にすることなく、本ルーチンを抜け、図24に示すステップSj7へ戻る。図44(b)〜(d)に示すように、カウンタC3の値は、本ラインの各画素が期待値Mnとどの程度同じであったかを示している。したがって、カウンタC3の値が閾値THsum以上であれば、プラテンカバー4上の着色領域3か、着色領域3の色および配置と極めて類似した原稿内情報を着色領域候補として検出したということになる。逆にカウンタC3の値が閾値THsumより低ければ、原稿領域か、着色領域3上のゴミ等を原稿領域候補として検出したということになる。また、着色領域候補を検出する場合でも、実際は機構的なズレや着色領域3上の微小ゴミ等の影響で画素全てが期待値Mnと一致することはなく、カウンタC3のカウント値は、最大値(完全一致)よりも若干低い値になる。閾値THsumは、この点を考慮に入れ設定する必要がある。
【0073】
再び、図24に示す副走査方向エッジ検出ルーチンに戻る。ステップSj7では、フラグFthSS2が「1」であるか否かを判定する。ここでは、図47(c)に示すように、原稿Aがレジ位置Pから副走査方向へ若干離れて載置され、着色領域侯補を検知したとすると、フラグFthSS2が「1」となるので、ステップSj8へ進む。ステップSj8では、原稿の開始端カウント記憶部XstartSSに最終データが記憶されたことを示すフラグFstartSSの値が「1」であるか否かを判定する。フラグFstartSSが「1」であれば、図25に示すステップSj9へ進む。一方、フラグFstartSSが「0」であれば、図25に示すステップSj12へ進む。現時点では、カウント記憶部XstartSSに最終データは記憶されていないため、ステップSj12へ進む。ステップSj12では、原稿領域候補の連続検出回数を示すカウンタC4をリセットし、その値を「0」にする。次に、ステップSj18で、副走査方向のライン数をカウントするカウンタC2が副走査方向ライン数最大値SSmaxと同じ値であるか否か、すなわち最終ラインに達したか否かを判定する。そして、同じ値であれぱ、最終ラインに達したと判断し、ステップSj19へ進み、異なる値であれば、まだ最終ラインに達していないと判断し、ステップSj4へ戻る。ここでは、異なる値であるため、ステップSj4へ戻る。
【0074】
以下、原稿領域候補を検知するまで、上述したループは繰り返される。そして、例えば、図47(c)に示すように、数ライン後に原稿領域候補を検知すると、ステップSj7へ進む。ここでは、原稿領域候補を検知したので、フラグFthSS2が「0」となり、図25に示すステップSj13へ進む。ステップSj13では、フラグFstartSSの値が「1」であるか否かを判定する。そして、フラグstartSSが「1」であれば、ステップSj17へ進み、フラグFstartSSが「0」であれぱ、ステップSj14へ進む。これは、開始端カウント記憶部XstartSSに最終データが記憶された後、これ以降のステップSj14〜Sj16へと続く原稿開始端検出処理を省略するためである。現時点では、カウント記憶部XstartSSに最終デ一タは記憶されていないので、ステップSj14へ進む。
【0075】
ステップSj14では、原稿領域候補の連続検出回数を示すカウンタC4の値が閾値THedgSS1と同じ値であるか否かを判定する。そして、同じ値である場合、すなわち、原稿領域候補が閾値THedgSS1以上連続した場合には、ステップSj15へ進む。一方、異なる値である場合、すなわち、原稿領域候補が閾値THedgSS1以上、連続しなかった場合には、ステップSj17へ進む。これは、図46に示すように、原稿領域候補が閾値THedgSS1の回数だけ連続して検出された場合に初めて原稿領域と認識するための処理であり、着色領域上のゴミ等を原稿開始端として誤検如しないようにするために付加してある。このため、閾値THedgSS1は、着色領域上に付着するゴミ等の大きさを考慮に入れて設定する必要がある。ここでは、カウンタC4の値は「1」であり、閾値THedgSS1より小さいとして、ステップSj17へ進む。ステップSj17では、着色領域候補の連続検出回数を示すカウンタC5をリセットし、その値を「0」にする。次に、前述したステップSj18へ進む。ここでは、副走査方向のライン数をカウントするカウンタC2と副走査方向ライン数最大値SSmaxとが異なる値であるため、すなわち最終ラインに達していないため、ステップSj4へ戻る。
【0076】
以下、ライン毎に上述したループを繰り返す。この過程で、図47(c)に示すように、原稿領域候補が閾値THedgSS1の回数だけ連続して検出されると、ステップSj14へ進む。ステップSj14では、原稿領域候補の連続検出回数を示すカウンタC4の値が閾値THedgSS1と同じ値であるか否かを判定する。ここでは、カウンタC4の値は、閾値THedgSS1と同じ値であるため、ステップSj15へ進む。ステップSj15では、原稿の開始端カウント記憶部XstartSSに(C2−C4+1)の値を記憶する。これは、ライン数をカウントするカウンタC2の値が実際の終了端に対して、(C4−1)の値だけ進んでいるため、これを補正するものである。次に、ステップSj16で、フラグFstartSSの値を「1」にする。これは、原稿の開始端カウント記憶部XstartSSに最終データが記憶されたことを示す。この時点で原稿の副走査方向の開始端が確定する。
【0077】
次に、前述したステップSj17で、着色領域候補の連続検出回数を示すカウンタC5をリセットし、その値を「0」にした後、ステップSj18へ進む。この場合、副走査方向のライン数をカウントするカウンタC2と、副走査方向ライン数最大値SSmaxとは、異なる値であるため、すなわち最終ラインに達していないため、ステップSj4へ戻る。図45、図46および図47(b)に示すように、例えば、レジ位置Pから原稿開始端までの間で、連続検出回数が閾値THedgSS1ライン以下の原稿領域候補を検出したとする。この場合、原稿領域候補の連続検出回数を示すカウンタC4の値が閾値THedgSS1に達する前に再び着色領域に戻るため、原稿の開始端カウント記憶部XstartSSに開始端が記憶されることはない。つまり、連続検出回数が閾値THedsSS1ライン以下の原稿領域候補は無視され、着色領域上のゴミ等による開始端誤検知を防ぐことになる。また、図47(a)に示すように、原稿がコーナーレジに押し当てられ、先頭ラインから原稿領域侯補となる場合においても、正確に開始端を検知できる。
【0078】
次に、ライン毎に上述したループを繰り返す過程において、図45および図46に示すように、あるラインにて再び着色領域候補を検出すると、ステップSj7へ進む。ここでは、着色領域候補と判断されているため、フラグFthSS2は「1」であるので、ステップSj8へ進む。ステップSj8では、原稿の開始端カウント記憶部XstartSSに最終データが記憶されたことを示すフラグFstartSSの値が「1」であるか否かを判定する。ここでは、フラグFstartSSの値が「1」であるので、図25のステップSj9へ進む。ステップSj9では、原稿領域候補の連続検出回数を示すカウンタC4の値が閾値THedgSS1よりも大きい値であるか否かを判定する。これは、図45および図46に示すように、検出していた原稿領域候補が着色領域上のゴミ等ではなく、原稿領域であると判断する処理であり、着色領域3上のゴミ等を検知した際に、後述するステップSj10で、ゴミの端部を原稿終了端として誤検知することがないようにするためのである。ここでは、カウンタC4の値が閾値THedgSS1よりも大きい値であると仮定し、ステップSj10へ進む。
【0079】
ステップSj10では、着色領域候補の連続検出回数を示すカウンタC5の値が閾値THedgSS2と同じ値であるか否かを判定する。そして、双方が同じ値であれば、ステップSj11へ進み、異なる値であれば、ステップSj18へ進む。これは、図45および図46に示すように、着色領域侯補が閾値THedgSS2の回数だけ連続して検出された場合に初めて着色領域と認識するための処理であり、着色領域3の色および配置と極めて類似した原稿内情報を原稿終了端として誤検知しないようにするためである。このため、閾値THedgSS2は、原稿内情報の大きさを考慮に入れて設定する必要がある。ここでは、カウンタC5の値は、「1」であり、閾値THedgSS2より小さいとして、ステップSj18へ進む。この場合、副走査方向のライン数をカウントするカウンタC2と、副走査方向ライン数最大値SSmaxとは、異なる値であるため、ステップSj4へ戻る。
【0080】
以下、ライン毎に上述したループを繰り返す。この過程において、図45および図46に示すように、着色領域候補が閾値THedgSS2の回数だけ連続して検出されると、ステップSj10からステップSj11へ進む。ステップSj11では、原稿の終了端カウント記憶部XendSSに(C2−C5)の値を記憶する。これは、ライン数をカウントするカウンタC2の値が実際の終了端に対してC5の値だけ進んでいるので、これを補正するものである。但し、原稿開始端と異なり、図46に示すように、検出した着色領域が閾値THedgSS2を超えた原稿内情報の可能性もあるので、原稿終了端の最終データを記憶したことを示すフラグは立てない。したがって、その後、原稿領域を検知した後に再び着色領域を検知すると、原稿の終了端カウント記憶部XendSSは更新されることになる。
【0081】
次に、ステップSj12で、原稿領域候補の連続検出回数を示すカウンタC4をリセットし、その値を「0」にした後、ステップSj18へ進む。ここでは、副走査方向のライン数をカウントするカウンタC2と、副走査方向ライン数最大値SSmaxとは、異なる値であるため、ステップSj4へ戻る。図45および図46に示すように、例えば、原稿領域内で連続検出回数が閾値THedgSS2ライン以下の着色領域候補を検出したとする。この場合、着色領域候補の連続検出回数を示すカウンタC5の値が閾値edgSS2に達する前に再び原稿領域に戻るため、原稿の終了端カウント記憶部XendSSに原稿終了端が記憶されることはない。つまり、連続検出回数が閾値THedgSS2ライン以下の着色領域候補は無視され、着色領域の色および配置と極めて類似した原稿内情報による終了端誤検知を防ぐことになる。
【0082】
以下、ライン毎に上述したループを繰り返し、この過程で、再び原稿領域を検出し、真の終了端ラインへ達したとする。終了端ラインの次ライン以降は、再び着色領域候補を検出することになる。そして、着色領域候補の連続検出回数を示すカウンタC5の値が閾値THedgSS2に達すると、前述したように、ステップSj11で、原稿の終了端カウント記憶部XendSSに(C2−C5)の値を更新する。その後、図45および図46に示すように、原稿終了端から副走査方向ライン数最大値SSmaxまでの間で連続検出回数が閾値THedgSS1ライン以下の原稿領域候補を検出したとする。この場合、原稿領域候補の連続検出回数を示すカウンタC4の値が閾値THedgSS1に逢する前に再び着色領域に戻るため、原稿の終了端カウント記憶部XstartSSに終了端が記憶されることはない。つまり、連続THedgSS1ライン以下の原稿領域候補は無視され、着色領域上のゴミ等による終了端誤検知を防ぐことになる。
【0083】
以下、ライン毎に上述したループを繰り返し、図45および図46に示すように、副走査方向ライン数最大値SSmaxまで進むと、ステップSj18へ進む。ここでは、副走査方向のライン数をカウントするカウンタC2と、副走査方向ライン数最大値SSmaxとは、同じ値であるため、ステップSj19へ進む。ステップSj19では、原稿領域候補の連続検出回数を示すカウンタC4の値が閾値THedgSS1よりも大きい値であるか否かを判定する。そして、カウンタC4の値が閾値THedgSS1よりも大きけれぱ、ステップSj20へ進み、小さければ、ステップSj21へ進む。例えば、図48(c)、図49(e)の場合には、カウンタC4の値は、閾値THedgSS1よりも大きくなる。一方、図48(a),(b)、図49(d),(f)の場合には、カウンタC4の値は、閾値THedgSS1よりも小さくなる。この処理は、図48(c)のような、原稿領域終了後、着色領域候補の連続検出回数を示すカウンタC5の値が閾値THedgSS2よりも小さい値の時に副走査方向ライン数最大値SSmaxとなり、原稿終了端を確定できない特別な場合に対応するものである。
【0084】
そして、カウンタC4の値が閾値THedgSS1よりも大きけれぱ、ステップSj20で、原稿の終了端カウント記憶部XendSSに(SSmax−C5)の値を記憶する。これは、原稿領域の終了端が副走査方向ライン数最大値SSmaxからカウンタC5の値だけ前にあるので、これを補正するものである。次に、ステップSj21で、原稿の終了端カウント記憶部×endSSに最終データが記憶されたことを示すフラグFendSSを「1」にする。この時点で、副走査方向の原稿終了端が確定する。
【0085】
上述した処理により、副走査方向の原稿開始端および終了端を検出できる。上述した副走査方向の原稿端検出方法は、主走査方向のある特定領域の全画素の判定結果を期待値と比較し、同じになる数を所定の閾値と比較することによって、各ラインが着色領域候補であるか、あるいは原稿領域候補であるかを判定したものである。そこで、特定領域内に幾つかの着目画素を設け、この着目画素についてのみ、上述した処理を実施することで、取り扱う情報量を減らすことができる。例えば、着色領域パターンを構成する必要最小限の情報を取り扱うためには、図11(a)に示すように、各着色領域の両端部分と各着色領域間隔の両端部分とに着目画素を設定すればよい。また、着色領域パターンを検出する必要がない程度の精度でよい場合には、図11(b)に示すように、各着色領域の中央部分と各着色領域間隔の中央部分とに着目画素を設定することで、さらに取り扱う情報量を削減することができる。このとき、各着色領域および各着色領域間隔の幅は、着色領域の形成誤差やプラテンカバーの取付誤差を考慮したものにしておけばよい。上述した方法で情報量を削減することで、高速化に対応することができる。
【0086】
(9)原稿サイズ判断ルーチン
次に、前述した原稿サイズ判断ルーチンを詳細に説明する。ここで、図28は、原稿サイズ判断ルーチンを説明するためのフローチャートである。まず、ステップSm1で、主走査方向開始端カウント記憶部XstartFSの値と主走査方向終了端カウント記憶部XendFSの値との差分から原稿の主走査方向長さを算出する。次に、ステップSm2で、副走査方向開始端カウント記憶部XstartSSの値と副走査方向終了端カウント記憶都XendSSの値との差分から副走査方向長さを算出する。これにより、原稿が非定形サイズであった場合でも、原稿サイズを正確に検出することができる。
【0087】
B.第2実施形態
次に、本発明の第2実施形態について説明する。
B−1.第2実施形態の構成
図50または図51は、本発明の第2実施形態による画像読取装置の概観構成を示す斜視図である。なお、図1に対応する部分には同一の符号を付けて説明を省略する。図50は、プラテンカバーの原稿押え面に着色領域3を形成した画像読取装置であり、図51は、自動原稿搬送装置(ADF)のベルト12に着色領域3を形成した画像読取装置である。前述した第1実施形態では、APSセンサ8により、定形サイズであるか非定形サイズであるかを判別し、定形サイズであれば、副走査方向長さを検出することなく、原稿サイズの検出を終了していた。本第2実施形態では、図示するように、APSセンサ8を備えていない画像読取装置に適用したものである。
【0088】
B−2.第2実施形態の動作
次に、上述した第2実施形態の動作について説明する。
B−2−1.動作概要
まず、ユーザがプラテンカバー4を開き原稿Aをプラテンガラス2上に載置する。原稿Aを載置した後、プラテンカバー4を閉じる動作を行う。このとき、主走査方向のサイズ検知とを行う。主走査方向のサイズ検知は、白色原稿のみならず、黒色原稿、黒ぷち原稿等、種々の原稿のサイズ検知に対応するため、前述した第1実施形態と同様に、2段階で、各々、主走査方向の原稿開始端および終了端を検出した後、所定の判断基準に基づいて、どちらの検出結果を用いるか判断する。
【0089】
まず、プラテンカバー4がプラテンガラス2に対して所定角度になったことが角度センサ6により検知されると、照明部15による照射が開始され、一定時間後に画像情報が読み取られ、1回目の主走査方向の原稿開始端および原稿終了端が検出される。次に、プラテンカバー4がプラテンガラス2に対して完全に閉じたことが開閉センサ5により検知されると、再び画像情報が読み取られ、2回目の主走査方向の原稿開始端および原稿終了端が検出される。そして、照明部15による照射が終了すると、まず、上述した検出された2種類の主走査方向の原稿開始端および終了端のうち、所定の判断基準に基づいて、どちらの検出結果を用いるかを決定する。このようにして主走査方向の原稿開始端および終了端を検出する。
【0090】
次に、ユーザがスタートボタン(図示略)を押すと、副走査方向のサイズ検知を行うための予備走査(プレスキャン)を行い、着色領域3を用いて、副走査方向の原稿開始端および終了端を検出する。次に、主走査方向の原稿開始端と終了端との差から主走査方向原稿長さを算出するとともに、副走査方向の原稿開始端と終了端との差から副走査方向原稿長さを算出し、図52に示すテーブルを参照して、原稿のサイズを確定する。
【0091】
B−2−2.詳細な動作
(1)メインルーチン
まず、図53に示すフローチャートを参照して原稿サイズ検知方式の全体の流れを説明する。まず、ステップSn1で、ユーザによる自動原稿サイズ選択モードの選択が実施される。なお、自動原稿サイズ選択モードを初期設定しておき、本モードの選択を省略しても構わない。ここで、自動原稿サイズ検知モードが選択されている場合には、ステップSn3へ進む。一方、選択されていない場合には、ステップSn2へ進み、ユーザにより入力された原稿サイズを後述する原稿サイズ判断ルーチンへ送るが、ここでは本発明の主旨から外れるため、説明を省略する。
【0092】
次に、ステップSn3では、ユーザが原稿Aを載置するためにプラテンカバー4を開け、プラテンガラス2に対するプラテンカバー4の角度が広がり、角度センサ6がオフとなるまで待機する。そして、ユーザが原稿Aを載置するためにプラテンカバー4を開け、角度センサ6がオフとなると、ステップSn4の主走査方向原稿端検出ルーチンに移行する。該主走査方向原稿端検出ルーチンでは、原稿Aの主走査方向の開始端および終了端が検出される。なお、該主走査方向原稿端検出ルーチンの詳細については後述する。次に、ステップSn5で、ユーザによりスタートボタンが押下されるまで待機する。そして、スタートボタンが押下されると、ステップSn7へ進む。一方、押下されなければ、ステップSn6へ進む。
【0093】
ステップSn6では、ステップSn5での待機中に、プラテンカバー4が開けられプラテンガラス2から所定角度に達すると、角度センサ6はオフとなり、ステップSn3へ戻る。この後、ステップSn3を経て、再び定形サイズ検出ルーチンSn4に移行する。一方、プラテンカバー4が閉じたままであれば、ステップSn5へ移行し、スタートボタンが押下されるまで待機する。
【0094】
そして、スタートボタンが押下されると、ステップSn7で、原稿有無検知フラグF0が「1」であるか判断する。原稿有無検知フラグF0は、ステップSn4で原稿Aがプラテンガラス2上に載置されていると判断された場合に「1」にセットされるものである。原稿有無検知フラグF0が「1」でなければ、原稿Aが載置されていないと判断され、異常処理ルーチンSn8へ進み、異常発生(エラー)を通知する。
【0095】
一方、原稿有無検知フラグF0が「1」であれば、原稿Aが載置されていると判断され、ステップSn9へ進み、副走査方向原稿端検出ルーチンに移行する。該副走査方向原稿端検出ルーチンでは、副走査方向の原稿開始端および終了端が検出される。なお、該副走査方向原稿端検出ルーチンの詳細については、前述した第1実施形態と同じであるので、説明を省略する。次に、ステップSn10で、原稿サイズ判断ルーチンへ移行する。該原稿サイズ判断ルーチンでは、主走査方向の原稿開始端および終了端と、副走査方向の原稿開始端および終了端とに従って、原稿の各辺の長さを算出し、原稿サイズを検知する。なお、該原稿サイズ判断ルーチンの詳細については後述する。
【0096】
(2)主走査方向原稿端検出ルーチン
次に、主走査方向原稿端検出ルーチンについて詳細に説明する。ここで、図54は、主走査方向原稿端検出ルーチンを説明するためのフローチャートである。まず、ステップSp1で、角度センサがオンであるか否かを判断する。そして、ユーザがプラテンガラス2上に原稿Aを載置し、プラテンカバー4を閉じると、プラテンカバー4がプラテンガラス2に対して所定角度になった時点で、角度センサ6がオンとなるので、ステップSp2へ進む。ステップSp2では、所定の位置に待機しているキャリッジ7上の照明部により原稿面への照射を開始する。次に、ステップSp3で、その後、一定時間T1が経過するまで待機する。一定時間T1は、照射光量が安定するまでの時間である。そして、一定時間T1が経過すると、ステップSp4へ進み、開閉センサ5が閉じているか否かを判断する。ここで、プラテンカバー4が、一定時間T1が経過するまでの間に完全に閉じ、開閉センサ5が閉じたことを検知した場合には、ステップSp5の異常処理ルーチンへ移行する。
【0097】
一方、開閉センサ5が閉じていなければ、ステップSp6の主走査方向開時エッジ検出ルーチンに移行する。該主走査方向開時エッジ検出ルーチンは、前述した図8(a)に示すように、プラテンカバー4がまだ開いている状態で画像情報を読取り、その画像情報から主走査方向原稿端を検出するルーチンであり、前述した第1実施形態と同じ処理であるので説明を省略する。次に、ステップSn7で、プラテンカバー4が完全に閉じ、開閉センサ5が閉じたことを検知するまで待機する。そして、開閉センサ5が閉じると、ステップSn8へ進み、主走査方向閉時エッジ検出ルーチンに移行する。該主走査方向閉時エッジ検出ルーチンは、前述した図8(b)に示すように、プラテンカバー4が閉じた状態で画像情報を読取り、その画像情報から主走査方向原稿端を検出するルーチンであり、前述した第1実施形態と同じ処理であるので説明を省略する。その後、ステップSp9で、照明部15による照射を終了し、ステップSp10で、主走査方向エッジ検出ルーチンに移行する。該主走査方向エッジ検出ルーチンは、ステップSp6とステップSp8とで検出した2種類の主走査方向の原稿開始端および終了端から、正しい値(実際の原稿サイズより小さい原稿サイズであると誤検知することで、原稿内画像を欠落しない原稿サイズとなるように)に近いものを選択するルーチンである。このルーチンで主走査方向の開始端および終了端を確定する。なお、該主走査方向エッジ検出ルーチンは、前述した第1実施形態と同じ処理であるので説明を省略する。
【0098】
(3)原稿サイズ判断ルーチン
次に、前述した原稿サイズ判断ルーチンを詳細に説明する。ここで、図55は、原稿サイズ判断ルーチンを説明するためのフローチャートである。まず、ステップSq1で、主走査方向開始端カウント記憶部XstartFSの値と主走査方向終了端カウント記憶部XendFSの値との差分から原稿の主走査方向長さを算出する。次に、ステップSq2で、図52に示すテーブルを参照し、算出した主走査方向長さが各定形サイズの閾値範囲内にあるか否かを判断する。そして、算出した原稿の主走査方向長さが閾値範囲内にあれば、ステップSq3へ進み、副走査方向開始端カウント記憶部XstartSSの値と副走査方向終了端カウント記憶部XendSSの値との差分から副走査方向長さを算出する。次に、ステップSq4で、図52に示すテーブルを参照し、算出した副走査方向長さが各定形サイズの閾値範囲内にあるか否かを判断する。そして、算出した原稿の主走査方向長さが閾値範囲内にあれば、ステップsq5へ進み、対応する定形サイズであると判定する。一方、算出した主走査方向長さが各定形サイズの閾値範囲内に無い場合、あるいは算出した副走査方向長さが各定形サイズの閾値範囲内に無い場合には、ステップSq6で、非定形サイズであると判定する。
【0099】
これにより、原稿が定形サイズであっても、非定形サイズであっても、原稿サイズを正確に検出することができる。
【0100】
C.その他の実施形態
次に、本発明の他の実施形態について説明する。前述した第1、第2実施形態では、プラテンカバーの原稿押え面または自動原稿搬送装置(ADF)のベルト12に形成された着色領域3は、副走査方向にのみ形成されていた。これに対して、他の実施形態では、自動原稿搬送装置(ADF)のベルト12に、主走査方向原稿端もしくは副走査方向原稿端を検出可能に着色領域3が形成されている。例えば、図56に示す画像読取装置は、自動原稿搬送装置(ADF)を備えるもので、APSセンサ8を備えていない。また、着色領域3は、副走査方向に沿って形成された第1の着色領域3aと、主走査方向に所定の間隔で形成された第2の着色領域3bとからなる。第1の着色領域3aは、上述した第1、第2実施形態と同じで、原稿の副走査方向長さを検出するためのものである。また、着色領域3bは、読み取り対象となる原稿の副走査方向長さの最小値よりも短い間隔で形成されている。また、第1の着色領域3aおよび第2の着色領域3bは、図示されていないベルト部分にも、周回するように形成されている。したがって、ベルト12が原稿搬送のために回転しても、常に、第1の着色領域3aおよび第2の着色領域3bが原稿押え面に現れるとともに、最小原稿であっても、着色領域3bの間隔が副走査方向長さの最小値よりも短いので、着色領域3bが原稿によって遮蔽されるので、確実に原稿サイズを検知することができる。また、第2の着色領域3bは、原稿の主走査方向長さを検出するためのものであり、原稿の主走査方向長さを検出する際には、前述した第1、第2実施形態における副走査方向長さを検出した方法と同様の処理により、第2の着色領域3bを用いて、主走査方向長さを検出するようになっている。すなわち、原稿サイズが定形サイズであるか非定形サイズであるかは、原稿の主走査方向長さと副走査長さとを実際に検出することにより、判別するようになっている。
【0101】
また、着色領域3は、図57に示すように、自動原稿搬送装置(ADF)のベルト12に所定の間隔で、かつ所定の角度で斜めに形成されていてもよい。この場合も、着色領域3は、図示されていないベルト部分にも、周回するように形成されており、ベルト12が原稿搬送のために移動しても、常に、原稿押え面に現れるようになっている。この場合、着色領域3の原稿面による遮断位置が不定となる可能性があるが、着色領域3の幅、間隔に応じて検出位置を設定すれば、前述した手法により十分対応することが可能である。
【0102】
なお、上述した実施形態では、予備走査を行うことにより、副走査方向の原稿端を検出して副走査方向の原稿サイズを検出したが、これに限らず、原稿画像を読み取る本走査後、読み取った画像情報から主走査方向または副走査方向のいずれか一方、あるいは双方の原稿端を検出し、原稿サイズを認識するようにしてもよい。また、原稿が定形サイズであるか否かを判定する際に、主走査方向の原稿サイズと副走査方向側に備えられたAPSセンサ8の出力とを用いたが、主走査方向にもAPSセンサを設け、双方のAPSセンサの出力に基づいて、原稿が定形か非定形かを判定するようにしてもよい。特に、図2または図51に示すようなADFを備える画像読取装置においては、一般的に、ADFを用いて主走査、副走査の原稿サイズを検知するAPSセンサがADF上に設けられている場合もあるので、このような場合には、ADF上のAPSセンサにより、主走査方向の原稿サイズを検知するようにしてもよい。
【0103】
また、上述した実施形態では、原稿の副走査方向における原稿端を検出するために形成された着色領域の形状は、図57を除いて、原稿の副走査方向に平行する直線状の形態としたが、これに限らず、プラテンカバー4(もしくはADF11)を閉じた状態においてプラテンガラス2上に載置された原稿Aで遮蔽され、少なくとも原稿Aの副走査方向における対向する原稿端から現れるように形成されていればよく、図58(a)に示すように、主走査方向にずらしながら断続的に副走査方向に延びる着色領域3としたり、図58(b)に示すように、主走査方向に蛇行するような着色領域3としてもよい。図58(a),(b)に示す着色領域3は、ADFを備える画像読取装置、ADFを備えない画像読取装置のいずれの場合でも適用可能である。
【0104】
【発明の効果】
以上、説明したように、発明によれば、ベルト状搬送部材により原稿を搬送する原稿搬送手段を備える画像読取装置であっても、非定形の原稿サイズを検出することが可能となる。また、ベルト状搬送部材の原稿押え面を白地にすることができ、パンチ穴等を持つ原稿や透過性の高い原稿についても良好な読取画像を得ることができる。
【0105】
また、発明によれば、原稿が定形サイズであれば、読取手段の予備走査による副走査による副走査方向の原稿サイズ検出が必要なくなるので、原稿サイズ検出時間を短縮することができるという利点が得られる。また、原稿覆い手段の原稿押え面を白地にすることができるため、パンチ穴等を持つ原稿や透過性の高い原稿についても良好な読取画像を得ることができるとともに、非定形サイズの原稿でも原稿サイズを高精度で検出することができるという利点が得られる。
【0106】
また、発明によれば、原稿覆い手段の原稿押え面を白地にすることができ、パンチ穴等を持つ原稿や透過性の高い原稿についても良好な読取画像を得ることができるとともに、複数の着色領域を形成することにより、より高精度で原稿サイズを検出することができるという利点が得られる。
【図面の簡単な説明】
【図1】 本発明の第1実施形態による画像処理装置(プラテンカバー)の構成を示すブロック図である。
【図2】 本発明の第1実施形態による画像読取装置(ADF)の外観を示す斜視図である。
【図3】 本第1実施形態による画像読取装置の読取原理を説明する概念図である。
【図4】 本第1実施形態による画像読取装置のプラテンカバーを説明する図である。
【図5】 本第1実施形態の全体構成を示すブロック図である。
【図6】 原稿サイズ検知部の内部構成を示すブロック図である。
【図7】 主走査方向サイズ検知の際の画像読取位置を示す概念図である。
【図8】 主走査方向開時エッジ検出ルーチンおよび主走査方向閉時エッジ検出ルーチンの動作を説明するための概念図である。
【図9】 原稿サイズ判定に用いるテーブルを示す表図である。
【図10】 副走査方向エッジ検出における着目画素例を示す概念図である。
【図11】 副走査方向エッジ検出ルーチンの動作を説明するための概念図である。
【図12】 原稿サイズ検知方式の全体の流れを説明するためのフローチャートである。
【図13】 定形サイズ検出ルーチンを説明するためのフローチャートである。
【図14】 主走査方向開時エッジ検出ルーチン(1/2)を説明するためのフローチャートである。
【図15】 主走査方向開時エッジ検出ルーチン(2/2)を説明するためのフローチャートである。
【図16】 主走査方向閉時エッジ検出ルーチン(1/2)を説明するためのフローチャートである。
【図17】 主走査方向閉時エッジ検出ルーチン(2/2)を説明するためのフローチャートである。
【図18】 プラテン開時の各画素判定ルーチンを説明するためのフローチャートである。
【図19】 プラテン閉時の各画素判定ルーチンを説明するためのフローチャートである。
【図20】 主走査方向エッジ判定ルーチンを説明するためのフローチャートである。
【図21】 主走査方向エッジ判定ルーチンを説明するためのフローチャートである。
【図22】 定形サイズ検出ルーチンを説明するためのフローチャートである。
【図23】 副走査方向の原稿端検出ルーチンを説明するためのフローチャートである。
【図24】 副走査方向エッジ検出ルーチンを説明するためのフローチャートである。
【図25】 副走査方向エッジ検出ルーチンを説明するためのフローチャートである。
【図26】 各ライン判定ルーチンを説明するためのフローチャートである。
【図27】 各ライン判定ルーチンを説明するためのフローチャートである。
【図28】 原稿サイズ判断ルーチンを説明するためのフローチャートである。
【図29】 動作説明に用いた変数を示す表図である。
【図30】 動作説明に用いた変数を示す表図である。
【図31】 閾値の設定方法および原稿領域検出を説明するための概念図である。
【図32】 主走査方向における原稿端の検出動作(1/2)を説明するための概念図である。
【図33】 主走査方向における原稿端の検出動作(2/2)を説明するための概念図である。
【図34】 主走査方向における原稿開始端および終了端の検出動作(1/2)を説明するための概念図である。
【図35】 主走査方向における原稿開始端および終了端の検出動作(2/2)を説明するための概念図である。
【図36】 主走査方向における原稿開始端の検出例を示す概念図である。
【図37】 主走査方向における原稿終了端の検出動作(1/2)を説明するための概念図である。
【図38】 主走査方向における原稿終了端の検出動作(2/2)を説明するための概念図である。
【図39】 主走査方向エッジ判定動作(1/3)を説明するための概念図である。
【図40】 主走査方向エッジ判定動作(2/3)を説明するための概念図である。
【図41】 主走査方向エッジ判定動作(3/3)を説明するための概念図である。
【図42】 各ライン判定ルーチンで用いる閾値を説明するための概念図である。
【図43】 ライン判定動作を説明するための概念図である。
【図44】 ライン判定ルーチンにおける動作を説明するための概念図である。
【図45】 副走査方向における原稿端の検出動作(1/2)を説明するための概念図である。
【図46】 副走査方向における原稿端の検出動作(2/2)を説明するための概念図である。
【図47】 副走査方向における原稿開始端の検出例を示す概念図である。
【図48】 副走査方向における原稿終了端の検出例(1/2)を示す概念図である。
【図49】 副走査方向における原稿終了端の検出例(2/2)を示す概念図である。
【図50】 本発明の第2実施形態による画像読取装置の概観構成を示す斜視図である。
【図51】 本発明の第2実施形態による画像読取装置の概観構成を示す斜視図である。
【図52】 第2実施形態における原稿サイズ判定に用いるテーブルを示す表図である。
【図53】 第2実施形態における原稿サイズ検知(メインルーチン)を説明するためのフローチャートである。
【図54】 第2実施形態における主走査方向原稿端検出ルーチンを説明するためのフローチャートである。
【図55】 第2実施形態における原稿サイズ判断ルーチンを説明するためのフローチャートである。
【図56】 本発明の他の実施形態による画像読取装置(プラテンカバー)の概観を示す斜視図である。
【図57】 本発明の他の実施形態による画像読取装置(ADF)の概観を示す斜視図である。
【図58】 本発明の他の実施形態による着色領域例を示す概念図である。
【符号の説明】
1、10 画像読取装置
2 プラテンガラス(原稿台)
3 着色領域
4 プラテンカバー(原稿覆い手段)
5 開閉センサ
6 角度センサ
7 キャリッジ(読取手段)
8 APSセンサ(原稿検出手段)
9 光電変換素子(読取手段)
11 自動原稿絹送装置(原稿搬送手段)
12 ベルト(ベルト状搬送部材)
20 画像読取制御部(定形サイズ判別手段、演算手段)
28 画像処理部
29 原稿サイズ検知部(第1の検出手段、第2の検出手段)
35 主走査方向検知画素判定部(第1の検出手段)
36 副走査方向検知ライン判定部(第2の検出手段)
37 原稿端検出部(第1の検出手段、第2の検出手段)
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image reading apparatus that detects a document size.
[0002]
[Prior art]
In a conventional image reading apparatus such as a copying machine, in order to detect a non-standard document size, a preliminary scan is performed before a main scan of the document reading, and image information is read to read the document in the main scanning and sub-scanning directions. The size was detected. At this time, in order to ensure sufficient contrast between the document and the document pressing surface and to improve the detection accuracy, the document pressing surface is colored in a mirror surface or black. For this reason, in a document with holes such as punch holes, the hole portion is reproduced in black, or when the document is placed skewed, the margin around the document is reproduced in black. Further, in the case of a highly transparent document such as OHP, the background becomes foggy due to the influence of the color of the document pressing surface. In order to obtain a good read image for such a perforated document or a highly transmissive document, it is necessary to take measures such as placing a blank sheet on the back of the document, which deteriorates operability.
[0003]
In view of this point, various proposals have been made for making the document pressing surface white. For example, in Japanese Patent Laid-Open No. 3-53272, a colored belt-like pattern is provided one by one in the main scanning and sub-scanning directions of the document pressing surface, and an area where these belt-like patterns are hidden by the placed document is pre-scanned. A method for detecting the document size and determining the document size has been proposed. In Japanese Patent Laid-Open No. 9-65063, a colored belt-like pattern is provided only in the sub-scanning direction, an area where the belt-like pattern is hidden by the placed document is detected by preliminary scanning, and the document size (in the sub-scanning direction) is detected. A method for determining (size) has been proposed.
[0004]
[Problems to be solved by the invention]
However, since the method disclosed in Japanese Patent Laid-Open No. 3-53272 needs to provide a belt-like pattern also in the main scanning direction, it is applicable to an image reading apparatus including an automatic document feeder having a belt-like document feeder. Difficult to do. In order to apply this, it is necessary to control the position of the belt-shaped document conveying member, resulting in a problem of increased costs. In the method disclosed in Japanese Patent Laid-Open No. 9-65063, it is possible to detect the length of the document in the sub-scanning direction, but since there is no means for detecting the length in the main scanning direction, the length and width of the document are not There is a problem that it is not possible to detect a non-standard document size having no size correlation.
[0005]
In any of the prior arts, in order to detect the document size, preliminary scanning is performed for a standard-sized document, so that it takes time and the document size is determined by extracting one band-shaped pattern. Therefore, there is a problem that erroneous determination may occur when image information of similar colors is present at the document edge.
[0006]
The present invention has been made in view of the above-described circumstances, can reduce the document size detection time, can be applied to an automatic document feeder having a belt-like document feeder, and is inexpensive. Therefore, an object of the present invention is to provide an image reading apparatus capable of detecting a document size with high accuracy even if it is an irregular size.
[0007]
[Means for Solving the Problems]
To solve the problems mentioned above, Book invention Image reading device Includes at least a document table placed on the document table, and includes a document table on which the document is placed and a belt-shaped conveyance member that covers and places the document at a predetermined position on the document table. A document covering means having a colored region formed over the circumference of the belt-like conveying member at a position shielded by the belt-like conveying member, and a reading means for reading image information in the main scanning direction on the document, Fixed size determining means for determining whether or not the document has a fixed size; First detection means for detecting a document edge in the main scanning direction of the document from image information read by the reading means; If the standard size determining means determines that the document has a non-standard size, While the original is covered by the original covering means, the image information is read while moving the reading means in the sub-scanning direction, and it is determined whether or not the image information includes the image information of the colored area. A second detecting means for detecting the document edge in the sub-scanning direction;
The document size is recognized based on the document end in the main scanning direction of the document detected by the first detection unit and the document end in the sub-scanning direction of the document detected by the second detection unit. And a recognition means.
Ah Alternatively, the image reading apparatus of the present invention includes an original table on which an original is placed, and a belt-like conveying member that conveys and places the original at a predetermined position on the original table, and covers the original. Position shielded by the document placed on the document table Range that does not cover punched holes in the original A document covering means having a colored region formed over the circumference of the belt-shaped conveying member, a reading means for reading image information in the main scanning direction of the document, and an image of the document from the image information read by the reading means. The image information is read while moving the reading means in the sub-scanning direction in a state where the original is covered by the first detection means for detecting the document edge in the main scanning direction and the document covering means, and the image information Determining whether or not the image information of the colored area is included in the second detection means for detecting the document edge in the sub-scanning direction, and main scanning of the document detected by the first detection means. Recognizing means for recognizing the document size based on the document edge in the direction and the document edge in the sub-scanning direction of the document detected by the second detecting means. That.
Ah Alternatively, the image reading apparatus of the present invention includes an original table on which an original is placed, and a belt-like conveying member that conveys and places the original at a predetermined position on the original table, and covers the original. Position shielded by the document placed on the document table The area that does not cover the print area of the original A document covering means having a colored region formed over the circumference of the belt-shaped conveying member, a reading means for reading image information in the main scanning direction of the document, and an image of the document from the image information read by the reading means. The image information is read while moving the reading means in the sub-scanning direction in a state where the original is covered by the first detection means for detecting the document edge in the main scanning direction and the document covering means, and the image information Determining whether or not the image information of the colored area is included in the second detection means for detecting the document edge in the sub-scanning direction, and main scanning of the document detected by the first detection means. Recognizing means for recognizing the document size based on the document edge in the direction and the document edge in the sub-scanning direction of the document detected by the second detecting means. That.
According to the present invention, even if the belt-shaped conveying member rotates during automatic document conveyance, the colored region always appears on the document pressing surface. Therefore, the colored region can be easily formed and the cost of the document covering unit can be reduced. It becomes possible to make the document pressing surface white. For this reason, it is possible to obtain a good read image even for a document having a punch hole or the like or a highly transparent document, and it is possible to detect the document size with high accuracy at low cost.
[0008]
In order to solve the above problems, Book invention Image reading device Is provided so as to be openable and closable with respect to the document table on which the document is placed, and is shielded by the document placed on the document table in the closed state, at least facing the document in the sub-scanning direction. Document covering means having a colored area formed so as to appear from the document edge, reading means for reading image information in the main scanning direction of the document, and fixed size determining means for determining whether or not the document is a fixed size A first detection unit that detects a document edge in the main scanning direction of the document from the image information read by the reading unit, and the standard size determination unit that determines that the document is a non-standard size. The image information is read while moving the reading means in the sub-scanning direction in a state where the original is covered by the original covering means, and the image of the colored area is read by the image information. Determining whether or not information is included, a second detection means for detecting a document edge in the sub-scanning direction, a document edge in the main scanning direction of the document detected by the first detection means, Recognizing means for recognizing the document size based on the document edge in the sub-scanning direction of the document detected by the second detection means.
According to the present invention, since the document pressing surface of the document covering means can be made white, it is possible to obtain a good read image even for a document having a punch hole or the like or a highly transmissive document. Therefore, it is possible to detect a non-standard size with high accuracy at low cost.
[0009]
In order to solve the above-described problems, an image reading apparatus according to the present invention is provided with an original table on which an original is placed, an openable and closable position with respect to the original table, and the original table in a closed state. A document covering unit having a plurality of colored areas formed at least in the sub-scanning direction of the document, a reading unit for reading image information in the main scanning direction of the document, and the document having a fixed shape A fixed size determining means for determining whether the image is a size; a first detecting means for detecting a document edge in the main scanning direction of the document from the image information read by the reading means; and the fixed size determining means. When it is determined that the original is an irregular size, the image information is obtained while moving the reading unit in the sub-scanning direction while the original is covered by the original covering unit. The second detection means for detecting the document edge in the sub-scanning direction and the first detection means by determining whether or not the plurality of colored area patterns are included in the image information. Recognizing means for recognizing the document size based on the detected document edge in the main scanning direction of the document and the document edge in the sub-scanning direction of the document detected by the second detection means; It is characterized by.
Alternatively, the image reading apparatus of the present invention is provided with an original table on which an original is placed and an openable / closable with respect to the original table, and is shielded by an original placed on the original table in a closed state, Document covering means having a plurality of colored areas formed at different widths or intervals over at least the sub-scanning direction of the document, reading means for reading image information in the main scanning direction of the document, and image information read by the reading means From the first detection means for detecting the document edge of the document in the main scanning direction and the document covering means for reading the image information while moving the reading means in the sub-scanning direction. Determining whether or not the image information includes a pattern of the plurality of colored regions, and detecting a document edge in a sub-scanning direction; Recognition means for recognizing the document size based on the document end in the main scanning direction of the document detected by the detection means and the document end in the sub-scanning direction of the document detected by the second detection means; It is characterized by comprising.
This According to this invention, since the document pressing surface of the document covering means can be made white, it is possible to obtain a good read image even for a document having punch holes or the like and a highly transmissive document. By forming a plurality of colored regions, it is possible to detect the document size with higher accuracy.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Next, an embodiment of the present invention will be described with reference to the drawings.
A. First embodiment
A-1. Configuration of the first embodiment
FIG. 1 is a perspective view showing an appearance of the image reading apparatus according to the first embodiment of the present invention. In FIG. 1, an image reading apparatus 1 includes a platen glass 2 for placing a document, a platen cover 4 having a document pressing surface on which a plurality of colored regions 3 are formed, and an open / close sensor 5 that detects opening and closing of the platen cover 4. An angle sensor 6 that detects that the platen cover 4 is at a predetermined angle with respect to the platen glass 2, a carriage 7 that is mounted with illumination and mirrors and is movable in the sub-scanning direction, and whether or not the document is a standard size. It comprises an APS sensor 8 for detection, a photoelectric conversion unit 9 for converting image information of a document from light to an electrical signal, and the like.
[0011]
FIG. 2 is a perspective view showing an appearance of an image reading apparatus including a belt-type automatic document feeder (ADF) according to the first embodiment of the present invention. It should be noted that portions corresponding to those in FIG. In FIG. 2, in this embodiment, the image reading apparatus 10 includes a belt type automatic document feeder (ADF) 11 instead of the platen cover 3, and a plurality of colored regions 3 circulate on the surface of the belt 12. Are formed continuously. The continuous formation of the colored region 3 facilitates the formation of the colored region 3, eliminates the need for position control of the belt 12, and reduces the cost. In addition, the colored region 3 is preferably formed in a portion of the belt 12 where there are no wrinkles or satin in order to maintain the uniformity of the colored region 3 and increase the accuracy of size detection. The colored region 3 may be formed at a position away from a document conveyance driving roller (not shown) of the automatic document conveyance device (ADF) 11 in the main scanning direction. In this case, dirt attached to the roller is conveyed. It is possible to prevent the belt 12 from adhering to the original.
[0012]
FIG. 3 is a conceptual diagram illustrating the reading principle of the image reading apparatus according to the first embodiment. Note that portions corresponding to those in FIG. 1 or FIG. In the figure, the carriage 7 includes a full-rate carriage 7a that moves in the sub-scanning direction shown at a predetermined scanning speed and a half-rate carriage 7b that moves in the sub-scanning direction shown at half the scanning speed. The full-rate carriage 7a includes an illumination unit 15 that irradiates the lower surface of the document A (hereinafter referred to as document surface) placed on the platen glass 2, and a first light that causes reflected light from the document surface to enter the half-rate carriage 7b. And a mirror 16. The half rate carriage 7b includes a second mirror 17a and a third mirror 17b for guiding reflected light from the document surface to the lens. The illumination unit 15 of the full-rate carriage 7a irradiates the document surface, and the reflected light is reflected by the first mirror 16 and enters the second mirror 17a of the half-rate carriage 7b. The reflected light entering the second mirror 17a forms an image on the lens 18 through the third mirror 17b. The reflected light imaged by the lens 18 enters the photoelectric conversion element 19. The photoelectric conversion element 19 is a color CCD or the like, and converts incident reflected light into three types of RGB electrical signals. As described above, the carriage 7 (full-rate carriage 7a, half-rate carriage 7b) is movable in the sub-scanning direction, and reads image information on the document surface by moving in the sub-scanning direction while irradiating the document surface. It is possible.
[0013]
FIG. 4 is a view for explaining the platen cover of the image reading apparatus according to the first embodiment. FIG. 4A is a front view of the platen cover 4 as viewed from the front. The document pressing surface of the platen cover is entirely white, but a plurality of colored regions 3 are continuously formed in the sub-scanning direction on the document pressing surface as shown in FIG. FIG. 4B is a transparent view showing a state where the platen cover 4 is closed and combined with the platen glass 2. The plurality of colored regions 3 are formed so as to fall within a predetermined range in the main scanning direction from the registration position (original placement reference point) P of the platen glass 2 facing each other. Specifically, it is formed in a range that does not overlap a punch hole that is formed when the original is bound or a print area in the original. As described above, by forming the colored region 3 so as to be located at the end portion on the registration position P side, it is possible to reduce the influence on the in-document information when performing color copying on a highly transmissive document.
[0014]
Each of the plurality of colored regions 3 has a predetermined width d1 to d3, and is formed with predetermined intervals s1 to s3 between the colored regions. In this way, each colored area 3 is set to a predetermined width d1 to d3, and intervals between the colored areas are set to specific distances s1 to s3, respectively, so that the same color pattern as the colored pattern is detected in the sub-scanning direction size detection. The probability of detecting information is reduced, and the accuracy of size detection is improved. Moreover, even if the position covered by the opening and closing of the platen cover 4 is shifted, the total width of the coloring region 3 is allowed to exceed the shift in the main scanning direction of the platen cover 4. The plurality of colored regions 3 are formed of a color material having specific brightness and chromaticity. By coloring with specific brightness and chromaticity, the probability of detecting in-document information of the same color as that of the colored region 3 in the sub-scanning direction size detection is reduced, and the accuracy of size detection is improved. Here, if the plurality of colored areas 3 are yellow, the colored areas 3 are not detected when the original is read in the black and white mode, so that there is an advantage that the original image is not affected. Further, if the colored region 3 is a mirror surface, there is an advantage that the influence of show-through can be reduced when a highly transmissive original is read. The plurality of colored regions 3 may be formed of color materials having different brightness and chromaticity. By making each colored region a different color, the probability of detecting in-document information having the same coloring pattern as the colored region in sub-scanning direction size detection is reduced, and the accuracy of size detection is improved. The coloring region 3 described above is the same when applied to the belt-type automatic document feeder (ADF) 10 shown in FIG.
[0015]
FIG. 5 is a block diagram showing the overall configuration of the first embodiment. The image reading control unit 20 controls each block of the image reading device according to a predetermined program stored in the ROM 21. The illumination control unit 22 performs an ON / OFF operation of the illumination unit 23 in accordance with a command from the image reading control unit 20. The scanning control unit 24 moves the carriage 7 in the sub-scanning direction by transmitting and driving a scanning unit driving signal to the stepping motor 25 in accordance with a command from the image reading control unit 20. The moving distance of the carriage 7 is proportional to the number of pulses of the scanning means driving signal. The photoelectric conversion unit 26 converts the received image information into three types of RGB electrical signals and transmits them to the analog correction and shading correction unit 27. The analog correction and shading correction unit 27 performs processing such as AGC (automatic gain control) and AOC (automatic offset control) on the electrical signals of the three kinds of RGB noodles, and then performs A / D conversion. Convert from analog value to multi-value information and implement shading correction.
[0016]
The image processing unit 28 converts the multi-value information of RGB into L * a * b * It is assumed that the image information is composed of brightness and chromaticity. In addition, the image processing unit 28 has a correction function for removing image information in a predetermined area where the colored area 3 is formed in accordance with an instruction from a user interface unit (not shown). By performing the correction function, it is possible to remove the show-through of the colored area that occurs when the transparent original is color-copied, and a good read image can be obtained. Further, the use of the above correction processing may be made selectable by the user, and the user can determine the removal of the image information in the predetermined area. If there is necessary document information up to the document edge, the document information Can be prevented from being removed. The document size detection unit 29 * a * b * According to the multi-value information, the start and end edges of the document in the main scanning direction and the sub-scanning direction are detected and stored. The image information transmitted from the photoelectric conversion unit 26 to the document size detection unit 29 is synchronized with a pixel synchronization signal that is a pixel-by-pixel synchronization signal and a main scanning line synchronization signal that is a line-by-line synchronization signal. Each sensor 30 is the above-described opening / closing sensor 5, angle sensor 6, APS sensor 8, or the like.
[0017]
FIG. 6 is a block diagram showing an internal configuration of the document size detection unit described above. When detecting the size in the main scanning direction, the image processing unit 28 * Are supplied to the main scanning direction detection pixel determination unit 35. The main scanning direction detection pixel determination unit 35 * Is compared with the threshold value stored in the threshold value storage unit 38 for each pixel, and it is determined whether each pixel is a document area candidate or a candidate outside the document area. The binarized information indicating whether or not is supplied to the document edge detection unit 37. When detecting the size in the sub-scanning direction, the image processing unit 28 * a * b * Is supplied to the sub-scanning direction detection line determination unit 36. The sub-scanning direction detection line determination unit 36 * a * b * Are compared with the threshold value stored in the threshold value storage unit 38, and based on the comparison result, it is determined whether each line is a candidate for the document area or a candidate outside the document area. The binarized information indicating whether or not is supplied to the document edge detection unit 37.
[0018]
The document edge detection unit 37 performs a filtering process for removing the influence of dust and the like from the binarized information supplied from the main scanning direction detection pixel determination unit 35 and the sub-scanning direction detection line determination unit 36, A document start end and end end in the main scanning direction and a document start end and end end in the sub scanning direction are detected. The detection result storage unit 39 stores detection results (a document start end and end end in the main scanning direction and a document start end and end end in the sub-scanning direction). The image reading control unit 20 reads the document start end and end end in the main scanning direction and the document start end and end end in the sub-scanning direction stored in the detection result storage unit 39, and determines the document size according to these.
[0019]
FIG. 7 is a conceptual diagram showing the image reading position when detecting the size in the main scanning direction. Reading is performed at a position where the original on the platen glass 2 side can be recognized from the registration position P. This position is set as the home position HP of the carriage 7, and the carriage 7 always waits at this position and waits for a copying operation. Thereby, it is not necessary to move the carriage 7 when detecting the size in the main scanning direction, and it is possible to detect the size quickly.
[0020]
A-2. Operation of the first embodiment
A-2-1. Overview of operation
Next, the operation (document size detection) of the first embodiment described above will be described.
First, the user opens the platen cover 4 and places the document A on the platen glass 2. After placing the document A, the platen cover 4 is closed. At this time, document detection by the APS sensor 8 and size detection in the main scanning direction are performed. Document detection by the APS sensor 8 is performed in two stages described below, and after detecting the output of the APS sensor 8, it is determined whether or not the document A is placed based on a predetermined determination criterion. In addition, the size detection in the main scanning direction corresponds to the size detection of various originals such as black originals and black petty originals as well as white originals. After detecting the start end and the end end, it is determined which detection result is used based on a predetermined determination criterion.
[0021]
First, when the angle sensor 6 detects that the platen cover 4 is at a predetermined angle with respect to the platen glass 2, irradiation by the illumination unit 15 is started, and image information is read after a predetermined time. Here, in the case of a white original, as shown in FIG. 8A, the light irradiated on the original area is reflected, but the light irradiated outside the original area is hardly reflected. The reflected light is converted into an electric signal by the photoelectric conversion unit 9 and, based on comparison with a predetermined threshold, it is determined that the document area is at the white level and outside the document area is at the black level. That is, it is possible to determine that the position where the black level has changed to the white level is the original start edge in the main scanning direction, and the position where the white level has changed to the black level is the original edge in the main scanning direction. At this time, the output (output at the time of opening) of the APS sensor 8 is detected and stored.
[0022]
Next, when the open / close sensor 5 detects that the platen cover 4 is completely closed with respect to the platen glass 2, the image information is read again. Here, as shown in FIG. 8B, even if the original is a black document, the light irradiated to the document area is not reflected, but the light irradiated to the outside of the document area is reflected by the document pressing surface of the platen cover 4. The The reflected light is converted into an electrical signal by the photoelectric conversion unit 9, and the original area is determined to be a black level and the outside of the original area is determined to be a white level by comparison with a threshold value. That is, it can be determined that the position at which the white level has changed to the black level is the document start end in the main scanning direction, and the position at which the black level has changed to the white level is the document end end in the main scanning direction. Here, the positions of the document start end and end end can be quantified by counting the number of pulses of the pixel synchronization signal. Further, by setting the threshold values used in the above two steps to different values, it is possible to improve the detection accuracy for the intermediate color level around the threshold values (described later). At this time, the output (closed output) of the APS sensor 8 is detected and stored.
[0023]
When the illumination by the illuminating unit 15 is completed, first, which of the two types of detected original start and end ends in the main scanning direction is used is determined based on a predetermined determination criterion. Determine (details will be described later). In this way, the document start end and end end in the main scanning direction are detected. Next, the length of the original in the main scanning direction is calculated from the difference between the original start end and the end in the main scanning direction, and the presence / absence of the original is determined according to the difference between the open output and the close output of the APS sensor 8 described above. At the same time, if there is a document on the APS sensor 8, it is applied to a table as shown in FIG. 9, and it is determined whether it is a standard size or non-standard size, and if it is a standard size, what size it is. In this way, the size of the document can be detected.
[0024]
Next, when the user presses a start button (not shown), if it is already detected that the size is a standard size by the above-described processing, the document size detection processing is terminated and a normal copy operation is executed. On the other hand, if it is detected by the above-described processing that the size is a non-standard size, a preliminary scan (pre-scan) for performing size detection in the sub-scanning direction is performed. In the image information read by the preliminary scanning, it is determined whether or not the coloring pattern of the coloring area 3 is detected in each line for a predetermined area in the main scanning direction where the coloring area 3 is formed. At this time, the coloring pattern may be detected by comparing all the pixels in the predetermined region in the main scanning direction with the threshold value, or the coloring pattern may be detected by comparing only the pixel of interest at a predetermined interval with the threshold value. In the latter case, as shown in FIG. 11A, the amount of information to be processed is greatly increased by setting the target pixel position near the both ends inside each colored region 3 and near both ends outside each colored region 3. Can be reduced. In addition, as shown in FIG. 11B, the center of each colored region 3 and the center between each colored region may be set as the target pixel position in consideration of the formation error of the colored region 3 and the mounting error of the platen cover 4. In this way, by setting the pixel of interest in the main scanning direction at the center between each colored region 3 and each colored region 3, even if a deviation such as a formation error of the colored region 3 or an attachment error of the platen cover 4 occurs, It becomes possible to detect the colored region 3 correctly. Further, since only the center between each colored area 3 and each colored area is detected, the amount of information handled can be greatly reduced. Each pixel to be compared here is compared with a threshold value of chromaticity and / or lightness to determine whether the color is equivalent to that of the colored region 3. When detecting the size in the sub-scanning direction, by using chromaticity and / or lightness as a determination criterion for image information, the color determination of the read pixel can be performed accurately, and the accuracy of the size detection can be improved.
[0025]
In the original area, as shown in FIG. 10, since the colored area 3 is hidden by the original A, the colored pattern cannot be detected. Conversely, since the colored area 3 is not hidden by the original A outside the original area, the colored pattern can be detected. That is, it can be determined that the position where the coloring pattern is no longer detected is the document start end in the sub-scanning direction, and the position where the coloring area 3 starts to be detected is the document end end in the sub-scanning direction. The positions of the document start end and end end can be quantified by counting the number of pulses of the main scanning line synchronization signal or counting the number of pulses of the scanning means driving signal. By detecting the document length in the sub-scanning direction by counting the number of pulses of the main scanning line synchronization signal or the number of pulses of the scanning means driving signal, there is no need to provide a new document length detection means, and the existing configuration It can be realized as it is.
[0026]
In this way, the document start end and end end in the sub-scanning direction are detected. Next, the document length in the sub-scanning direction is calculated from the difference between the document start end and the end in the sub-scanning direction. In this way, even if the document is non-standard, the size of the document can be detected from the document length in the main scanning direction and the document length in the sub-scanning direction already calculated by the above-described processing.
[0027]
Moreover, the correction process which removes the image information of the predetermined area | region in which the said colored area is formed can be implemented by a user selecting with the user interface part which is not illustrated. This is to remove the colored region 3 that shows through when a highly transmissive original is read in the color mode.
[0028]
A-2-2. Detailed operation
Next, an example of automatic document size detection in the image reading apparatus according to the first embodiment will be described with reference to a flowchart. Here, the image reading apparatus is equipped with the platen cover 4 and the registration position P is a corner registration. The coloring pattern detection method at the time of sub-scanning direction size detection is a method in which all pixels in a predetermined determination region are compared and determined with a threshold value. A list of various variables used in the following description is shown in FIGS.
[0029]
(1) Main routine
First, the overall flow of the document size detection method will be described with reference to the flowchart shown in FIG. First, in step Sa1, the user selects an automatic document size selection mode. The automatic document size selection mode may be initialized and the selection of this mode may be omitted. If the automatic document size detection mode is selected, the process proceeds to step Sa3. On the other hand, if it is not selected, the process proceeds to step Sa2, and the document size input by the user is sent to a document size determination routine which will be described later. However, the description is omitted here because it falls outside the gist of the present invention.
[0030]
Next, in step Sa3, the user opens the platen cover 4 to place the document A, and waits until the angle of the platen cover 4 with respect to the platen glass 2 increases and the angle sensor 6 is turned off. Then, when the user opens the platen cover 4 to place the document A and the angle sensor 6 is turned off, the routine proceeds to a routine for detecting a standard size in step Sa4. In the standard size detection routine, it is determined whether the original A is non-standard or standard, and if it is a standard, it corresponds to which standard size. Details of the fixed size detection routine will be described later. Next, in step Sa5, the process waits until the start button is pressed by the user. When the start button is pressed, the process proceeds to step Sa7. On the other hand, if not pressed, the process proceeds to step Sa6.
[0031]
In step Sa6, when the platen cover 4 is opened and reaches a predetermined angle from the platen glass 2 during the standby in step Sa5, the angle sensor 6 is turned off and the process returns to step Sa3. After this, the routine proceeds to step S3 and again returns to the standard size detection routine Sa4. On the other hand, if the platen cover 4 remains closed, the process proceeds to step Sa5 and waits until the start button is pressed.
[0032]
Next, in step Sa7, according to the determination result in step Sa4, it is determined whether or not it is a standard size. If it is a standard size, the document size detection is terminated at this point. On the other hand, if it is a non-standard size, it will progress to step Sa8. In step Sa8, it is determined whether the document presence / absence detection flag F0 is “1”. The document presence / absence detection flag F0 is set to “1” when it is determined in step Sa4 that the document A is placed on the platen glass 2. If the document presence / absence detection flag F0 is not “1”, it is determined that the document A is not placed, and the process proceeds to the abnormality processing routine Sa9 to notify the occurrence of an abnormality (error).
[0033]
On the other hand, if the document presence / absence detection flag F0 is “1”, it is determined that the document A is placed, the process proceeds to step Sa10, and the process proceeds to a sub-scanning direction document end detection routine. In the sub-scanning direction document end detection routine, the document start end and end end in the sub-scanning direction are detected. The details of the sub-scanning direction document edge detection routine will be described later. Next, in step Sa11, the process proceeds to a document size determination routine. In the original size determination routine, the length of each side of the original is calculated according to the original start end and end end in the main scanning direction and the original start end and end end in the sub-scanning direction, and the original size is detected. The details of the original size determination routine will be described later.
[0034]
(2) Routine size detection routine
Next, details of the standard size detection routine will be described. Here, FIG. 13 is a flowchart for explaining a routine for detecting a fixed size. First, in step Sb1, it is determined whether or not the angle sensor is on. When the user places the document A on the platen glass 2 and closes the platen cover 4, the angle sensor 6 is turned on when the platen cover 4 is at a predetermined angle with respect to the platen glass 2. Proceed to step Sb2. In step Sb2, irradiation of the document surface is started by the illumination unit on the carriage 7 waiting at a predetermined position. Next, in step Sb3, the process waits until a predetermined time T1 has elapsed. The fixed time T1 is a time until the irradiation light quantity is stabilized. When the predetermined time T1 has elapsed, the process proceeds to step Sb4, and it is determined whether or not the open / close sensor 5 is closed. Here, when it is detected that the platen cover 4 is completely closed until the predetermined time T1 elapses and the open / close sensor 5 is closed, the process proceeds to an abnormality processing routine of step Sb5. Therefore, the fixed time T1 needs to be determined in consideration of the variation in the closing time of the platen cover 4 and the period until the irradiation light quantity is stabilized.
[0035]
On the other hand, if the open / close sensor 5 is not closed, the routine proceeds to the edge detection routine in the main scanning direction opening at step Sb6. As shown in FIG. 8A, the main scanning direction open edge detection routine is a routine for reading image information with the platen cover 4 still open, and detecting the document edge in the main scanning direction from the image information. is there. At this time, due to the floating of the platen cover 4, the irradiation light is not reflected in the area outside the original and does not enter the photoelectric conversion element 9. Therefore, the area outside the document is determined to be a black level. Details of the edge detection routine at the time of opening in the main scanning direction will be described later. Next, in step Sb7, the output (open output) of the APS sensor 8 is detected and stored.
[0036]
Next, in step Sb8, the process waits until it is detected that the platen cover 4 is completely closed and the open / close sensor 5 is closed. When the open / close sensor 5 is closed, the process proceeds to step Sb9, and the process proceeds to a main scanning direction closing edge detection routine which will be described later. As shown in FIG. 8B, the main scanning direction closing edge detection routine is a routine for reading image information in a state where the platen cover 4 is closed, and detecting the document edge in the main scanning direction from the image information. At this time, since the platen cover 4 is completely closed, the irradiation light is reflected even in the area outside the original and enters the photoelectric conversion element 9. Therefore, the area outside the document is determined as the white level. Next, in step Sb10, the output (closed output) of the APS sensor 8 is detected and stored. Then, irradiation by the illumination part 15 is complete | finished by step Sb11. Next, in step Sb12, the process proceeds to a main scanning direction edge detection routine which will be described later. The main scanning direction edge detection routine is a routine for selecting one close to the correct value from the two types of document start and end edges in the main scanning direction detected in steps Sb6 and Sb9. Here, the correct value means that the document size is such that the image size in the document is not lost by erroneous detection that the document size is smaller than the actual document size. In this routine, the start end and end end in the main scanning direction are determined. Next, in step Sb13, the routine proceeds to a fixed size determination routine. In the standard size determination routine, according to the document start end and end end in the main scanning direction and the output result of the APS sensor 8, whether or not the document A is regular or non-standard, and if it is regular The document size is specified. The details of the fixed size determination routine will be described later.
[0037]
(3) Main scanning direction open edge detection routine
Next, details of the edge detection routine at the time of opening in the main scanning direction will be described. Here, FIG. 14 and FIG. 15 are flowcharts for explaining the main scanning direction open edge detection routine. First, in step Sc1, a counter C1 that counts the number of pixels in the main scanning direction, a counter C4 that indicates the number of consecutive detections of document area candidates, and a counter C5 that indicates the number of consecutive detections of candidates outside the document area are reset. Is set to “0”. Next, in step Sc2, the count storage unit XstartFS1 for storing the count value at the document start end and the count storage unit XendFS1 for storing the count value at the end end are initially set to “0” and “FSmax”, respectively. “FSmax” is the maximum number of pixels in the main scanning direction. Next, in step Sc3, the flag FstartFS1 indicating that the final data is stored in the count storage unit XstartFS1 and the flag FendFS1 indicating that the final data is stored in the count storage unit XendFS1 are reset. 0 ”.
[0038]
Next, in step Sc4, the transition to the next pixel is awaited. The trigger for the transition is performed by detecting the input of the pixel synchronization signal. When the trigger is input, the process proceeds to step Sc5, and the counters C1, C4, and C5 are each incremented by “1”. Next, in step Sc6, the process proceeds to each pixel determination routine. In the pixel determination routine, each pixel in the main scanning direction is compared with a threshold value, and it is determined whether each pixel is a document area compensation or a document area outside candidate.
[0039]
Here, each pixel determination routine will be described in detail. Here, FIG. 18 is a flowchart for explaining each pixel determination routine. First, in step Se1, a flag FthFS indicating a pixel determination result is reset, and the value is set to “0”. Next, at step Se2, for example, as shown in FIG. * The threshold THL * Compare with FS1. Read data L * Is the threshold THL * If it is smaller than FS1, the process proceeds to step Se3. If it is larger, the process exits from this routine and proceeds to step Sc7 shown in FIG. Outside the document area, the illumination of the platen cover 4 is not reflected, so that the illumination light is not reflected and the brightness is close to black. Threshold THL * As shown in FIG. 31, FS1 is set to a value that can reliably determine the black level outside the document area and that is closest to the black level. This is to increase the margin for intermediate colors. Therefore, the read data L * Is the threshold THL * If it is smaller than FS1, it can be determined that the pixel is outside the document area. In step Se3, the flag FthFS indicating the pixel determination result is set to “1”. This indicates that this pixel is a candidate outside the document area. Then, the process exits from this routine and proceeds to step Sc7 shown in FIG.
[0040]
In step Sc7 of FIG. 14, it is determined whether the flag FthFS is “1”. If the flag FthFS is “1 (outside original area candidate)”, the process proceeds to step Sc8. If the flag FthFS is “0 (original area candidate)”, the process proceeds to step Sc13 shown in FIG. Here, as shown in FIG. 36C, when the document is placed slightly apart from the registration position P in the main scanning direction and a candidate outside the document area is detected, the process proceeds to step Sc8. In step Sc8, it is determined whether or not the value of the flag FstartFS1 indicating that the last data has been stored in the document start edge count storage unit XstartFS1 is “1”. If the flag FstartFS1 is “1”, the process proceeds to step Sc9. If the flag FstartFS1 is “0”, the process proceeds to Step Sc12 shown in FIG. At this time, since the final data is not stored in the count storage unit XstartFS1, the process proceeds to step Sc12. In step Sc12, the counter C4 indicating the number of times of continuous detection of the document area candidate is reset, and the value is set to “0”. Next, in step Sc18, it is determined whether or not the counter C1 that counts the number of pixels in the main scanning direction is the same value as the main scanning direction pixel number maximum value FSmax. If they are the same value, the process proceeds to step Sc19, and if they are different, the process returns to step Sc4. Here, since the final end has not been reached and the values are different, the process returns to step Sc4.
[0041]
Thereafter, the above-described loop is repeated until a document area candidate is detected. Then, as shown in FIG. 36C, when the document area candidate is detected after several pixels, the flag FthFS becomes “1”, so that the process proceeds from step Sc7 to step Sc13 shown in FIG. In step Sc13, it is determined whether or not the value of the flag FstartFS1 indicating that the final data is stored in the count storage unit XstartFS1 is “1”. If the flag FstartFS1 is “1”, the process proceeds to Step Sc17. On the other hand, if the flag FstartFS1 is “0”, the process proceeds to step Sc14. This is for omitting the document start end detection processing subsequent to steps Sc14 to Sc16 after the final data is stored in the start end count storage unit XstartFS1. At this time, since the final data is not stored in the start end count storage unit XstartFS1, the process proceeds to step Sc14.
[0042]
In step Sc14, it is determined whether or not the value of the counter C4 indicating the number of times of continuous detection of the document area candidate is the same value as the threshold value THedgFS1. If both values are the same, the process proceeds to step Sc15, and if they are different, the process proceeds to Sc17. This is a process for recognizing a document area for the first time when a document area candidate is continuously detected the number of times of the threshold THedgFS1, as shown in FIGS. 32, 33, and 36C. This is added to prevent erroneous detection of dust on the outside as the document start end. Therefore, the threshold value THedgFS1 needs to be set in consideration of the size of dust or the like adhering to the outside of the document area. Here, it is assumed that the value of the counter C4 is “1” and is smaller than the threshold value THedgFS1, and the process proceeds to step Sc17. In step Sc17, the counter C5 indicating the number of consecutive detections of candidates outside the document area is reset and the value is set to “0”. Next, in Step Sc18, as described above, it is determined whether or not the counter C1 that counts the number of pixels in the main scanning direction has the same value as the main scanning direction pixel number maximum value FSmax. In this case, since the values are different, the process returns to step Sc4.
[0043]
Hereinafter, in the process of repeating the loop described above for each pixel, as shown in FIG. 36C, the document area candidate is ignored by the number of times of the threshold THedgFS1, in other words, dust or the like adhering to the outside of the document area may be ignored. If it is detected continuously as much as possible, the process proceeds to step Sc14. In this case, since the value of the counter C4 is the same value as the threshold value THedgFS1, the process proceeds to step Sc15. In step Sc15, the value of (C1-C4 + 1) is stored in the document start end count storage unit XstartFS1. This is to correct this because the value of the counter C1 for counting the number of pixels has advanced by (C4-1) from the actual document end. Next, in step Sc16, the value of the flag FstartFS1 indicating that the final data is stored in the document start end count storage unit XstartFS1 is set to “1”. At this time, the document start end in the main scanning direction opening edge detection routine is determined. In step Sc17, as described above, the counter C5 indicating the number of consecutive detections of candidates outside the document area is reset, and the value is set to “0”. Next, in step Sc18, the counter C1 for counting the number of pixels in the main scanning direction is the same value as the main scanning direction pixel number maximum value FSmax. In other words, the counter C1 reaches the main scanning direction pixel number maximum value FSmax. Determine whether or not. In this case, both values are different, that is, since the maximum number of pixels FSmax in the main scanning direction has not been reached, the process returns to step Sc4.
[0044]
As shown in FIG. 32, FIG. 33 and FIG. 36B, for example, it is assumed that a document area candidate of continuous THedgFS 1 pixel or less is detected from the registration position P to the document start end. In this case, since the value of the counter C4 indicating the number of times of continuous detection of the document area candidate returns to the outside of the document area before reaching the threshold value THedgFS1, the start edge is stored in the document start edge count storage unit × startFS1. Absent. That is, a document area candidate whose number of continuous detections is equal to or less than the threshold THedgFS1 pixel is ignored, and erroneous detection of the start end due to dust or the like outside the document area is prevented. Further, as shown in FIG. 36A, even when the document A is pressed against the corner register and the document area is compensated from the top line, the start end can be detected accurately.
[0045]
Thereafter, in the process of repeating the loop described above for each pixel, as shown in FIGS. 32 and 33, when a document area outside candidate is detected in a certain pixel, the final data is stored in the document start end count storage unit XstartFS1 in this case. Since the flag FthFS indicating that this has been done is “1”, the process proceeds from step Sc7 to step Sc8. Further, since the value of the flag FstartFS1 is “1”, the process proceeds to Step Sc9. In step Sc9, it is determined whether the value of the counter C4 indicating the number of continuous detections of the document area compensation is larger than the threshold value THedgFS1. As shown in FIGS. 32 and 33, this is processing for determining that the document area candidate detected up to this point is not the dust or the like outside the document area but the document area. In order to prevent erroneous detection of the dust edge as the document end edge in Sc10, which will be described later. Here, it is assumed that the value of the counter C4 is larger than the threshold value THedgFS1, and the process proceeds to step Sc10.
[0046]
In step Sc10, it is determined whether the value of the counter C5 indicating the number of consecutive detections of candidates outside the document area is the same value as the threshold value THedgFS2. If they are the same value, the process proceeds to step Sc11, and if they are different, the process proceeds to step Sc18. As shown in FIGS. 32 and 33, this is a process for recognizing the outside of the document area for the first time when the candidate outside the document area is continuously detected the number of times of the threshold THedgFS2. Very similar in-document information is added to prevent erroneous detection as the end of the document. For this reason, the threshold value THedgFS2 needs to be set in consideration of the size of the in-document information. In this case, the value of the counter C5 is “1” and is smaller than the threshold value THedgFS2, and the process proceeds to step Sc18. In this case, since the counter C1 that counts the number of pixels in the main scanning direction and the maximum number of pixels FSmax in the main scanning direction are not reached, the process returns to step Sc4.
[0047]
Thereafter, the above loop is repeated for each pixel. In this process, as shown in FIGS. 32 and 33, when the document area outside candidate is continuously detected by the number of times of the threshold value THedgFS2, the value of the counter C5 indicating the number of continuous detection of the document area outside candidate is the threshold value THedgFS2. Since the values are the same, the process proceeds from step Sc10 to step Sc11. In step Sc11, the value of (C1-C5) is stored in the document end edge count storage section × endFS1. This is to correct this because the value of the counter C1 for counting the number of pixels is advanced by the value of the counter C5 with respect to the actual end point. However, unlike the start end, as shown in FIGS. 32 and 33, there is a possibility that the detected information outside the document area is in-document information exceeding the threshold value THedgFS2, so that the final data at the end end of the document is stored. Do not set a flag. Therefore, when the outside of the document area is detected again after detecting the document area, the document end edge count storage unit XendFS1 is updated. Next, in step Sc12, the counter C4 indicating the number of times of continuous detection of the document area candidate is reset, and the value is set to “0”. Then, the process proceeds to step Sc18. In this case, the counter C1 that counts the number of pixels in the main scanning direction does not reach the maximum value FSmax in the main scanning direction, and thus returns to step Sc4.
[0048]
Here, as shown in FIGS. 32 and 33, it is assumed that the document area extrapolation of continuous THedgFS 2 pixels or less is detected in the document area. In this case, since the value of the counter C5 indicating the number of consecutive detections of candidates outside the document area returns to the document area before reaching the threshold value THedgFS2, the end edge is not stored in the document end edge count storage unit XendFS1. In other words, candidates outside the document area whose number of continuous detections is equal to or less than THedgFS2 pixels are ignored, and erroneous detection of the end edge due to in-document information very similar to the lightness outside the document area is prevented.
[0049]
Thereafter, the above loop is repeated for each pixel. In this process, it is assumed that the document area is detected again and reaches the true end edge pixel. From the next pixel after the end edge pixel, the candidate outside the document area is detected again. When the value of the counter C5 indicating the number of consecutive detections of candidates outside the document area reaches the threshold THedgFS2, as described above, the value of (C1-C5) is updated in the document end edge count storage unit XendFS1 in step Sc11. To do.
[0050]
Then, as shown in FIGS. 32 and 33, for example, it is assumed that a document area compensation equal to or less than the continuous THedgFS1 line is detected between the document end edge and the main scanning direction pixel number maximum value FSmax. In this case, since the value of the counter C4 indicating the number of times of continuous detection of the document area candidate returns to the outside of the document area again before reaching the threshold value THedgFS1, the end edge is not stored in the document end edge count storage unit XstartFS1. . That is, a document area candidate whose number of continuous detections is equal to or less than THedgFS is ignored, and erroneous detection of the end edge due to dust or the like outside the document area is prevented.
[0051]
Thereafter, the above loop is repeated for each pixel. In this process, as shown in FIGS. 32 and 33, when the main scanning direction pixel number maximum value FSmax is reached, the process advances to step Sc18. In this case, since the counter C1 that counts the number of pixels in the main scanning direction has the same value as the main scanning direction pixel number maximum value FSmax, the process proceeds to step Sc19. In step Sc19, it is determined whether or not the value of the counter C4 indicating the number of consecutive detections of the document area candidate is larger than the threshold value THedgFS1. If the value of the counter C4 is larger than the threshold value THedgFS1, the process proceeds to step Sc20, and if smaller, the process proceeds to step Sc21. For example, in the case as shown in FIGS. 37C and 38E, the value of the counter C4 is larger than the threshold value THedgFS1. On the other hand, in the case as shown in FIGS. 37A, 37B, 38D, 38F, the value of the counter C4 is smaller than the threshold value THedgFS1. In step Sc19, the number of pixels in the main scanning direction is determined when the value of the counter C5 indicating the number of consecutive detections of candidates outside the document area is smaller than the threshold value THedgFS2 after the document area ends, as shown in FIG. This corresponds to a special case where the maximum value FSmax is reached and the document end edge cannot be determined.
[0052]
In step Sc20, the value of (FSmax-C5) is stored in the document end edge count storage unit XendFS1. This corrects this because the end of the document area is ahead of the value C5 from the maximum pixel number FSmax in the main scanning direction. In step Sc21, a flag FendFS1 indicating that the final data is stored in the document end edge count storage unit XendFS1 is set to "1". At this point, the end of the document in the main scanning direction opening edge detection routine is determined.
[0053]
(4) Main scanning direction edge detection routine
Next, details of the closing edge detection routine in the main scanning direction will be described. Here, FIG. 16 and FIG. 17 are flowcharts for explaining the main scanning direction closed edge detection routine. The main scanning closing edge detection routine (step Sb9 in FIG. 13) is the main scanning opening edge detection routine (in FIG. 13) as shown in the flowcharts of FIGS. 16 and 17, respectively. Since the contents are almost the same as those in step Sb6), only the differences will be described. That is, steps Sd1 to Sd21 in FIGS. 16 and 17 correspond to steps Sc1 to Sc21 shown in FIGS. 14 and 15, respectively. The only difference is that in each pixel determination routine Sd6 (see FIG. 16) in the main scanning closing edge detection routine, as shown in FIG. 19, the read data of each pixel is set to the threshold value THL in step Sf2. * If it is larger than FS2, the process proceeds to step Sf3, where the flag FthFS is set to "1". Outside the document area, the platen cover 4 is completely closed, so that the irradiation light is completely reflected and the brightness is close to white. Therefore, the threshold THL * As shown in FIG. 31, FS2 is set to a value that can reliably determine the white level outside the document area and that is closest to the white level. This is to increase the margin for intermediate colors.
[0054]
(5) Main scanning direction edge determination routine
Next, details of the main scanning direction edge determination routine will be described. 20 and 21 are flowcharts for explaining the main scanning direction edge determination routine. First, in step Sg1, a document presence / absence flag F0 indicating that a document is placed on the platen glass 2 is reset, and the value is set to “0”. Next, in step Sg2, whether or not the value of the flag FstartFS1 indicating that the final data has been stored in the document start edge count storage unit XstartFS1 in the main scanning direction opening edge detection routine described above is “1”. Determine. If the value of the flag FstartFS1 is “1”, the process proceeds to step Sg3, and the flag indicating that the final data is stored in the document start end count storage unit XstartFS2 in the above-described main scanning direction closing edge detection routine. It is determined whether or not the value of FstartFS2 is “1”. If the value of the flag FstartFS2 is “1”, the process proceeds to step Sg4. Here, it is assumed that the final data is stored in the start edge count storage units XstartFS1 and XstartFS2 of each document, and the process proceeds to step Sg4.
[0055]
In step Sg4, it is determined that the document A is placed on the platen glass 2, and the value of the document presence / absence flag F0 is set to “1”. Next, in step Sg5, as shown in FIG. 39, the value of the document start end count storage unit XstartFS1 calculated by the main scanning direction opening edge detection routine is calculated by the main scanning direction closing edge detection routine. It is determined whether or not the value is smaller than the value of the start end count storage unit XstartFS2, and if smaller, the process proceeds to step Sg6, and if larger, the process proceeds to step Sg7. In step Sg6, the value of XstartFS1 is stored in the document start edge count storage unit XstartFS. On the other hand, in step Sg7, the value of XstartFS2 is stored in the document start edge count storage unit XstartFS. That is, the smaller value is stored in the document start end count storage unit XstartFS. Next, in step Sg8, as shown in FIG. 39, the value of the document end edge count storage unit XendFS1 calculated by the main scanning direction opening edge detection routine is calculated by the main scanning direction closing edge detection routine. It is determined whether or not the value of the end end count storage unit XendFS2 is larger. If it is larger, the process proceeds to step Sg9, and if smaller, the process proceeds to step Sg10. In step Sg9, the value of XendFS1 is stored in the document end edge count storage unit XendFS. On the other hand, in step Sg10, the value of XendFS2 is stored in the document end edge count storage unit XendFS. That is, the larger value is stored in the document end edge count storage unit XendFS.
[0056]
Next, in step Sg18, it is determined whether or not the value of the document start end count storage unit XstartFS is smaller than FSerr indicating the maximum allowable deviation amount in the main scanning direction. If it is smaller, the process exits from this routine and proceeds to the routine for determining the fixed size in step Sb13 shown in FIG. For example, when the document A is placed at a certain distance or more away from the registration position P in the main scanning direction, the area of the colored region 3 hidden by the document A decreases. For this reason, there is a possibility that correct detection cannot be performed in the sub-scanning direction document edge detection routine Sa10 after the end of the routine, and therefore, an abnormal processing routine is executed.
[0057]
On the other hand, in step Sg3, as shown in FIG. 40, for example, the brightness of all data in the document area of the read data is the threshold value THL. * If the value is higher than FS2, that is, if it is a white document, the value of the flag FstartFS2 indicating that the final data has been stored in the document start end count storage unit XstartFS2 is “0”, so the process proceeds to step Sg11 shown in FIG. move on. In step Sg11, it is determined that the document A is placed on the platen glass 2, and the value of the document presence / absence flag F0 is set to “1”. In step Sg12, the value of XstartFS1 is stored in the document start end count storage unit XstartFS. In step Sg13, the value of XendFS1 is stored in the document end edge count storage unit XendFS, and the process proceeds to step Sg18 described above.
[0058]
On the other hand, if the value of the flag FstartFS1 is “0” in step Sg2, the process proceeds to step Sg14. In step Sg14, it is determined whether or not the value of the flag FstartFS2 indicating that the last data has been stored in the document start edge count storage unit XstartFS2 in the main scanning direction closed edge detection routine is “1”. If the value of the flag FstartFS2 is “0”, it is determined that the document A is not placed, and the process exits this routine and proceeds to the routine for determining the standard size in step Sb13 shown in FIG. On the other hand, for example, as shown in FIG. 41, the brightness of all data in the document area of the read data is the threshold value THL. * If the value is lower than FS1, that is, if it is a black original, the value of the flag FstartFS2 is “1”, so the process proceeds to step Sg15. In step Sg15, it is determined that the document A is placed on the platen glass 2, and the value of the document presence / absence flag F0 is set to “1”. Next, in step Sg16, the value of XstartFS2 is stored in the document start edge count storage unit XstartFS. In step Sg17, the value of XendFS2 is stored in the document end edge count storage unit XendFS, and the process proceeds to step Sg18 described above.
[0059]
By the above-described processing, an original in which an image in the original is not lost by erroneously detecting that the original value is smaller than the actual original size among the two types of original start and end edges in the main scanning direction. A value that will be the size can be selected.
[0060]
(6) Routine size determination routine
Next, details of the standard size determination routine will be described. Here, FIG. 22 is a flowchart for explaining a routine for detecting a standard size. First, in step Sh1, it is determined whether or not the two outputs (open output and closed output) of the APS sensor 8 when the platen is open and when the platen is closed are different. If both outputs are the same, the process proceeds to step Sh2, and it is determined that there is a document on the APS sensor 8. On the other hand, if both outputs are different, the process proceeds to step Sh3, where it is determined that there is no document on the APS sensor 8. In step Sh4, the determination result of the APS sensor 8 and the main scanning direction length (document width) calculated from the document start end and end end in the main scanning direction determined in the main scanning direction edge determination routine described above are obtained. Referring to the table shown in FIG. 9, whether the original is a fixed form or an atypical form, and if it is a fixed form, the original size is specified.
[0061]
(7) Document edge detection routine in the sub-scanning direction
Next, the document end detection routine in the sub-scanning direction will be described in detail. The document edge detection in the sub-scanning direction is performed while reading image information by preliminary scanning. First, it is determined whether or not the determination result of each pixel in a specific area in the main scanning direction is the same as each expected value set in advance in the image information read by the preliminary scanning. . The specific region is a range including all of the plurality of colored regions 3 marked on the platen cover 4 from the registration position P in the main scanning direction. Next, the number of pixels determined to be the same as the expected value is counted, and when the count value exceeds a predetermined threshold, it is determined that the line is a candidate for a colored region. Conversely, if the threshold is not exceeded, it is determined that the line is a document area candidate. Also, instead of each expected value, the determination result of the previous line is stored, the number of pixels determined to be the same value as this is counted, and when this count value exceeds a predetermined threshold, If there is no edge between both lines and the threshold value is not exceeded, it may be determined that there is an edge between both lines. Here, explanation is advanced by the former method. The edge of the document in the sub-scanning direction is detected by detecting an edge between the determination results for each line obtained in this way. In addition, in the detection process, only when the same determination result is obtained continuously from the edge for a certain period or longer so that dust on the colored area and the color in the original area are not erroneously detected as the edge of the original, the colored area Alternatively, a filter function for determining the document area is added.
[0062]
Next, the sub-scanning direction document edge detection routine will be described in detail with reference to the drawings. FIG. 23 is a flowchart for explaining a document end detection routine in the sub-scanning direction. First, in step Si1, after the start button is pressed by the user in step Sa5 described above, the state of the open / close sensor 5 is checked. If it is detected that the open / close sensor 5 is open, the process proceeds to an abnormality processing routine in step Si10. On the other hand, if it is detected that the open / close sensor 5 is closed, the process proceeds to step Si2. In step Si2, irradiation is started by the illumination unit 15 of the full rate carriage 7a. Next, in step Si3, the process waits until a predetermined time T2 elapses. This is a period until the irradiation light quantity is stabilized. In step Si4, the carriage 7 starts to move in the sub-scanning direction. Next, at step Si5, the process proceeds to the sub-scanning direction edge detection routine. In the sub-scanning direction edge detection routine, the document start end and end end in the sub-scanning direction are detected. The details of the sub-scanning direction edge detection routine will be described later.
[0063]
Next, after stopping the carriage 7 in step Si6, the irradiation is terminated in step Si7. In step Si8, the carriage 7 is moved to the home position HP. Note that processing such as automatic color determination processing and density detection may be performed during this movement. Next, in step Si9, it is determined whether or not the value of the flag FstartSS indicating that the final data has been stored in the start edge count storage unit XstartSS in the sub-scanning direction of the document is “1”. If the value of the flag FstartSS is “1”, the process exits this routine and proceeds to the document size determination routine in step Sa11 shown in FIG. 12, and if it is “0”, the process proceeds to the abnormality processing routine in step Si10.
[0064]
(8) Sub-scanning direction edge detection routine
Next, the sub-scanning direction edge detection routine will be described in detail. 24 and 25 are flowcharts for explaining the sub-scanning direction edge detection routine. First, in step Sj1, a counter C2 that counts the number of lines in the sub-scanning direction, a counter C4 that indicates the number of continuous detections of original area candidates, and a counter C5 that indicates the number of continuous detections of coloring area candidates are reset. Set to “0”. Next, in step Sj2, “0” is initially set in the count storage unit XstartSS that stores the document start end in the sub-scanning direction, and SSmax is initialized in the count storage unit XendSS that stores the document end end in the sub-scanning direction. To do. SSmax is the maximum number of lines in the sub-scanning direction. Next, in step Sj3, the flag FstartSS indicating that the final data is stored in the count storage unit XstartSS and the flag FendSS indicating that the final data is stored in the count storage unit XendSS are respectively reset. 0 ”.
[0065]
Next, in step Sj4, a transition to the next line is awaited. The trigger for the transition is implemented by detecting the input of a line synchronization signal. When the trigger is input, the process proceeds to step Sj5, and the counters C2, C4, and C5 are each incremented by “1”. Next, in step Sj6, each line determination routine is executed. In each line determination routine, it is determined whether each pixel in the specific area described above is the same as each expected value set in advance corresponding to each pixel, and the number of pixels determined to be the same as the expected value is determined. Count. Further, the counted number of pixels is compared with a threshold value to determine whether this line is a color area candidate or a document area candidate.
[0066]
Here, each line determination routine will be described in detail. 26 and 27 are flowcharts for explaining each line determination routine. FIG. 42 is a conceptual diagram for explaining threshold values used in each line determination routine. FIG. 43 is a conceptual diagram for explaining each line determination operation, and FIG. 44 is a conceptual diagram for explaining the operation in each line determination routine. As shown in FIG. 43, in the following description, the operation of each line determination routine will be described using three lines L1, L2, and L3 as an example. Although the lines L1 and L2 are outside the document area, dust of a color clearly different from the colored area 3 exists on the platen glass 2 with respect to the line L2. Further, the line L3 is in the document area, but information in the document having the same color as the colored area 3 exists on the line L3.
[0067]
In each line determination routine, first, in step Sk1, the counter C1 and the counter C3 that count the number of pixels in the main scanning direction are reset, and the respective values are set to “0”. Here, the counter C3 counts the number of pixels that match the expected value Mn when comparing each expected value Mn set in advance for each pixel in the specific area with the determination result FthSS1 of each corresponding pixel. Is. Next, in step Sk2, the flag FthSS2 indicating the line determination result is reset, and its value is set to “0”. Next, in step Sk3, the transition to the next pixel is awaited. The trigger for the transition is performed by detecting the input of the video synchronization signal. And if a trigger is inputted, it will progress to Step Sk4.
[0068]
In step Sk4, the flag FthSS1 that is set to “1” is reset when the pixel has the same color as the colored region, and after that value is set to “0”, the number of pixels in the main scanning direction is counted in step Sk5. Counter C1 to be incremented by “1”. Next, in step Sk6, the expected value Mn is changed to an expected value corresponding to the read pixel. As shown in FIG. 44A, the expected value Mn is set in advance only in a specific region as “1” for the coloring region corresponding pixel and “0” for the other pixels. Next, in step Sk7, the read data is set to the threshold value THL. * Compare with Threshold THL * As shown in FIG. 42, a value that can detect the colored region 3 marked on the platen cover 4 is set. Read data L * Is the threshold THL * min to THL * If it is within the range up to max, the process proceeds to step Sk8, and if not, the process proceeds to step Sk11.
[0069]
Next, in step Sk8, the read data a * The threshold THa * Compare with Threshold THa * As shown in FIG. 42, a value that can detect the colored region 3 marked on the platen cover 4 is set. Read data a * Is the threshold THa * min to threshold THa * If it is within the range up to max, the process proceeds to Step Sk9, and if not, the process proceeds to Step Sk11. Next, in step Sk9, the read data b * The threshold THb * Compare with Threshold THb * As shown in FIG. 42, a value that can detect the colored region 3 marked on the platen cover 4 is set. Read data b * Is the threshold THb * min to threshold THb * If it is within the range up to max, the process proceeds to step Sk10, and if not, the process proceeds to step Sk11. Through steps Sk7 to Sk9 described above, the threshold value THL * , Threshold THa * , Threshold THb * If all the conditions are satisfied, that is, only when the color of the read data is close to the color of the colored region, the process proceeds to step Sk10.
[0070]
In step Sk10, the flag FthSS1 indicating the pixel determination result is set to “1”. This indicates that the pixel of interest has read in-document information of the color region 3 or a color close thereto. Here, the flag FthSS1 for the line L1 is as shown in FIG. 44 (b), and the flag FthSS1 for the line L2 is as shown in FIG. 44 (c). As shown in d). Next, in step Sk11 shown in FIG. 27, as shown in FIGS. 44B to 44D, the flag FthSS1 indicating the determination result of the pixel and the expected value Mn set for the pixel are the same value. It is determined whether or not. If both values are the same, the process proceeds to step Sk12, and after incrementing the counter C3 for counting the number of pixels having the same value as the expected value Mn by “1”, the process proceeds to step Sk13. On the other hand, if both values are different, the process proceeds to step Sk13 without incrementing the counter C3. In step Sk13, it is determined whether or not the value of the counter C1 that counts the number of pixels in the main scanning direction is smaller than the maximum value FSchk of the specific area. If it is smaller, the process returns to Step Sk3, and thereafter, the loop from Step Sk3 to Sk13 is repeated until the value of the counter C1 becomes the same value as the maximum value FSchk of the specific area. Each time, the determination result of each pixel is accumulated in the counter C3. Thus, when the value of the counter C1 exceeds the maximum value Fschk of the specific area, the process proceeds to step Sk14.
[0071]
In step Sk14, the value of the counter C3 is compared with the threshold value THsum for line determination. If the value of the counter C3 is equal to or greater than the threshold value THsum, the main line (for example, the lines L1 and L2 shown in FIGS. 44B and 44C) is determined to be a color region candidate, and the process proceeds to step Sk15. The flag FthSS2 indicating the line determination result is set to “1”. This indicates that this line has detected a colored region candidate. Then, the process exits from this routine and returns to step Sj7 shown in FIG.
[0072]
On the other hand, when the value of the counter C3 is smaller than the threshold value THsum, the main line (for example, the line L3 shown in FIG. 44D) is regarded as a document area candidate, and the flag FthSS2 is not set to “1”. Then, this routine is exited, and the process returns to step Sj7 shown in FIG. As shown in FIGS. 44B to 44D, the value of the counter C3 indicates how much each pixel of this line is equal to the expected value Mn. Therefore, if the value of the counter C3 is equal to or greater than the threshold value THsum, it means that the coloring area 3 on the platen cover 4 or in-document information very similar to the color and arrangement of the coloring area 3 is detected as a coloring area candidate. On the contrary, if the value of the counter C3 is lower than the threshold value THsum, it means that the document area or dust on the colored area 3 is detected as a document area candidate. In addition, even when a coloring area candidate is detected, all the pixels do not coincide with the expected value Mn due to the effect of mechanical deviation or minute dust on the coloring area 3, and the count value of the counter C3 is the maximum value. A slightly lower value than (exact match). The threshold value THsum needs to be set in consideration of this point.
[0073]
Again, the process returns to the sub-scanning direction edge detection routine shown in FIG. In step Sj7, it is determined whether or not the flag FthSS2 is “1”. Here, as shown in FIG. 47C, if the document A is placed slightly away from the registration position P in the sub-scanning direction and the color area compensation is detected, the flag FthSS2 becomes “1”. The process proceeds to step Sj8. In step Sj8, it is determined whether or not the value of the flag FstartSS indicating that the final data has been stored in the document start end count storage unit XstartSS is “1”. If the flag FstartSS is “1”, the process proceeds to step Sj9 shown in FIG. On the other hand, if the flag FstartSS is “0”, the process proceeds to step Sj12 shown in FIG. At this time, since the final data is not stored in the count storage unit XstartSS, the process proceeds to step Sj12. In step Sj12, the counter C4 indicating the number of consecutive detections of the document area candidate is reset, and the value is set to “0”. Next, in step Sj18, it is determined whether or not the counter C2 that counts the number of lines in the sub-scanning direction is the same value as the maximum value SSmax in the sub-scanning direction, that is, whether or not the last line has been reached. If it is the same value, it is determined that the final line has been reached, and the process proceeds to step Sj19. If the values are different, it is determined that the final line has not yet been reached, and the process returns to step Sj4. Here, since the values are different, the process returns to step Sj4.
[0074]
Thereafter, the above-described loop is repeated until a document area candidate is detected. For example, as shown in FIG. 47C, when a document area candidate is detected after several lines, the process proceeds to step Sj7. Here, since the document area candidate is detected, the flag FthSS2 becomes “0”, and the process proceeds to step Sj13 shown in FIG. In step Sj13, it is determined whether or not the value of the flag FstartSS is “1”. If the flag startSS is “1”, the process proceeds to step Sj17. If the flag FstartSS is “0”, the process proceeds to step Sj14. This is for omitting the document start end detection processing subsequent to steps Sj14 to Sj16 after the final data is stored in the start end count storage unit XstartSS. At the present time, since the final data is not stored in the count storage unit XstartSS, the process proceeds to step Sj14.
[0075]
In step Sj14, it is determined whether or not the value of the counter C4 indicating the number of consecutive detections of the document area candidate is the same value as the threshold value THedgSS1. If the values are the same, that is, if the document area candidate continues for the threshold THedgSS1 or more, the process proceeds to step Sj15. On the other hand, if the values are different, that is, if the document area candidate is not continuous for the threshold value THedgSS1 or more, the process proceeds to step Sj17. As shown in FIG. 46, this is a process for recognizing a document area as a document area for the first time when a document area candidate is continuously detected by the number of times of the threshold value THedgSS1. It is added to prevent misdetection. For this reason, the threshold value THedgSS1 needs to be set in consideration of the size of dust or the like adhering to the colored region. Here, it is assumed that the value of the counter C4 is “1” and is smaller than the threshold value THedgSS1, and the process proceeds to step Sj17. In step Sj17, the counter C5 indicating the number of times of continuous detection of the coloring area candidate is reset, and the value is set to “0”. Next, it progresses to step Sj18 mentioned above. Here, since the counter C2 for counting the number of lines in the sub-scanning direction and the sub-scanning direction line number maximum value SSmax are different values, that is, the final line has not been reached, the process returns to step Sj4.
[0076]
Thereafter, the above loop is repeated for each line. In this process, as shown in FIG. 47 (c), when the document area candidate is continuously detected by the number of times of the threshold THedgSS1, the process proceeds to step Sj14. In step Sj14, it is determined whether or not the value of the counter C4 indicating the number of consecutive detections of the document area candidate is the same value as the threshold value THedgSS1. Here, since the value of the counter C4 is the same value as the threshold value THedgSS1, the process proceeds to step Sj15. In step Sj15, the value of (C2-C4 + 1) is stored in the document start edge count storage unit XstartSS. This is to correct this because the value of the counter C2 that counts the number of lines has advanced by the value (C4-1) with respect to the actual end. Next, in step Sj16, the value of the flag FstartSS is set to “1”. This indicates that the final data is stored in the document start end count storage unit XstartSS. At this time, the starting end of the document in the sub-scanning direction is determined.
[0077]
Next, in step Sj17 described above, the counter C5 indicating the number of times of continuous detection of the coloring area candidate is reset, the value is set to “0”, and then the process proceeds to step Sj18. In this case, since the counter C2 that counts the number of lines in the sub-scanning direction and the maximum value SSmax in the sub-scanning direction are different, that is, the final line has not been reached, the process returns to step Sj4. As shown in FIG. 45, FIG. 46, and FIG. 47 (b), for example, it is assumed that a document area candidate whose number of continuous detections is less than or equal to the threshold THedgSS1 line from the registration position P to the document start end is detected. In this case, since the value of the counter C4 indicating the number of consecutive detections of the document area candidate returns to the colored area again before reaching the threshold value THedgSS1, the start edge is not stored in the document start edge count storage unit XstartSS. That is, document area candidates whose number of continuous detections is equal to or less than the threshold THedsSS1 line are ignored, and erroneous detection of the start edge due to dust on the colored area is prevented. In addition, as shown in FIG. 47A, even when the document is pressed against the corner register and the document area is compensated from the top line, the start end can be detected accurately.
[0078]
Next, in the process of repeating the loop described above for each line, as shown in FIGS. 45 and 46, if a colored area candidate is detected again in a certain line, the process proceeds to step Sj7. Here, since it is determined as a coloring region candidate, the flag FthSS2 is “1”, so the process proceeds to step Sj8. In step Sj8, it is determined whether or not the value of the flag FstartSS indicating that the final data has been stored in the document start end count storage unit XstartSS is “1”. Here, since the value of the flag FstartSS is “1”, the process proceeds to step Sj9 in FIG. In step Sj9, it is determined whether or not the value of the counter C4 indicating the number of consecutive detections of the document area candidate is larger than the threshold value THedgSS1. As shown in FIGS. 45 and 46, this is a process for determining that the detected original area candidate is not the dust on the colored area but the original area, and detects the dust on the colored area 3. This is to prevent erroneous detection of the dust edge as the document end edge in step Sj10 described later. Here, it is assumed that the value of the counter C4 is larger than the threshold value THedgSS1, and the process proceeds to step Sj10.
[0079]
In step Sj10, it is determined whether or not the value of the counter C5 indicating the number of continuous detections of the coloring area candidate is the same value as the threshold value THedgSS2. If both values are the same, the process proceeds to step Sj11, and if they are different, the process proceeds to step Sj18. As shown in FIGS. 45 and 46, this is a process for recognizing a colored area for the first time when the colored area compensation is continuously detected by the number of times of the threshold THedgSS2, and the color and arrangement of the colored area 3 This is to prevent erroneous detection of in-document information very similar to the end-of-document information. Therefore, the threshold value THedgSS2 needs to be set in consideration of the size of the in-document information. Here, it is assumed that the value of the counter C5 is “1” and is smaller than the threshold value THedgSS2, and the process proceeds to step Sj18. In this case, since the counter C2 that counts the number of lines in the sub-scanning direction is different from the maximum value SSmax in the sub-scanning direction, the process returns to step Sj4.
[0080]
Thereafter, the above loop is repeated for each line. In this process, as shown in FIG. 45 and FIG. 46, when the colored region candidate is continuously detected by the number of times of the threshold THedgSS2, the process proceeds from step Sj10 to step Sj11. In step Sj11, the value of (C2-C5) is stored in the document end edge count storage unit XendSS. This is to correct this because the value of the counter C2 for counting the number of lines is advanced by the value of C5 with respect to the actual end. However, unlike the document start end, as shown in FIG. 46, there is a possibility that the detected coloring area is in-document information exceeding the threshold value THedgSS2, so a flag indicating that the final data of the document end end is stored is set. Absent. Accordingly, when the coloring area is detected again after detecting the document area, the document end edge count storage unit XendSS is updated.
[0081]
Next, in step Sj12, the counter C4 indicating the number of times of continuous detection of the document area candidate is reset, the value is set to “0”, and the process proceeds to step Sj18. Here, since the counter C2 that counts the number of lines in the sub-scanning direction and the maximum value SSmax in the sub-scanning direction are different values, the process returns to step Sj4. As shown in FIGS. 45 and 46, for example, it is assumed that a colored area candidate having a number of continuous detections equal to or less than the threshold THedgSS2 line in the document area is detected. In this case, since the value of the counter C5 indicating the number of continuous detections of the coloring area candidate returns to the original area again before reaching the threshold edgSS2, the original end edge is not stored in the original end edge count storage unit XendSS. That is, the candidate for the colored area whose number of continuous detections is equal to or less than the threshold THedgSS2 line is ignored, and erroneous detection of the end edge due to the in-document information very similar to the color and arrangement of the colored area is prevented.
[0082]
Hereinafter, it is assumed that the loop described above is repeated for each line, and in this process, the original region is detected again and the true end line is reached. From the next line after the end line, the coloring area candidate is detected again. Then, when the value of the counter C5 indicating the number of continuous detections of the coloring area candidate reaches the threshold value THedgSS2, as described above, the value of (C2-C5) is updated in the document end edge count storage unit XendSS in step Sj11. . Thereafter, as shown in FIGS. 45 and 46, it is assumed that a document area candidate whose number of continuous detections is less than or equal to the threshold THedgSS1 line between the end of the document and the maximum value SSmax in the sub-scanning direction is detected. In this case, since the value of the counter C4 indicating the number of continuous detections of the document area candidate returns to the coloring area again before reaching the threshold value THedgSS1, the end edge is not stored in the document end edge count storage unit XstartSS. That is, the original area candidates below the continuous THedgSS1 line are ignored, and erroneous detection of the end edge due to dust on the colored area is prevented.
[0083]
Thereafter, the loop described above is repeated for each line, and as shown in FIGS. 45 and 46, when the process proceeds to the maximum value SSmax in the sub-scanning direction, the process proceeds to step Sj18. Here, since the counter C2 that counts the number of lines in the sub-scanning direction and the maximum value SSmax in the sub-scanning direction are the same value, the process proceeds to step Sj19. In step Sj19, it is determined whether or not the value of the counter C4 indicating the number of consecutive detections of the document area candidate is larger than the threshold value THedgSS1. If the value of the counter C4 is greater than the threshold value THedgSS1, the process proceeds to step Sj20, and if smaller, the process proceeds to step Sj21. For example, in the case of FIG. 48C and FIG. 49E, the value of the counter C4 is larger than the threshold value THedgSS1. On the other hand, in the case of FIGS. 48 (a), 48 (b), 49 (d), and (f), the value of the counter C4 is smaller than the threshold value THedgSS1. As shown in FIG. 48C, when the value of the counter C5 indicating the number of continuous detections of the colored area candidate is smaller than the threshold value THedgSS2 after the document area is finished, the maximum number of lines in the sub-scanning direction SSmax is obtained. This corresponds to a special case where the document end edge cannot be determined.
[0084]
If the value of the counter C4 is greater than the threshold value THedgSS1, the value of (SSmax−C5) is stored in the document end edge count storage unit XendSS in step Sj20. This is to correct the end of the document area because the counter line C5 is ahead of the maximum line number SSmax in the sub-scanning direction. Next, in step Sj21, a flag FendSS indicating that the final data is stored in the document end edge count storage unit × endSS is set to “1”. At this point, the document end edge in the sub-scanning direction is determined.
[0085]
With the above-described processing, the document start end and end end in the sub-scanning direction can be detected. In the document edge detection method in the sub-scanning direction described above, each line is colored by comparing the determination result of all pixels in a specific area in the main scanning direction with an expected value and comparing the same number with a predetermined threshold value. It is determined whether it is a region candidate or a document region candidate. Therefore, by providing several target pixels in the specific area and performing the above-described processing only for the target pixels, the amount of information to be handled can be reduced. For example, in order to handle the minimum necessary information constituting the coloring area pattern, as shown in FIG. 11A, the pixel of interest is set at both ends of each coloring area and at both ends of each coloring area interval. That's fine. In addition, when the accuracy is sufficient to avoid the need to detect the colored region pattern, as shown in FIG. 11B, the pixel of interest is set in the central portion of each colored region and the central portion of each colored region interval. By doing so, the amount of information handled can be further reduced. At this time, the width of each colored region and each colored region interval may be set in consideration of the formation error of the colored region and the mounting error of the platen cover. By reducing the amount of information by the method described above, it is possible to cope with speeding up.
[0086]
(9) Document size determination routine
Next, the document size determination routine described above will be described in detail. FIG. 28 is a flowchart for explaining the document size determination routine. First, in step Sm1, the length of the document in the main scanning direction is calculated from the difference between the value in the main scanning direction start end count storage unit XstartFS and the value in the main scanning direction end end count storage unit XendFS. Next, in step Sm2, the sub-scanning direction length is calculated from the difference between the value of the sub-scanning direction start end count storage unit XstartSS and the value of the sub-scanning direction end end count storage capital XendSS. As a result, even when the document has a non-standard size, the document size can be accurately detected.
[0087]
B. Second embodiment
Next, a second embodiment of the present invention will be described.
B-1. Configuration of the second embodiment
FIG. 50 or 51 is a perspective view showing a general configuration of an image reading apparatus according to the second embodiment of the present invention. It should be noted that portions corresponding to those in FIG. FIG. 50 shows an image reading apparatus in which the colored area 3 is formed on the document pressing surface of the platen cover, and FIG. 51 shows an image reading apparatus in which the colored area 3 is formed on the belt 12 of the automatic document feeder (ADF). In the first embodiment described above, the APS sensor 8 determines whether the size is the standard size or the non-standard size. If the size is the standard size, the document size is detected without detecting the length in the sub-scanning direction. It was finished. In the second embodiment, as shown in the figure, the present embodiment is applied to an image reading apparatus that does not include the APS sensor 8.
[0088]
B-2. Operation of the second embodiment
Next, the operation of the above-described second embodiment will be described.
B-2-1. Overview of operation
First, the user opens the platen cover 4 and places the document A on the platen glass 2. After placing the document A, the platen cover 4 is closed. At this time, size detection in the main scanning direction is performed. The size detection in the main scanning direction corresponds to the size detection of not only a white document but also various documents such as a black document and a black-sized document. After detecting the document start end and end end in the scanning direction, it is determined which detection result is used based on a predetermined determination criterion.
[0089]
First, when the angle sensor 6 detects that the platen cover 4 is at a predetermined angle with respect to the platen glass 2, irradiation by the illumination unit 15 is started, image information is read after a certain time, and the first main image is read. A document start end and document end end in the scanning direction are detected. Next, when the open / close sensor 5 detects that the platen cover 4 is completely closed with respect to the platen glass 2, the image information is read again, and the document start end and document end end in the second main scanning direction are read. Detected. When the illumination by the illuminating unit 15 is completed, first, which of the two types of detected original start and end ends in the main scanning direction is used is determined based on a predetermined determination criterion. decide. In this way, the document start end and end end in the main scanning direction are detected.
[0090]
Next, when the user presses a start button (not shown), a preliminary scan (pre-scan) for detecting the size in the sub-scanning direction is performed, and the document start end and end in the sub-scanning direction using the colored region 3 are performed. Detect the edge. Next, the main scanning direction original length is calculated from the difference between the original start end and the end end in the main scanning direction, and the sub scanning direction original length is calculated from the difference between the original start end and the end end in the sub scanning direction. Then, the size of the document is determined with reference to the table shown in FIG.
[0091]
B-2-2. Detailed operation
(1) Main routine
First, the overall flow of the document size detection method will be described with reference to the flowchart shown in FIG. First, in step Sn1, the user selects an automatic document size selection mode. The automatic document size selection mode may be initialized and the selection of this mode may be omitted. If the automatic document size detection mode is selected, the process proceeds to step Sn3. On the other hand, if it is not selected, the process proceeds to step Sn2, and the document size input by the user is sent to a document size determination routine which will be described later. However, the description is omitted here because it falls outside the gist of the present invention.
[0092]
Next, in step Sn3, the user opens the platen cover 4 to place the document A, and waits until the angle of the platen cover 4 with respect to the platen glass 2 increases and the angle sensor 6 is turned off. Then, when the user opens the platen cover 4 to place the document A and the angle sensor 6 is turned off, the process proceeds to the main scanning direction document end detection routine in step Sn4. In the main scanning direction document end detection routine, the start end and end end of the document A in the main scanning direction are detected. The details of the main scanning direction document edge detection routine will be described later. Next, in step Sn5, the process waits until the start button is pressed by the user. When the start button is pressed, the process proceeds to step Sn7. On the other hand, if not pressed, the process proceeds to step Sn6.
[0093]
In step Sn6, when the platen cover 4 is opened and reaches a predetermined angle from the platen glass 2 during the standby in step Sn5, the angle sensor 6 is turned off and the process returns to step Sn3. After this, the routine proceeds to step S3 and again to the standard size detection routine Sn4. On the other hand, if the platen cover 4 remains closed, the process proceeds to step Sn5 and waits until the start button is pressed.
[0094]
When the start button is pressed, it is determined in step Sn7 whether the document presence / absence detection flag F0 is “1”. The document presence / absence detection flag F0 is set to “1” when it is determined in step Sn4 that the document A is placed on the platen glass 2. If the document presence / absence detection flag F0 is not “1”, it is determined that the document A is not placed, and the process proceeds to the abnormality processing routine Sn8 to notify the occurrence of an abnormality (error).
[0095]
On the other hand, if the document presence / absence detection flag F0 is “1”, it is determined that the document A is placed, the process proceeds to step Sn9, and the process proceeds to the document end detection routine in the sub-scanning direction. In the sub-scanning direction document end detection routine, the document start end and end end in the sub-scanning direction are detected. Note that the details of the sub-scanning direction document edge detection routine are the same as those in the first embodiment described above, and a description thereof will be omitted. Next, in step Sn10, the process proceeds to a document size determination routine. In the original size determination routine, the length of each side of the original is calculated according to the original start end and end end in the main scanning direction and the original start end and end end in the sub-scanning direction, and the original size is detected. The details of the original size determination routine will be described later.
[0096]
(2) Main scanning direction document edge detection routine
Next, the main scanning direction document edge detection routine will be described in detail. FIG. 54 is a flowchart for explaining the main scanning direction document edge detection routine. First, in step Sp1, it is determined whether or not the angle sensor is on. When the user places the document A on the platen glass 2 and closes the platen cover 4, the angle sensor 6 is turned on when the platen cover 4 is at a predetermined angle with respect to the platen glass 2. Proceed to step Sp2. In step Sp2, irradiation of the document surface is started by the illumination unit on the carriage 7 waiting at a predetermined position. Next, in step Sp3, the process waits until a predetermined time T1 has passed. The fixed time T1 is a time until the irradiation light quantity is stabilized. When the predetermined time T1 has elapsed, the process proceeds to step Sp4, where it is determined whether or not the open / close sensor 5 is closed. Here, when it is detected that the platen cover 4 is completely closed until the predetermined time T1 elapses and the open / close sensor 5 is closed, the process proceeds to an abnormality processing routine of step Sp5.
[0097]
On the other hand, if the open / close sensor 5 is not closed, the routine proceeds to the edge detection routine in the main scanning direction opening in step Sp6. In the main scanning direction open edge detection routine, as shown in FIG. 8A, the image information is read with the platen cover 4 still open, and the document edge in the main scanning direction is detected from the image information. Since this is a routine and the same process as that of the first embodiment described above, a description thereof will be omitted. Next, in step Sn7, the process waits until it is detected that the platen cover 4 is completely closed and the open / close sensor 5 is closed. When the open / close sensor 5 is closed, the process proceeds to step Sn8, and the process proceeds to a closing edge detection routine in the main scanning direction. As shown in FIG. 8B, the main scanning direction closing edge detection routine reads image information with the platen cover 4 closed, and detects the document edge in the main scanning direction from the image information. Since this is the same processing as in the first embodiment described above, description thereof is omitted. Thereafter, in step Sp9, the irradiation by the illumination unit 15 is terminated, and in step Sp10, the process proceeds to the main scanning direction edge detection routine. The main scanning direction edge detection routine erroneously detects that the document size is smaller than the actual document size from the two types of document scanning start and end edges in the main scanning direction detected in steps Sp6 and Sp8. This is a routine for selecting a value close to the original size so that the in-original image is not lost. In this routine, the start end and end end in the main scanning direction are determined. Note that the main scanning direction edge detection routine is the same processing as that of the first embodiment described above, and thus the description thereof is omitted.
[0098]
(3) Document size determination routine
Next, the document size determination routine described above will be described in detail. FIG. 55 is a flowchart for explaining the document size determination routine. First, in step Sq1, the length of the document in the main scanning direction is calculated from the difference between the value in the main scanning direction start end count storage unit XstartFS and the value in the main scanning direction end end count storage unit XendFS. Next, in step Sq2, with reference to the table shown in FIG. 52, it is determined whether or not the calculated length in the main scanning direction is within the threshold range of each standard size. If the calculated length of the original document in the main scanning direction is within the threshold range, the process proceeds to step Sq3, where the difference between the value of the sub-scanning direction start end count storage unit XstartSS and the value of the sub-scanning direction end end count storage unit XendSS is obtained. From this, the length in the sub-scanning direction is calculated. Next, in step Sq4, with reference to the table shown in FIG. 52, it is determined whether or not the calculated length in the sub-scanning direction is within the threshold range of each standard size. If the calculated length of the original in the main scanning direction is within the threshold range, the process proceeds to step sq5, where it is determined that the size is the corresponding standard size. On the other hand, when the calculated main scanning direction length is not within the threshold range of each standard size, or when the calculated sub-scanning direction length is not within the threshold range of each standard size, the non-standard size is determined in step Sq6. It is determined that
[0099]
Thereby, it is possible to accurately detect the document size regardless of whether the document is a standard size or a non-standard size.
[0100]
C. Other embodiments
Next, another embodiment of the present invention will be described. In the first and second embodiments described above, the colored region 3 formed on the document pressing surface of the platen cover or the belt 12 of the automatic document feeder (ADF) is formed only in the sub-scanning direction. On the other hand, in another embodiment, the colored region 3 is formed on the belt 12 of the automatic document feeder (ADF) so that the document end in the main scanning direction or the document end in the sub-scanning direction can be detected. For example, the image reading apparatus shown in FIG. 56 includes an automatic document feeder (ADF) and does not include the APS sensor 8. The colored region 3 includes a first colored region 3a formed along the sub-scanning direction and a second colored region 3b formed at a predetermined interval in the main scanning direction. The first colored region 3a is the same as that in the first and second embodiments described above, and is for detecting the length of the document in the sub-scanning direction. The colored regions 3b are formed at intervals shorter than the minimum value of the length in the sub-scanning direction of the document to be read. Moreover, the 1st coloring area | region 3a and the 2nd coloring area | region 3b are formed so that it may also circulate also to the belt part which is not shown in figure. Therefore, even if the belt 12 rotates for conveying the original, the first colored area 3a and the second colored area 3b always appear on the original pressing surface, and the interval between the colored areas 3b even if it is the smallest original. Is shorter than the minimum value of the length in the sub-scanning direction, and the colored region 3b is shielded by the document, so that the document size can be reliably detected. The second colored region 3b is for detecting the length of the document in the main scanning direction. When detecting the length of the document in the main scanning direction, the second colored region 3b is the same as that in the first and second embodiments described above. The length in the main scanning direction is detected using the second colored region 3b by the same process as the method for detecting the length in the sub scanning direction. That is, whether the document size is a regular size or an atypical size is determined by actually detecting the length of the document in the main scanning direction and the sub-scanning length.
[0101]
Further, as shown in FIG. 57, the colored region 3 may be formed obliquely at a predetermined interval and at a predetermined angle on the belt 12 of the automatic document feeder (ADF). Also in this case, the colored region 3 is formed so as to circulate around a belt portion (not shown), so that the colored region 3 always appears on the document pressing surface even when the belt 12 moves for document conveyance. ing. In this case, there is a possibility that the blocking position of the colored area 3 by the original surface may be indefinite. However, if the detection position is set according to the width and interval of the colored area 3, it can be sufficiently handled by the above-described method. is there.
[0102]
In the above-described embodiment, the document edge in the sub-scanning direction is detected by performing the pre-scan to detect the document size in the sub-scanning direction. However, the present invention is not limited to this. The document size may be recognized by detecting one or both of the document edges in the main scanning direction and the sub-scanning direction from the image information. Further, when determining whether or not the document has a standard size, the document size in the main scanning direction and the output of the APS sensor 8 provided on the sub-scanning direction side are used, but the APS sensor is also used in the main scanning direction. The document may be determined based on the outputs of both APS sensors to determine whether the document is a regular or non-standard document. In particular, in an image reading apparatus having an ADF as shown in FIG. 2 or FIG. 51, in general, an APS sensor that detects the document size of main scanning and sub scanning using the ADF is provided on the ADF. In such a case, the document size in the main scanning direction may be detected by an APS sensor on the ADF.
[0103]
In the above-described embodiment, the shape of the colored region formed to detect the document edge in the sub-scanning direction of the document is a linear form parallel to the sub-scanning direction of the document, except for FIG. However, the present invention is not limited thereto, and is shielded by the document A placed on the platen glass 2 with the platen cover 4 (or ADF 11) closed, and appears at least from the opposite document edge in the sub-scanning direction of the document A. As shown in FIG. 58 (a), the colored region 3 may be intermittently extended in the sub-scanning direction while shifting in the main scanning direction, or as shown in FIG. 58 (b). It is good also as the coloring area | region 3 which meanders. The colored region 3 shown in FIGS. 58A and 58B can be applied to either an image reading apparatus having an ADF or an image reading apparatus not having an ADF.
[0104]
【The invention's effect】
As explained above, Book According to the invention, it is possible to detect a non-standard document size even in an image reading apparatus including a document transport unit that transports a document by a belt-shaped transport member. Further, the document pressing surface of the belt-like conveying member can be made white, and a good read image can be obtained even for a document having punch holes or the like and a highly transmissive document.
[0105]
Also, Book According to the invention, if the document is a standard size, it is not necessary to detect the document size in the sub-scanning direction by the sub-scanning by the pre-scanning of the reading unit, so that there is an advantage that the document size detection time can be shortened. In addition, since the document pressing surface of the document covering means can be white, it is possible to obtain a good read image even for a document having a punch hole or the like and a highly transmissive document. There is an advantage that the size can be detected with high accuracy.
[0106]
Also, Book According to the invention, the document pressing surface of the document covering means can be made white, and a good read image can be obtained even for a document having punch holes or the like and a highly transmissive document, and a plurality of colored regions can be obtained. By forming it, there is an advantage that the document size can be detected with higher accuracy.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an image processing apparatus (platen cover) according to a first embodiment of the present invention.
FIG. 2 is a perspective view showing an appearance of an image reading apparatus (ADF) according to the first embodiment of the present invention.
FIG. 3 is a conceptual diagram illustrating the reading principle of the image reading apparatus according to the first embodiment.
FIG. 4 is a diagram illustrating a platen cover of the image reading apparatus according to the first embodiment.
FIG. 5 is a block diagram showing an overall configuration of the first embodiment.
FIG. 6 is a block diagram illustrating an internal configuration of a document size detection unit.
FIG. 7 is a conceptual diagram showing an image reading position when detecting the size in the main scanning direction.
FIG. 8 is a conceptual diagram for explaining operations of an edge detection routine at the time of opening in the main scanning direction and an edge detection routine at the time of closing in the main scanning direction.
FIG. 9 is a table showing a table used for document size determination.
FIG. 10 is a conceptual diagram illustrating an example of a pixel of interest in sub-scanning direction edge detection.
FIG. 11 is a conceptual diagram for explaining the operation of a sub-scanning direction edge detection routine.
FIG. 12 is a flowchart for explaining the overall flow of a document size detection method;
FIG. 13 is a flowchart for explaining a fixed size detection routine;
FIG. 14 is a flowchart for explaining a main scanning direction open edge detection routine (1/2);
FIG. 15 is a flowchart for explaining a main scanning direction open edge detection routine (2/2);
FIG. 16 is a flowchart for explaining a main scanning direction closed edge detection routine (1/2);
FIG. 17 is a flow chart for explaining a main scanning direction closed edge detection routine (2/2).
FIG. 18 is a flowchart for explaining a pixel determination routine when the platen is opened.
FIG. 19 is a flowchart for explaining each pixel determination routine when the platen is closed;
FIG. 20 is a flowchart for explaining a main scanning direction edge determination routine;
FIG. 21 is a flowchart for explaining a main scanning direction edge determination routine;
FIG. 22 is a flowchart for explaining a standard size detection routine;
FIG. 23 is a flowchart for explaining a document end detection routine in the sub-scanning direction.
FIG. 24 is a flowchart for explaining a sub-scanning direction edge detection routine;
FIG. 25 is a flowchart for explaining a sub-scanning direction edge detection routine;
FIG. 26 is a flowchart for explaining each line determination routine;
FIG. 27 is a flowchart for explaining each line determination routine;
FIG. 28 is a flowchart for explaining a document size determination routine.
FIG. 29 is a table showing variables used to explain the operation.
FIG. 30 is a table showing variables used for operation description.
FIG. 31 is a conceptual diagram for explaining a threshold setting method and document area detection.
FIG. 32 is a conceptual diagram for explaining a document edge detection operation (1/2) in the main scanning direction.
FIG. 33 is a conceptual diagram for explaining a document edge detection operation (2/2) in the main scanning direction.
FIG. 34 is a conceptual diagram for explaining a document start end and end end detection operation (1/2) in the main scanning direction.
FIG. 35 is a conceptual diagram for explaining a document start end and end end detection operation (2/2) in the main scanning direction.
FIG. 36 is a conceptual diagram illustrating an example of detection of a document start end in the main scanning direction.
FIG. 37 is a conceptual diagram for explaining a document end edge detection operation (1/2) in the main scanning direction.
FIG. 38 is a conceptual diagram for explaining a document end edge detection operation (2/2) in the main scanning direction.
FIG. 39 is a conceptual diagram for explaining a main scanning direction edge determination operation (1/3);
FIG. 40 is a conceptual diagram for explaining a main scanning direction edge determination operation (2/3).
FIG. 41 is a conceptual diagram for explaining a main scanning direction edge determination operation (3/3);
FIG. 42 is a conceptual diagram for explaining a threshold value used in each line determination routine.
FIG. 43 is a conceptual diagram for explaining a line determination operation.
FIG. 44 is a conceptual diagram for explaining an operation in a line determination routine.
FIG. 45 is a conceptual diagram for explaining a document edge detection operation (1/2) in the sub-scanning direction.
FIG. 46 is a conceptual diagram for explaining a document edge detection operation (2/2) in the sub-scanning direction.
FIG. 47 is a conceptual diagram illustrating an example of detection of a document start end in the sub-scanning direction.
FIG. 48 is a conceptual diagram illustrating a detection example (1/2) of the document end edge in the sub-scanning direction.
FIG. 49 is a conceptual diagram illustrating a detection example (2/2) of the document end edge in the sub-scanning direction.
FIG. 50 is a perspective view showing a general configuration of an image reading apparatus according to a second embodiment of the present invention.
FIG. 51 is a perspective view showing a general configuration of an image reading apparatus according to a second embodiment of the present invention.
FIG. 52 is a table showing a table used for document size determination in the second embodiment.
FIG. 53 is a flowchart for explaining document size detection (main routine) in the second embodiment;
FIG. 54 is a flowchart for explaining a main scanning direction document end detection routine in the second embodiment;
FIG. 55 is a flowchart for explaining a document size determination routine in the second embodiment;
FIG. 56 is a perspective view showing an overview of an image reading apparatus (platen cover) according to another embodiment of the present invention.
FIG. 57 is a perspective view showing an overview of an image reading apparatus (ADF) according to another embodiment of the present invention.
FIG. 58 is a conceptual diagram illustrating an example of a colored region according to another embodiment of the present invention.
[Explanation of symbols]
1, 10 image reading device
2 Platen glass (original platen)
3 coloring area
4 Platen cover (document cover)
5 Open / close sensor
6 Angle sensor
7 Carriage (reading means)
8 APS sensor (document detection means)
9 Photoelectric conversion element (reading means)
11 Automatic document feeder (document feeder)
12 Belt (Belt-shaped conveying member)
20 Image reading control unit (standard size discrimination means, calculation means)
28 Image processing unit
29 Document size detector (first detection means, second detection means)
35 Main scanning direction detection pixel determination unit (first detection means)
36 Sub-scanning direction detection line determination unit (second detection means)
37 Document edge detection unit (first detection means, second detection means)

Claims (16)

原稿が載置される原稿台と、
前記原稿台の所定位置に原稿を搬送して載置するとともに、前記原稿を覆うベルト状搬送部材を備え、少なくとも前記原稿台に載置された原稿によって遮蔽される位置に、前記ベルト状搬送部材の周回にわたって形成された着色領域を有する原稿覆い手段と、
前記原稿における主走査方向の画像情報を読み取る読取手段と、
前記原稿が定形サイズであるか否かを判別する定形サイズ判別手段と、
前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、
前記定形サイズ判別手段により前記原稿が非定形サイズであると判別された場合、前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記着色領域の画像情報が含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、
前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段と
を具備することを特徴とする画像読取装置。
A document table on which the document is placed;
The belt-like conveyance member is provided with a belt-like conveyance member that conveys and places the document at a predetermined position on the document table and covers the document, and at least at a position shielded by the document placed on the document table. Document covering means having a colored region formed over the circumference of
Reading means for reading image information in the main scanning direction of the original;
Fixed size determining means for determining whether or not the document has a fixed size;
First detection means for detecting a document edge in the main scanning direction of the document from image information read by the reading means;
If the original size is determined to be non-standard by the standard size determining means, the image information is read while moving the reading means in the sub-scanning direction while the original is covered by the original cover means. A second detection means for detecting a document edge in the sub-scanning direction by determining whether or not the image information includes the image information of the colored region;
The document size is recognized based on the document end in the main scanning direction of the document detected by the first detection unit and the document end in the sub-scanning direction of the document detected by the second detection unit. An image reading apparatus comprising: a recognition unit.
原稿が載置される原稿台と、
前記原稿台の所定位置に原稿を搬送して載置するとともに、前記原稿を覆うベルト状搬送部材を備え、少なくとも前記原稿台に載置された原稿によって遮蔽される位置の当該原稿に空けられたパンチ穴を覆わない範囲に、前記ベルト状搬送部材の周回にわたって形成された着色領域を有する原稿覆い手段と、
前記原稿における主走査方向の画像情報を読み取る読取手段と、
前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、
前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記着色領域の画像情報が含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、
前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段と
を具備することを特徴とする画像読取装置。
A document table on which the document is placed;
The document is transported and placed at a predetermined position on the document table, and is provided with a belt-shaped conveyance member that covers the document, and is at least opened in the document at a position shielded by the document placed on the document table. A document covering means having a colored region formed over the circumference of the belt-shaped conveying member in a range not covering the punch hole;
Reading means for reading image information in the main scanning direction of the original;
First detection means for detecting a document edge in the main scanning direction of the document from image information read by the reading means;
While the original is covered by the original covering means, the image information is read while moving the reading means in the sub-scanning direction, and it is determined whether or not the image information includes the image information of the colored area. A second detecting means for detecting the document edge in the sub-scanning direction;
The document size is recognized based on the document end in the main scanning direction of the document detected by the first detection unit and the document end in the sub-scanning direction of the document detected by the second detection unit. An image reading apparatus comprising: a recognition unit.
原稿が載置される原稿台と、
前記原稿台の所定位置に原稿を搬送して載置するとともに、前記原稿を覆うベルト状搬送部材を備え、少なくとも前記原稿台に載置された原稿によって遮蔽される位置の当該原稿の印字領域を覆わない範囲に、前記ベルト状搬送部材の周回にわたって形成された着色領域を有する原稿覆い手段と、
前記原稿における主走査方向の画像情報を読み取る読取手段と、
前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、
前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記着色領域の画像情報が含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、
前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段と
を具備することを特徴とする画像読取装置。
A document table on which the document is placed;
The document is transported and placed at a predetermined position on the document table, and includes a belt-shaped conveyance member that covers the document, and at least a print area of the document at a position shielded by the document placed on the document table. A document covering means having a colored region formed over the circumference of the belt-shaped conveying member in an uncovered range;
Reading means for reading image information in the main scanning direction of the original;
First detection means for detecting a document edge in the main scanning direction of the document from image information read by the reading means;
While the original is covered by the original covering means, the image information is read while moving the reading means in the sub-scanning direction, and it is determined whether or not the image information includes the image information of the colored area. A second detecting means for detecting the document edge in the sub-scanning direction;
The document size is recognized based on the document end in the main scanning direction of the document detected by the first detection unit and the document end in the sub-scanning direction of the document detected by the second detection unit. An image reading apparatus comprising: a recognition unit.
原稿が載置される原稿台と、
前記原稿台に対して開閉自在に設けられるとともに、閉じた状態において前記原稿台に載置された原稿で遮蔽され、少なくとも原稿の副走査方向における対向する原稿端から現れるように形成された着色領域を有する原稿覆い手段と、
前記原稿における主走査方向の画像情報を読み取る読取手段と、
前記原稿が定形サイズであるか否かを判別する定形サイズ判別手段と、
前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、
前記定形サイズ判別手段により前記原稿が非定形サイズであると判別された場合、前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記着色領域の画像情報が含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、
前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段と
を具備することを特徴とする画像読取装置。
A document table on which the document is placed;
A colored region provided so as to be openable and closable with respect to the document table, and shielded by a document placed on the document table in a closed state and formed so as to appear at least from the opposite document edge in the sub-scanning direction of the document. A document covering means comprising:
Reading means for reading image information in the main scanning direction of the original;
Fixed size determining means for determining whether or not the document has a fixed size;
First detection means for detecting a document edge in the main scanning direction of the document from image information read by the reading means;
If the original size is determined to be non-standard by the standard size determining means, the image information is read while moving the reading means in the sub-scanning direction while the original is covered by the original cover means. A second detection means for detecting a document edge in the sub-scanning direction by determining whether or not the image information includes the image information of the colored region;
The document size is recognized based on the document end in the main scanning direction of the document detected by the first detection unit and the document end in the sub-scanning direction of the document detected by the second detection unit. An image reading apparatus comprising: a recognition unit.
原稿が載置される原稿台と、
前記原稿台に対して開閉自在に設けられるとともに、閉じた状態において前記原稿台に載置された原稿で遮蔽され、少なくとも原稿の副走査方向にわたって形成された複数の着色領域を有する原稿覆い手段と、
前記原稿における主走査方向の画像情報を読み取る読取手段と、
前記原稿が定形サイズであるか否かを判別する定形サイズ判別手段と、
前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、
前記定形サイズ判別手段により前記原稿が非定形サイズであると判別された場合、前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記複数の着色領域のパターンが含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、
前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段と
を具備することを特徴とする画像読取装置。
A document table on which the document is placed;
Document covering means provided so as to be openable and closable with respect to the document table, and having a plurality of colored regions formed at least in the sub-scanning direction of the document, which is shielded by the document placed on the document table in the closed state. ,
Reading means for reading image information in the main scanning direction of the original;
Fixed size determining means for determining whether or not the document has a fixed size;
First detection means for detecting a document edge in the main scanning direction of the document from image information read by the reading means;
If the original size is determined to be non-standard by the standard size determining means, the image information is read while moving the reading means in the sub-scanning direction while the original is covered by the original cover means. A second detection means for detecting a document edge in the sub-scanning direction by determining whether or not the image information includes a pattern of the plurality of colored regions;
The document size is recognized based on the document end in the main scanning direction of the document detected by the first detection unit and the document end in the sub-scanning direction of the document detected by the second detection unit. An image reading apparatus comprising: a recognition unit.
原稿が載置される原稿台と、
前記原稿台に対して開閉自在に設けられるとともに、閉じた状態において前記原稿台に載置された原稿で遮蔽され、少なくとも原稿の副走査方向にわたって異なる幅または間隔で形成された複数の着色領域を有する原稿覆い手段と、
前記原稿における主走査方向の画像情報を読み取る読取手段と、
前記読取手段により読み取られた画像情報から前記原稿の主走査方向の原稿端を検出する第1の検出手段と、
前記原稿覆い手段によって原稿が覆われている状態で、前記読取手段を副走査方向に移動させながら画像情報を読み取らせ、該画像情報に前記複数の着色領域のパターンが含まれるか否かを判別することにより、副走査方向の原稿端を検出する第2の検出手段と、
前記第1の検出手段によって検出された前記原稿の主走査方向の原稿端と、前記第2の検出手段によって検出された前記原稿の副走査方向の原稿端とに基づいて、原稿サイズを認識する認識手段と
を具備することを特徴とする画像読取装置。
A document table on which the document is placed;
A plurality of colored regions which are provided so as to be openable and closable with respect to the document table and are shielded by a document placed on the document table in the closed state and formed at different widths or intervals at least in the sub-scanning direction of the document A document covering means,
Reading means for reading image information in the main scanning direction of the original;
First detection means for detecting a document edge in the main scanning direction of the document from image information read by the reading means;
While the original is covered by the original covering means, the image information is read while moving the reading means in the sub-scanning direction, and it is determined whether or not the image information includes the patterns of the plurality of colored regions. A second detecting means for detecting the document edge in the sub-scanning direction;
The document size is recognized based on the document end in the main scanning direction of the document detected by the first detection unit and the document end in the sub-scanning direction of the document detected by the second detection unit. An image reading apparatus comprising: a recognition unit.
前記複数の着色領域は、各々が異なる明度または色度に着色されていることを特徴とする請求項5または6のいずれかに記載の画像読取装置。Wherein the plurality of colored regions, the image reading apparatus according to claim 5 or 6, characterized in that each being colored in different brightness or chromaticity. 前記原稿覆い手段の着色領域は、前記原稿覆い手段の主走査方向へのずれを越える幅を有することを特徴とする請求項1ないしのいずれかに記載の画像読取装置。Colored region of the document covering means is an image reading apparatus according to any one of claims 1 to 6, characterized in that it has a width exceeding the deviation in the main scanning direction of the document covering means. 前記着色領域は、副走査方向に前記ベルト状搬送部材の周回にわたって形成される第1の着色領域と、読み取り対象となる原稿の副走査方向長さより短い間隔で主走査方向に前記ベルト状搬送部材の周回にわたって複数形成される第2の着色領域とから構成されていることを特徴とする請求項1ないし3のいずれかに記載の画像読取装置。  The colored region includes a first colored region formed over the circumference of the belt-shaped conveying member in the sub-scanning direction and the belt-shaped conveying member in the main scanning direction at an interval shorter than the length of the document to be read in the sub-scanning direction. 4. The image reading apparatus according to claim 1, wherein the image reading apparatus includes a plurality of second colored regions that are formed over the circumference. 前記着色領域は、副走査方向に所定の間隔で、かつ主走査方向の一方の原稿端から他方の原稿端へ斜めに、前記ベルト状搬送部材の周回にわたって複数形成されていることを特徴とする請求項1ないし3のいずれかに記載の画像読取装置。  A plurality of the colored regions are formed at a predetermined interval in the sub-scanning direction and obliquely from one document end to the other document end in the main scanning direction over the circumference of the belt-shaped conveying member. The image reading apparatus according to claim 1. 前記着色領域は、ベルト状搬送部材のシボや梨地のない箇所に形成されていることを特徴とする請求項1ないし3のいずれかに記載の画像読取装置。  The image reading apparatus according to claim 1, wherein the colored region is formed at a portion of the belt-shaped conveying member where there is no grain or texture. 前記着色領域が形成されている所定の領域の画像情報を除去する補正手段を具備することを特徴とする請求項1ないし3のいずれかに記載の画像読取装置。  4. The image reading apparatus according to claim 1, further comprising a correction unit that removes image information of a predetermined area where the colored area is formed. 前記第2の検出手段は、前記読取手段によって読み取った画像情報のうち、少なくとも、前記複数の着色領域が現れる領域を、前記複数の着色領域のパターン判別領域とすることを特徴とする請求項記載の画像読取装置。The second detection means, among the image information read by said reading means, at least, claim 6 of the region where the plurality of colored regions appear, characterized by a pattern judgment region of the plurality of colored regions The image reading apparatus described. 前記第2の検出手段は、前記複数の着色領域が現れる領域における画像情報のうち、主走査方向の所定位置に、前記複数の着色領域のパターンが含まれるか否かを判別することを特徴とする請求項13記載の画像読取装置。The second detection means determines whether or not a pattern of the plurality of colored regions is included in a predetermined position in the main scanning direction in the image information in the region where the plurality of colored regions appear. The image reading apparatus according to claim 13 . 前記主走査方向の所定位置は、前記複数の着色領域の内側両端近傍と各着色領域の外側両端近傍とであることを特徴とする請求項14記載の画像読取装置。The image reading apparatus according to claim 14 , wherein the predetermined positions in the main scanning direction are near both inner ends of the plurality of colored regions and near both outer ends of the colored regions. 前記主走査方向の所定位置は、前記複数の着色領域の内側中央近傍と各着色領域間の中央近傍とであることを特徴とする請求項14記載の画像読取装置。The image reading apparatus according to claim 14 , wherein the predetermined position in the main scanning direction is an inner central vicinity of the plurality of colored areas and a central vicinity between the colored areas.
JP20521099A 1999-07-19 1999-07-19 Image reading device Expired - Fee Related JP3758426B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20521099A JP3758426B2 (en) 1999-07-19 1999-07-19 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20521099A JP3758426B2 (en) 1999-07-19 1999-07-19 Image reading device

Publications (2)

Publication Number Publication Date
JP2001036695A JP2001036695A (en) 2001-02-09
JP3758426B2 true JP3758426B2 (en) 2006-03-22

Family

ID=16503234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20521099A Expired - Fee Related JP3758426B2 (en) 1999-07-19 1999-07-19 Image reading device

Country Status (1)

Country Link
JP (1) JP3758426B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4363452B2 (en) * 2007-03-26 2009-11-11 ブラザー工業株式会社 Image reading apparatus and image forming apparatus
JP4948360B2 (en) * 2007-10-29 2012-06-06 株式会社リコー Image reading apparatus and image forming apparatus
JP5768753B2 (en) * 2012-03-30 2015-08-26 ブラザー工業株式会社 Image reading apparatus and original size specifying program
JP5683623B2 (en) * 2012-04-05 2015-03-11 株式会社東芝 Image reading device
WO2015093153A1 (en) * 2013-12-20 2015-06-25 京セラドキュメントソリューションズ株式会社 Image forming apparatus and original document size detection method
JP6624134B2 (en) * 2017-03-22 2019-12-25 京セラドキュメントソリューションズ株式会社 Document reading device
WO2021010973A1 (en) * 2019-07-15 2021-01-21 Hewlett-Packard Development Company, L.P. Lid position determinations based on scans of zones

Also Published As

Publication number Publication date
JP2001036695A (en) 2001-02-09

Similar Documents

Publication Publication Date Title
JP4557184B2 (en) Image processing apparatus, image reading apparatus, and image processing program
JP3758426B2 (en) Image reading device
US8130424B2 (en) Image scanner and control method thereof
US20200120224A1 (en) Document size detection device, image reading device, image forming apparatus, and document size detecting method
US7515298B2 (en) Image processing apparatus and method determining noise in image data
JP3706800B2 (en) Image processing system, method, and storage medium
JP2001066712A (en) Image reader
JP2006270768A (en) Image reading apparatus
JP4933402B2 (en) Image reading device
JP4412070B2 (en) Image reading apparatus and image data correction method
JP3680408B2 (en) Image reading device
JP4855017B2 (en) Document size detection apparatus, image reading apparatus, and image forming apparatus
KR102253437B1 (en) Image reading apparatus, control method for controlling image reading apparatus, and storage medium
JP3928285B2 (en) Image processing device
JP4016774B2 (en) Document reader
JP2000078409A (en) Device and method for reading image
JP2008028522A (en) Image reading device
US11394842B2 (en) Image reading apparatus determines whether a document is chromatic or achromatic and performing a conveyance speed of a document based on the setting of a color determination, and performing conveyance speed based on setting of an output resolution without setting whether to perform a color determination
JP2005027110A (en) Image processor, image reader provided with the same, image forming device, image processing method, image processing program and recording medium
JPH09284479A (en) Digital copying machine
JP7176390B2 (en) Tilt correction device, reading device, image forming device, and tilt correction method
JP4186796B2 (en) Image reading device
JP2007281703A (en) Image reader
JP2010245688A (en) Document reader
JP2006229719A (en) Image processing apparatus

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040729

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040921

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041119

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050419

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050620

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: 20051213

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051226

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees